OwlCyberSecurity - MANAGER
Edit File: donationConfirmationReceiptApp.js
(()=>{"use strict";const e=window.React,t=window.wp.element,n=window.givewp.form.templates,i=n.layouts.wrapper;const o=function(t,o="div",r){const{nodeType:a,type:s}=function(e){let t=null,i=null;return Object.entries(n).forEach((n=>{if("object"==typeof n[1]){const o=n[0],r=Object.keys(n[1]).find((t=>n[1][t]===e));r&&(i=r,t=o)}})),{nodeType:t,type:i}}(t);return n=>(0,e.createElement)(i,{nodeType:a,type:s,htmlTag:o,name:r},(0,e.createElement)(t,{...n}))}(window.givewp.form.templates.layouts.receipt),{receipt:r}=window.givewpDonationConfirmationReceiptExports,a=e=>"string"==typeof e?e:e?.amount?(e=>{const t=parseFloat(e),n=(i=r.settings.currency,o={},new Intl.NumberFormat(navigator.language,{style:"currency",currency:i,...o})).format(t);var i,o;const a=e.replace(/^[\d|.,]+/,"").trim();return a?`${n} ${a}`:n})(e.amount):JSON.stringify(e),s=e=>e?.map((({label:e,value:t})=>({label:e,value:a(t)}))),l=document.getElementById("root-givewp-donation-confirmation-receipt");(0,t.createRoot)(l).render((0,e.createElement)((function(){return(0,e.createElement)(o,{heading:r.settings.heading,description:r.settings.description,donorDashboardUrl:r.settings.donorDashboardUrl,pdfReceiptLink:r.settings.pdfReceiptLink,donorDetails:r.donorDetails,donationDetails:s(r.donationDetails),subscriptionDetails:s(r.subscriptionDetails),eventTicketsDetails:s(r.eventTicketsDetails),additionalDetails:s(r.additionalDetails)})}),null)),l.scrollIntoView({behavior:"smooth"})})();