1try{let 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]="3ae2ed67-8064-4bee-9ac1-8560490aef61",e._sentryDebugIdIdentifier="sentry-dbid-3ae2ed67-8064-4bee-9ac1-8560490aef61")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2580],{82580:(e,n,t)=>{t.r(n),t.d(n,{normalise_payment_forms:()=>a});var o=t(27122),r=t(9023);let a=(e,n)=>{try{var t,a,i,s;let c=!!(null==(t=e.payment_forms.form_reference)?void 0:t.length);if(!c){let n="Payment forms block: form_reference not found, falling back to legacy form_types path";console.warn(n),o.Cp(Error(n),{extra:{blockId:null==(i=e.payment_forms._metadata)?void 0:i.uid,blockType:"PaymentFormsBlock"}})}let l=c?e.payment_forms.form_reference[0]:e.payment_forms,d=Object.values(l.form_types[0])[0],m=Object.fromEntries(Object.entries(d).map(e=>{let[t,o]=e;return t.includes("sponsorable_puppy")&&o?[t,r.Ay.convertPuppy(o,n)]:t.includes("donation_amounts")&&o||t.includes("monthly_donation_amounts")&&o||t.includes("single_donation_amounts")&&o?[t,r.Ay.convertDonationAmounts(o)]:(t.includes("minimum_sponsorship")&&o&&o.map(e=>[t,r.Ay.convertAccordion(e,n)]),Array.isArray(o)&&t.includes("form_texts"))?[t,o.map(e=>({...e,rich_text:e.rich_text?r.Ay.convertJsonRte(e.rich_text,n):e.rich_text}))]:(t.includes("direct_debit_accordion")&&o&&o.map(e=>[t,r.Ay.convertAccordion(e,n)]),t.includes("direct_debit_logos")&&o)?[t,o.map(e=>({image:r.Ay.convertImage(e)}))]:t.includes("donation_use")&&o?[t,r.Ay.convertJsonRte(o,n)]:[t,o]}));return{id:null!=(s=null==(a=l._metadata)?void 0:a.uid)?s:"paymentFormsBlock",type:"PaymentFormsBlock",settings:{thank_you_page:l.thank_you_page[0].uid,form_types:l.form_types[0],form_content:m,campaign_id:l.campaign_id,page_path:n.entry.path,page_uid:n.entry.id,$:l.$}}}catch(e){if(e instanceof Error)throw new r.Z7("Normalisation failed for Payment forms block: ".concat(e.message));throw new r.Z7("Normalisation failed for Payment forms block: unknown error")}}}}]);
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.