PageSourceSearch

https://congrant.com/static/js/IndividualNamingPage.2eea124a.chunk.js

js congrant.com collected 2026-09-24 08:54:07 UTC 13,584 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcongrant=self.webpackChunkcongrant||[]).push([[8829],{58114:function(e,t,n){var r=n(29439),i=n(72791),a=n(60364),s=n(74279),c=n(73734),o=n(32343),d=n(80184);t.Z=function(e){var t=e.pagination,n=(0,a.I0)(),l=(0,o.Z)(),u=l.usp,p=l.pathname,h=(0,i.useState)([]),m=(0,r.Z)(h,2)[1];return(0,d.jsx)(s.Z,{className:"decoupled-pagination",defaultPageSize:(null===t||void 0===t?void 0:t.limit)||(null===t||void 0===t?void 0:t.per_page),current:parseInt(t.current_page),total:parseInt((null===t||void 0===t?void 0:t.total_items)||(null===t||void 0===t?void 0:t.total)),onChange:function(e){m([]),e?u.set("page",e):u.delete("page"),n((0,c.VF)("".concat(p,"?").concat(u)))},pageSizeOptions:[10,20,50,100],onShowSizeChange:function(e,t){t?u.set("limit",t):u.delete("limit"),n((0,c.VF)("".concat(p,"?").concat(u)))},showSizeChanger:!1,showTotal:function(e,t){return"".concat(t[0],"\u301c").concat(t[1],"\u4ef6/").concat(e,"\u4ef6")}},Math.random())}},66694:function(e,t,n){var r=n(74165),i=n(15861),a=n(1413),s=n(65408),c=n(48100).ZP.individual.merge,o={},d=function(){return function(e,t){return(0,a.Z)((0,a.Z)({},t),{},{pagination:null===t||void 0===t?void 0:t.pager})}},l={step1:{name:"@app//individual_merge_step1",state:o,reducers:{setData:d()},effects:{get:function(e){var t=this;return(0,i.Z)((0,r.Z)().mark((function n(){var i,a;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.step1(e);case 2:return i=n.sent,(a=i.data).status&&t.setData(a),n.abrupt("return",a);case 6:case"end":return n.stop()}}),n)})))()}}},step2:{name:"@app//individual_merge_step2",state:o,reducers:{setData:d()},effects:{get:function(e){var t=this;return(0,i.Z)((0,r.Z)().mark((function n(){var i,a,s,o;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.co_id,a=e.params,n.next=3,c.step2(i,a);case 3:return s=n.sent,(o=s.data).status&&t.setData(o),n.abrupt("return",o);case 7:case"end":return n.stop()}}),n)})))()}}},cancel:{name:"@app//individual_merge_cancel",state:o,reducers:{setData:d()},effects:{proceed:function(e){var t=this;return(0,i.Z)((0,r.Z)().mark((function n(){var i,a;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c.cancel(e);case 2:return i=n.sent,(a=i.data).status&&t.setData(a),n.abrupt("return",a);case 6:case"end":return n.stop()}}),n)})))()}}},step3:{name:"@app//individual_merge_step3",state:o,reducers:{setData:d()},effects:{proceed:function(e){return(0,i.Z)((0,r.Z)().mark((function t(){var n,i,a,s,o;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.co_id,i=e.params,a=e.payload,t.next=3,c.step3(n,i,a);case 3:return s=t.sent,o=s.data,t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))()}}}};s.Z.addModel(l.step1),s.Z.addModel(l.step2),s.Z.addModel(l.cancel),s.Z.addModel(l.step3)},28179:function(e,t,n){n.r(t);var r=n(1413),i=n(74165),a=n(15861),s=n(29439),c=n(86488),o=n(72791),d=n(6907),l=n(60364),u=n(91523),p=n(66106),h=n(30914),m=n(44182),g=n(87309),f=n(66871),Z=n(83099),v=n(30394),x=n(58361),j=n(7479),b=n(28707),w=n(93523),y=n(15420),_=(n(15747),n(26538)),N=n(17458),k=n(691),I=(n(66694),n(58114)),O=n(81635),C=n(51741),S=n(32343),D=n(88852),T=n(11726),R=n(80184),M=c.ZP.span.withConfig({componentId:"sc-kus7wn-0"})(["background:",";"],(function(e){return e.shouldHighlight?N.Rz:"none"})),z=c.ZP.div.withConfig({componentId:"sc-kus7wn-1"})(["padding:16px 24px;height:100%;.title{font-size:16px;font-weight:600;}.ant-descriptions-bordered .ant-descriptions-view,.ant-descriptions-bordered .ant-descriptions-row{border:none;}.ant-descriptions-bordered .ant-descriptions-item-label{border:none;background:none;font-weight:600;color:",";}.ant-descriptions-bordered .ant-descriptions-item-label,.ant-descriptions-bordered .ant-descriptions-item-content{padding:0;}.ant-descriptions-row:not(:last-of-type){.ant-descriptions-item-label,.ant-descriptions-item-content{padding-bottom:16px;}}"],N.C2),G=function(e,t,n){return!!(n&&n.length>0)&&n.filter((function(n){return e[t]&&n[t]===e[t]})).length>0},J=function(e){var t=e.columns,n=e.item,i=(0,S.Z)().usp,a=(0,o.useState)([]),c=(0,s.Z)(a,2),d=c[0],l=c[1],f=(0,o.useMemo)((function(){return d.join(",")}),[d]);i.set("match_co_id",f),i.set("co_id",null===n||void 0===n?void 0:n.co_id);var Z={columnWidth:"48px",onChange:function(e,t){l(e)},getCheckboxProps:function(e){return{disabled:"Disabled User"===e.name,name:e.name}}};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(p.Z,{className:"py-4 px-6",children:(0,R.jsx)(h.Z,{sm:24,md:20,lg:20,children:(0,R.jsx)("span",{style:{fontSize:"16px",fontWeight:"600"},children:"\u540d\u5bc4\u305b\u6761\u4ef6\u306b\u4e00\u81f4\u3059\u308b\u30b5\u30dd\u30fc\u30bf\u30fc"})})}),(0,R.jsx)(p.Z,{children:(0,R.jsx)(h.Z,{sm:24,md:24,lg:24,children:(0,R.jsx)(m.Z,{className:"clickable-table",dataSource:null===n||void 0===n?void 0:n.\u4e00\u81f4,rowKey:"co_id",columns:t([n]),rowSelection:(0,r.Z)({},Z),pagination:!1})})}),(0,R.jsxs)(p.Z,{className:"py-4 px-6",justify:"space-between",align:"middle",children:[(0,R.jsx)(h.Z,{children:(0,R.jsx)("div",{children:"\u540d\u5bc4\u305b\u5019\u88dc\u3068\u540c\u4e00\u4eba\u7269\u306e\u30b5\u30dd\u30fc\u30bf\u30fc\u3092\u9078\u629e\u3057\u3066\u540d\u5bc4\u305b\u3092\u884c\u306a\u3063\u3066\u304f\u3060\u3055\u3044\u3002"})}),(0,R.jsx)(h.Z,{children:(0,R.jsx)(u.rU,{className:"sidebar-link",to:"/app/individuals-naming-detail?".concat(i),children:(0,R.jsx)(g.Z,{type:"primary",disabled:!d.length,children:(0,R.jsx)("span",{children:"\u540d\u5bc4\u305b\u5148\u306e\u9078\u629e\u3078\u9032\u3080"})})})})]})]})};t.default=function(){var e=function(e){var t=(0,l.I0)(),n=(0,o.useState)(null),r=(0,s.Z)(n,2),c=r[0],d=r[1],u=new URLSearchParams(e),p=Object.fromEntries(u.entries()),h=(0,l.v9)((function(e){return e["@app//individual_merge_step1"]}));(0,o.useEffect)((function(){(0,a.Z)((0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t["@app//individual_merge_step1"].get({page:p.page||1,p1:p.p1||"1"});case 3:e.sent.status&&d(!0),window.scrollTo({top:0}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),T.q.handle(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))()}),[JSON.stringify(p)]);var m=(0,o.useCallback)(function(){var e=(0,a.Z)((0,i.Z)().mark((function e(n){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t["@app//individual_merge_cancel"].proceed(n);case 3:return e.next=5,t["@app//individual_merge_step1"].get({page:p.page||1,p1:p.p1||"1"});case 5:D.Z.success("\u30b5\u30dd\u30fc\u30bf\u30fc\u3092\u540d\u5bc4\u305b\u5019\u88dc\u304b\u3089\u9664\u5916\u3057\u307e\u3057\u305f\u3002"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),T.q.handle(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}());return[h,m,c]}((0,S.Z)().search),t=(0,s.Z)(e,3),n=t[0],r=t[1],c=t[2],u=function(e){return[{width:120,title:"\u30b5\u30dd\u30fc\u30bf\u30fcNo.",render:function(t){return(0,R.jsx)(M,{shouldHighlight:G(t,"\u30b5\u30dd\u30fc\u30bf\u30fcNo",e),children:t.\u30b5\u30dd\u30fc\u30bf\u30fcNo})}},{title:"\u6c0f\u540d",render:function(t){return(0,k.o)(t.GOJO\u4f1a\u54e1\u30d5\u30e9\u30b0)?(0,R.jsx)(j.Z,{drawerTitle:t.\u6c0f\u540d||"\u533f\u540d",drawerComponent:(0,R.jsx)(y.ZP,{data:t}),children:(0,R.jsx)(b.Z,{gojoSupporterName:t.GOJO\u4f1a\u54e1\u540d,supporterName:null===t||void 0===t?void 0:t.\u6c0f\u540d,image:t.GOJO\u4f1a\u54e1\u30a2\u30a4\u30b3\u30f3})}):(0,R.jsx)(j.Z,{drawerTitle:t.\u6c0f\u540d||"\u533f\u540d",drawerComponent:(0,R.jsx)(y.ZP,{data:t}),children:(0,R.jsx)(M,{className:"supporter-link",shouldHighlight:G(t,"\u6c0f\u540d",e),children:t.\u6c0f\u540d||"\u533f\u540d"})})}},{title:"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9",render:function(t){return(0,R.jsx)(M,{shouldHighlight:G(t,"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9",e),children:t.\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9})}},{title:"\u96fb\u8a71\u756a\u53f7",render:function(t){return(0,R.jsx)(M,{shouldHighlight:G(t,"\u96fb\u8a71\u756a\u53f7",e),children:t.\u96fb\u8a71\u756a\u53f7})}}]};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(d.ql,{children:(0,R.jsx)("title",{children:"\u500b\u4eba\u30b5\u30dd\u30fc\u30bf\u30fc\u306e\u540d\u5bc4\u305b"})})}),(0,R.jsxs)(w.X,{children:[(0,R.jsxs)(p.Z,{type:"flex",align:"middle",className:"mb-6",children:[(0,R.jsx)(h.Z,{className:"mr-4",children:(0,R.jsx)("div",{className:"sub-page-title",children:"\u500b\u4eba\u30b5\u30dd\u30fc\u30bf\u30fc\u306e\u540d\u5bc4\u305b"})}),(0,R.jsx)(O.Z,{helpUrl:"https://help.congrant.com/acd7a7fd9e8c44b8bb1f
10a658bc13660?utm_source=cg_app&utm_medium=cg_app&utm_campaign=guide"})]}),c?(0,R.jsxs)(R.Fragment,{children:[(n.\u5019\u88dc||[]).map((function(e){var t=(0,k.o)(e.GOJO\u4f1a\u54e1\u30d5\u30e9\u30b0),n=new C.xw(C.DO.Individuals,e.co_id,C.OK.General);return(0,R.jsx)(f.Z,{className:"mb-6",bodyStyle:{padding:0},children:(0,R.jsxs)(p.Z,{children:[(0,R.jsx)(h.Z,{flex:"0 1 340px",style:{borderRight:"1px solid ".concat(N.eR)},children:(0,R.jsxs)(z,{children:[(0,R.jsx)("div",{className:"title mb-4",children:"\u540d\u5bc4\u305b\u5019\u88dc"}),(0,R.jsxs)(p.Z,{children:[(0,R.jsx)(h.Z,{span:24,className:"mb-6",children:t?(0,R.jsx)(b.Z,{type:"detail",gojoSupporterName:e.GOJO\u4f1a\u54e1\u540d,supporterName:null===e||void 0===e?void 0:e.\u6c0f\u540d,image:e.GOJO\u4f1a\u54e1\u30a2\u30a4\u30b3\u30f3,cgSupporterNumber:e.\u30b5\u30dd\u30fc\u30bf\u30fcNo}):(0,R.jsxs)(Z.Z,{children:[(0,R.jsx)("div",{className:"supporter-detail-image mr-4",children:(0,R.jsx)("img",{src:_.Z,alt:""})}),(0,R.jsxs)(Z.Z,{direction:"vertical",size:0,children:[(0,R.jsx)(M,{style:{fontSize:13,fontWeight:400},shouldHighlight:G(e,"\u30b5\u30dd\u30fc\u30bf\u30fcNo",null===e||void 0===e?void 0:e.\u4e00\u81f4),children:e.\u30b5\u30dd\u30fc\u30bf\u30fcNo}),(0,R.jsx)("strong",{style:{fontSize:16},children:e.\u6c0f\u540d})]})]})}),(0,R.jsx)(h.Z,{span:24,className:"mb-6",children:(0,R.jsxs)(v.Z,{column:1,bordered:!0,children:[(0,R.jsx)(v.Z.Item,{label:"\u6c0f\u540d",children:(0,R.jsx)(j.Z,{drawerTitle:e.\u6c0f\u540d||"\u533f\u540d",drawerComponent:(0,R.jsx)(y.ZP,{data:n.toJSON()}),children:(0,R.jsx)(M,{className:"supporter-link",shouldHighlight:G(e,"\u6c0f\u540d",null===e||void 0===e?void 0:e.\u4e00\u81f4),children:e.\u6c0f\u540d||"\u533f\u540d"})},e.co_id)}),(0,R.jsx)(v.Z.Item,{label:"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9",children:(0,R.jsx)(M,{shouldHighlight:G(e,"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9",null===e||void 0===e?void 0:e.\u4e00\u81f4),children:e.\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9})}),(0,R.jsx)(v.Z.Item,{label:"\u96fb\u8a71\u756a\u53f7",children:(0,R.jsx)(M,{shouldHighlight:G(e,"\u96fb\u8a71\u756a\u53f7",null===e||void 0===e?void 0:e.\u4e00\u81f4),children:e.\u96fb\u8a71\u756a\u53f7||"-"})})]})}),(0,R.jsx)(h.Z,{children:(0,R.jsx)(g.Z,{onClick:function(){r(e.co_id)},children:"\u3053\u306e\u30b5\u30dd\u30fc\u30bf\u30fc\u306f\u540d\u5bc4\u305b\u3057\u306a\u3044"})})]})]})}),(0,R.jsx)(h.Z,{flex:"auto",className:"pb-6",style:{width:"calc(100% - 340px)"},children:(0,R.jsx)(J,{columns:u,item:e})})]})})})),n.pagination&&(0,R.jsx)(Z.Z,{className:"ma-5",style:{display:"flex",justifyContent:"flex-end"},children:(0,R.jsx)(I.Z,{pagination:n.pagination})})]}):(0,R.jsx)(f.Z,{children:(0,R.jsx)(p.Z,{children:(0,R.jsx)(x.Z,{active:!0,avatar:!0,paragraph:{rows:4}})})})]})]})}},51741:function(e,t,n){n.d(t,{DO:function(){return d},OK:function(){return o},xw:function(){return u}});var r=n(1413),i=n(15671),a=n(43144),s=n(84601),c=n(15420),o=function(e){return e.General="general",e.Memos="memos",e.Donations="donations",e.Recurrings="recurrings",e.Reccurings="reccurings",e.Receipt="receipts",e}({}),d=function(e){return e.Individuals="individuals",e.Corporations="corporations",e.Bokin="bokin",e}({}),l=function(e){return e.Individuals="1",e.Corporations="2",e.Bokin="3",e}({}),u=function(){function e(t,n,r,a){(0,i.Z)(this,e),this.supporterType=void 0,this.supporterId=void 0,this.tab=void 0,this.tabId=void 0,this.supporterType=t,this.supporterId=n,this.tab=r,this.tabId=a}return(0,a.Z)(e,[{key:"getViewMode",value:function(){return this.tabId?s._J:s.Te}},{key:"getDetailType",value:function(){switch(this.supporterType){case d.Individuals:return c.k9;case d.Corporations:return c.b2;case d.Bokin:return c.RI}}},{key:"getSupporterTypeID",value:function(){switch(this.supporterType){case d.Individuals:return l.Individuals;case d.Corporations:return l.Corporations;case d.Bokin:return l.Bokin}}},{key:"toJSON",value:function(){var e={viewMode:this.getViewMode(),detailType:this.getDetailType()},t={co_id:this.supporterId,"\u4f1a\u793e\u30bf\u30a4\u30d7":this.getSupporterTypeID()};switch(this.tab){case o.Reccurings:case o.Recurrings:return(0,r.Z)((0,r.Z)({activeKey:c.lb.RECURRING},e),{},{raw:(0,r.Z)((0,r.Z)({},t),{},{payment_id:this.tabId||void 0})});case o.Donations:return(0,r.Z)((0,r.Z)({activeKey:c.lb.DONATION},e),{},{raw:(0,r.Z)((0,r.Z)({},t),{},{payment_id:this.tabId||void 0})});case o.Receipt:return(0,r.Z)((0,r.Z)({activeKey:c.lb.RECEIPT},e),{},{raw:(0,r.Z)((0,r.Z)({},t),{},{receipt_id:this.tabId||void 0})});case o.General:return(0,r.Z)((0,r.Z)({activeKey:c.lb.BASIC_INFO},e),{},{raw:(0,r.Z)({},t)});case o.Memos:return(0,r.Z)((0,r.Z)({activeKey:c.lb.MEMO},e),{},{raw:(0,r.Z)({},t)});default:return(0,r.Z)((0,r.Z)({activeKey:c.lb.BASIC_INFO},e),{},{raw:(0,r.Z)({},t)})}}}]),e}()}}]);
2//# sourceMappingURL=IndividualNamingPage.2eea124a.chunk.js.map

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.