1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2838168a-0ba1-4b7a-bd53-07b67646b19f",e._sentryDebugIdIdentifier="sentry-dbid-2838168a-0ba1-4b7a-bd53-07b67646b19f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7116],{22197:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/common/home",function(){return t(52975)}])},55289:function(e,n,t){"use strict";var i=t(30139),r=t(85893);n.Z=(0,i.Z)((0,r.jsx)("path",{d:"M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5"}),"Attachment")},83947:function(e,n,t){"use strict";var i=t(30139),r=t(85893);n.Z=(0,i.Z)((0,r.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},54035:function(e,n,t){"use strict";t.d(n,{Z:function(){return V}});var i=t(85893),r=t(67294),o=t(17e3),l=t(47041),s=t(27484),d=t.n(s),c=t(11163),a=t(62289),u=t(59475),h=t(99033),p=t(82729),x=t(16829),m=t(25675),g=t.n(m),f=t(99292),y=t(12796);function Z(){let e=(0,p._)(["\n cursor: pointer;\n ",";\n"]);return Z=function(){return e},e}function j(e){let{children:n,url:t}=e;return(0,i.jsx)(_,{href:t,target:"_blank",rel:"noopener noreferrer",children:n})}let _=x.Z.a(Z(),e=>e.theme.typo.body2.lined.medium);var b=t(29901),v=t(6914),C=t(25479),w=t(89189),k=t(23384);function H(){let e=(0,p._)(["\n display: flex;\n width: 375px;\n height: auto;\n max-height: 90vh;\n\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n\n border-radius: 20px;\n background: ",";\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.25);\n overflow: hidden;\n\n @media (max-width: 600px) {\n max-width: 90%;\n max-height: 80vh;\n }\n"]);return H=function(){return e},e}function D(){let e=(0,p._)(["\n width: 100%;\n padding: 32px 24px 24px 24px;\n"]);return D=function(){return e},e}function I(){let e=(0,p._)(["\n overflow-y: auto;\n padding: 0 16px 32px 16px;\n flex: 1;\n min-height: 0;\n"]);return I=function(){return e},e}function B(){let e=(0,p._)(["\n width: 100%;\n height: 120px;\n max-height: 120px;\n position: relative;\n background-color: ",";\n"]);return B=function(){return e},e}function S(){let e=(0,p._)(["\n width: 100%;\n padding: 24px 16px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 8px;\n margin-top: 24px;\n\n border-radius: 8px;\n border: 1px solid ",";\n background-color: ",";\n"]);return S=function(){return e},e}function M(){let e=(0,p._)(["\n white-space: pre-line;\n"]);return M=function(){return e},e}function R(){let e=(0,p._)(["\n width: 100%;\n\n display: flex;\n align-items: center;\n\n & > button {\n border: none;\n\n :hover {\n border: none;\n }\n :disabled {\n border: none;\n }\n }\n"]);return R=function(){return e},e}let N=/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)|(https?:\/\/[^\s]+)/g;function L(){let e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[],o=0;for(;e=N.exec(n);){e.index>o&&t.push(n.slice(o,e.index));let[d,c,a,u]=e;if(a)t.push((0,i.jsx)(j,{url:a,children:c},e.index));else if(u){var l,s;let n=null!==(s=null===(l=u.match(/[.,)\]}!?"']+$/))||void 0===l?void 0:l[0])&&void 0!==s?s:"",o=n?u.slice(0,-n.length):u;t.push((0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(j,{url:o,children:o}),n]},e.index))}o=e.index+d.length}return o<n.length&&t.push(n.slice(o)),t}function E(e){let{open:n,data:t,index:r,onDismiss:o,onClose:l,totalPopups:s}=e,c=e=>{o(e),l()};return!n||!t||d()().isAfter(null==t?void 0:t.display_end_datetime)?null:(0,i.jsx)(b.Z,{index:r,totalPopups:s,children:(0,i.jsxs)(F,{children:[(0,i.jsx)(A,{children:(0,i.jsx)(C.Z,{typography:k.Z.h6.bold,children:null==t?void 0:t.main_title})}),(0,i.jsxs)(Y,{children:[(0,i.jsx)(T,{children:(0,i.jsx)(g(),{src:(null==t?void 0:t.image_url)||"",alt:"popup_image",layout:"fill"})}),(0,i.jsx)(v.Z,{space:16}),(0,i.jsxs)(y.Z,{gap:8,flexDirection:"column",autoHeight:!0,children:[(0,i.jsx)(C.Z,{typography:k.Z.h6.medium,align:"center",children:null==t?void 0:t.sub_title}),(0,i.jsx)(z,{typography:k.Z.body1.regular,align:"center",children:L(null==t?void 0:t.context1)})]}),(0,i.jsxs)(q,{children:[(0,i.jsx)(C.Z,{typography:k.Z.body2.regular,color:w.Z.text.secondary,align:"center",children:null==t?void 0:t.box_title}),(0,i.jsx)(z,{typography:k.Z.body1.medium,align:"left",isFullWidth:!0,children:L(null==t?void 0:t.box_text)})]})]}),(0,i.jsxs)(W,{children:[(null==t?void 0:t.is_dismiss_forever_button_visible)&&(0,i.jsx)(f.Z,{isFullWidth:!0,borderRadius:0,color:"default",onClick:()=>c(!0),children:"ë¤ì ë³´ì§ ì기"}),(0,i.jsx)(f.Z,{isFullWidth:!0,borderRadius:0,variant:"outlined",color:"default",onClick:l,children:"ë«ê¸°"})]})]})})}let F=x.Z.div(H(),e=>
1e.theme.colors.common.white),A=x.Z.div(D()),Y=x.Z.div(I()),T=x.Z.div(B(),e=>e.theme.colors.common.white),q=x.Z.div(S(),e=>e.theme.colors.gray.stroke,e=>e.theme.colors.gray[100]),z=(0,x.Z)(C.Z)(M()),W=x.Z.div(R());var O=t(96781);function V(){let e=(0,c.useRouter)(),{isLoggedIn:n,user:t}=(0,O.Z)(),[s,p]=(0,r.useState)(!1),x=(0,o.a)({queryKey:h.ap.popup,queryFn:u.Z.common.access.popup,enabled:n});return(0,r.useEffect)(()=>{if(s)return;let n=d()().format("YYYY-MM-DD");if("/admin/common/home"===e.pathname){var r;let e=null===(r=x.data)||void 0===r?void 0:r.filter(e=>{let i=(0,l.getCookie)("popup-dismissed-".concat(e.uuid,"-").concat(null==t?void 0:t.user_id));return i!==n&&"permanent"!==i});(null==e?void 0:e.length)&&(p(!0),null==e||e.forEach((r,o)=>{a.IJ.open(s=>{let{isOpen:d,unmount:c}=s;return(0,i.jsx)(E,{open:d,data:r,index:o,totalPopups:e.length,onDismiss:e=>{e?(0,l.setCookie)("popup-dismissed-".concat(r.uuid,"-").concat(null==t?void 0:t.user_id),"permanent",{expires:new Date("9999-12-31")}):(0,l.setCookie)("popup-dismissed-".concat(r.uuid,"-").concat(null==t?void 0:t.user_id),n)},onClose:()=>{c(),o===e.length-1&&p(!1)}},o)},{overlayId:r.uuid})}))}},[e.pathname,x.data]),null}},2905:function(e,n,t){"use strict";t.d(n,{x:function(){return s}});var i=t(82729),r=t(85893);function o(){let e=(0,i._)(["\n color: ",";\n background-color: ",";\n border-radius: ","px;\n padding: ",";\n border: ",";\n"]);return o=function(){return e},e}let l=t(16829).Z.div(o(),e=>e.color,e=>e.bgColor,e=>e.borderRadius,e=>e.padding,e=>e.borderColor&&"1px solid ".concat(e.borderColor)),s=e=>{let{children:n,...t}=e;return(0,r.jsx)(l,{...t,children:n})}},14148:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(82729),r=t(85893);function o(){let e=(0,i._)(["\n width: 100%;\n display: flex;\n flex-direction: ",";\n gap: ","px;\n"]);return o=function(){return e},e}function l(e){let{children:n,direction:t="row",gap:i=16,...o}=e;return(0,r.jsx)(s,{direction:t,gap:i,...o,children:n})}let s=t(16829).Z.div(o(),e=>e.direction,e=>e.gap)},68608:function(e,n,t){"use strict";var i=t(82729),r=t(85893),o=t(16829);function l(){let e=(0,i._)(["\n cursor: pointer;\n\n height: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n padding: 16px 30px 8px 30px;\n\n color: ",";\n border-bottom: 2px solid\n ",";\n background-color: ",";\n\n ","\n"]);return l=function(){return e},e}function s(){let e=(0,i._)([""]);return s=function(){return e},e}let d=o.Z.li(l(),e=>e.height?"".concat(e.height,"px"):"auto",e=>e.actived?e.theme.colors.text.primary:e.theme.colors.text.secondary,e=>e.actived?e.theme.colors.text.primary:e.theme.colors.divider,e=>e.theme.colors.common.white,e=>e.actived?e.theme.typo.body1.medium:e.theme.typo.body1.regular),c=o.Z.div(s());n.Z=e=>{let{title:n,actived:t=!1,onClick:i,height:o=50,width:l=160}=e;return(0,r.jsx)(d,{actived:t,height:o,width:l,onClick:i,children:(0,r.jsx)(c,{children:n})})}},75174:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var i=t(82729),r=t(85893),o=t(16829),l=(0,t(30139).Z)((0,r.jsx)("path",{d:"M20 6H10v2h10v12H4V8h2v4h2V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2"}),"MarkunreadMailboxOutlined"),s=t(96781),d=t(8206),c=t(99292);function a(){let e=(0,i._)(["\n width: 100%;\n min-height: 400px;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]);return a=function(){return e},e}function u(){let e=(0,i._)(["\n width: 56px;\n height: 56px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n color: ",";\n"]);return u=function(){return e},e}function h(){let e=(0,i._)(["\n ","\n color: ",";\n margin-top: 16px;\n"]);return h=function(){return e},e}function p(){let e=(0,i._)(["\n margin-top: 16px;\n"]);return p=function(){return e},e}function x(e){let{onClickCreate:n}=e,t=(0,d.d)(),{user:i}=(0,s.Z)(),o=(null==i?void 0:i.category)==="ê´ë¦¬ì";return(0,r.jsxs)(m,{children:[(0,r.jsx)(g,{children:(0,r.jsx)(l,{sx:{width:56,height:56}})}),(0,r.jsx)(f,{children:o?"구ì±ìë¤ìê² ìë¦¬ê³ ì¶ì ë³µì§ ê´ë ¨ ë´ì©ì ìì± ëë íì¼ ì²¨ë¶í´ë³´ì¸ì!":"ìì§ ë±ë¡ë ê³µì§ì¬íì´ ììµëë¤"}),o&&!t&&(0,r.jsx)(y,{children:(0,r.jsx)(c.Z,{variant:"outlined",color:"primaryBlue",size:"medium",width:148,onClick:n,children:"ìì±/ì
ë¡ë í기"})})]})}let m=o.Z.div(a()),g=o.Z.div(u(),e=>e.theme.colors.text.placeholder),f=o.Z.div(h(),e=>e.theme.typo.body1.regular,e=>e.theme.colors.text.secondary),y=o.Z.div(p())},16128:function(e,n,t){"use strict";t.d(n,{O:function(){return r}});var i=t(67294);let r=e=>{let[n,t]=(0,i.useState)(!1),r=(0,i.useCallback)(()=>{t(n=>n?(l([]),!1):!!e&&(l(e),d(!1),!0))},[e]),[o,l]=(0,i.useState)([]),[s,d]=(0,i.useState)(!1),c=(0,i.useCallback)(e=>{l(n=>{let i=n.findIndex(n=>n===e);return(t(!1),i>-1)?n.filter(n=>n!==e):(d(!1),[...n,e])})},[]),a=(0,i.useCallback)(e=>{l(n=>n.filter(n=>n!==e))},[]),u=(0,i.useCallback)(e=>o.includes(e),[o]);return{checkedList:o,allChecked:n,onClickAllCheck:r,onClickCheck:c,getChecked:u,clear:(0,i.useCallback)(()=>{t(!1),l([])},[]),unchecked:a,isCheckedError:s,setIsCheckedError:d}}},52975:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return nx}});var i=t(85893),r=t(82729),o=t(67294),l=t(16829),s=t(11163),d=t(54035),c=t(68608),a=t(43),u=t(96781),h=t(83947),p=t(75331),x=t(32607),m=t(48415),g=t(46882),f=t(75854),y=t(17e3),Z=t(27484),j=t.n(Z),_=t(59475),b=t(83486),v=t
1(87058),C=t(12796),w=t(16168),k=t(6914),H=t(25479),D=t(43656),I=t(30236),B=t(85945),S=t(48228),M=t(2905),R=t(99292),N=t(42173),L=t(19865),E=t(14148),F=t(4044),A=t(68457),Y=t(15615),T=t(50484),q=t(89189),z=t(23384),W=t(86640);function O(){let e=(0,r._)(["\n width: 100%;\n max-height: 520px;\n overflow-y: auto;\n\n display: flex;\n flex-direction: column;\n gap: 12px;\n"]);return O=function(){return e},e}function V(){let e=(0,r._)(["\n ","\n"]);return V=function(){return e},e}function P(){let e=(0,r._)(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin-bottom: 12px;\n"]);return P=function(){return e},e}function G(){let e=(0,r._)(["\n min-width: 100px;\n height: 40px;\n\n display: flex;\n align-items: flex-start;\n padding: 8px 12px;\n\n border-radius: 8px;\n background: ",";\n"]);return G=function(){return e},e}function K(e){let{open:n,onClose:t,data:r}=e,{showSnackbar:l}=(0,Y.D)(),s=(0,B.NL)(),d=(0,A.Z)((null==r?void 0:r.total_loan_limit)?String(r.total_loan_limit||0):"","amount"),[c,a]=(0,o.useState)(r.is_set_limit),[u,h]=(0,o.useState)(r.is_set_purpose_limit),[p,x]=(0,o.useState)(()=>Object.fromEntries((r.purpose_limits||[]).map(e=>[e.purpose_setting_id,e.total_loan_limit?String(e.total_loan_limit):""]))),[m,g]=(0,o.useState)(""),[f,y]=(0,o.useState)(""),Z=(0,o.useMemo)(()=>d.value&&r.current_loan_amount?(r.current_loan_amount||0)/Number(d.value)*100:null,[d.value,r.current_loan_amount]),j=null!==Z?Z.toFixed(Z%1?2:0):"-%",v=(0,o.useMemo)(()=>(r.purpose_limits||[]).reduce((e,n)=>{let t=Number(p[n.purpose_setting_id]||0);return e+(Number.isNaN(t)?0:t)},0),[r.purpose_limits,p]),w=e=>{if("0"===e){d.setError(" "),g("0ìì¼ë¡ ì
ë ¥íì¤ ì ììµëë¤");return}g(""),d.setError("")},O=(e,n)=>{if("0"===n){y("ì©ëë³ ìì°ì 0ìì¼ë¡ ì
ë ¥í ì ììµëë¤");return}x(t=>({...t,[e]:n})),y("")},V=(0,S.D)(_.Z.admin.loan.limit.updateLimit,{onSuccess:()=>{t(),s.refetchQueries(b.M.dashboard),l({message:"ëì¶ ì´ ìì°ì´ ë³ê²½ëì´ ë°ìëììµëë¤."})},onError:()=>{t(),l({message:"ëì¶ ì´ ìì°ì´ ë°ìëì§ ìììµëë¤.",type:"error"})}}),P=(0,T.Z)(()=>{if(c&&""===d.value){d.setError(" "),g("ìì°ì ì
ë ¥í´ ì£¼ì¸ì");return}if(c&&u){if((r.purpose_limits||[]).some(e=>!p[e.purpose_setting_id])){y("모ë ì©ëì ìì°ì ì
ë ¥í´ ì£¼ì¸ì");return}if(v!==Number(d.value)){y("ì©ëë³ ìì°ì í©ì´ ì´ ìì°ê³¼ ê°ìì¼ í©ëë¤");return}}V.mutate({is_set_limit:c,total_loan_limit:Number(d.value),is_set_purpose_limit:c&&u,purpose_limits:c&&u?(r.purpose_limits||[]).map(e=>({purpose_setting_id:e.purpose_setting_id,total_loan_limit:Number(p[e.purpose_setting_id])})):[]})});return(0,i.jsx)(N.Z,{open:n,title:(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",children:[(0,i.jsx)(H.Z,{typography:z.Z.h6.bold,children:"ìì° ì¤ì í기"}),(0,i.jsx)(H.Z,{typography:z.Z.body3.medium,children:"ìì°ì ì¤ì í´ëë©´ ì¼ë§ë ìì§ëìëì§ ì½ê² ì ì ììµëë¤."})]}),content:(0,i.jsxs)(X,{children:[(0,i.jsxs)(M.x,{borderRadius:8,padding:"16px",bgColor:q.Z.primaryBlue[100],borderColor:q.Z.primaryBlue[400],children:[(0,i.jsx)(J,{children:"ìì° ì¤ì ì¬ë¶"}),(0,i.jsx)(k.Z,{space:4}),(0,i.jsxs)(E.Z,{gap:6,children:[(0,i.jsx)(L.Z,{checked:!c,title:"ìì° ì¤ì ìí¨",height:36,borderRadius:8,onClick:()=>{a(!1),h(!1),y("")}}),(0,i.jsx)(L.Z,{checked:c,title:"ìì° ì¤ì í¨",height:36,borderRadius:8,onClick:()=>a(!0)})]}),c&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k.Z,{space:24}),(0,i.jsx)(J,{children:"ìì° ì
ë ¥"}),(0,i.jsx)(k.Z,{space:4}),(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",autoHeight:!0,children:[(0,i.jsx)(F.Z,{...d,placeholder:"ìì°ì ì
ë ¥í´ ì£¼ì¸ì",rightIcon:(0,i.jsx)(H.Z,{typography:z.Z.body2.regular,children:"ì"}),iconWidth:18,textAlign:"end",value:d.value?Number(d.value).toLocaleString():"",messageAlign:"end",onChange:e=>d.onChange(e,w)}),(0,i.jsxs)(C.Z,{gap:4,justifyContent:"flex-end",autoHeight:!0,children:[(0,i.jsx)(D.Z,{sx:{width:16,height:16,color:q.Z.text.secondary}}),(0,i.jsxs)(H.Z,{typography:z.Z.body3.regular,children:["íì¬ ì´ ìì°"," ",r.total_loan_limit?(0,W.T)(r.total_loan_limit):"-","ì (íì¬ ì ì² ê¸ì¡"," ",r.current_loan_amount?(0,W.T)(r.current_loan_amount):"-","ì)"]})]}),d.isError&&m&&(0,i.jsxs)(C.Z,{gap:4,justifyContent:"flex-end",autoHeight:!0,children:[(0,i.jsx)(D.Z,{sx:{width:16,height:16,color:q.Z.error.main}}),(0,i.jsx)(H.Z,{typography:z.Z.body3.regular,color:q.Z.error.main,children:m})]})]}),(0,i.jsx)(k.Z,{space:24}),(0,i.jsx)(J,{children:"ì©ëë³ ìì° ì¤ì ì¬ë¶"}),(0,i.jsx)(k.Z,{space:4}),(0,i.jsxs)(E.Z,{gap:6,children:[(0,i.jsx)(L.Z,{checked:!u,title:"ì©ëë³ ìì° ì¤ì ìí¨",he
1ight:36,borderRadius:8,onClick:()=>{h(!1),y("")}}),(0,i.jsx)(L.Z,{checked:u,title:"ì©ëë³ ìì° ì¤ì í¨",height:36,borderRadius:8,onClick:()=>h(!0)})]}),u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k.Z,{space:16}),(r.purpose_limits||[]).map(e=>(0,i.jsxs)(Q,{children:[(0,i.jsx)(H.Z,{typography:z.Z.body3.medium,children:e.purpose_name}),(0,i.jsx)(F.Z,{value:p[e.purpose_setting_id]?Number(p[e.purpose_setting_id]).toLocaleString():"",placeholder:"ìì°ì ì
ë ¥í´ ì£¼ì¸ì",rightIcon:(0,i.jsx)(H.Z,{typography:z.Z.body2.regular,children:"ì"}),iconWidth:18,textAlign:"end",onChange:n=>{let t=n.target.value.replace(/[^0-9]/g,"");O(e.purpose_setting_id,t)}})]},e.purpose_setting_id)),(0,i.jsx)(C.Z,{gap:4,justifyContent:"flex-end",autoHeight:!0,children:(0,i.jsxs)(H.Z,{typography:z.Z.body3.regular,color:d.value&&v!==Number(d.value)?q.Z.error.main:q.Z.text.secondary,children:["ì©ëë³ ìì° í©ê³ ",(0,W.T)(v),"ì / ì´ìì°"," ",d.value?(0,W.T)(Number(d.value)):"-","ì"]})}),f&&(0,i.jsxs)(C.Z,{gap:4,justifyContent:"flex-end",autoHeight:!0,children:[(0,i.jsx)(D.Z,{sx:{width:16,height:16,color:q.Z.error.main}}),(0,i.jsx)(H.Z,{typography:z.Z.body3.regular,color:q.Z.error.main,children:f})]})]})]})]}),(0,i.jsx)(M.x,{borderRadius:8,padding:"16px",bgColor:q.Z.gray[100],children:(0,i.jsxs)(C.Z,{gap:4,justifyContent:"flex-start",children:[(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",autoWidth:!0,children:[(0,i.jsx)(H.Z,{typography:z.Z.small.regular,color:q.Z.text.secondary,children:"íì¬ ëì¶ ì´ì©ë¥ "}),(0,i.jsx)(U,{children:(0,i.jsxs)(H.Z,{typography:z.Z.body1.medium,color:r.fund_operation_rate?Number(r.fund_operation_rate)>100?q.Z.error.main:q.Z.text.primary:q.Z.text.disabled,children:[r.fund_operation_rate||"-","%"]})})]}),(0,i.jsx)(I.Z,{sx:{width:16,height:16,color:q.Z.text.secondary}}),(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",autoWidth:!0,children:[(0,i.jsx)(H.Z,{typography:z.Z.small.regular,color:q.Z.text.secondary,children:"ë³ê²½ ëì¶ ì´ì©ë¥ "}),(0,i.jsx)(U,{children:(0,i.jsx)(H.Z,{typography:z.Z.body1.medium,children:c?d.value?"".concat(j,"%"):"-%":"-% (ì¤ì íì§ ìì)"})})]})]})})]}),actions:[(0,i.jsx)(R.Z,{variant:"outlined",size:"medium",borderRadius:0,isFullWidth:!0,color:"default",onClick:t,children:"ì·¨ì"},"close-btn"),(0,i.jsx)(R.Z,{size:"medium",borderRadius:0,isFullWidth:!0,onClick:P,children:"ì ì¥í기"},"confirm-btn")]})}let X=l.Z.div(O()),J=l.Z.label(V(),e=>e.theme.typo.body3.medium),Q=l.Z.div(P()),U=l.Z.div(G(),e=>e.theme.colors.common.white);var $=t(31853),ee=t(73702),en=t(66103);function et(){let e=(0,r._)(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n background: ",";\n color: ",";\n\n ",";\n\n &:hover {\n ",";\n }\n"]);return et=function(){return e},e}function ei(){let e=(0,r._)(["\n width: 100%;\n\n display: flex;\n flex-direction: column;\n\n border-radius: 8px;\n border: 1px solid ",";\n "]);return ei=function(){return e},e}function er(){let e=(0,r._)(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n padding: 12px;\n\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n background-color: ",";\n\n ","\n "]);return er=function(){return e},e}function eo(){let e=(0,r._)(["\n display: flex;\n\n & > div:not(:last-child) {\n border-right: 1px solid\n ",";\n }\n "]);return eo=function(){return e},e}function el(){let e=(0,r._)(["\n width: 100%;\n padding: 4px 16px;\n border-top: 1px solid ",";\n background-color: ",";\n\n ","\n "]);return el=function(){return e},e}function es(){let e=(0,r._)(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 10px;\n\n flex: 1;\n\n padding: ",";\n "]);return es=function(){return e},e}function ed(){let e=(0,r._)(["\n width: 100%;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 4px;\n\n ",";\n\n & > label {\n cursor: pointer;\n ",";\n }\n\n &:hover {\n & > label {\n ",";\n }\n\n ",";\n }\n\n cursor: pointer;\n "]);return ed=function(){return e},e}function ec(){let e=(0,r._)(["\n color: ",";\n "]);return ec=function(){return e},e}function ea(){let e=(0,r._)(["\n ","\n"]);return ea=function(){return e},e}function eu(){let e=(0,r._)(["\n width: 100%;\n height: 44px;\n padding: 8px;\n\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 4px;\n\n border-radius: 8px;\n background: ",";\n ",";\n"]);return eu=function(){return e},e}function eh(){let e=(0,r._)(["\n ",";\n\n color: ",";\n background-color: transparent;\n cursor: pointer;\n\n &:hover {\n ",";\n color: ",";\n }\n"]);return eh=function(){return e},e}function ep(){let e=(0,r._)(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding: 12px 16px 12px 28px;\n border-top: 1px solid ",";\n background-color: ",";\n border-left: 3px solid ",";\n"]);return ep=function(){return e},e}function ex(){let e=(0,r._)(["\n ","\n"]);return ex=function(){return e},e}function em(){let e=(0,r._)(["\n display: grid;\n grid-template-columns: 1fr 1fr 1.2fr;\n gap: 16px;\n"]);return em=function(){return e},e}function eg(){let e=(0,r._)(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"]);return eg=function(){return e},e}function ef(){let e=(0,r._)(["\n width: 100%;\n height: 12px;\n\n border-radius: 4px;\n background-color: ",";\n overflow: hidden;\n "]);return ef=function(){return e},e}function ey(){let e=(0,r._)(["\n width: ","%;\n height: 12px;\n\n transition: width 0.3s ease-in-out;\n border-radius: 4px 0 0 4px;\n background-color: ",";\n "]);return ey=function(){return e},e}function eZ(){var e,n,t,r,l,d,c,a,Z,D;let I=(0,s.useRouter)(),{isLoggedIn:B}=(0,u.Z)(),{showModal:S,openModal:M,closeModal:R}=(0,ee.d)(),{data:N,isLoading:L,refetch:E}=(0,y.a)({queryKey:b.M.dashboard,queryFn:_.Z.admin.home.get.dashboard,enabled:B}),[F,A]=(0,o.useState)(j()().format("YYYY-MM-DD HH:mm"));(0,o.useEffect)(()=>{A(j()().format("YYYY-MM-DD HH:mm"))},[N]);let Y=e=>{if(null==e)return"-";let n=Number(e);return Number.isNaN(n)?"-":n.toFixed(n%1?2:0)},T=(0,o.useMemo)(()=>(null==N?void 0:N.company_loan_setting)?Y(N.company_loan_setting.fund_operation_rate):"-",[null==N?void 0:null===(e=N.company_loan_setting)||void 0===e?void 0:e.fund_operation_rate]),O=e=>{let{label:n,count:t,filter:r}=e;return(0,i.jsxs)(eb.Container,{onClick:()=>{I.push({pathname:$.Z.admin.loan.history,query:{status:r}})},children:[(0,i.jsx)("label",{children:n}),(0,i.jsxs)("div",{children:[(0,i.jsx)(eb.Count,{isDisabled:0===t,children:t}),"ê±´"]})]})},V=e=>{let{value:n,color:t,onClick:r}=e;return(0,i.jsxs)("div",{onClick:r,style:{cursor:r?"pointer":"default",display:"inline-flex",alignItems:"center"},children:[(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,color:n?t||q.Z.primaryBlue[500]:q.Z.text.disabled,children:n}),(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,children:"ê±´"})]})};return L?(0,i.jsx)(w.Z,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(C.Z,{justifyContent:"space-between",children:[(0,i.jsx)(H.Z,{typography:z.Z.h6.bold,children:"ì¬ë´ëì¶ì íëì íì¸íì¸ì"}),(0,i.jsxs)(C.Z,{gap:8,autoWidth:!0,children:[(0,i.jsxs)(H.Z,{typography:z.Z.body1.medium,children:[F," 기ì¤"]}),(0,i.jsxs)(ej,{onClick:()=>{E(),A(j()().format("YYYY-MM-DD HH:mm"))},children:["ìë¡ê³ 침 ",(0,i.jsx)(h.Z,{sx:{width:20,height:20}})]})]})]}),(0,i.jsx)(k.Z,{space:8}),(0,i.jsxs)(e_.Container,{children:[(0,i.jsxs)(e_.Header,{bgColor:q.Z.chip.orangeLight,children:[(0,i.jsx)(p.Z,{}),(0,i.jsxs)("div",{children:["ì´"," ",(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,color:q.Z.primaryBlue[500],children:(null==N?void 0:N.total_count)||0}),"ê±´ì ëì¶ ì ì² íí©"]})]}),(0,i.jsxs)(e_.Row,{children:[(0,i.jsxs)(e_.Cell,{children:[(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,children:"ì ì² / ê²í "}),(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",children:[(0,i.jsx)(O,{label:"ìë¥ ê²í ì¤",count:(null==N?void 0:N.under_review_count)||0,filter:"ìë¥ê²í ì¤"}),(0,i.jsx)(O,{label:"ìë¥ ê²í ìë£",count:(null==N?void 0:N.reviewing_complete_count)||0,filter:"ìë¥ê²í ìë£"})]})]}),(0,i.jsxs)(e_.Cell,{children:[(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,children:"ê³ì½ ì§íì¤"}),(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",children:[(0,i.jsx)(O,{label:"ë´ë¶ì¹ì¸ ìë£",count:(null==N?void 0:N.internal_approval_complete_count)||0,filter:"ë´ë¶ì¹ì¸ìë£"}),(0,i.jsx)(O,{label:"ê³ì½ ìë£",count:(null==N?void 0:N.contract_complete_count)||0,filter:"ê³ì½ìë£"}),(0,i.jsx)(O,{label:"ë³´ì¦ë³´í ì¬ì¬ì¤",count:(null==N?void 0:N.guarantee_insurance_evaluation_count)||0,filter:"ë³´ì¦ë³´íì¬ì¬ì¤"}),(0,i.jsx)(O,{label:"ê³µì¦ ì§íì¤",count:(null==N?void 0:N.notarization_processing_count)||0,filter:"ê³µì¦ì§íì¤"})]})]}),(0,i.jsxs)(e_.Cell,{children:[(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,children:"ì§ê¸"}),(0,i.jsx)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",children:(0,i.jsx)(O,{label:"ì§ê¸ ë
1기",count:(null==N?void 0:N.pending_count)||0,filter:"ì§ê¸ë기"})})]}),(0,i.jsxs)(e_.Cell,{children:[(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,children:"ìí ì§í"}),(0,i.jsx)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",children:(0,i.jsx)(O,{label:"ìíì¤",count:(null==N?void 0:N.repayment_processing_count)||0,filter:"ìíì¤"})})]})]}),(0,i.jsx)(e_.RowHeader,{children:"í¹ì´ ì¬í"}),(0,i.jsxs)(e_.Row,{children:[(0,i.jsx)(e_.Cell,{children:(0,i.jsx)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",children:(0,i.jsx)(O,{label:"ë¹ì¹ì¸",count:(null==N?void 0:N.reject_count)||0,filter:"ë¹ì¹ì¸"})})}),(0,i.jsx)(e_.Cell,{children:(0,i.jsx)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",children:(0,i.jsx)(O,{label:"ì§ê¸ ìë£",count:(null==N?void 0:N.paid_count)||0,filter:"ì§ê¸ìë£"})})}),(0,i.jsx)(e_.Cell,{children:(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",children:[(0,i.jsx)(O,{label:"ì¤ëìí ì ì²",count:(null==N?void 0:N.early_repayment_deposit_pending_count)||0,filter:"ì¤ëìíì ì²"}),(0,i.jsx)(O,{label:"ì¤ëìí ìë£",count:(null==N?void 0:N.early_repayment_deposit_complete_count)||0,filter:"ì¤ëìíìë£"}),(0,i.jsx)(O,{label:"ìíì¢
ë£",count:(null==N?void 0:N.repayment_complete_count)||0,filter:"ìíì¢
ë£"})]})})]})]}),(0,i.jsx)(k.Z,{space:16}),(0,i.jsxs)(e_.Container,{children:[(0,i.jsxs)(e_.Header,{children:[(0,i.jsx)(x.Z,{}),j()().year(),"ë
ìë¥ ì ì¶ ëì íí©"]}),(0,i.jsxs)(e_.Row,{children:[(0,i.jsx)(e_.Cell,{children:(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",children:[(0,i.jsx)(H.Z,{typography:z.Z.body2.medium,children:"ì ì¶ ìì "}),(0,i.jsx)(V,{value:(null==N?void 0:N.document_not_submitted_count)||0,onClick:()=>I.push($.Z.admin.loan.document)})]})}),(0,i.jsx)(e_.Cell,{children:(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",children:[(0,i.jsx)(H.Z,{typography:z.Z.body2.medium,children:"ì ì¶ ìë£"}),(0,i.jsx)(V,{value:(null==N?void 0:N.document_submitted_count)||0,onClick:()=>I.push($.Z.admin.loan.document)})]})}),(0,i.jsx)(e_.Cell,{children:(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",children:[(0,i.jsxs)(C.Z,{justifyContent:"space-between",children:[(0,i.jsx)(H.Z,{typography:z.Z.body2.medium,children:"ì ì¶ ê¸°ê° ê²½ê³¼"}),(0,i.jsx)(m.Z,{sx:{width:16,height:16,color:q.Z.error.main}})]}),(0,i.jsx)(V,{value:(null==N?void 0:N.document_overdue_count)||0,color:q.Z.error.main,onClick:()=>I.push($.Z.admin.loan.document)})]})}),(0,i.jsx)(e_.Cell,{children:(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-start",children:[(0,i.jsx)(H.Z,{typography:z.Z.body2.medium,children:"íì¸ ìë£"}),(0,i.jsx)(V,{value:(null==N?void 0:N.document_confirmed_count)||0,onClick:()=>I.push($.Z.admin.loan.document)})]})})]})]}),(0,i.jsx)(k.Z,{space:16}),(0,i.jsxs)(e_.Container,{children:[(0,i.jsxs)(e_.Header,{children:[(0,i.jsx)(g.Z,{}),"ì¬ë´ëì¶ ìì° íí©"]}),(0,i.jsxs)(e_.Row,{borderColor:q.Z.gray.stroke,children:[(0,i.jsxs)(e_.Cell,{padding:"12px 16px",children:[(0,i.jsxs)(ev,{children:["íì¬ ì ì² ê¸ì¡ ",(0,i.jsx)(H.Z,{children:"(ìí ì¢
ë£, ë¹ì¹ì¸ ì ì¸)"})]}),(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-end",autoHeight:!0,children:[(0,i.jsxs)(eC,{children:[(0,i.jsx)(H.Z,{typography:z.Z.h5.bold,color:Number(T)>100?q.Z.error.main:(null==N?void 0:null===(n=N.company_loan_setting)||void 0===n?void 0:n.current_loan_amount)?q.Z.text.primary:q.Z.text.disabled,children:(null==N?void 0:null===(t=N.company_loan_setting)||void 0===t?void 0:t.current_loan_amount)?(0,W.T)(N.company_loan_setting.current_loan_amount):"-(ì ì²ê¸ì¡ ìì)"}),"ì"]}),(0,i.jsx)(H.Z,{typography:z.Z.body3.regular,color:q.Z.text.secondary,align:"right",children:(null==N?void 0:null===(r=N.company_loan_setting)||void 0===r?void 0:r.current_loan_amount_updated)?"".concat((0,en.ju)(null==N?void 0:N.company_loan_setting.current_loan_amount_updated,!1)," 기ì¤"):"ì ì²ê¸ì¡ ìì"})]})]}),(0,i.jsxs)(e_.Cell,{padding:"12px 16px",children:[(0,i.jsxs)(C.Z,{gap:24,autoHeight:!0,justifyContent:"space-between",children:[(0,i.jsx)(ev,{children:"ì¬ë´ëì¶ ì´ ìì°"}),(0,i.jsx)(ew,{onClick:M,children:(0,i.jsxs)(C.Z,{gap:4,alignItems:"center",children:["ìì° ì¤ì í기",(0,i.jsx)(f.Z,{sx:{width:20,height:20}})]})})]}),(0,i.jsxs)(C.Z,{gap:4,flexDirection:"column",alignItems:"flex-end",autoHeight:!0,children:[(0,i.jsxs)(eC,{children:[(0,i.jsx)(H.Z,{typography:z.Z.h5.bold,color:(null==N?void 0:null===(l=N.company_loan_setting)||void 0===l?void 0:l.total_loan_limit)?q.Z.text.primary:q.Z.text.disabled,children:(null==N?void 0:null===(d=N.company_loan_setting)||void 0===d?void 0:d.total_loan_limit)?(0,W.T)(null==N?void 0:null===(c=N.company_loan_setting)||void 0===c?void 0:c.total_loan_limit):"- (ì¤ì ëì§ ìì)"}),"ì"]}),(0,i.jsx)(H.Z,{typography:z.Z.body3.regular,color:q.Z.text.secondary,align:"right",children:(null==N?void 0:null===(a=N.company_loan_setting)||void 0===a?void 0:a.total_loan_limit_updated)?"".concat((0,en.ju)(null==N?void 0:null===(Z=N.company_loan_setting)||void 0===Z?void 0:Z.total_loan_limit_updated)," ê¸°ì¤ ë°ì"):"ì¤ì ëì§ ìì"})]})]})]}),(0,i.jsx)(v.Z,{height:1,color:q.Z.gray.stroke}),(0,i.jsx)(e_.Row,{children:(0,i.jsxs)(e_.Cell,{children:[(0,i.jsxs)(C.Z,{gap:8,justifyContent:"flex-start",children:[(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,children:"ëì¶ ì´ì©ë¥ "}),(0,i.jsxs)(H.Z,{typography:z.Z.body1.bold,color:"-"===T?q.Z.text.disabled:Number(T)>100?q.Z.error.main:q.Z.text.primary,children:[T,"%"]})]}
1),(0,i.jsx)(eB.BackgroundBar,{children:(0,i.jsx)(eB.ActiveBar,{value:"-"===T?"0":T})})]})}),(null==N?void 0:null===(D=N.company_loan_setting)||void 0===D?void 0:D.is_set_purpose_limit)&&(N.company_loan_setting.purpose_limits||[]).length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e_.RowHeader,{children:"ì©ëë³ êµ¬ì±"}),(N.company_loan_setting.purpose_limits||[]).map(e=>{let n=Y(e.fund_operation_rate);return(0,i.jsxs)(ek,{children:[(0,i.jsx)(eH,{children:e.purpose_name}),(0,i.jsxs)(eD,{children:[(0,i.jsxs)(eI,{children:[(0,i.jsx)(H.Z,{typography:z.Z.small.regular,color:q.Z.text.secondary,children:"íì¬ ì ì² ê¸ì¡"}),(0,i.jsx)(H.Z,{typography:z.Z.body2.bold,children:e.current_loan_amount?"".concat((0,W.T)(e.current_loan_amount),"ì"):"-(ì ì²ê¸ì¡ ìì)"})]}),(0,i.jsxs)(eI,{children:[(0,i.jsx)(H.Z,{typography:z.Z.small.regular,color:q.Z.text.secondary,children:"ì©ëë³ ì´ì© ìì°"}),(0,i.jsx)(H.Z,{typography:z.Z.body2.bold,children:e.total_loan_limit?"".concat((0,W.T)(e.total_loan_limit),"ì"):"- (ì¤ì ëì§ ìì)"})]}),(0,i.jsxs)(eI,{children:[(0,i.jsxs)(C.Z,{gap:6,justifyContent:"space-between",children:[(0,i.jsx)(H.Z,{typography:z.Z.small.regular,color:q.Z.text.secondary,children:"ì´ì©ë¥ "}),(0,i.jsxs)(H.Z,{typography:z.Z.body2.bold,color:"-"===n?q.Z.text.disabled:Number(n)>100?q.Z.error.main:q.Z.text.primary,children:[n,"%"]})]}),(0,i.jsx)(eB.BackgroundBar,{children:(0,i.jsx)(eB.ActiveBar,{value:"-"===n?"0":n})})]})]})]},e.purpose_setting_id)})]})]}),S&&(null==N?void 0:N.company_loan_setting)&&(0,i.jsx)(K,{open:S,onClose:R,data:N.company_loan_setting})]})}let ej=l.Z.button(et(),e=>e.theme.colors.common.white,e=>e.theme.colors.primaryBlue[500],e=>e.theme.typo.body1.medium,e=>e.theme.typo.body1.lined.medium),e_={Container:l.Z.div(ei(),e=>e.theme.colors.gray.stroke),Header:l.Z.div(er(),e=>e.bgColor||e.theme.colors.gray[100],e=>e.theme.typo.body1.bold),Row:l.Z.div(eo(),e=>e.borderColor||e.theme.colors.divider),RowHeader:l.Z.div(el(),e=>e.theme.colors.gray.stroke,e=>e.theme.colors.gray[100],e=>e.theme.typo.body2.bold),Cell:l.Z.div(es(),e=>e.padding||"10px")},eb={Container:l.Z.div(ed(),e=>e.theme.typo.body1.bold,e=>e.theme.typo.body2.medium,e=>e.theme.typo.body2.lined.medium,e=>e.theme.typo.body1.lined.bold),Count:l.Z.span(ec(),e=>e.isDisabled?e.theme.colors.text.disabled:e.theme.colors.primaryBlue[500])},ev=l.Z.span(ea(),e=>e.theme.typo.body1.bold),eC=l.Z.div(eu(),e=>e.theme.colors.gray[100],e=>e.theme.typo.body3.regular),ew=l.Z.button(eh(),e=>e.theme.typo.body1.medium,e=>e.theme.colors.primaryBlue[500],e=>e.theme.typo.body1.lined.medium,e=>e.theme.colors.primaryBlue[600]),ek=l.Z.div(ep(),e=>e.theme.colors.gray.stroke,e=>e.theme.colors.primaryBlue[100],e=>e.theme.colors.primaryBlue[400]),eH=l.Z.div(ex(),e=>e.theme.typo.body2.bold),eD=l.Z.div(em()),eI=l.Z.div(eg()),eB={BackgroundBar:l.Z.div(ef(),e=>e.theme.colors.gray[200]),ActiveBar:l.Z.div(ey(),e=>e.value,e=>e.theme.colors.primaryBlue[500])};var eS=t(80450),eM=t(3567),eR=t(4480),eN=t(92331),eL=t(56830),eE=t(67975),eF=t(85876),eA=t(97597),eY=t(59021),eT=t(55289),eq=t(29901),ez=t(26464);function eW(){let e=(0,r._)(["\n width: 600px;\n height: 360px;\n\n background-color: ",";\n\n border-radius: 16px;\n\n box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);\n"]);return eW=function(){return e},e}function eO(){let e=(0,r._)(["\n padding: 32px 24px;\n"]);return eO=function(){return e},e}function eV(){let e=(0,r._)(["\n width: 100%;\n\n padding: 16px;\n\n display: flex;\n flex-direction: column;\n"]);return eV=function(){return e},e}function eP(){let e=(0,r._)(["\n all: unset;\n\n cursor: pointer;\n\n display: flex;\n align-items: center;\n gap: 16px;\n\n padding: 24px 16px;\n\n background-color: white;\n border: 1px solid white;\n border-radius: 8px;\n\n &:hover {\n background-color: ",";\n border: 1px solid ",";\n }\n"]);return eP=function(){return e},e}function eG(){let e=(0,r._)(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n flex: 1;\n"]);return eG=function(){return e},e}function eK(e){let{open:n,goToCreatePage:t=()=>{},onClickClose:r}=e;return n?(0,i.jsx)(eq.Z,{onClickOutside:r,children:(0,i.jsxs)(eX,{children:[(0,i.jsx)(eJ,{children:(0,i.jsx)(H.Z,{typography:z.Z.h6.bold,children:"ìì±/ì
ë¡ë"})}),(0,i.jsxs)(eQ,{children:[(0,i.jsxs)(eU,{onClick:()=>t("text"),children:[(0,i.jsx)(ez.Z,{size:56,color:q.Z.chip.greenMain,bgColor:q.Z.chip.greenLight,children:(0,i.jsx)(eA.Z,{})}),(0,i.jsxs)(e$,{children:[(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,children:"ì§ì ìì±í기"}),(0,i.jsx)(H.Z,{typography:z.Z.body2.regular,children:"ê³µì§ ëë ê·ì ë´ì©ì ì§ì ìì±íì¬ ë±ë¡í©ëë¤"})]}),(0,i.jsx)(eY.Z,{sx:{width:24,height:24,color:q.Z.text.secondary}})]}),(0,i.jsx)(v.Z,{height:1,my:8}),(0,i.jsxs)(eU,{onClick:()=>t("file"),children:[(0,i.jsx)(ez.Z,{size:56,color:q.Z.chip.orangeMain,bgColor:q.Z.chip.orangeLight,children:(0,i.jsx)(eT.Z,{})}),(0,i.jsxs)(e$,{children:[(0,i.jsx)(H.Z,{typography:z.Z.body1.bold,children:"íì¼ì
1 ì
ë¡ëíì¬ ë±ë¡í기"}),(0,i.jsx)(H.Z,{typography:z.Z.body2.regular,children:"ì´ë¯¸ ìì±ë íì¼ì ì
ë¡ëíì¬ ë±ë¡í©ëë¤"})]}),(0,i.jsx)(eY.Z,{sx:{width:24,height:24,color:q.Z.text.secondary}})]})]})]})}):null}let eX=l.Z.div(eW(),e=>e.theme.colors.common.white),eJ=l.Z.div(eO()),eQ=l.Z.div(eV()),eU=l.Z.button(eP(),e=>e.theme.colors.primaryBlue[100],e=>e.theme.colors.primaryBlue[400]),e$=l.Z.div(eG());var e0=t(75174),e1=t(24689),e2=t(16128),e6=t(8206);function e9(){let e=(0,r._)(["\n display: flex;\n justify-content: space-between;\n"]);return e9=function(){return e},e}function e4(){let e=(0,r._)(["\n display: flex;\n align-items: center;\n"]);return e4=function(){return e},e}function e3(){let e=(0,r._)(["\n display: flex;\n align-items: center;\n"]);return e3=function(){return e},e}function e8(){let e=(0,r._)(["\n ","\n"]);return e8=function(){return e},e}function e5(){let e=(0,r._)(["\n ","\n margin-left: 8px;\n color: ",";\n"]);return e5=function(){return e},e}function e7(){let e=(0,r._)(["\n width: 28px;\n height: 28px;\n min-width: 28px;\n min-height: 28px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n background-color: ",";\n border-radius: 4px;\n\n ","\n\n margin-right: 8px;\n"]);return e7=function(){return e},e}function ne(){let e=(0,r._)(["\n width: 100%;\n\n cursor: pointer;\n\n padding: 24px;\n\n border: 1px solid ",";\n border-radius: 12px;\n"]);return ne=function(){return e},e}let nn="56px 90px auto 110px 120px";function nt(){let e=(0,s.useRouter)(),{isLoggedIn:n}=(0,u.Z)(),t=(0,eR.Zl)(eN.z),{isLoading:r,isError:l,data:d,refetch:c}=(0,y.a)({queryKey:["common","notice","list"],queryFn:_.Z.common.notice.get.list,enabled:n}),a=(0,e2.O)((null==d?void 0:d.post_list.map(e=>e.uuid))||[]),[h,p]=(0,o.useState)(!1),[x,m]=(0,o.useState)(""),g=(0,T.Z)(e=>{p(!0),m(e||"")}),f=(0,o.useCallback)(n=>{e.push({pathname:$.Z.admin.common.notice.write,query:{category:x,type:n}})},[e,x]),{showSnackbar:Z}=(0,Y.D)(),j=(0,o.useCallback)(async(e,n)=>{Z({message:"íì¼ì ë¤ì´ë¡ëí기 ìí´ ë¶ë¬ì¤ê³ ììµëë¤."});try{let{url:t}=await _.Z.common.notice.get.downloadUrl({postUuid:e,documentUuid:n});window.open(t)}catch(e){Z({message:"íì¼ ë¤ì´ë¡ëì ì¤í¨íìµëë¤. ë¤ì ìëí´ì£¼ì¸ì.",type:"error"})}},[Z]),b=(0,o.useCallback)(n=>{e.push($.Z.admin.common.notice.detail(n))},[e]),[D,I]=(0,o.useState)(!1),[B,M]=(0,o.useState)(""),N=(0,o.useCallback)(()=>{I(!0),M((null==d?void 0:d.post_list.filter(e=>a.checkedList.includes(e.uuid)).map(e=>e.title).join(", "))||"")},[a.checkedList,null==d?void 0:d.post_list]),L=(0,o.useCallback)(()=>{I(!1),M("")},[]),E=(0,S.D)(_.Z.common.notice.deleteList),F=(0,T.Z)(()=>{E.isLoading||(t(!0),E.mutate({delete_post_uuid_list:a.checkedList},{onSuccess:()=>{c(),a.clear(),t(!1),I(!1),Z({message:"ì ííì ê³µì§ì¬íì´ ìì ëììµëë¤."})},onError:()=>{t(!1)}}))}),A=(0,e6.d)(),[q,W]=(0,o.useState)(-1),O=e=>{W(e)},V=()=>{W(-1)};return l?(0,i.jsx)(e1.Z,{onClickRetry:c}):r?(0,i.jsx)(w.Z,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(ni,{children:[(0,i.jsxs)(nr,{children:[(0,i.jsxs)(no,{children:[(0,i.jsx)(nl,{children:"ê³µì§ì¬í"}),(0,i.jsx)(ns,{actived:d.notice_count>0,children:d.notice_count})]}),(0,i.jsx)(v.Z,{width:1,height:20,mx:12}),(0,i.jsxs)(no,{children:[(0,i.jsx)(nl,{children:"ë³µì§ê·ì "}),(0,i.jsx)(ns,{actived:d.welfare_regulation_count>0,children:d.welfare_regulation_count})]}),(0,i.jsx)(v.Z,{width:1,height:20,mx:12}),(0,i.jsxs)(no,{children:[(0,i.jsx)(nl,{children:"ê°ì´ë"}),(0,i.jsx)(ns,{actived:d.service_guide_count>0,children:d.service_guide_count})]})]}),(0,i.jsxs)(C.Z,{justifyContent:"flex-end",gap:8,children:[(0,i.jsx)(R.Z,{variant:"contained",color:"default",size:"small",width:100,onClick:()=>N(),disabled:0===a.checkedList.length,children:"ìì í기"}),(0,i.jsx)(R.Z,{variant:"outlined",color:"primaryBlue",size:"small",width:148,onClick:()=>g(),children:"ìì±/ì
ë¡ë í기"})]})]}),(0,i.jsx)(k.Z,{space:16}),(0,i.jsxs)(eE.Z,{height:"100%",children:[(0,i.jsx)(eE.Z.ScrollContainer,{children:(0,i.jsxs)(eE.Z.Container,{children:[(0,i.jsx)(eE.Z.Head,{children:(0,i.jsxs)(eE.Z.Row,{gridTemplateColumns:nn,height:A?42:44,children:[(0,i.jsx)(eE.Z.HeadItem,{children:""}),(0,i.jsx)(eE.Z.HeadItem,{textAlign:"left",children:"ì¢
ë¥"}),(0,i.jsx)(eE.Z.HeadItem,{textAlign:"left",children:"ê³µì§ ì 목"}),(0,i.jsx)(eE.Z.HeadItem,{textAlign:"left",children:"ê³µì§ ì¼ì"}),(0,i.jsx)(eE.Z.HeadItem,{textAlign:"left",children:"ìì±ì"})]})}),(0,i.jsxs)(eE.Z.Body,{children:[0===d.post_list.length&&(0,i.jsx)(e0.Z,{onClickCreate:g}),d.post_list.length>0&&d.post_list.map((e,n)=>(0,i.jsxs)(eE.Z.Row,{gridTemplateColumns:nn,actived:q===n,onMouseEnter:()=>O(n),onMouseLeave:()=>V(),onClick:e.is_file_post?()=>j(e.uuid,e.file_uuid):()=>b(e.id),height:A?56:44,children:[(0,i.jsx)(eE.Z.BodyItem,{children:""}),(0,i.jsx)(eE.Z.BodyItem,{textAlign:"left",children:(0,i.jsx)(eL.Z,{type:e.category})}),(0,i.jsx)(eE.Z.BodyItem,{textAlign:"left",children:(0,i.jsxs)(C.Z,{justifyContent:"flex-start",ga
1p:8,children:[(0,i.jsxs)(H.Z,{typography:z.Z.body2.bold,isEllipsis:A,children:[e.title," "]}),e.is_file_post&&(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M16.125 8.36659C15.5583 5.49159 13.0333 3.33325 10 3.33325C7.59167 3.33325 5.5 4.69992 4.45833 6.69992C1.95 6.96659 0 9.09159 0 11.6666C0 14.4249 2.24167 16.6666 5 16.6666H15.8333C18.1333 16.6666 20 14.7999 20 12.4999C20 10.2999 18.2917 8.51659 16.125 8.36659ZM15.8333 14.9999H5C3.15833 14.9999 1.66667 13.5083 1.66667 11.6666C1.66667 9.95825 2.94167 8.53325 4.63333 8.35825L5.525 8.26659L5.94167 7.47492C6.73333 5.94992 8.28333 4.99992 10 4.99992C12.1833 4.99992 14.0667 6.54992 14.4917 8.69159L14.7417 9.94159L16.0167 10.0333C17.3167 10.1166 18.3333 11.2083 18.3333 12.4999C18.3333 13.8749 17.2083 14.9999 15.8333 14.9999ZM11.2083 8.33325H8.79167V10.8333H6.66667L10 14.1666L13.3333 10.8333H11.2083V8.33325Z",fill:"#4075FF"})})]})}),(0,i.jsx)(eE.Z.BodyItem,{textAlign:"left",children:(0,en.T0)(e.created_at)}),(0,i.jsxs)(eE.Z.BodyItem,{textAlign:"left",children:[(0,i.jsx)(nd,{children:e.writer_name.slice(0,1)}),e.writer_name]})]},e.id))]})]})}),(0,i.jsx)(eE.Z.Checkbox,{width:56,index:-1,checked:a.allChecked,onClick:a.onClickAllCheck}),d.post_list.length>0&&d.post_list.map((e,n)=>(0,i.jsx)(eE.Z.Checkbox,{width:56,index:n,isHover:q===n,onMouseEnter:()=>O(n),onMouseLeave:()=>V(),checked:a.getChecked(e.uuid),onClick:()=>a.onClickCheck(e.uuid)},"".concat(e.id,"-checkbox")))]}),(0,i.jsx)(eK,{open:h,goToCreatePage:f,onClickClose:()=>p(!1)}),(0,i.jsx)(eF.Z,{show:D,title:"ê³µì§ì¬íì",content:"ìì í ê³µì§ì¬íì ë¤ì ëë릴 ì ììµëë¤. ê·¸ëë ìì íìê² ìµëê¹?",target:B,onClickDelete:F,onClickCancel:L})]})}let ni=l.Z.div(e9()),nr=l.Z.div(e4()),no=l.Z.div(e3()),nl=l.Z.div(e8(),e=>e.theme.typo.h6.bold),ns=l.Z.div(e5(),e=>e.theme.typo.h6.bold,e=>e.actived?e.theme.colors.primaryBlue.main:e.theme.colors.text.secondary),nd=l.Z.div(e7(),e=>e.theme.colors.primaryBlue[400],e=>e.theme.typo.body2.medium);function nc(){let e=(0,r._)(["\n width: 100%;\n height: 50px;\n\n display: flex;\n border-bottom: ",";\n background: white;\n"]);return nc=function(){return e},e}function na(){let e=(0,r._)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n padding: 16px 0px 80px 0px;\n"]);return na=function(){return e},e}l.Z.div(ne(),e=>e.theme.colors.gray.stroke);var nu=function(){let{user:e}=(0,u.Z)(),n=(0,s.useRouter)(),[t,r]=(0,o.useState)("notice"),[l,h]=(0,o.useState)("");return(0,o.useEffect)(()=>{n.query.tab&&r(n.query.tab)},[]),(0,o.useEffect)(()=>{let n=[];(null==e?void 0:e.interest_support_access_permission)&&n.push("ì´ìì§ì"),(null==e?void 0:e.company_loan_access_permission)&&(n.push("ì¬ë´ëì¶"),r("dashboard")),(null==e?void 0:e.external_loan_access_permission)&&n.push("ì¬ì¸ëì¶"),1===n.length?h(n[0]):n.length>1&&h("")},[e]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{}),(0,i.jsxs)(a.Z,{title:"í/".concat(l||"ìë¹ì¤"," ê´ë¦¬"),isFullMain:!0,children:[(0,i.jsxs)(nh,{children:[(null==e?void 0:e.company_loan_access_permission)&&(0,i.jsx)(c.Z,{title:"ì¬ë´ëì¶ ëìë³´ë",actived:"dashboard"===t,onClick:()=>r("dashboard")}),(0,i.jsx)(c.Z,{title:"ê³µì§ì¬í ê´ë¦¬",actived:"notice"===t,onClick:()=>r("notice")}),(0,i.jsx)(c.Z,{title:"ì주 묻ë ì§ë¬¸ ê´ë¦¬",actived:"faq"===t,onClick:()=>r("faq")}),(0,i.jsx)(c.Z,{title:"ê·¼ë¡ì ê°ì
ìë´ ë°ì¡",actived:"sendSubscriptionGuide"===t,onClick:()=>r("sendSubscriptionGuide")})]}),(0,i.jsxs)(np,{children:["dashboard"===t&&(0,i.jsx)(eZ,{}),"notice"===t&&(0,i.jsx)(nt,{}),"faq"===t&&(0,i.jsx)(eM.Z,{}),"sendSubscriptionGuide"===t&&(0,i.jsx)(eS.Z,{})]})]})]})};let nh=l.Z.div(nc(),e=>"2px solid ".concat(e.theme.colors.divider)),np=l.Z.div(na());function nx(){return(0,i.jsx)(nu,{})}}},function(e){e.O(0,[1664,3868,1880,7975,8066,2412,8099,43,450,3567,2888,9774,179],function(){return e(e.s=22197)}),_N_E=e.O()}]);
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.