PageSourceSearch

https://www.alaya.world/9482.17bb71c0f0c76132e480.js

js alaya.world collected 2026-10-07 00:21:54 UTC 5,265 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkalaya=self.webpackChunkalaya||[]).push([[9482],{
1"./client/modules/Pages/Cause/CausePage.tsx":(e,n,t)=>{t.r(n),t.d(n,{default:()=>x});var r=t("./node_modules/.pnpm/[email protected]/node_modules/react/index.js"),o=t("./node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-redux/es/index.js"),i=t("./node_modules/.pnpm/[email protected][email protected]/node_modules/react-router/esm/react-router.js"),u=t("./client/components/ReduxAsyncRenderer.jsx"),a=t("./client/util/scroll.js"),l=t("./client/modules/Cause/CauseActions.ts"),s=t("./client/modules/Cause/CauseReducer.ts"),c=t("./node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js"),d=t("./node_modules/.pnpm/[email protected]/node_modules/classnames/index.js"),m=t.n(d),p=t("./client/components/layouts/CharityDetailLayout/index.ts"),v=t("./packages/common/src/index.ts"),f=t("./packages/common/dist/index.js"),y=t("./client/components/hooks/useCauseContribution.ts"),h=t("./client/modules/User/UserReducerV2.js");function b(e,n,t,r,o,i,u){try{var a=e[i](u),l=a.value}catch(e){return void t(e)}a.done?n(l):Promise.resolve(l).then(r,o)}function C(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function u(e){b(i,r,o,u,a,"next",e)}function a(e){b(i,r,o,u,a,"throw",e)}u(void 0)}))}}function _(e,n){var t,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;u;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(e,u)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var g=(0,c.A)((function(e){return{container:{paddingTop:e.spacing(5),paddingBottom:e.spacing(5)}}}));const w=function(e){var n,t,i,u,a,l,s,c,d,b,w,x,E,k,A,R,j,I,S,N=e.cause,U=g(),L=(0,o.d4)(h.d),P=(0,y.A)(),T=P.initiateContribution,B=P.validateContribution,F=P.cancelContribution,M=(S=C((function(e){var n,t,r,o,i,u;return _(this,(function(a){return n=e.amount,t=e.currency,r=e.transactionReferenceNumber,o=e.giftAid,i=e.shareColleagues,u=e.sharingWithCharity,[2,T({causeId:N.id,amount:n,currency:t,giftAid:o,sharingWithCharity:u,anonymous:!i,transactionId:r})]}))})),function(e){return S.apply(this,arguments)}),W=function(){var e=C((function(e){return _(this,(function(n){switch(n.label){case 0:return[4,B({causeId:N.id,transactionId:e.transactionReferenceNumber,type:f.MaB.EXTERNAL_CAUSE})];case 1:return n.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),X=function(){var e=C((function(e){return _(this,(function(n){switch(n.label){case 0:return(null==e?void 0:e.currency)&&(null==e?void 0:e.amount)?[4,F({causeId:N.id,transactionId:e.transactionReferenceNumber,type:f.MaB.EXTERNAL_CAUSE})]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}();return r.createElement("div",{className:m()("container",U.container)},r.createElement(p.A,{showCharityConsent:!(0,v.LRk)(N),organizationCuid:null==L||null===(n=L.company)||void 0===n?void 0:n.cuid,causeId:(null==N||null===(t=N.attributes)||void 0===t?void 0:t.active)&&(null==N?void 0:N.id)||void 0,onSubmit:M,onSuccess:W,onError:X,logoUrl:null==N||null===(a=N.attributes)||void 0===a||null===(u=a.logos)||void 0===u||null===(i=u[0])||void 0===i?void 0:i.url,name:null==N||null===(l=N.attributes)||void 0===l?void 0:l.name,description:null==N||null===(s=N.attributes)||void 0===s?void 0:s.description,website:null==N||null===(c=N.attributes)||void 0===c?void 0:c.website,phone:null==N||null===(d=N.attributes)||void 0===d?void 0:d.phone,social:null==N||null===(b=N.attributes)||void 0===b?void 0:b.social,address:{city:null==N||null===(x=N.attributes)||void 0===x||null===(w=x.address)||void 0===w?void 0:w.city,region:null==N||null===(A=N.attributes)||void 0===A||null===(k=A.address)||void 0===k||null===(E=k.region)||void 0===E?void 0:E.name,countryCode:null==N||null===(I=N.attributes)||void 0===I||null===(j=I.address)||void 0===j||null===(R=j.country)||void 0===R?void 0:R.alpha_code}}))};const x=(0,i.y)((function(e){var n=e.match.params.causeId,t=(0,o.wA)();return(0,r.useEffect)((function(){(0,a.F1)()}),[]),(0,r.useEffect)((function(){return t((0,l.Ey)(n)),function(){t((0,l.pU)())}}),[n,t]),r.createElement(r.Fragment,null,r.createElement(u.A,{component:w,dependencies:{cause:s.L3}}))}))}
1}]);

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.