PageSourceSearch

https://images-prod.forumm.to/3050/_next/static/chunks/pages/event/[eventId]/donate-1d18c12870b08181.js

js forumm.to collected 2026-10-06 09:24:34 UTC 9,362 bytes, 3 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[677],{52016:function(t,e,n){"use strict";function s(t){return[].concat(t)}function i(t){return t.startsWith(":")}function o(t){return u(t)&&("*"===t||t.length>1&&":>~.+*".includes(t.slice(0,1))||a(t))}function r(t,e){return(u(e)||"number"==typeof e)&&"--"!==t&&!i(t)&&!l(t)}function l(t){return t.startsWith("@media")}function u(t){return t+""===t}function a(t){return u(t)&&(t.startsWith("&")||i(t))}function c(t,e=""){return t.filter(Boolean).join(e)}function d(t,e){let n=0;if(0===e.length)return n.toString();for(let s=0;s<e.length;s++){let i=e.charCodeAt(s);n=(n<<5)-n+i,n&=n}return`${t??"cl"}_${n.toString(36)}`}n.d(e,{S:function(){return y},cx:function(){return function t(...e){let n=e.reduce((e,n)=>(n instanceof Set?e.push(...n):"string"==typeof n?e.push(n):Array.isArray(n)?e.push(t(...n)):"object"==typeof n&&Object.entries(n).forEach(([t,n])=>{n&&e.push(t)}),e),[]);return c(n," ").trim()}}});var h=class t{constructor(t,e,n,s){this.sheet=t,this.property=e,this.value=n,this.selector=s,this.property=e,this.value=n,this.joined=`${e}:${n}`;let i=this.selector.preconditions.concat(this.selector.postconditions);this.hash=this.selector.hasConditions?this.selector.scopeClassName:d(this.sheet.name,this.joined),this.key=c([this.joined,i,this.hash])}toString(){let e=p(this.selector.preconditions,{right:this.hash});return`${e=p(this.selector.postconditions,{left:e})} {${t.genRule(this.property,this.value)}}`}static genRule(t,e){let n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return`${n}:${"content"===t?`"${e}"`:e};`}};function p(t,{left:e="",right:n=""}={}){let s=t.reduce((t,e)=>i(e)?t+e:a(e)?t+e.slice(1):c([t,e]," "),e);return c([s,n?`.${n}`:""]," ")}var f=class t{constructor(t,e=null,{preconditions:n,postconditions:i}={}){this.sheet=t,this.preconditions=[],this.scopeClassName=null,this.scopeName=null,this.postconditions=[],this.preconditions=n?s(n):[],this.postconditions=i?s(i):[],this.setScope(e)}setScope(t){return t&&(this.scopeClassName||(this.scopeName=t,this.scopeClassName=d(this.sheet.name,t+this.sheet.count))),this}get hasConditions(){return this.preconditions.length>0||this.postconditions.length>0}addScope(e){return new t(this.sheet,e,{preconditions:this.preconditions,postconditions:this.postconditions})}addPrecondition(e){return new t(this.sheet,this.scopeClassName,{postconditions:this.postconditions,preconditions:this.preconditions.concat(e)})}addPostcondition(e){return new t(this.sheet,this.scopeClassName,{preconditions:this.preconditions,postconditions:this.postconditions.concat(e)})}createRule(t,e){return new h(this.sheet,t,e,this)}},v=class{constructor(t,e){this.name=t,this.rootNode=e,this.storedStyles={},this.storedClasses={},this.style="",this.count=0,this.id=`flairup-${t}`,this.styleTag=this.createStyleTag()}getStyle(){return this.style}append(t){var e;this.style=(e=this.style)?`${e}
2${t}`:t}apply(){this.count++,this.styleTag&&(this.styleTag.innerHTML=this.style)}isApplied(){return!!this.styleTag}createStyleTag(){if("undefined"==typeof document||this.isApplied()||null===this.rootNode)return this.styleTag;let t=document.createElement("style");return t.type="text/css",t.id=this.id,(this.rootNode??document.head).appendChild(t),t}addRule(t){let e=this.storedClasses[t.key];return u(e)?e:(this.storedClasses[t.key]=t.hash,this.storedStyles[t.hash]=[t.property,t.value],this.append(t.toString()),t.hash)}};function m(t,e){for(let n in t)e(n.trim(),t[n])}function y(t,e){let n=new v(t,e);return{create:function(t){let e={};return(function t(e,n,s){let i=[];return m(n,(r,l)=>{if(o(r))return t(e,l,s.addPrecondition(r)).forEach(t=>i.push(t));i.push([r,n[r],s.addScope(r)])}),i})(n,t,new f(n)).forEach(([t,i,u])=>{(function t(e,n,i){let u=new Set;return m(n,(n,a)=>{let c=[];if(o(n))c=t(e,a,i.addPostcondition(n));else if("."===n)c=s(a);else if(l(n))c=function(e,n,s,i){e.append(s+" {");let o=t(e,n,i);return e.append("}"),o}(e,a,n,i);else if("--"===n)c=function(e,n,s){let i=new Set,o=[];if(m(n,(n,l)=>{if(r(n,l)){o.push(h.genRule(n,l));return}let u=t(e,l??{},s);g(u,i)}),!s.scopeClassName)return i;if(o.length){let l=o.join(" ");e.append(`${p(s.preconditions,{right:s.scopeClassName})} {${l}}`)}return i.add(s.scopeClassName),i}(e,a,i);else if(r(n,a)){let d=i.createRule(n,a);e.addRule(d),u.add(d.hash)}return g(c,u)}),u})(n,i,u).forEach(n=>{e[t]=e[t]??new Set,e[t].add(n)})}),n.apply(),e},getStyle:n.getStyle.bind(n),isApplied:n.isApplied.bind(n)}}function g(t,e){return t.forEach(t=>e.add(t)),e}},18160:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/event/[eventId]/donate",function(){return n(45044)}])},25513:function(t,e,n){"use strict";var s=n(85893),i=n(86893),o=n(51773);let r=t=>{let{className:e,show:n}=t;return(0,s.jsx)(o.default,{className:null!=e?e:"sticky flex-1 bottom-0 text-white p-8 flex space-x-4 w-full justify-end items-end z-30 pointer-events-none translate-x-2",children:(0,s.jsx)(o.default,{show:n,className:"bg-white w-15 h-15 rounded-full flex items-center justify-center cursor-pointer pointer-events-auto hover:bg-gray-200 transform border border-forumm-menu-border",onClick(){document.dispatchEvent(new CustomEvent("toggle-chatbox"))},children:(0,s.jsx)(i.EQ9,{className:"text-forumm-blue w-8 h-8 "})})})};e.Z=r},28093:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var s=n(85893),i=n(12451);function o(t){let{children:e,className:n="",onClick:o}=t;return(0,s.jsx)(i.E.div,{initial:{x:-10,opacity:0}
2,animate:{x:0,opacity:1},exit:{x:300,opacity:0},transition:{type:"spring",stiffness:260,damping:20},className:"flex-1 overflow-y-scroll outline-red-500 scrollbar-hide relative flex flex-col ".concat(n),onClick:()=>null==o?void 0:o(),children:e})}},87755:function(t,e,n){"use strict";n.d(e,{p:function(){return i}});var s=n(66703);let i=(0,s.B)("\n  query getEventById($input: GetEventByIdInput!) {\n    getEventById(input: $input) {\n      ...EventFull\n    }\n  }\n")},57752:function(t,e,n){"use strict";n.d(e,{MJ:function(){return N},_E:function(){return C},ZP:function(){return E}});var s=n(85893),i=n(66252),o=n(6812),r=n(62293),l=n(38999),u=n(87755),a=n(5779),c=n(65820),d=n(11163),h=n(67294),p=n(95996),f=n(39099),v=n(51773),m=n(66703);let y=(0,m.B)("\n  query getBreakoutUserCount($input: GetEventByIdInput!) {\n    getEventById(input: $input) {\n      eventId\n      breakoutRooms {\n        title\n        channelName\n        totalUsers\n        maxAttendees\n      }\n    }\n  }\n");var g=n(65676),x=n(24499);let w=t=>{var e,n,m;let{children:w,requiresAuth:E=!0,showHeader:N=!0}=t,{refreshTheme:C}=(0,a.Fg)(),[j,b]=(0,h.useState)(),{query:I,push:S,...$}=(0,d.useRouter)(),[k]=(0,g.ZP)(),_="true"===I.preview,B=(0,i.x)(),A=null==j?void 0:j.getEventById,{profile:R}=(0,x.aC)(),{data:P,loading:T,startPolling:Z,stopPolling:q}=(0,o.a)(y,{variables:{input:{eventId:I.eventId}},skip:!R,fetchPolicy:"network-only"}),U=null!==(m=null==window?void 0:null===(e=window.location)||void 0===e?void 0:e.pathname)&&void 0!==m?m:"",z=["/agenda","/stages","breakout-rooms","/donate"].some(t=>U.endsWith(t))||U.includes("recording")?"ml-0":"ml-16 md:ml-24";return(0,h.useEffect)(()=>{var t;let e=null==P?void 0:P.getEventById.breakoutRooms;if(!e||(null==e?void 0:e.length)<1)return;let n=null===(t=null==j?void 0:j.getEventById.breakoutRooms)||void 0===t?void 0:t.map(t=>{let n=null==e?void 0:e.find(e=>e.channelName===t.channelName);return n?{...t,totalUsers:null==n?void 0:n.totalUsers}:t});b(j?{...j,getEventById:{...j.getEventById,breakoutRooms:n}}:void 0)},[P]),(0,h.useEffect)(()=>{async function t(){let{data:t,errors:e,error:n}=await B.query({query:u.p,variables:{input:{eventId:I.eventId}}});(n||e)&&!t&&S("/dashboard"),b(t)}!I.eventId&&(null==window?void 0:window.location.pathname.length)<32&&S("/dashboard"),I.eventId&&!j&&t()},[B,j,I.eventId]),(0,h.useEffect)(()=>{A&&C(A)},[A,C]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(f.A.Provider,{value:{event:A,refreshBreakoutRooms:{startPolling:Z,stopPolling:q}},children:(0,s.jsx)(p.ZP,{className:"h-screen",wrapperClasses:"flex flex-col flex-1",title:null==A?void 0:null===(n=A.event)||void 0===n?void 0:n.title,showFooter:!1,requireAuth:E,showHeader:N,children:(0,s.jsx)(c.M,{mode:"wait",children:(0,s.jsxs)(v.default,{className:"flex flex-1 ".concat(z),children:[k,A?w:(0,s.jsx)(v.default,{className:"flex flex-1 justify-center items-center",children:(0,s.jsx)(l.Z,{size:"medium"})}),!_&&(0,s.jsx)(r.Z,{defaultChatId:null==A?void 0:A.eventId,defaultChatName:"Event Chat"})]})})})})})};var E=w;let N=t=>{let{children:e}=t;return(0,s.jsx)(w,{requiresAuth:!1,children:e})},C=t=>{let{children:e}=t;return(0,s.jsx)(w,{requiresAuth:!1,showHeader:!1,children:e})}},45044:function(t,e,n){"use strict";n.r(e);var s=n(85893),i=n(25513),o=n(28093),r=n(57752),l=n(24499),u=n(39099),a=n(39615);let c=()=>{var t,e;let{event:n}=(0,u.z)(),{profile:r}=(0,l.aC)();return(0,s.jsxs)(o.Z,{className:"-mt-[80px] pt-[80px] h-[calc(100vh_+_160px)]",children:[(0,s.jsx)(a.default,{eventDonationUrl:null!==(e=null==n?void 0:null===(t=n.event)||void 0===t?void 0:t.donationUrl)&&void 0!==e?e:""}),(0,s.jsx)(i.Z,{show:!!r})]})};c.Layout=r.MJ,e.default=c}},function(t){t.O(0,[4617,3777,8307,1458,9198,9041,6893,5121,3913,2464,2293,170,3130,7635,9774,2888,179],function(){return t(t.s=18160)}),_N_E=t.O()}]);
3//# sourceMappingURL=donate-1d18c12870b08181.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.