PageSourceSearch

https://app.electables.com/_next/static/chunks/713-85c886177e24735b.js

js electables.com collected 2026-10-08 22:39:21 UTC 14,752 bytes, 1 lines download raw bytes

1"use strict";!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="c89d64a9-3998-4fa0-aaaa-d235e007afb2",e._sentryDebugIdIdentifier="sentry-dbid-c89d64a9-3998-4fa0-aaaa-d235e007afb2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[713],{30835:(e,a,r)=>{r.d(a,{k:()=>u});var l=r(26811),t=r(96456),s=r.n(t),n=r(46225),o=r(75834),i=r(69001),c=r.n(i),d=r(47627);let u=({href:e,children:a,className:r,activeClassName:t,activePaths:i,activeCss:u,activeChildren:m,...h})=>{let b=(0,n.useRouter)(),p=(0,o.useMemo)(()=>i?i.filter(d.Pe).some(e=>b.pathname.includes(e))||i.filter(d.Pe).some(e=>b.asPath.includes(e)):b.pathname===e||b.asPath===e,[i,b.pathname,b.asPath,e]);return(0,l.FD)(s(),{href:e,...h,className:c()("cursor-pointer",p?t:r),css:p?u:void 0,"aria-current":p?"page":void 0,children:[a,p?m:null]})}},46367:(e,a,r)=>{r.d(a,{K:()=>n});var l=r(26811),t=r(64626),s=r(79203);let n=({className:e,labelFontColor:a="black",userDonatedAmount:r,userRaisedAmount:n,userReferredCount:i,valueFontColor:c})=>(0,l.FD)("dl",{className:e,children:[(0,l.Y)(s.J,{className:"basis-1/3",headingText:"Referred",labelFontColor:a,valueFontColor:c,valueText:i,valueClassName:"text-base md:text-xl"}),(0,l.Y)(o,{}),(0,l.Y)(s.J,{className:"basis-1/3",headingText:"Raised",labelFontColor:a,valueFontColor:c,valueText:(0,l.Y)(t.v,{amount:n}),valueClassName:"text-base md:text-xl"}),(0,l.Y)(o,{}),(0,l.Y)(s.J,{className:"basis-1/3",headingText:"Donated",labelFontColor:a,valueFontColor:c,valueText:(0,l.Y)(t.v,{amount:r}),valueClassName:"text-base md:text-xl"})]});function o(){return(0,l.Y)("div",{className:"w-0.5 h-1/2 bg-neutral-500 md:mx-4"})}},56713:(e,a,r)=>{r.d(a,{l:()=>I});var l=r(26811),t=r(75834),s=r(54749),n=r(69001),o=r.n(n),i=r(10639),c=r(38128),d=r(96456),u=r.n(d),m=r(46367),h=r(19489),b=r(14294),p=r(24149),f=r(56592),x=r(28933),g=r(47627),v=r(35525),N=r(30835),Y=r(64955),C=r(75258),w=r(85043);let k="ml-2 mr-3 h-5 w-5 text-purple-800 group-hover:text-purple-900",y=({currentUser:e,open:a})=>{let{isCampaignBranded:r,primaryColor:n}=(0,t.useContext)(w.O),d=(0,t.useMemo)(()=>r?n:C.primary,[r,n]),N=(0,t.useMemo)(()=>e.campaigns.filter(g.Pe).map(a=>(0,l.Y)(D,{activeBackgroundColor:a.primaryColor100,activeBorderColor:a.primaryColor600,activePaths:[`/campaigns/${a.slug}`],href:h.bw.CampaignsUserCollectablesIndex({campaignSlug:a.slug,username:e.username}),label:a.name},a.id)),[e.campaigns,e.username]);return(0,l.Y)(c.e,{as:t.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,l.FD)(s.EN.Panel,{css:(0,i.AH)("top:",v.UH,"px;"),className:o()("absolute right-0 origin-top-right","lg:-mr-3 z-50","w-screen md:w-auto h-full md:h-auto shadow-lg bg-white"),children:[(0,l.Y)(m.K,{className:"flex items-center md:hidden h-full",userDonatedAmount:e.donatedAmount,userRaisedAmount:e.raisedAmount,userReferredCount:e.referredCount,valueFontColor:d}),(0,l.FD)("div",{className:"px-4 w-full border-t border-transparent",css:(0,i.AH)("background:linear-gradient(rgb(243 244 246),white 15%);"),children:[(0,l.Y)(F,{label:"Campaigns",children:N}),(0,l.FD)(F,{label:"Electables",children:[(0,l.Y)(D,{href:h.bw.Dashboard,label:"Dashboard",icon:(0,l.Y)(f.A,{className:k,"aria-hidden":"true"})}),(0,l.Y)(D,{href:h.bw.Marketplace,label:"Marketplace",icon:(0,l.Y)(x.A,{className:k,"aria-hidden":"true"})}),(0,l.Y)(D,{href:h.bw.Settings,label:"Settings",icon:(0,l.Y)(b.A,{className:k,"aria-hidden":"true"})})]})]}),(0,l.FD)("div",{className:"px-5 md:px-4 py-3 flex justify-between bg-neutral-100",children:[a?(0,l.Y)(l.FK,{children:(0,l.FD)("div",{className:"flex",children:[(0,l.Y)("span",{className:"inline-flex items-center justify-center h-7 w-7 rounded-full bg-neutral-800 mr-2",children:(0,l.Y)("span",{className:"text-sm font-medium leading-none text-white","aria-hidden":"true",children:e.firstName.slice(0,1)})}),(0,l.FD)("div",{children:[(0,l.Y)("p",{className:"text-xs",children:"Logged in as"}),(0,l.Y)("p",{className:"text-sm font-semibold text-neutral-1300 truncate",children:e.email})]})]})}):null,(0,l.FD)(u(),{href:h.bw.Logout,className:o()("text-neutral-1300","block w-20 ml-4 pt-4 text-xs font-semibold","flex justify-end"),children:[(0,l.Y)(p.A,{className:"mr-1 h-4 w-4 text-purple-800 group-hover:text-purple-900","aria-hidden":"true"}),"Log Out"]})]})]})})};function F({children:e,label:a}){return(0,l.FD)("div",{className:"py-2",children:[(0,l.Y)("h3",{className:"text-xs font-semibold text-black uppercase tracking-wider py-2 ml-4",children:a}),e]})}
1function D({activeBackgroundColor:e=C["purple-100"],activeBorderColor:a=C["purple-600"],activePaths:r,href:t,icon:s,label:n}){return(0,l.FD)(N.k,{href:t,activeClassName:o()("flex items-center py-2 text-black","border-l-8 rounded"),activeCss:(0,i.AH)("border-color:",a,";background-color:",e,";"),className:o()("flex py-2 border-l-8 text-black","border-transparent hover:border-neutral-600 hover:rounded"),css:(0,i.AH)("&:hover,focus{background-color:",C["neutral-100"],";}"),activePaths:r,activeChildren:(0,l.Y)(Y.A,{className:"text-base ml-auto mr-2",fontSize:"small",css:(0,i.AH)("color:",a,";")}),children:[s,(0,l.Y)("div",{className:o()("truncate",{"ml-2":!s}),children:n})]})}let A=({currentUser:e,className:a})=>(0,l.Y)("div",{className:a,children:(0,l.Y)(s.EN,{as:"menu",className:"inline-block text-left",children:({open:a})=>(0,l.FD)(l.FK,{children:[(0,l.Y)(M,{open:a,firstName:e.firstName}),(0,l.Y)(y,{currentUser:e,open:a})]})})});function M({firstName:e,open:a}){return(0,l.FD)(s.EN.Button,{className:o()("max-w-xs flex items-center text-sm mr-3 lg:mr-0",{"bg-white rounded-full":!1===a}),children:[(0,l.Y)("span",{className:"sr-only",children:"Open user menu"}),(0,l.Y)("span",{className:o()("inline-flex items-center justify-center h-10 w-10 rounded-full bg-neutral-800"),children:(0,l.Y)("span",{className:"text-sm font-heading font-medium leading-none text-white","aria-hidden":"true",children:e.slice(0,1)})})]})}var H=r(97558),P=r(53063),_=r(15626);let U=({myCollectablesHref:e,userCollectablesCount:a})=>{let{isCampaignBranded:r,secondaryColor:n,primaryColor700:c,primaryColor800:d}=(0,t.useContext)(w.O),u=(0,t.useMemo)(()=>r?n:C["purple-300"],[r,n]),m=(0,t.useMemo)(()=>r?n:C["purple-500"],[r,n]),b=(0,t.useMemo)(()=>r?c:C["purple-700"],[r,c]),p=(0,t.useMemo)(()=>r?d:C["purple-600"],[r,d]),f=(0,t.useMemo)(()=>r?d:C["purple-900"],[r,d]);return(0,l.Y)(s.EN.Panel,{className:"xl:hidden absolute left-0 w-screen",css:(0,i.AH)("background-color:",f,";top:",v.UH,"px;"),children:(0,l.FD)("div",{className:"flex flex-col p-4",children:[(0,l.Y)(T,{activeBackgroundColor:b,activeBorderColor:m,activeCheckColor:u,activePaths:[h.bw.Dashboard],href:h.bw.Dashboard,label:"Dashboard"}),(0,l.Y)(T,{activeBackgroundColor:b,activeBorderColor:m,activeCheckColor:u,activePaths:[e],href:e,label:(0,l.FD)(l.FK,{children:["My Collectables",(0,l.Y)("span",{className:o()("z-50","text-white text-xs font-medium","px-1.5 py-0.5 rounded ml-2"),css:(0,i.AH)("background-color:",p,";"),children:a})]})}),(0,l.Y)(T,{activeBackgroundColor:b,activeBorderColor:m,activeCheckColor:u,activePaths:[h.bw.Marketplace],href:h.bw.Marketplace,label:"Marketplace"})]})})};function T({activeBackgroundColor:e,activeBorderColor:a,activeCheckColor:r,activePaths:t,href:s,icon:n,label:c}){return(0,l.FD)(N.k,{href:s,activeClassName:o()("flex items-center py-2 text-white","border-l-8 rounded"),activeCss:(0,i.AH)("border-color:",a,";background-color:",e,";"),className:o()("flex py-2 border-l-8 text-white","border-transparent hover:border-neutral-100 hover:rounded"),css:(0,i.AH)("&:hover,focus{background-color:",C["neutral-600"],";}"),activePaths:t,activeChildren:(0,l.Y)(Y.A,{className:"text-xl ml-auto mr-2",css:(0,i.AH)("color:",r,";")}),children:[n,(0,l.Y)("div",{className:o()("font-heading font-bold tracking-widest uppercase truncate",{"ml-3":!n}),children:c})]})}let E=(0,t.createContext)({isLoggedIn:!1,currentUser:null});var O=r(58245),B=r.n(O);let I=({currentUser:e,campaignSlug:a})=>{let{isCampaignBranded:r,primaryColor:n}=(0,t.useContext)(w.O),c=(0,t.useMemo)(()=>{if(e)if(a)return h.bw.CampaignsUserShow({campaignSlug:a,username:e.username});else return h.bw.UsersShow({username:e.username})},[a,e]),d=!!e,u=(0,t.useMemo)(()=>r?n:C.primary,[r,n]);return(0,l.Y)(E.Provider,{value:{currentUser:e,isLoggedIn:d},children:(0,l.Y)(s.EN,{as:"nav","data-testid":"nav-header",className:o()("mb-3","shadow-lg","flex justify-center w-full","sticky top-0 md:static md:top-auto z-30"),css:(0,i.AH)("height:",v.UH,"px;min-height:",v.UH,"px;"),children:({open:a})=>(0,l.FD)(j,{className:"flex flex-1 relative h-full",children:[(0,l.Y)(K,{children:(0,l.Y)(W,{className:o()("w-2/5 md:w-10 absolute z-40 h-full",{"-left-3":!d,"-right-3":d})})}),(0,l.Y)(R,{}),(0,l.Y)(j,{className:"absolute inset-0 flex justify-center h-full",children:(0,l.FD)(z,{className:"flex flex-1 max-w-screen-2xl lg:pr-3 xl:px-6",children:[(0,l.Y)(S,{children:d&&e?(0,l.FD)(l.FK,{children:[(0,l.Y)(H.IW,{userCollectablesCount:e.collectablesCount,myCollectablesHref:c,className:o()("hidden xl:flex items-center flex-1 z-10 space-x-5")}),(0,l.Y)(q,{className:"mr-auto flex items-center xl:rounded-lg xl:hidden",isOpen:a})]}):(0,l.Y)(N.k,{href:h.bw.Login,className:o()("text-white hover:underline uppercase mr-3"),children:"Log In"})}),(0,l.FD)(L,{children:[(0,l.Y)(J,{className:o()("flex items-center justify-center","lg:h-auto",{"mx-auto pl-4 pr-2 lg:pl-0 lg:pr-0":d,"mr-auto lg:ml-3 pl-1 pr-4":!d})}),d&&e?(0,l.FD)(l.FK,{children:[(0,l.Y)(m.K,{className:"hidden lg:flex items-center h-full",userDonatedAmount:e.donatedAmount,userRaisedAmount:e.raisedAmount,userReferredCount:e.referredCount,valueFontColor:u}),(0,l.Y)(A,{className:"lg:ml-auto flex items-center",currentUser:e})]}):null]})]})}),d&&e&&c?(0,l.Y)(U,{userCollectablesCount:e.collectablesCount,myCollectablesHref:c}):null]})})})};function j({className:e,children:a}){return(0,l.Y)("div",{className:e,children:a})}function z({className:e,children:a}){return(0,l.Y)("div",{className:e,children:a})}function K({children:e}){let{isLoggedIn:a}=(0,t.useContext)(E),{isCampaignBranded:r,primaryColor:s}=(0,t.useContext)(w.O),n=(0,t.useMemo)(()=>r?s:C["purple-800"],[r,s]);return(0,l.Y)("div",{className:o()("flex h-full relative",{"order-2 basis-1/2":!a,"order-1 basis-1/3 md:basis-1/2 lg:basis-2/5 xl:basis-1/2":a}),css:(0,i.AH)("background-color:",n,";"),children:e})}function R(){let{isLoggedIn:e}=(0,t.useContext)(E);return(0,l.Y)("div",{className:o()("bg-white flex h-full",{"order-1 basis-1/2":!e,"order-2 basis-2/3 md:basis-1/2 lg:basis-3/5 xl:basis-1/2":e})})}function S({children:e}){let{isLoggedIn:a}=(0,t.useContext)(E);return(0,l.Y)("div",{className:o()("flex relative",{"order-2 basis-1/2 md:basis-3/4 justify-end items-center":!a,"order-1 basis-1/3 md:basis-1/2 lg:basis-2/5 xl:basis-1/2":a}),children:e})}function L({children:e}){let{isLoggedIn:a}=(0,t.useContext)(E);return(0,l.Y)("div",{className:o()("flex items-center relative",{"order-1 basis-1/2 md:basis-1/4":!a,"order-2 basis-2/3 md:basis-1/2 lg:basis-3/5 xl:basis-1/2":a}),children:e})}function J({className:e}){let{isCampaignBranded:a,logoImageUrl:r,name:s}=(0,t.useContext)(w.O),n=(0,t.useMemo)(()=>a?r:"https://res.cloudinary.com/numero/image/upload/c_limit,f_auto,h_160,q_auto,w_375/v1650053986/static/Electables_Word_Mark-dk_purple-gradient_njjfff.png",[r,a]),o=(0,t.useMemo)(()=>a?s:"Electables",[a,s]);return(0,l.Y)("div",{className:e,children:(0,l.Y)(B(),{"data-testid":a?"nav-header-campaign-logo":"nav-header-electables-logo",src:n,alt:o,height:.8*v.UH,width:v.Nz,priority:!0,className:"h-auto",css:(0,i.AH)("max-width:",v.Nz,"px;max-height:",.8*v.UH,"px;")})})}function W({className:e}){let{isCampaignBranded:a,primaryColor:r}=(0,t.useContext)(w.O),s=(0,t.useMemo)(()=>a?r:C["purple-800"],[a,r]);return(0,l.Y)("div",{className:e,css:(0,i.AH)("background-color:",s,";transform:skewX(-16deg);")})}function q({isOpen:e,className:a}){let{isCampaignBranded:r,primaryColor600:n}=(0,t.useContext)(w.O),o=(0,t.useMemo)(()=>r?n:C["purple-600"],[r,n]),c=(0,t.useMemo)(()=>r?n:C["purple-600"],[r,n]);return(0,l.Y)("div",{className:a,css:(0,i.AH)("background-color:",e?c:o,";color:white;"),children:(0,l.FD)(s.EN.Button,{className:"p-2",children:[(0,l.Y)("span",{className:"sr-only",children:"Open main menu"}),e?(0,l.Y)(P.A,{className:"block h-6 w-10","aria-hidden":"true"}):(0,l.Y)(_.A,{className:"block h-6 w-10","aria-hidden":"true"})]})})}},79203:(e,a,r)=>{r.d(a,{J:()=>o});var l=r(26811),t=r(10639),s=r(69001),n=r.n(s);function o({className:e,headingText:a,labelFontColor:r="black",valueText:s,valueFontColor:i,valueClassName:c}){return(0,l.FD)("div",{className:e,children:[(0,l.Y)("dt",{className:"text-xs font-bold font-heading uppercase text-center tracking-widest",css:(0,t.AH)("color:",r,";"),children:a}),(0,l.Y)("dd",{className:n()("font-bold font-heading text-center",c),css:(0,t.AH)("color:",i,";"),children:s})]})}},97558:(e,a,r)=>{r.d(a,{GB:()=>b,IW:()=>m,i8:()=>p});var l=r(26811),t=r(10639),s=r(69001),n=r.n(s),o=r(75834),i=r(30835),c=r(19489),d=r(85043),u=r(75258);function m({className:e,userCollectablesCount:a,myCollectablesHref:r}){let{isCampaignBranded:s,secondaryColor:i,primaryColor800:h}=(0,o.useContext)(d.O),b=(0,o.useMemo)(()=>s?i:u["purple-400"],[s,i]),p=(0,o.useMemo)(()=>s?h:u["purple-900"],[s,h]);return(0,l.FD)("nav",{className:e,"aria-label":"Navigation Tabs",children:[s?null:(0,l.Y)(f,{href:c.bw.Dashboard,activeTabUnderlineColor:b,activePaths:[c.bw.Dashboard],children:"Dashboard"}),r?(0,l.FD)(f,{href:r,activeTabUnderlineColor:b,activePaths:[r],children:["My Collectables",(0,l.Y)("span",{className:n()("z-10","text-white text-xs font-medium","px-1.5 py-0.5 rounded ml-2"),css:(0,t.AH)("background-color:",p,";"),children:a})]}
1):null,s?null:(0,l.Y)(f,{href:c.bw.Marketplace,activeTabUnderlineColor:b,activePaths:[c.bw.Marketplace],children:"Marketplace"})]})}let h=n()("font-heading font-semibold tracking-widest uppercase","h-full whitespace-nowrap flex items-center","border-b-4","px-1","cursor-pointer"),b=n()(h),p=n()(h,"border-transparent");function f({href:e,activePaths:a,activeTabUnderlineColor:r,children:s}){return(0,l.Y)(i.k,{href:e,activePaths:a,activeClassName:n()(b,"text-white"),activeCss:(0,t.AH)("border-color:",r,";"),css:(0,t.AH)("transition:0.2s border-color ease-in;&:hover,&:focus,&:active{border-color:",r,";}"),className:n()(p,"text-white"),children:s})}}}]);

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.