PageSourceSearch

https://defector.com/_next/static/chunks/pages/_sites/[siteSlug]/donate-2a3ab23a9571a3a2.js

js defector.com collected 2026-09-24 08:31:13 UTC 6,047 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3502],{22179:e=>{e.exports={pageWrapper:"donate_pageWrapper__8O6eV",pageTitle:"donate_pageTitle__lBzQk",pageSubtitle:"donate_pageSubtitle__rdsYG",priceWrapper:"donate_priceWrapper__LX3sR",link:"donate_link__iqk2B",productDetails:"donate_productDetails__fmZ2o",productDetailsHeading:"donate_productDetailsHeading__O0Rv_",paymentBtn:"donate_paymentBtn__jtX5z",utilityBtn:"donate_utilityBtn__Oei2c",loadingWrapper:"donate_loadingWrapper__SQFSx",savedCard:"donate_savedCard__fcLb0",cardDetails:"donate_cardDetails__t9MD7",separator:"donate_separator__e_m0N",contentWrapper:"donate_contentWrapper__ZYcd2",subtitle:"donate_subtitle__M2xyw",icon:"donate_icon__IbiGx"}},34801:(e,t,a)=>{"use strict";function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return null;let t=e.toLowerCase(),a="en-US";return a="gbp"===t?"en-GB":"en-US"}a.d(t,{A:()=>n})},37475:e=>{e.exports={form:"DonateForm_form__DRFlT",donationWrapper:"DonateForm_donationWrapper__FU1Fc",donationBtn:"DonateForm_donationBtn__43qji",isActive:"DonateForm_isActive__jxXrw",inputWrapper:"DonateForm_inputWrapper__vm7cp",labelText:"DonateForm_labelText__tLBAC",input:"DonateForm_input__VPu5k",paymentBtn:"DonateForm_paymentBtn___wwrm",border:"DonateForm_border__Vu5NW",fieldset:"DonateForm_fieldset__c3B5
1a",legend:"DonateForm_legend__Wb1mV",logout:"DonateForm_logout__ENwhH",lgText:"DonateForm_lgText__vmfOi",smText:"DonateForm_smText__tM3Co"}},46222:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=function(e){return e.Default="default",e.Filled="filled",e}(n||{});let l=n},63064:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(37876),l=a(49995),r=a(43954),o=a(46222),i=a(79443),s=a.n(i);let d=e=>{let{children:t,className:a="",variant:i=o.A.Default}=e;return(0,n.jsx)("div",{className:(0,l.A)(a,{[s().wrapper]:i===o.A.Default,[s().wrapperFilled]:i===o.A.Filled}),children:(0,n.jsx)(r.A,{variant:"contentWidth",className:s().inner,children:t})})};var _=a(41704);let c=["a","b","br","em","div","h1","h2","h3","h4","h5","h6","i","li","ol","p","strong","ul"],p=e=>{let{content:t="",variant:a=o.A.Default}=e;return(0,n.jsx)(d,{variant:a,children:(0,n.jsx)(_.A,{tag:"div",html:t,allowedTags:c})})}},77667:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_sites/[siteSlug]/donate",function(){return a(87481)}])},79443:e=>{e.exports={wrapper:"HorizontalSheet_wrapper__QTCkw",inner:"HorizontalSheet_inner__OqUK8",wrapperFilled:"HorizontalSheet_wrapperFilled__CAv_L HorizontalSheet_wrapper__QTCkw"}},87481:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>v,default:()=>w});var n=a(37876),l=a(81249),r=a(49995),o=a(58504),i=a(34801),s=a(71004),d=a(70450),_=a(14232),c=a(4309),p=a(63037),u=a(1567),m=a(50774),h=a(37036),x=a(67685),g=a(37475),f=a.n(g);let D=e=>{let{defaultAmount:t,donationArray:a,label:l,product:g}=e,{publisherCurrency:D,publisherFeatureFlags:{streetAddressCollection:j=!1},shippingAddressProducts:N}=(0,p.Xe)(),[b,v]=(0,_.useState)(t),[w,F]=(0,_.useState)(null),{updateUserData:A,userData:T}=(0,c.u)(),{startDonationCheckout:C,isLoading:S}=(0,u.A)({onError:e=>F(e)}),{status:W,hydrated:y,productCart:B,productInterval:k,email:E}=T,L=W===h._.LoggedIn||W===h._.Paying||W===h._.PastDue;(0,_.useEffect)(()=>{y&&b&&g&&(!B||"donation"!==B.name)&&A({productCart:g})},[y,b,g,B,A]),(0,_.useEffect)(()=>{y&&(!k||k!==x.IX.OneTime)&&A({productInterval:x.IX.OneTime})},[y,k,A]);let O=(0,_.useCallback)(async e=>{e.preventDefault(),F(null);let t=(0,d.A)(j,N,null==g?void 0:g.id);await C({amount:b,email:E||void 0,successUrl:"".concat(window.location.origin,"/donate/payment/complete"),cancelUrl:"".concat(window.location.origin,"/donate"),collectAddress:t})},[b,E,null==g?void 0:g.id,N,C,j]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{children:[l,": ",(0,s.Nx)(D,b)]}),(0,n.jsxs)("form",{className:f().form,onSubmit:O,children:[(0,n.jsxs)("fieldset",{className:f().donationWrapper,children:[(0,n.jsx)("legend",{className:f().legend,children:"Select an Amount"}),a.map(e=>(0,n.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),v(e),F(null)},className:(0,r.A)(f().donationBtn,{[f().isActive]:b===e}),children:(0,n.jsx)("span",{children:(0,s.Nx)(D,e)})},e))]}),(0,n.jsxs)("fieldset",{className:f().fieldset,children:[(0,n.jsx)("legend",{className:f().border,children:"or give a custom amount"}),(0,n.jsx)("div",{className:f().inputWrapper,children:(0,n.jsxs)("label",{htmlFor:"customDonation",children:[(0,n.jsx)(o.Ay,{id:"customDonation",name:"custom donation",placeholder:"Custom amount",intlConfig:{locale:(0,i.A)(D),currency:D},defaultValue:0,decimalsLimit:2,decimalScale:2,onValueChange:e=>e?v(Number(e)):v(t),allowNegativeValue:!1,className:f().input}),(0,n.jsx)("span",{className:f().labelText,children:"Custom amount"})]})})]}),L?(0,n.jsxs)("fieldset",{className:f().fieldset,children:[(0,n.jsx)("legend",{className:f().legend,children:"Your Email"}),(0,n.jsx)("p",{className:f().lgText,children:T.email}),(0,n.jsx)("button",{type:"button",className:f().logout,onClick:()=>(0,m.CI)(),children:"Log out to use a different email address"})]}):null,w?(0,n.jsx)("p",{className:f().error,children:w}):null,(0,n.jsx)("button",{type:"submit",className:f().paymentBtn,disabled:S,children:(0,n.jsx)("span",{children:S?"Processing...":"Continue"})})]})]})};var j=a(63064),N=a(22179),b=a.n(N),v=!0;let w=e=>{let{globalData:t,label:a="Donate",defaultAmount:r=75,donationArray:o=[10,25,50,100],formLabel:i="Donation",product:s,isDonateRoute:d=!1,isTipJarRoute:_=!1}=e,{siteTitle:c,valueProposition:p}=t,{donatePageValueProp:u,tipJarPageValueProp:m}=p||{},h=d?u||"":_&&m||"";return(0,n.jsx)(l.A,{...t,title:"".concat(c,"  | ").concat(a),headerTheme:"simple",footerTheme:"simple",hideAds:!0,children:(0,n.jsxs)("div",{className:b().pageWrapper,children:[(0,n.jsx)("h1",{className:b().pageTitle,children:a}),h?(0,n.jsx)(j.A,{content:h}):null,(0,n.jsx)(D,{defaultAmount:r,donationArray:o,label:i,product:s})]})})}}},e=>{e.O(0,[1596,6071,8504,1249,2362,636,6593,8792],()=>e(e.s=77667)),_N_E=e.O()}]);

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.