@articles-media/articles-dev-box 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/Ad.cjs +1 -1
- package/dist/Ad.js +2 -2
- package/dist/{AdConfirmExitModal-CKkMAvBK.js → AdConfirmExitModal-Bhz-lt9w.js} +1 -1
- package/dist/{AdConfirmExitModal-CcSxmXKT.cjs → AdConfirmExitModal-N3Lvhb4y.cjs} +1 -1
- package/dist/{AdDetailsModal-k840vrS2.cjs → AdDetailsModal-BMj8DjV0.cjs} +1 -1
- package/dist/{AdDetailsModal-Bp5hZm9N.js → AdDetailsModal-DXvfmyKK.js} +1 -1
- package/dist/DarkModeHandler.cjs +1 -0
- package/dist/DarkModeHandler.js +17 -0
- package/dist/ElementChildren-DN3RWY2E.js +51 -0
- package/dist/ElementChildren-eAwIENLl.cjs +1 -0
- package/dist/FriendsList.cjs +1 -1
- package/dist/FriendsList.js +1 -1
- package/dist/GameScoreboard.cjs +1 -1
- package/dist/GameScoreboard.js +2 -2
- package/dist/{GlobalBody-tmIC_GWn.js → GlobalBody-BrrtfBBs.js} +2 -2
- package/dist/{GlobalBody-BQ2qC81K.cjs → GlobalBody-weON_TbJ.cjs} +1 -1
- package/dist/GlobalBody.cjs +1 -1
- package/dist/GlobalBody.js +1 -1
- package/dist/{Modal-Wmqy9fOm.cjs → Modal-Bdhkgkwr.cjs} +2 -2
- package/dist/{Modal-C9oYRgI1.js → Modal-nux8R77F.js} +320 -306
- package/dist/SettingsModal.cjs +1 -0
- package/dist/SettingsModal.js +658 -0
- package/dist/{StatusModal-CAVxWCUq.js → StatusModal-B086BgSW.js} +2 -2
- package/dist/{StatusModal-BlwaI-2B.cjs → StatusModal-CzPyqQQA.cjs} +1 -1
- package/dist/ViewUserModal.cjs +1 -1
- package/dist/ViewUserModal.js +465 -505
- package/dist/{index-DLYx67wi.js → index-C8MeSLnR.js} +935 -825
- package/dist/index-DWV8myok.cjs +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +13 -9
- package/dist/useUserDetails.cjs +1 -1
- package/dist/useUserDetails.js +1 -1
- package/dist/useUserFriends.cjs +1 -1
- package/dist/useUserFriends.js +1 -1
- package/dist/useUserToken.cjs +1 -1
- package/dist/useUserToken.js +1 -1
- package/package.json +9 -1
- package/dist/index-Ddv_TnxK.cjs +0 -6
package/README.md
CHANGED
|
@@ -47,6 +47,10 @@ npm run dev
|
|
|
47
47
|
- Easy way to add future logic and components to all projects with ease. For now handling the font awesome script. Also shows connection status to required servers in development. Will ping the main and auth server as they are needed for some dev-box features.
|
|
48
48
|
- ViewUserModal
|
|
49
49
|
- View user profile data and recent activity.
|
|
50
|
+
- SettingsModal
|
|
51
|
+
- All in one component to handle game settings UI across multiple games.
|
|
52
|
+
- DarkModeHandler
|
|
53
|
+
- Consumes a Zustand store, detects prefers-color-scheme, sets data-bs-theme on body element.
|
|
50
54
|
- useUserToken
|
|
51
55
|
- Hook for getting the subdomain auth token.
|
|
52
56
|
- useUserDetails
|
package/dist/Ad.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),c=require("react"),v=require("./numberWithCommas-CRgrb58X.cjs"),R=require("./index-Ddv_TnxK.cjs"),Z=require("./Button-0ZK0NKiK.cjs"),ee=require("./index-BlP2-uOi.cjs");function se(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const i in s)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>s[i]})}}return t.default=s,Object.freeze(t)}const A=se(c);var C=new Map,M=new WeakMap,W=0,te;function ne(s){return s?(M.has(s)||(W+=1,M.set(s,W.toString())),M.get(s)):"0"}function re(s){return Object.keys(s).sort().filter(t=>s[t]!==void 0).map(t=>`${t}_${t==="root"?ne(s.root):s[t]}`).toString()}function ie(s){const t=re(s);let i=C.get(t);if(!i){const r=new Map;let l;const u=new IntersectionObserver(x=>{x.forEach(o=>{var p;const N=o.isIntersecting&&l.some(j=>o.intersectionRatio>=j);s.trackVisibility&&typeof o.isVisible>"u"&&(o.isVisible=N),(p=r.get(o.target))==null||p.forEach(j=>{j(N,o)})})},s);l=u.thresholds||(Array.isArray(s.threshold)?s.threshold:[s.threshold||0]),i={id:t,observer:u,elements:r},C.set(t,i)}return i}function oe(s,t,i={},r=te){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const p=s.getBoundingClientRect();return t(r,{isIntersecting:r,target:s,intersectionRatio:typeof i.threshold=="number"?i.threshold:0,time:0,boundingClientRect:p,intersectionRect:p,rootBounds:p}),()=>{}}const{id:l,observer:u,elements:x}=ie(i),o=x.get(s)||[];return x.has(s)||x.set(s,o),o.push(t),u.observe(s),function(){o.splice(o.indexOf(t),1),o.length===0&&(x.delete(s),u.unobserve(s)),x.size===0&&(u.disconnect(),C.delete(l))}}function ae({threshold:s,delay:t,trackVisibility:i,rootMargin:r,root:l,triggerOnce:u,skip:x,initialInView:o,fallbackInView:p,onChange:N}={}){var j;const[_,b]=A.useState(null),n=A.useRef(N),a=A.useRef(o),[k,D]=A.useState({inView:!!o,entry:void 0});n.current=N,A.useEffect(()=>{if(a.current===void 0&&(a.current=o),x||!_)return;let g;return g=oe(_,(f,E)=>{const P=a.current;a.current=f,!(P===void 0&&!f)&&(D({inView:f,entry:E}),n.current&&n.current(f,E),E.isIntersecting&&u&&g&&(g(),g=void 0))},{root:l,rootMargin:r,threshold:s,trackVisibility:i,delay:t},p),()=>{g&&g()}},[Array.isArray(s)?s.toString():s,_,l,r,u,x,i,p,t]);const y=(j=k.entry)==null?void 0:j.target,S=A.useRef(void 0);!_&&y&&!u&&!x&&S.current!==y&&(S.current=y,D({inView:!!o,entry:void 0}),a.current=o);const m=[b,k.inView,k.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}const ce=async s=>{if(process.env.NODE_ENV==="development")try{return(await R.axios.get(`http://localhost:3001/api/ads/${s.ad_id}`,{params:{ad_id:s.ad_id,user_ad_token:s.user_ad_token}})).data.result}catch{}return R.axios.get(s.url,{params:{ad_id:s.ad_id}}).then(t=>t.data.result)},le=60,de={dedupingInterval:1e3*60*le},ue=(s,t)=>{const{data:i,error:r,isLoading:l,mutate:u}=R.useSWR(s?{url:`https://articles.media/api/ads/${s}`,ad_id:s,user_ad_token:t}:null,ce,de);return{data:i,error:r,isLoading:l,mutate:u}};function xe(s){return t=>{const r=(s?Math[s]:Math.trunc)(t);return r===0?0:r}}function me(s,t){return+v.toDate(s)-+v.toDate(t)}function z(s,t,i){const r=me(s,t)/v.millisecondsInMinute;return xe(i?.roundingMethod)(r)}function U(s){return Math.trunc(s*v.millisecondsInMinute)}const pe=async s=>{if(process.env.NODE_ENV==="development")try{return(await R.axios.get("http://localhost:3001/api/ads",{params:{}})).data}catch{}return R.axios.get(s.url,{params:{}}).then(t=>t.data)},X=60,je={dedupingInterval:U(X),focusThrottleInterval:U(X)},fe=s=>{const{data:t,error:i,isLoading:r,mutate:l}=R.useSWR(s?.loading||s?.disabled?null:{url:"https://articles.media/api/ads"},pe,je);return{data:t,error:i,isLoading:r,mutate:l}},he=c.lazy(()=>Promise.resolve().then(()=>require("./AdDetailsModal-k840vrS2.cjs"))),ve=c.lazy(()=>Promise.resolve().then(()=>require("./AdConfirmExitModal-CcSxmXKT.cjs")));function ge(s,t){return Math.floor(Math.random()*(t-s+1))+s}function Ee(s){let{previewMode:t,darkMode:i,user_ad_token:r,userDetails:l,userDetailsLoading:u,prepend:x,append:o}=s;const p=!1,N=[],[j,_]=c.useState(null),{data:b}=fe({loading:u,disabled:l?.articles_membership?.status=="Active"}),{data:n}=ue(j,r);let a=s.previewData||{};const[k,D]=c.useState(null),[y,S]=c.useState(null),[m,g]=c.useState(null),[f,E]=c.useState(0),[P,K]=c.useState(!1),[$,L]=c.useState(!1),[F,O]=c.useState(!1),[Ne,be]=c.useState(new Date),[V,G]=c.useState([]);c.useEffect(()=>{b&&b?.length>0&&!j&&(console.log("Ad Mounted or reduxAds changed"),_(s.ad_id||b[ge(0,b?.length-1)]?._id))},[b]),c.useEffect(()=>{},[n]),c.useEffect(()=>{n?.populated_promos&&f>=0&&g(n?.populated_promos[f])},[f,n]);function H(){L(!$)}const{ref:J,inView:w}=ae({threshold:0,triggerOnce:!0});function T(d){if(t&&console.log("Preventing this event from being logged as this ad is being shown in preview mode."),V.find(h=>h==d)){console.log("Already logged this event");return}R.axios.get("/api/ads/event",{params:{ad_id:n?._id,event:d}}).then(function(h){G([...V,d]),console.log(h.data)}).catch(function(h){console.log(h)})}c.useEffect(()=>{if(!t&&(console.log("inView",w),w&&j)){let d=[{ad_id:j,date:new Date().toString()},...N.filter(h=>{if(console.log(z(new Date,new Date(h.date))),z(new Date,new Date(h.date))>5){console.log("adsViewed - Remove Old Ad View Object");return}else return console.log("adsViewed - Keep Ad View Object"),h})];console.log("unexpiredRecentViews",d)}},[w,j]);const[q,Q]=c.useState(null),[Y,I]=c.useState(!1);function B(){I(!0),console.log("logAdAvoided called",r),R.axios.get(process.env.NODE_ENV==="development"?"http://localhost:3001/api/user/advertising/avoided":"https://articles.media/api/user/advertising/avoided",{params:{user_id:l?._id},headers:{"x-articles-api-key":r}}).then(function(d){I(!1),Q(d.data.avoided_count),console.log(d.data)}).catch(function(d){console.log(d),I(!1)})}return c.useEffect(()=>{t||(console.log("inView",w),l?.articles_membership?.status=="Active"&&w&&B())},[w,l]),u?null:e.jsxRuntimeExports.jsxs("div",{ref:J,className:ee.classNames("ad-wrap",{"active-member":l?.articles_membership?.status=="Active"}),style:{"--articles-ad-background-color":a.background_color||n?.background_color,"--articles-ad-font-color":a.font_color||n?.font_color,"--articles-ad-border-color":a.border_color||n?.border_color},children:[$&&e.jsxRuntimeExports.jsx(he,{setModalShow:L,ad:n,previewData:a}),F&&e.jsxRuntimeExports.jsx(ve,{setModalShow:O,ad:n,previewData:a}),x&&e.jsxRuntimeExports.jsx("div",{className:"prepend-container",children:x}),e.jsxRuntimeExports.jsxs("div",{className:"ad",children:[l?.articles_membership?.status!=="Active"&&e.jsxRuntimeExports.jsxs("div",{className:"main-panel",children:[e.jsxRuntimeExports.jsx("div",{className:"ad-warning flex-header",children:e.jsxRuntimeExports.jsxs("div",{className:"",children:[n?.city&&"Local"," Advertisement"]})}),e.jsxRuntimeExports.jsxs("div",{className:"content-wrap",children:[e.jsxRuntimeExports.jsxs("div",{className:"photo-banner",children:[e.jsxRuntimeExports.jsx("div",{className:"logo",children:(a.logo?.location||n?.logo?.location)&&e.jsxRuntimeExports.jsx("img",{src:a?.logo?.key?`${process.env.NEXT_PUBLIC_CDN}${a?.logo?.key}`:`${process.env.NEXT_PUBLIC_CDN}${n?.logo?.key}`,alt:""})}),e.jsxRuntimeExports.jsx("div",{className:"icon d-none",children:e.jsxRuntimeExports.jsx("i",{className:"fas fa-mug-hot"})}),e.jsxRuntimeExports.jsx("img",{className:"photo",src:a?.background?.key?`${process.env.NEXT_PUBLIC_CDN}${a.background?.key}`:`${process.env.NEXT_PUBLIC_CDN}${n?.background?.key}`,alt:""})]}),e.jsxRuntimeExports.jsxs("div",{className:"details-wrap",children:[e.jsxRuntimeExports.jsxs("div",{className:"detail-title",children:[e.jsxRuntimeExports.jsx("div",{className:"detail",children:e.jsxRuntimeExports.jsx("span",{className:"h4",children:a?.business||n?.business})}),e.jsxRuntimeExports.jsxs("div",{className:"flex flex-column d-none",children:[e.jsxRuntimeExports.jsxs("div",{className:"detail",children:[e.jsxRuntimeExports.jsx("span",{className:"icon",children:e.jsxRuntimeExports.jsx("i",{className:"fas fa-search-location"})}),e.jsxRuntimeExports.jsxs("span",{children:[n?.city,", ",n?.state]})]}),e.jsxRuntimeExports.jsxs("div",{className:"detail",children:[e.jsxRuntimeExports.jsx("span",{className:"icon",children:e.jsxRuntimeExports.jsx("i",{className:"fas fa-clock me-2"})}),e.jsxRuntimeExports.jsx("span",{children:"6:30AM–8PM"})]})]})]}),n?.city&&e.jsxRuntimeExports.jsx("div",{className:"details mb-3 d-none"}),e.jsxRuntimeExports.jsx("div",{className:"short-description",children:a?.description||n?.description})]})]}),p?.roles?.isDev&&n?.populated_promos?.length>0&&e.jsxRuntimeExports.jsxs("div",{children:[m&&e.jsxRuntimeExports.jsx("div",{className:"promos-wrap",children:m&&e.jsxRuntimeExports.jsxs("div",{className:"promo-wrap d-flex justify-content-between align-items-center mx-2 p-1 px-2 border border-2 border-light mb-0",children:[e.jsxRuntimeExports.jsxs("div",{className:"",children:[e.jsxRuntimeExports.jsx("div",{children:m.title}),e.jsxRuntimeExports.jsx("div",{className:"small",children:e.jsxRuntimeExports.jsx("div",{className:"small",children:m.details})})]}),e.jsxRuntimeExports.jsx(Z.ArticlesButton,{className:"px-3",small:!0,onClick:()=>{console.log("Load Save Modal"),K(!0)},children:"Save"})]},m._id)}),e.jsxRuntimeExports.jsxs("div",{className:"d-flex justify-content-between",children:[e.jsxRuntimeExports.jsxs("div",{className:"px-2",children:[n?.populated_promos?.length," Promos Active"]}),e.jsxRuntimeExports.jsxs("div",{className:"controls",children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-arrow-circle-left",type:"button",onClick:()=>{f==0?E(n?.populated_promos?.length-1):E(d=>d-1)}}),n?.populated_promos?.map((d,h)=>e.jsxRuntimeExports.jsx("i",{className:`fa-square ${h==f?"fad":"fas"}`},d._id)),e.jsxRuntimeExports.jsx("i",{className:"fad fa-arrow-circle-right",type:"button",onClick:()=>{f==n?.populated_promos?.length-1?E(0):E(d=>d+1)}})]})]})]}),e.jsxRuntimeExports.jsx("hr",{style:{borderColor:"white"},className:"mt-auto mb-0"}),e.jsxRuntimeExports.jsxs("div",{className:"action-wrap d-flex justify-content-lg-between px-3 py-2",children:[e.jsxRuntimeExports.jsx("div",{onClick:()=>{H(),T("Details")},className:"action flex-grow-1 flex-shrink-0",children:"Details"}),e.jsxRuntimeExports.jsx("span",{className:"px-4"}),e.jsxRuntimeExports.jsx("a",{className:"action flex-grow-1 flex-shrink-0",href:n?.website,target:"_blank",rel:"noreferrer",onClick:d=>{d.preventDefault(),O(!0),T("Confirm Exit Modal Opened")},children:e.jsxRuntimeExports.jsx("div",{children:"Website"})})]})]}),l?.articles_membership?.status=="Active"&&e.jsxRuntimeExports.jsx("div",{className:"main-panel",children:e.jsxRuntimeExports.jsxs("div",{className:"content-wrap",children:[e.jsxRuntimeExports.jsxs("div",{className:"photo-banner",children:[e.jsxRuntimeExports.jsx("div",{className:"logo"}),e.jsxRuntimeExports.jsxs("div",{className:"splash",children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-broadcast-tower"}),e.jsxRuntimeExports.jsxs("div",{className:"text",children:[e.jsxRuntimeExports.jsx("div",{className:"count",children:Y?e.jsxRuntimeExports.jsx("i",{className:"fas fa-spinner fa-spin me-0"}):q?v.numberWithCommas(q):0}),e.jsxRuntimeExports.jsx("div",{className:"label",children:"ads avoided."})]})]}),e.jsxRuntimeExports.jsxs("div",{className:"member-since",children:["Member since: ",e.jsxRuntimeExports.jsx(v.ArticlesDate,{format:"PP",date:l?.articles_membership?.membership_started})]})]}),e.jsxRuntimeExports.jsxs("div",{className:"details-wrap",children:[e.jsxRuntimeExports.jsx("div",{className:"detail-title",children:e.jsxRuntimeExports.jsx("div",{className:"detail",children:e.jsxRuntimeExports.jsx("span",{className:"h4",children:"Thanks for the support!"})})}),e.jsxRuntimeExports.jsxs("div",{className:"short-description",children:[e.jsxRuntimeExports.jsx("div",{className:"mb-2",children:"Without support from users like you, we wouldn't be here."}),e.jsxRuntimeExports.jsxs("div",{className:"links-list",children:[e.jsxRuntimeExports.jsxs(v.Link,{newPage:!0,className:"link-item",href:"https://articles.media/messages",children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-comments-alt"}),"0 unread messages."]}),e.jsxRuntimeExports.jsxs(v.Link,{newPage:!0,className:"link-item",href:"https://articles.media/settings/notifications",onClick:()=>{B()},children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-bell"}),"0 notifications."]}),e.jsxRuntimeExports.jsxs(v.Link,{newPage:!0,className:"link-item",href:"https://articles.media/settings/account",children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-cog"}),"Manage account settings."]})]})]})]})]})})]}),o&&e.jsxRuntimeExports.jsx("div",{className:"append-container",children:o}),!t&&e.jsxRuntimeExports.jsx("div",{className:"advertise-with-us p-1",style:{backgroundColor:a.background_color||n?.background_color,color:a.font_color||n?.font_color,borderColor:a.border_color||n?.border_color},children:e.jsxRuntimeExports.jsxs(v.Link,{className:"small d-block w-100 text-center",href:"https://articles.media/advertising",newPage:!0,children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-share me-1"}),"Advertise with Articles Media!"]})})]})}const Re=c.memo(Ee);module.exports=Re;
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),c=require("react"),v=require("./numberWithCommas-CRgrb58X.cjs"),R=require("./index-DWV8myok.cjs"),Z=require("./Button-0ZK0NKiK.cjs"),ee=require("./index-BlP2-uOi.cjs");function se(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const i in s)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>s[i]})}}return t.default=s,Object.freeze(t)}const A=se(c);var C=new Map,M=new WeakMap,W=0,te;function ne(s){return s?(M.has(s)||(W+=1,M.set(s,W.toString())),M.get(s)):"0"}function re(s){return Object.keys(s).sort().filter(t=>s[t]!==void 0).map(t=>`${t}_${t==="root"?ne(s.root):s[t]}`).toString()}function ie(s){const t=re(s);let i=C.get(t);if(!i){const r=new Map;let l;const u=new IntersectionObserver(x=>{x.forEach(o=>{var p;const N=o.isIntersecting&&l.some(j=>o.intersectionRatio>=j);s.trackVisibility&&typeof o.isVisible>"u"&&(o.isVisible=N),(p=r.get(o.target))==null||p.forEach(j=>{j(N,o)})})},s);l=u.thresholds||(Array.isArray(s.threshold)?s.threshold:[s.threshold||0]),i={id:t,observer:u,elements:r},C.set(t,i)}return i}function oe(s,t,i={},r=te){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const p=s.getBoundingClientRect();return t(r,{isIntersecting:r,target:s,intersectionRatio:typeof i.threshold=="number"?i.threshold:0,time:0,boundingClientRect:p,intersectionRect:p,rootBounds:p}),()=>{}}const{id:l,observer:u,elements:x}=ie(i),o=x.get(s)||[];return x.has(s)||x.set(s,o),o.push(t),u.observe(s),function(){o.splice(o.indexOf(t),1),o.length===0&&(x.delete(s),u.unobserve(s)),x.size===0&&(u.disconnect(),C.delete(l))}}function ae({threshold:s,delay:t,trackVisibility:i,rootMargin:r,root:l,triggerOnce:u,skip:x,initialInView:o,fallbackInView:p,onChange:N}={}){var j;const[_,b]=A.useState(null),n=A.useRef(N),a=A.useRef(o),[k,D]=A.useState({inView:!!o,entry:void 0});n.current=N,A.useEffect(()=>{if(a.current===void 0&&(a.current=o),x||!_)return;let g;return g=oe(_,(f,E)=>{const P=a.current;a.current=f,!(P===void 0&&!f)&&(D({inView:f,entry:E}),n.current&&n.current(f,E),E.isIntersecting&&u&&g&&(g(),g=void 0))},{root:l,rootMargin:r,threshold:s,trackVisibility:i,delay:t},p),()=>{g&&g()}},[Array.isArray(s)?s.toString():s,_,l,r,u,x,i,p,t]);const y=(j=k.entry)==null?void 0:j.target,S=A.useRef(void 0);!_&&y&&!u&&!x&&S.current!==y&&(S.current=y,D({inView:!!o,entry:void 0}),a.current=o);const m=[b,k.inView,k.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}const ce=async s=>{if(process.env.NODE_ENV==="development")try{return(await R.axios.get(`http://localhost:3001/api/ads/${s.ad_id}`,{params:{ad_id:s.ad_id,user_ad_token:s.user_ad_token}})).data.result}catch{}return R.axios.get(s.url,{params:{ad_id:s.ad_id}}).then(t=>t.data.result)},le=60,de={dedupingInterval:1e3*60*le},ue=(s,t)=>{const{data:i,error:r,isLoading:l,mutate:u}=R.useSWR(s?{url:`https://articles.media/api/ads/${s}`,ad_id:s,user_ad_token:t}:null,ce,de);return{data:i,error:r,isLoading:l,mutate:u}};function xe(s){return t=>{const r=(s?Math[s]:Math.trunc)(t);return r===0?0:r}}function me(s,t){return+v.toDate(s)-+v.toDate(t)}function z(s,t,i){const r=me(s,t)/v.millisecondsInMinute;return xe(i?.roundingMethod)(r)}function U(s){return Math.trunc(s*v.millisecondsInMinute)}const pe=async s=>{if(process.env.NODE_ENV==="development")try{return(await R.axios.get("http://localhost:3001/api/ads",{params:{}})).data}catch{}return R.axios.get(s.url,{params:{}}).then(t=>t.data)},X=60,je={dedupingInterval:U(X),focusThrottleInterval:U(X)},fe=s=>{const{data:t,error:i,isLoading:r,mutate:l}=R.useSWR(s?.loading||s?.disabled?null:{url:"https://articles.media/api/ads"},pe,je);return{data:t,error:i,isLoading:r,mutate:l}},he=c.lazy(()=>Promise.resolve().then(()=>require("./AdDetailsModal-BMj8DjV0.cjs"))),ve=c.lazy(()=>Promise.resolve().then(()=>require("./AdConfirmExitModal-N3Lvhb4y.cjs")));function ge(s,t){return Math.floor(Math.random()*(t-s+1))+s}function Ee(s){let{previewMode:t,darkMode:i,user_ad_token:r,userDetails:l,userDetailsLoading:u,prepend:x,append:o}=s;const p=!1,N=[],[j,_]=c.useState(null),{data:b}=fe({loading:u,disabled:l?.articles_membership?.status=="Active"}),{data:n}=ue(j,r);let a=s.previewData||{};const[k,D]=c.useState(null),[y,S]=c.useState(null),[m,g]=c.useState(null),[f,E]=c.useState(0),[P,K]=c.useState(!1),[$,L]=c.useState(!1),[F,O]=c.useState(!1),[Ne,be]=c.useState(new Date),[V,G]=c.useState([]);c.useEffect(()=>{b&&b?.length>0&&!j&&(console.log("Ad Mounted or reduxAds changed"),_(s.ad_id||b[ge(0,b?.length-1)]?._id))},[b]),c.useEffect(()=>{},[n]),c.useEffect(()=>{n?.populated_promos&&f>=0&&g(n?.populated_promos[f])},[f,n]);function H(){L(!$)}const{ref:J,inView:w}=ae({threshold:0,triggerOnce:!0});function T(d){if(t&&console.log("Preventing this event from being logged as this ad is being shown in preview mode."),V.find(h=>h==d)){console.log("Already logged this event");return}R.axios.get("/api/ads/event",{params:{ad_id:n?._id,event:d}}).then(function(h){G([...V,d]),console.log(h.data)}).catch(function(h){console.log(h)})}c.useEffect(()=>{if(!t&&(console.log("inView",w),w&&j)){let d=[{ad_id:j,date:new Date().toString()},...N.filter(h=>{if(console.log(z(new Date,new Date(h.date))),z(new Date,new Date(h.date))>5){console.log("adsViewed - Remove Old Ad View Object");return}else return console.log("adsViewed - Keep Ad View Object"),h})];console.log("unexpiredRecentViews",d)}},[w,j]);const[q,Q]=c.useState(null),[Y,I]=c.useState(!1);function B(){I(!0),console.log("logAdAvoided called",r),R.axios.get(process.env.NODE_ENV==="development"?"http://localhost:3001/api/user/advertising/avoided":"https://articles.media/api/user/advertising/avoided",{params:{user_id:l?._id},headers:{"x-articles-api-key":r}}).then(function(d){I(!1),Q(d.data.avoided_count),console.log(d.data)}).catch(function(d){console.log(d),I(!1)})}return c.useEffect(()=>{t||(console.log("inView",w),l?.articles_membership?.status=="Active"&&w&&B())},[w,l]),u?null:e.jsxRuntimeExports.jsxs("div",{ref:J,className:ee.classNames("ad-wrap",{"active-member":l?.articles_membership?.status=="Active"}),style:{"--articles-ad-background-color":a.background_color||n?.background_color,"--articles-ad-font-color":a.font_color||n?.font_color,"--articles-ad-border-color":a.border_color||n?.border_color},children:[$&&e.jsxRuntimeExports.jsx(he,{setModalShow:L,ad:n,previewData:a}),F&&e.jsxRuntimeExports.jsx(ve,{setModalShow:O,ad:n,previewData:a}),x&&e.jsxRuntimeExports.jsx("div",{className:"prepend-container",children:x}),e.jsxRuntimeExports.jsxs("div",{className:"ad",children:[l?.articles_membership?.status!=="Active"&&e.jsxRuntimeExports.jsxs("div",{className:"main-panel",children:[e.jsxRuntimeExports.jsx("div",{className:"ad-warning flex-header",children:e.jsxRuntimeExports.jsxs("div",{className:"",children:[n?.city&&"Local"," Advertisement"]})}),e.jsxRuntimeExports.jsxs("div",{className:"content-wrap",children:[e.jsxRuntimeExports.jsxs("div",{className:"photo-banner",children:[e.jsxRuntimeExports.jsx("div",{className:"logo",children:(a.logo?.location||n?.logo?.location)&&e.jsxRuntimeExports.jsx("img",{src:a?.logo?.key?`${process.env.NEXT_PUBLIC_CDN}${a?.logo?.key}`:`${process.env.NEXT_PUBLIC_CDN}${n?.logo?.key}`,alt:""})}),e.jsxRuntimeExports.jsx("div",{className:"icon d-none",children:e.jsxRuntimeExports.jsx("i",{className:"fas fa-mug-hot"})}),e.jsxRuntimeExports.jsx("img",{className:"photo",src:a?.background?.key?`${process.env.NEXT_PUBLIC_CDN}${a.background?.key}`:`${process.env.NEXT_PUBLIC_CDN}${n?.background?.key}`,alt:""})]}),e.jsxRuntimeExports.jsxs("div",{className:"details-wrap",children:[e.jsxRuntimeExports.jsxs("div",{className:"detail-title",children:[e.jsxRuntimeExports.jsx("div",{className:"detail",children:e.jsxRuntimeExports.jsx("span",{className:"h4",children:a?.business||n?.business})}),e.jsxRuntimeExports.jsxs("div",{className:"flex flex-column d-none",children:[e.jsxRuntimeExports.jsxs("div",{className:"detail",children:[e.jsxRuntimeExports.jsx("span",{className:"icon",children:e.jsxRuntimeExports.jsx("i",{className:"fas fa-search-location"})}),e.jsxRuntimeExports.jsxs("span",{children:[n?.city,", ",n?.state]})]}),e.jsxRuntimeExports.jsxs("div",{className:"detail",children:[e.jsxRuntimeExports.jsx("span",{className:"icon",children:e.jsxRuntimeExports.jsx("i",{className:"fas fa-clock me-2"})}),e.jsxRuntimeExports.jsx("span",{children:"6:30AM–8PM"})]})]})]}),n?.city&&e.jsxRuntimeExports.jsx("div",{className:"details mb-3 d-none"}),e.jsxRuntimeExports.jsx("div",{className:"short-description",children:a?.description||n?.description})]})]}),p?.roles?.isDev&&n?.populated_promos?.length>0&&e.jsxRuntimeExports.jsxs("div",{children:[m&&e.jsxRuntimeExports.jsx("div",{className:"promos-wrap",children:m&&e.jsxRuntimeExports.jsxs("div",{className:"promo-wrap d-flex justify-content-between align-items-center mx-2 p-1 px-2 border border-2 border-light mb-0",children:[e.jsxRuntimeExports.jsxs("div",{className:"",children:[e.jsxRuntimeExports.jsx("div",{children:m.title}),e.jsxRuntimeExports.jsx("div",{className:"small",children:e.jsxRuntimeExports.jsx("div",{className:"small",children:m.details})})]}),e.jsxRuntimeExports.jsx(Z.ArticlesButton,{className:"px-3",small:!0,onClick:()=>{console.log("Load Save Modal"),K(!0)},children:"Save"})]},m._id)}),e.jsxRuntimeExports.jsxs("div",{className:"d-flex justify-content-between",children:[e.jsxRuntimeExports.jsxs("div",{className:"px-2",children:[n?.populated_promos?.length," Promos Active"]}),e.jsxRuntimeExports.jsxs("div",{className:"controls",children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-arrow-circle-left",type:"button",onClick:()=>{f==0?E(n?.populated_promos?.length-1):E(d=>d-1)}}),n?.populated_promos?.map((d,h)=>e.jsxRuntimeExports.jsx("i",{className:`fa-square ${h==f?"fad":"fas"}`},d._id)),e.jsxRuntimeExports.jsx("i",{className:"fad fa-arrow-circle-right",type:"button",onClick:()=>{f==n?.populated_promos?.length-1?E(0):E(d=>d+1)}})]})]})]}),e.jsxRuntimeExports.jsx("hr",{style:{borderColor:"white"},className:"mt-auto mb-0"}),e.jsxRuntimeExports.jsxs("div",{className:"action-wrap d-flex justify-content-lg-between px-3 py-2",children:[e.jsxRuntimeExports.jsx("div",{onClick:()=>{H(),T("Details")},className:"action flex-grow-1 flex-shrink-0",children:"Details"}),e.jsxRuntimeExports.jsx("span",{className:"px-4"}),e.jsxRuntimeExports.jsx("a",{className:"action flex-grow-1 flex-shrink-0",href:n?.website,target:"_blank",rel:"noreferrer",onClick:d=>{d.preventDefault(),O(!0),T("Confirm Exit Modal Opened")},children:e.jsxRuntimeExports.jsx("div",{children:"Website"})})]})]}),l?.articles_membership?.status=="Active"&&e.jsxRuntimeExports.jsx("div",{className:"main-panel",children:e.jsxRuntimeExports.jsxs("div",{className:"content-wrap",children:[e.jsxRuntimeExports.jsxs("div",{className:"photo-banner",children:[e.jsxRuntimeExports.jsx("div",{className:"logo"}),e.jsxRuntimeExports.jsxs("div",{className:"splash",children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-broadcast-tower"}),e.jsxRuntimeExports.jsxs("div",{className:"text",children:[e.jsxRuntimeExports.jsx("div",{className:"count",children:Y?e.jsxRuntimeExports.jsx("i",{className:"fas fa-spinner fa-spin me-0"}):q?v.numberWithCommas(q):0}),e.jsxRuntimeExports.jsx("div",{className:"label",children:"ads avoided."})]})]}),e.jsxRuntimeExports.jsxs("div",{className:"member-since",children:["Member since: ",e.jsxRuntimeExports.jsx(v.ArticlesDate,{format:"PP",date:l?.articles_membership?.membership_started})]})]}),e.jsxRuntimeExports.jsxs("div",{className:"details-wrap",children:[e.jsxRuntimeExports.jsx("div",{className:"detail-title",children:e.jsxRuntimeExports.jsx("div",{className:"detail",children:e.jsxRuntimeExports.jsx("span",{className:"h4",children:"Thanks for the support!"})})}),e.jsxRuntimeExports.jsxs("div",{className:"short-description",children:[e.jsxRuntimeExports.jsx("div",{className:"mb-2",children:"Without support from users like you, we wouldn't be here."}),e.jsxRuntimeExports.jsxs("div",{className:"links-list",children:[e.jsxRuntimeExports.jsxs(v.Link,{newPage:!0,className:"link-item",href:"https://articles.media/messages",children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-comments-alt"}),"0 unread messages."]}),e.jsxRuntimeExports.jsxs(v.Link,{newPage:!0,className:"link-item",href:"https://articles.media/settings/notifications",onClick:()=>{B()},children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-bell"}),"0 notifications."]}),e.jsxRuntimeExports.jsxs(v.Link,{newPage:!0,className:"link-item",href:"https://articles.media/settings/account",children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-cog"}),"Manage account settings."]})]})]})]})]})})]}),o&&e.jsxRuntimeExports.jsx("div",{className:"append-container",children:o}),!t&&e.jsxRuntimeExports.jsx("div",{className:"advertise-with-us p-1",style:{backgroundColor:a.background_color||n?.background_color,color:a.font_color||n?.font_color,borderColor:a.border_color||n?.border_color},children:e.jsxRuntimeExports.jsxs(v.Link,{className:"small d-block w-100 text-center",href:"https://articles.media/advertising",newPage:!0,children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-share me-1"}),"Advertise with Articles Media!"]})})]})}const Re=c.memo(Ee);module.exports=Re;
|
package/dist/Ad.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
|
2
2
|
import * as A from "react";
|
|
3
3
|
import { lazy as G, memo as re, useState as p, useEffect as y } from "react";
|
|
4
4
|
import { t as X, m as H, n as ne, A as ie, L as E } from "./numberWithCommas-DnAkiOFL.js";
|
|
5
|
-
import { u as J, a as k } from "./index-
|
|
5
|
+
import { u as J, a as k } from "./index-C8MeSLnR.js";
|
|
6
6
|
import { A as oe } from "./Button-_Quon8UV.js";
|
|
7
7
|
import { c as le } from "./index-YnD2EP-S.js";
|
|
8
8
|
var S = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new WeakMap(), z = 0, de;
|
|
@@ -210,7 +210,7 @@ const be = async (s) => {
|
|
|
210
210
|
isLoading: r,
|
|
211
211
|
mutate: o
|
|
212
212
|
};
|
|
213
|
-
}, Ae = G(() => import("./AdDetailsModal-
|
|
213
|
+
}, Ae = G(() => import("./AdDetailsModal-DXvfmyKK.js")), ke = G(() => import("./AdConfirmExitModal-Bhz-lt9w.js"));
|
|
214
214
|
function ye(s, t) {
|
|
215
215
|
return Math.floor(Math.random() * (t - s + 1)) + s;
|
|
216
216
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
2
|
import { useEffect as l } from "react";
|
|
3
3
|
import { L as n } from "./numberWithCommas-DnAkiOFL.js";
|
|
4
|
-
import { M as s } from "./Modal-
|
|
4
|
+
import { M as s } from "./Modal-nux8R77F.js";
|
|
5
5
|
import { A as i } from "./Button-_Quon8UV.js";
|
|
6
6
|
function x(t) {
|
|
7
7
|
let { setModalShow: r, ad: o, previewData: d } = t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-nZSsnGb7.cjs"),n=require("react"),l=require("./numberWithCommas-CRgrb58X.cjs"),s=require("./Modal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-nZSsnGb7.cjs"),n=require("react"),l=require("./numberWithCommas-CRgrb58X.cjs"),s=require("./Modal-Bdhkgkwr.cjs"),i=require("./Button-0ZK0NKiK.cjs");function d(a){let{setModalShow:r,ad:o,previewData:c}=a;n.useEffect(()=>{console.log("Mounted")},[]);const t=()=>{r(!1)};return e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsxs(s.Modal,{show:!0,backdropClassName:"ad-details-modal-backdrop",className:"articles-modal",centered:!0,onHide:t,size:"md",children:[e.jsxRuntimeExports.jsx(s.Modal.Header,{className:"align-items-center",closeButton:!0,children:e.jsxRuntimeExports.jsx(s.Modal.Title,{children:"Confirm Exit"})}),e.jsxRuntimeExports.jsxs(s.Modal.Body,{className:"",children:[e.jsxRuntimeExports.jsx("div",{className:"ratio ratio-16x9 bg-black mb-2"}),e.jsxRuntimeExports.jsx("p",{className:"mb-1",children:"This advertiser has been approved and verified to display ads but always be cautious when interacting with ads. Any offsite interactions are at your own risk and should be approached with caution. We can not be held responsible for any issues that may arise."})]}),e.jsxRuntimeExports.jsxs(s.Modal.Footer,{className:"d-flex justify-content-between",children:[e.jsxRuntimeExports.jsxs(i.ArticlesButton,{variant:"articles",onClick:t,children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-times"}),"Close"]}),e.jsxRuntimeExports.jsx(l.Link,{href:o?.website,newPage:!0,children:e.jsxRuntimeExports.jsxs(i.ArticlesButton,{variant:"articles",onClick:t,children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-link"}),"Proceed"]})})]})]})})}exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-nZSsnGb7.cjs"),o=require("react"),x=require("./numberWithCommas-CRgrb58X.cjs"),t=require("./Modal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-nZSsnGb7.cjs"),o=require("react"),x=require("./numberWithCommas-CRgrb58X.cjs"),t=require("./Modal-Bdhkgkwr.cjs"),r=require("./Button-0ZK0NKiK.cjs");function d(n){let{setModalShow:a,ad:e,previewData:l}=n;o.useEffect(()=>{console.log("Mounted")},[]);const i=()=>{a(!1)};return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsxs(t.Modal,{show:!0,backdropClassName:"ad-details-modal-backdrop",className:"articles-modal",centered:!0,onHide:i,size:"md",children:[s.jsxRuntimeExports.jsx(t.Modal.Header,{className:"align-items-center",closeButton:!0,children:s.jsxRuntimeExports.jsx(t.Modal.Title,{children:"Ad Details"})}),s.jsxRuntimeExports.jsxs(t.Modal.Body,{className:"",children:[s.jsxRuntimeExports.jsxs("p",{className:"mb-1",children:["Advertiser: ",s.jsxRuntimeExports.jsx("b",{children:e?.business})]}),s.jsxRuntimeExports.jsxs("p",{className:"mb-0",children:["Ad ID: ",s.jsxRuntimeExports.jsx("b",{children:l?._id||e._id})]}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("div",{className:"mb-1",children:"This ad is being shown to you for the following reasons"}),e.city?s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-1",children:e.business}),s.jsxRuntimeExports.jsx("div",{children:"Is advertising to all zip codes within a"}),s.jsxRuntimeExports.jsx("span",{children:s.jsxRuntimeExports.jsx("div",{className:"badge bg-black shadow-articles",children:"15 Mile Radius"})}),s.jsxRuntimeExports.jsx("div",{children:"of it's business"}),s.jsxRuntimeExports.jsx("hr",{className:"border w-50 border-white"}),s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{children:"Your Zip code"}),s.jsxRuntimeExports.jsx("div",{className:"badge bg-black shadow-articles ms-2",children:"00000"}),s.jsxRuntimeExports.jsx("div",{className:"ms-2",children:"is"}),s.jsxRuntimeExports.jsx("div",{className:"badge bg-black shadow-articles ms-2",children:"4.2 miles away"})]})]}):s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-1",children:e.business}),s.jsxRuntimeExports.jsx("div",{children:"Is advertising to all users"})]}),s.jsxRuntimeExports.jsx("div",{className:"grow"}),s.jsxRuntimeExports.jsx("hr",{className:"w-100"}),s.jsxRuntimeExports.jsx("div",{className:"reason lh-sm mb-2",children:"Ads we display to you will always be transparent as to why you are seeing them."}),s.jsxRuntimeExports.jsx(x.Link,{href:"https://articles.media/settings/account",newPage:!0,className:"",children:s.jsxRuntimeExports.jsx(r.ArticlesButton,{small:!0,children:"Settings"})})]}),s.jsxRuntimeExports.jsx(t.Modal.Footer,{className:"d-flex justify-content-center",children:s.jsxRuntimeExports.jsx(r.ArticlesButton,{variant:"articles",onClick:i,children:"Close"})})]})})}exports.default=d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-tc70JA_2.js";
|
|
2
2
|
import { useEffect as t } from "react";
|
|
3
3
|
import { L as n } from "./numberWithCommas-DnAkiOFL.js";
|
|
4
|
-
import { M as i } from "./Modal-
|
|
4
|
+
import { M as i } from "./Modal-nux8R77F.js";
|
|
5
5
|
import { A as l } from "./Button-_Quon8UV.js";
|
|
6
6
|
function b(d) {
|
|
7
7
|
let { setModalShow: r, ad: e, previewData: c } = d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./jsx-runtime-nZSsnGb7.cjs"),d=require("react");function n({useStore:t}){const r=t(e=>e.darkMode),s=t(e=>e._hasHydrated);return d.useEffect(()=>{if(s){if(r==null){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;t.getState().setDarkMode(!!e)}r?document.body.setAttribute("data-bs-theme","dark"):document.body.setAttribute("data-bs-theme","light")}},[r,s]),a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{})}module.exports=n;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { j as d } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useEffect as s } from "react";
|
|
3
|
+
function m({ useStore: t }) {
|
|
4
|
+
const r = t((e) => e.darkMode), a = t((e) => e._hasHydrated);
|
|
5
|
+
return s(() => {
|
|
6
|
+
if (a) {
|
|
7
|
+
if (r == null) {
|
|
8
|
+
const e = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
9
|
+
t.getState().setDarkMode(!!e);
|
|
10
|
+
}
|
|
11
|
+
r ? document.body.setAttribute("data-bs-theme", "dark") : document.body.setAttribute("data-bs-theme", "light");
|
|
12
|
+
}
|
|
13
|
+
}, [r, a]), /* @__PURE__ */ d.jsx(d.Fragment, {});
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
m as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { g as l } from "./index-YnD2EP-S.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
var f, m;
|
|
4
|
+
function p() {
|
|
5
|
+
if (m) return f;
|
|
6
|
+
m = 1;
|
|
7
|
+
var o = process.env.NODE_ENV !== "production", a = function() {
|
|
8
|
+
};
|
|
9
|
+
if (o) {
|
|
10
|
+
var t = function(u, n) {
|
|
11
|
+
var e = arguments.length;
|
|
12
|
+
n = new Array(e > 1 ? e - 1 : 0);
|
|
13
|
+
for (var r = 1; r < e; r++)
|
|
14
|
+
n[r - 1] = arguments[r];
|
|
15
|
+
var c = 0, g = "Warning: " + u.replace(/%s/g, function() {
|
|
16
|
+
return n[c++];
|
|
17
|
+
});
|
|
18
|
+
typeof console < "u" && console.error(g);
|
|
19
|
+
try {
|
|
20
|
+
throw new Error(g);
|
|
21
|
+
} catch {
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
a = function(i, u, n) {
|
|
25
|
+
var e = arguments.length;
|
|
26
|
+
n = new Array(e > 2 ? e - 2 : 0);
|
|
27
|
+
for (var r = 2; r < e; r++)
|
|
28
|
+
n[r - 2] = arguments[r];
|
|
29
|
+
if (u === void 0)
|
|
30
|
+
throw new Error(
|
|
31
|
+
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
32
|
+
);
|
|
33
|
+
i || t.apply(null, [u].concat(n));
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return f = a, f;
|
|
37
|
+
}
|
|
38
|
+
var v = p();
|
|
39
|
+
const E = /* @__PURE__ */ l(v);
|
|
40
|
+
function h(o, a) {
|
|
41
|
+
let t = 0;
|
|
42
|
+
return s.Children.map(o, (i) => /* @__PURE__ */ s.isValidElement(i) ? a(i, t++) : i);
|
|
43
|
+
}
|
|
44
|
+
function x(o, a) {
|
|
45
|
+
return s.Children.toArray(o).some((t) => /* @__PURE__ */ s.isValidElement(t) && t.type === a);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
x as h,
|
|
49
|
+
h as m,
|
|
50
|
+
E as w
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("./index-BlP2-uOi.cjs"),d=require("react");function m(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>n[r]})}}return e.default=n,Object.freeze(e)}const c=m(d);var s,l;function v(){if(l)return s;l=1;var n=process.env.NODE_ENV!=="production",e=function(){};if(n){var r=function(u,i){var o=arguments.length;i=new Array(o>1?o-1:0);for(var a=1;a<o;a++)i[a-1]=arguments[a];var g=0,f="Warning: "+u.replace(/%s/g,function(){return i[g++]});typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}};e=function(t,u,i){var o=arguments.length;i=new Array(o>2?o-2:0);for(var a=2;a<o;a++)i[a-2]=arguments[a];if(u===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");t||r.apply(null,[u].concat(i))}}return s=e,s}var w=v();const h=p.getDefaultExportFromCjs(w);function E(n,e){let r=0;return c.Children.map(n,t=>c.isValidElement(t)?e(t,r++):t)}function _(n,e){return c.Children.toArray(n).some(r=>c.isValidElement(r)&&r.type===e)}exports.hasChildOfType=_;exports.map=E;exports.warning=h;
|
package/dist/FriendsList.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./jsx-runtime-nZSsnGb7.cjs"),f=require("./useUserFriends.cjs"),n=require("./Button-0ZK0NKiK.cjs"),i=require("./Modal-
|
|
1
|
+
"use strict";const s=require("./jsx-runtime-nZSsnGb7.cjs"),f=require("./useUserFriends.cjs"),n=require("./Button-0ZK0NKiK.cjs"),i=require("./Modal-Bdhkgkwr.cjs");function h({show:u,setShow:x,componentType:a,className:l,style:o={},user_id:c,user_token:m,id:j=null,allowInvite:d=!1,inviteFunction:E=null,modalBackdropClassName:p=""}){const{data:e,error:N,isLoading:r,mutate:R}=f({user_id:c,user_token:m});if((!a||a=="list")&&!r&&e&&e.length>0)return s.jsxRuntimeExports.jsx("ul",{className:l,style:o,children:e.map(t=>s.jsxRuntimeExports.jsxs("li",{children:[t?.populated_user?.username," - ",t?.populated_user?.display_name||"No Display Name"]},t.user_id))});if(a.toLowerCase()=="modal")return s.jsxRuntimeExports.jsxs(i.Modal,{show:u,size:"md",className:`articles-modal ${l}`,modalBackdropClassName:p,centered:!0,onHide:()=>x(!1),style:o,id:j,children:[s.jsxRuntimeExports.jsx(i.Modal.Header,{children:s.jsxRuntimeExports.jsx(i.Modal.Title,{children:"Friends"})}),s.jsxRuntimeExports.jsxs(i.Modal.Body,{children:[r&&s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-spinner-third fa-spin fa-2x"}),s.jsxRuntimeExports.jsx("div",{children:"Loading..."})]}),!r&&e&&e.length==0&&s.jsxRuntimeExports.jsx("div",{children:"No friends to show."}),!r&&e&&e.length>0&&s.jsxRuntimeExports.jsx("div",{children:e.map(t=>s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center justify-content-between border p-1",children:[t?.populated_user?.username," - ",t?.populated_user?.display_name||"No Display Name",s.jsxRuntimeExports.jsxs("div",{children:[d&&s.jsxRuntimeExports.jsx(n.ArticlesButton,{variant:"articles",onClick:()=>{d(t)},children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-comment-check"})}),s.jsxRuntimeExports.jsx(n.ArticlesButton,{variant:"articles",onClick:()=>{},children:s.jsxRuntimeExports.jsx("i",{className:"fad fa-info"})})]})]},t.user_id))})]}),s.jsxRuntimeExports.jsxs(i.Modal.Footer,{className:"justify-content-between",children:[s.jsxRuntimeExports.jsxs(n.ArticlesButton,{variant:"articles",onClick:()=>{R()},children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-redo me-2"}),s.jsxRuntimeExports.jsx("span",{children:"Refresh"})]}),s.jsxRuntimeExports.jsxs(n.ArticlesButton,{variant:"articles",onClick:()=>{x(!1)},children:[s.jsxRuntimeExports.jsx("i",{className:"fad fa-times me-2"}),"Close"]})]})]})}module.exports=h;
|
package/dist/FriendsList.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
2
|
import p from "./useUserFriends.js";
|
|
3
3
|
import { A as l } from "./Button-_Quon8UV.js";
|
|
4
|
-
import { M as a } from "./Modal-
|
|
4
|
+
import { M as a } from "./Modal-nux8R77F.js";
|
|
5
5
|
function k({
|
|
6
6
|
show: m,
|
|
7
7
|
setShow: d,
|
package/dist/GameScoreboard.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),l=require("react"),i=require("./Modal-
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),l=require("react"),i=require("./Modal-Bdhkgkwr.cjs"),E=require("./ViewUserModal.cjs"),m=require("./Button-0ZK0NKiK.cjs"),d=require("./index-DWV8myok.cjs");function R({setChecked:s,checked:t,readOnly:a}){return e.jsxRuntimeExports.jsxs("label",{className:`articles-switch mb-0 ${t&&"checked"}`,children:[e.jsxRuntimeExports.jsx("input",{type:"checkbox",readOnly:!!a,checked:t,onChange:()=>{}}),e.jsxRuntimeExports.jsx("span",{onClick:n=>{if(s){s(!t);return}else{n.preventDefault();return}},className:"slider"})]})}const b=async s=>{if(process.env.NODE_ENV==="development")try{return(await d.axios.get("http://localhost:3001/api/community/games/scoreboard",{params:{game:s.game}})).data}catch{}return d.axios.get(s.url,{params:{game:s.game}}).then(t=>t.data)},N={dedupingInterval:1e3*60*30,refreshInterval:0,revalidateOnFocus:!1,revalidateIfStale:!1,shouldRetryOnError:!1},v=s=>{const{data:t,error:a,isLoading:n,isValidating:o,mutate:c}=d.useSWR(s?.game?{url:"https://articles.media/api/community/games/scoreboard",game:s.game}:null,b,N);return{data:t,error:a,isLoading:n,isValidating:o,mutate:c}};function y({game:s,reloadScoreboard:t,setReloadScoreboard:a,prepend:n,append:o}){const[c,x]=l.useState(!1),[u,h]=l.useState(!1),{data:j,mutate:p}=v({game:s});return l.useEffect(()=>{},[]),l.useEffect(()=>{t&&(a(!1),p())},[t]),e.jsxRuntimeExports.jsxs("div",{className:"scoreboard",children:[e.jsxRuntimeExports.jsxs(i.Modal,{show:c,size:"md",className:"articles-modal",centered:!0,onHide:()=>x(!1),children:[e.jsxRuntimeExports.jsx(i.Modal.Header,{children:e.jsxRuntimeExports.jsx(i.Modal.Title,{children:"Scoreboard Settings"})}),e.jsxRuntimeExports.jsx(i.Modal.Body,{children:e.jsxRuntimeExports.jsxs("div",{className:"d-flex justify-content-between align-items-center",onClick:()=>h(!u),children:[e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx("i",{className:"fas fa-trophy-alt"}),e.jsxRuntimeExports.jsx("span",{children:"Join Scoreboard?"})]}),e.jsxRuntimeExports.jsx(R,{checked:u})]})}),e.jsxRuntimeExports.jsx(i.Modal.Footer,{className:"justify-content-between",children:e.jsxRuntimeExports.jsx(m.ArticlesButton,{variant:"articles",onClick:()=>{x(!1)},children:"Close"})})]}),e.jsxRuntimeExports.jsx("div",{className:"prepend-container",children:n}),e.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm mb-3 mb-lg-0",children:[e.jsxRuntimeExports.jsxs("div",{className:"card-header d-flex justify-content-between align-items-center",children:[e.jsxRuntimeExports.jsxs("span",{children:[s," Scoreboard"]}),e.jsxRuntimeExports.jsx(m.ArticlesButton,{onClick:()=>{p()},small:!0,children:e.jsxRuntimeExports.jsx("i",{className:"fad fa-redo me-0"})})]}),e.jsxRuntimeExports.jsxs("div",{className:"card-body p-0",children:[(j?.length||0)==0&&e.jsxRuntimeExports.jsx("div",{className:"small p-2",children:"No scores yet"}),j?.map((r,f)=>e.jsxRuntimeExports.jsxs("div",{className:"result d-flex flex-column justify-content-between border-bottom p-2",children:[e.jsxRuntimeExports.jsxs("div",{className:"d-flex justify-content-between lh-sm",children:[e.jsxRuntimeExports.jsxs("div",{className:"d-flex",children:[e.jsxRuntimeExports.jsx("h5",{className:"mb-0 me-3",children:f+1}),e.jsxRuntimeExports.jsx("div",{className:"lh-sm",children:e.jsxRuntimeExports.jsx(E,{populated_user:r.populated_user,user_id:r.user_id})})]}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx("h5",{className:"mb-0",children:r.score||r.total})})]}),r.last_play&&r.public_last_play&&e.jsxRuntimeExports.jsxs("small",{className:"mt-1",style:{fontSize:"0.75rem"},children:["Played: ",format(new Date(r.last_play),"MM/d/yy hh:mmaa")]})]},r._id))]}),e.jsxRuntimeExports.jsxs("div",{className:"card-footer d-flex justify-content-between align-items-center",children:[e.jsxRuntimeExports.jsx("div",{className:"small",children:"Play to get on the board!"}),e.jsxRuntimeExports.jsx(m.ArticlesButton,{small:!0,onClick:()=>{x(!0)},children:e.jsxRuntimeExports.jsx("i",{className:"fad fa-cog me-0"})})]})]}),e.jsxRuntimeExports.jsx("div",{className:"append-container",children:o})]})}module.exports=y;
|
package/dist/GameScoreboard.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
2
|
import { useState as f, useEffect as x } from "react";
|
|
3
|
-
import { M as i } from "./Modal-
|
|
3
|
+
import { M as i } from "./Modal-nux8R77F.js";
|
|
4
4
|
import N from "./ViewUserModal.js";
|
|
5
5
|
import { A as o } from "./Button-_Quon8UV.js";
|
|
6
|
-
import { u as v, a as j } from "./index-
|
|
6
|
+
import { u as v, a as j } from "./index-C8MeSLnR.js";
|
|
7
7
|
function y({
|
|
8
8
|
setChecked: s,
|
|
9
9
|
checked: a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { u as r, a as l } from "./index-
|
|
2
|
+
import { u as r, a as l } from "./index-C8MeSLnR.js";
|
|
3
3
|
import { c as i } from "./index-YnD2EP-S.js";
|
|
4
4
|
import { lazy as c, memo as d, useState as u, Suspense as m } from "react";
|
|
5
5
|
const p = (s) => l.get(s).then((t) => t.data), f = (s) => {
|
|
@@ -36,7 +36,7 @@ const p = (s) => l.get(s).then((t) => t.data), f = (s) => {
|
|
|
36
36
|
isLoading: o,
|
|
37
37
|
mutate: n
|
|
38
38
|
};
|
|
39
|
-
}, x = c(() => import("./StatusModal-
|
|
39
|
+
}, x = c(() => import("./StatusModal-B086BgSW.js"));
|
|
40
40
|
function g(s) {
|
|
41
41
|
const [t, a] = u(!1), {
|
|
42
42
|
data: o
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),l=require("./index-
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),l=require("./index-DWV8myok.cjs"),u=require("./index-BlP2-uOi.cjs"),r=require("react"),d=s=>l.axios.get(s).then(t=>t.data),i=s=>{const{data:t,error:n,isLoading:a,mutate:o}=l.useSWR(process.env.NODE_ENV==="development"&&!s?.disable?"http://localhost:3001/api/config":null,d,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:a,mutate:o}},m=s=>l.axios.get(s).then(t=>t.data),c=s=>{const{data:t,error:n,isLoading:a,mutate:o}=l.useSWR(process.env.NODE_ENV==="development"&&!s?.disable?"http://localhost:3012/api/status":null,m,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:a,mutate:o}},p=r.lazy(()=>Promise.resolve().then(()=>require("./StatusModal-CzPyqQQA.cjs")));function x(s){const[t,n]=r.useState(!1),{data:a}=i({disable:process.env.NODE_ENV!=="development"}),{data:o}=c({disable:process.env.NODE_ENV!=="development"});return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("link",{rel:"stylesheet",href:"https://cdn.articles.media/fonts/fontawesome/css/all.min.css"}),process.env.NODE_ENV==="development"&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("style",{children:`
|
|
2
2
|
@keyframes grow-shrink {
|
|
3
3
|
0% { transform: translateY(-50px); }
|
|
4
4
|
50% { transform: translateY(0px); }
|
package/dist/GlobalBody.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./jsx-runtime-nZSsnGb7.cjs");const e=require("./GlobalBody-
|
|
1
|
+
"use strict";require("./jsx-runtime-nZSsnGb7.cjs");const e=require("./GlobalBody-weON_TbJ.cjs");require("./index-BlP2-uOi.cjs");require("react");module.exports=e.GlobalBody_default;
|
package/dist/GlobalBody.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const K=require("./index-BlP2-uOi.cjs"),c=require("react"),he=require("react-dom"),k=require("./jsx-runtime-nZSsnGb7.cjs");function Zt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const z=Zt(c),ye=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ue=!1,Ye=!1;try{var Pe={get passive(){return Ue=!0},get once(){return Ye=Ue=!0}};ye&&(window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,!0))}catch{}function Tt(e,t,n,r){if(r&&typeof r!="boolean"&&!Ye){var i=r.once,o=r.capture,a=n;!Ye&&i&&(a=n.__once||function u(p){this.removeEventListener(t,u,o),n.call(this,p)},n.__once=a),e.addEventListener(t,a,Ue?r:o)}e.addEventListener(t,n,r)}function Re(e){return e&&e.ownerDocument||document}function ze(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}var Oe;function it(e){if((!Oe&&Oe!==0||e)&&ye){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Oe=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Oe}function Qt(){return c.useState(null)}function en(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function _e(e){const t=en(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const st=e=>!e||typeof e=="function"?e:t=>{e.current=t};function tn(e,t){const n=st(e),r=st(t);return i=>{n&&n(i),r&&r(i)}}function Xe(e,t){return c.useMemo(()=>tn(e,t),[e,t])}function nn(e){const t=c.useRef(e);return t.current=e,t}function Ct(e){const t=nn(e);c.useEffect(()=>()=>t.current(),[])}function rn(e){var t=Re(e);return t&&t.defaultView||window}function on(e,t){return rn(e).getComputedStyle(e,t)}var sn=/([A-Z])/g;function an(e){return e.replace(sn,"-$1").toLowerCase()}var un=/^ms-/;function Se(e){return an(e).replace(un,"-ms-")}var cn=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function ln(e){return!!(e&&cn.test(e))}function fe(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Se(t))||on(e).getPropertyValue(Se(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Se(i)):ln(i)?r+=i+"("+o+") ":n+=Se(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}function be(e,t,n,r){return Tt(e,t,n,r),function(){ze(e,t,n,r)}}function fn(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function dn(e){var t=fe(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function pn(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||fn(e,"transitionend",!0)},t+n),o=be(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function Ot(e,t,n,r){n==null&&(n=dn(e)||0);var i=pn(e,n,r),o=be(e,"transitionend",t);return function(){i(),o()}}function Ae(e){e===void 0&&(e=Re());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function He(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function St(){const e=c.useRef(!0),t=c.useRef(()=>e.current);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function mn(e){const t=c.useRef(e);return t.current=e,t}function vn(e){const t=mn(e);c.useEffect(()=>()=>t.current(),[])}function En(e){const t=c.useRef(null);return c.useEffect(()=>{t.current=e}),t.current}function hn(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function ie(e){const t=hn(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const yn="data-rr-ui-";function gn(e){return`${yn}${e}`}function xn(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const at=gn("modal-open");class Je{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return xn(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(fe(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(at,""),fe(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(at),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const wt=c.createContext(ye?window:void 0);wt.Provider;function Ze(){return c.useContext(wt)}const ke=(e,t)=>ye?e==null?(t||Re()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function jt(e,t){const n=Ze(),[r,i]=c.useState(()=>ke(e,n?.document));if(!r){const o=ke(e);o&&i(o)}return c.useEffect(()=>{},[t,r]),c.useEffect(()=>{const o=ke(e);o!==r&&i(o)},[e,r]),r}const ut=e=>!e||typeof e=="function"?e:t=>{e.current=t};function bn(e,t){const n=ut(e),r=ut(t);return i=>{n&&n(i),r&&r(i)}}function Me(e,t){return c.useMemo(()=>bn(e,t),[e,t])}const Rn=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Tn=typeof document<"u",ct=Tn||Rn?c.useLayoutEffect:c.useEffect;function _t(e){return e.code==="Escape"||e.keyCode===27}function Cn(){const e=z.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Te(e){if(!e||typeof e=="function")return null;const{major:t}=Cn();return t>=19?e.props.ref:e.ref}function On({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=c.useRef(null),a=c.useRef(t),u=ie(n);c.useEffect(()=>{t?a.current=!0:u(o.current)},[t,u]);const p=Me(o,Te(e)),m=c.cloneElement(e,{ref:p});return t?m:i||!a.current&&r?null:m}const Sn=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function wn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jn(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:u,children:p}=e,m=wn(e,Sn);const v=c.useRef(null),y=Me(v,Te(p)),T=A=>l=>{A&&v.current&&A(v.current,l)},_=c.useCallback(T(t),[t]),D=c.useCallback(T(n),[n]),j=c.useCallback(T(r),[r]),$=c.useCallback(T(i),[i]),F=c.useCallback(T(o),[o]),V=c.useCallback(T(a),[a]),L=c.useCallback(T(u),[u]);return Object.assign({},m,{nodeRef:v},t&&{onEnter:_},n&&{onEntering:D},r&&{onEntered:j},i&&{onExit:$},o&&{onExiting:F},a&&{onExited:V},u&&{addEndListener:L},{children:typeof p=="function"?(A,l)=>p(A,Object.assign({},l,{ref:y})):c.cloneElement(p,{ref:y})})}const _n=["component"];function Mn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Nn=z.forwardRef((e,t)=>{let{component:n}=e,r=Mn(e,_n);const i=jn(r);return k.jsxRuntimeExports.jsx(n,Object.assign({ref:t},i))});function Pn({in:e,onTransition:t}){const n=c.useRef(null),r=c.useRef(!0),i=ie(t);return ct(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),ct(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function An({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=c.useState(!t);t&&o&&a(!1);const u=Pn({in:!!t,onTransition:m=>{const v=()=>{m.isStale()||(m.in?r?.(m.element,m.initial):(a(!0),n?.(m.element)))};Promise.resolve(i(m)).then(v,y=>{throw m.in||a(!0),y})}}),p=Me(u,Te(e));return o&&!t?null:c.cloneElement(e,{ref:p})}function Ve(e,t,n){return e?k.jsxRuntimeExports.jsx(Nn,Object.assign({},n,{component:e})):t?k.jsxRuntimeExports.jsx(An,Object.assign({},n,{transition:t})):k.jsxRuntimeExports.jsx(On,Object.assign({},n))}const kn=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Dn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let De;function In(e){return De||(De=new Je({ownerDocument:e?.document})),De}function Ln(e){const t=Ze(),n=e||In(t),r=c.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:c.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:c.useCallback(i=>{r.current.backdrop=i},[])})}const Mt=c.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:u=!0,keyboard:p=!0,onBackdropClick:m,onEscapeKeyDown:v,transition:y,runTransition:T,backdropTransition:_,runBackdropTransition:D,autoFocus:j=!0,enforceFocus:$=!0,restoreFocus:F=!0,restoreFocusOptions:V,renderDialog:L,renderBackdrop:A=I=>k.jsxRuntimeExports.jsx("div",Object.assign({},I)),manager:l,container:U,onShow:G,onHide:Z=()=>{},onExit:se,onExited:Q,onExiting:ee,onEnter:ne,onEntering:re,onEntered:X}=e,ae=Dn(e,kn);const B=Ze(),H=jt(U),W=Ln(l),ue=St(),s=En(n),[d,g]=c.useState(!n),h=c.useRef(null);c.useImperativeHandle(t,()=>W,[W]),ye&&!s&&n&&(h.current=Ae(B?.document)),n&&d&&g(!1);const E=ie(()=>{if(W.add(),C.current=be(document,"keydown",S),w.current=be(document,"focus",()=>setTimeout(b),!0),G&&G(),j){var I,Ce;const ge=Ae((I=(Ce=W.dialog)==null?void 0:Ce.ownerDocument)!=null?I:B?.document);W.dialog&&ge&&!He(W.dialog,ge)&&(h.current=ge,W.dialog.focus())}}),O=ie(()=>{if(W.remove(),C.current==null||C.current(),w.current==null||w.current(),F){var I;(I=h.current)==null||I.focus==null||I.focus(V),h.current=null}});c.useEffect(()=>{!n||!H||E()},[n,H,E]),c.useEffect(()=>{d&&O()},[d,O]),vn(()=>{O()});const b=ie(()=>{if(!$||!ue()||!W.isTopModal())return;const I=Ae(B?.document);W.dialog&&I&&!He(W.dialog,I)&&W.dialog.focus()}),R=ie(I=>{I.target===I.currentTarget&&(m?.(I),u===!0&&Z())}),S=ie(I=>{p&&_t(I)&&W.isTopModal()&&(v?.(I),I.defaultPrevented||Z())}),w=c.useRef(),C=c.useRef(),q=(...I)=>{g(!0),Q?.(...I)};if(!H)return null;const f=Object.assign({role:r,ref:W.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},ae,{style:o,className:i,tabIndex:-1});let Y=L?L(f):k.jsxRuntimeExports.jsx("div",Object.assign({},f,{children:z.cloneElement(a,{role:"document"})}));Y=Ve(y,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:se,onExiting:ee,onExited:q,onEnter:ne,onEntering:re,onEntered:X,children:Y});let J=null;return u&&(J=A({ref:W.setBackdropRef,onClick:R}),J=Ve(_,D,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:J})),k.jsxRuntimeExports.jsx(k.jsxRuntimeExports.Fragment,{children:he.createPortal(k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[J,Y]}),H)})});Mt.displayName="Modal";const $n=Object.assign(Mt,{Manager:Je});function Nt(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Fn(e,t){e.classList?e.classList.add(t):Nt(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var Wn=Function.prototype.bind.call(Function.prototype.call,[].slice);function me(e,t){return Wn(e.querySelectorAll(t))}function lt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Bn(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=lt(e.className,t):e.setAttribute("class",lt(e.className&&e.className.baseVal||"",t))}const ve={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class qn extends Je{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,fe(n,{[t]:`${parseFloat(fe(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],fe(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Fn(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";me(n,ve.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),me(n,ve.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),me(n,ve.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Bn(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";me(n,ve.FIXED_CONTENT).forEach(o=>this.restore(r,o)),me(n,ve.STICKY_CONTENT).forEach(o=>this.restore(i,o)),me(n,ve.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Ie;function Un(e){return Ie||(Ie=new qn(e)),Ie}function Yn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ge(e,t){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ge(e,t)}function zn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ge(e,t)}var we={exports:{}},je={exports:{}},N={};var ft;function Hn(){if(ft)return N;ft=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(l){if(typeof l=="object"&&l!==null){var U=l.$$typeof;switch(U){case t:switch(l=l.type,l){case p:case m:case r:case o:case i:case y:return l;default:switch(l=l&&l.$$typeof,l){case u:case v:case D:case _:case a:return l;default:return U}}case n:return U}}}function A(l){return L(l)===m}return N.AsyncMode=p,N.ConcurrentMode=m,N.ContextConsumer=u,N.ContextProvider=a,N.Element=t,N.ForwardRef=v,N.Fragment=r,N.Lazy=D,N.Memo=_,N.Portal=n,N.Profiler=o,N.StrictMode=i,N.Suspense=y,N.isAsyncMode=function(l){return A(l)||L(l)===p},N.isConcurrentMode=A,N.isContextConsumer=function(l){return L(l)===u},N.isContextProvider=function(l){return L(l)===a},N.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},N.isForwardRef=function(l){return L(l)===v},N.isFragment=function(l){return L(l)===r},N.isLazy=function(l){return L(l)===D},N.isMemo=function(l){return L(l)===_},N.isPortal=function(l){return L(l)===n},N.isProfiler=function(l){return L(l)===o},N.isStrictMode=function(l){return L(l)===i},N.isSuspense=function(l){return L(l)===y},N.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===m||l===o||l===i||l===y||l===T||typeof l=="object"&&l!==null&&(l.$$typeof===D||l.$$typeof===_||l.$$typeof===a||l.$$typeof===u||l.$$typeof===v||l.$$typeof===$||l.$$typeof===F||l.$$typeof===V||l.$$typeof===j)},N.typeOf=L,N}var P={};var dt;function Vn(){return dt||(dt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(f){return typeof f=="string"||typeof f=="function"||f===r||f===m||f===o||f===i||f===y||f===T||typeof f=="object"&&f!==null&&(f.$$typeof===D||f.$$typeof===_||f.$$typeof===a||f.$$typeof===u||f.$$typeof===v||f.$$typeof===$||f.$$typeof===F||f.$$typeof===V||f.$$typeof===j)}function A(f){if(typeof f=="object"&&f!==null){var Y=f.$$typeof;switch(Y){case t:var J=f.type;switch(J){case p:case m:case r:case o:case i:case y:return J;default:var I=J&&J.$$typeof;switch(I){case u:case v:case D:case _:case a:return I;default:return Y}}case n:return Y}}}var l=p,U=m,G=u,Z=a,se=t,Q=v,ee=r,ne=D,re=_,X=n,ae=o,B=i,H=y,W=!1;function ue(f){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),s(f)||A(f)===p}function s(f){return A(f)===m}function d(f){return A(f)===u}function g(f){return A(f)===a}function h(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function E(f){return A(f)===v}function O(f){return A(f)===r}function b(f){return A(f)===D}function R(f){return A(f)===_}function S(f){return A(f)===n}function w(f){return A(f)===o}function C(f){return A(f)===i}function q(f){return A(f)===y}P.AsyncMode=l,P.ConcurrentMode=U,P.ContextConsumer=G,P.ContextProvider=Z,P.Element=se,P.ForwardRef=Q,P.Fragment=ee,P.Lazy=ne,P.Memo=re,P.Portal=X,P.Profiler=ae,P.StrictMode=B,P.Suspense=H,P.isAsyncMode=ue,P.isConcurrentMode=s,P.isContextConsumer=d,P.isContextProvider=g,P.isElement=h,P.isForwardRef=E,P.isFragment=O,P.isLazy=b,P.isMemo=R,P.isPortal=S,P.isProfiler=w,P.isStrictMode=C,P.isSuspense=q,P.isValidElementType=L,P.typeOf=A})()),P}var pt;function Pt(){return pt||(pt=1,process.env.NODE_ENV==="production"?je.exports=Hn():je.exports=Vn()),je.exports}var Le,mt;function Gn(){if(mt)return Le;mt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var p=Object.getOwnPropertyNames(a).map(function(v){return a[v]});if(p.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Le=i()?Object.assign:function(o,a){for(var u,p=r(o),m,v=1;v<arguments.length;v++){u=Object(arguments[v]);for(var y in u)t.call(u,y)&&(p[y]=u[y]);if(e){m=e(u);for(var T=0;T<m.length;T++)n.call(u,m[T])&&(p[m[T]]=u[m[T]])}}return p},Le}var $e,vt;function Qe(){if(vt)return $e;vt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $e=e,$e}var Fe,Et;function At(){return Et||(Et=1,Fe=Function.call.bind(Object.prototype.hasOwnProperty)),Fe}var We,ht;function Kn(){if(ht)return We;ht=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qe(),n={},r=At();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,p,m){if(process.env.NODE_ENV!=="production"){for(var v in o)if(r(o,v)){var y;try{if(typeof o[v]!="function"){var T=Error((p||"React class")+": "+u+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}y=o[v](a,v,p,u,null,t)}catch(D){y=D}if(y&&!(y instanceof Error)&&e((p||"React class")+": type specification of "+u+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in n)){n[y.message]=!0;var _=m?m():"";e("Failed "+u+" type: "+y.message+(_??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},We=i,We}var Be,yt;function Xn(){if(yt)return Be;yt=1;var e=Pt(),t=Gn(),n=Qe(),r=At(),i=Kn(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var p="Warning: "+u;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function a(){return null}return Be=function(u,p){var m=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function y(s){var d=s&&(m&&s[m]||s[v]);if(typeof d=="function")return d}var T="<<anonymous>>",_={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:V(),arrayOf:L,element:A(),elementType:l(),instanceOf:U,node:Q(),objectOf:Z,oneOf:G,oneOfType:se,shape:ne,exact:re};function D(s,d){return s===d?s!==0||1/s===1/d:s!==s&&d!==d}function j(s,d){this.message=s,this.data=d&&typeof d=="object"?d:{},this.stack=""}j.prototype=Error.prototype;function $(s){if(process.env.NODE_ENV!=="production")var d={},g=0;function h(O,b,R,S,w,C,q){if(S=S||T,C=C||R,q!==n){if(p){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Y=S+":"+R;!d[Y]&&g<3&&(o("You are manually calling a React.PropTypes validation function for the `"+C+"` prop on `"+S+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),d[Y]=!0,g++)}}return b[R]==null?O?b[R]===null?new j("The "+w+" `"+C+"` is marked as required "+("in `"+S+"`, but its value is `null`.")):new j("The "+w+" `"+C+"` is marked as required in "+("`"+S+"`, but its value is `undefined`.")):null:s(b,R,S,w,C)}var E=h.bind(null,!1);return E.isRequired=h.bind(null,!0),E}function F(s){function d(g,h,E,O,b,R){var S=g[h],w=B(S);if(w!==s){var C=H(S);return new j("Invalid "+O+" `"+b+"` of type "+("`"+C+"` supplied to `"+E+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return $(d)}function V(){return $(a)}function L(s){function d(g,h,E,O,b){if(typeof s!="function")return new j("Property `"+b+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var R=g[h];if(!Array.isArray(R)){var S=B(R);return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an array."))}for(var w=0;w<R.length;w++){var C=s(R,w,E,O,b+"["+w+"]",n);if(C instanceof Error)return C}return null}return $(d)}function A(){function s(d,g,h,E,O){var b=d[g];if(!u(b)){var R=B(b);return new j("Invalid "+E+" `"+O+"` of type "+("`"+R+"` supplied to `"+h+"`, expected a single ReactElement."))}return null}return $(s)}function l(){function s(d,g,h,E,O){var b=d[g];if(!e.isValidElementType(b)){var R=B(b);return new j("Invalid "+E+" `"+O+"` of type "+("`"+R+"` supplied to `"+h+"`, expected a single ReactElement type."))}return null}return $(s)}function U(s){function d(g,h,E,O,b){if(!(g[h]instanceof s)){var R=s.name||T,S=ue(g[h]);return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected ")+("instance of `"+R+"`."))}return null}return $(d)}function G(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function d(g,h,E,O,b){for(var R=g[h],S=0;S<s.length;S++)if(D(R,s[S]))return null;var w=JSON.stringify(s,function(q,f){var Y=H(f);return Y==="symbol"?String(f):f});return new j("Invalid "+O+" `"+b+"` of value `"+String(R)+"` "+("supplied to `"+E+"`, expected one of "+w+"."))}return $(d)}function Z(s){function d(g,h,E,O,b){if(typeof s!="function")return new j("Property `"+b+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var R=g[h],S=B(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an object."));for(var w in R)if(r(R,w)){var C=s(R,w,E,O,b+"."+w,n);if(C instanceof Error)return C}return null}return $(d)}function se(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var d=0;d<s.length;d++){var g=s[d];if(typeof g!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(g)+" at index "+d+"."),a}function h(E,O,b,R,S){for(var w=[],C=0;C<s.length;C++){var q=s[C],f=q(E,O,b,R,S,n);if(f==null)return null;f.data&&r(f.data,"expectedType")&&w.push(f.data.expectedType)}var Y=w.length>0?", expected one of type ["+w.join(", ")+"]":"";return new j("Invalid "+R+" `"+S+"` supplied to "+("`"+b+"`"+Y+"."))}return $(h)}function Q(){function s(d,g,h,E,O){return X(d[g])?null:new j("Invalid "+E+" `"+O+"` supplied to "+("`"+h+"`, expected a ReactNode."))}return $(s)}function ee(s,d,g,h,E){return new j((s||"React class")+": "+d+" type `"+g+"."+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function ne(s){function d(g,h,E,O,b){var R=g[h],S=B(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));for(var w in s){var C=s[w];if(typeof C!="function")return ee(E,O,b,w,H(C));var q=C(R,w,E,O,b+"."+w,n);if(q)return q}return null}return $(d)}function re(s){function d(g,h,E,O,b){var R=g[h],S=B(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));var w=t({},g[h],s);for(var C in w){var q=s[C];if(r(s,C)&&typeof q!="function")return ee(E,O,b,C,H(q));if(!q)return new j("Invalid "+O+" `"+b+"` key `"+C+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(g[h],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var f=q(R,C,E,O,b+"."+C,n);if(f)return f}return null}return $(d)}function X(s){switch(typeof s){case"number":case"string":case"undefined":return!0;case"boolean":return!s;case"object":if(Array.isArray(s))return s.every(X);if(s===null||u(s))return!0;var d=y(s);if(d){var g=d.call(s),h;if(d!==s.entries){for(;!(h=g.next()).done;)if(!X(h.value))return!1}else for(;!(h=g.next()).done;){var E=h.value;if(E&&!X(E[1]))return!1}}else return!1;return!0;default:return!1}}function ae(s,d){return s==="symbol"?!0:d?d["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&d instanceof Symbol:!1}function B(s){var d=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":ae(d,s)?"symbol":d}function H(s){if(typeof s>"u"||s===null)return""+s;var d=B(s);if(d==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return d}function W(s){var d=H(s);switch(d){case"array":case"object":return"an "+d;case"boolean":case"date":case"regexp":return"a "+d;default:return d}}function ue(s){return!s.constructor||!s.constructor.name?T:s.constructor.name}return _.checkPropTypes=i,_.resetWarningCache=i.resetWarningCache,_.PropTypes=_,_},Be}var qe,gt;function Jn(){if(gt)return qe;gt=1;var e=Qe();function t(){}function n(){}return n.resetWarningCache=t,qe=function(){function r(a,u,p,m,v,y){if(y!==e){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},qe}var xt;function Zn(){if(xt)return we.exports;if(xt=1,process.env.NODE_ENV!=="production"){var e=Pt(),t=!0;we.exports=Xn()(e.isElement,t)}else we.exports=Jn()();return we.exports}var Qn=Zn();const x=K.getDefaultExportFromCjs(Qn),bt={disabled:!1};var er=process.env.NODE_ENV!=="production"?x.oneOfType([x.number,x.shape({enter:x.number,exit:x.number,appear:x.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&x.oneOfType([x.string,x.shape({enter:x.string,exit:x.string,active:x.string}),x.shape({enter:x.string,enterDone:x.string,enterActive:x.string,exit:x.string,exitDone:x.string,exitActive:x.string})]);const kt=c.createContext(null);var tr=function(t){return t.scrollTop},xe="unmounted",ce="exited",oe="entering",le="entered",Ke="exiting",te=(function(e){zn(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,u=a&&!a.isMounting?r.enter:r.appear,p;return o.appearStatus=null,r.in?u?(p=ce,o.appearStatus=oe):p=le:r.unmountOnExit||r.mountOnEnter?p=xe:p=ce,o.state={status:p},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===xe?{status:ce}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==oe&&a!==le&&(o=oe):(a===oe||a===le)&&(o=Ke)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,u;return o=a=u=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,u=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:u}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===oe){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this);a&&tr(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ce&&this.setState({status:xe})},n.performEnter=function(i){var o=this,a=this.props.enter,u=this.context?this.context.isMounting:i,p=this.props.nodeRef?[u]:[he.findDOMNode(this),u],m=p[0],v=p[1],y=this.getTimeouts(),T=u?y.appear:y.enter;if(!i&&!a||bt.disabled){this.safeSetState({status:le},function(){o.props.onEntered(m)});return}this.props.onEnter(m,v),this.safeSetState({status:oe},function(){o.props.onEntering(m,v),o.onTransitionEnd(T,function(){o.safeSetState({status:le},function(){o.props.onEntered(m,v)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:he.findDOMNode(this);if(!o||bt.disabled){this.safeSetState({status:ce},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Ke},function(){i.props.onExiting(u),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ce},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,o.nextCallback=null,i(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],m=p[0],v=p[1];this.props.addEndListener(m,v)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===xe)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=Yn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return c.createElement(kt.Provider,{value:null},typeof a=="function"?a(i,u):c.cloneElement(c.Children.only(a),u))},t})(c.Component);te.contextType=kt;te.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:x.shape({current:typeof Element>"u"?x.any:function(e,t,n,r,i,o){var a=e[t];return x.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:x.oneOfType([x.func.isRequired,x.element.isRequired]).isRequired,in:x.bool,mountOnEnter:x.bool,unmountOnExit:x.bool,appear:x.bool,enter:x.bool,exit:x.bool,timeout:function(t){var n=er;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:x.func,onEnter:x.func,onEntering:x.func,onEntered:x.func,onExit:x.func,onExiting:x.func,onExited:x.func}:{};function Ee(){}te.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ee,onEntering:Ee,onEntered:Ee,onExit:Ee,onExiting:Ee,onExited:Ee};te.UNMOUNTED=xe;te.EXITED=ce;te.ENTERING=oe;te.ENTERED=le;te.EXITING=Ke;function Rt(e,t){const n=fe(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function nr(e,t){const n=Rt(e,"transitionDuration"),r=Rt(e,"transitionDelay"),i=Ot(e,o=>{o.target===e&&(i(),t(o))},n+r)}function rr(e){e.offsetHeight}function Dt(e){return e&&"setState"in e?he.findDOMNode(e):e??null}const It=c.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:u,childRef:p,...m},v)=>{const y=c.useRef(null),T=Xe(y,p),_=U=>{T(Dt(U))},D=U=>G=>{U&&y.current&&U(y.current,G)},j=c.useCallback(D(e),[e]),$=c.useCallback(D(t),[t]),F=c.useCallback(D(n),[n]),V=c.useCallback(D(r),[r]),L=c.useCallback(D(i),[i]),A=c.useCallback(D(o),[o]),l=c.useCallback(D(a),[a]);return k.jsxRuntimeExports.jsx(te,{ref:v,...m,onEnter:j,onEntered:F,onEntering:$,onExit:V,onExited:A,onExiting:L,addEndListener:l,nodeRef:y,children:typeof u=="function"?(U,G)=>u(U,{...G,ref:_}):c.cloneElement(u,{ref:_})})});It.displayName="TransitionWrapper";const or={[oe]:"show",[le]:"show"},Ne=z.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},u=c.useCallback((p,m)=>{rr(p),r?.(p,m)},[r]);return k.jsxRuntimeExports.jsx(It,{ref:o,addEndListener:nr,...a,onEnter:u,childRef:Te(t),children:(p,m)=>z.cloneElement(t,{...m,className:K.classNames("fade",e,t.props.className,or[p],n[p])})})});Ne.displayName="Fade";const ir=["xxl","xl","lg","md","sm","xs"],sr="xs",et=z.createContext({prefixes:{},breakpoints:ir,minBreakpoint:sr}),{Consumer:pr,Provider:mr}=et;function de(e,t){const{prefixes:n}=c.useContext(et);return e||n[t]||t}function Lt(){const{dir:e}=c.useContext(et);return e==="rtl"}const $t=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=de(t,"modal-body"),k.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));$t.displayName="ModalBody";const Ft=z.createContext({onHide(){}}),tt=z.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:u,...p},m)=>{e=de(e,"modal");const v=`${e}-dialog`,y=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return k.jsxRuntimeExports.jsx("div",{...p,ref:m,className:K.classNames(v,t,i&&`${e}-${i}`,r&&`${v}-centered`,u&&`${v}-scrollable`,o&&y),children:k.jsxRuntimeExports.jsx("div",{className:K.classNames(`${e}-content`,n),children:a})})});tt.displayName="ModalDialog";const Wt=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=de(t,"modal-footer"),k.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));Wt.displayName="ModalFooter";const ar={"aria-label":x.string,onClick:x.func,variant:x.oneOf(["white"])},nt=z.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>k.jsxRuntimeExports.jsx("button",{ref:i,type:"button",className:K.classNames("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));nt.displayName="CloseButton";nt.propTypes=ar;const Bt=z.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const u=c.useContext(Ft),p=_e(()=>{u?.onHide(),r?.()});return k.jsxRuntimeExports.jsxs("div",{ref:a,...o,children:[i,n&&k.jsxRuntimeExports.jsx(nt,{"aria-label":e,variant:t,onClick:p})]})});Bt.displayName="AbstractModalHeader";const qt=z.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=de(e,"modal-header"),k.jsxRuntimeExports.jsx(Bt,{ref:o,...i,className:K.classNames(t,e),closeLabel:n,closeButton:r})));qt.displayName="ModalHeader";const ur=(e=>z.forwardRef((t,n)=>k.jsxRuntimeExports.jsx("div",{...t,ref:n,className:K.classNames(t.className,e)}))),cr=ur("h4"),Ut=z.forwardRef(({className:e,bsPrefix:t,as:n=cr,...r},i)=>(t=de(t,"modal-title"),k.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));Ut.displayName="ModalTitle";function lr(e){return k.jsxRuntimeExports.jsx(Ne,{...e,timeout:null})}function fr(e){return k.jsxRuntimeExports.jsx(Ne,{...e,timeout:null})}const Yt=z.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=tt,"data-bs-theme":u,"aria-labelledby":p,"aria-describedby":m,"aria-label":v,show:y=!1,animation:T=!0,backdrop:_=!0,keyboard:D=!0,onEscapeKeyDown:j,onShow:$,onHide:F,container:V,autoFocus:L=!0,enforceFocus:A=!0,restoreFocus:l=!0,restoreFocusOptions:U,onEntered:G,onExit:Z,onExiting:se,onEnter:Q,onEntering:ee,onExited:ne,backdropClassName:re,manager:X,...ae},B)=>{const[H,W]=c.useState({}),[ue,s]=c.useState(!1),d=c.useRef(!1),g=c.useRef(!1),h=c.useRef(null),[E,O]=Qt(),b=Xe(B,O),R=_e(F),S=Lt();e=de(e,"modal");const w=c.useMemo(()=>({onHide:R}),[R]);function C(){return X||Un({isRTL:S})}function q(M){if(!ye)return;const pe=C().getScrollbarWidth()>0,ot=M.scrollHeight>Re(M).documentElement.clientHeight;W({paddingRight:pe&&!ot?it():void 0,paddingLeft:!pe&&ot?it():void 0})}const f=_e(()=>{E&&q(E.dialog)});Ct(()=>{ze(window,"resize",f),h.current==null||h.current()});const Y=()=>{d.current=!0},J=M=>{d.current&&E&&M.target===E.dialog&&(g.current=!0),d.current=!1},I=()=>{s(!0),h.current=Ot(E.dialog,()=>{s(!1)})},Ce=M=>{M.target===M.currentTarget&&I()},ge=M=>{if(_==="static"){Ce(M);return}if(g.current||M.target!==M.currentTarget){g.current=!1;return}F?.()},zt=M=>{D?j?.(M):(M.preventDefault(),_==="static"&&I())},Ht=(M,pe)=>{M&&q(M),Q?.(M,pe)},Vt=M=>{h.current==null||h.current(),Z?.(M)},Gt=(M,pe)=>{ee?.(M,pe),Tt(window,"resize",f)},Kt=M=>{M&&(M.style.display=""),ne?.(M),ze(window,"resize",f)},Xt=c.useCallback(M=>k.jsxRuntimeExports.jsx("div",{...M,className:K.classNames(`${e}-backdrop`,re,!T&&"show")}),[T,re,e]),rt={...n,...H};rt.display="block";const Jt=M=>k.jsxRuntimeExports.jsx("div",{role:"dialog",...M,style:rt,className:K.classNames(t,e,ue&&`${e}-static`,!T&&"show"),onClick:_?ge:void 0,onMouseUp:J,"data-bs-theme":u,"aria-label":v,"aria-labelledby":p,"aria-describedby":m,children:k.jsxRuntimeExports.jsx(a,{...ae,onMouseDown:Y,className:r,contentClassName:i,children:o})});return k.jsxRuntimeExports.jsx(Ft.Provider,{value:w,children:k.jsxRuntimeExports.jsx($n,{show:y,ref:b,backdrop:_,container:V,keyboard:!0,autoFocus:L,enforceFocus:A,restoreFocus:l,restoreFocusOptions:U,onEscapeKeyDown:zt,onShow:$,onHide:F,onEnter:Ht,onEntering:Gt,onEntered:G,onExit:Vt,onExiting:se,onExited:Kt,manager:C(),transition:T?lr:void 0,backdropTransition:T?fr:void 0,renderBackdrop:Xt,renderDialog:Jt})})});Yt.displayName="Modal";const dr=Object.assign(Yt,{Body:$t,Header:qt,Title:Ut,Footer:Wt,Dialog:tt,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});exports.Fade=Ne;exports.Modal=dr;exports.PropTypes=x;exports.contains=He;exports.getChildRef=Te;exports.hasClass=Nt;exports.isEscKey=_t;exports.listen=be;exports.ownerDocument=Re;exports.renderTransition=Ve;exports.safeFindDOMNode=Dt;exports.useBootstrapPrefix=de;exports.useEventCallback=ie;exports.useEventCallback$1=_e;exports.useIsRTL=Lt;exports.useMergedRefs=Me;exports.useMergedRefs$1=Xe;exports.useMounted=St;exports.useWaitForDOMRef=jt;exports.useWillUnmount=Ct;
|
|
1
|
+
"use strict";const K=require("./index-BlP2-uOi.cjs"),c=require("react"),he=require("react-dom"),A=require("./jsx-runtime-nZSsnGb7.cjs");function Zt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const z=Zt(c),ye=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ye=!1,ze=!1;try{var ke={get passive(){return Ye=!0},get once(){return ze=Ye=!0}};ye&&(window.addEventListener("test",ke,ke),window.removeEventListener("test",ke,!0))}catch{}function Tt(e,t,n,r){if(r&&typeof r!="boolean"&&!ze){var i=r.once,o=r.capture,a=n;!ze&&i&&(a=n.__once||function u(p){this.removeEventListener(t,u,o),n.call(this,p)},n.__once=a),e.addEventListener(t,a,Ye?r:o)}e.addEventListener(t,n,r)}function Re(e){return e&&e.ownerDocument||document}function He(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}var Se;function it(e){if((!Se&&Se!==0||e)&&ye){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Se=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Se}function Qt(){return c.useState(null)}function en(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function _e(e){const t=en(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const st=e=>!e||typeof e=="function"?e:t=>{e.current=t};function tn(e,t){const n=st(e),r=st(t);return i=>{n&&n(i),r&&r(i)}}function Je(e,t){return c.useMemo(()=>tn(e,t),[e,t])}function nn(e){const t=c.useRef(e);return t.current=e,t}function Ct(e){const t=nn(e);c.useEffect(()=>()=>t.current(),[])}function rn(e){var t=Re(e);return t&&t.defaultView||window}function on(e,t){return rn(e).getComputedStyle(e,t)}var sn=/([A-Z])/g;function an(e){return e.replace(sn,"-$1").toLowerCase()}var un=/^ms-/;function we(e){return an(e).replace(un,"-ms-")}var cn=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function ln(e){return!!(e&&cn.test(e))}function fe(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(we(t))||on(e).getPropertyValue(we(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(we(i)):ln(i)?r+=i+"("+o+") ":n+=we(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}function be(e,t,n,r){return Tt(e,t,n,r),function(){He(e,t,n,r)}}function fn(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function dn(e){var t=fe(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function pn(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||fn(e,"transitionend",!0)},t+n),o=be(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function Ot(e,t,n,r){n==null&&(n=dn(e)||0);var i=pn(e,n,r),o=be(e,"transitionend",t);return function(){i(),o()}}function Ae(e){e===void 0&&(e=Re());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Ve(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function St(){const e=c.useRef(!0),t=c.useRef(()=>e.current);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function mn(e){const t=c.useRef(e);return t.current=e,t}function vn(e){const t=mn(e);c.useEffect(()=>()=>t.current(),[])}function En(e){const t=c.useRef(null);return c.useEffect(()=>{t.current=e}),t.current}function hn(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function ie(e){const t=hn(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const yn="data-rr-ui-";function gn(e){return`${yn}${e}`}function xn(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const at=gn("modal-open");class Ze{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return xn(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(fe(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(at,""),fe(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(at),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const wt=c.createContext(ye?window:void 0);wt.Provider;function Qe(){return c.useContext(wt)}const De=(e,t)=>ye?e==null?(t||Re()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function jt(e,t){const n=Qe(),[r,i]=c.useState(()=>De(e,n?.document));if(!r){const o=De(e);o&&i(o)}return c.useEffect(()=>{},[t,r]),c.useEffect(()=>{const o=De(e);o!==r&&i(o)},[e,r]),r}const ut=e=>!e||typeof e=="function"?e:t=>{e.current=t};function bn(e,t){const n=ut(e),r=ut(t);return i=>{n&&n(i),r&&r(i)}}function Ne(e,t){return c.useMemo(()=>bn(e,t),[e,t])}const Rn=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Tn=typeof document<"u",ct=Tn||Rn?c.useLayoutEffect:c.useEffect;function Mt(e){return e.code==="Escape"||e.keyCode===27}function Cn(){const e=z.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Te(e){if(!e||typeof e=="function")return null;const{major:t}=Cn();return t>=19?e.props.ref:e.ref}function On({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=c.useRef(null),a=c.useRef(t),u=ie(n);c.useEffect(()=>{t?a.current=!0:u(o.current)},[t,u]);const p=Ne(o,Te(e)),m=c.cloneElement(e,{ref:p});return t?m:i||!a.current&&r?null:m}const Sn=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function wn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jn(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:u,children:p}=e,m=wn(e,Sn);const v=c.useRef(null),y=Ne(v,Te(p)),T=k=>l=>{k&&v.current&&k(v.current,l)},M=c.useCallback(T(t),[t]),D=c.useCallback(T(n),[n]),j=c.useCallback(T(r),[r]),$=c.useCallback(T(i),[i]),F=c.useCallback(T(o),[o]),V=c.useCallback(T(a),[a]),L=c.useCallback(T(u),[u]);return Object.assign({},m,{nodeRef:v},t&&{onEnter:M},n&&{onEntering:D},r&&{onEntered:j},i&&{onExit:$},o&&{onExiting:F},a&&{onExited:V},u&&{addEndListener:L},{children:typeof p=="function"?(k,l)=>p(k,Object.assign({},l,{ref:y})):c.cloneElement(p,{ref:y})})}const Mn=["component"];function _n(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Nn=z.forwardRef((e,t)=>{let{component:n}=e,r=_n(e,Mn);const i=jn(r);return A.jsxRuntimeExports.jsx(n,Object.assign({ref:t},i))});function Pn({in:e,onTransition:t}){const n=c.useRef(null),r=c.useRef(!0),i=ie(t);return ct(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),ct(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function kn({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=c.useState(!t);t&&o&&a(!1);const u=Pn({in:!!t,onTransition:m=>{const v=()=>{m.isStale()||(m.in?r?.(m.element,m.initial):(a(!0),n?.(m.element)))};Promise.resolve(i(m)).then(v,y=>{throw m.in||a(!0),y})}}),p=Ne(u,Te(e));return o&&!t?null:c.cloneElement(e,{ref:p})}function Ge(e,t,n){return e?A.jsxRuntimeExports.jsx(Nn,Object.assign({},n,{component:e})):t?A.jsxRuntimeExports.jsx(kn,Object.assign({},n,{transition:t})):A.jsxRuntimeExports.jsx(On,Object.assign({},n))}const An=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Dn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Ie;function In(e){return Ie||(Ie=new Ze({ownerDocument:e?.document})),Ie}function Ln(e){const t=Qe(),n=e||In(t),r=c.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:c.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:c.useCallback(i=>{r.current.backdrop=i},[])})}const _t=c.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:u=!0,keyboard:p=!0,onBackdropClick:m,onEscapeKeyDown:v,transition:y,runTransition:T,backdropTransition:M,runBackdropTransition:D,autoFocus:j=!0,enforceFocus:$=!0,restoreFocus:F=!0,restoreFocusOptions:V,renderDialog:L,renderBackdrop:k=I=>A.jsxRuntimeExports.jsx("div",Object.assign({},I)),manager:l,container:U,onShow:G,onHide:Z=()=>{},onExit:se,onExited:Q,onExiting:ee,onEnter:ne,onEntering:re,onEntered:X}=e,ae=Dn(e,An);const W=Qe(),H=jt(U),B=Ln(l),ue=St(),s=En(n),[d,g]=c.useState(!n),h=c.useRef(null);c.useImperativeHandle(t,()=>B,[B]),ye&&!s&&n&&(h.current=Ae(W?.document)),n&&d&&g(!1);const E=ie(()=>{if(B.add(),C.current=be(document,"keydown",S),w.current=be(document,"focus",()=>setTimeout(b),!0),G&&G(),j){var I,Oe;const ge=Ae((I=(Oe=B.dialog)==null?void 0:Oe.ownerDocument)!=null?I:W?.document);B.dialog&&ge&&!Ve(B.dialog,ge)&&(h.current=ge,B.dialog.focus())}}),O=ie(()=>{if(B.remove(),C.current==null||C.current(),w.current==null||w.current(),F){var I;(I=h.current)==null||I.focus==null||I.focus(V),h.current=null}});c.useEffect(()=>{!n||!H||E()},[n,H,E]),c.useEffect(()=>{d&&O()},[d,O]),vn(()=>{O()});const b=ie(()=>{if(!$||!ue()||!B.isTopModal())return;const I=Ae(W?.document);B.dialog&&I&&!Ve(B.dialog,I)&&B.dialog.focus()}),R=ie(I=>{I.target===I.currentTarget&&(m?.(I),u===!0&&Z())}),S=ie(I=>{p&&Mt(I)&&B.isTopModal()&&(v?.(I),I.defaultPrevented||Z())}),w=c.useRef(),C=c.useRef(),q=(...I)=>{g(!0),Q?.(...I)};if(!H)return null;const f=Object.assign({role:r,ref:B.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},ae,{style:o,className:i,tabIndex:-1});let Y=L?L(f):A.jsxRuntimeExports.jsx("div",Object.assign({},f,{children:z.cloneElement(a,{role:"document"})}));Y=Ge(y,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:se,onExiting:ee,onExited:q,onEnter:ne,onEntering:re,onEntered:X,children:Y});let J=null;return u&&(J=k({ref:B.setBackdropRef,onClick:R}),J=Ge(M,D,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:J})),A.jsxRuntimeExports.jsx(A.jsxRuntimeExports.Fragment,{children:he.createPortal(A.jsxRuntimeExports.jsxs(A.jsxRuntimeExports.Fragment,{children:[J,Y]}),H)})});_t.displayName="Modal";const $n=Object.assign(_t,{Manager:Ze});function Nt(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Fn(e,t){e.classList?e.classList.add(t):Nt(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var Bn=Function.prototype.bind.call(Function.prototype.call,[].slice);function me(e,t){return Bn(e.querySelectorAll(t))}function lt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Wn(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=lt(e.className,t):e.setAttribute("class",lt(e.className&&e.className.baseVal||"",t))}const ve={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class qn extends Ze{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,fe(n,{[t]:`${parseFloat(fe(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],fe(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Fn(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";me(n,ve.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),me(n,ve.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),me(n,ve.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Wn(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";me(n,ve.FIXED_CONTENT).forEach(o=>this.restore(r,o)),me(n,ve.STICKY_CONTENT).forEach(o=>this.restore(i,o)),me(n,ve.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Le;function Un(e){return Le||(Le=new qn(e)),Le}function Yn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ke(e,t)}function zn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ke(e,t)}var je={exports:{}},Me={exports:{}},N={};var ft;function Hn(){if(ft)return N;ft=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,M=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(l){if(typeof l=="object"&&l!==null){var U=l.$$typeof;switch(U){case t:switch(l=l.type,l){case p:case m:case r:case o:case i:case y:return l;default:switch(l=l&&l.$$typeof,l){case u:case v:case D:case M:case a:return l;default:return U}}case n:return U}}}function k(l){return L(l)===m}return N.AsyncMode=p,N.ConcurrentMode=m,N.ContextConsumer=u,N.ContextProvider=a,N.Element=t,N.ForwardRef=v,N.Fragment=r,N.Lazy=D,N.Memo=M,N.Portal=n,N.Profiler=o,N.StrictMode=i,N.Suspense=y,N.isAsyncMode=function(l){return k(l)||L(l)===p},N.isConcurrentMode=k,N.isContextConsumer=function(l){return L(l)===u},N.isContextProvider=function(l){return L(l)===a},N.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},N.isForwardRef=function(l){return L(l)===v},N.isFragment=function(l){return L(l)===r},N.isLazy=function(l){return L(l)===D},N.isMemo=function(l){return L(l)===M},N.isPortal=function(l){return L(l)===n},N.isProfiler=function(l){return L(l)===o},N.isStrictMode=function(l){return L(l)===i},N.isSuspense=function(l){return L(l)===y},N.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===m||l===o||l===i||l===y||l===T||typeof l=="object"&&l!==null&&(l.$$typeof===D||l.$$typeof===M||l.$$typeof===a||l.$$typeof===u||l.$$typeof===v||l.$$typeof===$||l.$$typeof===F||l.$$typeof===V||l.$$typeof===j)},N.typeOf=L,N}var P={};var dt;function Vn(){return dt||(dt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,M=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(f){return typeof f=="string"||typeof f=="function"||f===r||f===m||f===o||f===i||f===y||f===T||typeof f=="object"&&f!==null&&(f.$$typeof===D||f.$$typeof===M||f.$$typeof===a||f.$$typeof===u||f.$$typeof===v||f.$$typeof===$||f.$$typeof===F||f.$$typeof===V||f.$$typeof===j)}function k(f){if(typeof f=="object"&&f!==null){var Y=f.$$typeof;switch(Y){case t:var J=f.type;switch(J){case p:case m:case r:case o:case i:case y:return J;default:var I=J&&J.$$typeof;switch(I){case u:case v:case D:case M:case a:return I;default:return Y}}case n:return Y}}}var l=p,U=m,G=u,Z=a,se=t,Q=v,ee=r,ne=D,re=M,X=n,ae=o,W=i,H=y,B=!1;function ue(f){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),s(f)||k(f)===p}function s(f){return k(f)===m}function d(f){return k(f)===u}function g(f){return k(f)===a}function h(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function E(f){return k(f)===v}function O(f){return k(f)===r}function b(f){return k(f)===D}function R(f){return k(f)===M}function S(f){return k(f)===n}function w(f){return k(f)===o}function C(f){return k(f)===i}function q(f){return k(f)===y}P.AsyncMode=l,P.ConcurrentMode=U,P.ContextConsumer=G,P.ContextProvider=Z,P.Element=se,P.ForwardRef=Q,P.Fragment=ee,P.Lazy=ne,P.Memo=re,P.Portal=X,P.Profiler=ae,P.StrictMode=W,P.Suspense=H,P.isAsyncMode=ue,P.isConcurrentMode=s,P.isContextConsumer=d,P.isContextProvider=g,P.isElement=h,P.isForwardRef=E,P.isFragment=O,P.isLazy=b,P.isMemo=R,P.isPortal=S,P.isProfiler=w,P.isStrictMode=C,P.isSuspense=q,P.isValidElementType=L,P.typeOf=k})()),P}var pt;function Pt(){return pt||(pt=1,process.env.NODE_ENV==="production"?Me.exports=Hn():Me.exports=Vn()),Me.exports}var $e,mt;function Gn(){if(mt)return $e;mt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var p=Object.getOwnPropertyNames(a).map(function(v){return a[v]});if(p.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $e=i()?Object.assign:function(o,a){for(var u,p=r(o),m,v=1;v<arguments.length;v++){u=Object(arguments[v]);for(var y in u)t.call(u,y)&&(p[y]=u[y]);if(e){m=e(u);for(var T=0;T<m.length;T++)n.call(u,m[T])&&(p[m[T]]=u[m[T]])}}return p},$e}var Fe,vt;function et(){if(vt)return Fe;vt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fe=e,Fe}var Be,Et;function kt(){return Et||(Et=1,Be=Function.call.bind(Object.prototype.hasOwnProperty)),Be}var We,ht;function Kn(){if(ht)return We;ht=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=et(),n={},r=kt();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,p,m){if(process.env.NODE_ENV!=="production"){for(var v in o)if(r(o,v)){var y;try{if(typeof o[v]!="function"){var T=Error((p||"React class")+": "+u+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}y=o[v](a,v,p,u,null,t)}catch(D){y=D}if(y&&!(y instanceof Error)&&e((p||"React class")+": type specification of "+u+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in n)){n[y.message]=!0;var M=m?m():"";e("Failed "+u+" type: "+y.message+(M??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},We=i,We}var qe,yt;function Xn(){if(yt)return qe;yt=1;var e=Pt(),t=Gn(),n=et(),r=kt(),i=Kn(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var p="Warning: "+u;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function a(){return null}return qe=function(u,p){var m=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function y(s){var d=s&&(m&&s[m]||s[v]);if(typeof d=="function")return d}var T="<<anonymous>>",M={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:V(),arrayOf:L,element:k(),elementType:l(),instanceOf:U,node:Q(),objectOf:Z,oneOf:G,oneOfType:se,shape:ne,exact:re};function D(s,d){return s===d?s!==0||1/s===1/d:s!==s&&d!==d}function j(s,d){this.message=s,this.data=d&&typeof d=="object"?d:{},this.stack=""}j.prototype=Error.prototype;function $(s){if(process.env.NODE_ENV!=="production")var d={},g=0;function h(O,b,R,S,w,C,q){if(S=S||T,C=C||R,q!==n){if(p){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Y=S+":"+R;!d[Y]&&g<3&&(o("You are manually calling a React.PropTypes validation function for the `"+C+"` prop on `"+S+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),d[Y]=!0,g++)}}return b[R]==null?O?b[R]===null?new j("The "+w+" `"+C+"` is marked as required "+("in `"+S+"`, but its value is `null`.")):new j("The "+w+" `"+C+"` is marked as required in "+("`"+S+"`, but its value is `undefined`.")):null:s(b,R,S,w,C)}var E=h.bind(null,!1);return E.isRequired=h.bind(null,!0),E}function F(s){function d(g,h,E,O,b,R){var S=g[h],w=W(S);if(w!==s){var C=H(S);return new j("Invalid "+O+" `"+b+"` of type "+("`"+C+"` supplied to `"+E+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return $(d)}function V(){return $(a)}function L(s){function d(g,h,E,O,b){if(typeof s!="function")return new j("Property `"+b+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var R=g[h];if(!Array.isArray(R)){var S=W(R);return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an array."))}for(var w=0;w<R.length;w++){var C=s(R,w,E,O,b+"["+w+"]",n);if(C instanceof Error)return C}return null}return $(d)}function k(){function s(d,g,h,E,O){var b=d[g];if(!u(b)){var R=W(b);return new j("Invalid "+E+" `"+O+"` of type "+("`"+R+"` supplied to `"+h+"`, expected a single ReactElement."))}return null}return $(s)}function l(){function s(d,g,h,E,O){var b=d[g];if(!e.isValidElementType(b)){var R=W(b);return new j("Invalid "+E+" `"+O+"` of type "+("`"+R+"` supplied to `"+h+"`, expected a single ReactElement type."))}return null}return $(s)}function U(s){function d(g,h,E,O,b){if(!(g[h]instanceof s)){var R=s.name||T,S=ue(g[h]);return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected ")+("instance of `"+R+"`."))}return null}return $(d)}function G(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function d(g,h,E,O,b){for(var R=g[h],S=0;S<s.length;S++)if(D(R,s[S]))return null;var w=JSON.stringify(s,function(q,f){var Y=H(f);return Y==="symbol"?String(f):f});return new j("Invalid "+O+" `"+b+"` of value `"+String(R)+"` "+("supplied to `"+E+"`, expected one of "+w+"."))}return $(d)}function Z(s){function d(g,h,E,O,b){if(typeof s!="function")return new j("Property `"+b+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var R=g[h],S=W(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an object."));for(var w in R)if(r(R,w)){var C=s(R,w,E,O,b+"."+w,n);if(C instanceof Error)return C}return null}return $(d)}function se(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var d=0;d<s.length;d++){var g=s[d];if(typeof g!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(g)+" at index "+d+"."),a}function h(E,O,b,R,S){for(var w=[],C=0;C<s.length;C++){var q=s[C],f=q(E,O,b,R,S,n);if(f==null)return null;f.data&&r(f.data,"expectedType")&&w.push(f.data.expectedType)}var Y=w.length>0?", expected one of type ["+w.join(", ")+"]":"";return new j("Invalid "+R+" `"+S+"` supplied to "+("`"+b+"`"+Y+"."))}return $(h)}function Q(){function s(d,g,h,E,O){return X(d[g])?null:new j("Invalid "+E+" `"+O+"` supplied to "+("`"+h+"`, expected a ReactNode."))}return $(s)}function ee(s,d,g,h,E){return new j((s||"React class")+": "+d+" type `"+g+"."+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function ne(s){function d(g,h,E,O,b){var R=g[h],S=W(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));for(var w in s){var C=s[w];if(typeof C!="function")return ee(E,O,b,w,H(C));var q=C(R,w,E,O,b+"."+w,n);if(q)return q}return null}return $(d)}function re(s){function d(g,h,E,O,b){var R=g[h],S=W(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));var w=t({},g[h],s);for(var C in w){var q=s[C];if(r(s,C)&&typeof q!="function")return ee(E,O,b,C,H(q));if(!q)return new j("Invalid "+O+" `"+b+"` key `"+C+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(g[h],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var f=q(R,C,E,O,b+"."+C,n);if(f)return f}return null}return $(d)}function X(s){switch(typeof s){case"number":case"string":case"undefined":return!0;case"boolean":return!s;case"object":if(Array.isArray(s))return s.every(X);if(s===null||u(s))return!0;var d=y(s);if(d){var g=d.call(s),h;if(d!==s.entries){for(;!(h=g.next()).done;)if(!X(h.value))return!1}else for(;!(h=g.next()).done;){var E=h.value;if(E&&!X(E[1]))return!1}}else return!1;return!0;default:return!1}}function ae(s,d){return s==="symbol"?!0:d?d["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&d instanceof Symbol:!1}function W(s){var d=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":ae(d,s)?"symbol":d}function H(s){if(typeof s>"u"||s===null)return""+s;var d=W(s);if(d==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return d}function B(s){var d=H(s);switch(d){case"array":case"object":return"an "+d;case"boolean":case"date":case"regexp":return"a "+d;default:return d}}function ue(s){return!s.constructor||!s.constructor.name?T:s.constructor.name}return M.checkPropTypes=i,M.resetWarningCache=i.resetWarningCache,M.PropTypes=M,M},qe}var Ue,gt;function Jn(){if(gt)return Ue;gt=1;var e=et();function t(){}function n(){}return n.resetWarningCache=t,Ue=function(){function r(a,u,p,m,v,y){if(y!==e){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Ue}var xt;function Zn(){if(xt)return je.exports;if(xt=1,process.env.NODE_ENV!=="production"){var e=Pt(),t=!0;je.exports=Xn()(e.isElement,t)}else je.exports=Jn()();return je.exports}var Qn=Zn();const x=K.getDefaultExportFromCjs(Qn),bt={disabled:!1};var er=process.env.NODE_ENV!=="production"?x.oneOfType([x.number,x.shape({enter:x.number,exit:x.number,appear:x.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&x.oneOfType([x.string,x.shape({enter:x.string,exit:x.string,active:x.string}),x.shape({enter:x.string,enterDone:x.string,enterActive:x.string,exit:x.string,exitDone:x.string,exitActive:x.string})]);const At=c.createContext(null);var tr=function(t){return t.scrollTop},xe="unmounted",ce="exited",oe="entering",le="entered",Xe="exiting",te=(function(e){zn(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,u=a&&!a.isMounting?r.enter:r.appear,p;return o.appearStatus=null,r.in?u?(p=ce,o.appearStatus=oe):p=le:r.unmountOnExit||r.mountOnEnter?p=xe:p=ce,o.state={status:p},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===xe?{status:ce}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==oe&&a!==le&&(o=oe):(a===oe||a===le)&&(o=Xe)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,u;return o=a=u=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,u=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:u}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===oe){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this);a&&tr(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ce&&this.setState({status:xe})},n.performEnter=function(i){var o=this,a=this.props.enter,u=this.context?this.context.isMounting:i,p=this.props.nodeRef?[u]:[he.findDOMNode(this),u],m=p[0],v=p[1],y=this.getTimeouts(),T=u?y.appear:y.enter;if(!i&&!a||bt.disabled){this.safeSetState({status:le},function(){o.props.onEntered(m)});return}this.props.onEnter(m,v),this.safeSetState({status:oe},function(){o.props.onEntering(m,v),o.onTransitionEnd(T,function(){o.safeSetState({status:le},function(){o.props.onEntered(m,v)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:he.findDOMNode(this);if(!o||bt.disabled){this.safeSetState({status:ce},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Xe},function(){i.props.onExiting(u),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ce},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,o.nextCallback=null,i(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],m=p[0],v=p[1];this.props.addEndListener(m,v)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===xe)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=Yn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return c.createElement(At.Provider,{value:null},typeof a=="function"?a(i,u):c.cloneElement(c.Children.only(a),u))},t})(c.Component);te.contextType=At;te.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:x.shape({current:typeof Element>"u"?x.any:function(e,t,n,r,i,o){var a=e[t];return x.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:x.oneOfType([x.func.isRequired,x.element.isRequired]).isRequired,in:x.bool,mountOnEnter:x.bool,unmountOnExit:x.bool,appear:x.bool,enter:x.bool,exit:x.bool,timeout:function(t){var n=er;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:x.func,onEnter:x.func,onEntering:x.func,onEntered:x.func,onExit:x.func,onExiting:x.func,onExited:x.func}:{};function Ee(){}te.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ee,onEntering:Ee,onEntered:Ee,onExit:Ee,onExiting:Ee,onExited:Ee};te.UNMOUNTED=xe;te.EXITED=ce;te.ENTERING=oe;te.ENTERED=le;te.EXITING=Xe;function Rt(e,t){const n=fe(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function nr(e,t){const n=Rt(e,"transitionDuration"),r=Rt(e,"transitionDelay"),i=Ot(e,o=>{o.target===e&&(i(),t(o))},n+r)}function rr(e){e.offsetHeight}function Dt(e){return e&&"setState"in e?he.findDOMNode(e):e??null}const It=c.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:u,childRef:p,...m},v)=>{const y=c.useRef(null),T=Je(y,p),M=U=>{T(Dt(U))},D=U=>G=>{U&&y.current&&U(y.current,G)},j=c.useCallback(D(e),[e]),$=c.useCallback(D(t),[t]),F=c.useCallback(D(n),[n]),V=c.useCallback(D(r),[r]),L=c.useCallback(D(i),[i]),k=c.useCallback(D(o),[o]),l=c.useCallback(D(a),[a]);return A.jsxRuntimeExports.jsx(te,{ref:v,...m,onEnter:j,onEntered:F,onEntering:$,onExit:V,onExited:k,onExiting:L,addEndListener:l,nodeRef:y,children:typeof u=="function"?(U,G)=>u(U,{...G,ref:M}):c.cloneElement(u,{ref:M})})});It.displayName="TransitionWrapper";const or={[oe]:"show",[le]:"show"},Pe=z.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},u=c.useCallback((p,m)=>{rr(p),r?.(p,m)},[r]);return A.jsxRuntimeExports.jsx(It,{ref:o,addEndListener:nr,...a,onEnter:u,childRef:Te(t),children:(p,m)=>z.cloneElement(t,{...m,className:K.classNames("fade",e,t.props.className,or[p],n[p])})})});Pe.displayName="Fade";const ir=["xxl","xl","lg","md","sm","xs"],sr="xs",Ce=z.createContext({prefixes:{},breakpoints:ir,minBreakpoint:sr}),{Consumer:vr,Provider:Er}=Ce;function de(e,t){const{prefixes:n}=c.useContext(Ce);return e||n[t]||t}function ar(){const{breakpoints:e}=c.useContext(Ce);return e}function ur(){const{minBreakpoint:e}=c.useContext(Ce);return e}function Lt(){const{dir:e}=c.useContext(Ce);return e==="rtl"}const $t=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=de(t,"modal-body"),A.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));$t.displayName="ModalBody";const Ft=z.createContext({onHide(){}}),tt=z.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:u,...p},m)=>{e=de(e,"modal");const v=`${e}-dialog`,y=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return A.jsxRuntimeExports.jsx("div",{...p,ref:m,className:K.classNames(v,t,i&&`${e}-${i}`,r&&`${v}-centered`,u&&`${v}-scrollable`,o&&y),children:A.jsxRuntimeExports.jsx("div",{className:K.classNames(`${e}-content`,n),children:a})})});tt.displayName="ModalDialog";const Bt=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=de(t,"modal-footer"),A.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));Bt.displayName="ModalFooter";const cr={"aria-label":x.string,onClick:x.func,variant:x.oneOf(["white"])},nt=z.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>A.jsxRuntimeExports.jsx("button",{ref:i,type:"button",className:K.classNames("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));nt.displayName="CloseButton";nt.propTypes=cr;const Wt=z.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const u=c.useContext(Ft),p=_e(()=>{u?.onHide(),r?.()});return A.jsxRuntimeExports.jsxs("div",{ref:a,...o,children:[i,n&&A.jsxRuntimeExports.jsx(nt,{"aria-label":e,variant:t,onClick:p})]})});Wt.displayName="AbstractModalHeader";const qt=z.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=de(e,"modal-header"),A.jsxRuntimeExports.jsx(Wt,{ref:o,...i,className:K.classNames(t,e),closeLabel:n,closeButton:r})));qt.displayName="ModalHeader";const lr=(e=>z.forwardRef((t,n)=>A.jsxRuntimeExports.jsx("div",{...t,ref:n,className:K.classNames(t.className,e)}))),fr=lr("h4"),Ut=z.forwardRef(({className:e,bsPrefix:t,as:n=fr,...r},i)=>(t=de(t,"modal-title"),A.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));Ut.displayName="ModalTitle";function dr(e){return A.jsxRuntimeExports.jsx(Pe,{...e,timeout:null})}function pr(e){return A.jsxRuntimeExports.jsx(Pe,{...e,timeout:null})}const Yt=z.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=tt,"data-bs-theme":u,"aria-labelledby":p,"aria-describedby":m,"aria-label":v,show:y=!1,animation:T=!0,backdrop:M=!0,keyboard:D=!0,onEscapeKeyDown:j,onShow:$,onHide:F,container:V,autoFocus:L=!0,enforceFocus:k=!0,restoreFocus:l=!0,restoreFocusOptions:U,onEntered:G,onExit:Z,onExiting:se,onEnter:Q,onEntering:ee,onExited:ne,backdropClassName:re,manager:X,...ae},W)=>{const[H,B]=c.useState({}),[ue,s]=c.useState(!1),d=c.useRef(!1),g=c.useRef(!1),h=c.useRef(null),[E,O]=Qt(),b=Je(W,O),R=_e(F),S=Lt();e=de(e,"modal");const w=c.useMemo(()=>({onHide:R}),[R]);function C(){return X||Un({isRTL:S})}function q(_){if(!ye)return;const pe=C().getScrollbarWidth()>0,ot=_.scrollHeight>Re(_).documentElement.clientHeight;B({paddingRight:pe&&!ot?it():void 0,paddingLeft:!pe&&ot?it():void 0})}const f=_e(()=>{E&&q(E.dialog)});Ct(()=>{He(window,"resize",f),h.current==null||h.current()});const Y=()=>{d.current=!0},J=_=>{d.current&&E&&_.target===E.dialog&&(g.current=!0),d.current=!1},I=()=>{s(!0),h.current=Ot(E.dialog,()=>{s(!1)})},Oe=_=>{_.target===_.currentTarget&&I()},ge=_=>{if(M==="static"){Oe(_);return}if(g.current||_.target!==_.currentTarget){g.current=!1;return}F?.()},zt=_=>{D?j?.(_):(_.preventDefault(),M==="static"&&I())},Ht=(_,pe)=>{_&&q(_),Q?.(_,pe)},Vt=_=>{h.current==null||h.current(),Z?.(_)},Gt=(_,pe)=>{ee?.(_,pe),Tt(window,"resize",f)},Kt=_=>{_&&(_.style.display=""),ne?.(_),He(window,"resize",f)},Xt=c.useCallback(_=>A.jsxRuntimeExports.jsx("div",{..._,className:K.classNames(`${e}-backdrop`,re,!T&&"show")}),[T,re,e]),rt={...n,...H};rt.display="block";const Jt=_=>A.jsxRuntimeExports.jsx("div",{role:"dialog",..._,style:rt,className:K.classNames(t,e,ue&&`${e}-static`,!T&&"show"),onClick:M?ge:void 0,onMouseUp:J,"data-bs-theme":u,"aria-label":v,"aria-labelledby":p,"aria-describedby":m,children:A.jsxRuntimeExports.jsx(a,{...ae,onMouseDown:Y,className:r,contentClassName:i,children:o})});return A.jsxRuntimeExports.jsx(Ft.Provider,{value:w,children:A.jsxRuntimeExports.jsx($n,{show:y,ref:b,backdrop:M,container:V,keyboard:!0,autoFocus:L,enforceFocus:k,restoreFocus:l,restoreFocusOptions:U,onEscapeKeyDown:zt,onShow:$,onHide:F,onEnter:Ht,onEntering:Gt,onEntered:G,onExit:Vt,onExiting:se,onExited:Kt,manager:C(),transition:T?dr:void 0,backdropTransition:T?pr:void 0,renderBackdrop:Xt,renderDialog:Jt})})});Yt.displayName="Modal";const mr=Object.assign(Yt,{Body:$t,Header:qt,Title:Ut,Footer:Bt,Dialog:tt,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});exports.Fade=Pe;exports.Modal=mr;exports.PropTypes=x;exports.contains=Ve;exports.getChildRef=Te;exports.hasClass=Nt;exports.isEscKey=Mt;exports.listen=be;exports.ownerDocument=Re;exports.renderTransition=Ge;exports.safeFindDOMNode=Dt;exports.useBootstrapBreakpoints=ar;exports.useBootstrapMinBreakpoint=ur;exports.useBootstrapPrefix=de;exports.useEventCallback=ie;exports.useEventCallback$1=_e;exports.useIsRTL=Lt;exports.useMergedRefs=Ne;exports.useMergedRefs$1=Je;exports.useMounted=St;exports.useWaitForDOMRef=jt;exports.useWillUnmount=Ct;
|