PageSourceSearch

https://panel.co.kr/static/js/1410.e2a2dc7d.chunk.js

js panel.co.kr collected 2026-10-01 14:05:12 UTC 14,830 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkpanelpower4_0_react_user_web=self.webpackChunkpanelpower4_0_react_user_web||[]).push([[1410],{492(t,n,e){e.d(n,{Cy:()=>p,Fc:()=>i,Fe:()=>c,OT:()=>g,SP:()=>w,UT:()=>y,VZ:()=>C,X$:()=>r,aW:()=>l,bW:()=>b,cK:()=>x,d:()=>N,hj:()=>v,kx:()=>j,lK:()=>d,mK:()=>s,mZ:()=>S,tv:()=>m,y4:()=>u,zH:()=>h});var a=e(1930),o=e(1532);const i=4,s=4,c=4,r=10,l=5,d=5,u=6;async function m(){const t=await fetch((0,a.y0)("/api/info/donation/summary"));return(0,a.HC)(t,"\uae30\ubd80 \ub204\uc801 \ud1b5\uacc4 \uc870\ud68c \uc2e4\ud328")}async function h(t,n){const e=new URLSearchParams({page:String(t),pageSize:String(n)}),o=await fetch((0,a.y0)("/api/info/donation/monthly?".concat(e.toString())));return(0,a.HC)(o,"\uc6d4\ubcc4 \uae30\ubd80 \ud604\ud669 \uc870\ud68c \uc2e4\ud328")}function p(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(Array.isArray(t)?t:[]).map((t,e)=>{const a=function(t,n){const e=String(null!==t&&void 0!==t?t:"").trim(),a=parseInt(String(null!==n&&void 0!==n?n:"").trim(),10);return!e||Number.isNaN(a)?"":"".concat(e,"\ub144 ").concat(a,"\uc6d4")}(t.donateYear,t.donateMonth);return 1===n&&0===e?{id:t.childrenNo||"m-".concat(e),date:a,current:!0,statusMsg:"\ud604\uc7ac \uc9c4\ud589\uc911\uc785\ub2c8\ub2e4."}:{id:t.childrenNo||"m-".concat(e),date:a,current:!1,participants:Number(t.donateCnt)||0,amount:Number(t.donateMoney)||0}})}function g(t){var n,e,a,i,s,c;const r=null!==(n=null===t||void 0===t?void 0:t.childrenNo)&&void 0!==n?n:"",l=null===t||void 0===t?void 0:t.thumbsImgId;return{childrenNo:r,title:null!==(e=null===t||void 0===t?void 0:t.title)&&void 0!==e?e:"",description:(0,o.U0)(null===t||void 0===t?void 0:t.cont,140),cont:null!==(a=null===t||void 0===t?void 0:t.cont)&&void 0!==a?a:"",imageUrl:(0,o.QF)(l),thumbsImgDesc:null!==(i=null===t||void 0===t?void 0:t.thumbsImgDesc)&&void 0!==i?i:"",hasThankLetter:"Y"===(null===t||void 0===t?void 0:t.mailUseYn),mailCont:null!==(s=null===t||void 0===t?void 0:t.mailCont)&&void 0!==s?s:"",mailImgId:null!==(c=null===t||void 0===t?void 0:t.mailImgId)&&void 0!==c?c:""}}function v(t){var n,e,a,i;return{storyNo:null!==(n=null===t||void 0===t?void 0:t.storyNo)&&void 0!==n?n:"",title:null!==(e=null===t||void 0===t?void 0:t.title)&&void 0!==e?e:"",description:null!==(a=null===t||void 0===t?void 0:t.subTitle)&&void 0!==a?a:"",imageUrl:(0,o.QF)(null===t||void 0===t?void 0:t.thumbsImgId),thumbsImgDesc:null!==(i=null===t||void 0===t?void 0:t.thumbsImgDesc)&&void 0!==i?i:"",creDt:null===t||void 0===t?void 0:t.creDt}}function f(t,n,e,a,o,i){const s=new URLSearchParams({page:String(t),pageSize:String(n)});return e&&s.set("searchCondition",e),null!==a&&void 0!==a&&a.trim()&&s.set("searchKeyword",a.trim()),o&&s.set("staDt",o),i&&s.set("endDt",i),s}async function y(t,n,e,o,i,s){const c=f(t,n,e,o,i,s),r=await fetch((0,a.y0)("/api/info/donation/hope?".concat(c.toString())));return(0,a.HC)(r,"\ud76c\ub9dd\uc744 \uc804\ub2ec\ud558\ub294 \uacf3 \ubaa9\ub85d \uc870\ud68c \uc2e4\ud328")}async function x(t){const n=await fetch((0,a.y0)("/api/info/donation/hope/".concat(encodeURIComponent(t))));return 404===n.status?null:(0,a.HC)(n,"\ud76c\ub9dd\uc744 \uc804\ub2ec\ud558\ub294 \uacf3 \uc0c1\uc138 \uc870\ud68c \uc2e4\ud328")}async function N(t,n,e,o,i,s){const c=f(t,n,e,o,i,s),r=await fetch((0,a.y0)("/api/info/donation/story?".concat(c.toString())));return(0,a.HC)(r,"\ud589\ubcf5\ub098\ub214 100% \uc2a4\ud1a0\ub9ac \ubaa9\ub85d \uc870\ud68c \uc2e4\ud328")}async function b(t){const n=await fetch((0,a.y0)("/api/info/donation/story/".concat(encodeURIComponent(t))));return 404===n.status?null:(0,a.HC)(n,"\ud589\ubcf5\ub098\ub214 100% \uc2a4\ud1a0\ub9ac \uc0c1\uc138 \uc870\ud68c \uc2e4\ud328")}async function j(t,n,e){const o=new URLSearchParams({page:String(n),pageSize:String(e)}),i=await fetch((0,a.y0)("/api/info/donation/story/".concat(encodeURIComponent(t),"/comments?").concat(o.toString())));return(0,a.HC)(i,"\ub313\uae00 \ubaa9\ub85d \uc870\ud68c \uc2e4\ud328")}async function C(t,n){const e=await(0,a.nr)("/api/info/donation/story/".concat(encodeURIComponent(t),"/comments"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cont:n})});await(0,a.HC)(e,"\ub313\uae00 \ub4f1\ub85d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4.")}async function S(t,n,e){const o=await(0,a.nr)("/api/info/donation/story/".concat(encodeURIComponent(t),"/comments/").concat(encodeURIComponent(n),"/update"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cont:e})});await(0,a.HC)(o,"\ub313\uae00 \uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4.")}async function w(t,n){const e=await(0,a.nr)("/api/info/donation/story/".concat(encodeURIComponent(t),"/comments/").concat(encodeURIComponent(n),"/remove"),{method:"POST"});await(0,a.HC)(e,"\ub313\uae00 \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4.")}},5956(t,n,e){e.d(n,{a:()=>o});var a=e(579);function o(t){let{msg:n="\ub370\uc774\ud130\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.",className:e,children:o}=t;return(0,a.jsx)("div",{className:"data__no-results",children:(0,a.jsx)("div",{className:"data__no-results__msg ir before i-nodata-search ".concat(e),children:o||n})})}},4533(t,n,e){e.d(n,{d:()=>s});var a=e(5043),o=e(7249),i=e(579);function s(t){let{pageActive:n=1,totalCount:e=1,onPageChange:s,mobileVisibleCount:c=5,desktopVisibleCount:r=10}=t;const{isMobile:l}=(0,o.A)(),d=Math.max(1,Number(e)||1),u=Math.min(Math.max(1,Number(n)||1),d),m=l?c:r,{startPage:h,endPage:p}=(0,a.useMemo)(()=>{const t=Math.floor((u-1)/m)*m+1;return{startPage:t,endPage:Math.min(t+m-1,d)}},[u,d,m]),g=(0,a.useMemo)(()=>Array.from({length:p-h+1},(t,n)=>h+n),[h,p]),v=u<=1,f=u>=d,y=t=>{if(!s)return;const n=Math.min(Math.max(1,t),d);n!==u&&s(n)};return(0,i.jsxs)("div",{className:"c-pagination",role:"navigation","aria-label":"\ud398\u
1c774\uc9c0\ub124\uc774\uc158",children:[!l&&(0,i.jsx)("button",{type:"button",className:"ir i-page-first",onClick:()=>y(1),disabled:v,children:"\uccab\ud398\uc774\uc9c0"}),(0,i.jsx)("button",{type:"button",className:"ir i-page-prev",onClick:()=>y(u-1),disabled:v,children:"\uc774\uc804\ud398\uc774\uc9c0"}),(0,i.jsx)("span",{className:"number",children:g.map(t=>(0,i.jsx)("button",{type:"button",className:t===u?"active":"",onClick:()=>y(t),disabled:t===u,"aria-current":t===u?"page":void 0,children:t},t))}),(0,i.jsx)("button",{type:"button",className:"ir i-page-next",onClick:()=>y(u+1),disabled:f,children:"\ub2e4\uc74c\ud398\uc774\uc9c0"}),!l&&(0,i.jsx)("button",{type:"button",className:"ir i-page-last",onClick:()=>y(d),disabled:f,children:"\ub9c8\uc9c0\ub9c9\ud398\uc774\uc9c0"})]})}},1410(t,n,e){e.r(n),e.d(n,{default:()=>y});var a=e(9379),o=e(5475),i=e(3216),s=e(5043),c=e(7249),r=e(3639),l=e(4533),d=e(5956),u=e(6018),m=e(1649),h=e(8518),p=e(492),g=e(1532),v=e(2746),f=e(579);function y(){const{isMobile:t}=(0,c.A)(),{id:n}=(0,i.g)(),e=(0,i.Zp)(),{isLoggedIn:y}=(0,u.A)(),{open:x}=(0,h.j)(),N=(0,m.Z)(),[b,j]=(0,s.useState)(null),[C,S]=(0,s.useState)(!0),[w,_]=(0,s.useState)(1),[I,k]=(0,s.useState)([]),[A,U]=(0,s.useState)(0),[M,P]=(0,s.useState)(""),[D,T]=(0,s.useState)(null),[H,R]=(0,s.useState)({}),F=Math.max(1,Math.ceil(A/p.lK)),K=(0,s.useCallback)(async()=>{const t=await(0,p.kx)(n,w,p.lK);k(Array.isArray(null===t||void 0===t?void 0:t.items)?t.items:[]),U(Number(null===t||void 0===t?void 0:t.totalCount)||0)},[n,w]);(0,s.useEffect)(()=>{let t=!1;return(async()=>{S(!0);try{const a=await(0,p.bW)(n);if(t)return;if(!a)return void e(r.f0.info.donationStory,{replace:!0});j(a)}catch(a){t||e(r.f0.info.donationStory,{replace:!0})}finally{t||S(!1)}})(),()=>{t=!0}},[n,e]),(0,s.useEffect)(()=>{n&&!C&&K().catch(()=>{k([]),U(0)})},[n,C,K]);const L=(0,s.useCallback)(()=>!!y||(N(),!1),[y,N]);return C||!b?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("h2",{className:"page-title",children:"\ud589\ubcf5\ub098\ub214 100% \uc2a4\ud1a0\ub9ac"}),(0,f.jsx)("div",{className:"activity-list-loading","aria-busy":"true","aria-live":"polite",children:(0,f.jsx)(v.A,{size:"lg"})})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("h2",{className:"page-title",children:"\ud589\ubcf5\ub098\ub214 100% \uc2a4\ud1a0\ub9ac"}),(0,f.jsxs)("section",{className:"data__detail",children:[(0,f.jsxs)("div",{className:"data__detail-head",children:[(0,f.jsx)("h3",{className:"title",children:b.title}),(0,f.jsx)("p",{className:"info",children:(0,f.jsx)("span",{children:(0,g.of)(b.creDt)})})]}),(0,f.jsx)("div",{className:"data__detail-content",dangerouslySetInnerHTML:{__html:(0,g.nQ)(b.cont)}}),t&&(0,f.jsx)("hr",{className:"divider mg-none"}),(0,f.jsxs)("div",{className:"data__detail-reply",children:[(0,f.jsx)("h4",{className:"title",children:"\ud55c\uc904 \ub313\uae00"}),(0,f.jsxs)("form",{className:"write",onSubmit:async t=>{if(t.preventDefault(),!L())return;const e=M.trim();x(e?{type:"confirm",content:(0,f.jsx)("p",{className:"strong-text",children:"\ub313\uae00\uc744 \ub4f1\ub85d\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"}),onConfirm:async()=>{try{await(0,p.VZ)(n,e),P("");const t=await(0,p.kx)(n,1,p.lK);_(1),k(Array.isArray(null===t||void 0===t?void 0:t.items)?t.items:[]),U(Number(null===t||void 0===t?void 0:t.totalCount)||0),x({type:"alert",content:(0,f.jsx)("p",{className:"strong-text",children:"\ub4f1\ub85d\ub418\uc5c8\uc2b5\ub2c8\ub2e4."})})}catch(t){x({type:"alert",content:(0,f.jsx)("p",{className:"strong-text",children:t.message||"\ub4f1\ub85d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4."})})}}}:{type:"alert",content:(0,f.jsx)("p",{className:"strong-text",children:"\ub313\uae00 \ub0b4\uc6a9\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694."})})},children:[(0,f.jsxs)("div",{className:"field",children:[(0,f.jsx)("textarea",{className:"textarea",rows:6,"aria-label":"\ub313\uae00 \uc791\uc131",maxLength:200,value:M,onChange:t=>P(t.target.value),onClick:()=>{y||L()},placeholder:y?"\u203b \uc5f0\ub77d\ucc98, \uc8fc\uc18c, \uc774\uba54\uc77c \ub4f1\uc758 \ub0b4\uc6a9\uc744 \uc785\ub825\ud558\uc2dc\ub294 \uacbd\uc6b0 \uac1c\uc778\uc815\ubcf4\uac00 \ub178\ucd9c\ub420 \uc218 \uc788\uc73c\ub2c8, \uac8c\uc2dc\ub97c \uc0bc\uac00\ud574 \uc8fc\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.":"\u203b \ub85c\uadf8\uc778 \ud6c4 \ub4f1\ub85d \uac00\ub2a5\ud569\ub2c8\ub2e4.",readOnly:!y}),(0,f.jsx)("div",{className:"textarea-count",children:(0,f.jsxs)("small",{children:["(",M.length,"/",200,")"]})})]}),(0,f.jsx)("button",{type:"submit",className:"btn",children:"\ub4f1\ub85d\ud558\uae30"})]}),I.length>0?(0,f.jsx)("ul",{className:"reply-list",children:I.map(t=>{var e,o;const i="Y"===t.isMyCmntYn,s=D===t.cmntNo;return(0,f.jsxs)("li",{className:"item",children:[(0,f.jsx)("span",{className:"name",children:t.creNm||"(\ud0c8\ud1f4\ud328\ub110)"}),(0,f.jsxs)("div",{className:"info",children:[i&&s?(0,f.jsx)("textarea",{className:"textarea",rows:3,"aria-label":"\ub313\uae00 \uc218\uc815",maxLength:200,value:null!==(e=null!==(o=H[t.cmntNo])&&void 0!==o?o:t.cont)&&void 0!==e?e:"",onChange:n=>R(e=>(0,a.A)((0,a.A)({},e),{},{[t.cmntNo]:n.target.value}))}):(0,f.jsx)("p",{className:"content",children:t.cont}),(0,f.jsx)("span",{className:"date",children:(0,g.of)(t.creDt)}),i&&(s?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("button",{type:"button",className:"btn",onClick:()=>(t=>{var e;if(!L())return;const a=(null!==(e=H[t])&&void 0!==e?e:"").trim();x(a?{type:"confirm",content:(0,f.jsx)("p",{className:"strong-text",children:"\ub313\uae00\uc744 \uc218\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"}),onConfirm:async()=>{try{await(0,p.mZ)(n,t,a),T(null),await K(),x({type:"alert",content:(0,f.jsx)("p",{className:"strong-text",children:"\uc218\uc815\ub418\uc5c8\uc2b5\ub2c8\ub2e4."})})}catch(e){x({type:"alert",content:(0,f.jsx)("p",{className:"strong-text",children:e.message||"\uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4."})})}}}:{type:"alert",content:(0,f.jsx)("p",{className:"strong-text",children:"\ub313\uae00 \ub0b4\uc6a9\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694."})})})(t.cmntNo),children:"\ud655\uc778"}),(0,f.jsx)("button",{type:"button",className:"btn",onClick:()=>T(null),children:"\ucde8\uc18c"})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("button",{type:"button",className:"btn",onClick:()=>{T(t.cmntNo),R(n=>{var e;return(0,a.A)((0,a.A)({},n),{},{[t.cmntNo]:null!==(e=t.cont)&&void 0!==e?e:""})})},children:"\uc218\uc815"}),(0,f.jsx)("button",{type:"button",className:"btn",onClick:()=>{return e=t.cmntNo,void(L()&&x({type:"confirm",content:(0,f.jsx)("p",{className:"strong-text",children:"\uc815\ub9d0\ub85c \ub3
113\uae00\uc744 \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"}),onConfirm:async()=>{try{await(0,p.SP)(n,e),await K(),x({type:"alert",content:(0,f.jsx)("p",{className:"strong-text",children:"\uc0ad\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4."})})}catch(t){x({type:"alert",content:(0,f.jsx)("p",{className:"strong-text",children:t.message||"\uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4."})})}}}));var e},children:"\uc0ad\uc81c"})]}))]})]},t.cmntNo)})}):(0,f.jsx)(d.a,{children:"\uc791\uc131\ub41c \ub313\uae00\uc774 \uc5c6\uc2b5\ub2c8\ub2e4."}),A>p.lK&&(0,f.jsx)(l.d,{pageActive:w,totalCount:F,onPageChange:_})]}),t&&(0,f.jsx)("hr",{className:"divider mg-type"}),(0,f.jsx)("div",{className:"data__action-buttons".concat(t?" flex-column":""),children:(0,f.jsx)(o.N_,{to:r.f0.info.donationStory,className:"btn btn--lg btn--light",children:"\ubaa9\ub85d\uc73c\ub85c"})})]})]})}},1649(t,n,e){e.d(n,{Z:()=>c});var a=e(9379),o=e(5043),i=e(3216),s=e(5355);function c(){const t=(0,i.zy)(),{openAlert:n}=(0,s.OP)();return(0,o.useCallback)(function(){var e;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=null!==(e=o.returnTo)&&void 0!==e?e:"".concat(t.pathname).concat(t.search).concat(t.hash);n((0,a.A)((0,a.A)({},o),{},{returnTo:i}))},[t.pathname,t.search,t.hash,n])}},1532(t,n,e){e.d(n,{QF:()=>i,U0:()=>r,Ub:()=>l,nQ:()=>c,of:()=>d});var a=e(1930);const o=(0,e(4448).U)("/images/info/children_default.jpg");function i(t){return function(t){return null!=t&&""!==String(t).trim()}(t)?(0,a.y0)("/api/files/image?id=".concat(encodeURIComponent(String(t).trim()))):o}const s=/(?:https?:\/\/[^"'()\s>]+)?\/?(?:[^"'()\s>/]+\/)*file\/image\?id=([^"'&\s<>]+)/gi;function c(t){return t?String(t).replace(s,(t,n)=>i(n)):""}function r(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:140;const e=String(null!==t&&void 0!==t?t:"").trim();return e.length<=n?e:"".concat(e.slice(0,n),"\u2026")}function l(t){const n=String(null!==t&&void 0!==t?t:"");return n?n.split(/\r?\n/g):[]}function d(t){if(!t)return"";const n=t instanceof Date?t:new Date(t);if(Number.isNaN(n.getTime()))return"";const e=n.getFullYear(),a=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return"".concat(e,".").concat(a,".").concat(o)}}}]);
2//# sourceMappingURL=1410.e2a2dc7d.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.