@articles-media/articles-dev-box 1.0.17 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/dist/Ad-Ck5UdTq3.js +387 -0
- package/dist/Ad-DYtftKNV.cjs +1 -0
- package/dist/Ad.cjs +1 -1
- package/dist/Ad.js +2 -604
- package/dist/AdConfirmExitModal-CJ-HtcVC.js +56 -0
- package/dist/AdConfirmExitModal-CRCnzYQM.cjs +1 -0
- package/dist/AdDetailsModal-DRNRTL2W.js +108 -0
- package/dist/AdDetailsModal-g0n7LiV6.cjs +1 -0
- package/dist/ArticlesAd.cjs +1 -1
- package/dist/ArticlesAd.js +16 -15
- package/dist/Button-BlAdEbSd.js +30 -0
- package/dist/Button-CbpRj01E.cjs +1 -0
- package/dist/CreditsModal.cjs +1 -0
- package/dist/CreditsModal.js +56 -0
- package/dist/DarkModeHandler.cjs +1 -1
- package/dist/DarkModeHandler.js +17 -16
- package/dist/FriendsList.cjs +1 -1
- package/dist/FriendsList.js +77 -121
- package/dist/GameScoreboard-CBY3JsFa.js +165 -0
- package/dist/GameScoreboard-DdOCRxON.cjs +1 -0
- package/dist/GameScoreboard.cjs +1 -1
- package/dist/GameScoreboard.js +2 -190
- package/dist/GlobalBody.cjs +33 -1
- package/dist/GlobalBody.js +36 -7
- package/dist/GlobalHead.cjs +1 -1
- package/dist/GlobalHead.js +10 -12
- package/dist/Link-MFZblBb4.js +17 -0
- package/dist/Link-c7exNCJ3.cjs +1 -0
- package/dist/Modal-BX1s6CCU.js +1631 -0
- package/dist/Modal-DP9CeAVD.cjs +3 -0
- package/dist/ReturnToLauncherButton.cjs +1 -1
- package/dist/ReturnToLauncherButton.js +39 -54
- package/dist/SettingsModal--sWLmLGp.cjs +1 -0
- package/dist/SettingsModal-XI2dMI09.js +247 -0
- package/dist/SettingsModal.cjs +1 -1
- package/dist/SettingsModal.js +2 -658
- package/dist/StatusModal-D7WDDR9P.cjs +1 -0
- package/dist/StatusModal-elrPJvX1.js +70 -0
- package/dist/ViewUserModal-DDjWLpyM.js +3094 -0
- package/dist/ViewUserModal-DPVcjXNU.cjs +1 -0
- package/dist/ViewUserModal.cjs +1 -1
- package/dist/ViewUserModal.js +3 -3149
- package/dist/articles-dev-box.css +2 -1
- package/dist/chunk-350yNsax.cjs +1 -0
- package/dist/classnames-DP6dWde5.js +31 -0
- package/dist/classnames-pS64X3rL.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +16 -28
- package/dist/jsx-runtime-VZk6y-ec.js +191 -0
- package/dist/jsx-runtime-hCcDh67y.cjs +6 -0
- package/dist/numberWithCommas-BSKBdR-e.js +18 -0
- package/dist/numberWithCommas-D9tgiUnq.cjs +1 -0
- package/dist/useAuthSiteStatus-1rHjYC4N.js +29 -0
- package/dist/useAuthSiteStatus-P5kHc_Bz.cjs +1 -0
- package/dist/useFullscreen.cjs +1 -0
- package/dist/useFullscreen.js +24 -0
- package/dist/useUserDetails.cjs +1 -1
- package/dist/useUserDetails.js +22 -32
- package/dist/useUserFriends.cjs +1 -1
- package/dist/useUserFriends.js +29 -51
- package/dist/useUserToken.cjs +1 -1
- package/dist/useUserToken.js +16 -21
- package/package.json +17 -10
- package/dist/AdConfirmExitModal-Bhz-lt9w.js +0 -72
- package/dist/AdConfirmExitModal-N3Lvhb4y.cjs +0 -1
- package/dist/AdDetailsModal-BMj8DjV0.cjs +0 -1
- package/dist/AdDetailsModal-DXvfmyKK.js +0 -83
- package/dist/Button-0ZK0NKiK.cjs +0 -1
- package/dist/Button-_Quon8UV.js +0 -54
- package/dist/ElementChildren-DN3RWY2E.js +0 -51
- package/dist/ElementChildren-eAwIENLl.cjs +0 -1
- package/dist/GlobalBody-BrrtfBBs.js +0 -123
- package/dist/GlobalBody-weON_TbJ.cjs +0 -33
- package/dist/Modal-Bdhkgkwr.cjs +0 -2
- package/dist/Modal-nux8R77F.js +0 -2087
- package/dist/StatusModal-B086BgSW.js +0 -71
- package/dist/StatusModal-CzPyqQQA.cjs +0 -1
- package/dist/index-BlP2-uOi.cjs +0 -1
- package/dist/index-C8MeSLnR.js +0 -2504
- package/dist/index-DWV8myok.cjs +0 -6
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/jsx-runtime-nZSsnGb7.cjs +0 -6
- package/dist/jsx-runtime-tc70JA_2.js +0 -264
- package/dist/numberWithCommas-CRgrb58X.cjs +0 -1
- package/dist/numberWithCommas-DnAkiOFL.js +0 -1256
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-350yNsax.cjs`),t=require(`./classnames-pS64X3rL.cjs`),n=require(`./jsx-runtime-hCcDh67y.cjs`),r=require(`./Button-CbpRj01E.cjs`),i=require(`./Link-c7exNCJ3.cjs`),a=require(`./numberWithCommas-D9tgiUnq.cjs`),o=require(`./Modal-DP9CeAVD.cjs`);let s=require(`react`);s=e.n(s);let c=require(`swr`);c=e.n(c);let l=require(`date-fns`),u=require(`react-dom`);u=e.n(u);let d=require(`swr/immutable`);d=e.n(d);let f=require(`react-bootstrap`);function p(){let e=(0,s.useRef)(!0),t=(0,s.useRef)(()=>e.current);return(0,s.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}var m=2**31-1;function h(e,t,n){let r=n-Date.now();e.current=r<=m?setTimeout(t,r):setTimeout(()=>h(e,t,n),m)}function g(){let e=p(),t=(0,s.useRef)();return o._(()=>clearTimeout(t.current)),(0,s.useMemo)(()=>{let n=()=>clearTimeout(t.current);function r(r,i=0){e()&&(n(),i<=m?t.current=setTimeout(r,i):h(t,r,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}var _=e.t(((e,t)=>{var n=process.env.NODE_ENV!==`production`,r=function(){};if(n){var i=function(e,t){var n=arguments.length;t=Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,a=`Warning: `+e.replace(/%s/g,function(){return t[i++]});typeof console<`u`&&console.error(a);try{throw Error(a)}catch{}};r=function(e,t,n){var r=arguments.length;n=Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw Error("`warning(condition, format, ...args)` requires a warning message argument");e||i.apply(null,[t].concat(n))}}t.exports=r}));e.t(((e,t)=>{t.exports=function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}}))();function v(e,t,n){var r=(0,s.useRef)(e!==void 0),i=(0,s.useState)(t),a=i[0],o=i[1],c=e!==void 0,l=r.current;return r.current=c,!c&&l&&a!==t&&o(t),[c?e:a,(0,s.useCallback)(function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n&&n.apply(void 0,[e].concat(r)),o(e)},[n])]}function y(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function b(e){function t(t){return this.constructor.getDerivedStateFromProps(e,t)??null}this.setState(t.bind(this))}function x(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}y.__suppressDeprecationWarning=!0,b.__suppressDeprecationWarning=!0,x.__suppressDeprecationWarning=!0;function S(){return(0,s.useState)(null)}var C=Object.prototype.hasOwnProperty;function w(e,t,n){for(n of e.keys())if(T(n,t))return n}function T(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&T(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i==`object`&&(i=w(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i==`object`&&(i=w(t,i),!i)||!T(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(C.call(e,n)&&++r&&!C.call(t,n)||!(n in t)||!T(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function E(e){let t=o.m();return[e[0],(0,s.useCallback)(n=>{if(t())return e[1](n)},[t,e[1]])]}var D=`bottom`,O=`right`,k=`left`,A=`auto`,j=[`top`,D,O,k],M=`start`,N=`clippingParents`,P=`viewport`,F=`popper`,I=`reference`,ee=j.reduce(function(e,t){return e.concat([t+`-`+M,t+`-end`])},[]),L=[].concat(j,[A]).reduce(function(e,t){return e.concat([t,t+`-`+M,t+`-end`])},[]),te=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function R(e){return e.split(`-`)[0]}function z(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function B(e){return e instanceof z(e).Element||e instanceof Element}function V(e){return e instanceof z(e).HTMLElement||e instanceof HTMLElement}function ne(e){return typeof ShadowRoot>`u`?!1:e instanceof z(e).ShadowRoot||e instanceof ShadowRoot}var H=Math.max,re=Math.min,U=Math.round;function W(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function ie(){return!/^((?!chrome|android).)*safari/i.test(W())}function G(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&V(e)&&(i=e.offsetWidth>0&&U(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&U(r.height)/e.offsetHeight||1);var o=(B(e)?z(e):window).visualViewport,s=!ie()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function ae(e){var t=G(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ne(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function K(e){return e?(e.nodeName||``).toLowerCase():null}function q(e){return z(e).getComputedStyle(e)}function se(e){return[`table`,`td`,`th`].indexOf(K(e))>=0}function J(e){return((B(e)?e.ownerDocument:e.document)||window.document).documentElement}function ce(e){return K(e)===`html`?e:e.assignedSlot||e.parentNode||(ne(e)?e.host:null)||J(e)}function le(e){return!V(e)||q(e).position===`fixed`?null:e.offsetParent}function ue(e){var t=/firefox/i.test(W());if(/Trident/i.test(W())&&V(e)&&q(e).position===`fixed`)return null;var n=ce(e);for(ne(n)&&(n=n.host);V(n)&&[`html`,`body`].indexOf(K(n))<0;){var r=q(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function de(e){for(var t=z(e),n=le(e);n&&se(n)&&q(n).position===`static`;)n=le(n);return n&&(K(n)===`html`||K(n)===`body`&&q(n).position===`static`)?t:n||ue(e)||t}function fe(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function pe(e,t,n){return H(e,re(t,n))}function me(e,t,n){var r=pe(e,t,n);return r>n?n:r}function he(){return{top:0,right:0,bottom:0,left:0}}function ge(e){return Object.assign({},he(),e)}function Y(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var _e=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,ge(typeof e==`number`?Y(e,j):e)};function ve(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=R(n.placement),c=fe(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=_e(i.padding,n),d=ae(a),f=c===`y`?`top`:k,p=c===`y`?D:O,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=de(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=pe(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function ye(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||oe(t.elements.popper,r)&&(t.elements.arrow=r))}var be={name:`arrow`,enabled:!0,phase:`main`,fn:ve,effect:ye,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function xe(e){return e.split(`-`)[1]}var Se={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Ce(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:U(n*i)/i||0,y:U(r*i)/i||0}}function we(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=k,b=`top`,x=window;if(l){var S=de(n),C=`clientHeight`,w=`clientWidth`;if(S===z(n)&&(S=J(n),q(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=D;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=O;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var A=Object.assign({position:s},l&&Se),j=u===!0?Ce({x:p,y:h},z(n)):{x:p,y:h};if(p=j.x,h=j.y,c){var M;return Object.assign({},A,(M={},M[b]=v?`0`:``,M[y]=_?`0`:``,M.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,M))}return Object.assign({},A,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Te(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:R(t.placement),variation:xe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,we(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,we(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ee={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Te,data:{}},De={passive:!0};function Oe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=z(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,De)}),s&&c.addEventListener(`resize`,n.update,De),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,De)}),s&&c.removeEventListener(`resize`,n.update,De)}}var ke={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Oe,data:{}},Ae={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function je(e){return e.replace(/left|right|bottom|top/g,function(e){return Ae[e]})}var Me={start:`end`,end:`start`};function Ne(e){return e.replace(/start|end/g,function(e){return Me[e]})}function Pe(e){var t=z(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fe(e){return G(J(e)).left+Pe(e).scrollLeft}function Ie(e,t){var n=z(e),r=J(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=ie();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Fe(e),y:c}}function Le(e){var t=J(e),n=Pe(e),r=e.ownerDocument?.body,i=H(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=H(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Fe(e),s=-n.scrollTop;return q(r||t).direction===`rtl`&&(o+=H(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Re(e){var t=q(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ze(e){return[`html`,`body`,`#document`].indexOf(K(e))>=0?e.ownerDocument.body:V(e)&&Re(e)?e:ze(ce(e))}function Be(e,t){t===void 0&&(t=[]);var n=ze(e),r=n===e.ownerDocument?.body,i=z(n),a=r?[i].concat(i.visualViewport||[],Re(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Be(ce(a)))}function Ve(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function He(e,t){var n=G(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ue(e,t,n){return t===`viewport`?Ve(Ie(e,n)):B(t)?He(t,n):Ve(Le(J(e)))}function We(e){var t=Be(ce(e)),n=[`absolute`,`fixed`].indexOf(q(e).position)>=0&&V(e)?de(e):e;return B(n)?t.filter(function(e){return B(e)&&oe(e,n)&&K(e)!==`body`}):[]}function Ge(e,t,n,r){var i=t===`clippingParents`?We(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Ue(e,n,r);return t.top=H(i.top,t.top),t.right=re(i.right,t.right),t.bottom=re(i.bottom,t.bottom),t.left=H(i.left,t.left),t},Ue(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ke(e){var t=e.reference,n=e.element,r=e.placement,i=r?R(r):null,a=r?xe(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case D:c={x:o,y:t.y+t.height};break;case O:c={x:t.x+t.width,y:s};break;case k:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?fe(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case M:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function qe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?N:s,l=n.rootBoundary,u=l===void 0?P:l,d=n.elementContext,f=d===void 0?F:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=ge(typeof g==`number`?Y(g,j):g),v=f===`popper`?I:F,y=e.rects.popper,b=e.elements[m?v:f],x=Ge(B(b)?b:b.contextElement||J(e.elements.popper),c,u,o),S=G(e.elements.reference),C=Ke({reference:S,element:y,strategy:`absolute`,placement:i}),w=Ve(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function Je(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?L:c,u=xe(r),d=u?s?ee:ee.filter(function(e){return xe(e)===u}):j,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=qe(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[R(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Ye(e){if(R(e)===`auto`)return[];var t=je(e);return[Ne(e),t,Ne(t)]}function Xe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=R(g)===g,v=c||(_||!m?[je(g)]:Ye(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(R(n)===`auto`?Je(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],A=R(E),j=xe(E)===M,N=[`top`,D].indexOf(A)>=0,P=N?`width`:`height`,F=qe(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),I=N?j?O:k:j?D:`top`;b[P]>x[P]&&(I=je(I));var ee=je(I),L=[];if(a&&L.push(F[A]<=0),s&&L.push(F[I]<=0,F[ee]<=0),L.every(function(e){return e})){w=E,C=!1;break}S.set(E,L)}if(C)for(var te=m?3:1,z=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},B=te;B>0&&z(B)!==`break`;B--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Ze={name:`flip`,enabled:!0,phase:`main`,fn:Xe,requiresIfExists:[`offset`],data:{_skip:!1}};function Qe(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $e(e){return[`top`,O,D,k].some(function(t){return e[t]>=0})}function et(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=qe(t,{elementContext:`reference`}),s=qe(t,{altBoundary:!0}),c=Qe(o,r),l=Qe(s,i,a),u=$e(c),d=$e(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var tt={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:et};function nt(e,t,n){var r=R(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function rt(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=L.reduce(function(e,n){return e[n]=nt(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var it={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:rt};function at(e){var t=e.state,n=e.name;t.modifiersData[n]=Ke({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var ot={name:`popperOffsets`,enabled:!0,phase:`read`,fn:at,data:{}};function st(e){return e===`x`?`y`:`x`}function ct(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=qe(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=R(t.placement),v=xe(t.placement),y=!v,b=fe(_),x=st(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(S){if(a){var M=b===`y`?`top`:k,N=b===`y`?D:O,P=b===`y`?`height`:`width`,F=S[b],I=F+g[M],ee=F-g[N],L=p?-w[P]/2:0,te=v===`start`?C[P]:w[P],z=v===`start`?-w[P]:-C[P],B=t.elements.arrow,V=p&&B?ae(B):{width:0,height:0},ne=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:he(),U=ne[M],W=ne[N],ie=pe(0,C[P],V[P]),G=y?C[P]/2-L-ie-U-E.mainAxis:te-ie-U-E.mainAxis,oe=y?-C[P]/2+L+ie+W+E.mainAxis:z+ie+W+E.mainAxis,K=t.elements.arrow&&de(t.elements.arrow),q=K?b===`y`?K.clientTop||0:K.clientLeft||0:0,se=A?.[b]??0,J=F+G-se-q,ce=F+oe-se,le=pe(p?re(I,J):I,F,p?H(ee,ce):ee);S[b]=le,j[b]=le-F}if(s){var ue=b===`x`?`top`:k,ge=b===`x`?D:O,Y=S[x],_e=x===`y`?`height`:`width`,ve=Y+g[ue],ye=Y-g[ge],be=[`top`,k].indexOf(_)!==-1,Se=A?.[x]??0,Ce=be?ve:Y-C[_e]-w[_e]-Se+E.altAxis,we=be?Y+C[_e]+w[_e]-Se-E.altAxis:ye,Te=p&&be?me(Ce,Y,we):pe(p?Ce:ve,Y,p?we:ye);S[x]=Te,j[x]=Te-Y}t.modifiersData[r]=j}}var lt={name:`preventOverflow`,enabled:!0,phase:`main`,fn:ct,requiresIfExists:[`offset`]};function ut(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dt(e){return e===z(e)||!V(e)?Pe(e):ut(e)}function ft(e){var t=e.getBoundingClientRect(),n=U(t.width)/e.offsetWidth||1,r=U(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pt(e,t,n){n===void 0&&(n=!1);var r=V(t),i=V(t)&&ft(t),a=J(t),o=G(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((K(t)!==`body`||Re(a))&&(s=dt(t)),V(t)?(c=G(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Fe(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function mt(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function ht(e){var t=mt(e);return te.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function gt(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function _t(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var vt={placement:`bottom`,modifiers:[],strategy:`absolute`};function yt(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function bt(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?vt:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},vt,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:B(e)?Be(e):e.contextElement?Be(e.contextElement):[],popper:Be(t)};var s=ht(_t([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(yt(t,n)){i.rects={reference:pt(t,de(n),i.options.strategy===`fixed`),popper:ae(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:gt(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!yt(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var xt=bt({defaultModifiers:[tt,ot,Ee,ke,it,Ze,lt,be]}),St=[`enabled`,`placement`,`strategy`,`modifiers`];function Ct(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var wt={name:`applyStyles`,enabled:!1,phase:`afterWrite`,fn:()=>void 0},Tt={name:`ariaDescribedBy`,enabled:!0,phase:`afterWrite`,effect:({state:e})=>()=>{let{reference:t,popper:n}=e.elements;if(`removeAttribute`in t){let e=(t.getAttribute(`aria-describedby`)||``).split(`,`).filter(e=>e.trim()!==n.id);e.length?t.setAttribute(`aria-describedby`,e.join(`,`)):t.removeAttribute(`aria-describedby`)}},fn:({state:e})=>{let{popper:t,reference:n}=e.elements,r=t.getAttribute(`role`)?.toLowerCase();if(t.id&&r===`tooltip`&&`setAttribute`in n){let e=n.getAttribute(`aria-describedby`);if(e&&e.split(`,`).indexOf(t.id)!==-1)return;n.setAttribute(`aria-describedby`,e?`${e},${t.id}`:t.id)}}},Et=[];function Dt(e,t,n={}){let{enabled:r=!0,placement:i=`bottom`,strategy:a=`absolute`,modifiers:o=Et}=n,c=Ct(n,St),l=(0,s.useRef)(o),u=(0,s.useRef)(),d=(0,s.useCallback)(()=>{var e;(e=u.current)==null||e.update()},[]),f=(0,s.useCallback)(()=>{var e;(e=u.current)==null||e.forceUpdate()},[]),[p,m]=E((0,s.useState)({placement:i,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),h=(0,s.useMemo)(()=>({name:`updateStateModifier`,enabled:!0,phase:`write`,requires:[`computeStyles`],fn:({state:e})=>{let t={},n={};Object.keys(e.elements).forEach(r=>{t[r]=e.styles[r],n[r]=e.attributes[r]}),m({state:e,styles:t,attributes:n,update:d,forceUpdate:f,placement:e.placement})}}),[d,f,m]),g=(0,s.useMemo)(()=>(T(l.current,o)||(l.current=o),l.current),[o]);return(0,s.useEffect)(()=>{!u.current||!r||u.current.setOptions({placement:i,strategy:a,modifiers:[...g,h,wt]})},[a,i,h,r,g]),(0,s.useEffect)(()=>{if(!(!r||e==null||t==null))return u.current=xt(e,t,Object.assign({},c,{placement:i,strategy:a,modifiers:[...g,Tt,h]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,m(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),p}var Ot=e.n(_()),kt=()=>{};function At(e){return e.button===0}function jt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Mt=e=>e&&(`current`in e?e.current:e),Nt={click:`mousedown`,mouseup:`mousedown`,pointerup:`pointerdown`};function Pt(e,t=kt,{disabled:n,clickTrigger:r=`click`}={}){let i=(0,s.useRef)(!1),a=(0,s.useRef)(!1),c=(0,s.useCallback)(t=>{let n=Mt(e);(0,Ot.default)(!!n,`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=!n||jt(t)||!At(t)||!!o.h(n,t.target)||a.current,a.current=!1},[e]),l=o.p(t=>{let n=Mt(e);n&&o.h(n,t.target)?a.current=!0:a.current=!1}),u=o.p(e=>{i.current||t(e)});(0,s.useEffect)(()=>{if(n||e==null)return;let t=o.b(Mt(e)),i=t.defaultView||window,a=i.event??i.parent?.event,s=null;Nt[r]&&(s=o.g(t,Nt[r],l,!0));let d=o.g(t,r,c,!0),f=o.g(t,r,e=>{if(e===a){a=void 0;return}u(e)}),p=[];return`ontouchstart`in t.documentElement&&(p=[].slice.call(t.body.children).map(e=>o.g(e,`mousemove`,kt))),()=>{s?.(),d(),f(),p.forEach(e=>e())}},[e,n,r,c,l,u])}var Ft=()=>{};function It(e,t,{disabled:n,clickTrigger:r}={}){let i=t||Ft;Pt(e,i,{disabled:n,clickTrigger:r});let a=o.p(e=>{o.u(e)&&i(e)});(0,s.useEffect)(()=>{if(n||e==null)return;let t=o.b(Mt(e)),r=(t.defaultView||window).event,i=o.g(t,`keyup`,e=>{if(e===r){r=void 0;return}a(e)});return()=>{i()}},[e,n,a])}function Lt(e){let t={};return Array.isArray(e)?(e?.forEach(e=>{t[e.name]=e}),t):e||t}function Rt(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function zt({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:c={}}){let l=Lt(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:a?`fixed`:c.strategy,modifiers:Rt(Object.assign({},l,{eventListeners:{enabled:t,options:l.eventListeners?.options},preventOverflow:Object.assign({},l.preventOverflow,{options:o?Object.assign({padding:o},l.preventOverflow?.options):l.preventOverflow?.options}),offset:{options:Object.assign({offset:i},l.offset?.options)},arrow:Object.assign({},l.arrow,{enabled:!!s,options:Object.assign({},l.arrow?.options,{element:s})}),flip:Object.assign({enabled:!!r},l.flip)}))})}var Bt=s.forwardRef((e,t)=>{let{flip:n,offset:r,placement:i,containerPadding:a,popperConfig:c={},transition:l,runTransition:d}=e,[f,p]=S(),[m,h]=S(),g=o.d(p,t),_=o.f(e.container),v=o.f(e.target),[y,b]=(0,s.useState)(!e.show),x=Dt(v,f,zt({placement:i,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:m,popperConfig:c}));e.show&&y&&b(!1);let C=(...t)=>{b(!0),e.onExited&&e.onExited(...t)},w=e.show||!y;if(It(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!w)return null;let{onExit:T,onExiting:E,onEnter:D,onEntering:O,onEntered:k}=e,A=e.children(Object.assign({},x.attributes.popper,{style:x.styles.popper,ref:g}),{popper:x,placement:i,show:!!e.show,arrowProps:Object.assign({},x.attributes.arrow,{style:x.styles.arrow,ref:h})});return A=o.c(l,d,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:A,onExit:T,onExiting:E,onExited:C,onEnter:D,onEntering:O,onEntered:k}),_?u.default.createPortal(A,_):null});Bt.displayName=`Overlay`;var Vt=typeof global<`u`&&global.navigator&&global.navigator.product===`ReactNative`,Ht=typeof document<`u`||Vt?s.useLayoutEffect:s.useEffect,Ut=e.n(t.t()),X=n.t(),Wt=s.forwardRef(({className:e,bsPrefix:t,as:n=`div`,...r},i)=>(t=o.n(t,`popover-header`),(0,X.jsx)(n,{ref:i,className:(0,Ut.default)(e,t),...r})));Wt.displayName=`PopoverHeader`;var Gt=s.forwardRef(({className:e,bsPrefix:t,as:n=`div`,...r},i)=>(t=o.n(t,`popover-body`),(0,X.jsx)(n,{ref:i,className:(0,Ut.default)(e,t),...r})));Gt.displayName=`PopoverBody`,s.Component;function Kt(e,t){let n=e;return e===`left`?n=t?`end`:`start`:e===`right`&&(n=t?`start`:`end`),n}function qt(e=`absolute`){return{position:e,top:`0`,left:`0`,opacity:`0`,pointerEvents:`none`}}var Jt=s.forwardRef(({bsPrefix:e,placement:t=`right`,className:n,style:r,children:i,body:a,arrowProps:s,hasDoneInitialMeasure:c,popper:l,show:u,...d},f)=>{let p=o.n(e,`popover`),m=o.r(),[h]=t?.split(`-`)||[],g=Kt(h,m),_=r;return u&&!c&&(_={...r,...qt(l?.strategy)}),(0,X.jsxs)(`div`,{ref:f,role:`tooltip`,style:_,"x-placement":h,className:(0,Ut.default)(n,p,h&&`bs-popover-${g}`),...d,children:[(0,X.jsx)(`div`,{className:`popover-arrow`,...s}),a?(0,X.jsx)(Gt,{children:i}):i]})});Jt.displayName=`Popover`;var Yt=Object.assign(Jt,{Header:Wt,Body:Gt,POPPER_OFFSET:[0,8]}),Xt=s.forwardRef(({bsPrefix:e,placement:t=`right`,className:n,style:r,children:i,arrowProps:a,hasDoneInitialMeasure:s,popper:c,show:l,...u},d)=>{e=o.n(e,`tooltip`);let f=o.r(),[p]=t?.split(`-`)||[],m=Kt(p,f),h=r;return l&&!s&&(h={...r,...qt(c?.strategy)}),(0,X.jsxs)(`div`,{ref:d,style:h,role:`tooltip`,"x-placement":p,className:(0,Ut.default)(n,e,`bs-tooltip-${m}`),...u,children:[(0,X.jsx)(`div`,{className:`tooltip-arrow`,...a}),(0,X.jsx)(`div`,{className:`${e}-inner`,children:i})]})});Xt.displayName=`Tooltip`;var Z=Object.assign(Xt,{TOOLTIP_OFFSET:[0,6]});function Zt(e){let t=(0,s.useRef)(null),n=o.n(void 0,`popover`),r=o.n(void 0,`tooltip`);return[t,[(0,s.useMemo)(()=>({name:`offset`,options:{offset:()=>{if(e)return e;if(t.current){if(o.s(t.current,n))return Yt.POPPER_OFFSET;if(o.s(t.current,r))return Z.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r])]]}function Qt(e,t){let{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||=e=>n(o.a(e)),t.ref=r.__wrapped||=e=>r(o.a(e))}var $t=s.forwardRef(({children:e,transition:t=o.i,popperConfig:n={},rootClose:r=!1,placement:i=`top`,show:a=!1,...c},l)=>{let u=(0,s.useRef)({}),[d,f]=(0,s.useState)(null),[p,m]=Zt(c.offset),h=o.v(l,p),g=t===!0?o.i:t||void 0,_=o.y(e=>{f(e),n==null||n.onFirstUpdate==null||n.onFirstUpdate(e)});return Ht(()=>{d&&c.target&&(u.current.scheduleUpdate==null||u.current.scheduleUpdate())},[d,c.target]),(0,s.useEffect)(()=>{a||f(null)},[a]),(0,X.jsx)(Bt,{...c,ref:h,popperConfig:{...n,modifiers:m.concat(n.modifiers||[]),onFirstUpdate:_},transition:g,rootClose:r,placement:i,show:a,children:(r,{arrowProps:i,popper:a,show:o})=>{var c;Qt(r,i);let l=a?.placement,f=Object.assign(u.current,{state:a?.state,scheduleUpdate:a?.update,placement:l,outOfBoundaries:(a==null||(c=a.state)==null||(c=c.modifiersData.hide)==null?void 0:c.isReferenceHidden)||!1,strategy:n.strategy}),p=!!d;return typeof e==`function`?e({...r,placement:l,show:o,...!t&&o&&{className:`show`},popper:f,arrowProps:i,hasDoneInitialMeasure:p}):s.cloneElement(e,{...r,placement:l,arrowProps:i,popper:f,hasDoneInitialMeasure:p,className:(0,Ut.default)(e.props.className,!t&&o&&`show`),style:{...e.props.style,...r.style}})}})});$t.displayName=`Overlay`;var en=e.n(o.o());function tn(e){return e&&typeof e==`object`?e:{show:e,hide:e}}function nn(e,t,n){let[r]=t,i=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];(!a||a!==i)&&!o.h(i,a)&&e(...t)}en.default.oneOf([`click`,`hover`,`focus`]);var Q=({trigger:e=[`hover`,`focus`],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:a=!1,onToggle:c,delay:l,placement:u,flip:d=u&&u.indexOf(`auto`)!==-1,...f})=>{let p=(0,s.useRef)(null),m=o.v(p,o.l(n)),h=g(),_=(0,s.useRef)(``),[y,b]=v(i,a,c),x=tn(l),{onFocus:S,onBlur:C,onClick:w}=typeof n==`function`?{}:s.Children.only(n).props,T=e=>{m(o.a(e))},E=(0,s.useCallback)(()=>{if(h.clear(),_.current=`show`,!x.show){b(!0);return}h.set(()=>{_.current===`show`&&b(!0)},x.show)},[x.show,b,h]),D=(0,s.useCallback)(()=>{if(h.clear(),_.current=`hide`,!x.hide){b(!1);return}h.set(()=>{_.current===`hide`&&b(!1)},x.hide)},[x.hide,b,h]),O=(0,s.useCallback)((...e)=>{E(),S?.(...e)},[E,S]),k=(0,s.useCallback)((...e)=>{D(),C?.(...e)},[D,C]),A=(0,s.useCallback)((...e)=>{b(!y),w?.(...e)},[w,b,y]),j=(0,s.useCallback)((...e)=>{nn(E,e,`fromElement`)},[E]),M=(0,s.useCallback)((...e)=>{nn(D,e,`toElement`)},[D]),N=e==null?[]:[].concat(e),P={ref:T};return N.indexOf(`click`)!==-1&&(P.onClick=A),N.indexOf(`focus`)!==-1&&(P.onFocus=O,P.onBlur=k),N.indexOf(`hover`)!==-1&&(process.env.NODE_ENV!==`production`&&(0,Ot.default)(N.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.'),P.onMouseOver=j,P.onMouseOut=M),(0,X.jsxs)(X.Fragment,{children:[typeof n==`function`?n(P):(0,s.cloneElement)(n,P),(0,X.jsx)($t,{...f,show:y,onHide:D,flip:d,placement:u,popperConfig:r,target:p.current,children:t})]})};function rn(e){let{profile_photo:t,width:n,alt:r,hideDefault:i,activityStatus:a,user_id:o}=e;return t?.key?(0,X.jsxs)(`div`,{"data-using-react-profile-photo":`true`,className:`profile-photo-wrap ${n?``:`w-100 h-100`}`,style:{...n&&{width:n,height:n}},children:[(0,X.jsx)(an,{activityStatus:a,user_id:o}),(0,X.jsx)(`img`,{className:`w-100 h-100`,src:`${process.env.NEXT_PUBLIC_CDN}${t.key}`,style:{objectFit:`contain`},alt:r||`Profile photo of a user`})]}):(0,X.jsxs)(`div`,{"data-using-react-profile-photo":`true`,className:(0,Ut.default)(`profile-photo-wrap`,{"w-100 h-100":!n,"d-none":i}),style:{...n&&{width:n,height:n}},children:[(0,X.jsx)(an,{activityStatus:a,user_id:o}),(0,X.jsx)(`img`,{className:`w-100 h-100`,src:`${process.env.NEXT_PUBLIC_CDN}profile_photos/starter/articles.jpg`,style:{objectFit:`contain`},alt:r||`Profile photo of a user`})]})}function an({activityStatus:e,user_id:t}){if(!(!e||!t))return(0,X.jsx)(`div`,{"data-user_id":t,className:(0,Ut.default)(`online-status`,{"status-online":e?.status==`Online`||t==`630f0b337c52851e754b03f7`,"status-offline":e?.status==`Offline`,"status-away":e?.status==`Away`,"activity-active":!1})})}var on=e=>{let t=new URLSearchParams({user_id:e.user_id}).toString();return fetch(`${e.url}?${t}`).then(e=>e.json())},sn={dedupingInterval:1e3*60*1,focusThrottleInterval:1e3*60*1},cn=e=>{let{data:t,error:n,isLoading:r,isValidating:i,mutate:a}=(0,d.default)(e?.user_id?{url:process.env.NODE_ENV===`development`?`http://localhost:3001/api/user-public/getUserDetails`:`https://articles.media/api/user-public/getUserDetails`,user_id:e.user_id}:null,on,sn);return{data:t,error:n,isLoading:r,isValidating:i,mutate:a}};function ln({className:e,noOutline:t,children:n,inline:r}){let[i,a]=(0,s.useState)();if((0,s.useEffect)(()=>{a(!0)},[]),n&&(!1)?.roles?.isDev&&i)return(0,X.jsx)(`div`,{className:`is-dev-content ${t&&`no-outline`} ${e} ${r&&`d-inline-block`}`,children:n})}var $={BASE:`https://articles.media`,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 un({activeLayoutProposalSentiments:e,populated_user:t,usersProposalSentiments:n,setShowFullStanceDetails:a,showFullStanceDetails:o,userData:s}){return(0,X.jsx)(`div`,{className:`row mx-0 mb-2`,children:[{name:`${t?.display_name||s.display_name}`,data:e||{}},{name:`You`,data:n||{}}].map(e=>e.name==`You`?(0,X.jsx)(`div`,{className:`col-lg-6 px-1`,children:(0,X.jsxs)(`div`,{className:`card card-articles card-sm h-100`,children:[(0,X.jsx)(`div`,{className:`card-header`,children:(0,X.jsx)(`b`,{children:e.name})}),(0,X.jsx)(`div`,{className:`card-body p-2`,children:(0,X.jsx)(`small`,{children:`Login or create an account to compare your political stance with this user!`})}),(0,X.jsxs)(`div`,{className:`card-footer`,children:[(0,X.jsx)(i.t,{href:$.SIGN_IN,children:(0,X.jsx)(r.t,{small:!0,className:``,children:`Sign In`})}),(0,X.jsx)(i.t,{href:$.SIGN_UP,children:(0,X.jsx)(r.t,{small:!0,className:``,children:`Sign Up`})})]})]})},e.name):(0,X.jsx)(`div`,{className:`col-lg-6 px-1`,children:(0,X.jsxs)(`div`,{className:`card card-articles card-sm`,children:[(0,X.jsx)(`div`,{className:`card-header`,onClick:()=>{console.log(e.data)},children:(0,X.jsx)(`b`,{children:e.name})}),(0,X.jsxs)(`div`,{className:`card-body py-2 px-2 small`,children:[(0,X.jsxs)(`div`,{className:``,children:[(0,X.jsxs)(`div`,{className:`small`,children:[`Fundamental: `,e?.data?.fundamental?.filter(t=>e.data?.user_sentiments?.find(e=>e.proposal_id==t._id)?t:null).length,`/`,e?.data?.fundamental?.length]}),(0,X.jsx)(f.ProgressBar,{striped:!0,variant:`dark`,className:`shadow-articles mb-2`,now:(e.data?.fundamental?.filter(t=>e.data?.user_sentiments?.find(e=>e.proposal_id==t._id)?t:null).length/e.data?.fundamental?.length*100).toFixed(2),label:`${(e.data?.fundamental?.filter(t=>e.data?.user_sentiments?.find(e=>e.proposal_id==t._id)?t:null).length/e.data?.fundamental?.length*100).toFixed(2)}%`}),(0,X.jsxs)(f.ProgressBar,{className:`shadow-articles mb-2`,style:{height:`10px`},children:[(0,X.jsx)(f.ProgressBar,{striped:!0,variant:`danger`,now:(e.data?.user_sentiments?.filter(e=>e.sentiment_status==`Disagree`&&e.populated_proposal.fundamental)?.length/e.data?.fundamental?.length*100).toFixed(2)}),(0,X.jsx)(f.ProgressBar,{striped:!0,variant:`warning`,now:(e.data?.user_sentiments?.filter(e=>e.sentiment_status==`Needs Work`&&e.populated_proposal.fundamental)?.length/e.data?.fundamental?.length*100).toFixed(2)}),(0,X.jsx)(f.ProgressBar,{striped:!0,variant:`success`,now:(e.data?.user_sentiments?.filter(e=>e.sentiment_status==`Agree`&&e.populated_proposal.fundamental)?.length/e.data?.fundamental?.length*100).toFixed(2)})]}),(0,X.jsxs)(`div`,{className:``,children:[`Disagree: `,e.data?.user_sentiments?.filter(t=>{let n=e.data?.fundamental.find(e=>e._id==t.proposal_id);return t.sentiment_status==`Disagree`&&n})?.length||0]}),(0,X.jsxs)(`div`,{className:``,children:[`Needs Work: `,e.data?.user_sentiments?.filter(t=>{let n=e.data?.fundamental.find(e=>e._id==t.proposal_id);return t.sentiment_status==`Needs Work`&&n})?.length||0]}),(0,X.jsxs)(`div`,{className:`mb-2`,children:[`Agree: `,e.data?.user_sentiments?.filter(t=>{let n=e.data?.fundamental.find(e=>e._id==t.proposal_id);return t.sentiment_status==`Agree`&&n})?.length||0]})]}),!o&&(0,X.jsx)(`span`,{onClick:()=>a(!0),className:`badge bg-articles-secondary shadow-articles badge-hover`,children:`View More`}),o&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`hr`,{}),(0,X.jsxs)(`div`,{className:`mb-2`,children:[(0,X.jsxs)(`div`,{className:`small`,children:[`All: `,e.data?.user_sentiments?.length,`/`,e.data?.total]}),(0,X.jsx)(f.ProgressBar,{striped:!0,animated:!0,variant:`dark`,className:`shadow-articles mb-1`,now:(e.data?.user_sentiments?.length/e.data?.total*100).toFixed(2),label:`${(e.data?.user_sentiments?.length/e.data?.total*100).toFixed(2)}%`}),(0,X.jsxs)(f.ProgressBar,{className:`shadow-articles mb-2`,style:{height:`10px`},children:[(0,X.jsx)(f.ProgressBar,{striped:!0,animated:!0,variant:`danger`,now:(e.data?.user_sentiments?.filter(e=>e.sentiment_status==`Disagree`)?.length/e.data?.total*100).toFixed(2)}),(0,X.jsx)(f.ProgressBar,{striped:!0,animated:!0,variant:`warning`,now:(e.data?.user_sentiments?.filter(e=>e.sentiment_status==`Needs Work`)?.length/e.data?.total*100).toFixed(2)}),(0,X.jsx)(f.ProgressBar,{striped:!0,animated:!0,variant:`success`,now:(e.data?.user_sentiments?.filter(e=>e.sentiment_status==`Agree`)?.length/e.data?.total*100).toFixed(2)})]}),(0,X.jsxs)(`div`,{className:``,children:[`Disagree: `,e.data?.user_sentiments?.filter(e=>e.sentiment_status==`Disagree`)?.length||0]}),(0,X.jsxs)(`div`,{className:``,children:[`Needs Work: `,e.data?.user_sentiments?.filter(e=>e.sentiment_status==`Needs Work`)?.length||0]}),(0,X.jsxs)(`div`,{className:`mb-2`,children:[`Agree: `,e.data?.user_sentiments?.filter(e=>e.sentiment_status==`Agree`)?.length||0]})]}),(0,X.jsx)(`hr`,{}),(0,X.jsx)(`p`,{className:`mb-0`,children:(0,X.jsxs)(`div`,{className:`row`,children:[(0,X.jsx)(`div`,{className:`col-9`,children:`Comments`}),(0,X.jsx)(`div`,{className:`col-3`,children:(0,X.jsx)(`b`,{children:e.data?.user_comments?.length||0})}),(0,X.jsx)(`div`,{className:`col-9`,children:`Submissions`}),(0,X.jsx)(`div`,{className:`col-3`,children:(0,X.jsx)(`b`,{children:e.data?.user_submissions})})]})})]})]})]})},e.name))})}function dn({activeLayoutProposalSentiments:e}){return(0,X.jsx)(`div`,{children:e.user_comments?.filter(e=>!e.parent_id).map(e=>(0,X.jsxs)(`div`,{className:`card card-articles card-sm border mb-2`,children:[(0,X.jsxs)(`div`,{className:`card-header small`,children:[`Commented on `,(0,X.jsx)(`b`,{children:e.populated_proposal.title})]}),(0,X.jsx)(`div`,{className:`card-body small p-2`,children:(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`span`,{className:`small`,children:(0,l.format)(new Date(e.date),`M/dd/yy`)}),(0,X.jsx)(`div`,{children:e.comment})]})}),(0,X.jsx)(`div`,{className:`card-footer`,children:(0,X.jsx)(i.t,{prefetch:!1,href:`${$.PROPOSALS}/${e.populated_proposal.url}?interaction_id=${e._id}`,children:(0,X.jsx)(r.t,{small:!0,children:`View`})})})]},e._id))})}function fn({activeLayoutProposalSentiments:e}){return(0,X.jsx)(`div`,{children:e.user_sentiments?.map(e=>(0,X.jsxs)(`div`,{className:`card card-articles card-sm border mb-2`,children:[(0,X.jsxs)(`div`,{className:`card-header small`,children:[`Gave their sentiment on `,(0,X.jsx)(`b`,{children:e.populated_proposal.title})]}),(0,X.jsxs)(`div`,{className:`card-body small p-2`,children:[(0,X.jsxs)(`div`,{className:`d-flex align-items-center border-bottom pb-1`,children:[e.sentiment_status==`Agree`&&(0,X.jsx)(`div`,{className:`badge shadow-articles bg-success`,children:`Agree`}),e.sentiment_status==`Needs Work`&&(0,X.jsx)(`div`,{className:`badge shadow-articles bg-warning text-dark`,children:`Needs Work`}),e.sentiment_status==`Disagree`&&(0,X.jsx)(`div`,{className:`badge shadow-articles bg-danger`,children:`Disagree`}),(0,X.jsx)(`span`,{className:`small ms-2`,children:(0,l.format)(new Date(e.date),`M/dd/yy`)})]}),(0,X.jsx)(`div`,{className:`mt-1`,children:e.comment})]}),(0,X.jsx)(`div`,{className:`card-footer`,children:(0,X.jsx)(i.t,{prefetch:!1,href:`https://articles.media/politics/proposals/${e.populated_proposal.url}?interaction_id=${e._id}`,children:(0,X.jsx)(r.t,{small:!0,children:`View`})})})]},e._id))})}function pn({activeLayoutProposalSentiments:e,userProposalsSubmitted:t}){let[n,a]=(0,s.useState)(!1);return(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`div`,{className:`mb-2`,children:t?.slice(0,n?100:1).map(e=>(0,X.jsxs)(`div`,{className:`card card-articles card-sm shadow-articles`,children:[(0,X.jsx)(`div`,{className:`card-body p-2 lh-sm d-flex align-items-center`,children:(0,X.jsxs)(`div`,{className:`ms-2`,children:[(0,X.jsx)(`div`,{children:e.title}),(0,X.jsxs)(`div`,{className:`small`,children:[e.type,e.fundamental&&` - Fundamental`]})]})}),(0,X.jsx)(`div`,{className:`card-footer d-flex`,children:(0,X.jsx)(i.t,{href:`${$.PROPOSALS_SUBMISSIONS_ALL}/${e._id}`,className:``,children:(0,X.jsx)(r.t,{small:!0,children:(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`i`,{className:`fad fa-eye me-1`}),`View`]})})})})]},e._id))}),t?.length>1&&(0,X.jsx)(r.t,{onClick:()=>a(!n),className:`w-100`,children:n?`View Less`:`View All`}),t?.length==0&&(0,X.jsx)(`span`,{className:`small`,children:`User has no proposal submissions`})]})}function mn(e){let{featured_image:t,thumbnail_size:n}=e;return(0,X.jsxs)(X.Fragment,{children:[(t?.image_type==`S3 File System`||t?.thumbnails?.length>0)&&(0,X.jsx)(X.Fragment,{children:t?.thumbnails?.length>0?(0,X.jsx)(X.Fragment,{children:n&&t?.thumbnails?.find(e=>e.width==n)?(0,X.jsx)(`img`,{style:{width:`100%`,height:`100%`,objectFit:`cover`},src:process.env.NEXT_PUBLIC_CDN+t?.thumbnails?.find(e=>e.width==n).key,loading:`lazy`,alt:``,className:`flex-shrink-0`}):(0,X.jsx)(`img`,{style:{width:`100%`,height:`100%`,objectFit:`cover`},src:process.env.NEXT_PUBLIC_CDN+[...t?.thumbnails].sort((e,t)=>e.width-t.width)[0].key,loading:`lazy`,alt:``,className:`flex-shrink-0`})}):(0,X.jsx)(`img`,{style:{width:`100%`,height:`100%`,objectFit:`cover`},src:process.env.NEXT_PUBLIC_CDN+t?.key,loading:`lazy`,alt:``,className:`flex-shrink-0`})}),t?.location&&!t?.image_type&&(t?.thumbnails?.length||0)<1&&(0,X.jsx)(`img`,{style:{objectFit:`cover`,width:`100%`,height:`100%`},src:`${process.env.NEXT_PUBLIC_CDN}${t?.key}`,alt:``,loading:`lazy`})]})}function hn(e){switch(e){case`story`:return $.STORIES;case`issue`:return $.ISSUES;case`myth`:return $.MYTHS;default:}}function gn({publicUserData:e}){return(0,X.jsx)(`div`,{children:e?.populated_news_comments?.filter(e=>!e.parent_id).map(e=>(0,X.jsxs)(`div`,{className:`card card-articles card-sm border mb-2`,children:[(0,X.jsxs)(`div`,{className:`card-header small`,children:[`Commented on `,(0,X.jsx)(`b`,{children:e.populated_news?.news_title})]}),(0,X.jsxs)(`div`,{className:`card-body small p-2 d-flex`,children:[(0,X.jsx)(`div`,{style:{width:`100px`,height:`100px`},className:`me-2 flex-shrink-0`,children:(0,X.jsx)(mn,{featured_image:e?.populated_news?.featured_image,thumbnail_size:100})}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`span`,{className:`small`,children:(0,l.format)(new Date(e.date),`M/dd/yy`)}),(0,X.jsx)(`div`,{children:e.comment})]})]}),(0,X.jsx)(`div`,{className:`card-footer`,children:(0,X.jsx)(i.t,{prefetch:!1,href:`${hn(e.populated_news?.news_type)}/${e.populated_news?.url}?interaction_id=${e._id}`,children:(0,X.jsx)(r.t,{small:!0,children:`View`})})})]},e._id))})}function _n({userNewsSubmitted:e}){let[t,n]=(0,s.useState)(!1);return(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(`div`,{className:`mb-1 d-flex justify-content-between align-items-center`,children:[(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`i`,{className:`fad fa-newspaper me-1`}),(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{children:`News Submissions: `}),(0,X.jsx)(`span`,{className:`badge bg-dark`,children:e?.length||0})]})]}),(0,X.jsxs)(`span`,{className:`badge bg-articles-secondary`,children:[(0,X.jsx)(`i`,{className:`fad fa-info me-1`}),(0,X.jsx)(`span`,{children:`Info`})]})]}),(0,X.jsx)(`div`,{className:`mb-1`,children:e?.slice(0,t?100:1).map(e=>(0,X.jsxs)(`div`,{className:`card card-articles shadow-articles`,children:[(0,X.jsxs)(`div`,{className:`card-body py-1 px-2 lh-sm d-flex align-items-center`,children:[(0,X.jsx)(`img`,{className:``,src:e?.featured_image?.location,width:`40px`,height:`40px`,style:{objectFit:`cover`},alt:``}),(0,X.jsx)(`div`,{className:`ms-2`,children:(0,X.jsx)(`div`,{children:e.news_title})})]}),(0,X.jsx)(`div`,{className:`card-footer d-flex p-1`,children:(0,X.jsx)(i.t,{href:`${$.HOME}/${e.url}`,children:(0,X.jsxs)(r.t,{small:!0,className:``,children:[(0,X.jsx)(`i`,{className:`fad fa-eye me-1`}),`View`]})})})]},e._id))}),e?.length>1?(0,X.jsx)(r.t,{onClick:()=>n(!t),small:!0,className:``,children:t?`View Less`:`View All`}):(0,X.jsx)(`span`,{className:`small`,children:`User has no news submissions`})]})}function vn({activeLayoutProposalSentiments:e,userDonations:t,lifetimeContribution:n}){let[o,c]=(0,s.useState)(!1);return(0,X.jsxs)(`div`,{className:`card card-articles `,children:[(0,X.jsxs)(`div`,{className:`card-header d-flex justify-content-between align-items-center p-1`,children:[(0,X.jsx)(`span`,{children:`Donations: `}),(0,X.jsxs)(`span`,{className:`badge bg-dark`,children:[t.count,` - `,`$${a.t((n/100||0).toFixed(2))}`]})]}),(0,X.jsxs)(`div`,{className:`card-body p-2`,children:[t?.list?.length==0&&(0,X.jsx)(`span`,{className:`small`,children:`User has no donations`}),(0,X.jsx)(`div`,{className:`donations-wrap`,children:t?.list?.slice(0,o?100:3).map(e=>(0,X.jsxs)(`div`,{className:`border`,children:[(0,X.jsxs)(`div`,{className:`card-body py-1 px-2 lh-sm d-flex align-items-center`,children:[(0,X.jsx)(`div`,{className:`small`,children:`Most Recent`}),(0,X.jsxs)(`div`,{className:`ms-2 d-flex align-items-center`,children:[(0,X.jsx)(`div`,{className:`h4 mb-0 me-2`,children:`$${a.t((e.amount/100).toFixed(2))}`}),(0,X.jsx)(`div`,{className:`small`,children:(0,l.format)(new Date(e.date),`M/dd/yy`)})]})]}),(0,X.jsx)(`div`,{className:`card-footer d-flex p-1`,children:(0,X.jsx)(i.t,{href:`${$.HOME}/${e.url}`,children:(0,X.jsxs)(r.t,{className:``,small:!0,children:[(0,X.jsx)(`i`,{className:`fad fa-eye me-1`}),`View`]})})})]},e._id))})]}),(0,X.jsx)(`div`,{className:`card-footer p-1 d-flex justify-content-center`,children:t.count>1&&(0,X.jsx)(r.t,{onClick:()=>{c(!o)},className:`w-100`,children:o?`View Less`:`View All`})})]})}function yn({userLayoutsData:e,handleClose:t}){return(0,X.jsx)(`div`,{children:e?.map(e=>(0,X.jsxs)(`div`,{className:`card card-articles shadow-articles`,children:[(0,X.jsx)(`div`,{className:`card-body py-1 px-2 lh-sm d-flex align-items-center`,children:(0,X.jsxs)(`div`,{className:`ms-2`,children:[(0,X.jsx)(`div`,{children:e.name}),(0,X.jsx)(`div`,{className:`small`,children:`Last Viewed: Never`})]})}),(0,X.jsxs)(`div`,{className:`card-footer d-flex p-1`,children:[(!1)._id!==e.user_id&&(0,X.jsxs)(r.t,{className:``,small:!0,children:[(0,X.jsx)(`i`,{className:`fad fa-plus me-1`}),`Follow`]}),(0,X.jsx)(i.t,{href:`${$.HOME}/${e.url}`,children:(0,X.jsxs)(r.t,{className:``,small:!0,children:[(0,X.jsx)(`i`,{className:`fad fa-eye me-1`}),`View`]})})]})]},e._id))})}function bn({activeLayoutProposalSentiments:e,userData:t}){return(0,X.jsx)(`div`,{children:(0,X.jsx)(`div`,{className:``,children:t?.verified?.verified_methods?.map((e,t)=>Object.keys(e)?.length>0?(0,X.jsxs)(`div`,{className:`card card-articles card-sm object mb-2`,children:[(0,X.jsx)(`div`,{className:`card-header`,children:e?.method_name}),(0,X.jsx)(`div`,{className:`card-body p-2`,children:(0,X.jsxs)(`div`,{className:`small`,children:[(0,X.jsxs)(`div`,{className:`d-flex align-items-center`,children:[(0,X.jsx)(`span`,{className:`me-2`,children:`Approved On: `}),(0,X.jsx)(a.n,{date:e.approved_date})]}),(0,X.jsxs)(`div`,{className:`d-flex align-items-center`,children:[(0,X.jsx)(`span`,{className:`me-2`,children:`Approved By: `}),(0,X.jsx)(Tn,{user_id:e.approved_by,dangerousPopulate:!0})]})]})})]},t):(0,X.jsx)(`div`,{className:`single`,children:e},t))})})}var xn=[];function Sn({activeLayoutProposalSentiments:e}){return(0,X.jsx)(`div`,{children:(0,X.jsx)(`div`,{className:`achievements card card-articles`,children:(0,X.jsx)(`div`,{className:`card-body p-0`,children:xn.map(e=>(0,X.jsx)(`div`,{children:(0,X.jsxs)(`div`,{className:`achievement w-100 d-flex align-items-center`,children:[(0,X.jsx)(`div`,{className:`icon`,style:{width:`50px`},children:(0,X.jsx)(`i`,{className:`fad ${e.icon} fa-lg`})}),(0,X.jsxs)(`div`,{className:`details small me-auto`,children:[(0,X.jsx)(`b`,{className:`name`,children:e.name}),(0,X.jsx)(`div`,{className:`description mb-1`,children:e.description}),(0,X.jsx)(`div`,{className:`small`,children:e.tags?.map(e=>(0,X.jsx)(`span`,{className:`badge bg-dark border`,children:e},e))})]}),(0,X.jsx)(`div`,{className:`icon border-end-0 border-start border-dark`,children:(0,X.jsx)(`div`,{className:`text-center px-3`,children:(0,X.jsx)(`i`,{className:`fad fa-square fa-lg me-0`})})})]})},e.name))})})})}var Cn=e=>fetch(e).then(e=>e.json());(0,l.minutesToMilliseconds)(60),(0,l.minutesToMilliseconds)(60);var wn=e=>{let{data:t,error:n,isLoading:r,mutate:i}=(0,c.default)(process.env.NODE_ENV===`development`?`http://localhost:3001/api/news/resources/political-parties`:`https://articles.media/api/news/resources/political-parties`,Cn,e?.preload?{dedupingInterval:1e3*60*10,fallbackData:e?.preload}:{dedupingInterval:1e3*60*10});return{data:t,error:n,isLoading:r,mutate:i}};function Tn(e){let{populated_user:t,hidePhoto:n,visibleItems:c,size:u,className:d,dangerousPopulate:f,user_id:p,buttonType:m,children:h,fakeMembership:g}=e,[_,v]=(0,s.useState)(!1),[y,b]=(0,s.useState)({}),[x,S]=(0,s.useState)([]),[C,w]=(0,s.useState)([]),[T,E]=(0,s.useState)(null),[D,O]=(0,s.useState)([]),[k,A]=(0,s.useState)([]),[j,M]=(0,s.useState)(!1),{data:N,isLoading:P,mutate:F}=wn(),[I,ee]=(0,s.useState)(`Proposals Stance`),L=()=>{v(!1)};(0,s.useEffect)(()=>{t&&b({...t})},[]);let[te,R]=(0,s.useState)(!1),[z,B]=(0,s.useState)([]),[V,ne]=(0,s.useState)([]),{data:H,isLoading:re,mutate:U}=cn((p||t?._id)&&(_||f)?{user_id:p||t?._id}:null),{data:W,isLoading:ie,mutate:G}=cn((!1)?._id&&(_||f)?{user_id:(!1)?._id}:null);(0,s.useEffect)(()=>{H&&(console.log(`publicUserData`,H),b(H),S(H?.populated_public_layouts),w(H?.populated_public_donations),E(H?.populated_public_donations.total),A(H?.populated_public_proposals),B(H?.populated_public_proposals_stance),O(H?.populated_public_news_submissions||[]))},[H]),(0,s.useEffect)(()=>{W&&(console.log(`personalUserData`,W),ne(W?.populated_public_proposals_stance))},[W]);let ae=(t||y)?.articles_membership?.plan.replace(` `,`-`).toLowerCase(),oe=g?.replace(` `,`-`).toLowerCase(),K=`https://articles.media/images/store/memberships/`,q=()=>{let e=(t||y)?.articles_membership?.status==`Active`;return(0,X.jsxs)(`div`,{style:u==`lg`?{fontSize:`1.5rem`}:{},className:`view-user-modal-badge-wrap ${u==`lg`&&`large`} ${d&&d}`,children:[(0,X.jsxs)(`span`,{onClick:()=>{v(!0)},className:`position-relative view-user-modal-badge d-flex justify-content-between align-items-center badge bg-articles badge-hover `,children:[(e||g)&&(0,X.jsx)(`i`,{className:`fad membership-badge ${oe||ae} fa-badge-check`,style:{position:`absolute`,top:`-2px`,left:`-2px`,fontSize:`0.9rem`,zIndex:1}}),(0,X.jsxs)(`div`,{className:`d-flex align-items-center ${e&&``}`,children:[!n&&(0,X.jsx)(`div`,{className:u==`lg`?`me-0`:`me-1`,children:(0,X.jsx)(rn,{width:`15px`,profile_photo:y.profile_photo})}),y.display_name||t?.display_name]}),(0,X.jsx)(`i`,{className:`fad fa-plus-square me-0 ms-2`})]}),c?.includes(`Not Verified`)&&t?.verified?.status!==`Verified`&&(0,X.jsx)(Q,{placement:`bottom`,overlay:(0,X.jsx)(Z,{style:{pointerEvents:`none`},id:`button-tooltip`,children:(0,X.jsx)(`div`,{className:``,children:`User is not verified`})}),children:(0,X.jsxs)(`span`,{className:`verification-user-badge badge bg-danger d-flex align-items-center`,children:[(0,X.jsx)(`i`,{style:{paddingBottom:`2px`},className:`fas fa-robot me-1`}),(0,X.jsx)(`span`,{className:``,children:`Unverified`})]})}),!1,c?.includes(`Verification Status`)&&(0,X.jsx)(Q,{placement:`bottom`,overlay:(0,X.jsx)(Z,{id:`button-tooltip`,style:{pointerEvents:`none`,transformX:`-20px`},children:t?.verified?.status==`Verified`?`Verified`:` Not Verified`}),children:t?.verified?.status==`Verified`?(0,X.jsx)(`span`,{className:`verification-user-badge badge bg-success cursor-pointer`,children:(0,X.jsx)(`i`,{className:`fas fa-check me-0`})}):(0,X.jsxs)(`span`,{className:`verification-user-badge badge bg-danger cursor-pointer`,children:[(0,X.jsx)(`i`,{className:`fas fa-robot me-1`}),(0,X.jsx)(`span`,{children:`?`})]})}),c?.includes(`Political Party`)&&(0,X.jsx)(`div`,{className:`d-flex`,children:(t||y)?.political?.party_id&&(0,X.jsx)(Q,{placement:`bottom`,overlay:(0,X.jsxs)(Z,{id:`tooltip-bottom`,style:{position:`fixed`},children:[(0,X.jsx)(`img`,{width:`40px`,height:`40px`,style:{objectFit:`contain`,padding:`0px`,zIndex:`10`,position:`relative`},loading:`lazy`,src:`${process.env.NEXT_PUBLIC_CDN}`+N?.find(e=>e._id==(t||y)?.political?.party_id)?.logo,alt:``}),(0,X.jsx)(`span`,{className:`ms-2`,children:N?.find(e=>e._id==(t||y)?.political?.party_id)?.name})]}),children:(0,X.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:(t||y)?.political?.party_id&&((t||y)?.political?.party_id==`62a830440593acbd4061c48c`?(0,X.jsx)(`i`,{className:`fad fa-unlink unaffiliated-icon fa-lg me-0`}):(0,X.jsx)(`img`,{width:`15px`,height:`15px`,style:{objectFit:`contain`,padding:`0px`},loading:`lazy`,src:`${process.env.NEXT_PUBLIC_CDN}`+N?.find(e=>e._id==(t||y)?.political?.party_id)?.logo,alt:``}))})})})]})};function se(e){switch(e){case`Link`:return(0,X.jsx)(`span`,{type:`button`,onClick:()=>{v(!0)},children:h});default:return(0,X.jsx)(q,{})}}let[J,ce]=(0,s.useState)(!1),[le,ue]=(0,s.useState)({}),[de,fe]=(0,s.useState)({});(0,s.useEffect)(()=>{J&&Object.keys(le).length==0&&console.log(`adminUserData`,W)},[J]);let[pe,me]=(0,s.useState)(null);function he(){alert(`TODO`)}let ge=(0,s.useMemo)(()=>x?.filter(e=>e.user_layout)?.[0]?.url,[x]);return(0,X.jsxs)(X.Fragment,{children:[se(m),(0,X.jsxs)(o.t,{show:_,size:`lg`,id:`view-users-modal`,className:`view-users-modal articles-modal`,scrollable:!0,onHide:L,children:[(0,X.jsx)(o.t.Header,{closeButton:!0,children:(0,X.jsx)(`div`,{className:`w-100 d-flex justify-content-between align-items-center`,children:(0,X.jsx)(`h3`,{className:`mb-0`,children:`User Info`})})}),(0,X.jsx)(o.t.Body,{children:(0,X.jsxs)(`div`,{className:`main-panel`,children:[(0,X.jsxs)(`div`,{className:`d-flex`,children:[(0,X.jsxs)(`div`,{className:`d-flex flex-column align-items-center`,style:{width:`100px`},children:[(0,X.jsx)(`div`,{type:`button`,onClick:()=>{me(`${process.env.NEXT_PUBLIC_CDN}${y?.profile_photo?.key}`)},children:(0,X.jsx)(rn,{width:`100px`,profile_photo:y?.profile_photo})}),(0,X.jsx)(Q,{placement:`bottom`,overlay:(0,X.jsx)(Z,{id:`tooltip-bottom`,children:`Joined Articles Media`}),children:(0,X.jsxs)(`div`,{className:`badge bg-black border border-white shadow-sm rounded-0`,children:[`Joined `,y?.sign_up_date&&(0,l.format)(new Date(y?.sign_up_date),`M/dd/yy`)]})}),ge&&(0,X.jsx)(i.t,{href:`https://articles.media/layouts/${ge}`,className:`mt-2 w-100`,children:(0,X.jsxs)(r.t,{className:`w-100`,style:{},children:[(0,X.jsx)(`i`,{className:`fad fa-home`}),(0,X.jsx)(`span`,{children:`Layout`})]})}),(0,X.jsx)(ln,{className:`w-100`,children:(0,X.jsx)(i.t,{href:{pathname:`https://articles.media/messages`,query:{startMsg:y?._id}},className:`mt-2 w-100`,children:(0,X.jsxs)(r.t,{className:`w-100`,style:{fontSize:`0.88rem`},children:[(0,X.jsx)(`i`,{className:`fad fa-envelope`}),(0,X.jsx)(`span`,{children:`Message`})]})})}),J&&(0,X.jsxs)(`div`,{className:`d-flex flex-column w-100 mt-2`,style:{maxWidth:`100px`},children:[(0,X.jsx)(r.t,{variant:`warning`,small:!0,className:``,children:(0,X.jsx)(Textfit,{max:14,mode:`single`,children:`Remove Photo`})}),le?.user?.profile_photo?.banned_uploads?(0,X.jsx)(r.t,{variant:`warning`,small:!0,className:``,onClick:()=>{toggleBanCustomPhotoUpload()},children:(0,X.jsx)(Textfit,{max:14,mode:`single`,children:`Unban Uploads`})}):(0,X.jsx)(r.t,{variant:`danger`,small:!0,className:``,onClick:()=>{toggleBanCustomPhotoUpload()},children:(0,X.jsx)(Textfit,{max:14,mode:`single`,children:`Ban Uploads`})})]})]}),(0,X.jsxs)(`div`,{className:`mx-2`,children:[(0,X.jsxs)(`div`,{className:`d-flex align-items-center mb-1`,children:[(0,X.jsx)(`h5`,{className:`mb-0`,children:t?.display_name||y.display_name}),(0,X.jsxs)(`span`,{className:`ms-2`,children:[` @`,y?.username]})]}),y?.articles_membership?.status==`Active`&&(0,X.jsx)(Q,{placement:`bottom`,overlay:(0,X.jsx)(Z,{id:`tooltip-bottom`,children:(0,X.jsxs)(`div`,{className:`d-flex flex-column py-1`,children:[(0,X.jsxs)(`div`,{className:`position-relative`,children:[y?.articles_membership?.plan==`Supporter`&&(0,X.jsx)(`img`,{src:`${K}supporter.jpg`,width:50,height:50,alt:`Membership plan level`}),y?.articles_membership?.plan==`Premium Supporter`&&(0,X.jsx)(`img`,{src:`${K}premiumSupporter.jpg`,width:50,height:50,alt:`Membership plan level`}),y?.articles_membership?.plan==`Advocate`&&(0,X.jsx)(`img`,{src:`${K}advocate.jpg`,width:50,height:50,alt:`Membership plan level`}),(0,X.jsx)(`i`,{className:`fad membership-badge ${ae} fa-badge-check me-1`,style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translateX(-50%) translateY(-50%)`,fontSize:`1.5rem`}})]}),(0,X.jsxs)(`span`,{className:`lh-sm`,children:[(0,X.jsx)(`div`,{children:y?.articles_membership?.plan}),(0,X.jsxs)(`div`,{className:`small`,children:[`Since `,(0,X.jsx)(a.n,{format:`MM/dd/yy`,date:y?.articles_membership?.membership_started})]})]})]})}),children:(0,X.jsxs)(`div`,{className:`badge bg-articles border me-1 mb-1`,style:{cursor:`pointer`},children:[(0,X.jsx)(`i`,{className:`fad membership-badge ${ae} fa-badge-check me-1`,style:{}}),(0,X.jsx)(`span`,{children:y?.articles_membership?.plan}),(0,X.jsx)(`span`,{className:`px-1`,children:`|`}),(0,X.jsx)(`span`,{className:`months fw-bold`,children:(0,l.differenceInMonths)(new Date,new Date(y?.articles_membership?.membership_started))||0})]})}),y?.address?.state&&(0,X.jsx)(Q,{placement:`bottom`,overlay:y.address?.state?.length==2?(0,X.jsxs)(Z,{id:`tooltip-bottom`,children:[`From the state of `,convertRegion(y.address?.state,`name`)?convertRegion(y.address?.state,`name`)[0]:``]}):(0,X.jsxs)(Z,{id:`tooltip-bottom`,children:[`From the state of `,y.address?.state]}),children:(0,X.jsxs)(`div`,{className:`badge bg-articles border me-1 mb-1`,children:[(0,X.jsx)(`i`,{className:`fad fa-map-pin me-1`}),y.address?.state]})}),y.verified?.status!==`Verified`&&(0,X.jsx)(Q,{placement:`bottom`,overlay:(0,X.jsx)(Z,{id:`tooltip-bottom`,children:`User is not verified`}),children:(0,X.jsxs)(`div`,{className:`badge bg-danger me-1 mb-1`,children:[(0,X.jsx)(`i`,{className:`fad fa-robot me-1`}),`Unverified`]})}),y.verified?.status==`Verified`&&(0,X.jsx)(Q,{placement:`bottom`,overlay:(0,X.jsxs)(Z,{id:`tooltip-bottom`,className:``,children:[(0,X.jsxs)(`div`,{children:[`Verified by `,y.verified?.verified_methods?.length,` method`,y.verified?.verified_methods?.length>1&&`s`]}),(0,X.jsx)(`hr`,{}),(0,X.jsx)(`div`,{className:`pb-2`,children:y.verified?.verified_methods?.map((e,t)=>Object.keys(e)?.length>0?(0,X.jsx)(`div`,{className:`object`,children:e?.method_name},t):(0,X.jsx)(`div`,{className:`single`,children:e},t))})]}),children:(0,X.jsxs)(`div`,{className:`badge bg-articles border me-1 mb-1`,children:[(0,X.jsx)(`i`,{className:`fad fa-star me-1`}),y.verified?.status]})}),y.political?.party_id&&(0,X.jsx)(X.Fragment,{children:(0,X.jsx)(Q,{placement:`bottom`,overlay:(0,X.jsx)(Z,{id:`tooltip-bottom`,children:(0,X.jsx)(`div`,{children:`Users political party`})}),children:(0,X.jsx)(i.t,{href:`https://articles.media/politics/parties/${(t||y)?.political?.party_id}`,children:(0,X.jsx)(`div`,{className:`badge bg-articles border text-capitalize me-1`,children:(0,X.jsxs)(`div`,{className:``,children:[(t||y)?.political?.party_id==`62a830440593acbd4061c48c`?(0,X.jsx)(`i`,{className:`fad fa-unlink unaffiliated-icon fa-lg me-0`}):(0,X.jsx)(`img`,{width:`14px`,height:`14px`,style:{objectFit:`contain`,padding:`0px`},loading:`lazy`,src:`${process.env.NEXT_PUBLIC_CDN}`+N?.find(e=>e._id==y?.political?.party_id)?.logo,alt:``}),(0,X.jsx)(`span`,{className:`ms-1`,children:N?.find(e=>e._id==y.political?.party_id)?.name})]})})})})}),(0,X.jsx)(`hr`,{}),(0,X.jsx)(`div`,{className:`small`,children:y?._id==`5e90cc96579a17440c5d7d52`&&(0,X.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.`})})]})]}),(0,X.jsx)(`hr`,{}),J&&(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`div`,{className:`d-flex align-items-center justify-content-between`,children:(0,X.jsx)(`div`,{className:`small`,children:`Admin Mode Toolbar`})}),(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(`div`,{className:`d-flex mb-2`,children:[(0,X.jsx)(r.t,{small:!0,variant:`warning`,className:``,onClick:()=>{loadAdminUserData()},children:(0,X.jsx)(`i`,{className:`fad fa-redo me-0`})}),(0,X.jsx)(r.t,{active:J?.edit,small:!0,className:``,onClick:()=>{ce({...J,edit:!J?.edit})},children:`Edit Mode`}),J?.edit&&(0,X.jsx)(r.t,{small:!0,variant:`success`,className:`me-0`,onClick:()=>{he()},children:(0,X.jsx)(`i`,{className:`fad fa-save me-0`})})]}),[`User Details`,`Verification`,`Moderation`,`Bans`,`Stripe`,`Layouts`,`Reset Password`,`Sessions`].map(e=>(0,X.jsx)(r.t,{active:e==J?.tab,small:!0,onClick:()=>{ce({...J,tab:e})},children:e},e))]}),(0,X.jsx)(`hr`,{})]}),(0,X.jsxs)(`div`,{className:`pe-3 pb-3`,children:[(0,X.jsx)(`div`,{className:`mb-2 me-2`,children:[{name:`Proposals Stance`,badge:(0,X.jsx)(`span`,{className:`badge bg-black ms-1`,children:(0,X.jsxs)(`div`,{className:`small`,children:[(0,X.jsx)(`span`,{children:V?.fundamental?.filter(e=>V?.user_sentiments?.find(t=>t.proposal_id==e._id)?e:null).length}),(0,X.jsx)(`span`,{className:`px-1`,children:`/`}),(0,X.jsx)(`span`,{children:V?.fundamental?.length})]})})},{name:`Proposal Sentiments`,badge:(0,X.jsx)(`span`,{className:`badge bg-black ms-1`,children:y?.populated_public_proposals_stance?.user_sentiments_count||0})},{name:`Proposal Comments`,badge:(0,X.jsx)(`span`,{className:`badge bg-black ms-1`,children:y?.populated_public_proposals_stance?.user_comments_count||0})},{name:`Proposal Submissions`,badge:(0,X.jsx)(`span`,{className:`badge bg-black ms-1`,children:k?.length||0})},{name:`News Comments`,badge:(0,X.jsx)(`span`,{className:`badge bg-black ms-1`,children:y?.populated_news_comments_count||0})},{name:`News Submissions`,badge:(0,X.jsx)(`span`,{className:`badge bg-black ms-1`,children:D?.length||0})},{name:`Verifications`,badge:(0,X.jsx)(`span`,{className:`badge bg-black ms-1`,children:y.verified?.verified_methods?.length||0})},{name:`Layouts`,badge:(0,X.jsx)(`span`,{className:`badge bg-black ms-1`,children:x?.length||0})},{name:`Donations`,badge:(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{className:`badge bg-primary ms-1`,children:H?.populated_public_donations?.count||0}),(0,X.jsxs)(`span`,{className:`badge bg-black`,children:[`$`,a.t((H?.populated_public_donations.total/100).toFixed(2))]})]})},{name:`Orders`,badge:(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{className:`badge bg-primary ms-1`,children:`0`}),(0,X.jsx)(`span`,{className:`badge bg-black`,children:`0`})]})},{name:`Achievements`,dev:!0,badge:(0,X.jsx)(`span`,{className:`badge bg-black ms-1`,children:`0`})}].map(e=>(e.name,e.name,e.badge,e.name,e.dev?(0,X.jsx)(ln,{inline:!0,children:(0,X.jsxs)(r.t,{onClick:()=>ee(e.name),active:e.name==I,small:!0,children:[e.name,e.badge]},e.name)},e.name):(0,X.jsxs)(r.t,{onClick:()=>ee(e.name),active:e.name==I,small:!0,children:[e.name,e.badge]},e.name)))}),I==`Proposals Stance`&&(0,X.jsx)(un,{activeLayoutProposalSentiments:z,populated_user:t,usersProposalSentiments:V,setShowFullStanceDetails:R,showFullStanceDetails:te,userData:y}),I==`Proposal Comments`&&(0,X.jsx)(dn,{activeLayoutProposalSentiments:z}),I==`Proposal Sentiments`&&(0,X.jsx)(fn,{activeLayoutProposalSentiments:z}),I==`Proposal Submissions`&&(0,X.jsx)(pn,{userProposalsSubmitted:H?.populated_public_proposals}),I==`News Comments`&&(0,X.jsx)(gn,{publicUserData:H}),I==`News Submissions`&&(0,X.jsx)(_n,{publicUserData:H,userNewsSubmitted:H?.populated_public_news_submissions}),I==`Donations`&&(0,X.jsx)(vn,{publicUserData:H,userDonations:H?.populated_public_donations,lifetimeContribution:T}),I==`Layouts`&&(0,X.jsx)(yn,{publicUserData:H,userLayoutsData:H?.populated_public_layouts}),I==`Verifications`&&(0,X.jsx)(bn,{publicUserData:H,userData:y}),I==`Achievements`&&(0,X.jsx)(Sn,{publicUserData:H})]})]})}),(0,X.jsxs)(o.t.Footer,{className:`justify-content-between`,children:[(!1)?._id==`5e90cc96579a17440c5d7d52`?(0,X.jsxs)(`span`,{children:[(0,X.jsxs)(ln,{inline:!0,className:`me-2`,children:[(0,X.jsxs)(r.t,{onClick:()=>{ce(J?!1:{tab:``})},small:!0,active:J,variant:``,className:`me-1`,children:[(0,X.jsx)(`i`,{className:`fad fa-pen`}),(0,X.jsx)(`span`,{children:`Admin Mode`})]}),(0,X.jsx)(r.t,{onClick:()=>{U(),G()},small:!0,variant:`warning`,className:``,children:(0,X.jsx)(`i`,{className:`fad fa-redo me-0`})})]}),(0,X.jsx)(`span`,{style:{fontSize:`0.8rem`},children:y?._id})]}):(0,X.jsx)(`span`,{}),(0,X.jsx)(`div`,{className:`justify-content-`,children:(0,X.jsx)(r.t,{variant:`articles`,onClick:L,children:`Close`})})]})]})]})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Tn}});
|
package/dist/ViewUserModal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
"use client";const e=require(`./ViewUserModal-DPVcjXNU.cjs`);module.exports=e.t;
|