PageSourceSearch

https://static-prod.mightycause.com/mc-client/chunk-R4S5ZEZD.js

js mightycause.com collected 2026-09-24 07:14:34 UTC 6,082 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="02de3e52-5841-5033-a1e4-add186cce2b0")}catch(e){}}();
3import{c as l}from"./chunk-ETZRMDHS.js";import{a as y}from"./chunk-XZFXRJRY.js";import{d as g}from"./chunk-AAFBOZHS.js";import{d,e as w,h as $,l as T}from"./chunk-6UNLROVI.js";import{f as k}from"./chunk-XIKGSSI2.js";import{b as f,f as a}from"./chunk-WAPZ5LEW.js";import{$ as u,M as _,R as p,la as s,m,qa as r,ta as v,ua as h,x as c}from"./chunk-BZJI6Z2X.js";var H=[{viewValue:"Random Donation",value:"GoldenTicket::Random"},{viewValue:"Most Dollars",value:"GoldenTicket::MostDollars"},{viewValue:"Most Donors",value:"GoldenTicket::MostDonors"},{viewValue:"Most New Recurring Gifts",value:"GoldenTicket::MostRecurringGifts"},{viewValue:"By Sequence",value:"GoldenTicket::ByIndex"},{viewValue:"Manual",value:"GoldenTicket::Manual"}],P=(()=>{class i{http=r(a);firestore=r(w);appService=r(k);envInjector=r(v);centsToCurrencyPipe;numberToTextMap={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine"};constructor(){this.centsToCurrencyPipe=new y}getGoldenTickets(e,t){return this.http.get(`/api/v4/giving_events/${e}/golden_tickets.json`,{params:t})}getGoldenTicket(e,t){return this.http.get(`/api/v4/giving_events/${e}/golden_tickets/${t}.json`)}getGoldenTicketsAdmin(e,t){return this.http.get(`/api/v4/giving_events/${e}/golden_tickets/admin_index.json`,{params:t})}createGoldenTicket(e,t){return this.http.post(`/api/v4/giving_events/${e}/golden_tickets.json`,{golden_ticket:t})}updateGoldenTicket(e,t,o){return this.http.patch(`/api/v4/giving_events/${e}/golden_tickets/${t}.json`,{golden_ticket:o})}recomputeGoldenTicket(e,t){return this.http.post(`/api/v4/giving_events/${e}/golden_tickets/${t}/recompute.json`,{})}triggerWebhook(e,t){return this.http.post(`/api/v4/giving_events/${e}/golden_tickets/${t}/trigger_webhook.json`,{})}deleteGoldenTicket(e,t){return this.http.delete(`/api/v4/giving_events/${e}/golden_tickets/${t}.json`)}downloadGoldenTicketAdminReport(e,t){let o=new f({fromObject:t}),n=encodeURI(`/api/v4/giving_events/${e}/golden_tickets/admin_index.xlsx?${o.toString()}`);window.open(n,"_blank")}getSettings(e){return this.http.get(`/api/v4/giving_events/${e}/golden_tickets/settings.json`)}updateSettings(e,t){return this.http.post(`/api/v4/giving_events/${e}/golden_tickets/settings.json`,t)}watchGivingEventGoldenTicketsRevision(e){return this.appService.permissions["disable.firestore"]?m:h(this.envInjector,()=>$(T(this.firestore,`giving_events/${e}`)).pipe(c(t=>this.serializeSnapshotValue(t?.golden_tickets_updated_at)),p(),u(1),c(()=>{}),_(750)))}getTooltipText(e){let t=g.fromJSDate(new Date(e.start_at)).setZone(`UTC${e.start_at_utc_offset}`,{keepLocalTime:!0}),o=g.fromJSDate(new Date(e.end_at)).setZone(`UTC${e.end_at_utc_offset}`,{keepLocalTime:!0}),n=`This ${this.centsToCurrencyPipe.transform(e.prize_in_cents,"$",0)} prize`;switch(e.type_label){case"manual":{n+=" is awarded based on the prize description and/or event guidelines from donations made";break}case"dollar":{n+=" is awarded to the cause raising the most money from donations made";break}case"donor":{n+=" is awarded to the cause with the most unique donors from donations made";break}case"random":{n+=" is awarded randomly from donations made";break}case"recurring_gift":{n+=" is awarded to the cause with the most newly established recurring gifts from donations made";break}default:n+=` is awarded based on the ${e.donation_index_or_time} donation made`}return n+=` between ${t.toFormat("HH:mm a")} on ${t.toFormat("MMM")+" "+l(t.day)} and ${o.toFormat("HH:mm a")} on ${o.toFormat("MMM")+" "+l(o.day)}.`,e.leaderboard_id&&(n+=` Winning causes are selected from the ${e.leaderboard_title} group.`),e.giving_event_win_limit>0&&e.category_win_limit>0?n+=` Each cause may win only ${this.getNumberText(e.giving_event_win_limit)} ${e.giving_event_win_limit>1?"prizes":"prize"}
4        during this event and only ${this.getNumberText(e.category_win_limit)}
4 ${e.category} ${e.category_win_limit>1?"prizes":"prize"}.`:e.giving_event_win_limit===0&&e.category_win_limit>0?n+=` Each cause may win only ${this.getNumberText(e.category_win_limit)} ${e.category} ${e.category_win_limit>1?"prizes":"prize"}.`:e.giving_event_win_limit>0&&e.category_win_limit===0&&(n+=` Each cause may win only ${this.getNumberText(e.giving_event_win_limit)} ${e.giving_event_win_limit>1?"prizes":"prize"}.`),e.sponsor_name&&(n+=` This award is sponsored by ${e.sponsor_name}.`),n}serializeSnapshotValue(e){return e?typeof e=="string"?e:this.parseFirestoreTimestamp(e)?.toISOString()??null:null}parseFirestoreTimestamp(e){if(!e)return null;if(e instanceof d)return e.toDate();if(e instanceof Date)return e;if(typeof e=="object"&&e!==null&&"seconds"in e){let t=e.seconds,o=e.nanoseconds||0;return new d(t,o).toDate()}return null}getNumberText(e){let t="";return this.numberToTextMap[e]?t=this.numberToTextMap[e]:t=`${e}`,t}static \u0275fac=function(t){return new(t||i)};static \u0275prov=s({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var U=(()=>{class i{http=r(a);getCategories(e,t){return this.http.get(`/api/v4/giving_events/${e}/golden_ticket_categories.json`,{params:t})}getCategory(e,t){return this.http.get(`/api/v4/giving_events/${e}/golden_ticket_categories/${t}.json`)}createCategory(e,t){return this.http.post(`/api/v4/giving_events/${e}/golden_ticket_categories.json`,{golden_ticket_category:t})}updateCategory(e,t,o){return this.http.patch(`/api/v4/giving_events/${e}/golden_ticket_categories/${t}.json`,{golden_ticket_category:o})}deleteCategory(e,t){return this.http.delete(`/api/v4/giving_events/${e}/golden_ticket_categories/${t}.json`)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=s({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{H as a,P as b,U as c};
5
6//# debugId=02de3e52-5841-5033-a1e4-add186cce2b0

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.