@articles-media/articles-dev-box 1.0.17 → 1.0.23
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.js +2 -604
- package/dist/AdConfirmExitModal-CJ-HtcVC.js +56 -0
- package/dist/AdDetailsModal-DRNRTL2W.js +108 -0
- package/dist/ArticlesAd.js +16 -15
- package/dist/Button-BlAdEbSd.js +30 -0
- package/dist/CreditsModal.js +56 -0
- package/dist/DarkModeHandler.js +17 -16
- package/dist/FriendsList.js +77 -121
- package/dist/GameScoreboard-CBY3JsFa.js +165 -0
- package/dist/GameScoreboard.js +2 -190
- package/dist/GlobalBody.js +36 -7
- package/dist/GlobalHead.js +10 -12
- package/dist/Link-MFZblBb4.js +17 -0
- package/dist/Modal-BX1s6CCU.js +1631 -0
- package/dist/ReturnToLauncherButton.js +39 -54
- package/dist/SettingsModal-XI2dMI09.js +247 -0
- package/dist/SettingsModal.js +2 -658
- package/dist/StatusModal-elrPJvX1.js +70 -0
- package/dist/ViewUserModal-DDjWLpyM.js +3094 -0
- package/dist/ViewUserModal.js +3 -3149
- package/dist/articles-dev-box.css +2 -1
- package/dist/classnames-DP6dWde5.js +31 -0
- package/dist/index.js +16 -28
- package/dist/jsx-runtime-VZk6y-ec.js +191 -0
- package/dist/numberWithCommas-BSKBdR-e.js +18 -0
- package/dist/useAuthSiteStatus-1rHjYC4N.js +29 -0
- package/dist/useFullscreen.js +24 -0
- package/dist/useUserDetails.js +22 -32
- package/dist/useUserFriends.js +29 -51
- package/dist/useUserToken.js +16 -21
- package/package.json +26 -67
- package/dist/Ad.cjs +0 -1
- 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/ArticlesAd.cjs +0 -1
- package/dist/Button-0ZK0NKiK.cjs +0 -1
- package/dist/Button-_Quon8UV.js +0 -54
- package/dist/DarkModeHandler.cjs +0 -1
- package/dist/ElementChildren-DN3RWY2E.js +0 -51
- package/dist/ElementChildren-eAwIENLl.cjs +0 -1
- package/dist/FriendsList.cjs +0 -1
- package/dist/GameScoreboard.cjs +0 -1
- package/dist/GlobalBody-BrrtfBBs.js +0 -123
- package/dist/GlobalBody-weON_TbJ.cjs +0 -33
- package/dist/GlobalBody.cjs +0 -1
- package/dist/GlobalHead.cjs +0 -1
- package/dist/Modal-Bdhkgkwr.cjs +0 -2
- package/dist/Modal-nux8R77F.js +0 -2087
- package/dist/ReturnToLauncherButton.cjs +0 -1
- package/dist/SettingsModal.cjs +0 -1
- package/dist/StatusModal-B086BgSW.js +0 -71
- package/dist/StatusModal-CzPyqQQA.cjs +0 -1
- package/dist/ViewUserModal.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/index.cjs +0 -1
- 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/dist/useUserDetails.cjs +0 -1
- package/dist/useUserFriends.cjs +0 -1
- package/dist/useUserToken.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),a=require("./Button-0ZK0NKiK.cjs"),n=require("react");function l({className:s,id:r}){const[o,i]=n.useState(!1);if(n.useEffect(()=>{i(!0)},[]),!o)return null;const u=new URLSearchParams(window.location.search),c=Object.fromEntries(u);let{launcher_mode:t}=c;return t=t==="1",t?e.jsxRuntimeExports.jsxs(a.ArticlesButton,{className:`${s} w-100`,id:r,small:!0,style:{zIndex:10,position:"relative"},onClick:()=>{window.location.href="https://games.articles.media"},children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-gamepad"}),"Return to Games"]}):e.jsxRuntimeExports.jsxs(a.ArticlesButton,{className:`${s} w-100`,small:!0,id:r,style:{zIndex:10,position:"relative"},onClick:()=>{window.location.href="https://games.articles.media"},children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-gamepad"}),"View our other games"]})}module.exports=l;
|
package/dist/SettingsModal.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./jsx-runtime-nZSsnGb7.cjs"),j=require("react"),f=require("./Button-0ZK0NKiK.cjs"),d=require("./index-BlP2-uOi.cjs"),c=require("./Modal-Bdhkgkwr.cjs"),B=require("./ElementChildren-eAwIENLl.cjs");function W(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=W(j);function X({as:e,bsPrefix:t,className:n,...o}){t=c.useBootstrapPrefix(t,"col");const r=c.useBootstrapBreakpoints(),i=c.useBootstrapMinBreakpoint(),x=[],a=[];return r.forEach(u=>{const l=o[u];delete o[u];let p,E,N;typeof l=="object"&&l!=null?{span:p,offset:E,order:N}=l:p=l;const R=u!==i?`-${u}`:"";p&&x.push(p===!0?`${t}${R}`:`${t}${R}-${p}`),N!=null&&a.push(`order${R}-${N}`),E!=null&&a.push(`offset${R}-${E}`)}),[{...o,className:d.classNames(n,...x,...a)},{as:e,bsPrefix:t,spans:x}]}const O=m.forwardRef((e,t)=>{const[{className:n,...o},{as:r="div",bsPrefix:i,spans:x}]=X(e);return s.jsxRuntimeExports.jsx(r,{...o,ref:t,className:d.classNames(n,!x.length&&i)})});O.displayName="Col";const Y={type:c.PropTypes.string,tooltip:c.PropTypes.bool,as:c.PropTypes.elementType},C=m.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:o=!1,...r},i)=>s.jsxRuntimeExports.jsx(e,{...r,ref:i,className:d.classNames(t,`${n}-${o?"tooltip":"feedback"}`)}));C.displayName="Feedback";C.propTypes=Y;const h=m.createContext({}),w=m.forwardRef(({id:e,bsPrefix:t,className:n,type:o="checkbox",isValid:r=!1,isInvalid:i=!1,as:x="input",...a},u)=>{const{controlId:l}=j.useContext(h);return t=c.useBootstrapPrefix(t,"form-check-input"),s.jsxRuntimeExports.jsx(x,{...a,ref:u,type:o,id:e||l,className:d.classNames(n,t,r&&"is-valid",i&&"is-invalid")})});w.displayName="FormCheckInput";const g=m.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...o},r)=>{const{controlId:i}=j.useContext(h);return e=c.useBootstrapPrefix(e,"form-check-label"),s.jsxRuntimeExports.jsx("label",{...o,ref:r,htmlFor:n||i,className:d.classNames(t,e)})});g.displayName="FormCheckLabel";const L=m.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:o=!1,reverse:r=!1,disabled:i=!1,isValid:x=!1,isInvalid:a=!1,feedbackTooltip:u=!1,feedback:l,feedbackType:p,className:E,style:N,title:R="",type:F="checkbox",label:k,children:b,as:_="input",...z},J)=>{t=c.useBootstrapPrefix(t,"form-check"),n=c.useBootstrapPrefix(n,"form-switch");const{controlId:T}=j.useContext(h),K=j.useMemo(()=>({controlId:e||T}),[T,e]),A=!b&&k!=null&&k!==!1||B.hasChildOfType(b,g),U=s.jsxRuntimeExports.jsx(w,{...z,type:F==="switch"?"checkbox":F,ref:J,isValid:x,isInvalid:a,disabled:i,as:_});return s.jsxRuntimeExports.jsx(h.Provider,{value:K,children:s.jsxRuntimeExports.jsx("div",{style:N,className:d.classNames(E,A&&t,o&&`${t}-inline`,r&&`${t}-reverse`,F==="switch"&&n),children:b||s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[U,A&&s.jsxRuntimeExports.jsx(g,{title:R,children:k}),l&&s.jsxRuntimeExports.jsx(C,{type:p,tooltip:u,children:l})]})})})});L.displayName="FormCheck";const v=Object.assign(L,{Input:w,Label:g}),S=m.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:o,id:r,className:i,isValid:x=!1,isInvalid:a=!1,plaintext:u,readOnly:l,as:p="input",...E},N)=>{const{controlId:R}=j.useContext(h);return e=c.useBootstrapPrefix(e,"form-control"),process.env.NODE_ENV!=="production"&&B.warning(R==null||!r,"`controlId` is ignored on `<FormControl>` when `id` is specified."),s.jsxRuntimeExports.jsx(p,{...E,type:t,size:o,ref:N,readOnly:l,id:r||R,className:d.classNames(i,u?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,x&&"is-valid",a&&"is-invalid")})});S.displayName="FormControl";const Z=Object.assign(S,{Feedback:C}),I=m.forwardRef(({className:e,bsPrefix:t,as:n="div",...o},r)=>(t=c.useBootstrapPrefix(t,"form-floating"),s.jsxRuntimeExports.jsx(n,{ref:r,className:d.classNames(e,t),...o})));I.displayName="FormFloating";const $=m.forwardRef(({controlId:e,as:t="div",...n},o)=>{const r=j.useMemo(()=>({controlId:e}),[e]);return s.jsxRuntimeExports.jsx(h.Provider,{value:r,children:s.jsxRuntimeExports.jsx(t,{...n,ref:o})})});$.displayName="FormGroup";const D=m.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:o=!1,className:r,htmlFor:i,...x},a)=>{const{controlId:u}=j.useContext(h);t=c.useBootstrapPrefix(t,"form-label");let l="col-form-label";typeof n=="string"&&(l=`${l} ${l}-${n}`);const p=d.classNames(r,t,o&&"visually-hidden",n&&l);return process.env.NODE_ENV!=="production"&&B.warning(u==null||!i,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),i=i||u,n?s.jsxRuntimeExports.jsx(O,{ref:a,as:"label",className:p,htmlFor:i,...x}):s.jsxRuntimeExports.jsx(e,{ref:a,className:p,htmlFor:i,...x})});D.displayName="FormLabel";const G=m.forwardRef(({bsPrefix:e,className:t,id:n,...o},r)=>{const{controlId:i}=j.useContext(h);return e=c.useBootstrapPrefix(e,"form-range"),s.jsxRuntimeExports.jsx("input",{...o,type:"range",ref:r,className:d.classNames(t,e),id:n||i})});G.displayName="FormRange";const q=m.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:o,isValid:r=!1,isInvalid:i=!1,id:x,...a},u)=>{const{controlId:l}=j.useContext(h);return e=c.useBootstrapPrefix(e,"form-select"),s.jsxRuntimeExports.jsx("select",{...a,size:n,ref:u,className:d.classNames(o,e,t&&`${e}-${t}`,r&&"is-valid",i&&"is-invalid"),id:x||l})});q.displayName="FormSelect";const Q=m.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:o,...r},i)=>(e=c.useBootstrapPrefix(e,"form-text"),s.jsxRuntimeExports.jsx(n,{...r,ref:i,className:d.classNames(t,e,o&&"text-muted")})));Q.displayName="FormText";const H=m.forwardRef((e,t)=>s.jsxRuntimeExports.jsx(v,{...e,ref:t,type:"switch"}));H.displayName="Switch";const P=Object.assign(H,{Input:v.Input,Label:v.Label}),V=m.forwardRef(({bsPrefix:e,className:t,children:n,controlId:o,label:r,...i},x)=>(e=c.useBootstrapPrefix(e,"form-floating"),s.jsxRuntimeExports.jsxs($,{ref:x,className:d.classNames(t,e),controlId:o,...i,children:[n,s.jsxRuntimeExports.jsx("label",{htmlFor:o,children:r})]})));V.displayName="FloatingLabel";const ss={_ref:c.PropTypes.any,validated:c.PropTypes.bool,as:c.PropTypes.elementType},M=m.forwardRef(({className:e,validated:t,as:n="form",...o},r)=>s.jsxRuntimeExports.jsx(n,{...o,ref:r,className:d.classNames(e,t&&"was-validated")}));M.displayName="Form";M.propTypes=ss;const y=Object.assign(M,{Group:$,Control:Z,Floating:I,Check:v,Switch:P,Label:D,Text:Q,Range:G,Select:q,FloatingLabel:V});function es({useStore:e}){const t=e(a=>a?.darkMode),n=e(a=>a?.setDarkMode),o=e(a=>a?.graphicsQuality),r=e(a=>a?.setGraphicsQuality),i=e(a=>a?.landingAnimation),x=e(a=>a?.setLandingAnimation);return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{children:"Dark Mode"}),s.jsxRuntimeExports.jsx("div",{className:"mb-3",children:[!1,!0].map((a,u)=>s.jsxRuntimeExports.jsx(f.ArticlesButton,{active:t===a,onClick:()=>{n(a)},children:a?"On":"Off"},u))}),s.jsxRuntimeExports.jsx("div",{children:"Graphics Quality"}),s.jsxRuntimeExports.jsx("div",{className:"mb-3",children:["Low","Medium","High"].map(a=>s.jsxRuntimeExports.jsx(f.ArticlesButton,{active:o===a,onClick:()=>{r(a)},children:a},a))}),s.jsxRuntimeExports.jsx("div",{children:"Landing Animation"}),s.jsxRuntimeExports.jsxs("div",{className:"mb-3",children:[s.jsxRuntimeExports.jsx(f.ArticlesButton,{active:i===!1,onClick:()=>{x(!1)},children:"Disabled"}),s.jsxRuntimeExports.jsx(f.ArticlesButton,{active:i===!0,onClick:()=>{x(!0)},children:"Enabled"})]})]})}function ts({useAudioStore:e,config:t}){const n=e(r=>r?.audioSettings),o=e(r=>r?.setAudioSettings);return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{children:"Sound"}),s.jsxRuntimeExports.jsxs("div",{className:"mb-3",children:[s.jsxRuntimeExports.jsx(f.ArticlesButton,{active:!n?.enabled,onClick:()=>{o({...n,enabled:!1})},children:"Disabled"}),s.jsxRuntimeExports.jsx(f.ArticlesButton,{active:n?.enabled,onClick:()=>{o({...n,enabled:!0})},children:"Enabled"})]}),t?.tabs?.Audio?.sliders?.map(r=>s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx(y.Label,{className:"mb-0",children:r.label}),s.jsxRuntimeExports.jsx(y.Range,{value:n?.[r.key],onChange:i=>{o({...n,[r.key]:i.target.value})}})]},r.key))]})}function ns(){return s.jsxRuntimeExports.jsxs("div",{className:"p-2",children:[s.jsxRuntimeExports.jsx(y.Label,{className:"mb-0",children:"Socket Server Host"}),s.jsxRuntimeExports.jsx(y.Control,{type:"text"}),s.jsxRuntimeExports.jsx(y.Label,{className:"mb-0",children:"Edit this to connect to a different multiplayer host!"}),s.jsxRuntimeExports.jsxs("div",{className:"mt-3",children:[s.jsxRuntimeExports.jsx(f.ArticlesButton,{className:"mb-1",children:"Retry"}),s.jsxRuntimeExports.jsxs("div",{children:["Status: ",s.jsxRuntimeExports.jsx("span",{className:"badge bg-danger",children:"Offline"})]})]})]})}function os(){return s.jsxRuntimeExports.jsxs("div",{className:"p-2",children:[s.jsxRuntimeExports.jsx("h5",{children:"Control Settings"}),s.jsxRuntimeExports.jsx("p",{children:"Configure your key bindings and control preferences here."})]})}function rs({useStore:e}){const t=e(o=>o?.debug),n=e(o=>o?.setDebug);return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{children:"Debug Mode"}),s.jsxRuntimeExports.jsx("div",{className:"mb-3",children:[!1,!0].map((o,r)=>s.jsxRuntimeExports.jsx(f.ArticlesButton,{active:t===o,onClick:()=>{n(o)},children:o?"On":"Off"},r))})]})}function as({show:e,setShow:t,store:n,useAudioStore:o,config:r}){const[i,x]=j.useState(!1),[a,u]=j.useState("Graphics");return n(l=>l.darkMode),n(l=>l.setDarkMode),n(l=>l.arcadeMode),n(l=>l.setArcadeMode),s.jsxRuntimeExports.jsxs(c.Modal,{className:"articles-modal",size:"md",show:e,centered:!0,scrollable:!0,onExited:()=>{},onHide:()=>{t(!1)},children:[s.jsxRuntimeExports.jsx(c.Modal.Header,{closeButton:!0,children:s.jsxRuntimeExports.jsx(c.Modal.Title,{children:"Game Settings"})}),s.jsxRuntimeExports.jsxs(c.Modal.Body,{className:"flex-column p-0",children:[s.jsxRuntimeExports.jsx("div",{className:"p-2",children:["Graphics","Controls","Audio","Multiplayer","Other"].map(l=>s.jsxRuntimeExports.jsx(f.ArticlesButton,{active:a==l,onClick:()=>{u(l)},children:l},l))}),s.jsxRuntimeExports.jsx("hr",{className:"my-0"}),s.jsxRuntimeExports.jsxs("div",{className:"p-2",children:[a=="Controls"&&s.jsxRuntimeExports.jsx(os,{useStore:n,config:r}),a=="Graphics"&&s.jsxRuntimeExports.jsx(es,{useStore:n,config:r}),a=="Audio"&&s.jsxRuntimeExports.jsx(ts,{useAudioStore:o,config:r}),a=="Multiplayer"&&s.jsxRuntimeExports.jsx(ns,{useStore:n,config:r}),a=="Other"&&s.jsxRuntimeExports.jsx(rs,{useStore:n})]})]}),s.jsxRuntimeExports.jsx(c.Modal.Footer,{className:"justify-content-between",children:s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx(f.ArticlesButton,{variant:"outline-dark",onClick:()=>{t(!1)},children:"Close"}),s.jsxRuntimeExports.jsx(f.ArticlesButton,{variant:"outline-danger ms-3",onClick:()=>{},children:"Reset"})]})})]})}module.exports=as;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { useState as h } from "react";
|
|
3
|
-
import { A as o } from "./Button-_Quon8UV.js";
|
|
4
|
-
import { u as g, a as E } from "./GlobalBody-BrrtfBBs.js";
|
|
5
|
-
import { M as s } from "./Modal-nux8R77F.js";
|
|
6
|
-
function A({
|
|
7
|
-
show: f,
|
|
8
|
-
setShow: d
|
|
9
|
-
}) {
|
|
10
|
-
const [t, x] = h(!1), [i, j] = h(!1), c = (p, S, N) => N ? "..." : S ? S.response?.status || "Error" : p ? "200" : "-", {
|
|
11
|
-
data: a,
|
|
12
|
-
error: r,
|
|
13
|
-
isLoading: m
|
|
14
|
-
} = g({
|
|
15
|
-
disable: process.env.NODE_ENV !== "development"
|
|
16
|
-
}), {
|
|
17
|
-
data: n,
|
|
18
|
-
error: l,
|
|
19
|
-
isLoading: u
|
|
20
|
-
} = E({
|
|
21
|
-
disable: process.env.NODE_ENV !== "development"
|
|
22
|
-
});
|
|
23
|
-
return /* @__PURE__ */ e.jsxs(s, { show: f, size: "md", className: "articles-modal", centered: !0, onHide: () => d(!1), children: [
|
|
24
|
-
/* @__PURE__ */ e.jsx(s.Header, { children: /* @__PURE__ */ e.jsx(s.Title, { children: "Status Details" }) }),
|
|
25
|
-
/* @__PURE__ */ e.jsxs(s.Body, { children: [
|
|
26
|
-
/* @__PURE__ */ e.jsxs("div", { className: "d-flex align-items-center mb-2", children: [
|
|
27
|
-
/* @__PURE__ */ e.jsxs("h5", { className: "mb-0 me-2", children: [
|
|
28
|
-
"Main Site Status: ",
|
|
29
|
-
c(a, r, m)
|
|
30
|
-
] }),
|
|
31
|
-
/* @__PURE__ */ e.jsxs(o, { variant: "link", size: "sm", className: "p-0", onClick: () => x(!t), children: [
|
|
32
|
-
t ? "Hide" : "View",
|
|
33
|
-
" More"
|
|
34
|
-
] })
|
|
35
|
-
] }),
|
|
36
|
-
t && /* @__PURE__ */ e.jsxs("pre", { children: [
|
|
37
|
-
m && "Loading...",
|
|
38
|
-
r && `Error: ${r.message}`,
|
|
39
|
-
a && JSON.stringify(a, null, 2)
|
|
40
|
-
] }),
|
|
41
|
-
/* @__PURE__ */ e.jsxs("div", { className: "d-flex align-items-center mb-2", children: [
|
|
42
|
-
/* @__PURE__ */ e.jsxs("h5", { className: "mb-0 me-2", children: [
|
|
43
|
-
"Auth Site Status: ",
|
|
44
|
-
c(n, l, u)
|
|
45
|
-
] }),
|
|
46
|
-
/* @__PURE__ */ e.jsxs(o, { variant: "link", size: "sm", className: "p-0", onClick: () => j(!i), children: [
|
|
47
|
-
i ? "Hide" : "View",
|
|
48
|
-
" More"
|
|
49
|
-
] })
|
|
50
|
-
] }),
|
|
51
|
-
i && /* @__PURE__ */ e.jsxs("pre", { children: [
|
|
52
|
-
u && "Loading...",
|
|
53
|
-
l && `Error: ${l.message}`,
|
|
54
|
-
n && JSON.stringify(n, null, 2)
|
|
55
|
-
] })
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ e.jsx(s.Footer, { className: "justify-content-between", children: /* @__PURE__ */ e.jsx(
|
|
58
|
-
o,
|
|
59
|
-
{
|
|
60
|
-
variant: "articles",
|
|
61
|
-
onClick: () => {
|
|
62
|
-
d(!1);
|
|
63
|
-
},
|
|
64
|
-
children: "Close"
|
|
65
|
-
}
|
|
66
|
-
) })
|
|
67
|
-
] });
|
|
68
|
-
}
|
|
69
|
-
export {
|
|
70
|
-
A as default
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-nZSsnGb7.cjs"),j=require("react"),l=require("./Button-0ZK0NKiK.cjs"),S=require("./GlobalBody-weON_TbJ.cjs"),t=require("./Modal-Bdhkgkwr.cjs");function g({show:h,setShow:u}){const[s,p]=j.useState(!1),[i,E]=j.useState(!1),c=(R,m,f)=>f?"...":m?m.response?.status||"Error":R?"200":"-",{data:r,error:n,isLoading:d}=S.useMainSiteStatus({disable:process.env.NODE_ENV!=="development"}),{data:a,error:o,isLoading:x}=S.useAuthSiteStatus({disable:process.env.NODE_ENV!=="development"});return e.jsxRuntimeExports.jsxs(t.Modal,{show:h,size:"md",className:"articles-modal",centered:!0,onHide:()=>u(!1),children:[e.jsxRuntimeExports.jsx(t.Modal.Header,{children:e.jsxRuntimeExports.jsx(t.Modal.Title,{children:"Status Details"})}),e.jsxRuntimeExports.jsxs(t.Modal.Body,{children:[e.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-2",children:[e.jsxRuntimeExports.jsxs("h5",{className:"mb-0 me-2",children:["Main Site Status: ",c(r,n,d)]}),e.jsxRuntimeExports.jsxs(l.ArticlesButton,{variant:"link",size:"sm",className:"p-0",onClick:()=>p(!s),children:[s?"Hide":"View"," More"]})]}),s&&e.jsxRuntimeExports.jsxs("pre",{children:[d&&"Loading...",n&&`Error: ${n.message}`,r&&JSON.stringify(r,null,2)]}),e.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-2",children:[e.jsxRuntimeExports.jsxs("h5",{className:"mb-0 me-2",children:["Auth Site Status: ",c(a,o,x)]}),e.jsxRuntimeExports.jsxs(l.ArticlesButton,{variant:"link",size:"sm",className:"p-0",onClick:()=>E(!i),children:[i?"Hide":"View"," More"]})]}),i&&e.jsxRuntimeExports.jsxs("pre",{children:[x&&"Loading...",o&&`Error: ${o.message}`,a&&JSON.stringify(a,null,2)]})]}),e.jsxRuntimeExports.jsx(t.Modal.Footer,{className:"justify-content-between",children:e.jsxRuntimeExports.jsx(l.ArticlesButton,{variant:"articles",onClick:()=>{u(!1)},children:"Close"})})]})}exports.default=g;
|
package/dist/ViewUserModal.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./jsx-runtime-nZSsnGb7.cjs"),x=require("react"),D=require("./numberWithCommas-CRgrb58X.cjs"),y=require("./Modal-Bdhkgkwr.cjs"),Ge=require("./ElementChildren-eAwIENLl.cjs"),ce=require("./index-BlP2-uOi.cjs"),Gt=require("react-dom"),De=require("./index-DWV8myok.cjs"),P=require("./Button-0ZK0NKiK.cjs");function Jt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const oe=Jt(x);function ze(t,e){const r=+D.toDate(t)-+D.toDate(e);return r<0?-1:r>0?1:r}function Qt(t,e,r){const[n,i]=D.normalizeDates(r?.in,t,e),l=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return l*12+a}function Zt(t,e){const r=D.toDate(t,e?.in);return r.setHours(23,59,59,999),r}function es(t,e){const r=D.toDate(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function ts(t,e){const r=D.toDate(t,e?.in);return+Zt(r,e)==+es(r,e)}function ss(t,e,r){const[n,i,l]=D.normalizeDates(r?.in,t,t,e),a=ze(i,l),o=Math.abs(Qt(i,l));if(o<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*o);let c=ze(i,l)===-a;ts(n)&&o===1&&ze(n,l)===1&&(c=!1);const p=a*(o-+c);return p===0?0:p}function rs(){const t=x.useRef(!0),e=x.useRef(()=>t.current);return x.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}const Xe=2**31-1;function Ct(t,e,r){const n=r-Date.now();t.current=n<=Xe?setTimeout(e,n):setTimeout(()=>Ct(t,e,r),Xe)}function ns(){const t=rs(),e=x.useRef();return y.useWillUnmount(()=>clearTimeout(e.current)),x.useMemo(()=>{const r=()=>clearTimeout(e.current);function n(i,l=0){t()&&(r(),l<=Xe?e.current=setTimeout(i,l):Ct(e,i,Date.now()+l))}return{set:n,clear:r,handleRef:e}},[])}function is(t,e,r){var n=x.useRef(t!==void 0),i=x.useState(e),l=i[0],a=i[1],o=t!==void 0,c=n.current;return n.current=o,!o&&c&&l!==e&&a(e),[o?t:l,x.useCallback(function(p){for(var u=arguments.length,f=new Array(u>1?u-1:0),h=1;h<u;h++)f[h-1]=arguments[h];r&&r.apply(void 0,[p].concat(f)),a(p)},[r])]}function pt(){return x.useState(null)}var mt=Object.prototype.hasOwnProperty;function xt(t,e,r){for(r of t.keys())if(_e(r,e))return r}function _e(t,e){var r,n,i;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&_e(t[n],e[n]););return n===-1}if(r===Set){if(t.size!==e.size)return!1;for(n of t)if(i=n,i&&typeof i=="object"&&(i=xt(e,i),!i)||!e.has(i))return!1;return!0}if(r===Map){if(t.size!==e.size)return!1;for(n of t)if(i=n[0],i&&typeof i=="object"&&(i=xt(e,i),!i)||!_e(n[1],e.get(i)))return!1;return!0}if(r===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(r===DataView){if((n=t.byteLength)===e.byteLength)for(;n--&&t.getInt8(n)===e.getInt8(n););return n===-1}if(ArrayBuffer.isView(t)){if((n=t.byteLength)===e.byteLength)for(;n--&&t[n]===e[n];);return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(mt.call(t,r)&&++n&&!mt.call(e,r)||!(r in e)||!_e(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}function as(t){const e=y.useMounted();return[t[0],x.useCallback(r=>{if(e())return t[1](r)},[e,t[1]])]}var I="top",X="bottom",Y="right",V="left",Je="auto",Ce=[I,X,Y,V],ve="start",Ae="end",os="clippingParents",kt="viewport",Ne="popper",ls="reference",ft=Ce.reduce(function(t,e){return t.concat([e+"-"+ve,e+"-"+Ae])},[]),Mt=[].concat(Ce,[Je]).reduce(function(t,e){return t.concat([e,e+"-"+ve,e+"-"+Ae])},[]),cs="beforeRead",ds="read",us="afterRead",ps="beforeMain",ms="main",xs="afterMain",fs="beforeWrite",hs="write",js="afterWrite",vs=[cs,ds,us,ps,ms,xs,fs,hs,js];function ee(t){return t.split("-")[0]}function z(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function xe(t){var e=z(t).Element;return t instanceof e||t instanceof Element}function te(t){var e=z(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Qe(t){if(typeof ShadowRoot>"u")return!1;var e=z(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var me=Math.max,Le=Math.min,ge=Math.round;function Ye(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $t(){return!/^((?!chrome|android).)*safari/i.test(Ye())}function Ee(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),i=1,l=1;e&&te(t)&&(i=t.offsetWidth>0&&ge(n.width)/t.offsetWidth||1,l=t.offsetHeight>0&&ge(n.height)/t.offsetHeight||1);var a=xe(t)?z(t):window,o=a.visualViewport,c=!$t()&&r,p=(n.left+(c&&o?o.offsetLeft:0))/i,u=(n.top+(c&&o?o.offsetTop:0))/l,f=n.width/i,h=n.height/l;return{width:f,height:h,top:u,right:p+f,bottom:u+h,left:p,x:p,y:u}}function Ze(t){var e=Ee(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function Bt(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Qe(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ue(t){return t?(t.nodeName||"").toLowerCase():null}function le(t){return z(t).getComputedStyle(t)}function gs(t){return["table","td","th"].indexOf(ue(t))>=0}function pe(t){return((xe(t)?t.ownerDocument:t.document)||window.document).documentElement}function Te(t){return ue(t)==="html"?t:t.assignedSlot||t.parentNode||(Qe(t)?t.host:null)||pe(t)}function ht(t){return!te(t)||le(t).position==="fixed"?null:t.offsetParent}function Es(t){var e=/firefox/i.test(Ye()),r=/Trident/i.test(Ye());if(r&&te(t)){var n=le(t);if(n.position==="fixed")return null}var i=Te(t);for(Qe(i)&&(i=i.host);te(i)&&["html","body"].indexOf(ue(i))<0;){var l=le(i);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return i;i=i.parentNode}return null}function ke(t){for(var e=z(t),r=ht(t);r&&gs(r)&&le(r).position==="static";)r=ht(r);return r&&(ue(r)==="html"||ue(r)==="body"&&le(r).position==="static")?e:r||Es(t)||e}function et(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Oe(t,e,r){return me(t,Le(e,r))}function Rs(t,e,r){var n=Oe(t,e,r);return n>r?r:n}function Lt(){return{top:0,right:0,bottom:0,left:0}}function Tt(t){return Object.assign({},Lt(),t)}function Ft(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var bs=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Tt(typeof e!="number"?e:Ft(e,Ce))};function ys(t){var e,r=t.state,n=t.name,i=t.options,l=r.elements.arrow,a=r.modifiersData.popperOffsets,o=ee(r.placement),c=et(o),p=[V,Y].indexOf(o)>=0,u=p?"height":"width";if(!(!l||!a)){var f=bs(i.padding,r),h=Ze(l),d=c==="y"?I:V,j=c==="y"?X:Y,v=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],m=a[c]-r.rects.reference[c],R=ke(l),g=R?c==="y"?R.clientHeight||0:R.clientWidth||0:0,N=v/2-m/2,E=f[d],_=g-h[u]-f[j],w=g/2-h[u]/2+N,O=Oe(E,w,_),M=c;r.modifiersData[n]=(e={},e[M]=O,e.centerOffset=O-w,e)}}function ws(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||Bt(e.elements.popper,i)&&(e.elements.arrow=i))}const Ns={name:"arrow",enabled:!0,phase:"main",fn:ys,effect:ws,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Re(t){return t.split("-")[1]}var _s={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Os(t,e){var r=t.x,n=t.y,i=e.devicePixelRatio||1;return{x:ge(r*i)/i||0,y:ge(n*i)/i||0}}function jt(t){var e,r=t.popper,n=t.popperRect,i=t.placement,l=t.variation,a=t.offsets,o=t.position,c=t.gpuAcceleration,p=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=a.x,d=h===void 0?0:h,j=a.y,v=j===void 0?0:j,m=typeof u=="function"?u({x:d,y:v}):{x:d,y:v};d=m.x,v=m.y;var R=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),N=V,E=I,_=window;if(p){var w=ke(r),O="clientHeight",M="clientWidth";if(w===z(r)&&(w=pe(r),le(w).position!=="static"&&o==="absolute"&&(O="scrollHeight",M="scrollWidth")),w=w,i===I||(i===V||i===Y)&&l===Ae){E=X;var $=f&&w===_&&_.visualViewport?_.visualViewport.height:w[O];v-=$-n.height,v*=c?1:-1}if(i===V||(i===I||i===X)&&l===Ae){N=Y;var C=f&&w===_&&_.visualViewport?_.visualViewport.width:w[M];d-=C-n.width,d*=c?1:-1}}var k=Object.assign({position:o},p&&_s),L=u===!0?Os({x:d,y:v},z(r)):{x:d,y:v};if(d=L.x,v=L.y,c){var S;return Object.assign({},k,(S={},S[E]=g?"0":"",S[N]=R?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+d+"px, "+v+"px)":"translate3d("+d+"px, "+v+"px, 0)",S))}return Object.assign({},k,(e={},e[E]=g?v+"px":"",e[N]=R?d+"px":"",e.transform="",e))}function Ss(t){var e=t.state,r=t.options,n=r.gpuAcceleration,i=n===void 0?!0:n,l=r.adaptive,a=l===void 0?!0:l,o=r.roundOffsets,c=o===void 0?!0:o,p={placement:ee(e.placement),variation:Re(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,jt(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,jt(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Ds={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ss,data:{}};var Me={passive:!0};function As(t){var e=t.state,r=t.instance,n=t.options,i=n.scroll,l=i===void 0?!0:i,a=n.resize,o=a===void 0?!0:a,c=z(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&p.forEach(function(u){u.addEventListener("scroll",r.update,Me)}),o&&c.addEventListener("resize",r.update,Me),function(){l&&p.forEach(function(u){u.removeEventListener("scroll",r.update,Me)}),o&&c.removeEventListener("resize",r.update,Me)}}const Ps={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:As,data:{}};var Cs={left:"right",right:"left",bottom:"top",top:"bottom"};function $e(t){return t.replace(/left|right|bottom|top/g,function(e){return Cs[e]})}var ks={start:"end",end:"start"};function vt(t){return t.replace(/start|end/g,function(e){return ks[e]})}function tt(t){var e=z(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function st(t){return Ee(pe(t)).left+tt(t).scrollLeft}function Ms(t,e){var r=z(t),n=pe(t),i=r.visualViewport,l=n.clientWidth,a=n.clientHeight,o=0,c=0;if(i){l=i.width,a=i.height;var p=$t();(p||!p&&e==="fixed")&&(o=i.offsetLeft,c=i.offsetTop)}return{width:l,height:a,x:o+st(t),y:c}}function $s(t){var e,r=pe(t),n=tt(t),i=(e=t.ownerDocument)==null?void 0:e.body,l=me(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=me(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-n.scrollLeft+st(t),c=-n.scrollTop;return le(i||r).direction==="rtl"&&(o+=me(r.clientWidth,i?i.clientWidth:0)-l),{width:l,height:a,x:o,y:c}}function rt(t){var e=le(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Ut(t){return["html","body","#document"].indexOf(ue(t))>=0?t.ownerDocument.body:te(t)&&rt(t)?t:Ut(Te(t))}function Se(t,e){var r;e===void 0&&(e=[]);var n=Ut(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),l=z(n),a=i?[l].concat(l.visualViewport||[],rt(n)?n:[]):n,o=e.concat(a);return i?o:o.concat(Se(Te(a)))}function Ke(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Bs(t,e){var r=Ee(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function gt(t,e,r){return e===kt?Ke(Ms(t,r)):xe(e)?Bs(e,r):Ke($s(pe(t)))}function Ls(t){var e=Se(Te(t)),r=["absolute","fixed"].indexOf(le(t).position)>=0,n=r&&te(t)?ke(t):t;return xe(n)?e.filter(function(i){return xe(i)&&Bt(i,n)&&ue(i)!=="body"}):[]}function Ts(t,e,r,n){var i=e==="clippingParents"?Ls(t):[].concat(e),l=[].concat(i,[r]),a=l[0],o=l.reduce(function(c,p){var u=gt(t,p,n);return c.top=me(u.top,c.top),c.right=Le(u.right,c.right),c.bottom=Le(u.bottom,c.bottom),c.left=me(u.left,c.left),c},gt(t,a,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function It(t){var e=t.reference,r=t.element,n=t.placement,i=n?ee(n):null,l=n?Re(n):null,a=e.x+e.width/2-r.width/2,o=e.y+e.height/2-r.height/2,c;switch(i){case I:c={x:a,y:e.y-r.height};break;case X:c={x:a,y:e.y+e.height};break;case Y:c={x:e.x+e.width,y:o};break;case V:c={x:e.x-r.width,y:o};break;default:c={x:e.x,y:e.y}}var p=i?et(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(l){case ve:c[p]=c[p]-(e[u]/2-r[u]/2);break;case Ae:c[p]=c[p]+(e[u]/2-r[u]/2);break}}return c}function Pe(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,l=r.strategy,a=l===void 0?t.strategy:l,o=r.boundary,c=o===void 0?os:o,p=r.rootBoundary,u=p===void 0?kt:p,f=r.elementContext,h=f===void 0?Ne:f,d=r.altBoundary,j=d===void 0?!1:d,v=r.padding,m=v===void 0?0:v,R=Tt(typeof m!="number"?m:Ft(m,Ce)),g=h===Ne?ls:Ne,N=t.rects.popper,E=t.elements[j?g:h],_=Ts(xe(E)?E:E.contextElement||pe(t.elements.popper),c,u,a),w=Ee(t.elements.reference),O=It({reference:w,element:N,placement:i}),M=Ke(Object.assign({},N,O)),$=h===Ne?M:w,C={top:_.top-$.top+R.top,bottom:$.bottom-_.bottom+R.bottom,left:_.left-$.left+R.left,right:$.right-_.right+R.right},k=t.modifiersData.offset;if(h===Ne&&k){var L=k[i];Object.keys(C).forEach(function(S){var T=[Y,X].indexOf(S)>=0?1:-1,B=[I,X].indexOf(S)>=0?"y":"x";C[S]+=L[B]*T})}return C}function Fs(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,l=r.rootBoundary,a=r.padding,o=r.flipVariations,c=r.allowedAutoPlacements,p=c===void 0?Mt:c,u=Re(n),f=u?o?ft:ft.filter(function(j){return Re(j)===u}):Ce,h=f.filter(function(j){return p.indexOf(j)>=0});h.length===0&&(h=f);var d=h.reduce(function(j,v){return j[v]=Pe(t,{placement:v,boundary:i,rootBoundary:l,padding:a})[ee(v)],j},{});return Object.keys(d).sort(function(j,v){return d[j]-d[v]})}function Us(t){if(ee(t)===Je)return[];var e=$e(t);return[vt(t),e,vt(e)]}function Is(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,l=i===void 0?!0:i,a=r.altAxis,o=a===void 0?!0:a,c=r.fallbackPlacements,p=r.padding,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,d=r.flipVariations,j=d===void 0?!0:d,v=r.allowedAutoPlacements,m=e.options.placement,R=ee(m),g=R===m,N=c||(g||!j?[$e(m)]:Us(m)),E=[m].concat(N).reduce(function(q,Q){return q.concat(ee(Q)===Je?Fs(e,{placement:Q,boundary:u,rootBoundary:f,padding:p,flipVariations:j,allowedAutoPlacements:v}):Q)},[]),_=e.rects.reference,w=e.rects.popper,O=new Map,M=!0,$=E[0],C=0;C<E.length;C++){var k=E[C],L=ee(k),S=Re(k)===ve,T=[I,X].indexOf(L)>=0,B=T?"width":"height",U=Pe(e,{placement:k,boundary:u,rootBoundary:f,altBoundary:h,padding:p}),W=T?S?Y:V:S?X:I;_[B]>w[B]&&(W=$e(W));var de=$e(W),re=[];if(l&&re.push(U[L]<=0),o&&re.push(U[W]<=0,U[de]<=0),re.every(function(q){return q})){$=k,M=!1;break}O.set(k,re)}if(M)for(var ne=j?3:1,be=function(Q){var ie=E.find(function(he){var K=O.get(he);if(K)return K.slice(0,Q).every(function(ye){return ye})});if(ie)return $=ie,"break"},A=ne;A>0;A--){var fe=be(A);if(fe==="break")break}e.placement!==$&&(e.modifiersData[n]._skip=!0,e.placement=$,e.reset=!0)}}const Vs={name:"flip",enabled:!0,phase:"main",fn:Is,requiresIfExists:["offset"],data:{_skip:!1}};function Et(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Rt(t){return[I,Y,X,V].some(function(e){return t[e]>=0})}function Ws(t){var e=t.state,r=t.name,n=e.rects.reference,i=e.rects.popper,l=e.modifiersData.preventOverflow,a=Pe(e,{elementContext:"reference"}),o=Pe(e,{altBoundary:!0}),c=Et(a,n),p=Et(o,i,l),u=Rt(c),f=Rt(p);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Hs={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ws};function zs(t,e,r){var n=ee(t),i=[V,I].indexOf(n)>=0?-1:1,l=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=l[0],o=l[1];return a=a||0,o=(o||0)*i,[V,Y].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}function qs(t){var e=t.state,r=t.options,n=t.name,i=r.offset,l=i===void 0?[0,0]:i,a=Mt.reduce(function(u,f){return u[f]=zs(f,e.rects,l),u},{}),o=a[e.placement],c=o.x,p=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=p),e.modifiersData[n]=a}const Xs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qs};function Ys(t){var e=t.state,r=t.name;e.modifiersData[r]=It({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ks={name:"popperOffsets",enabled:!0,phase:"read",fn:Ys,data:{}};function Gs(t){return t==="x"?"y":"x"}function Js(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,l=i===void 0?!0:i,a=r.altAxis,o=a===void 0?!1:a,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,f=r.padding,h=r.tether,d=h===void 0?!0:h,j=r.tetherOffset,v=j===void 0?0:j,m=Pe(e,{boundary:c,rootBoundary:p,padding:f,altBoundary:u}),R=ee(e.placement),g=Re(e.placement),N=!g,E=et(R),_=Gs(E),w=e.modifiersData.popperOffsets,O=e.rects.reference,M=e.rects.popper,$=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,C=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(w){if(l){var S,T=E==="y"?I:V,B=E==="y"?X:Y,U=E==="y"?"height":"width",W=w[E],de=W+m[T],re=W-m[B],ne=d?-M[U]/2:0,be=g===ve?O[U]:M[U],A=g===ve?-M[U]:-O[U],fe=e.elements.arrow,q=d&&fe?Ze(fe):{width:0,height:0},Q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Lt(),ie=Q[T],he=Q[B],K=Oe(0,O[U],q[U]),ye=N?O[U]/2-ne-K-ie-C.mainAxis:be-K-ie-C.mainAxis,Fe=N?-O[U]/2+ne+K+he+C.mainAxis:A+K+he+C.mainAxis,F=e.elements.arrow&&ke(e.elements.arrow),je=F?E==="y"?F.clientTop||0:F.clientLeft||0:0,we=(S=k?.[E])!=null?S:0,it=W+ye-we-je,at=W+Fe-we,Ue=Oe(d?Le(de,it):de,W,d?me(re,at):re);w[E]=Ue,L[E]=Ue-W}if(o){var Ie,Ve=E==="x"?I:V,We=E==="x"?X:Y,Z=w[_],b=_==="y"?"height":"width",H=Z+m[Ve],ot=Z-m[We],He=[I,V].indexOf(R)!==-1,lt=(Ie=k?.[_])!=null?Ie:0,ct=He?H:Z-O[b]-M[b]-lt+C.altAxis,dt=He?Z+O[b]+M[b]-lt-C.altAxis:ot,ut=d&&He?Rs(ct,Z,dt):Oe(d?ct:H,Z,d?dt:ot);w[_]=ut,L[_]=ut-Z}e.modifiersData[n]=L}}const Qs={name:"preventOverflow",enabled:!0,phase:"main",fn:Js,requiresIfExists:["offset"]};function Zs(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function er(t){return t===z(t)||!te(t)?tt(t):Zs(t)}function tr(t){var e=t.getBoundingClientRect(),r=ge(e.width)/t.offsetWidth||1,n=ge(e.height)/t.offsetHeight||1;return r!==1||n!==1}function sr(t,e,r){r===void 0&&(r=!1);var n=te(e),i=te(e)&&tr(e),l=pe(e),a=Ee(t,i,r),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((ue(e)!=="body"||rt(l))&&(o=er(e)),te(e)?(c=Ee(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):l&&(c.x=st(l))),{x:a.left+o.scrollLeft-c.x,y:a.top+o.scrollTop-c.y,width:a.width,height:a.height}}function rr(t){var e=new Map,r=new Set,n=[];t.forEach(function(l){e.set(l.name,l)});function i(l){r.add(l.name);var a=[].concat(l.requires||[],l.requiresIfExists||[]);a.forEach(function(o){if(!r.has(o)){var c=e.get(o);c&&i(c)}}),n.push(l)}return t.forEach(function(l){r.has(l.name)||i(l)}),n}function nr(t){var e=rr(t);return vs.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function ir(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function ar(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var bt={placement:"bottom",modifiers:[],strategy:"absolute"};function yt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function or(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,l=i===void 0?bt:i;return function(o,c,p){p===void 0&&(p=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},bt,l),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},f=[],h=!1,d={state:u,setOptions:function(R){var g=typeof R=="function"?R(u.options):R;v(),u.options=Object.assign({},l,u.options,g),u.scrollParents={reference:xe(o)?Se(o):o.contextElement?Se(o.contextElement):[],popper:Se(c)};var N=nr(ar([].concat(n,u.options.modifiers)));return u.orderedModifiers=N.filter(function(E){return E.enabled}),j(),d.update()},forceUpdate:function(){if(!h){var R=u.elements,g=R.reference,N=R.popper;if(yt(g,N)){u.rects={reference:sr(g,ke(N),u.options.strategy==="fixed"),popper:Ze(N)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var _=u.orderedModifiers[E],w=_.fn,O=_.options,M=O===void 0?{}:O,$=_.name;typeof w=="function"&&(u=w({state:u,options:M,name:$,instance:d})||u)}}}},update:ir(function(){return new Promise(function(m){d.forceUpdate(),m(u)})}),destroy:function(){v(),h=!0}};if(!yt(o,c))return d;d.setOptions(p).then(function(m){!h&&p.onFirstUpdate&&p.onFirstUpdate(m)});function j(){u.orderedModifiers.forEach(function(m){var R=m.name,g=m.options,N=g===void 0?{}:g,E=m.effect;if(typeof E=="function"){var _=E({state:u,name:R,instance:d,options:N}),w=function(){};f.push(_||w)}})}function v(){f.forEach(function(m){return m()}),f=[]}return d}}const lr=or({defaultModifiers:[Hs,Ks,Ds,Ps,Xs,Vs,Qs,Ns]}),cr=["enabled","placement","strategy","modifiers"];function dr(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}const ur={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},pr={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:r}=t.elements;if("removeAttribute"in e){const n=(e.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==r.id);n.length?e.setAttribute("aria-describedby",n.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:r,reference:n}=t.elements,i=(e=r.getAttribute("role"))==null?void 0:e.toLowerCase();if(r.id&&i==="tooltip"&&"setAttribute"in n){const l=n.getAttribute("aria-describedby");if(l&&l.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",l?`${l},${r.id}`:r.id)}}},mr=[];function xr(t,e,r={}){let{enabled:n=!0,placement:i="bottom",strategy:l="absolute",modifiers:a=mr}=r,o=dr(r,cr);const c=x.useRef(a),p=x.useRef(),u=x.useCallback(()=>{var m;(m=p.current)==null||m.update()},[]),f=x.useCallback(()=>{var m;(m=p.current)==null||m.forceUpdate()},[]),[h,d]=as(x.useState({placement:i,update:u,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),j=x.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:m})=>{const R={},g={};Object.keys(m.elements).forEach(N=>{R[N]=m.styles[N],g[N]=m.attributes[N]}),d({state:m,styles:R,attributes:g,update:u,forceUpdate:f,placement:m.placement})}}),[u,f,d]),v=x.useMemo(()=>(_e(c.current,a)||(c.current=a),c.current),[a]);return x.useEffect(()=>{!p.current||!n||p.current.setOptions({placement:i,strategy:l,modifiers:[...v,j,ur]})},[l,i,j,n,v]),x.useEffect(()=>{if(!(!n||t==null||e==null))return p.current=lr(t,e,Object.assign({},o,{placement:i,strategy:l,modifiers:[...v,pr,j]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,d(m=>Object.assign({},m,{attributes:{},styles:{popper:{}}})))}},[n,t,e]),h}const wt=()=>{};function fr(t){return t.button===0}function hr(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const Be=t=>t&&("current"in t?t.current:t),Nt={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function jr(t,e=wt,{disabled:r,clickTrigger:n="click"}={}){const i=x.useRef(!1),l=x.useRef(!1),a=x.useCallback(p=>{const u=Be(t);Ge.warning(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||hr(p)||!fr(p)||!!y.contains(u,p.target)||l.current,l.current=!1},[t]),o=y.useEventCallback(p=>{const u=Be(t);u&&y.contains(u,p.target)?l.current=!0:l.current=!1}),c=y.useEventCallback(p=>{i.current||e(p)});x.useEffect(()=>{var p,u;if(r||t==null)return;const f=y.ownerDocument(Be(t)),h=f.defaultView||window;let d=(p=h.event)!=null?p:(u=h.parent)==null?void 0:u.event,j=null;Nt[n]&&(j=y.listen(f,Nt[n],o,!0));const v=y.listen(f,n,a,!0),m=y.listen(f,n,g=>{if(g===d){d=void 0;return}c(g)});let R=[];return"ontouchstart"in f.documentElement&&(R=[].slice.call(f.body.children).map(g=>y.listen(g,"mousemove",wt))),()=>{j?.(),v(),m(),R.forEach(g=>g())}},[t,r,n,a,o,c])}const vr=()=>{};function gr(t,e,{disabled:r,clickTrigger:n}={}){const i=e||vr;jr(t,i,{disabled:r,clickTrigger:n});const l=y.useEventCallback(a=>{y.isEscKey(a)&&i(a)});x.useEffect(()=>{if(r||t==null)return;const a=y.ownerDocument(Be(t));let o=(a.defaultView||window).event;const c=y.listen(a,"keyup",p=>{if(p===o){o=void 0;return}l(p)});return()=>{c()}},[t,r,l])}function Er(t){const e={};return Array.isArray(t)?(t?.forEach(r=>{e[r.name]=r}),e):t||e}function Rr(t={}){return Array.isArray(t)?t:Object.keys(t).map(e=>(t[e].name=e,t[e]))}function br({enabled:t,enableEvents:e,placement:r,flip:n,offset:i,fixed:l,containerPadding:a,arrowElement:o,popperConfig:c={}}){var p,u,f,h;const d=Er(c.modifiers);return Object.assign({},c,{placement:r,enabled:t,strategy:l?"fixed":c.strategy,modifiers:Rr(Object.assign({},d,{eventListeners:{enabled:e,options:(p=d.eventListeners)==null?void 0:p.options},preventOverflow:Object.assign({},d.preventOverflow,{options:Object.assign({padding:a},(u=d.preventOverflow)==null?void 0:u.options)}),offset:{options:Object.assign({offset:i},(f=d.offset)==null?void 0:f.options)},arrow:Object.assign({},d.arrow,{enabled:!!o,options:Object.assign({},(h=d.arrow)==null?void 0:h.options,{element:o})}),flip:Object.assign({enabled:!!n},d.flip)}))})}const Vt=oe.forwardRef((t,e)=>{const{flip:r,offset:n,placement:i,containerPadding:l,popperConfig:a={},transition:o,runTransition:c}=t,[p,u]=pt(),[f,h]=pt(),d=y.useMergedRefs(u,e),j=y.useWaitForDOMRef(t.container),v=y.useWaitForDOMRef(t.target),[m,R]=x.useState(!t.show),g=xr(v,p,br({placement:i,enableEvents:!!t.show,containerPadding:l||5,flip:r,offset:n,arrowElement:f,popperConfig:a}));t.show&&m&&R(!1);const N=(...k)=>{R(!0),t.onExited&&t.onExited(...k)},E=t.show||!m;if(gr(p,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!E)return null;const{onExit:_,onExiting:w,onEnter:O,onEntering:M,onEntered:$}=t;let C=t.children(Object.assign({},g.attributes.popper,{style:g.styles.popper,ref:d}),{popper:g,placement:i,show:!!t.show,arrowProps:Object.assign({},g.attributes.arrow,{style:g.styles.arrow,ref:h})});return C=y.renderTransition(o,c,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:C,onExit:_,onExiting:w,onExited:N,onEnter:O,onEntering:M,onEntered:$}),j?Gt.createPortal(C,j):null});Vt.displayName="Overlay";const yr=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",wr=typeof document<"u",Nr=wr||yr?x.useLayoutEffect:x.useEffect,Wt=oe.forwardRef(({className:t,bsPrefix:e,as:r="div",...n},i)=>(e=y.useBootstrapPrefix(e,"popover-header"),s.jsxRuntimeExports.jsx(r,{ref:i,className:ce.classNames(t,e),...n})));Wt.displayName="PopoverHeader";const nt=oe.forwardRef(({className:t,bsPrefix:e,as:r="div",...n},i)=>(e=y.useBootstrapPrefix(e,"popover-body"),s.jsxRuntimeExports.jsx(r,{ref:i,className:ce.classNames(t,e),...n})));nt.displayName="PopoverBody";function Ht(t,e){let r=t;return t==="left"?r=e?"end":"start":t==="right"&&(r=e?"start":"end"),r}function zt(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const qt=oe.forwardRef(({bsPrefix:t,placement:e="right",className:r,style:n,children:i,body:l,arrowProps:a,hasDoneInitialMeasure:o,popper:c,show:p,...u},f)=>{const h=y.useBootstrapPrefix(t,"popover"),d=y.useIsRTL(),[j]=e?.split("-")||[],v=Ht(j,d);let m=n;return p&&!o&&(m={...n,...zt(c?.strategy)}),s.jsxRuntimeExports.jsxs("div",{ref:f,role:"tooltip",style:m,"x-placement":j,className:ce.classNames(r,h,j&&`bs-popover-${v}`),...u,children:[s.jsxRuntimeExports.jsx("div",{className:"popover-arrow",...a}),l?s.jsxRuntimeExports.jsx(nt,{children:i}):i]})});qt.displayName="Popover";const _r=Object.assign(qt,{Header:Wt,Body:nt,POPPER_OFFSET:[0,8]}),Xt=oe.forwardRef(({bsPrefix:t,placement:e="right",className:r,style:n,children:i,arrowProps:l,hasDoneInitialMeasure:a,popper:o,show:c,...p},u)=>{t=y.useBootstrapPrefix(t,"tooltip");const f=y.useIsRTL(),[h]=e?.split("-")||[],d=Ht(h,f);let j=n;return c&&!a&&(j={...n,...zt(o?.strategy)}),s.jsxRuntimeExports.jsxs("div",{ref:u,style:j,role:"tooltip","x-placement":h,className:ce.classNames(r,t,`bs-tooltip-${d}`),...p,children:[s.jsxRuntimeExports.jsx("div",{className:"tooltip-arrow",...l}),s.jsxRuntimeExports.jsx("div",{className:`${t}-inner`,children:i})]})});Xt.displayName="Tooltip";const G=Object.assign(Xt,{TOOLTIP_OFFSET:[0,6]});function Or(t){const e=x.useRef(null),r=y.useBootstrapPrefix(void 0,"popover"),n=y.useBootstrapPrefix(void 0,"tooltip"),i=x.useMemo(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(e.current){if(y.hasClass(e.current,r))return _r.POPPER_OFFSET;if(y.hasClass(e.current,n))return G.TOOLTIP_OFFSET}return[0,0]}}}),[t,r,n]);return[e,[i]]}function Sr(t,e){const{ref:r}=t,{ref:n}=e;t.ref=r.__wrapped||(r.__wrapped=i=>r(y.safeFindDOMNode(i))),e.ref=n.__wrapped||(n.__wrapped=i=>n(y.safeFindDOMNode(i)))}const Yt=oe.forwardRef(({children:t,transition:e=y.Fade,popperConfig:r={},rootClose:n=!1,placement:i="top",show:l=!1,...a},o)=>{const c=x.useRef({}),[p,u]=x.useState(null),[f,h]=Or(a.offset),d=y.useMergedRefs$1(o,f),j=e===!0?y.Fade:e||void 0,v=y.useEventCallback$1(m=>{u(m),r==null||r.onFirstUpdate==null||r.onFirstUpdate(m)});return Nr(()=>{p&&a.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[p,a.target]),x.useEffect(()=>{l||u(null)},[l]),s.jsxRuntimeExports.jsx(Vt,{...a,ref:d,popperConfig:{...r,modifiers:h.concat(r.modifiers||[]),onFirstUpdate:v},transition:j,rootClose:n,placement:i,show:l,children:(m,{arrowProps:R,popper:g,show:N})=>{var E;Sr(m,R);const _=g?.placement,w=Object.assign(c.current,{state:g?.state,scheduleUpdate:g?.update,placement:_,outOfBoundaries:(g==null||(E=g.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:r.strategy}),O=!!p;return typeof t=="function"?t({...m,placement:_,show:N,...!e&&N&&{className:"show"},popper:w,arrowProps:R,hasDoneInitialMeasure:O}):oe.cloneElement(t,{...m,placement:_,arrowProps:R,popper:w,hasDoneInitialMeasure:O,className:ce.classNames(t.props.className,!e&&N&&"show"),style:{...t.props.style,...m.style}})}})});Yt.displayName="Overlay";function Dr(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function _t(t,e,r){const[n]=e,i=n.currentTarget,l=n.relatedTarget||n.nativeEvent[r];(!l||l!==i)&&!y.contains(i,l)&&t(...e)}y.PropTypes.oneOf(["click","hover","focus"]);const ae=({trigger:t=["hover","focus"],overlay:e,children:r,popperConfig:n={},show:i,defaultShow:l=!1,onToggle:a,delay:o,placement:c,flip:p=c&&c.indexOf("auto")!==-1,...u})=>{const f=x.useRef(null),h=y.useMergedRefs$1(f,y.getChildRef(r)),d=ns(),j=x.useRef(""),[v,m]=is(i,l,a),R=Dr(o),{onFocus:g,onBlur:N,onClick:E}=typeof r!="function"?oe.Children.only(r).props:{},_=B=>{h(y.safeFindDOMNode(B))},w=x.useCallback(()=>{if(d.clear(),j.current="show",!R.show){m(!0);return}d.set(()=>{j.current==="show"&&m(!0)},R.show)},[R.show,m,d]),O=x.useCallback(()=>{if(d.clear(),j.current="hide",!R.hide){m(!1);return}d.set(()=>{j.current==="hide"&&m(!1)},R.hide)},[R.hide,m,d]),M=x.useCallback((...B)=>{w(),g?.(...B)},[w,g]),$=x.useCallback((...B)=>{O(),N?.(...B)},[O,N]),C=x.useCallback((...B)=>{m(!v),E?.(...B)},[E,m,v]),k=x.useCallback((...B)=>{_t(w,B,"fromElement")},[w]),L=x.useCallback((...B)=>{_t(O,B,"toElement")},[O]),S=t==null?[]:[].concat(t),T={ref:_};return S.indexOf("click")!==-1&&(T.onClick=C),S.indexOf("focus")!==-1&&(T.onFocus=M,T.onBlur=$),S.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Ge.warning(S.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),T.onMouseOver=k,T.onMouseOut=L),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[typeof r=="function"?r(T):x.cloneElement(r,T),s.jsxRuntimeExports.jsx(Yt,{...u,show:v,onHide:O,flip:p,placement:c,popperConfig:n,target:f.current,children:e})]})};function Ot(t){const{profile_photo:e,width:r,alt:n,hideDefault:i,activityStatus:l,user_id:a}=t;return e?.key?s.jsxRuntimeExports.jsxs("div",{"data-using-react-profile-photo":"true",className:`profile-photo-wrap ${r?"":"w-100 h-100"}`,style:{...r&&{width:r,height:r}},children:[s.jsxRuntimeExports.jsx(St,{activityStatus:l,user_id:a}),s.jsxRuntimeExports.jsx("img",{className:"w-100 h-100",src:`${process.env.NEXT_PUBLIC_CDN}${e.key}`,style:{objectFit:"contain"},alt:n||"Profile photo of a user"})]}):s.jsxRuntimeExports.jsxs("div",{"data-using-react-profile-photo":"true",className:ce.classNames("profile-photo-wrap",{"w-100 h-100":!r,"d-none":i}),style:{...r&&{width:r,height:r}},children:[s.jsxRuntimeExports.jsx(St,{activityStatus:l,user_id:a}),s.jsxRuntimeExports.jsx("img",{className:"w-100 h-100",src:`${process.env.NEXT_PUBLIC_CDN}profile_photos/starter/articles.jpg`,style:{objectFit:"contain"},alt:n||"Profile photo of a user"})]})}function St({activityStatus:t,user_id:e}){if(!(!t||!e))return s.jsxRuntimeExports.jsx("div",{"data-user_id":e,className:ce.classNames("online-status",{"status-online":t?.status=="Online"||e=="630f0b337c52851e754b03f7","status-offline":t?.status=="Offline","status-away":t?.status=="Away","activity-active":!1})})}const Ar=t=>(e,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,t(e,r,n)),Pr=De.withMiddleware(De.useSWR,Ar),Cr=t=>De.axios.get(t.url,{params:{user_id:t.user_id}}).then(e=>e.data),kr={dedupingInterval:1e3*60*1,focusThrottleInterval:1e3*60*1},Dt=t=>{const{data:e,error:r,isLoading:n,isValidating:i,mutate:l}=Pr(t?.user_id?{url:process.env.NODE_ENV==="development"?"http://localhost:3001/api/user-public/getUserDetails":"https://articles.media/api/user-public/getUserDetails",user_id:t.user_id}:null,Cr,kr);return{data:e,error:r,isLoading:n,isValidating:i,mutate:l}};function qe({className:t,noOutline:e,children:r,inline:n}){const[l,a]=x.useState();if(x.useEffect(()=>{a(!0)},[]),r&&(!1)?.roles?.isDev&&l)return s.jsxRuntimeExports.jsx("div",{className:`is-dev-content ${e&&"no-outline"} ${t} ${n&&"d-inline-block"}`,children:r})}const At=1e3;function Mr(t,e,r){const n=(t-e)/(r-e)*100;return Math.round(n*At)/At}function Pt({min:t,now:e,max:r,label:n,visuallyHidden:i,striped:l,animated:a,className:o,style:c,variant:p,bsPrefix:u,...f},h){return s.jsxRuntimeExports.jsx("div",{ref:h,...f,role:"progressbar",className:ce.classNames(o,`${u}-bar`,{[`bg-${p}`]:p,[`${u}-bar-animated`]:a,[`${u}-bar-striped`]:a||l}),style:{width:`${Mr(e,t,r)}%`,...c},"aria-valuenow":e,"aria-valuemin":t,"aria-valuemax":r,children:i?s.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:n}):n})}const J=oe.forwardRef(({isChild:t=!1,...e},r)=>{const n={min:0,max:100,animated:!1,visuallyHidden:!1,striped:!1,...e};if(n.bsPrefix=y.useBootstrapPrefix(n.bsPrefix,"progress"),t)return Pt(n,r);const{min:i,now:l,max:a,label:o,visuallyHidden:c,striped:p,animated:u,bsPrefix:f,variant:h,className:d,children:j,...v}=n;return s.jsxRuntimeExports.jsx("div",{ref:r,...v,className:ce.classNames(d,f),children:j?Ge.map(j,m=>x.cloneElement(m,{isChild:!0})):Pt({min:i,now:l,max:a,label:o,visuallyHidden:c,striped:p,animated:u,bsPrefix:f,variant:h},r)})});J.displayName="ProgressBar";const se={SIGN_IN:"/login",SIGN_UP:"/signup",HOME:"/",PROPOSALS:"/politics/proposals",PROPOSALS_SUBMISSIONS_ALL:"/politics/proposals/submissions",STORIES:"/news/stories",ISSUES:"/news/issues",MYTHS:"/news/myths"};function $r({activeLayoutProposalSentiments:t,populated_user:e,usersProposalSentiments:r,setShowFullStanceDetails:n,showFullStanceDetails:i,userData:l}){return s.jsxRuntimeExports.jsx("div",{className:"row mx-0 mb-2",children:[{name:`${e?.display_name||l.display_name}`,data:t||{}},{name:"You",data:r||{}}].map(a=>a.name=="You"?s.jsxRuntimeExports.jsx("div",{className:"col-lg-6 px-1",children:s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm h-100",children:[s.jsxRuntimeExports.jsx("div",{className:"card-header",children:s.jsxRuntimeExports.jsx("b",{children:a.name})}),s.jsxRuntimeExports.jsx("div",{className:"card-body p-2",children:s.jsxRuntimeExports.jsx("small",{children:"Login or create an account to compare your political stance with this user!"})}),s.jsxRuntimeExports.jsxs("div",{className:"card-footer",children:[s.jsxRuntimeExports.jsx(D.Link,{href:se.SIGN_IN,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,className:"",children:"Sign In"})}),s.jsxRuntimeExports.jsx(D.Link,{href:se.SIGN_UP,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,className:"",children:"Sign Up"})})]})]})},a.name):s.jsxRuntimeExports.jsx("div",{className:"col-lg-6 px-1",children:s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm",children:[s.jsxRuntimeExports.jsx("div",{className:"card-header",onClick:()=>{console.log(a.data)},children:s.jsxRuntimeExports.jsx("b",{children:a.name})}),s.jsxRuntimeExports.jsxs("div",{className:"card-body py-2 px-2 small",children:[s.jsxRuntimeExports.jsxs("div",{className:"",children:[s.jsxRuntimeExports.jsxs("div",{className:"small",children:["Fundamental: ",a?.data?.fundamental?.filter(o=>a.data?.user_sentiments?.find(c=>c.proposal_id==o._id)?o:null).length,"/",a?.data?.fundamental?.length]}),s.jsxRuntimeExports.jsx(J,{striped:!0,variant:"dark",className:"shadow-articles mb-2",now:(a.data?.fundamental?.filter(o=>a.data?.user_sentiments?.find(c=>c.proposal_id==o._id)?o:null).length/a.data?.fundamental?.length*100).toFixed(2),label:`${(a.data?.fundamental?.filter(o=>a.data?.user_sentiments?.find(c=>c.proposal_id==o._id)?o:null).length/a.data?.fundamental?.length*100).toFixed(2)}%`}),s.jsxRuntimeExports.jsxs(J,{className:"shadow-articles mb-2",style:{height:"10px"},children:[s.jsxRuntimeExports.jsx(J,{striped:!0,variant:"danger",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Disagree"&&o.populated_proposal.fundamental)?.length/a.data?.fundamental?.length*100).toFixed(2)}),s.jsxRuntimeExports.jsx(J,{striped:!0,variant:"warning",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Needs Work"&&o.populated_proposal.fundamental)?.length/a.data?.fundamental?.length*100).toFixed(2)}),s.jsxRuntimeExports.jsx(J,{striped:!0,variant:"success",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Agree"&&o.populated_proposal.fundamental)?.length/a.data?.fundamental?.length*100).toFixed(2)})]}),s.jsxRuntimeExports.jsxs("div",{className:"",children:["Disagree: ",a.data?.user_sentiments?.filter(o=>{let c=a.data?.fundamental.find(p=>p._id==o.proposal_id);return o.sentiment_status=="Disagree"&&c})?.length||0]}),s.jsxRuntimeExports.jsxs("div",{className:"",children:["Needs Work: ",a.data?.user_sentiments?.filter(o=>{let c=a.data?.fundamental.find(p=>p._id==o.proposal_id);return o.sentiment_status=="Needs Work"&&c})?.length||0]}),s.jsxRuntimeExports.jsxs("div",{className:"mb-2",children:["Agree: ",a.data?.user_sentiments?.filter(o=>{let c=a.data?.fundamental.find(p=>p._id==o.proposal_id);return o.sentiment_status=="Agree"&&c})?.length||0]})]}),!i&&s.jsxRuntimeExports.jsx("span",{onClick:()=>n(!0),className:"badge bg-articles-secondary shadow-articles badge-hover",children:"View More"}),i&&s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsxs("div",{className:"mb-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"small",children:["All: ",a.data?.user_sentiments?.length,"/",a.data?.total]}),s.jsxRuntimeExports.jsx(J,{striped:!0,animated:!0,variant:"dark",className:"shadow-articles mb-1",now:(a.data?.user_sentiments?.length/a.data?.total*100).toFixed(2),label:`${(a.data?.user_sentiments?.length/a.data?.total*100).toFixed(2)}%`}),s.jsxRuntimeExports.jsxs(J,{className:"shadow-articles mb-2",style:{height:"10px"},children:[s.jsxRuntimeExports.jsx(J,{striped:!0,animated:!0,variant:"danger",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Disagree")?.length/a.data?.total*100).toFixed(2)}),s.jsxRuntimeExports.jsx(J,{striped:!0,animated:!0,variant:"warning",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Needs Work")?.length/a.data?.total*100).toFixed(2)}),s.jsxRuntimeExports.jsx(J,{striped:!0,animated:!0,variant:"success",now:(a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Agree")?.length/a.data?.total*100).toFixed(2)})]}),s.jsxRuntimeExports.jsxs("div",{className:"",children:["Disagree: ",a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Disagree")?.length||0]}),s.jsxRuntimeExports.jsxs("div",{className:"",children:["Needs Work: ",a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Needs Work")?.length||0]}),s.jsxRuntimeExports.jsxs("div",{className:"mb-2",children:["Agree: ",a.data?.user_sentiments?.filter(o=>o.sentiment_status=="Agree")?.length||0]})]}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("p",{className:"mb-0",children:s.jsxRuntimeExports.jsxs("div",{className:"row",children:[s.jsxRuntimeExports.jsx("div",{className:"col-9",children:"Comments"}),s.jsxRuntimeExports.jsx("div",{className:"col-3",children:s.jsxRuntimeExports.jsx("b",{children:a.data?.user_comments?.length||0})}),s.jsxRuntimeExports.jsx("div",{className:"col-9",children:"Submissions"}),s.jsxRuntimeExports.jsx("div",{className:"col-3",children:s.jsxRuntimeExports.jsx("b",{children:a.data?.user_submissions})})]})})]})]})]})},a.name))})}function Br({activeLayoutProposalSentiments:t}){return s.jsxRuntimeExports.jsx("div",{children:t.user_comments?.filter(e=>!e.parent_id).map(e=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm border mb-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-header small",children:["Commented on ",s.jsxRuntimeExports.jsx("b",{children:e.populated_proposal.title})]}),s.jsxRuntimeExports.jsx("div",{className:"card-body small p-2",children:s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("span",{className:"small",children:D.format(new Date(e.date),"M/dd/yy")}),s.jsxRuntimeExports.jsx("div",{children:e.comment})]})}),s.jsxRuntimeExports.jsx("div",{className:"card-footer",children:s.jsxRuntimeExports.jsx(D.Link,{prefetch:!1,href:`${se.PROPOSALS}/${e.populated_proposal.url}?interaction_id=${e._id}`,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,children:"View"})})})]},e._id))})}function Lr({activeLayoutProposalSentiments:t}){return s.jsxRuntimeExports.jsx("div",{children:t.user_sentiments?.map(e=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm border mb-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-header small",children:["Gave their sentiment on ",s.jsxRuntimeExports.jsx("b",{children:e.populated_proposal.title})]}),s.jsxRuntimeExports.jsxs("div",{className:"card-body small p-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center border-bottom pb-1",children:[e.sentiment_status=="Agree"&&s.jsxRuntimeExports.jsx("div",{className:"badge shadow-articles bg-success",children:"Agree"}),e.sentiment_status=="Needs Work"&&s.jsxRuntimeExports.jsx("div",{className:"badge shadow-articles bg-warning text-dark",children:"Needs Work"}),e.sentiment_status=="Disagree"&&s.jsxRuntimeExports.jsx("div",{className:"badge shadow-articles bg-danger",children:"Disagree"}),s.jsxRuntimeExports.jsx("span",{className:"small ms-2",children:D.format(new Date(e.date),"M/dd/yy")})]}),s.jsxRuntimeExports.jsx("div",{className:"mt-1",children:e.comment})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer",children:s.jsxRuntimeExports.jsx(D.Link,{prefetch:!1,href:`https://articles.media/politics/proposals/${e.populated_proposal.url}?interaction_id=${e._id}`,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,children:"View"})})})]},e._id))})}function Tr({activeLayoutProposalSentiments:t,userProposalsSubmitted:e}){const[r,n]=x.useState(!1);return s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"mb-2",children:e?.slice(0,r?100:1).map(i=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm shadow-articles",children:[s.jsxRuntimeExports.jsx("div",{className:"card-body p-2 lh-sm d-flex align-items-center",children:s.jsxRuntimeExports.jsxs("div",{className:"ms-2",children:[s.jsxRuntimeExports.jsx("div",{children:i.title}),s.jsxRuntimeExports.jsxs("div",{className:"small",children:[i.type,i.fundamental&&" - Fundamental"]})]})}),s.jsxRuntimeExports.jsx("div",{className:"card-footer d-flex",children:s.jsxRuntimeExports.jsx(D.Link,{href:`${se.PROPOSALS_SUBMISSIONS_ALL}/${i._id}`,className:"",children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,children:s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-eye me-1"}),"View"]})})})})]},i._id))}),e?.length>1&&s.jsxRuntimeExports.jsx(P.ArticlesButton,{onClick:()=>n(!r),className:"w-100",children:r?"View Less":"View All"}),e?.length==0&&s.jsxRuntimeExports.jsx("span",{className:"small",children:"User has no proposal submissions"})]})}function Fr(t){const{featured_image:e,thumbnail_size:r}=t;return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[(e?.image_type=="S3 File System"||e?.thumbnails?.length>0)&&s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:e?.thumbnails?.length>0?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:r&&e?.thumbnails?.find(n=>n.width==r)?s.jsxRuntimeExports.jsx("img",{style:{width:"100%",height:"100%",objectFit:"cover"},src:process.env.NEXT_PUBLIC_CDN+e?.thumbnails?.find(n=>n.width==r).key,loading:"lazy",alt:"",className:"flex-shrink-0"}):s.jsxRuntimeExports.jsx("img",{style:{width:"100%",height:"100%",objectFit:"cover"},src:process.env.NEXT_PUBLIC_CDN+[...e?.thumbnails].sort((n,i)=>n.width-i.width)[0].key,loading:"lazy",alt:"",className:"flex-shrink-0"})}):s.jsxRuntimeExports.jsx("img",{style:{width:"100%",height:"100%",objectFit:"cover"},src:process.env.NEXT_PUBLIC_CDN+e?.key,loading:"lazy",alt:"",className:"flex-shrink-0"})}),e?.location&&!e?.image_type&&(e?.thumbnails?.length||0)<1&&s.jsxRuntimeExports.jsx("img",{style:{objectFit:"cover",width:"100%",height:"100%"},src:`${process.env.NEXT_PUBLIC_CDN}${e?.key}`,alt:"",loading:"lazy"})]})}function Ur(t){switch(t){case"story":return se.STORIES;case"issue":return se.ISSUES;case"myth":return se.MYTHS}}function Ir({publicUserData:t}){return s.jsxRuntimeExports.jsx("div",{children:t?.populated_news_comments?.filter(e=>!e.parent_id).map(e=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm border mb-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-header small",children:["Commented on ",s.jsxRuntimeExports.jsx("b",{children:e.populated_news?.news_title})]}),s.jsxRuntimeExports.jsxs("div",{className:"card-body small p-2 d-flex",children:[s.jsxRuntimeExports.jsx("div",{style:{width:"100px",height:"100px"},className:"me-2 flex-shrink-0",children:s.jsxRuntimeExports.jsx(Fr,{featured_image:e?.populated_news?.featured_image,thumbnail_size:100})}),s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("span",{className:"small",children:D.format(new Date(e.date),"M/dd/yy")}),s.jsxRuntimeExports.jsx("div",{children:e.comment})]})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer",children:s.jsxRuntimeExports.jsx(D.Link,{prefetch:!1,href:`${Ur(e.populated_news?.news_type)}/${e.populated_news?.url}?interaction_id=${e._id}`,children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,children:"View"})})})]},e._id))})}function Vr({userNewsSubmitted:t}){const[e,r]=x.useState(!1);return s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsxs("div",{className:"mb-1 d-flex justify-content-between align-items-center",children:[s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-newspaper me-1"}),s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("span",{children:"News Submissions: "}),s.jsxRuntimeExports.jsx("span",{className:"badge bg-dark",children:t?.length||0})]})]}),s.jsxRuntimeExports.jsxs("span",{className:"badge bg-articles-secondary",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-info me-1"}),s.jsxRuntimeExports.jsx("span",{children:"Info"})]})]}),s.jsxRuntimeExports.jsx("div",{className:"mb-1",children:t?.slice(0,e?100:1).map(n=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles shadow-articles",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-body py-1 px-2 lh-sm d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("img",{className:"",src:n?.featured_image?.location,width:"40px",height:"40px",style:{objectFit:"cover"},alt:""}),s.jsxRuntimeExports.jsx("div",{className:"ms-2",children:s.jsxRuntimeExports.jsx("div",{children:n.news_title})})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer d-flex p-1",children:s.jsxRuntimeExports.jsx(D.Link,{href:`${se.HOME}/${n.url}`,children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{small:!0,className:"",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-eye me-1"}),"View"]})})})]},n._id))}),t?.length>1?s.jsxRuntimeExports.jsx(P.ArticlesButton,{onClick:()=>r(!e),small:!0,className:"",children:e?"View Less":"View All"}):s.jsxRuntimeExports.jsx("span",{className:"small",children:"User has no news submissions"})]})}function Wr({activeLayoutProposalSentiments:t,userDonations:e,lifetimeContribution:r}){const[n,i]=x.useState(!1);return s.jsxRuntimeExports.jsxs("div",{className:"card card-articles ",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-header d-flex justify-content-between align-items-center p-1",children:[s.jsxRuntimeExports.jsx("span",{children:"Donations: "}),s.jsxRuntimeExports.jsxs("span",{className:"badge bg-dark",children:[e.count," - ",`$${D.numberWithCommas((r/100||0).toFixed(2))}`]})]}),s.jsxRuntimeExports.jsxs("div",{className:"card-body p-2",children:[e?.list?.length==0&&s.jsxRuntimeExports.jsx("span",{className:"small",children:"User has no donations"}),s.jsxRuntimeExports.jsx("div",{className:"donations-wrap",children:e?.list?.slice(0,n?100:3).map(l=>s.jsxRuntimeExports.jsxs("div",{className:"border",children:[s.jsxRuntimeExports.jsxs("div",{className:"card-body py-1 px-2 lh-sm d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{className:"small",children:"Most Recent"}),s.jsxRuntimeExports.jsxs("div",{className:"ms-2 d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-0 me-2",children:`$${D.numberWithCommas((l.amount/100).toFixed(2))}`}),s.jsxRuntimeExports.jsx("div",{className:"small",children:D.format(new Date(l.date),"M/dd/yy")})]})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer d-flex p-1",children:s.jsxRuntimeExports.jsx(D.Link,{href:`${se.HOME}/${l.url}`,children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"",small:!0,children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-eye me-1"}),"View"]})})})]},l._id))})]}),s.jsxRuntimeExports.jsx("div",{className:"card-footer p-1 d-flex justify-content-center",children:e.count>1&&s.jsxRuntimeExports.jsx(P.ArticlesButton,{onClick:()=>{i(!n)},className:"w-100",children:n?"View Less":"View All"})})]})}function Hr({userLayoutsData:t,handleClose:e}){return s.jsxRuntimeExports.jsx("div",{children:t?.map(n=>s.jsxRuntimeExports.jsxs("div",{className:"card card-articles shadow-articles",children:[s.jsxRuntimeExports.jsx("div",{className:"card-body py-1 px-2 lh-sm d-flex align-items-center",children:s.jsxRuntimeExports.jsxs("div",{className:"ms-2",children:[s.jsxRuntimeExports.jsx("div",{children:n.name}),s.jsxRuntimeExports.jsx("div",{className:"small",children:"Last Viewed: Never"})]})}),s.jsxRuntimeExports.jsxs("div",{className:"card-footer d-flex p-1",children:[(!1)._id!==n.user_id&&s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"",small:!0,children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-plus me-1"}),"Follow"]}),s.jsxRuntimeExports.jsx(D.Link,{href:`${se.HOME}/${n.url}`,children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"",small:!0,children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-eye me-1"}),"View"]})})]})]},n._id))})}function zr({activeLayoutProposalSentiments:t,userData:e}){return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsx("div",{className:"",children:e?.verified?.verified_methods?.map((r,n)=>Object.keys(r)?.length>0?s.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm object mb-2",children:[s.jsxRuntimeExports.jsx("div",{className:"card-header",children:r?.method_name}),s.jsxRuntimeExports.jsx("div",{className:"card-body p-2",children:s.jsxRuntimeExports.jsxs("div",{className:"small",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("span",{className:"me-2",children:"Approved On: "}),s.jsxRuntimeExports.jsx(D.ArticlesDate,{date:r.approved_date})]}),s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("span",{className:"me-2",children:"Approved By: "}),s.jsxRuntimeExports.jsx(Kt,{user_id:r.approved_by,dangerousPopulate:!0})]})]})})]},n):s.jsxRuntimeExports.jsx("div",{className:"single",children:r},n))})})}const qr=[];function Xr({activeLayoutProposalSentiments:t}){return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsx("div",{className:"achievements card card-articles",children:s.jsxRuntimeExports.jsx("div",{className:"card-body p-0",children:qr.map(e=>s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsxs("div",{className:"achievement w-100 d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{className:"icon",style:{width:"50px"},children:s.jsxRuntimeExports.jsx("i",{className:`fad ${e.icon} fa-lg`})}),s.jsxRuntimeExports.jsxs("div",{className:"details small me-auto",children:[s.jsxRuntimeExports.jsx("b",{className:"name",children:e.name}),s.jsxRuntimeExports.jsx("div",{className:"description mb-1",children:e.description}),s.jsxRuntimeExports.jsx("div",{className:"small",children:e.tags?.map(r=>s.jsxRuntimeExports.jsx("span",{className:"badge bg-dark border",children:r},r))})]}),s.jsxRuntimeExports.jsx("div",{className:"icon border-end-0 border-start border-dark",children:s.jsxRuntimeExports.jsx("div",{className:"text-center px-3",children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-square fa-lg me-0"})})})]})},e.name))})})})}const Yr=t=>De.axios.get(t).then(e=>e.data),Kr=t=>{const{data:e,error:r,isLoading:n,mutate:i}=De.useSWR(process.env.NODE_ENV==="development"?"http://localhost:3001/api/news/resources/political-parties":"https://articles.media/api/news/resources/political-parties",Yr,{dedupingInterval:6e5});return{data:e,error:r,isLoading:n,mutate:i}};function Kt(t){const{populated_user:e,hidePhoto:r,visibleItems:n,size:i,className:l,dangerousPopulate:a,user_id:o,buttonType:c,children:p,fakeMembership:u}=t,[f,h]=x.useState(!1),[d,j]=x.useState({}),[v,m]=x.useState([]),[R,g]=x.useState([]),[N,E]=x.useState(null),[_,w]=x.useState([]),[O,M]=x.useState([]),[$,C]=x.useState(!1),k=!1,{data:L}=Kr(),[S,T]=x.useState("Proposals Stance"),B=()=>{h(!1)};x.useEffect(()=>{e&&j({...e})},[]);const[U,W]=x.useState(!1),[de,re]=x.useState([]),[ne,be]=x.useState([]),{data:A,mutate:fe}=Dt((o||e?._id)&&(f||a)?{user_id:o||e?._id}:null),{data:q,mutate:Q}=Dt(k?._id&&(f||a)?{user_id:k?._id}:null);x.useEffect(()=>{A&&(console.log("publicUserData",A),j(A),m(A?.populated_public_layouts),g(A?.populated_public_donations),E(A?.populated_public_donations.total),M(A?.populated_public_proposals),re(A?.populated_public_proposals_stance),w(A?.populated_public_news_submissions||[]))},[A]),x.useEffect(()=>{q&&(console.log("personalUserData",q),be(q?.populated_public_proposals_stance))},[q]);let ie=(e||d)?.articles_membership?.plan.replace(" ","-").toLowerCase(),he=u?.replace(" ","-").toLowerCase();const K="https://articles.media/images/store/memberships/",ye=()=>{let b=(e||d)?.articles_membership?.status=="Active";return s.jsxRuntimeExports.jsxs("div",{style:{position:"relative",cursor:"pointer"}&&(i=="lg"?{fontSize:"1.5rem"}:{}),className:`view-user-modal-badge-wrap ${i=="lg"&&"large"} ${l&&l}`,children:[s.jsxRuntimeExports.jsxs("span",{onClick:()=>{h(!0)},className:"position-relative view-user-modal-badge d-flex justify-content-between align-items-center badge bg-articles badge-hover ",children:[(b||u)&&s.jsxRuntimeExports.jsx("i",{className:`fad membership-badge ${he||ie} fa-badge-check`,style:{position:"absolute",top:"-2px",left:"-2px",fontSize:"0.9rem",zIndex:1}}),s.jsxRuntimeExports.jsxs("div",{className:`d-flex align-items-center ${b&&""}`,children:[!r&&s.jsxRuntimeExports.jsx("div",{className:i=="lg"?"me-0":"me-1",children:s.jsxRuntimeExports.jsx(Ot,{width:"15px",profile_photo:d.profile_photo})}),d.display_name||e?.display_name]}),s.jsxRuntimeExports.jsx("i",{className:"fad fa-plus-square me-0 ms-2"})]}),n?.includes("Not Verified")&&e?.verified?.status!=="Verified"&&s.jsxRuntimeExports.jsx(ae,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{style:{pointerEvents:"none"},id:"button-tooltip",children:s.jsxRuntimeExports.jsx("div",{className:"",children:"User is not verified"})}),children:s.jsxRuntimeExports.jsxs("span",{className:"verification-user-badge badge bg-danger d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("i",{style:{paddingBottom:"2px"},className:"fas fa-robot me-1"}),s.jsxRuntimeExports.jsx("span",{className:"",children:"Unverified"})]})}),!1,n?.includes("Verification Status")&&s.jsxRuntimeExports.jsx(ae,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"button-tooltip",style:{pointerEvents:"none",transformX:"-20px"},children:e?.verified?.status=="Verified"?"Verified":" Not Verified"}),children:e?.verified?.status=="Verified"?s.jsxRuntimeExports.jsx("span",{className:"verification-user-badge badge bg-success cursor-pointer",children:s.jsxRuntimeExports.jsx("i",{className:"fas fa-check me-0"})}):s.jsxRuntimeExports.jsxs("span",{className:"verification-user-badge badge bg-danger cursor-pointer",children:[s.jsxRuntimeExports.jsx("i",{className:"fas fa-robot me-1"}),s.jsxRuntimeExports.jsx("span",{children:"?"})]})}),n?.includes("Political Party")&&s.jsxRuntimeExports.jsx("div",{className:"d-flex",children:(e||d)?.political?.party_id&&s.jsxRuntimeExports.jsx(ae,{placement:"bottom",overlay:s.jsxRuntimeExports.jsxs(G,{id:"tooltip-bottom",style:{position:"fixed"},children:[s.jsxRuntimeExports.jsx("img",{width:"40px",height:"40px",style:{objectFit:"contain",padding:"0px",zIndex:"10",position:"relative"},loading:"lazy",src:`${process.env.NEXT_PUBLIC_CDN}`+L?.find(H=>H._id==(e||d)?.political?.party_id)?.logo,alt:""}),s.jsxRuntimeExports.jsx("span",{className:"ms-2",children:L?.find(H=>H._id==(e||d)?.political?.party_id)?.name})]}),children:s.jsxRuntimeExports.jsx("div",{className:"badge bg-light text-capitalize ms-0 h-100 d-flex justify-content-center align-items-center",style:{padding:"0 0.15rem",cursor:"pointer"},children:(e||d)?.political?.party_id&&((e||d)?.political?.party_id=="62a830440593acbd4061c48c"?s.jsxRuntimeExports.jsx("i",{className:"fad fa-unlink unaffiliated-icon fa-lg me-0"}):s.jsxRuntimeExports.jsx("img",{width:"15px",height:"15px",style:{objectFit:"contain",padding:"0px"},loading:"lazy",src:`${process.env.NEXT_PUBLIC_CDN}`+L?.find(H=>H._id==(e||d)?.political?.party_id)?.logo,alt:""}))})})})]})};function Fe(b){return b==="Link"?s.jsxRuntimeExports.jsx("span",{type:"button",onClick:()=>{h(!0)},children:p}):s.jsxRuntimeExports.jsx(ye,{})}const[F,je]=x.useState(!1),[we,it]=x.useState({}),[at,Ue]=x.useState({});x.useEffect(()=>{F&&Object.keys(we).length==0&&console.log("adminUserData",q)},[F]);const[Ie,Ve]=x.useState(null);function We(){alert("TODO")}const Z=x.useMemo(()=>v?.filter(b=>b.user_layout)?.[0]?.url,[v]);return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[Fe(c),s.jsxRuntimeExports.jsxs(y.Modal,{show:f,size:"lg",id:"view-users-modal",className:"view-users-modal articles-modal",scrollable:!0,onHide:B,children:[s.jsxRuntimeExports.jsx(y.Modal.Header,{closeButton:!0,children:s.jsxRuntimeExports.jsx("div",{className:"w-100 d-flex justify-content-between align-items-center",children:s.jsxRuntimeExports.jsx("h3",{className:"mb-0",children:"User Info"})})}),s.jsxRuntimeExports.jsx(y.Modal.Body,{children:s.jsxRuntimeExports.jsxs("div",{className:"main-panel",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column align-items-center",style:{width:"100px"},children:[s.jsxRuntimeExports.jsx("div",{type:"button",onClick:()=>{Ve(`${process.env.NEXT_PUBLIC_CDN}${d?.profile_photo?.key}`)},children:s.jsxRuntimeExports.jsx(Ot,{width:"100px",profile_photo:d?.profile_photo})}),s.jsxRuntimeExports.jsx(ae,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"tooltip-bottom",children:"Joined Articles Media"}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-black border border-white shadow-sm rounded-0",children:["Joined ",d?.sign_up_date&&D.format(new Date(d?.sign_up_date),"M/dd/yy")]})}),Z&&s.jsxRuntimeExports.jsx(D.Link,{href:`https://articles.media/layouts/${Z}`,className:"mt-2 w-100",children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"w-100",style:{},children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-home"}),s.jsxRuntimeExports.jsx("span",{children:"Layout"})]})}),s.jsxRuntimeExports.jsx(qe,{className:"w-100",children:s.jsxRuntimeExports.jsx(D.Link,{href:{pathname:"https://articles.media/messages",query:{startMsg:d?._id}},className:"mt-2 w-100",children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{className:"w-100",style:{fontSize:"0.88rem"},children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-envelope"}),s.jsxRuntimeExports.jsx("span",{children:"Message"})]})})}),F&&s.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column w-100 mt-2",style:{maxWidth:"100px"},children:[s.jsxRuntimeExports.jsx(P.ArticlesButton,{variant:"warning",small:!0,className:"",children:s.jsxRuntimeExports.jsx(Textfit,{max:14,mode:"single",children:"Remove Photo"})}),we?.user?.profile_photo?.banned_uploads?s.jsxRuntimeExports.jsx(P.ArticlesButton,{variant:"warning",small:!0,className:"",onClick:()=>{toggleBanCustomPhotoUpload()},children:s.jsxRuntimeExports.jsx(Textfit,{max:14,mode:"single",children:"Unban Uploads"})}):s.jsxRuntimeExports.jsx(P.ArticlesButton,{variant:"danger",small:!0,className:"",onClick:()=>{toggleBanCustomPhotoUpload()},children:s.jsxRuntimeExports.jsx(Textfit,{max:14,mode:"single",children:"Ban Uploads"})})]})]}),s.jsxRuntimeExports.jsxs("div",{className:"mx-2",children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-1",children:[s.jsxRuntimeExports.jsx("h5",{className:"mb-0",children:e?.display_name||d.display_name}),s.jsxRuntimeExports.jsxs("span",{className:"ms-2",children:[" @",d?.username]})]}),d?.articles_membership?.status=="Active"&&s.jsxRuntimeExports.jsx(ae,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"tooltip-bottom",children:s.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column py-1",children:[s.jsxRuntimeExports.jsxs("div",{className:"position-relative",children:[d?.articles_membership?.plan=="Supporter"&&s.jsxRuntimeExports.jsx("img",{src:`${K}supporter.jpg`,width:50,height:50,alt:"Membership plan level"}),d?.articles_membership?.plan=="Premium Supporter"&&s.jsxRuntimeExports.jsx("img",{src:`${K}premiumSupporter.jpg`,width:50,height:50,alt:"Membership plan level"}),d?.articles_membership?.plan=="Advocate"&&s.jsxRuntimeExports.jsx("img",{src:`${K}advocate.jpg`,width:50,height:50,alt:"Membership plan level"}),s.jsxRuntimeExports.jsx("i",{className:`fad membership-badge ${ie} fa-badge-check me-1`,style:{position:"absolute",top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)",fontSize:"1.5rem"}})]}),s.jsxRuntimeExports.jsxs("span",{className:"lh-sm",children:[s.jsxRuntimeExports.jsx("div",{children:d?.articles_membership?.plan}),s.jsxRuntimeExports.jsxs("div",{className:"small",children:["Since ",s.jsxRuntimeExports.jsx(D.ArticlesDate,{format:"MM/dd/yy",date:d?.articles_membership?.membership_started})]})]})]})}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-articles border me-1 mb-1",style:{cursor:"pointer"},children:[s.jsxRuntimeExports.jsx("i",{className:`fad membership-badge ${ie} fa-badge-check me-1`,style:{}}),s.jsxRuntimeExports.jsx("span",{children:d?.articles_membership?.plan}),s.jsxRuntimeExports.jsx("span",{className:"px-1",children:"|"}),s.jsxRuntimeExports.jsx("span",{className:"months fw-bold",children:ss(new Date,new Date(d?.articles_membership?.membership_started))||0})]})}),d?.address?.state&&s.jsxRuntimeExports.jsx(ae,{placement:"bottom",overlay:d.address?.state?.length==2?s.jsxRuntimeExports.jsxs(G,{id:"tooltip-bottom",children:["From the state of ",convertRegion(d.address?.state,"name")?convertRegion(d.address?.state,"name")[0]:""]}):s.jsxRuntimeExports.jsxs(G,{id:"tooltip-bottom",children:["From the state of ",d.address?.state]}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-articles border me-1 mb-1",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-map-pin me-1"}),d.address?.state]})}),d.verified?.status!=="Verified"&&s.jsxRuntimeExports.jsx(ae,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"tooltip-bottom",children:"User is not verified"}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-danger me-1 mb-1",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-robot me-1"}),"Unverified"]})}),d.verified?.status=="Verified"&&s.jsxRuntimeExports.jsx(ae,{placement:"bottom",overlay:s.jsxRuntimeExports.jsxs(G,{id:"tooltip-bottom",className:"",children:[s.jsxRuntimeExports.jsxs("div",{children:["Verified by ",d.verified?.verified_methods?.length," method",d.verified?.verified_methods?.length>1&&"s"]}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("div",{className:"pb-2",children:d.verified?.verified_methods?.map((b,H)=>Object.keys(b)?.length>0?s.jsxRuntimeExports.jsx("div",{className:"object",children:b?.method_name},H):s.jsxRuntimeExports.jsx("div",{className:"single",children:b},H))})]}),children:s.jsxRuntimeExports.jsxs("div",{className:"badge bg-articles border me-1 mb-1",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-star me-1"}),d.verified?.status]})}),d.political?.party_id&&s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsx(ae,{placement:"bottom",overlay:s.jsxRuntimeExports.jsx(G,{id:"tooltip-bottom",children:s.jsxRuntimeExports.jsx("div",{children:"Users political party"})}),children:s.jsxRuntimeExports.jsx(D.Link,{href:`https://articles.media/politics/parties/${(e||d)?.political?.party_id}`,children:s.jsxRuntimeExports.jsx("div",{className:"badge bg-articles border text-capitalize me-1",children:s.jsxRuntimeExports.jsxs("div",{className:"",children:[(e||d)?.political?.party_id=="62a830440593acbd4061c48c"?s.jsxRuntimeExports.jsx("i",{className:"fad fa-unlink unaffiliated-icon fa-lg me-0"}):s.jsxRuntimeExports.jsx("img",{width:"14px",height:"14px",style:{objectFit:"contain",padding:"0px"},loading:"lazy",src:`${process.env.NEXT_PUBLIC_CDN}`+L?.find(b=>b._id==d?.political?.party_id)?.logo,alt:""}),s.jsxRuntimeExports.jsx("span",{className:"ms-1",children:L?.find(b=>b._id==d.political?.party_id)?.name})]})})})})}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("div",{className:"small",children:d?._id=="5e90cc96579a17440c5d7d52"&&s.jsxRuntimeExports.jsx("span",{children:"Founder of Articles Media, thank you for using the site, feel free to message me with any questions, concerns or anything else."})})]})]}),s.jsxRuntimeExports.jsx("hr",{}),F&&s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"d-flex align-items-center justify-content-between",children:s.jsxRuntimeExports.jsx("div",{className:"small",children:"Admin Mode Toolbar"})}),s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsxs("div",{className:"d-flex mb-2",children:[s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,variant:"warning",className:"",onClick:()=>{loadAdminUserData()},children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-redo me-0"})}),s.jsxRuntimeExports.jsx(P.ArticlesButton,{active:F?.edit,small:!0,className:"",onClick:()=>{je({...F,edit:!F?.edit})},children:"Edit Mode"}),F?.edit&&s.jsxRuntimeExports.jsx(P.ArticlesButton,{small:!0,variant:"success",className:"me-0",onClick:()=>{We()},children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-save me-0"})})]}),["User Details","Verification","Moderation","Bans","Stripe","Layouts","Reset Password","Sessions"].map(b=>s.jsxRuntimeExports.jsx(P.ArticlesButton,{active:b==F?.tab,small:!0,onClick:()=>{je({...F,tab:b})},children:b},b))]}),s.jsxRuntimeExports.jsx("hr",{})]}),s.jsxRuntimeExports.jsxs("div",{className:"pe-3 pb-3",children:[s.jsxRuntimeExports.jsx("div",{className:"mb-2 me-2",children:[{name:"Proposals Stance",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:s.jsxRuntimeExports.jsxs("div",{className:"small",children:[s.jsxRuntimeExports.jsx("span",{children:ne?.fundamental?.filter(b=>ne?.user_sentiments?.find(H=>H.proposal_id==b._id)?b:null).length}),s.jsxRuntimeExports.jsx("span",{className:"px-1",children:"/"}),s.jsxRuntimeExports.jsx("span",{children:ne?.fundamental?.length})]})})},{name:"Proposal Sentiments",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d?.populated_public_proposals_stance?.user_sentiments_count||0})},{name:"Proposal Comments",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d?.populated_public_proposals_stance?.user_comments_count||0})},{name:"Proposal Submissions",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:O?.length||0})},{name:"News Comments",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d?.populated_news_comments_count||0})},{name:"News Submissions",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:_?.length||0})},{name:"Verifications",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d.verified?.verified_methods?.length||0})},{name:"Layouts",badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:v?.length||0})},{name:"Donations",badge:s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("span",{className:"badge bg-primary ms-1",children:A?.populated_public_donations?.count||0}),s.jsxRuntimeExports.jsxs("span",{className:"badge bg-black",children:["$",D.numberWithCommas((A?.populated_public_donations.total/100).toFixed(2))]})]})},{name:"Orders",badge:s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsx("span",{className:"badge bg-primary ms-1",children:"0"}),s.jsxRuntimeExports.jsx("span",{className:"badge bg-black",children:"0"})]})},{name:"Achievements",dev:!0,badge:s.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:"0"})}].map(b=>(P.ArticlesButton,b.name==S,b.name,b.badge,b.name,b.dev?s.jsxRuntimeExports.jsx(qe,{inline:!0,children:s.jsxRuntimeExports.jsxs(P.ArticlesButton,{onClick:()=>T(b.name),active:b.name==S,small:!0,children:[b.name,b.badge]},b.name)},b.name):s.jsxRuntimeExports.jsxs(P.ArticlesButton,{onClick:()=>T(b.name),active:b.name==S,small:!0,children:[b.name,b.badge]},b.name)))}),S=="Proposals Stance"&&s.jsxRuntimeExports.jsx($r,{activeLayoutProposalSentiments:de,populated_user:e,usersProposalSentiments:ne,setShowFullStanceDetails:W,showFullStanceDetails:U,userData:d}),S=="Proposal Comments"&&s.jsxRuntimeExports.jsx(Br,{activeLayoutProposalSentiments:de}),S=="Proposal Sentiments"&&s.jsxRuntimeExports.jsx(Lr,{activeLayoutProposalSentiments:de}),S=="Proposal Submissions"&&s.jsxRuntimeExports.jsx(Tr,{userProposalsSubmitted:A?.populated_public_proposals}),S=="News Comments"&&s.jsxRuntimeExports.jsx(Ir,{publicUserData:A}),S=="News Submissions"&&s.jsxRuntimeExports.jsx(Vr,{publicUserData:A,userNewsSubmitted:A?.populated_public_news_submissions}),S=="Donations"&&s.jsxRuntimeExports.jsx(Wr,{publicUserData:A,userDonations:A?.populated_public_donations,lifetimeContribution:N}),S=="Layouts"&&s.jsxRuntimeExports.jsx(Hr,{publicUserData:A,userLayoutsData:A?.populated_public_layouts}),S=="Verifications"&&s.jsxRuntimeExports.jsx(zr,{publicUserData:A,userData:d}),S=="Achievements"&&s.jsxRuntimeExports.jsx(Xr,{publicUserData:A})]})]})}),s.jsxRuntimeExports.jsxs(y.Modal.Footer,{className:"justify-content-between",children:[k?._id=="5e90cc96579a17440c5d7d52"?s.jsxRuntimeExports.jsxs("span",{children:[s.jsxRuntimeExports.jsxs(qe,{inline:!0,className:"me-2",children:[s.jsxRuntimeExports.jsxs(P.ArticlesButton,{onClick:()=>{je(F?!1:{tab:""})},small:!0,active:F,variant:"",className:"me-1",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-pen"}),s.jsxRuntimeExports.jsx("span",{children:"Admin Mode"})]}),s.jsxRuntimeExports.jsx(P.ArticlesButton,{onClick:()=>{fe(),Q()},small:!0,variant:"warning",className:"",children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-redo me-0"})})]}),s.jsxRuntimeExports.jsx("span",{style:{fontSize:"0.8rem"},children:d?._id})]}):s.jsxRuntimeExports.jsx("span",{}),s.jsxRuntimeExports.jsx("div",{className:"justify-content-",children:s.jsxRuntimeExports.jsx(P.ArticlesButton,{variant:"articles",onClick:B,children:"Close"})})]})]})]})}module.exports=Kt;
|
package/dist/index-BlP2-uOi.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o={exports:{}};var u;function l(){return u||(u=1,(function(e){(function(){var f={}.hasOwnProperty;function n(){for(var t="",r=0;r<arguments.length;r++){var s=arguments[r];s&&(t=a(t,c(s)))}return t}function c(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var s in t)f.call(t,s)&&t[s]&&(r=a(r,s));return r}function a(t,r){return r?t?t+" "+r:t+r:t}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(o)),o.exports}var p=l();const m=i(p);exports.classNames=m;exports.getDefaultExportFromCjs=i;
|