@articles-media/articles-dev-box 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Ad-BAvmOFcq.js +503 -0
- package/dist/Ad.js +1 -1
- package/dist/AdConfirmExitModal-BNFKKayL.js +55 -0
- package/dist/AdDetailsModal-Cv1ll9G-.js +107 -0
- package/dist/ArticlesAd.js +7 -8
- package/dist/{Button-BlAdEbSd.js → Button-CU11ETla.js} +9 -9
- package/dist/CreditsModal.js +23 -24
- package/dist/DarkModeHandler.js +11 -12
- package/dist/FriendsList.js +40 -41
- package/dist/{GameScoreboard-CBY3JsFa.js → GameScoreboard-Dj5mTFTn.js} +48 -49
- package/dist/GameScoreboard.js +1 -1
- package/dist/GlobalBody.js +20 -20
- package/dist/GlobalHead.js +2 -3
- package/dist/Link-8nSDV4sI.js +16 -0
- package/dist/ReturnToLauncherButton.js +17 -18
- package/dist/SettingsModal-tXcbd23J.js +246 -0
- package/dist/SettingsModal.js +1 -1
- package/dist/StatusModal-CBzdZdAm.js +69 -0
- package/dist/ViewUserModal-C_gWUvXi.js +1544 -0
- package/dist/ViewUserModal.js +1 -1
- package/dist/{classnames-DP6dWde5.js → classnames-CpG5mzJ5.js} +12 -4
- package/dist/index.js +4 -4
- package/dist/numberWithCommas-rN3cZDJL.js +1170 -0
- package/package.json +18 -66
- package/dist/Ad-Ck5UdTq3.js +0 -387
- package/dist/Ad-DYtftKNV.cjs +0 -1
- package/dist/Ad.cjs +0 -1
- package/dist/AdConfirmExitModal-CJ-HtcVC.js +0 -56
- package/dist/AdConfirmExitModal-CRCnzYQM.cjs +0 -1
- package/dist/AdDetailsModal-DRNRTL2W.js +0 -108
- package/dist/AdDetailsModal-g0n7LiV6.cjs +0 -1
- package/dist/ArticlesAd.cjs +0 -1
- package/dist/Button-CbpRj01E.cjs +0 -1
- package/dist/CreditsModal.cjs +0 -1
- package/dist/DarkModeHandler.cjs +0 -1
- package/dist/FriendsList.cjs +0 -1
- package/dist/GameScoreboard-DdOCRxON.cjs +0 -1
- package/dist/GameScoreboard.cjs +0 -1
- package/dist/GlobalBody.cjs +0 -33
- package/dist/GlobalHead.cjs +0 -1
- package/dist/Link-MFZblBb4.js +0 -17
- package/dist/Link-c7exNCJ3.cjs +0 -1
- package/dist/Modal-BX1s6CCU.js +0 -1631
- package/dist/Modal-DP9CeAVD.cjs +0 -3
- package/dist/ReturnToLauncherButton.cjs +0 -1
- package/dist/SettingsModal--sWLmLGp.cjs +0 -1
- package/dist/SettingsModal-XI2dMI09.js +0 -247
- package/dist/SettingsModal.cjs +0 -1
- package/dist/StatusModal-D7WDDR9P.cjs +0 -1
- package/dist/StatusModal-elrPJvX1.js +0 -70
- package/dist/ViewUserModal-DDjWLpyM.js +0 -3094
- package/dist/ViewUserModal-DPVcjXNU.cjs +0 -1
- package/dist/ViewUserModal.cjs +0 -1
- package/dist/chunk-350yNsax.cjs +0 -1
- package/dist/classnames-pS64X3rL.cjs +0 -1
- package/dist/index.cjs +0 -1
- package/dist/jsx-runtime-VZk6y-ec.js +0 -191
- package/dist/jsx-runtime-hCcDh67y.cjs +0 -6
- package/dist/numberWithCommas-BSKBdR-e.js +0 -18
- package/dist/numberWithCommas-D9tgiUnq.cjs +0 -1
- package/dist/useAuthSiteStatus-P5kHc_Bz.cjs +0 -1
- package/dist/useFullscreen.cjs +0 -1
- package/dist/useUserDetails.cjs +0 -1
- package/dist/useUserFriends.cjs +0 -1
- package/dist/useUserToken.cjs +0 -1
- /package/dist/{useAuthSiteStatus-1rHjYC4N.js → useAuthSiteStatus-Cj9IjMj7.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";const e=require(`./ViewUserModal-DPVcjXNU.cjs`);module.exports=e.t;
|
package/dist/chunk-350yNsax.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=require(`./chunk-350yNsax.cjs`).t(((e,t)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}));Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./ReturnToLauncherButton.cjs`),t=require(`./ArticlesAd.cjs`),n=require(`./Ad-DYtftKNV.cjs`),r=require(`./ViewUserModal-DPVcjXNU.cjs`),i=require(`./GameScoreboard-DdOCRxON.cjs`),a=require(`./GlobalHead.cjs`),o=require(`./GlobalBody.cjs`),s=require(`./SettingsModal--sWLmLGp.cjs`),c=require(`./CreditsModal.cjs`),l=require(`./DarkModeHandler.cjs`),u=require(`./useUserFriends.cjs`),d=require(`./FriendsList.cjs`),f=require(`./useUserDetails.cjs`),p=require(`./useUserToken.cjs`),m=require(`./useFullscreen.cjs`);exports.Ad=n.t,exports.ArticlesAd=t,exports.CreditsModal=c,exports.DarkModeHandler=l,exports.FriendsList=d,exports.GameScoreboard=i.t,exports.GlobalBody=o,exports.GlobalHead=a,exports.ReturnToLauncherButton=e,exports.SettingsModal=s.t,exports.ViewUserModal=r.t,exports.useFullscreen=m,exports.useUserDetails=f,exports.useUserFriends=u,exports.useUserToken=p;
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
|
|
3
|
-
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
-
get: ((e) => i[e]).bind(null, d),
|
|
5
|
-
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
-
});
|
|
7
|
-
return e;
|
|
8
|
-
}, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
|
|
9
|
-
value: n,
|
|
10
|
-
enumerable: !0
|
|
11
|
-
}) : a, n)), l = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
12
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
13
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
14
|
-
}), u = /* @__PURE__ */ o(((e) => {
|
|
15
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
16
|
-
function r(e, n, r) {
|
|
17
|
-
var i = null;
|
|
18
|
-
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
19
|
-
else r = n;
|
|
20
|
-
return n = r.ref, {
|
|
21
|
-
$$typeof: t,
|
|
22
|
-
type: e,
|
|
23
|
-
key: i,
|
|
24
|
-
ref: n === void 0 ? null : n,
|
|
25
|
-
props: r
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
29
|
-
})), d = /* @__PURE__ */ o(((e) => {
|
|
30
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
31
|
-
function t(e) {
|
|
32
|
-
if (e == null) return null;
|
|
33
|
-
if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
|
|
34
|
-
if (typeof e == "string") return e;
|
|
35
|
-
switch (e) {
|
|
36
|
-
case v: return "Fragment";
|
|
37
|
-
case b: return "Profiler";
|
|
38
|
-
case y: return "StrictMode";
|
|
39
|
-
case w: return "Suspense";
|
|
40
|
-
case T: return "SuspenseList";
|
|
41
|
-
case O: return "Activity";
|
|
42
|
-
}
|
|
43
|
-
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
44
|
-
case _: return "Portal";
|
|
45
|
-
case S: return e.displayName || "Context";
|
|
46
|
-
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
47
|
-
case C:
|
|
48
|
-
var n = e.render;
|
|
49
|
-
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
50
|
-
case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
51
|
-
case D:
|
|
52
|
-
n = e._payload, e = e._init;
|
|
53
|
-
try {
|
|
54
|
-
return t(e(n));
|
|
55
|
-
} catch {}
|
|
56
|
-
}
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
function n(e) {
|
|
60
|
-
return "" + e;
|
|
61
|
-
}
|
|
62
|
-
function r(e) {
|
|
63
|
-
try {
|
|
64
|
-
n(e);
|
|
65
|
-
var t = !1;
|
|
66
|
-
} catch {
|
|
67
|
-
t = !0;
|
|
68
|
-
}
|
|
69
|
-
if (t) {
|
|
70
|
-
t = console;
|
|
71
|
-
var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
72
|
-
return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function i(e) {
|
|
76
|
-
if (e === v) return "<>";
|
|
77
|
-
if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
|
|
78
|
-
try {
|
|
79
|
-
var n = t(e);
|
|
80
|
-
return n ? "<" + n + ">" : "<...>";
|
|
81
|
-
} catch {
|
|
82
|
-
return "<...>";
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function a() {
|
|
86
|
-
var e = A.A;
|
|
87
|
-
return e === null ? null : e.getOwner();
|
|
88
|
-
}
|
|
89
|
-
function o() {
|
|
90
|
-
return Error("react-stack-top-frame");
|
|
91
|
-
}
|
|
92
|
-
function s(e) {
|
|
93
|
-
if (j.call(e, "key")) {
|
|
94
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
95
|
-
if (t && t.isReactWarning) return !1;
|
|
96
|
-
}
|
|
97
|
-
return e.key !== void 0;
|
|
98
|
-
}
|
|
99
|
-
function c(e, t) {
|
|
100
|
-
function n() {
|
|
101
|
-
P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
102
|
-
}
|
|
103
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
104
|
-
get: n,
|
|
105
|
-
configurable: !0
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
function u() {
|
|
109
|
-
var e = t(this.type);
|
|
110
|
-
return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
111
|
-
}
|
|
112
|
-
function d(e, t, n, r, i, a) {
|
|
113
|
-
var o = n.ref;
|
|
114
|
-
return e = {
|
|
115
|
-
$$typeof: g,
|
|
116
|
-
type: e,
|
|
117
|
-
key: t,
|
|
118
|
-
props: n,
|
|
119
|
-
_owner: r
|
|
120
|
-
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
121
|
-
enumerable: !1,
|
|
122
|
-
value: null
|
|
123
|
-
}) : Object.defineProperty(e, "ref", {
|
|
124
|
-
enumerable: !1,
|
|
125
|
-
get: u
|
|
126
|
-
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
127
|
-
configurable: !1,
|
|
128
|
-
enumerable: !1,
|
|
129
|
-
writable: !0,
|
|
130
|
-
value: 0
|
|
131
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
132
|
-
configurable: !1,
|
|
133
|
-
enumerable: !1,
|
|
134
|
-
writable: !0,
|
|
135
|
-
value: null
|
|
136
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
137
|
-
configurable: !1,
|
|
138
|
-
enumerable: !1,
|
|
139
|
-
writable: !0,
|
|
140
|
-
value: i
|
|
141
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
142
|
-
configurable: !1,
|
|
143
|
-
enumerable: !1,
|
|
144
|
-
writable: !0,
|
|
145
|
-
value: a
|
|
146
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
147
|
-
}
|
|
148
|
-
function f(e, n, i, o, l, u) {
|
|
149
|
-
var f = n.children;
|
|
150
|
-
if (f !== void 0) if (o) if (M(f)) {
|
|
151
|
-
for (o = 0; o < f.length; o++) p(f[o]);
|
|
152
|
-
Object.freeze && Object.freeze(f);
|
|
153
|
-
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
154
|
-
else p(f);
|
|
155
|
-
if (j.call(n, "key")) {
|
|
156
|
-
f = t(e);
|
|
157
|
-
var m = Object.keys(n).filter(function(e) {
|
|
158
|
-
return e !== "key";
|
|
159
|
-
});
|
|
160
|
-
o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, m, f), R[f + o] = !0);
|
|
161
|
-
}
|
|
162
|
-
if (f = null, i !== void 0 && (r(i), f = "" + i), s(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
|
|
163
|
-
else i = n;
|
|
164
|
-
return f && c(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, a(), l, u);
|
|
165
|
-
}
|
|
166
|
-
function p(e) {
|
|
167
|
-
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
168
|
-
}
|
|
169
|
-
function m(e) {
|
|
170
|
-
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
171
|
-
}
|
|
172
|
-
var h = l("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
173
|
-
return null;
|
|
174
|
-
};
|
|
175
|
-
h = { react_stack_bottom_frame: function(e) {
|
|
176
|
-
return e();
|
|
177
|
-
} };
|
|
178
|
-
var P, F = {}, I = h.react_stack_bottom_frame.bind(h, o)(), L = N(i(o)), R = {};
|
|
179
|
-
e.Fragment = v, e.jsx = function(e, t, n) {
|
|
180
|
-
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
181
|
-
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
|
|
182
|
-
}, e.jsxs = function(e, t, n) {
|
|
183
|
-
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
184
|
-
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
|
|
185
|
-
};
|
|
186
|
-
})();
|
|
187
|
-
})), f = /* @__PURE__ */ o(((e, t) => {
|
|
188
|
-
process.env.NODE_ENV === "production" ? t.exports = u() : t.exports = d();
|
|
189
|
-
}));
|
|
190
|
-
//#endregion
|
|
191
|
-
export { o as n, c as r, f as t };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-350yNsax.cjs`);var t=e.t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),n=e.t((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
-
let props = %s;
|
|
3
|
-
<%s {...props} />
|
|
4
|
-
React keys must be passed directly to JSX without using spread:
|
|
5
|
-
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),r=e.t(((e,r)=>{process.env.NODE_ENV===`production`?r.exports=t():r.exports=n()}));Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./jsx-runtime-VZk6y-ec.js";
|
|
2
|
-
import { format as t } from "date-fns";
|
|
3
|
-
//#region src/components/UI/ArticlesDate.jsx
|
|
4
|
-
var n = e();
|
|
5
|
-
function r(e) {
|
|
6
|
-
let r = e?.date, i = e?.format;
|
|
7
|
-
return r ? /* @__PURE__ */ (0, n.jsx)("span", {
|
|
8
|
-
"date-renderer": "ArticlesDate",
|
|
9
|
-
children: t(new Date(r), i || "MM/dd/yy - h:mmaa")
|
|
10
|
-
}) : "Need date prop";
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/util/numberWithCommas.js
|
|
14
|
-
function i(e) {
|
|
15
|
-
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { r as n, i as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-350yNsax.cjs`);const e=require(`./jsx-runtime-hCcDh67y.cjs`);let t=require(`date-fns`);var n=e.t();function r(e){let r=e?.date,i=e?.format;return r?(0,n.jsx)(`span`,{"date-renderer":`ArticlesDate`,children:(0,t.format)(new Date(r),i||`MM/dd/yy - h:mmaa`)}):`Need date prop`}function i(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,`,`)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-350yNsax.cjs`);let t=require(`swr`);t=e.n(t);var n=e=>fetch(e).then(e=>e.json()),r=e=>{let{data:r,error:i,isLoading:a,mutate:o}=(0,t.default)(process.env.NODE_ENV===`development`&&!e?.disable?`http://localhost:3001/api/config`:null,n,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:r,error:i,isLoading:a,mutate:o}},i=e=>fetch(e).then(e=>e.json()),a=e=>{let{data:n,error:r,isLoading:a,mutate:o}=(0,t.default)(process.env.NODE_ENV===`development`&&!e?.disable?`http://localhost:3012/api/status`:null,i,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:n,error:r,isLoading:a,mutate:o}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
package/dist/useFullscreen.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-350yNsax.cjs`);let e=require(`react`);var t=()=>{let[t,n]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{let e=()=>{n(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)};return document.addEventListener(`fullscreenchange`,e),document.addEventListener(`mozfullscreenchange`,e),document.addEventListener(`webkitfullscreenchange`,e),document.addEventListener(`MSFullscreenChange`,e),()=>{document.removeEventListener(`fullscreenchange`,e),document.removeEventListener(`mozfullscreenchange`,e),document.removeEventListener(`webkitfullscreenchange`,e),document.removeEventListener(`MSFullscreenChange`,e)}},[]),{isFullscreen:t,requestFullscreen:e=>{let t=e?document.getElementById(e):document.documentElement;t&&(t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen(),n(!0))},exitFullscreen:()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),n(!1)}}};module.exports=t;
|
package/dist/useUserDetails.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-350yNsax.cjs`);let t=require(`swr`);t=e.n(t);var n=e=>{let t=new URLSearchParams({token:e.token}).toString();return fetch(`${e.url}?${t}`).then(e=>e.json())},r=e=>{let{data:r,error:i,isLoading:a,mutate:o}=(0,t.default)(e.token?{url:(process.env.NODE_ENV===`development`?`http://localhost:3012`:`https://accounts.articles.media`)+`/api/auth/session`,token:e.token}:null,n,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:r,error:i,isLoading:a,mutate:o}};module.exports=r;
|
package/dist/useUserFriends.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-350yNsax.cjs`);let t=require(`swr`);t=e.n(t);var n=async e=>{if(process.env.NODE_ENV===`development`)try{let t=new URLSearchParams({game:e.game}).toString();return await(await fetch(`http://localhost:3001/api/user/friends?${t}`,{headers:{"x-articles-api-key":e.user_token}})).json()}catch{}let t=new URLSearchParams({game:e.game}).toString();return fetch(`${e.url}?${t}`,{headers:{"x-articles-api-key":e.user_token}}).then(e=>e.json())},r={dedupingInterval:1e3*60*30,refreshInterval:0,revalidateOnFocus:!1,revalidateIfStale:!1,shouldRetryOnError:!1},i=e=>{let{data:i,error:a,isLoading:o,isValidating:s,mutate:c}=(0,t.default)(e?.user_id&&e?.user_token?{url:`https://articles.media/api/user/friends`,user_token:e.user_token}:null,n,r);return{data:i,error:a,isLoading:o,isValidating:s,mutate:c}};module.exports=i;
|
package/dist/useUserToken.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-350yNsax.cjs`);let t=require(`swr`);t=e.n(t);var n=e=>fetch(e).then(e=>e.json()),r=e=>{let{data:r,error:i,isLoading:a,mutate:o}=(0,t.default)(process.env.NODE_ENV===`development`?`http://localhost:${e}/api/token`:`/api/token`,n,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:r,error:i,isLoading:a,mutate:o}};module.exports=r;
|
|
File without changes
|