1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7467],{12582:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(14232),s=a(80252),l=a(37876);let r=({show:e,onClose:t,info:a={},children:r,isHeadLess:i,isMainModal:c=!1})=>{let{title:d,id:o,size:g,btn:x=[{name:"íì¸",action:t,css:"bg-primary"}]}=a,m=x.map((e,a)=>(0,l.jsxs)("button",{type:"button",className:`btn txt-white${e.css?" "+e.css:" bg-primary"}`,onClick:e.action??t,disabled:e.disabled??!1,children:[e.icon&&(0,l.jsx)("span",{className:`ico ico-${e.icon}`}),e.name??"íì¸"]},`btn-${a}`)),{0:u,1:h}=(0,n.useState)(!1);return(0,l.jsxs)(s.A,{show:e,layerid:o,children:[(0,l.jsxs)("div",{className:`modal${g?" "+g:""} ${c?" only-pc":""}`,children:[!i&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{className:"btn-close",onClick:t,children:(0,l.jsx)("span",{className:"ico ico-close",children:"ë«ê¸°"})}),(0,l.jsx)("h3",{className:"modal-head",children:d||"ìë´"})]}),r,c?(0,l.jsxs)("div",{className:"d-flex modal-foot-chkbox ",children:[(0,l.jsxs)("div",{className:"check fir main-modal-check",children:[(0,l.jsx)("input",{type:"checkbox",id:"footChk",className:"group-check",checked:u,onChange:()=>{u?h(!1):(h(!0),x[0].action?.())}}),(0,l.jsx)("label",{htmlFor:"footChk",className:"chk-line",children:"ì¤ë í루 ê·¸ë§ ë³´ê¸°"})]}),(0,l.jsx)("div",{className:"close",onClick:t,children:(0,l.jsx)("a",{children:"ë«ê¸°"})})]}):(0,l.jsx)("div",{className:"modal-foot",children:m})]}),(0,l.jsx)("div",{className:"modal-bg",onClick:t})]})}},15338:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(24129),s=a(64366),l=a(98402);function r(e,t){(0,l.A)(2,arguments);var a=(0,s.A)(e),r=(0,n.A)(t);return a.setMinutes(r),a}},19328:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(64366),s=a(98402);function l(e){return(0,s.A)(1,arguments),(0,n.A)(e).getHours()}},29985:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>X});var n=a(87090),s=a(68003),l=a(12582),r=a(37876);let i=({show:e,onClose:t,info:a})=>(a.btn=[{name:"ë«ê¸°",action:t,css:"bg-dark"}],(0,r.jsx)(l.A,{show:e,onClose:t,info:a,children:(0,r.jsx)("div",{className:"modal-body",children:(0,r.jsxs)("div",{className:"form-box",children:[(0,r.jsxs)("h5",{children:[(0,r.jsx)("span",{className:"ico ico-info"}),"ìë² ì¬ì"]}),(0,r.jsxs)("div",{className:"table-wrap",children:[(0,r.jsx)("div",{className:"fit-table sm",children:(0,r.jsxs)("table",{className:"border-table bg-white",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{width:"23%"}),(0,r.jsx)("col",{width:"20%"}),(0,r.jsx)("col",{width:"30%"}),(0,r.jsx)("col",{width:"30%"})]}),(0,r.jsx)("thead",{className:"bg-gray",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"ì´ìì²´ì (OS)"}),(0,r.jsx)("th",{children:"ì§ìíê²½"}),(0,r.jsx)("th",{children:"MEMORY"}),(0,r.jsx)("th",{children:"H.D"})]})}),(0,r.jsx)("tbody",{className:"bg-gray",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Window, Linux, Mac 기ë°ì 모ë OS(ìë²) ì§ì"}),(0,r.jsx)("td",{children:"JRE ëë JDK 8.0 ì´ì"}),(0,r.jsxs)("td",{children:["ìµì 8G ì´ì",(0,r.jsx)("br",{}),"*ìë²ì RDBMS ì¤ì¹ ì 16G ì´ì ê¶ì¥"]}),(0,r.jsx)("td",{children:"600ë§ê±´ ë³´ê´ ì 1.8GB ì¬ì©(SMS기ì¤)"})]})})]})}),(0,r.jsx)("p",{className:"info",children:"* ë°ì¡íë ì½í
ì¸ ì ë°ë¼ ì¤ì¹ ì¬ìì´ ìì´í ì ììµëë¤."})]}),(0,r.jsx)("br",{}),(0,r.jsxs)("h5",{children:[(0,r.jsx)("span",{className:"ico ico-info"}),"ì§ìê°ë¥ RDBMS"]}),(0,r.jsx)("div",{className:"table-wrap",children:(0,r.jsx)("div",{className:"fit-table sm",children:(0,r.jsxs)("table",{className:"border-table bg-white",children:[(0,r.jsx)("thead",{className:"bg-gray",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"RDBMS"}),(0,r.jsx)("th",{children:"ì§ìë²ì "}),(0,r.jsx)("th",{children:"ë¹ê³ "})]})}),(0,r.jsxs)("tbody",{className:"bg-gray",children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"MYSQL"}),(0,r.jsx)("td",{children:"5.6.xx ì´ì"}),(0,r.jsx)("td",{rowSpan:6,children:"*ìµì ë²ì ê¶ì¥"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"MSSQL"}),(0,r.jsx)("td",{children:"7.0 ì´ì"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"ORACLE"}),(0,r.jsx)("td",{children:"9i ì´ì"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"MariaDB"}),(0,r.jsx)("td",{children:"10.0 ì´ì"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"CUBRID"}),(0,r.jsx)("td",{children:"10.1 ì´ì"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"PostgreSQL"}),(0,r.jsx)("td",{children:"14.2 ì´ì"})]})]})]})})})]})})}));var c=a(66284),d=a(71090),o=a(22300),g=a(1449);class x{async createAccount(e){let t=await o.n.post("/api/fo/agent/account",e);return(0,g._)(t),t}async checkAccountId(e){let t=await o.n.get(`/api/fo/agent/account/check/${e}`);return(0,g._)(t),t}async updateIp(e){let t=await o.n.put("/api/fo/agent/account/ip",e);return(0,g._)(t),t}async deleteAccount(e){let t=await o.n.delete(`/api/fo/agent/account/${e}`);return(0,g._)(t),t}async resetPassword(e){let t=await o.n.put("/api/fo/agent/account/pwd",e);return(0,g._)(t),t}}let m=new x;var u=a(14232),h=a(88992),p=a(37499),j=a(45654),b=a(39091);function _(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function A(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?_(Object(a),!0).forEach(function(t){(0,c.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let v=({show:e,onClose:t,info:a,accountId:n})=>{a.btn=[{name:"ì·¨ì",action:t,css:"bg-dark"},{name:"ì ì²",action:()=>x(),css:"bg-primary"}];let s=b.Ik().shape({password:b.Yj().matches(/^(?=.*[a-zA-Z])(?=.*[!@#$%^~*+=-])(?=.*[0-9]).{4,16}$/g,"ì문, ì«ì, í¹ì문ìê° ê° 1ì ì´ì í¬í¨ë 4~16ìë¡ êµ¬ì±ëì´ì¼ í©ëë¤."),passwordConfirm:b.Yj().min(1,"ì¬ì¤ì ë¹ë°ë²í¸ì ëì¼í ë¹ë°ë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì.").oneOf([b.KR("password"),null],"ì¬ì¤ì ë¹ë°ë²í¸ì ëì¼í ë¹ë°ë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì.")}),{reset:i,register:c,handleSubmit:o,formState:{errors:g}}=(0,h.mN)({mode:"all",resolver:(0,d.t)(s),defaultValues:{password:"",passwordConfirm:""}});(0,u.useEffect)(()=>{e||i()},[e,i]);let x=()=>{o(_)()},_=async e=>{try{await m.resetPassword({agntAcctId:n,cnetAcctPwd:e.password||""}),t(),window.AlertInfo({title:"ë¹ë°ë²í¸ ì¬ì¤ì ",message:"ë¹ë°ë²í¸ ì¬ì¤ì ì ì²ì´ ìë£ëììµëë¤."}),p.q.invalidateQueries({queryKey:j._.account()})}catch(e){}};return(0,r.jsx)(l.A,{show:e,onClose:t,info:a,children:(0,r.jsxs)("div",{className:"modal-body",children:[(0,r.jsx)("div",{className:"bg-box bg-gray-200 mt",children:(0,r.jsxs)("ul",{className:"list-bar",children:[(0,r.jsx)("li",{children:"ì문, ì«ì, í¹ì문ì ì¡°í© 4~16ì"}),(0,r.jsx)("li",{children:"ì´ì ì¬ì© ì´ë ¥ì´ ìë ë¹ë°ë²í¸ë ì¬ì© ë¶ê°"})]})}),(0,r.jsx)("br",{}),(0,r.jsxs)("form",{children:[(0,r.jsxs)("div",{className:`form-input d-flex ${g?.password?"is-invalid":""}`,children:[(0,r.jsx)("label",{className:"label",children:"ì¬ì¤ì ë¹ë°ë²í¸"}),(0,r.jsxs)("div",{className:"grow-1",children:[(0,r.jsx)("input",A({className:"w-100",type:"password",placeholder:"ì¬ì¤ì í ë¹ë°ë²í¸ ì
ë ¥"},c("password"))),g?.password&&(0,r.jsx)("span",{className:"invalid-txt pl-0",children:g?.password.message})]})]}),(0,r.jsxs)("div",{className:`form-input d-flex ${g?.passwordConfirm?"is-invalid":""}`,children:[(0,r.jsx)("label",{className:"label",children:"ë¹ë°ë²í¸ íì¸"}),(0,r.jsxs)("div",{className:"grow-1",children:[(0,r.jsx)("input",A({className:"w-100",type:"password",placeholder:"ì¬ì¤ì í ë¹ë°ë²í¸ ì¬ì
ë ¥"},c("passwordConfirm"))),g?.passwordConfirm&&(0,r.jsx)("span",{className:"invalid-txt pl-0",children:g?.passwordConfirm.message})]})]})]}),(0,r.jsx)("br",{}),(0,r.jsx)("div",{className:"form-input info",children:(0,r.jsx)("p",{children:"* ìì ìì² ë¹ë°ë²í¸ë ì¹ì¸ ìë£ í ì¬ì© ê°ë¥í©ëë¤."})})]})})};var f=a(67432);let y=({accountInfo:e,lgnId:t})=>{let{0:a,1:n}=(0,u.useState)(!1),{0:l,1:c}=(0,u.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[e?.agntUseStsCd==="EXP"&&(0,r.jsxs)("div",{className:"agent-info bg-gray-200",children:[(0,r.jsx)("div",{className:"str",children:"Agent ì¬ì© ì ì§"}),(0,r.jsxs)("div",{className:"api-info",children:[e?.stsCzCotn&&(0,r.jsxs)("p",{className:"txt-red bold",children:["[ ì ì§ ì¬ì : ",e.stsCzCotn," ]"]}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"* ì ì ì ì° ì²ë¦¬ê° ìë£ëì§ ìê±°ë, ê´ë¦¬ìì ìí´ DB Agent ì¬ì©ì´ ì¤ì§ë ìíì
ëë¤."}),(0,r.jsx)("li",{children:"* ì ì§ ì¬ì ë° ê¶ê¸íì ì¬íì ê³ ê°ì¼í°(1533-2698)ë¡ ë¬¸ìí´ì£¼ì¸ì."})]})]})]}),(0,r.jsx)("br",{}),(0,r.jsxs)("div",{className:"form-box",children:[(0,r.jsxs)("h5",{children:[(0,r.jsx)("span",{className:"ico ico-info"}),"ëí ê³ì "]}),(0,r.jsxs)("div",{className:"filter-wrap",children:[(0,r.jsx)("button",{className:"btn btn-sm outline-dark",onClick:()=>n(!0),children:"DB Agent ì°ë ì§ìì¬ì"}),(0,r.jsx)("button",{className:"btn btn-sm outline-dark btn-ml",onClick:()=>void(e?.agntAccts.filter(e=>"ACP"===e.agntAcctApvStsCd).length===0?window.AlertInfo({title:"DB Agent 모ë ë¤ì´ë¡ë",message:"ê³ì ë±ë¡ í ë¤ì´ë¡ëê° ê°ë¥í©ëë¤."}):e?.agntUseStsCd==="EXP"?window.AlertInfo({title:"DB Agent 모ë ë¤ì´ë¡ë",message:"ì¬ì© ì ì§ ìíììë 모ë ë¤ì´ë¡ëê° ë¶ê°í©ëë¤."}):c(!0)),children:"DB Agent 모ë ë¤ì´ë¡ë"}),(0,r.jsx)("button",{type:"button",className:"btn btn-sm outline-dark btn-ml",onClick:()=>window.open("https://www.megabird.co.kr/public/doc/ì¬ì©ì매ë´ì¼_(DB%20Agent%20ì¤ëª
ì)_v.3.1.pdf"),children:"DB Agent ì°ë 매ë´ì¼"})]}),(0,r.jsx)("div",{className:"api-list",children:(0,r.jsx)("div",{className:"wrap-item",children:(0,r.jsx)("div",{className:"item",children:(0,r.jsxs)("div",{className:"form-input d-flex",children:[(0,r.jsx)("label",{className:"label",children:"ëíê³ì "}),(0,r.jsxs)("div",{children:[(0,r.jsx)("input",{type:"text",value:t||"",readOnly:!0}),(0,r.jsx)("div",{className:"info",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"* ëí ê³ì ì ë©ê°ë²ë ìì´ëì ëì¼íê² ìëì¼ë¡ ì¤ì ëë©° ê´ë¦¬ë¥¼ ìí ê³ì ì¼ë¡ Agent ì ìì´ ë¶ê°í©ëë¤."}),(0,r.jsx)("li",{children:"* íì ê³ì ë±ë¡ í ì¹ì¸ì´ ìë£ëë©´ Agent ë¤ì´ë¡ë ë° ì ìì´ ê°ë¥í©ëë¤."})]})})]})]})})})})]}),(0,r.jsx)(i,{show:a,onClose:()=>n(!1),info:{title:"DB Agent ì°ë ì§ìì¬ì",id:"agentSpecModal",size:"modal-lg"}}),(0,r.jsx)(s.Wh,{show:l,onClose:()=>c(!1),info:{id:"agentDownloadModal",title:"DB Agent 모ë ë¤ì´ë¡ë",size:"modal-md",contents:["DB Agent ì°ëì DBMS를 ì´ì©í ì ì¡íê²½ì ì ê³µí©ëë¤.","ì ì¡ ì¸í°íì´ì¤ ê°ë°ì ê³ ê°ì¬ìì ì§ì ì§ííì
ì¼ í©ëë¤.","ê°ë° ë° ê¸°ì ì§ìì '1:1 문ì' ë° 'ê³ ê°ì¼í°(1533-2698)'ë¡ ë¬¸ìí´ì£¼ì¸ì.","DB Agent 모ëìì ì§ìíë 'OS / DB'를 ë°ëì íì¸í´ì£¼ì¸ì."],btn:[{name:"ì·¨ì",action:()=>c(!1),css:"bg-dark"},{name:"ë¤ì´ë¡ë",action:()=>void(c(!1),(0,f.PE)("https://www.megabird.co.kr/public/agent/mz_agent_for_java_20240404_3.1.0_jdk8.zip")),css:"bg-primary"}]}})]})};var N=a(82851);let w=(0,u.forwardRef)((e,t)=>{let{field:a,property:n,index:s,updateFn:l}=e;return(0,r.jsx)("input",{type:"text",className:"ip-input",maxLength:3,value:a?.[n]?.split(".")[s],ref:e=>{t?.current&&(t.current[s]=e)},onChange:e=>(e=>{3===s?e.target.value=e.target.value.replace(/((?![\*\d]).)|.+(?=\*)|(?<=\*)\d+/g,""):e.target.value=e.target.value.replace(/((?![\d]).)|.+(?=\*)|(?<=\*)\d+/g,"");let r=a?.[n]?.split(".");r[s]=e.target.value,l(r.join(".")),e.target.value.length===e.target.maxLength&&s<=2&&e.target.selectionStart===e.target.maxLength&&t.current[s+1]?.focus()})(e),onPaste:e=>(e=>{e.preventDefault();let t=e.clipboardData.getData("Text");if(t)if(RegExp(/^((\d{1,3})\.){3}((\d{1,3})|\*)/,"g").test(t))l(t);else{let e=t.replace(/\D/g,"").slice(0,3),r=a?.[n]?.split(".");r[s]=e,l(r.join("."))}})(e)})});w.displayName="AccountIpInput";var I=a(72744),C=a(24129),S=a(76962),k=a(98402),P=a(64366);function D(e,t){(0,k.A)(2,arguments);var a=(0,P.A)(e),n=(0,P.A)(t),s=a.getTime()-n.getTime();return s<0?-1:s>0?1:s}var O=a(50590);function T(e,t){(0,k.A)(1,arguments);var a,n,s,l=(0,C.A)(null!=(a=null==t?void 0:t.additionalDigits)?a:2);if(2!==l&&1!==l&&0!==l)throw RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,a={},n=e.split($.dateTimeDelimiter);if(n.length>2)return a;
1if(/:/.test(n[0])?t=n[0]:(a.date=n[0],t=n[1],$.timeZoneDelimiter.test(a.date)&&(a.date=e.split($.timeZoneDelimiter)[0],t=e.substr(a.date.length,e.length))),t){var s=$.timezone.exec(t);s?(a.time=t.replace(s[1],""),a.timezone=s[1]):a.time=t}return a}(e);if(r.date){var i=function(e,t){var a=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(a);if(!n)return{year:NaN,restDateString:""};var s=n[1]?parseInt(n[1]):null,l=n[2]?parseInt(n[2]):null;return{year:null===l?s:100*l,restDateString:e.slice((n[1]||n[2]).length)}}(r.date,l);n=function(e,t){if(null===t)return new Date(NaN);var a,n,s,l,r,i,c,d,o,g,x,m,u=e.match(E);if(!u)return new Date(NaN);var h=!!u[4],p=z(u[1]),j=z(u[2])-1,b=z(u[3]),_=z(u[4]),A=z(u[5])-1;if(h){return(a=_,n=A,a>=1&&a<=53&&n>=0&&n<=6)?(s=t,l=_,r=A,(i=new Date(0)).setUTCFullYear(s,0,4),c=i.getUTCDay()||7,i.setUTCDate(i.getUTCDate()+((l-1)*7+r+1-c)),i):new Date(NaN)}var v=new Date(0);return(d=t,o=j,g=b,o>=0&&o<=11&&g>=1&&g<=(F[o]||(B(d)?29:28))&&(x=t,(m=p)>=1&&m<=(B(x)?366:365)))?(v.setUTCFullYear(t,j,Math.max(p,b)),v):new Date(NaN)}(i.restDateString,i.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);var c=n.getTime(),d=0;if(r.time&&isNaN(d=function(e){var t,a,n,s=e.match(M);if(!s)return NaN;var l=U(s[1]),r=U(s[2]),i=U(s[3]);return(t=l,a=r,n=i,24===t?0===a&&0===n:n>=0&&n<60&&a>=0&&a<60&&t>=0&&t<25)?l*O.s0+r*O.Cg+1e3*i:NaN}(r.time)))return new Date(NaN);if(r.timezone){if(isNaN(s=function(e){if("Z"===e)return 0;var t,a=e.match(R);if(!a)return 0;var n="+"===a[1]?-1:1,s=parseInt(a[2]),l=a[3]&&parseInt(a[3])||0;return(t=l)>=0&&t<=59?n*(s*O.s0+l*O.Cg):NaN}(r.timezone)))return new Date(NaN)}else{var o=new Date(c+d),g=new Date(0);return g.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),g.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),g}return new Date(c+d+s)}var $={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},E=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,M=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,R=/^([+-])(\d{2})(?::?(\d{2}))?$/;function z(e){return e?parseInt(e):1}function U(e){return e&&parseFloat(e.replace(",","."))||0}var F=[31,null,31,30,31,30,31,31,30,31,30,31];function B(e){return e%400==0||e%4==0&&e%100!=0}var Y=a(49992),q=a(40767),W=a.n(q);function G(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function L(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?G(Object(a),!0).forEach(function(t){(0,c.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):G(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let J=({field:e,index:t,deleteAccount:a,errors:n,setError:s,setValue:l})=>{let i=(0,u.useRef)([]),{0:c,1:d}=(0,u.useState)(null),{0:o,1:g}=(0,u.useState)(!1),{0:x,1:h}=(0,u.useState)(!1);(0,u.useEffect)(()=>{d(null)},[e.cnetAcctId]);let b=async()=>{if(h(!0),l(`agntAccts.${t}.cnetAcctPwd`,e.cnetAcctPwd,{shouldValidate:!0}),l(`agntAccts.${t}.cnetAcctPwdCfm`,e.cnetAcctPwdCfm,{shouldValidate:!0}),l(`agntAccts.${t}.agntIpAddr`,e.agntIpAddr,{shouldValidate:!0}),null===c)return void window.AlertInfo("ìì´ë ì¤ë³µ ì¬ë¶ë¥¼ íì¸í´ì£¼ì¸ì.");if(!0!==c&&!n?.[t])try{await m.createAccount({cnetAcctId:e.cnetAcctId,cnetAcctPwd:e.cnetAcctPwd,agntIpAddr:e.agntIpAddr}),window.AlertInfo({title:"ê³ì ë±ë¡",message:"ê³ì ë±ë¡ ì ì²ì´ ìë£ëììµëë¤."}),p.q.invalidateQueries({queryKey:j._.account()})}catch(e){}},_=e=>{l(`agntAccts.${t}.${e.target.name}`,e.target.value,{shouldValidate:!0})},A=async()=>{if(g(!0),l(`agntAccts.${t}.cnetAcctId`,e.cnetAcctId,{shouldValidate:!0}),!n?.[t]?.cnetAcctId)try{let a=await m.checkAccountId(e.cnetAcctId);"Y"===a.availableYn?d(!1):(d(!0),s?.(`agntAccts[${t}].cnetAcctId`,{type:"custom",message:"ì¬ì©í ì ìë ìì´ëì
ëë¤. ë¤ë¥¸ ìì´ë를 ì
ë ¥í´ì£¼ì¸ì."}))}catch(e){}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"item",children:[(0,r.jsxs)("div",{className:`form-input d-flex${o&&n?.[t]?.cnetAcctId?" is-invalid":""}`,children:[(0,r.jsx)("label",{className:"label",children:"ìì´ë"}),(0,r.jsxs)("div",{className:"d-flex align-center",children:[(0,r.jsx)("input",{type:"text",name:"cnetAcctId",placeholder:"ì¬ì©í ìì´ë ì
ë ¥",value:e?.cnetAcctId,onChange:_}),(0,r.jsx)("button",{className:"btn btn-sm outline-dark",type:"button",onClick:()=>A(),children:"ì¤ë³µíì¸"}),o&&n?.[t]?.cnetAcctId&&(0,r.jsx)("span",{className:"invalid-txt pl-0",children:n?.[t]?.cnetAcctId.message}),!1===c&&(0,r.jsx)("span",{className:"valid-txt",children:"ì¬ì© ê°ë¥í ìì´ëì
ëë¤."})]})]}),(0,r.jsxs)("div",{className:`form-input d-flex${x&&n?.[t]?.cnetAcctPwd?" is-invalid":""}`,children:[(0,r.jsx)("label",{className:"label",children:"ë¹ë°ë²í¸"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("input",{type:"password",name:"cnetAcctPwd",placeholder:"ì¬ì©í ë¹ë°ë²í¸ ì
ë ¥",value:e?.cnetAcctPwd,onChange:_}),x&&n?.[t]?.cnetAcctPwd&&(0,r.jsx)("span",{className:"invalid-txt pl-0",children:n?.[t]?.cnetAcctPwd.message}),(0,r.jsx)("div",{className:"info",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"* ê³ì ì ì ì ì¬ì©í 4~16ì리 ë¹ë°ë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì. (ì문, ì«ì, í¹ì문ì ì¡°í©)"}),(0,r.jsx)("li",{children:"* ë¹ë°ë²í¸ ë¶ì¤ í¹ì ë³ê²½ì´ íìí ê²½ì° ì¹ì¸ ìë£ë ì´í ë¹ë°ë²í¸ ì¬ì¤ì ì íµí´ ì¬ì¹ì¸ì ë°ìì¼ í©ëë¤."})]})})]})]}),(0,r.jsxs)("div",{className:`form-input d-flex${x&&n?.[t]?.cnetAcctPwdCfm?" is-invalid":""}`,children:[(0,r.jsx)("label",{className:"label",children:"ë¹ë°ë²í¸ íì¸"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("input",{type:"password",name:"cnetAcctPwdCfm",placeholder:"ì¬ì©í ë¹ë°ë²í¸ ì¬ì
ë ¥",value:e?.cnetAcctPwdCfm,onChange:_}),x&&n?.[t]?.cnetAcctPwdCfm&&(0,r.jsx)("span",{className:"invalid-txt pl-0",children:n?.[t]?.cnetAcctPwdCfm.message})]})]}),(0,r.jsxs)("div",{className:`form-input d-flex${x&&n?.[t]?.agntIpAddr?" is-invalid":""}`,children:[(0,r.jsx)("label",{className:"label",children:"ì ì IP"}),(0,r.jsxs)("div",{className:W().negativeMarginTop,children:[[void 0,void 0,void 0,void 0].map((a,n)=>(0,r.jsxs)(u.Fragment,{children:[n>0&&(0,r.jsx)("span",{className:"at",children:"."}),(0,r.jsx)(w,{field:e,property:"agntIpAddr",index:n,updateFn:e=>l(`agntAccts.${t}.agntIpAddr`,e,{shouldValidate:!0}),ref:i})]},`ip-input-regist-${e.id}-${n}`)),x&&n?.[t]?.agntIpAddr&&(0,r.jsx)("span",{className:"invalid-txt pl-0",children:n?.[t]?.agntIpAddr.message}),(0,r.jsx)("div",{className:"info",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"* Agent ì ì ê°ë¥ IP ëìì ì¤ì íë 기ë¥ì
ëë¤."}),(0,r.jsx)("li",{children:"* IP ì§ì : 123.123.123.123, *IP ì§ì ì ë§ì§ë§ octet 모ë íì©í ê²½ì° : 123.123.123.*"}),(0,r.jsx)("li",{children:"* IP ë±ë¡ ì ë§ì§ë§ octet ìì ì¸ìë '*' ì
ë ¥ì´ ë¶ê°í©ëë¤."})]})})]})]})]}),(0,r.jsx)("div",{className:"d-flex",children:(0,r.jsx)("button",{className:"btn outline-dark right",type:"button",onClick:()=>a?.(e,t),children:(0,r.jsx)(Y.Rz,{size:24,color:"#1C2125"})})}),(0,r.jsx)("div",{className:"btn-center",children:(0,r.jsx)("button",{className:"btn btn-md bg-primary txt-white",onClick:()=>b(),type:"button",children:"ë±ë¡"})})]})},V=({originField:e,field:t,index:a,setValue:n,errors:l,disabled:i})=>{let c=(0,u.useRef)([]),{0:d,1:o}=(0,u.useState)(!1),{0:g,1:x}=(0,u.useState)(!1),{0:h,1:b}=(0,u.useState)(!1),_=async()=>{try{await m.updateIp({agntAcctId:t.agntAcctId,agntIpAddr:t.agntIpAddr}),b(!1),window.AlertInfo({title:"ìì ì¹ì¸ ì ì²",message:"ìì ì¹ì¸ ì ì²ì´ ìë£ëììµëë¤."}
1),p.q.invalidateQueries({queryKey:j._.account()})}catch(e){}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"item",children:[(0,r.jsxs)("div",{className:"form-input d-flex",children:[(0,r.jsx)("label",{className:"label",children:"ìì´ë"}),(0,r.jsx)("div",{children:(0,r.jsx)("input",{type:"text",value:t?.cnetAcctId||"",readOnly:!0})})]}),(0,r.jsxs)("div",{className:"form-input d-flex",children:[(0,r.jsx)("label",{className:"label",children:"ì²ë¦¬ ìí"}),(0,r.jsx)("div",{className:"input",children:(0,r.jsx)("p",{children:t?.agntAcctApvStsCdNm})})]}),(0,r.jsxs)("div",{className:`form-input d-flex${d&&l?.[a]?.agntIpAddr?" is-invalid":""}`,children:[(0,r.jsx)("label",{className:"label",children:"ì ì IP"}),(0,r.jsxs)("div",{className:W().negativeMarginTop,children:[[void 0,void 0,void 0,void 0].map((e,s)=>(0,r.jsxs)(u.Fragment,{children:[s>0&&(0,r.jsx)("span",{className:"at",children:"."}),(0,r.jsx)(w,{field:t,property:"agntIpAddr",index:s,updateFn:e=>n(`agntAccts.${a}.agntIpAddr`,e,{shouldValidate:!0}),ref:c})]},`ip-input-update-${a}-${s}`)),d&&l?.[a]?.agntIpAddr&&(0,r.jsx)("span",{className:"invalid-txt pl-0",children:l?.[a]?.agntIpAddr.message}),(0,r.jsx)("div",{className:"info",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"* Agent ì ì ê°ë¥ IP ëìì ì¤ì íë 기ë¥ì
ëë¤."}),(0,r.jsx)("li",{children:"* IP ì§ì : 123.123.123.123, *IP ì§ì ì ë§ì§ë§ octet 모ë íì©í ê²½ì° : 123.123.123.*"}),(0,r.jsx)("li",{children:"* IP ë±ë¡ ì ë§ì§ë§ octet ìì ì¸ìë '*' ì
ë ¥ì´ ë¶ê°í©ëë¤."})]})})]})]})]}),(0,r.jsx)("div",{className:"d-flex",children:(0,r.jsx)("button",{className:`btn btn-sm outline-dark ${i?"disable":""} ${W().alignSelfEnd}`,disabled:i,type:"button",onClick:()=>x(!0),children:"ë¹ë°ë²í¸ ì¬ì¤ì "})}),(0,r.jsx)("div",{className:"btn-center",children:(0,r.jsx)("button",{className:`btn btn-md bg-primary txt-white ${i?"disable":""}`,disabled:i,onClick:()=>(()=>{if(e?.agntIpAddr===t.agntIpAddr)return void window.AlertInfo("ìì ë ë´ì©ì´ ììµëë¤.");o(!0),n(`agntAccts.${a}.agntIpAddr`,t.agntIpAddr,{shouldValidate:!0}),l?.[a]||b(!0)})(),type:"button",children:"ìì "})}),(0,r.jsx)(v,{show:g,onClose:()=>x(!1),info:{title:"ë¹ë°ë²í¸ ì¬ì¤ì ",id:"agentPasswordModal",size:"modal-md"},accountId:t?.agntAcctId??""}),(0,r.jsx)(s.Wh,{show:h,onClose:()=>b(!1),info:{id:"agentUpdateModal",title:"ìì ì¹ì¸ ì ì²",size:"modal-md",subject:"ìì ì¹ì¸ ì ì²ì ì§íí©ëë¤.",contents:["IP ì ë³´ ë³ê²½ ì¹ì¸ì ì ì²í©ëë¤.","ì¹ì¸ ë기 ìíììë 기존ì ê³ì ì¼ë¡ ì ì ë° ë©ìì§ ë°ì¡ì´ ê°ë¥íë©°, ì¹ì¸ ìë£ ì´íìë ë³ê²½ë IPë¡ë§ ì ìì´ ê°ë¥í©ëë¤."],btn:[{name:"ì·¨ì",action:()=>b(!1),css:"bg-dark"},{name:"íì¸",action:()=>_(),css:"bg-primary"}]}})]})},Z=({originField:e,field:t,index:a,setValue:n,deleteAccount:s,errors:l,disabled:i})=>{let c=(0,u.useRef)([]),{0:d,1:o}=(0,u.useState)(!1),g=async()=>{if(e?.agntIpAddr===t.agntIpAddr)return void window.AlertInfo("ìì ë ë´ì©ì´ ììµëë¤.");if(o(!0),n(`agntAccts.${a}.agntIpAddr`,t.agntIpAddr,{shouldValidate:!0}),!l?.[a])try{await m.updateIp({agntAcctId:t.agntAcctId,agntIpAddr:t.agntIpAddr}),window.AlertInfo({title:"ê³ì ì¬ì¬ì¬",message:"ê³ì ì¬ì¬ì¬ ì ì²ì´ ìë£ëììµëë¤."}),p.q.invalidateQueries({queryKey:j._.account()})}catch(e){}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"item",children:[(0,r.jsxs)("div",{className:"form-input d-flex",children:[(0,r.jsx)("label",{className:"label",children:"ìì´ë"}),(0,r.jsx)("div",{children:(0,r.jsx)("input",{type:"text",value:t?.cnetAcctId,readOnly:!0})})]}),(0,r.jsxs)("div",{className:"form-input d-flex is-invalid",children:[(0,r.jsx)("label",{className:"label",children:"ì²ë¦¬ ìí"}),(0,r.jsxs)("div",{className:"input",children:[(0,r.jsx)("span",{children:t?.agntAcctApvStsCdNm}),t?.stsCzCotn&&(0,r.jsxs)("span",{className:`invalid-txt pl-0 ${W().rejectReason}`,children:["* ì¬ì : ",t.stsCzCotn]})]})]}),(0,r.jsx)("br",{}),(0,r.jsxs)("div",{className:`form-input d-flex${d&&l?.[a]?.agntIpAddr?" is-invalid":""}`,children:[(0,r.jsx)("label",{className:"label",children:"ì ì IP"}),(0,r.jsxs)("div",{className:W().negativeMarginTop,children:[[void 0,void 0,void 0,void 0].map((e,s)=>(0,r.jsxs)(u.Fragment,{children:[s>0&&(0,r.jsx)("span",{className:"at",children:"."}),(0,r.jsx)(w,{field:t,property:"agntIpAddr",index:s,updateFn:e=>n(`agntAccts.${a}.agntIpAddr`,e,{shouldValidate:!0}),ref:c})]},`ip-input-wait-${a}-${s}`)),d&&l?.[a]?.agntIpAddr&&(0,r.jsx)("span",{className:"invalid-txt pl-0",children:l?.[a]?.agntIpAddr.message}),(0,r.jsx)("div",{className:"info",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"* Agent ì ì ê°ë¥ IP ëìì ì¤ì íë 기ë¥ì
ëë¤."}),(0,r.jsx)("li",{children:"* IP ì§ì : 123.123.123.123, *IP ì§ì ì ë§ì§ë§ octet 모ë íì©í ê²½ì° : 123.123.123.*"}),(0,r.jsx)("li",{children:"* IP ë±ë¡ ì ë§ì§ë§ octet ìì ì¸ìë '*' ì
ë ¥ì´ ë¶ê°í©ëë¤."})]})})]})]})]}),t?.agntAcctUseStsCd==="WAT"&&(0,r.jsx)("div",{className:"d-flex",children:(0,r.jsx)("button",{className:`btn outline-dark right ${i?"disable":""}`,disabled:i,onClick:()=>s?.(t,a),type:"button",children:(0,r.jsx)(Y.Rz,{size:24,color:"#1C2125"})})}),(0,r.jsx)("div",{className:"btn-center",children:(0,r.jsx)("button",{className:`btn btn-md bg-primary txt-white ${i?"disable":""}`,disabled:i,onClick:()=>g(),type:"button",children:"ì¬ì¬ì¬"})})]})},K=({field:e,index:t,deleteAccount:a,disabled:n})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"item",children:[(0,r.jsxs)("div",{className:"form-input d-flex",children:[(0,r.jsx)("label",{className:"label",children:"ìì´ë"}),(0,r.jsx)("div",{children:(0,r.jsx)("input",{type:"text",value:e?.cnetAcctId,readOnly:!0})})]}),(0,r.jsxs)("div",{className:"form-input d-flex",children:[(0,r.jsx)("label",{className:"label",children:"ì²ë¦¬ ìí"}),(0,r.jsx)("div",{className:"input",children:e?.agntAcctApvStsCdNm})]}),(0,r.jsxs)("div",{className:"form-input d-flex",children:[(0,r.jsx)("label",{className:"label",children:"ì ì IP"}),(0,r.jsxs)("div",{className:W().negativeMarginTop,children:[[void 0,void 0,void 0,void 0].map((a,n)=>(0,r.jsxs)(u.Fragment,{children:[n>0&&(0,r.jsx)("span",{className:"at",children:"."}),(0,r.jsx)("input",{className:"ip-input",type:"text",maxLength:3,value:e?.agntIpAddr?.split(".")[n],readOnly:!0})]},`ip-input-wait-${t}-${n}`)),(0,r.jsx)("div",{className:"info",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"* Agent ì ì ê°ë¥ IP ëìì ì¤ì íë 기ë¥ì
ëë¤."}),(0,r.jsx)("li",{children:"* IP ì§ì : 123.123.123.123, *IP ì§ì ì ë§ì§ë§ octet 모ë íì©í ê²½ì° : 123.123.123.*"}),(0,r.jsx)("li",{children:"* IP ë±ë¡ ì ë§ì§ë§ octet ìì ì¸ìë '*' ì
ë ¥ì´ ë¶ê°í©ëë¤."})]})})]})]})]}),e?.agntAcctUseStsCd==="WAT"&&(0,r.jsx)("div",{className:"d-flex",children:(0,r.jsx)("button",{className:`btn outline-dark right ${n?"disable":""}`,disabled:n,onClick:()=>a?.(e,t),type:"button",children:(0,r.jsx)(Y.Rz,{size:24,color:"#1C2125"})})}),(0,r.jsx)("div",{className:"btn-center",children:(0,r.jsx)("button",{className:"btn btn-md bg-gray-700 txt-white disable",disabled:!0,type:"button",children:"ì¹ì¸ë기"})})]}),H=({accountInfo:e,lgnId:t})=>{let{0:a,1:n}=(0,u.useState)({}),{0:l,1:i}=(0,u.useState)(!1),c={REGIST:J,UPDATE:V,RE_REGIST:Z,WAIT:K},o=b.Ik().shape({agntAccts:b.YO().of(b.Ik().shape({cnetAcctId:b.Yj().matches(/^[a-z]+?[0-9]([a-z0-9]*)$/g,"ì문(ì문ì), ì«ì ì¡°í© 5~16ì ì´ë´ë¡ 구ì±ëì´ì¼ í©ëë¤.(íê¸, í¹ì문ì ì¬ì© ë¶ê°)").min(5,"ìì´ëë ìµì 5ì ì´ì ì
ë ¥í´ì¼ í©ëë¤.").max(16,"ìì´ëë ìµë 16ìê¹ì§ ì
ë ¥í ì ììµëë¤."),cnetAcctPwd:b.Yj().matches(/^(?=.*[a-zA-Z])(?=.*[!@#$%^~*+=-])(?
1=.*[0-9]).{4,16}$/g,"ì문, ì«ì, í¹ì문ìê° ê° 1ì ì´ì í¬í¨ë 4~16ìë¡ êµ¬ì±ëì´ì¼ í©ëë¤."),cnetAcctPwdCfm:b.Yj().min(1,"ì¬ì¤ì ë¹ë°ë²í¸ì ëì¼í ë¹ë°ë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì.").oneOf([b.KR("cnetAcctPwd"),null],"ì¬ì¤ì ë¹ë°ë²í¸ì ëì¼í ë¹ë°ë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì."),agntIpAddr:b.Yj().test("length","ì ì IP를 ì
ë ¥í´ì¼ í©ëë¤.",e=>(e?.length??0)!==3).matches(/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|\*)$/g,"ì¬ë°ë¥¸ IP íìì´ ìëëë¤.")}))}),{control:g,reset:x,watch:_,setValue:A,setError:v,formState:{errors:f}}=(0,h.mN)({mode:"all",resolver:(0,d.t)(o),defaultValues:{agntAccts:[]}}),{fields:y,append:w,remove:P}=(0,h.jz)({control:g,name:"agntAccts"}),O=_();(0,u.useEffect)(()=>{e&&x({agntAccts:e?.agntAccts})},[e,x]);let $=(0,u.useMemo)(()=>!!O.agntAccts&&O.agntAccts?.length!==0&&!(0,N.isEqual)(e?.agntAccts,O.agntAccts),[e?.agntAccts,O]);(0,I.go)($),(0,u.useEffect)(()=>{if(!e||!t)return;let a=JSON.parse(localStorage.getItem("AGENTACCTALT")||"null");a&&a?.lgnId!==t&&(a={});let s=e.agntAccts.reduce((e,t)=>{let n=a?.[t.agntAcctId];if("APR"===t.agntAcctApvStsCd){let a=L({},e);return delete a[t.agntAcctId],L({},a)}return n&&n.agntAcctApvStsCd===t.agntAcctApvStsCd?L(L({},e),{},{[t.agntAcctId]:n}):L(L({},e),{},{[t.agntAcctId]:{agntAcctApvStsCd:t.agntAcctApvStsCd,cnetAcctId:t.cnetAcctId,visibleDtt:(function(e,t){(0,k.A)(2,arguments);var a=(0,C.A)(t);return(0,S.A)(e,36e5*a)})(new Date,24).toISOString()}})},L({},a));s.lgnId=t,localStorage.setItem("AGENTACCTALT",JSON.stringify(s)),n(s)},[e,t]);let E=(0,u.useMemo)(()=>e?.agntAccts?.filter(e=>"WAT"!==e.agntAcctUseStsCd).length||0,[e]),M=(0,u.useMemo)(()=>({approved:Object.values(a)?.filter(e=>e?.agntAcctApvStsCd==="ACP"&&-1===D(new Date,T(e?.visibleDtt))).map(e=>e.cnetAcctId)||[],denied:Object.values(a)?.filter(e=>e?.agntAcctApvStsCd==="RJT"&&-1===D(new Date,T(e?.visibleDtt))).map(e=>e.cnetAcctId)||[]}),[a]),R=(e,t)=>{let a=async()=>{if(window.AlertShow(!1),"RJT"===e.agntAcctApvStsCd||"APR"===e.agntAcctApvStsCd&&"WAT"===e.agntAcctUseStsCd)try{await m.deleteAccount(e.agntAcctId),window.AlertInfo({title:"ê³ì ìì ",message:"ìì ëììµëë¤."}),p.q.invalidateQueries({queryKey:j._.account()})}catch(e){}else"NEW"===e.agntAcctApvStsCd&&P(t)};window.AlertInfo({title:"ìì íì¸",message:"ìì íìê² ìµëê¹?",btn:[{name:"ì·¨ì",action:()=>window.AlertShow(!1),css:"bg-dark"},{name:"íì¸",action:()=>a(),css:"bg-primary"}]})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("form",{className:"form-box",children:[(0,r.jsxs)("div",{children:[M.approved.length>0&&M.denied.length>0&&(0,r.jsxs)("div",{className:"agent-info bg-gray-200 w-100",children:[(0,r.jsx)("div",{className:"str",children:"ì¹ì¸ ì²ë¦¬ ë´ì"}),(0,r.jsxs)("div",{className:"api-info",children:[(0,r.jsx)("p",{className:"txt-gray-900 bold",children:"[ ì ì²íì ê³ì ì ì¹ì¸ ì²ë¦¬ ë´ìì ìëì ê°ì´ ìë´í´ ë립ëë¤. ]"}),(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:["* ì²ë¦¬ ë´ì : ",(0,r.jsxs)("span",{className:"txt-primary bold",children:["ì¹ì¸ (",M.approved.join(", "),")"]}),","," ",(0,r.jsxs)("span",{className:"txt-red bold",children:["ë°ë ¤ (",M.denied.join(", "),")"]})]}),(0,r.jsx)("li",{children:"* ì²ë¦¬ ë´ì ê´ë ¨ ê¶ê¸íì ì¬íì ê³ ê°ì¼í°(1533-2698)ë¡ ë¬¸ìí´ì£¼ì¸ì."})]})]})]}),M.approved.length>0&&0===M.denied.length&&(0,r.jsxs)("div",{className:"agent-info bg-gray-200 w-100",children:[(0,r.jsx)("div",{className:"str",children:"ê³ì ì¹ì¸ ìë£"}),(0,r.jsxs)("div",{className:"api-info",children:[(0,r.jsxs)("p",{className:"txt-primary bold",children:["[ ì ì²íì ê³ì ì ì¹ì¸ì´ ìë£ëììµëë¤. : ",M.approved.join(", ")," ]"]}),(0,r.jsx)("ul",{children:(0,r.jsx)("li",{children:"* ì¤ì¹í 모ëì ì¹ì¸ë ê³ì ì ë³´ë¡ ì ìí ì ììµëë¤."})})]})]}),0===M.approved.length&&M.denied.length>0&&(0,r.jsxs)("div",{className:"agent-info bg-gray-200 w-100",children:[(0,r.jsx)("div",{className:"str",children:"ì¹ì¸ ë°ë ¤"}),(0,r.jsxs)("div",{className:"api-info",children:[(0,r.jsxs)("p",{className:"txt-red bold",children:["[ ì ì²íì ê³ì ì ì¹ì¸ì´ ë°ë ¤ëììµëë¤. : ",M.denied.join(", ")," ]"]}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"* ë°ë ¤ë ê³ì ëª
ë° IP를 ìì íì í ì¬ì ì²í´ì£¼ì¸ì."}),(0,r.jsx)("li",{children:"* ë°ë ¤ ì¬ì ë° ê¶ê¸íì ì¬íì ê³ ê°ì¼í°(1533-2698)ë¡ ë¬¸ìí´ì£¼ì¸ì."})]})]})]})]}),(0,r.jsxs)("h5",{children:[(0,r.jsx)("span",{className:"ico ico-info"}),"íì ê³ì ë±ë¡"]}),(0,r.jsx)("div",{className:"wrap-guide-txt",children:(0,r.jsxs)("p",{className:"bold",children:["( ",E," / 10 )"]})}),(0,r.jsx)("div",{className:"api-list",children:(0,r.jsxs)("div",{className:"wrap-item start",children:[y.map((t,a)=>{let n;return n="ACP"===t.agntAcctApvStsCd?c.UPDATE:"RJT"===t.agntAcctApvStsCd?c.RE_REGIST:"APR"===t.agntAcctApvStsCd?c.WAIT:c.REGIST,(0,r.jsxs)(u.Fragment,{children:[(0,r.jsx)(n,{originField:e?.agntAccts[a],field:_(`agntAccts.${a}`),index:a,deleteAccount:R,errors:f?.agntAccts,setError:v,setValue:A,disabled:e?.agntUseStsCd==="EXP"}),(a<y.length-1||a===y.length-1&&e?.agntUseStsCd==="USE")&&(0,r.jsx)("div",{className:`line ${W().dividerLine}`})]},a)}),e?.agntUseStsCd==="USE"&&(0,r.jsxs)("div",{className:"form-box",children:[(0,r.jsxs)("button",{className:"btn btn-sm outline-dark",onClick:()=>void("Y"===e.agntAcctContLmtYn&&y.length>=10?i(!0):w({cnetAcctId:t+(0,N.padStart)((y.length+1).toString(),2,"0"),cnetAcctPwd:"",cnetAcctPwdCfm:"",agntIpAddr:"...",agntAcctApvStsCd:"NEW"})),type:"button",children:[(0,r.jsx)(Y.RE,{size:16})," ê³ì ë±ë¡"]}),(0,r.jsx)("div",{className:"api-info",children:(0,r.jsxs)("ul",{className:"list-star",children:[(0,r.jsxs)("li",{children:["íìê³ì ì ëíê³ì ì ìì°¨ë¡ ì«ìê° ë°°ì ëì´ ìë ì
ë ¥ë©ëë¤.",(0,r.jsx)("br",{}),(0,r.jsx)("span",{children:`(ì> ëíê³ì megabird ì¼ ê²½ì° megabird01, megabird02, megabird03â¦)`})]}),(0,r.jsx)("li",{children:"ê³ì ëª
ë³ê²½ì´ íìí ê²½ì° ë±ë¡ ì ì² ì ê³ì ëª
ì ìì íì¬ ì ì²í´ì£¼ì¸ì."}),(0,r.jsx)("li",{children:"ë±ë¡ì´ ìë£ë ê³ì ì ê³ì ëª
ìì ë° ê³ì ìì ê° ë¶ê°í©ëë¤."}),(0,r.jsx)("li",{children:"ê³ì ì ì² ì ì¬ì©í ë¹ë°ë²í¸ ë° IP를 ì
ë ¥íì¬ í¨ê» ì ì²í´ì£¼ì¸ì."}),(0,r.jsx)("li",{className:"txt-red",children:"ê³ì ëª
ì ì문(ì문ì), ì«ì ì¡°í© 5~16ì ì´ë´ë¡ë§ ê°ë¥í©ëë¤. (*íê¸, í¹ì문ì ì¬ì© ë¶ê°)"}),(0,r.jsx)("li",{className:"txt-red",children:"ê³ì 첫ê¸ìë ìë¬¸ë§ ì¬ì© ê°ë¥íë©°, ì«ìë§ ì¬ì©í ê³ì ì ìì±ì´ ë¶ê°í©ëë¤."}),(0,r.jsx)("li",{children:"ë¹ë°ë²í¸ ë¶ì¤ í¹ì ë³ê²½ì´ íìí ê²½ì° ë¹ë°ë²í¸ ì¬ì¤ì ì íµí´ ìë¡ì´ ì ì², ì¹ì¸ í ë³ê²½ë ë¹ë°ë²í¸ ì¬ì©ì´ ê°ë¥í©ëë¤."})]})})]})]})})]}),(0,r.jsx)(s.Wh,{show:l,onClose:()=>i(!1),info:{id:"agentAlertModal",title:"ì림",size:"modal-md",subject:"íì ê³ì ì ìµë 10ê°ê¹ì§ ë±ë¡ ê°ë¥í©ëë¤.",contents:["10ê°ë¥¼ ì´ê³¼íë ê³ì ë±ë¡ì´ íìí ê²½ì° ê³ ê°ì¼í°(1533-2698)ë¡ ë¬¸ìí´ì£¼ì¸ì."],btn:[{name:"íì¸",action:()=>i(!1),css:"bg-primary"}]}})]})},Q={title:"ê³ì ê´ë¦¬",wrapperClass:"api",isAside:!0,titleGroup:{desc:"DB Agent를 ì¬ì©í기 ìí ê³ì ì ê´ë¦¬í©ëë¤."}},X=()=>{let{user:e}=(0,I.Jd)(),{0:t,1:a}=(0,u.useState)(!1),{data:l}=(0,j.q)(),i=(0,u.useRef)((0,N.debounce)((e,t)=>t(e),100)),{0:c,1:d}=(0,u.useState)({});return(0,u.useEffect)(()=>{l&&i.current(l,d)},[l]),(0,u.useEffect)(()=>
1{if(!l)return;let e=l.agntAccts?.find(e=>"ACP"===e.agntAcctApvStsCd);if(!e)return;let t=JSON.parse(localStorage.getItem("AGENTACCT"));t?.agntAcctId!==e?.agntAcctId&&(a(!0),localStorage.setItem("AGENTACCT",JSON.stringify(e)))},[l]),(0,r.jsxs)(n.vo,{pageInfo:Q,children:[(0,r.jsxs)("div",{className:"cont form sm",children:[(0,r.jsxs)("p",{className:"info",children:["* íì ê°ì
í IP를 ë±ë¡íì¬ ê³ì ë±ë¡ ì¹ì¸ì´ ìë£ëì´ì¼ DB Agent ì ìì´ ê°ë¥í©ëë¤.",(0,r.jsx)("br",{}),"* ê³ì ë° IP ë±ë¡ ìë£ í, DB Agent 모ëì ë¤ì´ë°ì ì¤ì¹í´ì£¼ì¸ì."]}),(0,r.jsx)(y,{accountInfo:c,lgnId:e?.lgnId}),(c?.agntUseStsCd==="USE"||c?.agntAccts?.length>0)&&(0,r.jsx)(H,{accountInfo:c,lgnId:e?.lgnId})]}),(0,r.jsx)(s.Wh,{show:t,onClose:()=>a(!1),info:{id:"agentCompleteModal",title:"ê³ì ë±ë¡ ìë£",size:"modal-md",subject:"ê³ì ë±ë¡ì´ ìë£ëììµëë¤.",contents:["DB Agent 모ëì ë¤ì´ë°ì ì¤ì¹í´ì£¼ì¸ì.","ì°ë 매ë´ì¼ìì ì°ë ì 보를 íì¸ í í
ì¤í¸ë¥¼ ì§íí´ì£¼ì¸ì."],btn:[{name:"íì¸",action:()=>a(!1),css:"bg-primary"}]}})]})}},33261:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/agent",function(){return a(29985)}])},40767:e=>{e.exports={"bg-white":"agent_bg-white__I_Xy_",btn:"agent_btn__C1aqR",disable:"agent_disable__2A1pa","txt-white":"agent_txt-white__5Nx1C","outline-white":"agent_outline-white__J7h1O","bg-gray-100":"agent_bg-gray-100__98KYn","txt-gray-100":"agent_txt-gray-100__Ge4oP","outline-gray-100":"agent_outline-gray-100__Hjse1","bg-gray-200":"agent_bg-gray-200__rigtR","txt-gray-200":"agent_txt-gray-200__eA4Mq","outline-gray-200":"agent_outline-gray-200__jZfsE","bg-gray-300":"agent_bg-gray-300__55_vy","txt-gray-300":"agent_txt-gray-300__vAF_H","outline-gray-300":"agent_outline-gray-300__qXW_o","bg-gray-400":"agent_bg-gray-400__mNTtk","txt-gray-400":"agent_txt-gray-400__giUbd","outline-gray-400":"agent_outline-gray-400__xzBTM","bg-gray-500":"agent_bg-gray-500__WNlRW","txt-gray-500":"agent_txt-gray-500__nm64X","outline-gray-500":"agent_outline-gray-500__SyKmw","bg-gray-600":"agent_bg-gray-600___cYGU","txt-gray-600":"agent_txt-gray-600__XEVJ2","outline-gray-600":"agent_outline-gray-600__rgCfP","bg-gray-700":"agent_bg-gray-700__dchl1","txt-gray-700":"agent_txt-gray-700__ves0E","outline-gray-700":"agent_outline-gray-700___5GYR","bg-gray-800":"agent_bg-gray-800__aWCu3","txt-gray-800":"agent_txt-gray-800__my8xI","outline-gray-800":"agent_outline-gray-800__xfzv_","bg-gray-900":"agent_bg-gray-900__HlS60","txt-gray-900":"agent_txt-gray-900__2IJb1","outline-gray-900":"agent_outline-gray-900__4VEmy","bg-black":"agent_bg-black__K3gq9","txt-black":"agent_txt-black__f0P7C","outline-black":"agent_outline-black__NjLll","bg-dark":"agent_bg-dark__CjT6Z","txt-dark":"agent_txt-dark__kG4Rq","outline-dark":"agent_outline-dark__Z9VjW","bg-gray":"agent_bg-gray__7bz_w","txt-gray":"agent_txt-gray__A9WC_","outline-gray":"agent_outline-gray__i_2hy","bg-border-gray":"agent_bg-border-gray__RBdQt","txt-border-gray":"agent_txt-border-gray__RCjXX","outline-border-gray":"agent_outline-border-gray__L2Rcu","bg-primary-light":"agent_bg-primary-light__ZIsCr","txt-primary-light":"agent_txt-primary-light__Y1xu9","outline-primary-light":"agent_outline-primary-light__K0t9n","bg-primary":"agent_bg-primary__FYKVU","txt-primary":"agent_txt-primary__Ns1Q3","outline-primary":"agent_outline-primary__SoV8B","bg-primary-darken":"agent_bg-primary-darken__NkH8s","txt-primary-darken":"agent_txt-primary-darken__jJScQ","outline-primary-darken":"agent_outline-primary-darken__FD_Fs","bg-secondary":"agent_bg-secondary__7nk6t","txt-secondary":"agent_txt-secondary__GvlRC","outline-secondary":"agent_outline-secondary__0bTPh","bg-secondary-darken":"agent_bg-secondary-darken__Knctg","txt-secondary-darken":"agent_txt-secondary-darken__Cl_vB","outline-secondary-darken":"agent_outline-secondary-darken__pa498","bg-success":"agent_bg-success__OJ0C0","txt-success":"agent_txt-success__sM2W2","outline-success":"agent_outline-success__IlrJV","bg-red":"agent_bg-red__nLjCJ","txt-red":"agent_txt-red__lSg4G","outline-red":"agent_outline-red__xxC_M","bg-red-light":"agent_bg-red-light__BQ1a0","txt-red-light":"agent_txt-red-light__uPIcZ","outline-red-light":"agent_outline-red-light__9_2
1Uq","bg-red-dark":"agent_bg-red-dark__1UQwH","txt-red-dark":"agent_txt-red-dark__jno0V","outline-red-dark":"agent_outline-red-dark__4jJJW","bg-green":"agent_bg-green__bxeIn","txt-green":"agent_txt-green__BJmG_","outline-green":"agent_outline-green__4ruck","bg-green-light":"agent_bg-green-light__Xhrl1","txt-green-light":"agent_txt-green-light__zZxtD","outline-green-light":"agent_outline-green-light___e3Rl","bg-blue":"agent_bg-blue__5e9oO","txt-blue":"agent_txt-blue__6tO5t","outline-blue":"agent_outline-blue__NFKuW","bg-blue-light":"agent_bg-blue-light__7R0ZG","txt-blue-light":"agent_txt-blue-light__GV9zt","outline-blue-light":"agent_outline-blue-light__qJZ8d","bg-purple":"agent_bg-purple__tycws","txt-purple":"agent_txt-purple__kY05l","outline-purple":"agent_outline-purple__Zeene","bg-yellow":"agent_bg-yellow__OjNu1","txt-yellow":"agent_txt-yellow__UdlG6","outline-yellow":"agent_outline-yellow__BlTSN","bg-mint":"agent_bg-mint__D7Fq6","txt-mint":"agent_txt-mint__g4qkq","outline-mint":"agent_outline-mint__4vZse",negativeMarginTop:"agent_negativeMarginTop__zz0YA",alignSelfEnd:"agent_alignSelfEnd__Imq_r",invalidTextNegativeMargin:"agent_invalidTextNegativeMargin___y8Nx",dividerLine:"agent_dividerLine__3EyCE",rejectReason:"agent_rejectReason__y8ae0"}},45654:(e,t,a)=>{"use strict";a.d(t,{_:()=>l,q:()=>r});var n=a(67914),s=a(82578);let l={all:["agent"],account:()=>[...l.all,"account"]},r=()=>(0,n.I)({queryKey:l.account(),queryFn:()=>s.Ay.get("/api/fo/agent/account")})},50590:(e,t,a)=>{"use strict";a.d(t,{Cg:()=>n,s0:()=>s});var n=6e4,s=36e5},57148:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(24129),s=a(64366),l=a(98402);function r(e,t){(0,l.A)(2,arguments);var a=(0,s.A)(e),r=(0,n.A)(t);return a.setHours(r),a}},63014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(64366),s=a(98402);function l(e){return(0,s.A)(1,arguments),(0,n.A)(e).getMinutes()}},68003:(e,t,a)=>{"use strict";a.d(t,{Wh:()=>r,M_:()=>n.M});var n=a(77837),s=a(12582),l=a(37876);let r=({show:e,onClose:t,info:a})=>(0,l.jsx)(s.A,{show:e,onClose:t,info:a,children:(0,l.jsxs)("div",{className:"modal-body",children:[a?.subject&&(0,l.jsx)("div",{className:"m-txt",children:(0,l.jsx)("p",{className:"str txt-primary",children:a.subject})}),(0,l.jsx)("ul",{className:"list-bar",children:a?.contents?.map((e,t)=>(0,l.jsx)("li",{children:e},t))}),a?.confirm&&(0,l.jsx)("div",{className:"m-txt",children:(0,l.jsx)("p",{className:"str",children:a.confirm})})]})});a(85598)},77837:(e,t,a)=>{"use strict";a.d(t,{M:()=>p});var n=a(12582),s=a(63014),l=a(57148),r=a(15338),i=a(41443),c=a(99158),d=a(19328),o=a(4305),g=a(21932),x=a(75562),m=a(14232),u=a(34846),h=a(37876);let p=({show:e,onClose:t,info:a,datetime:p,setDatetime:j,handler:b,btnConfirmLabel:_="íì¸",moreInfo:A=""})=>{let{t:v}=(0,u.Bd)(),{0:f,1:y}=(0,m.useState)(p);return(0,m.useLayoutEffect)(()=>{e&&y(p)},[p,e]),a.btn=[{name:v("reserve.cancel"),action:()=>void(j(p),t()),css:"bg-dark"},{name:_,action:()=>{b(new Date(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),(0,s.A)(f),0,0))},css:"bg-primary"}],(0,h.jsx)(n.A,{show:e,onClose:t,info:a,children:(0,h.jsxs)("div",{className:"modal-body w-100",children:[A&&(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:A}}),(0,h.jsx)("div",{className:"date_picker",children:(0,h.jsx)(g.Cb,{selected:f,onChange:e=>{y(new Date(e.getFullYear(),e.getMonth(),e.getDate(),f.getHours(),(0,s.A)(f),0))},customProps:{minDate:new Date,tileDisabled:({date:e})=>{let t=new Date;return t.setHours(0,0,0,0),e<t}}})}),(0,h.jsxs)("div",{className:"form-input d-flex",children:[(0,h.jsx)("label",{className:"label",children:v("reserve.date")}),(0,h.jsx)("input",{type:"text",className:"datepicker-time n-readonly",value:(0,i.A)(f)?(0,c.A)(f,"yyyy-MM-dd"):"",readOnly:!0}),(0,h.jsx)("button",{type:"button",className:"btn btn-sm outline-dark today-btn2",onClick:()=>(()=>{let e=new Date;y(new Date(e.getFullYear(),e.getMonth(),e.getDate(),f.getHours(),(0,s.A)(f),0))})(),children:v("reserve.today")})]}),(0,h.jsxs)("div",{className:"form-input d-flex",children:[(0,h.jsx)("label",{className:"label",children:v("reserve.time")}
1),(0,h.jsx)(o.aL,{list:x.I$,current:String((0,d.A)(f)).padStart(2,"0"),setSelect:e=>{y((0,l.A)(f,parseInt(e)))},addClass:"time"}),(0,h.jsxs)("span",{className:"at",children:[v("reserve.hour")," "]}),(0,h.jsx)(o.aL,{list:x.mf,current:String((0,s.A)(f)).padStart(2,"0"),setSelect:e=>{y((0,r.A)(f,parseInt(e)))},addClass:"time"}),(0,h.jsx)("span",{className:"at",children:v("reserve.minute")})]})]})})}},85598:(e,t,a)=>{"use strict";a.d(t,{j:()=>r});var n=a(80252),s=a(34846),l=a(37876);let r=({show:e,onClose:t,children:a,title:r="",size:i="modal-md",showCloseButton:c=!0})=>{let{t:d}=(0,s.Bd)();return(0,l.jsxs)(n.A,{show:e,targetWrap:"modal-root",children:[(0,l.jsxs)("div",{className:`modal ${i}`,children:[r&&(0,l.jsxs)(l.Fragment,{children:[c&&t&&(0,l.jsx)("button",{className:"btn-close",onClick:t,children:(0,l.jsx)("span",{className:"ico ico-close",children:d("alert.close")})}),(0,l.jsx)("h3",{className:"modal-head",children:r})]}),a]}),t&&(0,l.jsx)("div",{className:"modal-bg",onClick:t})]})}}},e=>{e.O(0,[8992,7972,636,6593,8792],()=>e(e.s=33261)),_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.