1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="acdb8bf1-72e9-4fde-b974-dfe4190d68cf",e._sentryDebugIdIdentifier="sentry-dbid-acdb8bf1-72e9-4fde-b974-dfe4190d68cf")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6887],{191:(e,t,a)=>{a.d(t,{E:()=>r});let r=(0,a(31405).DY)("Promotion",{eventList:e=>[{params:e}],eventEntryStatus:e=>[{params:e}],activePromotions:()=>["activePromotions"]})},4249:(e,t,a)=>{a.d(t,{O9:()=>y,WU:()=>f,Zw:()=>u,dg:()=>h,ic:()=>d,n1:()=>m,ri:()=>c,rv:()=>p,sK:()=>l,sy:()=>g,wb:()=>E});var r=a(80549),n=a(99776),s=a(53455),i=a(58720),o=a(42570);let l=(e,t)=>(0,r.n)({mutationFn:e=>(0,i.b1)(e),onSuccess:t=>{e&&e(t)},onError:e=>{t&&t(e)}}),c=(e,t)=>{let a=(0,n.jE)();return(0,r.n)({mutationFn:e=>(0,i.dn)(e),onSuccess:()=>{a.invalidateQueries({queryKey:["user"]}),a.invalidateQueries({queryKey:o.xF.linkedAccount._def}),e&&e()},onError:e=>{t&&t(e)}})},d=(e,t)=>(0,s.I)({queryKey:o.xF.linkedAccount(e).queryKey,queryFn:i.fz,enabled:!!e.userId&&e.userId>0&&((null==t?void 0:t.enabled)??!0),staleTime:o.fe}),u=(e,t)=>{let a=(0,n.jE)();return(0,r.n)({mutationFn:e=>(0,i.Qm)(e),onSuccess:t=>{a.invalidateQueries({queryKey:o.xF.linkedAccount._def}),e&&e(t)},onError:()=>{t&&t()}})},h=()=>(0,s.I)({queryKey:o.xF.publicNatIp({}).queryKey,queryFn:i.CS}),p=e=>(0,s.I)({queryKey:o.xF.brandList((0,o.Dp)(e)).queryKey,queryFn:i.K4,enabled:!!e.personId&&e.enabled,staleTime:o.fe}),m=(e,t)=>(0,r.n)({mutationFn:e=>(0,i.hB)(e),onSuccess:t=>{e&&e(t)},onError:e=>{t&&t()}}),y=(e,t)=>(0,r.n)({mutationFn:e=>(0,i.$o)(e),onSuccess:t=>{e&&e(t)},onError:()=>{t&&t()}}),g=(e,t)=>(0,r.n)({mutationFn:e=>(0,i.Nn)(e),onSuccess:t=>{e&&e(t)},onError:e=>{t&&t()}}),f=e=>(0,s.I)({queryKey:o.xF.agencyBrandList((0,o.Dp)(e)).queryKey,queryFn:i.lU,enabled:!!e.agencyId,staleTime:o.fe}),E=e=>(0,s.I)({queryKey:o.xF.agencyBrand((0,o.Dp)(e)).queryKey,queryFn:i.Hh,enabled:!!e.agencyId&&!!e.brandId&&e.enabled,staleTime:o.fe})},7076:(e,t,a)=>{a.d(t,{B:()=>u});var r=a(31405);let n=(0,r.DY)("Contacts",{blockCalls:e=>[{params:e}]});var s=a(59828),i=a(13060),o=a(30006),l=a(88486),c=a(49318),d=a(24767);let u=(0,r.h0)(s.R,i.I,n,o.N,l.f,c.uY,d.C)},9977:(e,t,a)=>{a.d(t,{W4:()=>o,sf:()=>i});var r=a(53455),n=a(191),s=a(97205);let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.I)({...n.E.eventList(e),queryFn:s.D3})},o=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,r.I)({...n.E.activePromotions(),queryFn:s.b8,staleTime:3e5,gcTime:6e5,enabled:e})}},13060:(e,t,a)=>{a.d(t,{I:()=>r});let r=(0,a(31405).DY)("Kakao",{brandMessageTemplateList:e=>[{params:e}],alimtalkTemplateList:e=>[{params:e}],messagingCapabilities:()=>["messagingCapabilities"],brandMessageStatistics:e=>["brandMessageStatistics",e],sendonTemplateList:e=>[{params:e}],broadcastExpectedCount:e=>[{params:e}]})},15061:(e,t,a)=>{a.d(t,{be:()=>y,bO:()=>x,Mo:()=>E,FB:()=>b,Xr:()=>g,QZ:()=>f,ow:()=>T,HR:()=>w});var r=a(80549),n=a(99776),s=a(32703);let i=async(e,t)=>{let a={url:`v2/sender/numbers/${e}/update`,params:{duplicatedNumberReason:t}},{data:r}=await s.L.POST(a);return r},o=async e=>{let t={url:`v2/sender/numbers/${e}/delete`,params:{}},{data:a}=await s.L.POST(t);return a},l=async e=>{let t=0,a=e.length;for(let a of e)await o(a).then(()=>!0).catch(()=>!1)&&t++;return{code:200,allItemCount:a,successCount:t}},c=async(e,t)=>{let a={url:`v2/sender/numbers/${e}/update`,params:{displayName:t}},{data:r}=await s.L.POST(a);return r},d=async e=>{let{numberId:t,...a}=e,r={url:`v2/sender/numbers/${t}/appeal`,params:a},{data:n}=await s.L.POST(r);return n},u=async e=>{let t={url:"v2/sender/numbers",params:{...e,isDefault:"N",isArsSkip:0===e.arsId?"Y":void 0}},{data:a}=await s.L.POST(t);return a},h=async e=>{let t={url:"v2/sender/utils/numbers/by-phone",params:{phoneNumber:e.phoneNumber}},{data:a}=await s.L.GET(t);return a},p=async e=>{let t={url:`v2/sender/numbers/${e}/update`,params:{isDefault:"Y"}},{data:a}=await s.L.POST(t);return a};var m=a(88157);let y=e=>{let{successCallback:t,errorCallback:a}=e;return(0,r.n)({mutationFn:async e=>await d(e),onSuccess(e,a,r){t&&t(e)},onError(e,t,r){a&&a(e)}})},g=e=>{let{successCallback:t,errorCallback:a}=e;return(0,r.n)({mutationFn:async e=>{let{numberId:t}=e;return await o(t)},onSuccess(e,a,r){t&&t(e)},onError(e,t,r){a&&a(e)}})},f=e=>{let t=(0,n.jE)();return(0,r.n)({mutationFn:e=>
1l(e),...e,onSuccess:(a,r,n)=>{var s;t.invalidateQueries({queryKey:m.u.senderList._def}),null==e||null==(s=e.onSuccess)||s.call(e,a,r,n)}})},E=e=>{let t=(0,n.jE)();return(0,r.n)({mutationFn:e=>{let{numberId:t,displayName:a}=e;return c(t,a)},...e,onSuccess:(a,r,n)=>{var s;t.invalidateQueries({queryKey:m.u.senderList._def}),null==e||null==(s=e.onSuccess)||s.call(e,a,r,n)}})},w=e=>{let t=(0,n.jE)();return(0,r.n)({mutationFn:e=>{let{numberId:t,duplicatedReason:a}=e;return i(t,a)},...e,onSuccess:(a,r,n)=>{var s;t.invalidateQueries({queryKey:m.u.senderList._def}),null==e||null==(s=e.onSuccess)||s.call(e,a,r,n)},onError:(t,a,r)=>{var n;null==e||null==(n=e.onError)||n.call(e,t,a,r)}})},b=e=>{let{successCallback:t,errorCallback:a}=e;return(0,r.n)({mutationFn:async e=>await u(e),onSuccess(e){t(e)},onError(e){null==a||a(e)}})},T=e=>{let{successCallback:t,errorCallback:a}=e;return(0,r.n)({mutationFn:e=>h(e),onSuccess(e){t(e)},onError(e){null==a||a(e)}})},x=e=>{let{successCallback:t,errorCallback:a}=e;return(0,r.n)({mutationFn:async e=>await p(e),onSuccess(e){t(e)},onError(e){null==a||a(e)}})}},19329:(e,t,a)=>{a.d(t,{MZ:()=>o});var r=a(53455),n=a(6584),s=a(32703);(0,n.Ay)().baseUrl;let i=async()=>{let{data:e}=await s.L.GET({url:"/v2/dashboard"});return e},o=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.I)({queryKey:[{entity:"dashboard",feature:"get-dashboard",staleTime:e}],queryFn:i,retry:!1,staleTime:e,enabled:t})}},20969:(e,t,a)=>{a.d(t,{b2:()=>m,t9:()=>S,i$:()=>w,jp:()=>f,Su:()=>T,Yq:()=>b,AO:()=>I,sg:()=>N,dj:()=>p,bY:()=>j,Je:()=>C,IA:()=>x,wk:()=>v,gY:()=>y,zK:()=>E,ur:()=>g});var r=a(53455),n=a(80549),s=a(67364),i=a(99776),o=a(6438),l=a(6584),c=a(36673),d=a(74973);class u{constructor(){this.baseUrl=(0,l.Ay)().baseUrl,this.msPath="v2/payment",this.getMyAccountList=async()=>{try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let t=null==e?void 0:e.token,a=await fetch(`${this.baseUrl}/${this.msPath}/banks/my`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){throw Error("Failed to fetch getPresignedUrl"+e)}},this.getAvailableBankList=async()=>{try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let t=null==e?void 0:e.token,a=await fetch(`${this.baseUrl}/${this.msPath}/banks/available`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){throw Error("Failed to fetch getPresignedUrl"+e)}},this.createMyAccount=async e=>{try{let t=await (0,o.F)();if(!t)throw Error("Failed to getUserPointList");let a=null==t?void 0:t.token,r=await fetch(`${this.baseUrl}/${this.msPath}/banks/assign`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({bankCode:e})});return await r.json()}catch(e){throw Error("Failed to fetch getPresignedUrl"+e)}},this.getPaymentHistory=async e=>{let{yearMonth:t,limit:a,page:r}=e;try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let n=null==e?void 0:e.token,s=new URLSearchParams;r&&s.append("page",r.toString()),a&&s.append("limit",a.toString()),t&&s.append("yearMonth",t);let i=s.toString(),l=await fetch(`${this.baseUrl}/${this.msPath}/histories?${i}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`}});return await l.json()}catch(e){throw Error("Failed to fetch getPresignedUrl"+e)}},this.getPaymentHistoryDetail=async e=>{try{let t=await (0,o.F)();if(!t)throw Error("Failed to getUserPointList");let a=null==t?void 0:t.token,r=await fetch(`${this.baseUrl}/${this.msPath}/histories/${e}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`}});return await r.json()}catch(e){throw Error("Failed to fetch getPresignedUrl"+e)}},this.cancelPayment=async e=>{let{historyId:t,bankCode:a,accountHolder:r,accountNumber:n}=e;try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let s=null==e?void 0:e.token,i=await fetch(`${this.baseUrl}/${this.msPath}/cancellations`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`},body:JSON.stringify({historyId:t,bankCode:a,accountHolder:r,accountNumber:n})});return await i.json()}catch(e){throw Error("Failed to fetch getPresignedUrl"+e)}},this.getReceipts=async e=>{let{historyIds:t,userName:a}=e;try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let r=null==e?void 0:e.token,n=new URLSearchParams;
1t.forEach(e=>{n.append("historyIds",e)}),a&&n.append("userName",a);let s=n.toString(),i=await fetch(`${this.baseUrl}/${this.msPath}/histories/receipts?${s}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`}});return await i.json()}catch(e){throw Error("Failed to fetch getPresignedUrl"+e)}},this.notifyAccountInfo=async()=>{try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let t=null==e?void 0:e.token,a=null==e?void 0:e.id,r=await fetch(`${this.baseUrl}/${this.msPath}/banks/account-info/notify`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({userId:a})});return await r.json()}catch(e){throw Error("Failed to fetch getPresignedUrl"+e)}},this.getAccountVerificationDocument=async()=>{try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let t=null==e?void 0:e.token,a=null==e?void 0:e.id,r=new URLSearchParams;r.append("userId",a);let n=r.toString(),s=await fetch(`${this.baseUrl}/${this.msPath}/banks/account-info/verification-document?${n}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await s.json()}catch(e){throw Error("Failed to fetch getPresignedUrl"+e)}},this.getProofInfo=async()=>{try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let t=null==e?void 0:e.token,a=await this.bffClient.proofInfo.getProofInfo({headers:{authorization:`Bearer ${t}`}});if(200!==a.status)throw Error("Failed to fetch getProofInfo");return a.body}catch(e){throw Error("Failed to fetch getProofInfo"+e)}},this.updateProofInfo=async e=>{try{let t=await (0,o.F)();if(!t)throw Error("Failed to getUserPointList");let a=null==t?void 0:t.token,r=await this.bffClient.proofInfo.setProofInfo({body:e,headers:{authorization:`Bearer ${a}`}});return r.status,r.body}catch(e){throw Error("Failed to fetch updateProofInfo"+e)}},this.reIssueCashReceipt=async e=>{try{let t=await (0,o.F)();if(!t)throw Error("Failed to getUserPointList");let a=null==t?void 0:t.token,r=await this.bffClient.cashReceipt.reissueCashReceipt({params:{id:e},headers:{authorization:`Bearer ${a}`}});return r.status,r.body}catch(e){throw Error("Failed to fetch reissueCashReceipt"+e)}},this.getTaxInvoices=async e=>{let{startDate:t,endDate:a,limit:r,page:n}=e;try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let s=null==e?void 0:e.token,i=await this.bffClient.taxInvoice.getList({headers:{authorization:`Bearer ${s}`},query:{startDate:t,endDate:a,limit:r,page:n}});if(200!==i.status)throw Error("Failed to fetch getTaxInvoices");return i.body}catch(e){throw Error("Failed to fetch getTaxInvoices"+e)}},this.getCashReceipts=async e=>{let{startDate:t,endDate:a,limit:r,page:n}=e;try{let e=await (0,o.F)();if(!e)throw Error("Failed to getUserPointList");let s=null==e?void 0:e.token,i=await this.bffClient.cashReceipt.getCashReceipts({headers:{authorization:`Bearer ${s}`},query:{startDate:t,endDate:a,limit:r,page:n}});if(200!==i.status)throw Error("Failed to fetch getCashReceipts");return i.body}catch(e){throw Error("Failed to fetch getCashReceipts"+e)}},this.downloadCashReceipt=async e=>{try{let t=await (0,o.F)();if(!t)throw Error("Failed to getUserPointList");let a=null==t?void 0:t.token,r=await this.bffClient.cashReceipt.getCashReceiptUrl({params:{id:e},headers:{authorization:`Bearer ${a}`},query:{type:"PDF"}});if(200!==r.status)throw Error("Failed to fetch downloadCacheReceipt");return r.body}catch(e){throw Error("Failed to fetch downloadCacheReceipt"+e)}},this.bffClient=(0,c.K0)(d.b.payment,{baseUrl:this.baseUrl})}}let h=new u,p=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.I)({queryKey:["myAccountList",e],queryFn:async()=>await h.getMyAccountList(),staleTime:e,enabled:t})},m=e=>(0,r.I)({queryKey:["availableBankList"],queryFn:async()=>await h.getAvailableBankList(),enabled:e}),y=()=>(0,r.I)({queryKey:["proofInfo"],queryFn:async()=>await h.getProofInfo()}),g=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{method:t,type:a,businessNumber:r,companyName:n,representativeName:s,businessType:i,businessItem:o,address:l,addressDetail:c,emails:d,identityNumber:u,name:p}=e;return await h.updateProofInfo({method:t,type:a,businessNumber:r,companyName:n,representativeName:s,businessType:i,businessItem:o,address:l,addressDetail:c,emails:d,identityNumber:u,name:p})},onSuccess(e,a,r){t&&t(e)}})},f=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{cashReceiptId:t}=e;return await h.reIssueCashReceipt(t)},onSuccess(e,a,r){t&&t(e)}})},E=e=>{let{startDate:t,endDate:a,limit:r}=e;return(0,s.q)({queryKey:["taxInvoicesInfinite",t,a,r],queryFn:async e=>{let{pageParam:n}=e;return await h.getTaxInvoices({startDate:t,endDate:a,limit:r,page:n})},initialPageParam:1,getNextPageParam:(e,t)=>e.data.currentPage<e.data.totalPages?e.data.currentPage+1:void 0})},w=e=>{let{startDate:t,endDate:a,limit:r}=e;return(0,s.q)({queryKey:["cashReceiptsInfinite",t,a,r],queryFn:async e=>{let{pageParam:n}=e;return await h.getCashReceipts({startDate:t,endDate:a,limit:r,page:n})},initialPageParam:1,getNextPageParam:(e,t)=>e.data.currentPage<e.data.totalPages?e.data.currentPage+1:void 0})},b=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{id:t}=e;return await h.downloadCashReceipt(t)},onSuccess(e,a,r){t&&t(e)}})},T=e=>{let{callback:t}=e,a=(0,i.jE)();return(0,n.n)({mutationFn:async e=>{let{bankCode:t}=e;return await h.createMyAccount(t)},onSuccess(e){a.invalidateQueries({queryKey:["myAccountList"]}),t&&t(e)}})},x=e=>{let{yearMonth:t,limit:a=100,enabled:r,dependency:n}=e;return(0,s.q)({queryKey:["PaymentHistoryInfinite",a,t,r,...n],queryFn:async e=>{let{pageParam:r}=e;return await h.getPaymentHistory({yearMonth:t,limit:a,page:r?Number(r):void 0})},initialPageParam:void 0,getNextPageParam:(e,t)=>e.data.meta.hasNextPage?e.data.meta.currentPage+1:void 0,enabled:r})},v=e=>{let{yearMonth:t,limit:a,page:n}=e;return(0,r.I)({queryKey:["PaymentHistory",t,a,n],queryFn:async()=>await h.getPaymentHistory({yearMonth:t,limit:a,page:n})})},C=(e,t)=>(0,r.I)({queryKey:["PaymentHistoryDetail",e],queryFn:async()=>await h.getPaymentHistoryDetail(e),enabled:t}),S=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{historyId:t,bankCode:a,accountHolder:r,accountNumber:n}=e;return await h.cancelPayment({historyId:t,bankCode:a,accountHolder:r,accountNumber:n})},onSuccess(e,a,r){t&&t(e)}})},N=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{historyIds:t,userName:a}=e;return await h.getReceipts({historyIds:t,userName:a})},onSuccess(e,a,r){t&&t(e)}})},j=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async()=>await h.notifyAccountInfo(),onSuccess(e,a,r){t&&t(e)}})},I=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async()=>await h.getAccountVerificationDocument(),onSuccess(e,a,r){t&&t(e)}})}},23761:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(95155),n=a(90161),s=a(20063);a(12115);let i=function(){let e=(0,s.useRouter)();return(0,r.jsxs)(n.Pn,{size:"sm",isOpen:!0,xIcon:!1,children:[(0,r.jsx)("div",{className:"text-lg font-semibold",children:"ë°ì ë²í¸ ë±ë¡ ìë´"}),(0,r.jsx)("div",{className:"text-gray-40 mt-6 text-sm",children:"ì¬ì© ê°ë¥í ë°ì ë²í¸ê° ììµëë¤. ë°ì ë²í¸ë¥¼ íì¸í´ì£¼ì¸ì"}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(n.r7,{color:"gray",btn1Label:"ë«ê¸°",btn2Label:"ë°ì ë²í¸ íì¸í기",btn1OnClick:()=>e.back(),btn2OnClick:()=>e.push("/page/sendnumber")})})]})}},24504:(e,t,a)=>{a.d(t,{j:()=>s});var r=a(6438),n=a(28323);async function s(e){if(null!==await (0,r.F)())return await n.yI.uploadSenderFile(e)}},29732:(e,t,a)=>{a.d(t,{m5:()=>c,G5:()=>l,v2:()=>o});var r=a(95155),n=a(33200),s=a(82631),i=a(71159);function o(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.V,{type:"tip2",title:"íµ
1ì ìë¹ì¤ ì´ì© ì¦ëª ì ì ì¶ì ì ìì¬í",subTitle:`⢠ë°ê¸ì¼ ê¸°ì¤ 1ê°ì ì´ë´, ì ë³´ê° ë§ì¤í¹ëì§ ìì ì본 ìë¥ë§ ì¸ì ë©ëë¤. 2 ⢠착ì ì ì© ë²í¸ ë° í´ì¸ íµì ì¬ ë°ê¸ ë²í¸ë ë±ë¡ì´ ë¶ê°í©ëë¤. 3 ⢠ë°ê¸ ì¬ì ë ë°ëì "[ì¼ëì¨]" ëë "[ì리ë ì¬ëë¤]"ë¡ ê¸°ì¬í´ 주ì¸ì.`}),(0,r.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,r.jsx)(i.A,{className:"h-5 w-5 text-gray70"}),(0,r.jsx)("p",{className:"text-sm-normal",children:"ìë¥ ë°ê¸ì ëìì´ íìíì ê°ì?"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("a",{href:"https://guide-user.sendon.io/readytosendon/addnumber/howtodocu",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.n,{label:"íµì ì¬ ì´ì© ì¦ëª ì ë°ê¸ìë´",underline:!0,size:"base-semibold"})}),(0,r.jsx)("p",{children:"를 íì¸í´ì£¼ì¸ì"})]})]})]})}function l(){return(0,r.jsx)(s.V,{type:"tip2",title:"ì¬ì§ì¦ëª ì ì ì¶ì ì ìì¬í",subTitle:`⢠ë°ê¸ì¼ ê¸°ì¤ 1ê°ì ì´ë´ ìë¥ë§ ì¸ì ë©ëë¤. 4 ⢠주민ë±ë¡ë²í¸ ë·ì리ë ë§ì¤í¹, íì¬ ì§ì¸ ë ì¸ íìì ëë¤.`})}function c(){return(0,r.jsx)(s.V,{type:"tip2",title:"ì¬ì ìë±ë¡ì¦ ì ì¶ì ì ìì¬í",subTitle:`⢠ì´ëì©/í©ì¤ ë°ì¡ì© ìë¥ë ì ì¶ ë¶ê°í©ëë¤. 5 ⢠ë°ëì ìë¨\xb7íë¨ QRì½ëì ì¸ë¬´ìì¥ ì§ì¸ì´ í¬í¨ë ì본 ë±ë¡ì¦ì 첨ë¶í´ 주ì¸ì. 6 ⢠ëíì ìë ìì¼ì íì¸ ê°ë¥í´ì¼ íë©°, 주민ë±ë¡ë²í¸ ë·ì리ë ë§ì¤í¹ ì²ë¦¬í´ 주ì¸ì. 7 ⢠ì¼ë¶ ì ì¢ (ì: 5ë ë¶ë² ì ì¢ , ë¶ìëí ë±)ì ì¬ì ì ì¹ì¸ì´ ì íë ì ììµëë¤.`})}},30006:(e,t,a)=>{a.d(t,{G:()=>n,N:()=>r});let r=(0,a(31405).DY)("Inbox",{infiniteNotifications:e=>[{params:e}],notifications:e=>[{params:e}]}),n={infiniteNotifications:e=>r.infiniteNotifications(e).queryKey,notifications:e=>r.notifications(e).queryKey}},33931:(e,t,a)=>{a.d(t,{$u:()=>d,KS:()=>u,Qe:()=>h,Qs:()=>c,o8:()=>m});var r=a(83174),n=a(6584),s=a(74973),i=a(36673),o=a(85719),l=a(27122),c=function(e){return e.NEED_REVIEW="NEED_REVIEW",e.IN_REVIEW="IN_REVIEW",e.APPROVED="APPROVED",e.REJECTED="REJECTED",e.DORMANT="DORMANT",e}({}),d=function(e){return e.TEXT="TEXT",e.IMAGE="IMAGE",e.WIDE="WIDE",e.WIDE_ITEM_LIST="WIDE_ITEM_LIST",e.CAROUSEL_FEED="CAROUSEL_FEED",e.PREMIUM_VIDEO="PREMIUM_VIDEO",e.COMMERCE="COMMERCE",e.CAROUSEL_COMMERCE="CAROUSEL_COMMERCE",e}({}),u=function(e){return e.UNAVAILABLE="UNAVAILABLE",e.NOT_REQUESTED="NOT_REQUESTED",e.PENDING="PENDING",e.APPROVED="APPROVED",e.REJECTED="REJECTED",e}({});let h=e=>{switch(e){case"PROCESSING":return"ì§íì¤";case"COMPLETED":return"ì²ë¦¬ ìë£";case"FAILED":return"ì²ë¦¬ ì¤í¨";case"RESERVED":return"ìì½ ì ì";case"CANCELED":return"ìì½ ì·¨ì";default:return"ìììì"}};class p{constructor(){this.idToken="",this.baseUrl=(0,n.Ay)().baseUrl,this.msPath="v2/messages/kakao",this.getProfileList=async e=>{let{brandMessageEnabled:t,friendTalkEnabled:a}=e;try{let e=await (0,r.p)(),n=new URLSearchParams;t&&n.append("brandMessageEnabled","true"),a&&n.append("friendTalkEnabled","true");let s=n.toString();o.t.d("call kakaoProfile");let i=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles?${s}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});return await i.json()}catch(e){}},this.refreshProfileList=async()=>{try{let e=await (0,r.p)(),t=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/refresh-all`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});return await t.json()}catch(e){}},this.refreshProfile=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/refresh`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){}},this.getProfileDetail=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){}},this.authChannelProfile=async(e,t)=>{try{let a=await (0,r.p)(),n=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/auth`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({channelId:e,phoneNumber:t}),cache:"no-store"});return await n.json()}catch(e){}},this.addChannelProfile=async(e,t,a)=>{try{let n=await (0,r.p)(),s=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({channelId:e,phoneNumber:t,token:a}),cache:"no-store"});return await s.json()}catch(e){}},this.deleteChannelProfile=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/delete`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},cache:"no-store"}),n=await a.json();return console.log("delete channel profile response : ",JSON.stringify(n)),n}catch(e){}},this.getAlimtalkTemplateList=async e=>{let{sendProfileId:t,cursor:a,limit:n,keyword:s,status:i,sort:o}=e;try{let e=await (0,r.p)(),l=await this.bffClient.template.getTemplates({params:{sendProfileId:t},headers:{authorization:`Bearer ${e}`},query:{nextCursor:a,limit:n,keyword:s,status:i,sort:o}});if(200!==l.status)throw Error(JSON.stringify(l.body));return l.body}catch(e){}},this.getAlimtalkTemplateListComplex=async(e,t,a,n)=>{try{let s=await (0,r.p)(),i=await this.bffClient.template.getTemplatesComplex({headers:{authorization:`Bearer ${s}`},params:{sendProfileId:e},query:{nextCursor:t,limit:a,keyword:n}});if(200!==i.status)throw Error(JSON.stringify(i.body));return i.body}catch(e){}},this.getChannelAlimtalkTotalTemplateList=async e=>{try{let o,l=await (0,r.p)(),c=[];for(;;){let r=new URLSearchParams;o&&r.append("nextCursor",o),r.append("limit","100"),r.append("startDate","2024-01-01");let d=r.toString(),u=[];o=void 0;try{var t,a,n,s,i;let r=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/templates?${d}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${l}`}}),c=await r.json(),h={code:null==c?void 0:c.code,message:null==c?void 0:c.message,data:{nextCursor:null==c||null==(t=c.data)?void 0:t.nextCursor,templates:null==c||null==(n=c.data)||null==(a=n.templates)?void 0:a.map(e=>({...e,checked:!1}
7))}};200===h.code&&h.data.templates&&(u=null==(s=h.data)?void 0:s.templates,o=null==(i=h.data)?void 0:i.nextCursor)}catch(e){console.log("Error : ",e)}if(c=[...c,...u],void 0===o||0===o.length)break}return c}catch(e){}},this.createKakaoAlimtalkTemplate=async e=>{let{sendProfileId:t,templateCode:a,templateName:n,templateContent:s,templateMessageType:i,templateEmphasizeType:o,categoryCode:l,templateExtra:c,templateAd:d,templateTitle:u,templateSubtitle:h,securityFlag:p,templateImageName:m,templateImageUrl:y,buttons:g}=e;try{let e=await (0,r.p)(),f=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/templates`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({templateCode:a,templateName:n,templateContent:s,templateMessageType:i,templateEmphasizeType:o,categoryCode:l,templateExtra:c,templateAd:d,templateTitle:u,templateSubtitle:h,securityFlag:p,templateImageName:m,templateImageUrl:y,buttons:g}),cache:"no-store"});return await f.json()}catch(e){}},this.updateKakaoAlimtalkTemplate=async e=>{let{sendProfileId:t,templateId:a,templateName:n,templateContent:s,templateEmphasizeType:i,categoryCode:o,templateExtra:l,templateAd:c,templateTitle:d,templateSubtitle:u,securityFlag:h,templateImageName:p,templateImageUrl:m,buttons:y,skipInspection:g}=e;try{let e=await (0,r.p)(),f=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/templates/${a}/update`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({templateName:n,templateContent:s,templateEmphasizeType:i,categoryCode:o,templateExtra:l,templateAd:c,templateTitle:d,templateSubtitle:u,securityFlag:h,templateImageName:p,templateImageUrl:m,buttons:y,...void 0!==g&&{skipInspection:g}}),cache:"no-store"});return await f.json()}catch(e){}},this.sendAlimTalk=async e=>{let{sendProfileId:t,receiverList:a,receiverFiles:n,templateId:s,reservation:i,fallback:o,useCredit:c}=e;try{let e=await (0,r.p)(),l=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/messages/alim-talk`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({data:a,dataFiles:n,templateId:s,reservation:i,fallback:o,useCredit:c}),cache:"no-store"});return await l.json()}catch(e){return l.Cp(e,{tags:{api:"sendAlimTalk"}}),{code:500,message:"ìë¦¼í¡ ë°ì¡ ìì²ì ì¤í¨íìµëë¤.",data:void 0}}},this.sendBrandMessage=async e=>{let{sendProfileId:t,target:a,receiverList:n,receiverFiles:s,templateId:i,reservation:o,fallback:c,useCredit:d,targeting:u,blockCall:h,experimentId:p,experimentName:m,experimentVariant:y,experimentType:g}=e;try{let e=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/messages/brand-message`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({data:n,dataFiles:s,brandMessageTemplateCode:i,reservation:o,fallback:c,useCredit:d,targeting:u,blockCall:h,experimentId:p,experimentName:m,experimentVariant:y,experimentType:g}),cache:"no-store"});return await a.json()}catch(e){return l.Cp(e,{tags:{api:"sendBrandMessage"}}),{code:500,message:"ë¸ëëë©ìì§ ë°ì¡ ìì²ì ì¤í¨íìµëë¤.",data:void 0}}},this.sendBrandMessageBroadcast=async e=>{let{sendProfileId:t,templateCode:a,reservation:n,useCredit:s}=e;try{let e=await (0,r.p)(),i=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message/broadcast/request`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({templateCode:a,...n&&{reservation:n},useCredit:s}),cache:"no-store"});return await i.json()}catch(e){}},this.fetchBrandMessageBroadcastExpectedCount=async e=>{let{sendProfileId:t,templateCode:a}=e;try{let e=await (0,r.p)(),n=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message/broadcast/expected-count?templateCode=${a}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},cache:"no-store"});return await n.json()}catch(e){return{code:500,message:"Failed to fetch expected count",data:{possible:0}}}},this.sendFriendTalk=async e=>{let{sendProfileId:t,messageType:a,receiverList:n,receiverFiles:s,contents:i,isAd:o,reservation:c,buttons:d,fallback:u,image:h,userKey:p,useCredit:m}=e;try{let e=await (0,r.p)(),l=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/messages/friend-talk`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({messageType:a,data:n,dataFiles:s,contents:i,isAd:o,reservation:c,buttons:d,fallback:u,image:h,userKey:p,useCredit:m}),cache:"no-store"});return await l.json()}catch(e){return l.Cp(e,{tags:{api:"sendFriendTalk"}}),{code:500,message:"ì¹êµ¬í¡ ë°ì¡ ìì²ì ì¤í¨íìµëë¤.",data:void 0}}},this.uploadFrindTalkImage=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/image/upload`,{method:"POST",headers:{Authorization:`Bearer ${t}`},body:e,cache:"no-store"});return await a.json()}catch(e){}},this.uploadFrindTalkWideImage=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/image/upload/wide`,{method:"POST",headers:{Authorization:`Bearer ${t}`},body:e,cache:"no-store"});return await a.json()}catch(e){}},this.uploadTemplateImage=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/image/upload/template/image`,{method:"POST",headers:{Authorization:`Bearer ${t}`},body:e,cache:"no-store"});return await a.json()}catch(e){}},this.uploadKakaoCSVFile=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/messages/upload-csv`,{method:"POST",headers:{Authorization:`Bearer ${t}`},body:e,cache:"no-store"});return await a.json()}catch(e){}},this.getKakaoCsvPresignedUrl=async()=>{try{let e=await (0,r.p)(),t=await fetch(`${this.baseUrl}/${this.msPath}/messages/kakao/csv/presigned`,{method:"POST",headers:{Authorization:`Bearer ${e}`},cache:"no-store"});return await t.json()}catch(e){}},this.setTemplateFallbackMessage=async e=>{let{sendProfileId:t,templateId:a,type:n,message:s,title:i,images:o,senderNumber:l,clear:c=!1}=e;try{let e=await (0,r.p)(),d=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/templates/${a}/fallback`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:!1===c?JSON.stringify({type:n,title:i,message:s,images:o,senderNumber:l}):void 0,cache:"no-store"});return await d.json()}catch(e){}},this.deleteTemplateFallbackMessage=async(e,t)=>{try{let a=await (0,r.p)(),n=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/templates/${t}/fallback/delete`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},cache:"no-store"});return await n.json()}catch(e){}},this.getAlimtalkTemplateStatusSummary=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/templates-summary`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){}},this.deleteKakaoAlimtalkTemplate=async(e,t)=>{try{let a=await (0,r.p)(),n=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/templates/${t}/delete`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},cache:"no-store"});return await n.json()}catch(e){}},this.deleteKakaoManyAlimtalkTemplate=async(e,t)=>{try{let a=await (0,r.p)(),n=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/delete-templates`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({templateIds:t}),cache:"no-store"});return await n.json()}catch(e){}},this.reviewKakaoAlimtalkTemplate=async(e,t,a)=>{try{let n,s=await (0,r.p)(),i={Authorization:`Bearer ${s}`};if((null==a?void 0:a.commentContent)||(null==a?void 0:a.attachments)&&a.attachments.length>0){let e=new FormData;a.commentContent&&e.append("commentContent",a.commentContent),a.attachments&&a.attachments.forEac
7h(t=>{e.append("attachments",t,encodeURIComponent(t.name))}),n=e}else i["Content-Type"]="application/json";let o=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/templates/${t}/review`,{method:"POST",headers:i,body:n,cache:"no-store"});return await o.json()}catch(e){}},this.cancelKakaoAlimtalkTemplateProcess=async(e,t)=>{try{let a=await (0,r.p)(),n=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/templates/${t}/review-cancel`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},cache:"no-store"});return await n.json()}catch(e){}},this.updateKakaoAlimtalkTemplateName=async(e,t,a)=>{try{let n=await (0,r.p)(),s=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/templates/${t}/update-name`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({templateName:a}),cache:"no-store"});return await s.json()}catch(e){}},this.getKakaoAlimtalkTemplateDetail=async(e,t)=>{try{let a=await (0,r.p)(),n=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${e}/templates/${t}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`}});return await n.json()}catch(e){}},this.getKakaoGroupDetailInfo=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/groups/${e}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){}},this.getKakaoGroupMessageDetailInfo=async(e,t)=>{try{let a=await (0,r.p)(),n=await fetch(`${this.baseUrl}/${this.msPath}/groups/${e}/messages/${t}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`}});return await n.json()}catch(e){}},this.getKakaoGroupRepeatInfo=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/groups/${e}/repeats`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){}},this.sendGroupDirect=async e=>{let{groupId:t}=e;try{let e=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/groups/${t}/send`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});return await a.json()}catch(e){}},this.cancelGroup=async e=>{let{groupId:t}=e;try{let e=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/groups/${t}/cancel`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});return await a.json()}catch(e){}},this.uploadFallbackImage=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/image/upload/fallback`,{method:"POST",headers:{Authorization:`Bearer ${t}`},body:e,cache:"no-store"});return await a.json()}catch(e){}},this.fetchFallbackImageUrls=async e=>{try{let t=await (0,r.p)(),a=new URLSearchParams;for(let t=0;t<e.length;t++)a.append(`imageId${t+1}`,e[t]);let n=a.toString(),s=await fetch(`${this.baseUrl}/${this.msPath}/image/upload/fallback/url?${n}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({imageIds:e}),cache:"no-store"});return await s.json()}catch(e){}},this.requestMakeTemplate=async e=>{let{sendProfileId:t,templateName:a,content:n,additionalRequest:s}=e;try{let e=await (0,r.p)(),i=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/supports`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({templateName:a,content:n,additionalRequest:s}),cache:"no-store"});return await i.json()}catch(e){}},this.createKakaoBrandMessageTemplate=async e=>{let{sendProfileId:t,senderKeyType:a,name:n,chatBubbleType:s,adult:i,header:o,content:l,additionalContent:c,imageUrl:d,imageLink:u,carousel:h,mainWideItem:p,subWideItem:m,video:y,commerce:g,buttonList:f,coupon:E,fallback:w}=e;try{let e=await (0,r.p)(),b=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:a,name:n,chatBubbleType:s,adult:i,header:o,content:l,additionalContent:c,imageUrl:d,imageLink:u,carousel:h,mainWideItem:p,subWideItem:m,video:y,commerce:g,buttonList:f,coupon:E,fallback:w}),cache:"no-store"});return await b.json()}catch(e){}},this.createKakaoBrandMessageTextTemplate=async e=>{let{sendProfileId:t,senderKeyType:a,name:n,adult:s,content:i,buttonList:o,coupon:l,fallback:c}=e;try{let e=await (0,r.p)(),d=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/text`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:a,name:n,adult:s,content:i,buttonList:o,coupon:l,fallback:c}),cache:"no-store"});return await d.json()}catch(e){}},this.updateKakaoBrandMessageTextTemplate=async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:n,name:s,adult:i,content:o,buttonList:l,coupon:c,fallback:d}=e;try{let e=await (0,r.p)(),u=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/${a}/update/text`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:n,name:s,adult:i,content:o,buttonList:l,coupon:c,fallback:d}),cache:"no-store"});return await u.json()}catch(e){}},this.createKakaoBrandMessageImageTemplate=async e=>{let{sendProfileId:t,senderKeyType:a,name:n,adult:s,content:i,imageUrl:o,imageLink:l,imageName:c,buttonList:d,coupon:u,fallback:h}=e;try{let e=await (0,r.p)(),p=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/image`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:a,name:n,adult:s,content:i,imageUrl:o,imageLink:l,buttonList:d,coupon:u,fallback:h,imageName:c}),cache:"no-store"});return await p.json()}catch(e){}},this.updateKakaoBrandMessageImageTemplate=async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:n,name:s,adult:i,content:o,imageUrl:l,imageLink:c,imageName:d,buttonList:u,coupon:h,fallback:p}=e;try{let e=await (0,r.p)(),m=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/${a}/update/image`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:n,name:s,adult:i,content:o,imageUrl:l,imageLink:c,imageName:d,buttonList:u,coupon:h,fallback:p}),cache:"no-store"});return await m.json()}catch(e){}},this.createKakaoBrandMessageWideImageTemplate=async e=>{let{sendProfileId:t,senderKeyType:a,name:n,adult:s,content:i,imageUrl:o,imageLink:l,imageName:c,buttonList:d,coupon:u,fallback:h}=e;try{let e=await (0,r.p)(),p=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/wide`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:a,name:n,adult:s,content:i,imageUrl:o,imageLink:l,imageName:c,buttonList:d,coupon:u,fallback:h}),cache:"no-store"});return await p.json()}catch(e){}},this.updateKakaoBrandMessageWideImageTemplate=async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:n,name:s,adult:i,content:o,imageUrl:l,imageLink:c,imageName:d,buttonList:u,coupon:h,fallback:p}=e;try{let e=await (0,r.p)(),m=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/${a}/update/wide`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:n,name:s,adult:i,content:o,imageUrl:l,imageLink:c,imageName:d,buttonList:u,coupon:h,fallback:p}),cache:"no-store"});return await m.json()}catch(e){}},this.createKakaoBrandMessageWideItemListTemplate=async e=>{let{sendProfileId:t,senderKeyType:a,name:n,adult:s,header:i,mainWideItem:o,subWideItemList:l,buttonList:c,coupon:d,fallback:u}=e;try{let e=await (0,r.p)(),h=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/wide-item-list`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:a,name:n,adult:s,header:i,mainWideItem:o,subWideItemList:l,buttonList:c,coupon:d,fallback:u}),cache:"no-store"});return await h.json()}catch(e){}},this.updateKakaoBrandMessageWideItemListTemplate=async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:n,name:s,adult:i,header:o,mainWideItem:l,subWideItemList:c,buttonList:d,coupon:u,fallback:h}=e;try{let e=await (0,r.p)(),p=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/${a}/update/wide-item-list`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:n,name:s,adult:i,header:o,mainWideItem:l,subWideItemList:c,buttonList:d,coupon:u,fallback:h}),cache:"no-store"});return await p.json()}catch(e){}},this.createKakaoBrandMessageCarouselTemplate=async e=>{let{sendProfileId:t,senderKeyType:a,name:n,adult:s,carousel:i,fallback:o}=e;try{let e=await (0,r.p)(),l=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/carousel-feed`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:a,name:n,adult:s,carousel:i,fallback:o}),cache:"no-store"});return await l.json()}catch(e){}},this.updateKakaoBrandMessageCarouselTemplate=async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:n,name:s,adult:i,carousel:o,fallback:l}=e;try{let e=await (0,r.p)(),c=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/${a}/update/carousel-feed`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({senderKeyType:n,name:s,adult:i,carousel:o,fallback:l}),cache:"no-store"});return await c.json()}catch(e){}},this.getBrandMessageTemplateList=async e=>{let{sendProfileId:t,senderKeyType:a,page:n=1,limit:s=20,searchKeyword:i,sort:o="RECENT_CREATED"}=e;try{let e=await (0,r.p)(),l=new URLSearchParams;a&&l.append("senderKeyType",a),n&&l.append("page",n.toString()),s&&l.append("limit",s.toString()),i&&l.append("searchKeyword",i),o&&l.a
7ppend("sort",o);let c=l.toString(),d=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates?${c}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},cache:"no-store"});return await d.json()}catch(e){}},this.getBrandMessageTemplateItem=async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:n}=e;try{let e=await (0,r.p)(),s=new URLSearchParams;n&&s.append("senderKeyType",n);let i=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/${a}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},cache:"no-store"});return await i.json()}catch(e){}},this.deleteBrandMessageTemplate=async e=>{let{sendProfileId:t,templateIds:a}=e;try{let e=await (0,r.p)(),n=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/delete`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({templateIds:a}),cache:"no-store"});return await n.json()}catch(e){}},this.changeBrandMessageTemplateFallbackNumber=async e=>{let{sendProfileId:t,templateIds:a,senderNumber:n}=e;try{let e=await (0,r.p)(),s=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/brand-message-templates/batch-update-fallback-sender`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({templateIds:a,senderNumber:n}),cache:"no-store"});return await s.json()}catch(e){}},this.changeAlimtalkTemplateFallbackNumber=async e=>{let{sendProfileId:t,templateIds:a,senderNumber:n}=e;try{let e=await (0,r.p)(),s=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/${t}/templates/batch-update-fallback-sender`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({templateIds:a,senderNumber:n}),cache:"no-store"});return await s.json()}catch(e){}},this.uploadBrandMessageImage=async e=>{try{let t=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/brand-message/image/upload`,{method:"POST",headers:{Authorization:`Bearer ${t}`},body:e,cache:"no-store"});return await a.json()}catch(e){}},this.getKakaoMessagingCapabilities=async()=>{try{let e=await (0,r.p)(),t=await fetch(`${this.baseUrl}/${this.msPath}/user-messaging-capabilities`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});return await t.json()}catch(e){}},this.getFileUploadPresignedUrl=async()=>{try{let e=await (0,r.p)(),t=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/non-friend-ad-channel/presigned-url`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});return await t.json()}catch(e){}},this.requestBrandMessageNonFriendAdChannel=async e=>{let{sendProfileId:t,hasFriendsOver50k:a,hasSendHistoryLast3Months:n,marketingConsentFiles:s}=e;try{let e=await (0,r.p)(),i=await fetch(`${this.baseUrl}/${this.msPath}/send-profiles/non-friend-ad-channel/request`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({sendProfileId:t,hasFriendsOver50k:a,hasSendHistoryLast3Months:n,marketingConsentFiles:s}),cache:"no-store"});return await i.json()}catch(e){}},this.getKakaoGroupReceiver=async e=>{let{groupId:t}=e;try{let e=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/groups/${t}/receiver`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});return await a.json()}catch(e){throw Error("Failed to fetch sms receiver")}},this.getKakaoBrandMessageStatistics=async e=>{let{groupId:t}=e;try{let e=await (0,r.p)(),a=await fetch(`${this.baseUrl}/${this.msPath}/groups/${t}/statistics`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});return await a.json()}catch(e){throw Error("Failed to fetch kakao brand message statistics")}},this.getSendonTemplateList=async e=>{let t=await (0,r.p)(),a=new URLSearchParams;e.categoryCode&&a.set("categoryCode",e.categoryCode),e.favoriteOnly&&a.set("favoriteOnly","true"),e.keyword&&a.set("keyword",e.keyword);let n=a.toString(),s=`${this.baseUrl}/v2/messages/kakao/quick-use/templates${n?`?${n}`:""}`,i=await fetch(s,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await i.json()},this.addSendonTemplateFavorite=async e=>{let t=await (0,r.p)(),a=`${this.baseUrl}/v2/messages/kakao/quick-use/templates/${e}/favorite`,n=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await n.json()},this.deleteSendonTemplateFavorite=async e=>{let t=await (0,r.p)(),a=`${this.baseUrl}/v2/messages/kakao/quick-use/templates/${e}/favorite/delete`,n=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await n.json()},this.bffClient=(0,i.K0)(s.b.kakao,{baseUrl:this.baseUrl})}setIdToken(e){this.idToken=e}}let m=new p},35271:(e,t,a)=>{a.d(t,{E:()=>d,Q:()=>u});var r=a(99776),n=a(80549),s=a(53455),i=a(32703);let o=async e=>{let{...t}=e,a={url:"/v2/user/users/apikeys",params:{...t}},{data:r}=await i.L.POST(a);return r},l=async()=>{let{data:e}=await i.L.GET({url:"/v2/user/users/apikeys"});return e};var c=a(68788);let d=(e,t)=>{let a=(0,r.jE)();return(0,n.n)({mutationFn:e=>o(e),onSuccess:t=>{a.invalidateQueries({queryKey:c.O.apiKeys._def}),e&&e(t)},onError:e=>{t&&t(e)}})},u=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,s.I)({queryKey:c.N.apiKeys(e),queryFn:l,staleTime:e,enabled:t})}},38852:(e,t,a)=>{a.d(t,{E:()=>s});var r=a(83174),n=a(6584);let s=async e=>{let{brandId:t,file:a}=e,s=await (0,r.p)(),i=(e=>{let t=Date.now().toString(),a=Math.random().toString(36).slice(2,8),r=`${e}.${t}${a}`;return r.length>64?r.slice(0,64):r})(t),o=new FormData;o.append("fileId",i),o.append("file",a,encodeURIComponent(a.name)),console.groupCollapsed(`[RCS MMS Upload] ${i}`),console.log("request",{fileId:i,fileName:a.name,fileSize:a.size,fileType:a.type});let l=await fetch(`${(0,n.Ay)().baseUrl}/v2/messages/rcs/mms/image/upload`,{method:"POST",headers:{Authorization:`Bearer ${s}`},body:o,cache:"no-store"}),c=await l.json().catch(()=>void 0);console.log("response httpStatus",l.status),console.log("response body",c),console.groupEnd();let d="number"==typeof(null==c?void 0:c.code)?c.code:l.status,u="string"==typeof(null==c?void 0:c.message)?c.message:l.statusText,h=(e=>{if(!e||"object"!=typeof e)return;let t=e.data;if(t&&"object"==typeof t)return t})(c);return{code:d,message:u,fileId:"string"==typeof(null==h?void 0:h.fileId)?h.fileId:void 0,expdate:"string"==typeof(null==h?void 0:h.expdate)?h.expdate:void 0,wasTranscoded:"boolean"==typeof(null==h?void 0:h.wasTranscoded)?h.wasTranscoded:void 0,raw:c}}},42570:(e,t,a)=>{a.d(t,{Dp:()=>i,fe:()=>n,wV:()=>s,xF:()=>r});let r=(0,a(31405).DY)("RCS",{entryPass:null,linkedAccount:e=>[{params:e}],publicNatIp:e=>[{params:e}],brandList:e=>[{params:e}],agencyBrand:e=>[{params:e}],agencyBrandList:e=>[{params:e}],templateList:e=>[{params:e}],template:e=>[{params:e}],templateImage:e=>[{params:e}],commonLogo:e=>[{params:e}],fallbackList:e=>[{params:e}],fallback:e=>[{params:e}],chatbotList:e=>[{params:e}],chatbot:e=>[{params:e}],group:e=>[{params:e}],brand:e=>[{params:e}],mmsImageUrl:e=>[{params:e}]}),n=3e5,s=1e3;function i(e){let{enabled:t,cache:a,...r}=e;return r}},48962:(e,t,a)=>{a.d(t,{Ae:()=>i,GD:()=>x,JF:()=>h,Jw:()=>p,Ox:()=>d,P7:()=>c,Pk:()=>E,US:()=>o,YI:()=>g,Z:()=>b,_S:()=>y,b9:()=>f,bd:()=>u,dr:()=>m,hj:()=>v,kq:()=>w,ks:()=>l,oU:()=>T,uo:()=>C});var r=a(6584),n=a(32703),s=a(34943);(0,r.Ay)().baseUrl;let i=async e=>{let{bankCode:t,accountNumber:a}=e,{data:r}
7=await n.L.GET({url:"v2/payment/validations/bank-accounts",params:{bankCode:t,accountNumber:a}});return r},o=async e=>{let{...t}=e,a={url:"v2/payment/credit-card/auth",params:{...t}},{data:r}=await n.L.POST(a);return r},l=async e=>{let{orderId:t,...a}=e,r={url:`v2/payment/credit-card/status/${t}`,params:{...a}},{data:s}=await n.L.GET(r);return s},c=async e=>{let{queryKey:t}=e,a=t[2].params||{},r={url:`v2/payment/histories/${a.historyId}`},{data:s}=await n.L.GET(r);return s},d=async e=>{let{historyId:t}=e,a={url:`v2/payment/histories/${t}/cancel-credit-card`},{data:r}=await n.L.POST(a);return r},u=async e=>{let{data:t}=await n.L.GET({url:"v2/payment/billing-cards"});return t},h=async e=>{let{billingCardId:t}=e,a={url:`v2/payment/billing-cards/${t}/delete`},{data:r}=await n.L.POST(a);return r},p=async e=>{let{billingCardId:t}=e,a={url:`v2/payment/billing-cards/${t}/set-primary`},{data:r}=await n.L.POST(a);return r},m=async e=>{let{data:t}=await n.L.GET({url:"v2/payment/auto-payment/settings"});return t},y=async e=>{let t={url:"v2/payment/auto-payment/settings/status",params:{...e}},{data:a}=await n.L.POST(t);return a},g=async e=>{let t={url:"v2/payment/auto-payment/settings",params:{...e}},{data:a}=await n.L.POST(t);return a},f=async()=>{let{data:e}=await n.L.POST({url:"v2/payment/billing-cards/register"});return e},E=async()=>{let{data:e}=await n.L.GET({url:"v2/payment/histories",params:{limit:20}});return{hasHistory:e.histories.filter(e=>!e.chargeMethod.includes("í¬ë ë§")).length>0}},w=async()=>{let{data:e}=await n.L.GET({url:"v2/payment/auto-charge"});return e},b=async()=>{let{data:e}=await n.L.GET({url:"v2/payment/auto-charge/settings"});return e},T=async e=>{let{data:t}=await n.L.POST({url:"v2/payment/auto-charge/settings",params:e});return t},x=async()=>{await n.L.POST({url:"v2/payment/auto-charge/terminate"})},v=async e=>{let t=new FormData;t.append("applicantName",e.applicantName),t.append("bankCd",e.bankCd),t.append("accountNo",e.accountNo),t.append("accountName",e.accountName),t.append("accountType",e.accountType),t.append("termsAgreed",e.termsAgreed),e.consentId&&t.append("consentId",e.consentId),e.customerMessage&&t.append("customerMessage",e.customerMessage),e.registerForm&&t.append("registerForm",e.registerForm),e.idCopy&&t.append("idCopy",e.idCopy),e.businessLicense&&t.append("businessLicense",e.businessLicense);let{data:a}=await s.O.post("v2/payment/auto-charge/consents",t);return a.data},C=async e=>{let t=new FormData;e.customerMessage&&t.append("customerMessage",e.customerMessage),e.registerForm&&t.append("registerForm",e.registerForm),e.idCopy&&t.append("idCopy",e.idCopy),e.businessLicense&&t.append("businessLicense",e.businessLicense);let{data:a}=await s.O.post(`v2/payment/auto-charge/consents/${e.consentId}/reapply`,t);return a.data}},49318:(e,t,a)=>{a.d(t,{i_:()=>l,Zi:()=>j,n3:()=>O,qJ:()=>I,JD:()=>h,XS:()=>$,Bu:()=>S,sl:()=>o,ku:()=>c,NL:()=>v,uY:()=>s.u,HK:()=>d,Ci:()=>u,hx:()=>p,lM:()=>m,jO:()=>i.j,be:()=>n.be,bO:()=>n.bO,FB:()=>n.FB,Xr:()=>n.Xr,ow:()=>n.ow,Xk:()=>r.X,fV:()=>r.f,HR:()=>n.HR});var r=a(99039),n=a(15061),s=a(88157),i=a(24504),o=function(e){return e.COMPANY_BUSINESS_LICENSE_DOC="COMPANY_BUSINESS_LICENSE_DOC",e.COMPANY_EMPLOYEE_VERIFICATION_DOC="COMPANY_EMPLOYEE_VERIFICATION_DOC",e.COMPANY_REJECT_DOC="COMPANY_REJECT_DOC",e.SENDER_TELECOM_VERIFICATION_DOC="SENDER_TELECOM_VERIFICATION_DOC",e.SENDER_COMPANY_EMPLOYEE_VERIFICATION_DOC="SENDER_COMPANY_EMPLOYEE_VERIFICATION_DOC",e.SENDER_NUMBER_PREREGISTRATION_DOC="SENDER_NUMBER_PREREGISTRATION_DOC",e.SENDER_DELEGATEE_BUSINESS_LICENSE_DOC="SENDER_DELEGATEE_BUSINESS_LICENSE_DOC",e.SENDER_DELEGATEE_PERSON_IDENTITY_DOC="SENDER_DELEGATEE_PERSON_IDENTITY_DOC",e.SENDER_DELEGATEE_EMPLOYEE_VERIFICATION_DOC="SENDER_DELEGATEE_EMPLOYEE_VERIFICATION_DOC",e.SENDER_DELEGATOR_BUSINESS_LICENSE_DOC="SENDER_DELEGATOR_BUSINESS_LICENSE_DOC",e.SENDER_DELEGATOR_PERSON_IDENTITY_DOC="SENDER_DELEGATOR_PERSON_IDENTITY_DOC",e.SENDER_DELEGATOR_EMPLOYEE_VERIFICATION_DOC="SENDER_DELEGATOR_EMPLOYEE_VERIFICATION_DOC",e.SENDER_NUMBER_REGISTRATION_REASON_DOC="SENDER_NUMBER_REGISTRATION_REASON_DOC",e.SENDER_REJECT_DOC="SENDER_REJECT_DOC",e.SENDER_DUPLICATED_NUMBER_REASON_DOC="SENDER_DUPLICATED_NUMBER_REASON_DOC",e}({});let l=["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","
7image/heic","application/zip"],c="10mb ì´í, pdf, zip, jpg, gif, tif íì 첨ë¶",d=(e,t,a)=>{let r=Object.values(e).filter(e=>void 0!==e).length,n=(e=>(null==e?void 0:e.filter(e=>e!==o.SENDER_DUPLICATED_NUMBER_REASON_DOC).length)??0)(t),s=!(e=>(null==e?void 0:e.includes(o.SENDER_DUPLICATED_NUMBER_REASON_DOC))??!1)(t)||a.trim().length>0;return r===n&&s},u=e=>(null==e?void 0:e.length)===1&&e[0]===o.SENDER_DUPLICATED_NUMBER_REASON_DOC;var h=function(e){return e.AGENT_CEO_CLIENT_CEO="AGENT_CEO_CLIENT_CEO",e.AGENT_CEO_CLIENT_EMPLOYEE="AGENT_CEO_CLIENT_EMPLOYEE",e.AGENT_EMPLOYEE_CLIENT_CEO="AGENT_EMPLOYEE_CLIENT_CEO",e.AGENT_EMPLOYEE_CLIENT_EMPLOYEE="AGENT_EMPLOYEE_CLIENT_EMPLOYEE",e}({});let p=e=>{let t=[];return e.telecommunicationVerificationDoc&&t.push({file:e.telecommunicationVerificationDoc,fileType:o.SENDER_TELECOM_VERIFICATION_DOC}),e.companyEmployeeVerificationDoc&&t.push({file:e.companyEmployeeVerificationDoc,fileType:o.SENDER_COMPANY_EMPLOYEE_VERIFICATION_DOC}),e.numberPreRegistrationDoc&&t.push({file:e.numberPreRegistrationDoc,fileType:o.SENDER_NUMBER_PREREGISTRATION_DOC}),e.delegateeBusinessLicenseDoc&&t.push({file:e.delegateeBusinessLicenseDoc,fileType:o.SENDER_DELEGATEE_BUSINESS_LICENSE_DOC}),e.delegateeIdentityDoc&&t.push({file:e.delegateeIdentityDoc,fileType:o.SENDER_DELEGATEE_PERSON_IDENTITY_DOC}),e.delegateeEmployeeVerificationDoc&&t.push({file:e.delegateeEmployeeVerificationDoc,fileType:o.SENDER_DELEGATEE_EMPLOYEE_VERIFICATION_DOC}),e.delegatorBusinessLicenseDoc&&t.push({file:e.delegatorBusinessLicenseDoc,fileType:o.SENDER_DELEGATOR_BUSINESS_LICENSE_DOC}),e.delegatorIdentityDoc&&t.push({file:e.delegatorIdentityDoc,fileType:o.SENDER_DELEGATOR_PERSON_IDENTITY_DOC}),e.delegatorEmployeeVerificationDoc&&t.push({file:e.delegatorEmployeeVerificationDoc,fileType:o.SENDER_DELEGATOR_EMPLOYEE_VERIFICATION_DOC}),t},m=(e,t,a)=>{let r=e.find(e=>e.fileType===o.SENDER_TELECOM_VERIFICATION_DOC),n=e.find(e=>e.fileType===o.SENDER_COMPANY_EMPLOYEE_VERIFICATION_DOC),s=e.find(e=>e.fileType===o.SENDER_NUMBER_PREREGISTRATION_DOC),i=e.find(e=>e.fileType===o.SENDER_DELEGATEE_BUSINESS_LICENSE_DOC),l=e.find(e=>e.fileType===o.SENDER_DELEGATEE_PERSON_IDENTITY_DOC),c=e.find(e=>e.fileType===o.SENDER_DELEGATEE_EMPLOYEE_VERIFICATION_DOC),d=e.find(e=>e.fileType===o.SENDER_DELEGATOR_BUSINESS_LICENSE_DOC),u=e.find(e=>e.fileType===o.SENDER_DELEGATOR_PERSON_IDENTITY_DOC),h=e.find(e=>e.fileType===o.SENDER_DELEGATOR_EMPLOYEE_VERIFICATION_DOC);return{numberId:t,telecommunicationVerificationDocId:null==r?void 0:r.fileId,companyEmployeeVerificationDocId:null==n?void 0:n.fileId,numberPreRegistrationDocId:null==s?void 0:s.fileId,delegateeBusinessLicenseDocId:null==i?void 0:i.fileId,delegateeIdentityDocId:null==l?void 0:l.fileId,delegateeEmployeeVerificationDocId:null==c?void 0:c.fileId,delegatorBusinessLicenseDocId:null==d?void 0:d.fileId,delegatorIdentityDocId:null==u?void 0:u.fileId,delegatorEmployeeVerificationDocId:null==h?void 0:h.fileId,duplicatedNumberReason:a.length>0?a:void 0}};a(86118);var y=a(29732),g=a(95155),f=a(63535),E=a(57463),w=a(87682),b=a(38183),T=a(63761),x=a(45380);function v(e){let{companyId:t,senderNumber:a,numberContractorType:r,setNumberContractorType:n}=e,s=(0,w.r)(),{data:i,isLoading:o}=(0,b.Vy)({companyId:t??0,enable:0!==t});return(0,g.jsxs)("div",{className:"flex flex-col justify-between rounded-xl bg-white text-gray17 shadow-ali-base",children:[(0,g.jsxs)("div",{className:"px-7 py-6",children:[(0,g.jsx)("p",{className:"text-2xl-semibold",children:"ëª
ìì ì í"}),(0,g.jsxs)("p",{className:"mt-1 whitespace-pre-wrap text-base-normal leading-normal text-gray40",children:[(0,T.Fr)(a),"ë²í¸ì ëª
ìì를 ì íí´ì£¼ì¸ì"]})]}),(0,g.jsx)("div",{className:"w-full px-7 py-6",children:(0,g.jsxs)(f.z_,{name:"radio-phone-business-owner-choice",className:"w-full gap-5",onChange:e=>{switch(e.target.id){case"COMPANY":s.track("corporate_owner_select",{popupName:"senderAddPopup"}),n("COMPANY");break;case"COMPANY_CEO":s.track("representative_owner_select",{popupName:"senderAddPopup"}),n("COMPANY_CEO");break;case"COMPANY_EMPLOYEE":s.track("employee_owner_select",{popupName:"senderAddPopup"}),n("COMPANY_EMPLOYEE");break;case"OTHER_COMPANY":s.track("other_provider_owner_select",{popupName:"senderAddPopup"}),n("OTHER_COMPANY");break;case"OTHER_COMPANY_CEO":s.track("other_provider_ceo_owner_select",{popupName:"senderAddPopup"}),n("OTHER_COMPANY_CEO")}},children:[(0,g.jsx)(f.MZ,{name:"radio-phone-business-owner-choice",id:"COMPANY",title:"ë²ì¸",checked:"COMPANY"===r,extendedNode:(0,g.jsx)("p",{className:"max-w-[550
7px] truncate",children:(null==i?void 0:i.data.companyName)??""})}),(0,g.jsx)(f.MZ,{name:"radio-phone-business-owner-choice",id:"COMPANY_CEO",title:"ëíì",checked:"COMPANY_CEO"===r,extendedNode:(0,g.jsx)("p",{className:"max-w-[550px] truncate",children:(null==i?void 0:i.data.ceoName)??""})}),(0,g.jsx)(f.MZ,{name:"radio-phone-business-owner-choice",id:"COMPANY_EMPLOYEE",title:"ì¬ì§ì",checked:"COMPANY_EMPLOYEE"===r,extendedNode:(0,g.jsxs)("div",{className:"flex items-center",children:[(0,g.jsx)("p",{className:"max-w-[500px] truncate",children:(null==i?void 0:i.data.companyName)??""}),(0,g.jsx)("p",{className:"whitespace-nowrap",children:"ì ì§ì"})]})}),(0,g.jsx)(f.MZ,{name:"radio-phone-business-owner-choice",id:"OTHER_COMPANY",title:"íì¬",extendedNode:(0,g.jsxs)("div",{className:"flex w-full items-center gap-[3px]",children:[(0,g.jsx)("p",{children:"íì¬"}),(0,g.jsx)(E.N,{placement:"bottom",content:(0,g.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,g.jsx)("p",{className:"text-sm-medium",children:"íì¬"}),(0,g.jsx)("p",{className:"whitespace-pre-line text-xs-normal",children:`ìíì¬, ê³ì´ì¬ ë± ë²ì¸ë±ë¡ë²í¸ê° 8 ë¤ë¥´ë©´ 모ë ííì¬ ëª ìì ëë¤`})]}),children:(0,g.jsx)(x.A,{width:20,height:20,className:"text-gray90"})})]}),checked:"OTHER_COMPANY"===r}),(0,g.jsx)(f.MZ,{name:"radio-phone-business-owner-choice",id:"OTHER_COMPANY_CEO",title:"íì¬ ëíì",extendedNode:(0,g.jsxs)("div",{className:"flex w-full items-center gap-[3px]",children:[(0,g.jsx)("p",{children:"íì¬ ëíì"}),(0,g.jsx)(E.N,{placement:"bottom",content:(0,g.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,g.jsx)("p",{className:"text-sm-medium",children:"íì¬ ëíì"}),(0,g.jsx)("p",{className:"whitespace-pre-line text-xs-normal",children:`íµì ìë¹ì¤ ì´ì© ì¦ëª ì ë´ ëª ììê° 9 íì¬ ëíìì¸ ê²½ì° íì¬ ëíìë¡ 10 ì íí´ì£¼ì¸ì`})]}),children:(0,g.jsx)(x.A,{width:20,height:20,className:"text-gray90"})})]}),checked:"OTHER_COMPANY_CEO"===r})]})})]})}var C=a(95461);function S(e){let{duplicateReason:t,setDuplicateReason:a}=e,r=(0,T.$j)(t);return(0,g.jsxs)("div",{className:"flex flex-col justify-between rounded-xl bg-white text-gray17 shadow-ali-base",children:[(0,g.jsxs)("div",{className:"px-7 py-6",children:[(0,g.jsx)("p",{className:"text-2xl-semibold",children:"ì¤ë³µ ë±ë¡ ì¬ì ì ë ¥"}),(0,g.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-base-normal leading-normal text-gray40",children:"ì´ë¯¸ ì¬ì©ì¤ì¸ ë°ì ë²í¸ì ëë¤. ì´ ê³ì ììë ì¬ì©íìë ¤ë©´ ì¬ì 를 ì ë ¥íì í íì ìë¥ë¥¼ 첨ë¶íì¬ ì ì²í´ì£¼ì¸ì"})]}),(0,g.jsxs)("div",{className:"px-7 py-6",children:[(0,g.jsx)("p",{className:"mb-1 text-sm-medium",children:"ì¬ì ì ë ¥"}),(0,g.jsx)(C.A,{value:t,onChange:e=>{200>=(0,T.$j)(e.target.value)&&a(e.target.value)},placeholder:"ë´ì©ì ì ë ¥í´ì£¼ì¸ì",className:"h-[130px]"}),(0,g.jsx)("div",{className:"flex items-center justify-end",children:(0,g.jsx)("div",{children:(0,g.jsx)("p",{className:"text-xs-normal text-gray50",children:`${r} / 200byte`})})})]})]})}var N=a(84268);function j(e){let{field:t,setTelecommVerifyDocFile:a,setCompanyEmployeeVerificationDocFile:r}=e,n=(0,w.r)();return(0,g.jsxs)("div",{className:"flex flex-col justify-between rounded-xl bg-white text-gray17 shadow-ali-base",children:[(0,g.jsxs)("div",{className:"px-7 py-6",children:[(0,g.jsx)("p",{className:"text-2xl-semibold",children:"ìë¥ ì²¨ë¶"}),(0,g.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-base-normal leading-normal text-gray40",children:"ì íí ëª ììì ìë¥ì¸ì¦ì íµí´ ë±ë¡ ê°ë¥í©ëë¤. íì ìë¥ë¥¼ ë±ë¡í´ì£¼ì¸ì"})]}),t.telecommunicationVerifyDoc&&(0,g.jsxs)("div",{className:"flex flex-col px-7 pb-6 pt-3",children:[(0,g.jsx)(y.v2,{}),(0,g.jsx)("p",{className:"mb-2 mt-4 text-sm-medium",children:"íµì ì¬ ì´ì© ì¦ëª ì"}),(0,g.jsx)(N.Y,{placeholder:"íì¼ì 첨ë¶í´ì£¼ì¸ì",guide:"ë°ê¸ì¼ì 1ê°ì ì´ë´ / 10mb ì´í / jpg, jpeg, png, pdf, bmp, tiff, gif, heic íì 첨ë¶",allowedFileTypes:["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","
10image/heic"],callback:e=>{a&&(n.track("upload_phone_service_cert",{popupName:"senderAddPopup"}),a(e))}})]}),t.companyEmployeeVerificationDoc&&(0,g.jsxs)("div",{className:"px-7 pt-3 pb-6",children:[(0,g.jsx)(y.G5,{}),(0,g.jsx)("p",{className:"mt-4 mb-2 text-sm-medium",children:"ì¬ì§ ì¦ëª
ì"}),(0,g.jsx)(N.Y,{placeholder:"íì¼ì 첨ë¶í´ì£¼ì¸ì",guide:"ë°ê¸ì¼ì 1ê°ì ì´ë´ / 10mb ì´í / jpg, jpeg, png, pdf, bmp, tiff, gif, heic íì 첨ë¶",allowedFileTypes:["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","image/heic"],callback:e=>{r&&(n.track("upload_employee_cert",{popupName:"senderAddPopup"}),r(e))}})]})]})}function I(e){let{delegateeType:t,setDelegateeType:a,setDelegateeIdentityDocFile:r,setDelegateeCompanyEmployeeVerificationDocFile:n}=e,s=(0,w.r)();return(0,g.jsxs)("div",{className:"flex flex-col justify-between rounded-xl bg-white text-gray17 shadow-ali-base",children:[(0,g.jsxs)("div",{className:"px-7 py-6",children:[(0,g.jsx)("p",{className:"text-2xl-semibold",children:"ììì¬ ìë¥ ì²¨ë¶"}),(0,g.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-base-normal leading-normal text-gray40",children:"ì íí ëª
ììì ìë¥ì¸ì¦ì íµí´ ë±ë¡ ê°ë¥í©ëë¤. íì ìë¥ë¥¼ ë±ë¡í´ì£¼ì¸ì"})]}),(0,g.jsxs)("div",{className:"px-7 py-3",children:[(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("p",{className:"mb-2 text-sm-medium",children:"ìì ë´ë¹ì"}),(0,g.jsxs)(f.T$,{className:"w-full gap-5",onChange:e=>{"DELEGATEE_CEO"===e.target.id?a("CEO"):"DELEGATEE_EMPLOYEE"===e.target.id&&a("EMPLOYEE")},children:[(0,g.jsx)(f.MZ,{id:"DELEGATEE_CEO",name:"DELEGATEE",title:"ììì¬ ëíì",checked:"CEO"===t},"DELEGATEE_CEO"),(0,g.jsx)(f.MZ,{id:"DELEGATEE_EMPLOYEE",name:"DELEGATEE",title:"ììì¬ ì¬ì§ì",checked:"EMPLOYEE"===t},"DELEGATEE_EMPLOYEE")]}),(0,g.jsx)("p",{className:"mt-2 text-xs-normal text-gray50",children:"ë°ì ë²í¸ ì¬ì ë±ë¡ ì ì²ìì ììì¬ ë´ë¹ìì ì¼ì¹í´ì¼ í©ëë¤."})]}),(0,g.jsx)("div",{className:"h-7"}),(0,g.jsx)("p",{className:"mb-2 text-sm-medium",children:"ììì¬ ë´ë¹ì ì ë¶ì¦"}),(0,g.jsx)(N.Y,{placeholder:"íì¼ì 첨ë¶í´ì£¼ì¸ì",guide:"ì ë¶ì¦ ë´ ë¯¼ê°ì ë³´ë ê°ë ¤ì£¼ì¸ì / 10mb ì´í / jpg, jpeg, png, pdf, bmp, tiff, gif, heic íì 첨ë¶",allowedFileTypes:["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","image/heic"],callback:e=>{r&&(s.track("upload_delegate_id",{popupName:"senderAddPopup"}),r(e))}})]}),(0,g.jsxs)("div",{className:"px-7 pb-6 pt-4",hidden:"CEO"===t,children:[(0,g.jsx)(y.G5,{}),(0,g.jsx)("p",{className:"mb-2 mt-4 text-sm-medium",children:"ììì¬ ë´ë¹ì ì¬ì§ì¦ëª
ì"}),(0,g.jsx)(N.Y,{placeholder:"íì¼ì 첨ë¶í´ì£¼ì¸ì",guide:"ì ë¶ì¦ ë´ ë¯¼ê°ì ë³´ë ê°ë ¤ì£¼ì¸ì / 10mb ì´í / jpg, jpeg, png, pdf, bmp, tiff, gif, heic íì 첨ë¶",allowedFileTypes:["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","image/heic"],callback:e=>{n&&(s.track("upload_delegate_employee_cert",{popupName:"senderAddPopup"}),n(e))}})]})]})}var P=a(33200);function $(e){let{delegatorType:t,setDelegatorType:a,setTelecommVerifyDocFile:r,setDelegatorIdentityDocFile:n,setDelegatorCompanyEmployeeVerificationDocFile:s,setNumberPreRegistrationDocFile:i,setDelegatorBusinessLicenseFile:o}=e,l=(0,w.r)();return(0,g.jsxs)("div",{className:"flex flex-col justify-between rounded-xl bg-white text-gray17 shadow-ali-base",children:[(0,g.jsxs)("div",{className:"px-7 py-6",children:[(0,g.jsx)("p",{className:"text-2xl-semibold",children:"ììì¬ ìë¥ ì²¨ë¶"}),(0,g.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-base-normal leading-normal text-gray40",children:"ì íí ëª
ììì ìë¥ì¸ì¦ì íµí´ ë±ë¡ ê°ë¥í©ëë¤. íì ìë¥ë¥¼ ë±ë¡í´ì£¼ì¸ì"})]}),(0,g.jsxs)("div",{className:"px-7 py-3",children:[(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("p",{className:"mb-2 text-sm-medium",children:"ìì ë´ë¹ì"}),(0,g.jsxs)(f.T$,{className:"w-full gap-5",onChange:e=>{"DELEGATOR_CEO"===e.target.id?a("CEO"):"DELEGATOR_EMPLOYEE"===e.target.id&&a("EMPLOYEE")},children:[(0,g.jsx)(f.MZ,{id:"DELEGATOR_CEO",name:"DELEGATOR",title:"ììì¬ ëíì",checked:"CEO"===t},"DELEGATOR_CEO"),(0,g.jsx)(f.MZ,{id:"DELEGATOR_EMPLOYEE",name:"DELEGATOR",title:"ììì¬ ì¬ì§ì",checked:"EMPLOYEE"===t},"DELEGATOR_EMPLOYEE")]}),(0,g.jsx)("p",{className:"mt-2 text-xs-normal text-gray50",children:"ë°ì ë²í¸ ì¬ì ë±ë¡ ì ì²ì
10ì ììì¬ ë´ë¹ìì ì¼ì¹í´ì¼ í©ëë¤."})]}),(0,g.jsx)("div",{className:"h-7"}),(0,g.jsx)(y.v2,{}),(0,g.jsx)("p",{className:"mb-2 mt-4 text-sm-medium",children:"íµì ìë¹ì¤ ì´ì© ì¦ëª
ì"}),(0,g.jsx)(N.Y,{placeholder:"íì¼ì 첨ë¶í´ì£¼ì¸ì",guide:"ë°ê¸ì¼ì 1ê°ì ì´ë´ / 10mb ì´í / jpg, jpeg, png, pdf, bmp, tiff, gif, heic íì 첨ë¶",allowedFileTypes:["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","image/heic"],callback:e=>{r&&(l.track("upload_phone_service_cert",{popupName:"senderAddPopup"}),r(e))}})]}),(0,g.jsxs)("div",{className:"px-7 py-4",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between",children:[(0,g.jsx)("p",{className:"mb-2 text-sm-medium",children:"ììì¥"}),(0,g.jsxs)("div",{className:"flex items-center gap-2",children:[(0,g.jsx)("p",{className:"text-sm-normal",children:"ìí ë¤ì´ë¡ë"}),(0,g.jsx)("a",{href:"/assets/console/sample/ì¼ëì¨_ë°ì ë²í¸ ë±ë¡ ììì¥.docx",download:!0,children:(0,g.jsx)(P.n,{label:".docx",underline:!0,size:"base-semibold"})}),(0,g.jsx)("a",{href:"/assets/console/sample/ì¼ëì¨_ë°ì ë²í¸ ë±ë¡ ììì¥.pdf",download:!0,children:(0,g.jsx)(P.n,{label:".pdf",underline:!0,size:"base-semibold",onClick:()=>{l.track("delegation_form_download_click",{popupName:"senderAddPopup"})}})})]})]}),(0,g.jsx)(N.Y,{placeholder:"íì¼ì 첨ë¶í´ì£¼ì¸ì",guide:"ììì¥ì ë¤ì´ë¡ë ë° ìì±í í 첨ë¶í´ì£¼ì¸ì / jpg, jpeg, png, pdf, bmp, tiff, gif, heic íì 첨ë¶",allowedFileTypes:["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","image/heic"],callback:e=>{i&&(l.track("upload_delegation_form",{popupName:"senderAddPopup"}),i(e))}})]}),(0,g.jsxs)("div",{className:"px-7 py-4",children:[(0,g.jsx)("p",{className:"mb-2 text-sm-medium",children:"ììì¬ ë´ë¹ì ì ë¶ì¦"}),(0,g.jsx)(N.Y,{placeholder:"íì¼ì 첨ë¶í´ì£¼ì¸ì",guide:"ì ë¶ì¦ ë´ ë¯¼ê°ì ë³´ë ê°ë ¤ì£¼ì¸ì / 10mb ì´í / jpg, jpeg, png, pdf, bmp, tiff, gif, heic íì 첨ë¶",allowedFileTypes:["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","image/heic"],callback:e=>{n&&(l.track("upload_proxy_id",{popupName:"senderAddPopup"}),n(e))}})]}),(0,g.jsxs)("div",{className:"px-7 py-4",hidden:"CEO"===t,children:[(0,g.jsx)(y.G5,{}),(0,g.jsx)("p",{className:"mb-2 mt-4 text-sm-medium",children:"ììì¬ ë´ë¹ì ì¬ì§ì¦ëª
ì"}),(0,g.jsx)(N.Y,{placeholder:"íì¼ì 첨ë¶í´ì£¼ì¸ì",guide:"ì ë¶ì¦ ë´ ë¯¼ê°ì ë³´ë ê°ë ¤ì£¼ì¸ì / 10mb ì´í / jpg, jpeg, png, pdf, bmp, tiff, gif, heic íì 첨ë¶",allowedFileTypes:["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","image/heic"],callback:e=>{s&&(l.track("upload_proxy_employee_cert",{popupName:"senderAddPopup"}),s(e))}})]}),(0,g.jsxs)("div",{className:"px-7 py-3",children:[(0,g.jsx)(y.m5,{}),(0,g.jsx)("p",{className:"mb-2 mt-4 text-sm-medium",children:"ììì¬ ì¬ì
ì ë±ë¡ì¦"}),(0,g.jsx)(N.Y,{placeholder:"íì¼ì 첨ë¶í´ì£¼ì¸ì",guide:"10mb ì´í / jpg, jpeg, png, pdf, bmp, tiff, gif, heic íì 첨ë¶",allowedFileTypes:["image/jpeg","image/png","application/pdf","image/bmp","image/tiff","image/gif","image/heic"],callback:e=>{o&&(l.track("upload_proxy_business_license",{popupName:"senderAddPopup"}),o(e))}})]})]})}function O(e){let{delegateReason:t,setDelegateReason:a}=e,r=(0,T.$j)(t);return(0,g.jsxs)("div",{className:"flex flex-col justify-between rounded-xl bg-white text-gray17 shadow-ali-base",children:[(0,g.jsxs)("div",{className:"px-7 py-6",children:[(0,g.jsx)("p",{className:"text-2xl-semibold",children:"íì¬ì ë°ì ë²í¸ ë±ë¡ ì¬ì "}),(0,g.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-base-normal leading-normal text-gray40",children:"ì íí ëª
ììì ìë¥ì¸ì¦ì íµí´ ë±ë¡ ê°ë¥í©ëë¤. íì ìë¥ë¥¼ ë±ë¡í´ì£¼ì¸ì"})]}),(0,g.jsxs)("div",{className:"px-7 py-6",children:[(0,g.jsx)("p",{className:"mb-1 text-sm-medium",children:"ì¬ì ì
ë ¥"}),(0,g.jsx)(C.A,{value:t,onChange:e=>{200>=(0,T.$j)(e.target.value)&&a(e.target.value)},placeholder:"ë´ì©ì ì
ë ¥í´ì£¼ì¸ì",className:"h-[130px]"}),(0,g.jsx)("div",{className:"flex items-center justify-end",children:(0,g.jsx)("div",{children:(0,g.jsx)("p",{className:"text-xs-normal text-gray50",children:`${r} / 200byte`})})})]})]})}a(23761)},53186:(e,t,a)=>{a.d(t,{zE:()=>c,jl:()=>d,Eg:()=>l,Pp:()=>n,cH:()=>s,oy:()=>o,Ey:()=>h,lW:()=>u,DY:()=>i});var r=a(95155);let n=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none",children:(0,r.jsx)("circle",{cx:"2",cy:"2",r:"2",fill:"#C9CBCF"})}),s=e=>{let{color:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"8",viewBox:"0 0 9 8",fill:"none",children:(0,r.jsx)("circle",{cx:"4.7998",cy:"4",r:"4",fill:t})})},i=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,r.jsx)("path",{d:"M8 5L13 10L8 15.0007",stroke:"#ffffff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),o=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,r.jsx)("path",{d:"M12 5L7 10L12 15.0007",stroke:"#ffffff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),l=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,r.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:"#E3E6EA"})}),c=()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:"#484C50"}),(0,r.jsx)("circle",{cx:"10",cy:"10",r:"4",fill:"white"})]}),d=()=>(0,r.jsx)("div",{className:"!h-1 !w-1 rounded-full bg-gray90"}),u=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"168",height:"20",viewBox:"0 0 168 20",fill:"none",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 -0.
10000976562C2.48963 -0.000976562 4.97925 2.22125 4.97925 4.44347V3.33236V-0.000976562H0ZM4.98047 -0.000976562H163.072V8.47695C163.072 14.8404 157.913 19.999 151.55 19.999H16.5025C10.1391 19.999 4.98047 14.8404 4.98047 8.47695V-0.000976562ZM163.072 3.88801C163.072 1.66578 164.939 -0.000883303 167.429 -0.000883303H163.072V3.88801Z",fill:"#E4E5E7"})}),h=e=>{let{messageType:t}=e,a=(e=>{let{messageType:t}=e,a="#72C0F9";return"SMS"===t&&(a="#72C0F9"),"LMS"===t&&(a="#6C2BD9"),"MMS"===t&&(a="#C4C0FA"),("AT"===t||"AI"===t||"AE"===t||"AL"===t||"Alimtalk"===t||"ì림í¡"===t)&&(a="#F7C33C"),("FT"===t||"FI"===t||"FW"===t||"FWL"===t||"Friendtalk"===t||"ì¹êµ¬í¡"===t)&&(a="#FCEDB8"),("BMI"===t||"BMW"===t||"BMCF"===t||"BMWL"===t||"BMT"===t||"ë¸ëëë©ìì§"===t)&&(a="#37c13C"),("RcsSMS"===t||"RcsLMS"===t||"RcsMMS"===t||"RcsTSM"===t||"RcsTLM"===t||"RcsTMM"===t)&&(a="#0A9187"),a})({messageType:t});return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:a})})}},56267:(e,t,a)=>{a.d(t,{EV:()=>g,rS:()=>h,JC:()=>T,aA:()=>b,kt:()=>w,$5:()=>y,kg:()=>f,sG:()=>E,rH:()=>p,kA:()=>u,vJ:()=>d,Vq:()=>m});var r=a(53455),n=a(80549),s=a(67364),i=a(6438),o=a(6584);class l{constructor(){this.baseUrl=(0,o.Ay)().baseUrl,this.msPath="v2/point",this.getUserPointList=async()=>{try{let e=await (0,i.F)();if(!e)throw Error("Failed to getUserPointList");let t=null==e?void 0:e.token,a=await fetch(`${this.baseUrl}/${this.msPath}/points`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){throw Error("Failed to fetch getUserPointList"+e)}},this.getUserCost=async()=>{try{let e=await (0,i.F)();if(!e)throw Error("Failed to getUserCost");let t=null==e?void 0:e.token,a=await fetch(`${this.baseUrl}/${this.msPath}/costs`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){throw Error("Failed to fetch getUserCost"+e)}},this.getCostList=async()=>{try{let e=await (0,i.F)();if(!e)throw Error("Failed to getCostList");let t=null==e?void 0:e.token,a=await fetch(`${this.baseUrl}/${this.msPath}/costs/list`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){throw Error("Failed to fetch getCostList"+e)}},this.requestRefunds=async e=>{let{bankAccount:t,requestedRefundAmount:a,phoneNumber:r,memo:n}=e;try{let e=await (0,i.F)();if(!e)throw Error("Failed to requestRefunds");let s=null==e?void 0:e.token,o=await fetch(`${this.baseUrl}/${this.msPath}/refunds`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`},body:JSON.stringify({bankAccount:t,requestedRefundAmount:a,phoneNumber:r,memo:n})});return await o.json()}catch(e){throw Error("Failed to fetch requestRefunds"+e)}},this.checkRefundableInfo=async()=>{try{let e=await (0,i.F)();if(!e)throw Error("Failed to checkRefundableInfo");let t=null==e?void 0:e.token,a=await fetch(`${this.baseUrl}/${this.msPath}/refunds/available`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){throw Error("Failed to fetch checkRefundableInfo"+e)}},this.addTaxInvoicesInfo=async e=>{try{let t=await (0,i.F)();if(!t)throw Error("Failed to addTaxInvoicesInfo");let a=null==t?void 0:t.token,r=await fetch(`${this.baseUrl}/${this.msPath}/tax/invoices`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(e)}),n=await r.json();return console.log("taxInvoiceAdd result: ",JSON.stringify(n)),n}catch(e){throw Error("Failed to fetch addTaxInvoicesInfo"+e)}},this.updateTaxInvoicesInfo=async e=>{try{let t=await (0,i.F)();if(!t)throw Error("Failed to updateTaxInvoicesInfo");let a=null==t?void 0:t.token,r=await fetch(`${this.baseUrl}/${this.msPath}/tax/invoices/update`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(e)}),n=await r.json();return console.log("taxInvoiceUpdate result: ",JSON.stringify(n)),n}catch(e){throw Error("Failed to fetch updateTaxInvoicesInfo"+e)}},this.getTaxInvoicesInfo=async()=>{try{let e=await (0,i.F)();if(!e)throw Error("Failed to getTexInvoicesInfo");let t=null==e?void 0:e.token,a=await fetch(`${this.baseUrl}/${this.msPath}/tax/invoices`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});return await a.json()}catch(e){throw Error("Failed to fetch getTexInvoicesInfo"+e)}},this.getTaxInvoiceHistory=async e=>{let{invoiceType:t,publishStatus:a,startDate:r,endDate:n,limit:s,cursor:o,sort:l}=e;try{let e=await (0,i.F)();if(!e)throw Error("Failed to getTaxInvoiceHistory");let c=null==e?void 0:e.token,d=new URLSearchParams;t&&d.append("invoiceType",t),a&&d.append("publishStatus",a),r&&d.append("startDate",r),n&&d.append("endDate",n),s&&d.append("limit",s.toString()),o&&d.append("cursor",o),l&&d.append("sort",l);let u=d.toString(),h=await fetch(`${this.baseUrl}/${this.msPath}/tax/invoices/history?${u}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${c}`}});return await h.json()}catch(e){throw Error("Failed to fetch getTaxInvoiceHistory"+e)}},this.getPointHistory=async e=>{let{selectDate:t,limit:a,cursor:r,sort:n}=e;try{let e=await (0,i.F)();if(!e)throw Error("Failed to getPointHistory");let s=null==e?void 0:e.token,o=new URLSearchParams;t&&o.append("selectDate",t),a&&o.append("limit",a.toString()),r&&o.append("cursor",r),n&&o.append("sort",n);let l=o.toString(),c=await fetch(`${this.baseUrl}/${this.msPath}/points/history?${l}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`}});return await c.json()}catch(e){throw Error("Failed to fetch getPointHistory"+e)}},this.getRefundHistory=async e=>{let{startDate:t,endDate:a,limit:r,cursor:n,sort:s}=e;try{let e=await (0,i.F)();if(!e)throw Error("Failed to getRefundHistory");let o=null==e?void 0:e.token,l=new URLSearchParams;t&&l.append("startDate",t),a&&l.append("endDate",a),r&&l.append("limit",r.toString()),n&&l.append("cursor",n),s&&l.append("sort",s);let c=l.toString(),d=await fetch(`${this.baseUrl}/${this.msPath}/refunds?${c}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return await d.json()}catch(e){throw Error("Failed to fetch getRefundHistory"+e)}},this.downloadTransactionSped=async e=>{let{historyIds:t}=e;try{let e=await (0,i.F)();if(!e)throw Error("Failed to downloadTransactionSpedc");let a=null==e?void 0:e.token,r=await fetch(`${this.baseUrl}/${this.msPath}/points/specs/export`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({historyIds:t})});return await r.json()}catch(e){throw Error("Failed to fetch downloadTransactionSpedc"+e)}},this.downloadRefundsReceipt=async e=>{let{refundId:t}=e;try{let e=await (0,i.F)();if(!e)throw Error("Failed to downloadRefundsReceipt");let a=null==e?void 0:e.token,r=await fetch(`${this.baseUrl}/${this.msPath}/refunds/receipt/export`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({refundId:t,useAsync:!1})});return await r.json()}catch(e){throw Error("Failed to fetch downloadRefundsReceipt"+e)}},this.downloadEstimate=async e=>{let{estimateType:t,recipientName:a,sendCount:r,rechargeAmount:n}=e;try{let e=await (0,i.F)();if(!e)throw Error("Failed to downloadEstimate");let s=null==e?void 0:e.token,l=((0,o.Cu)()||(0,o.IX)())&&new Date().getFullYear()>=2026,c=await fetch(`${this.baseUrl}/${this.msPath}/costs/estimate/export`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`},body:JSON.stringify({estimateType:t,recipientName:a,sendCount:r,rechargeAmount:n,...l&&{isTest2026:!0}})});return await c.json()}catch(e){throw Error("Failed to fetch downloadEstimate"+e)}}}}let c=new l,d=()=>(0,r.I)({queryKey:["userPointList"],queryFn:async()=>await c.getUserPointList()}),u=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.I)({queryKey:["userCost",e],queryFn:async()=>await c.getUserCost(),staleTime:e,enabled:t})},h=()=>(0,r.I)({queryKey:["costList"],queryFn:async()=>
10await c.getCostList()}),p=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{bankAccount:t,requestedRefundAmount:a,phoneNumber:r,memo:n}=e;return await c.requestRefunds({bankAccount:t,requestedRefundAmount:a,phoneNumber:r,memo:n})},onSuccess(e,a,r){t&&t(e)}})},m=()=>(0,r.I)({queryKey:["userRefundableCheck"],queryFn:async()=>await c.checkRefundableInfo()}),y=e=>{let{dependency:t,enable:a}=e;return(0,r.I)({queryKey:["getTexInvoicesInfo",a,t],queryFn:async()=>await c.getTaxInvoicesInfo(),enabled:a})},g=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{taxInvoiceItem:t}=e;return await c.addTaxInvoicesInfo(t)},onSuccess(e,a,r){t&&t(e)}})},f=e=>{let{selectDate:t,limit:a,enabled:r}=e;return(0,s.q)({queryKey:["pointHistory",t,a,r],queryFn:async e=>{let{pageParam:r}=e;return await c.getPointHistory({selectDate:t,limit:a,sort:"desc",cursor:r})},initialPageParam:"",getNextPageParam:(e,t)=>e.data.cursor,enabled:r})},E=e=>{let{startDate:t,endDate:a,limit:r,enabled:n,refreshKey:i}=e;return(0,s.q)({queryKey:["refundHistory",t,a,r,n,i],queryFn:async e=>{let{pageParam:n}=e;return await c.getRefundHistory({startDate:t,endDate:a,limit:r,sort:"desc",cursor:n})},initialPageParam:"",getNextPageParam:(e,t)=>e.data.cursor,enabled:n})},w=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{historyIds:t}=e;return await c.downloadTransactionSped({historyIds:t})},onSuccess(e,a,r){t&&t(e)}})},b=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{refundIds:t}=e;return await c.downloadRefundsReceipt({refundId:t})},onSuccess(e,a,r){t&&t(e)}})},T=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{estimateType:t,recipientName:a,sendCount:r,rechargeAmount:n}=e;return await c.downloadEstimate({estimateType:t,recipientName:a,sendCount:r,rechargeAmount:n})},onSuccess(e,a,r){t&&t(e)}})}},57463:(e,t,a)=>{a.d(t,{N:()=>i});var r=a(95155),n=a(46528),s=a(88245);let i=e=>{let{content:t,placement:a="top",style:i="auto",children:o,trigger:l="hover",className:c,theme:d}=e;return(0,r.jsx)(n.m_,{placement:a,content:t,className:c,trigger:l,style:i,theme:d||s.k3.tooltip,children:o})}},57666:(e,t,a)=>{a.d(t,{Iv:()=>h,LM:()=>m,MC:()=>d,Tk:()=>p,YG:()=>l,hR:()=>c,l$:()=>u});var r=a(53455),n=a(99776),s=a(80549),i=a(59828),o=a(48962);let l=e=>(0,r.I)({...i.R.hasPaymentHistory(),queryFn:o.Pk,enabled:null==e?void 0:e.enabled,staleTime:3e5}),c=e=>(0,r.I)({...i.R.autoChargeStatus(),queryFn:o.kq,enabled:null==e?void 0:e.enabled}),d=e=>(0,r.I)({...i.R.cmsAutoChargeSetting(),queryFn:o.Z,enabled:null==e?void 0:e.enabled}),u=()=>{let e=(0,n.jE)(),t=i.R.cmsAutoChargeSetting().queryKey;return(0,s.n)({mutationFn:o.oU,onMutate:async a=>{await e.cancelQueries({queryKey:t});let r=e.getQueryData(t);return r&&e.setQueryData(t,{...r,status:a.status,minimumBalance:a.minimumBalance,chargeAmount:a.chargeAmount}),{previous:r}},onError:(a,r,n)=>{(null==n?void 0:n.previous)&&e.setQueryData(t,n.previous)},onSettled:()=>{e.invalidateQueries({queryKey:t})}})},h=()=>{let e=(0,n.jE)();return(0,s.n)({mutationFn:o.hj,onSuccess:()=>{e.invalidateQueries({queryKey:i.R.autoChargeStatus().queryKey})}})},p=()=>{let e=(0,n.jE)();return(0,s.n)({mutationFn:o.uo,onSuccess:()=>{e.invalidateQueries({queryKey:i.R.autoChargeStatus().queryKey})}})},m=()=>{let e=(0,n.jE)();return(0,s.n)({mutationFn:o.GD,onSuccess:()=>{e.invalidateQueries({queryKey:i.R.autoChargeStatus().queryKey}),e.invalidateQueries({queryKey:i.R.cmsAutoChargeSetting().queryKey})}})}},57946:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(95155),n=a(20704);function s(e){let{imageTitle:t,cancelImage:a,bgWhite:s=!1}=e;return(0,r.jsxs)("div",{className:`flex h-8 w-[186px] items-center justify-between rounded-lg border border-gray96 px-3 ${s&&"bg-white"}`,children:[(0,r.jsx)("div",{className:"flex justify-start",children:t.includes(".")?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"max-w-[100px] truncate text-sm-normal",children:t.split(".")[0]}),(0,r.jsxs)("p",{className:"w-[10px] text-sm-normal",children:[".",t.split(".")[t.split(".").length-1]]})]}):(0,r.jsx)("p",{className:"max-w-[100px] truncate text-sm-normal",children:t})}),(0,r.jsx)(n.A,{className:"origin-center scale-100 cursor-pointer text-red400 transition-transform hover:scale-125",width:16,height:16,onClick:()=>{a(t)}})]})}},58720:(e,t,a)=>{a.d(t,{Qm:()=>d,Hh:()=>w,lU:()=>E,hB:()=>g,K4:()=>h,$o:()=>p,c4:()=>C,OL:()=>v,JP:()=>x,RK:()=>O,fz:()=>l,MR:()=>c,CS:()=>u,b1:()=>i,jY:()=>T,Z3:()=>y,zt:()=>j,_9:()=>I,HM:()=>m,dO:()=>N,_v:()=>$,Yv:()=>_,em:()=>S,Em:()=>b,dn:()=>o,Nn:()=>f,zv:()=>P});var r=a(32703),n=a(83174),s=a(6584);a(38852);let i=async e=>{let{clientId:t,clientSecret:a}=e,{data:n}=await r.L.POST({url:"/v2/rbc/token",params:{clientId:t,clientSecret:a}});return n},o=async e=>{let{...t}=e,a={url:"/v2/messages/rcs/linked-account",params:{...t}},{data:n}=await r.L.POST(a);return n},l=async e=>{let{queryKey:t}=e,a={url:"/v2/messages/rcs/linked-account",params:{userId:(t[2].params||{}).userId}},{data:n}=await r.L.GET(a);return n},c=async e=>{let{data:t}=await r.L.GET({url:"/v2/messages/rcs/linked-account",params:{userId:e}});return t},d=async e=>{let{linkedAccountId:t,...a}=e,n={url:`/v2/messages/rcs/linked-account/${t}`,params:{...a}},{data:s}=await r.L.POST(n);return s},u=async e=>{let{data:t}=await r.L.GET({url:"/v2/messages/rcs/public-nat-ip"});return t},h=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`/v2/rbc/brand/corp/${a.personId}/brand`,headers:{"rbc-client-id":a["rbc-client-id"],"rbc-client-secret":a["rbc-client-secret"]},params:{personId:a.personId}},{data:s}=await r.L.GET(n);return s},p=async e=>{let t={url:`/v2/rbc/brand/corp/${e.personId}/brand`,headers:{"rbc-client-id":e["rbc-client-id"],"rbc-client-secret":e["rbc-client-secret"]},params:{personId:e.personId,cache:e.cache}},{data:a}=await r.L.GET(t);return a},m=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`/v2/rbc/template/${a.brandId}/messagebase`,headers:{"rbc-client-id":a["rbc-client-id"],"rbc-client-secret":a["rbc-client-secret"],"X-RCS-BrandKey":a["X-RCS-BrandKey"]},params:{limit:a.limit,offset:a.offset,cache:"false"}},{data:s}=await r.L.GET(n);return s},y=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`/v2/rbc/template/${a.brandId}/messagebase/fallback`,headers:{"rbc-client-id":a["rbc-client-id"],"rbc-client-secret":a["rbc-client-secret"]},params:{brandId:a.brandId,limit:a.limit,cursor:a.cursor}},{data:s}=await r.L.GET(n);return s},g=async e=>{let{agencyId:t,...a}=e,n={url:`/v2/rbc/agency/${t}/agencyKey`,headers:{"rbc-client-id":a["rbc-client-id"],"rbc-client-secret":a["rbc-client-secret"]},params:{agencyId:t}},{data:s}=await r.L.GET(n);return s},f=async e=>{let{personId:t,brandId:a,...n}=e,s={url:`/v2/rbc/brand/corp/${t}/brand/${a}/privilege`,headers:{"rbc-client-id":n["rbc-client-id"],"rbc-client-secret":n["rbc-client-secret"]},params:{regPrivileges:[{privilegeType:n.privilege,id:n.id}]}},{data:i}=await r.L.POST(s);return i},E=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`/v2/rbc/agency/${a.agencyId}/contract`,headers:{"rbc-client-id":a["rbc-client-id"],"rbc-client-secret":a["rbc-client-secret"]},params:{limit:1e3}},{data:s}=await r.L.GET(n);return s},w=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`/v2/rbc/agency/${a.agencyId}/brand/${a.brandId}`,headers:{"rbc-client-id":a["rbc-client-id"],"rbc-client-secret":a["rbc-client-secret"]}},{data:s}=await r.L.GET(n);return s},b=async e=>{let{headers:t,...a}=e,n={url:`/v2/rbc/template/${t.brandId}/messagebase/${t.messagebaseId}/fallback`,headers:{"rbc-client-id":t["rbc-client-id"],"rbc-client-secret":t["rbc-client-secret"]},params:a},{data:s}=await r.L.POST(n);return s},T=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`/v2/rbc/template/${a.brandId}/messagebase/${a.messagebaseId}/fallback`,headers:{"rbc-client-id":a["rbc-client-id"],"rbc-client-secret":a["rbc-client-secret"]},params:{brandId:a.brandId,messagebaseId:a.messagebaseId}},{data:s}=await r.L.GET(n);return s},x=async e=>{let t={url:`/v2/rbc/chatbot/brand/${e.brandId}/chatbot`,headers:{"rbc-client-id":e["rbc-client-id"],"rbc-client-secret":e["rbc-client-secret"],"X-RCS-BrandKey":e["X-RCS-BrandKey"]},params:{limit:e.limit,offset:e.offset,cache:e.cache}},{data:a}=await r.L.GET(t);return a},v=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`/v2/rbc/chatbot/brand/${a.brandId}/chatbot`,headers:{"rbc-client-id":a["rbc-client-id"],"rbc-client-secret":a["rbc-client-secret"],"X-RCS-BrandKey":a["X-RCS-BrandKey"]},params:{limit:a.limit,offset:a.offset}},{data:s}=await r.L.GET(n);return s},C=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`/v2/rbc/chatbot/brand/${a.brandId}/chatbot/${a.chatbotId}`,headers:{"rbc-client-id":a["rbc-client-id"],"rbc-client-secret":a["rbc-client-secret"],"X-RCS-BrandKey":a["X-RCS-BrandKey"]},params:{brandId:a.brandId,chatbotId:a.chatbotId}},{data:s}=await r.L.GET(n);return s},S=async e=>{let{data:t}=await r.L.POST({url:"/v2/messages/rcs",params:e});return t},N=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`/v2/rbc/template/${a.brandId}/messagebase/${a.messagebaseId}`,headers:{...a.headers},params:{brandId:a.brandId,messagebaseId:a.messagebaseId}},{data:s}=await r.L.GET(n);return s},j=async e=>{let{queryKey:t}=e,a=t[2].params||{},n={url:`v2/messages/rcs/groups/${a.groupId}`},{data:s}=await r.L.GET(n);return s},I=async e=>{let{queryKey:t}=e,a={url:"v2/messages/rcs/mms/image/url",params:{fileId:(t[2].params||{}).fileId}},{data:n}=await r.L.GET(a);return n};async function P(e){let{uploadRcsExcelFile:t}=await a.e(8110).then(a.bind(a,35729));return t(e)}let $=async e=>{let t={url:`/v2/rbc/template/${e.brandId}/v2/file/${e.fileId}`,headers:{...e.headers}},{data:a}=await r.L.GET(t);return a},O=async e=>{let t={url:"/v2/rbc/logo/common",headers:{...e.headers}},{data:a}=await r.L.GET(t);return a},_=async e=>{let{groupId:t}=e;try{let e=await (0,n.p)(),a=await fetch(`${(0,s.Ay)().baseUrl}/v2/messages/rcs/groups/${t}/receiver`,{method:"GET",headers:{Authorization:`Bearer ${e}`},cache:"no-store"});return await a.json()}catch(e){}}},59828:(e,t,a)=>{a.d(t,{R:()=>r});let r=(0,a(31405).DY)("Payment",{creditCardStatus:e=>[{params:e}],paymentHistory:e=>[{params:e}],hasPaymentHistory:()=>["hasPaymentHistory"],billingCards:e=>[{params:e}],autoPaymentSettings:e=>[{params:e}],autoChargeStatus:()=>["autoChargeStatus"],cmsAutoChargeSetting:()=>["cmsAutoChargeSetting"]})},68788:(e,t,a)=>{a.d(t,{N:()=>n,O:()=>r});let r=(0,a(31405).DY)("API-KEY",{apiKeys:e=>["apiKeys",e]}
10),n={apiKeys:e=>r.apiKeys(e).queryKey}},84268:(e,t,a)=>{a.d(t,{Y:()=>h});var r=a(95155),n=a(80781),s=a(12115),i=a(57946),o=a(55128);let l=["image/jpeg","image/gif"],c=(e,t)=>new Promise(a=>e.toBlob(e=>a(e),"image/jpeg",t)),d=(e,t)=>new File([e],(e=>/\.[^./\\]+$/.test(e)?e.replace(/\.[^./\\]+$/,".jpg"):`${e}.jpg`)(t.name),{type:"image/jpeg",lastModified:t.lastModified});async function u(e,t){let{maxBytes:a,maxDimension:r=2e3,initialQuality:n=.92,minQuality:s=.4,minDimension:i=600,qualityStep:o=.1,scaleStep:l=.8}=t,u=await createImageBitmap(e,{imageOrientation:"from-image"});try{let t=document.createElement("canvas"),h=t.getContext("2d");if(!h)throw Error("Canvas 2D context를 ìì±í ì ììµëë¤.");let p=Math.max(u.width,u.height),m=p>r?r/p:1,y=null;for(;;){let r=Math.max(1,Math.round(u.width*m)),p=Math.max(1,Math.round(u.height*m));t.width=r,t.height=p,h.clearRect(0,0,r,p),h.drawImage(u,0,0,r,p);for(let r=n;r>=s-1e-9;r-=o){let n=await c(t,r);if(n&&(y=n,n.size<=a))return d(n,e)}if(Math.max(r,p)*l<i)return d(y??e,e);m*=l}}finally{u.close()}}function h(e){let{placeholder:t,guide:a,callback:c,allowedFileTypes:d,maxSize:h=0xa00000,autoResizeImageToBytes:p,resetFileInfoTrigger:m}=e,{setSnackbarState:y}=(0,o.eU)(),g=(0,s.useRef)(null),[f,E]=(0,s.useState)(!1),[w,b]=(0,s.useState)({name:"",type:"",file:void 0}),T=async e=>{let t=e.target.files;if(!t)return void c(void 0);if(t&&t.length>0){let e=t[0];if(d&&d.length>0&&!d.includes(e.type)){y({open:!0,message:"ì§ìíì§ ìë íì¼ íìì
ëë¤.",status:"error"}),c(void 0);return}let a=e;if(p&&l.includes(e.type)&&e.size>p)try{E(!0),a=await u(e,{maxBytes:p})}catch{y({open:!0,message:"ì´ë¯¸ì§ ì²ë¦¬ ì¤ ì¤ë¥ê° ë°ìíì´ì. ë¤ì ìëí´ì£¼ì¸ì.",status:"error"}),c(void 0);return}finally{E(!1)}if(h&&a.size>h){y({open:!0,message:`íì¼ í¬ê¸°ê° ë무 í½ëë¤. (ìµë ${h>=1048576?`${Math.round(h/1024/1024)}MB`:`${Math.round(h/1024)}KB`})`,status:"error"}),c(void 0);return}b({name:a.name,type:a.type,file:a}),c&&c(a)}};return(0,s.useEffect)(()=>{m&&(b({name:"",type:"",file:void 0}),c(void 0))},[m]),(0,r.jsxs)("div",{className:"flex w-full flex-col",children:[(0,r.jsx)("div",{className:"flex h-12 w-full cursor-pointer justify-between rounded-xl bg-gray99 px-4 py-[7px]",onClick:()=>{g.current&&void 0===w.file&&!f&&g.current.click()},children:(0,r.jsxs)("div",{className:"flex w-full items-center gap-2.5 truncate",children:[(0,r.jsx)(n.A,{className:"h-6 w-6 select-none text-gray70"}),w.name.length>0?(0,r.jsx)(i.A,{imageTitle:w.name,bgWhite:!0,cancelImage:e=>{b({name:"",type:""}),c(void 0)}}):(0,r.jsx)("p",{className:"ml-2 select-none truncate text-sm text-gray50",children:f?"ì´ë¯¸ì§ ì²ë¦¬ ì¤...":t}),(0,r.jsx)("input",{className:"hidden",type:"file",ref:g,accept:null==d?void 0:d.join(","),onChange:async e=>{await T(e),e.target.value=""}})]})}),a&&(0,r.jsx)("p",{className:"mt-1 text-xs-normal text-gray50",children:a})]})}},86118:(e,t,a)=>{a.d(t,{C:()=>i});var r=a(95155),n=a(53186);let s=e=>{let{text:t}=e;return(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)(n.jl,{}),(0,r.jsx)("p",{className:"whitespace-pre text-sm-normal text-gray70",children:t})]})};function i(e){let{userType:t}=e;return(0,r.jsxs)("div",{className:"flex flex-col rounded-xl border border-gray96 p-6",children:[(0,r.jsx)(s,{text:"ë°ì ë²í¸ë ë©ìì§ ë°ì¡ì ì¬ì©ë©ëë¤"}),void 0===t&&(0,r.jsx)(s,{text:" "}),"PERSONAL"===t&&(0,r.jsx)(s,{text:"ê°ì¸ íìì ìµë 3ê°ê¹ì§ ë±ë¡í ì ìì´ì"}),"BUSINESS"===t&&(0,r.jsx)(s,{text:"ì¬ì
ì íìì ìµë 10ê°ê¹ì§ ë±ë¡í ì ìì´ì"})]})}},87682:(e,t,a)=>{a.d(t,{M:()=>N,r:()=>S});var r=a(64740),n=a(1625),s=a(94240),i=a(12115),o=a(7985),l=a(24981),c=a(48109),d=a(56267),u=a(55128),h=a(97626),p=a(20969),m=a(35138),y=a.n(m),g=a(19329),f=a(4249),E=a(35271),w=a(57666),b=a(9977),T=a(16635),x=a(90862);let v=null,C=[];function S(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=function(){var e;let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{mixpanelProperties:a,setMixpanelProperties:m}=(0,u.fz)(),C=(0,T.mf)(),[S,N]=(0,i.useState)(void 0),{data:j}=(0,o.tg)(3e5,t),{data:I}=(0,d.kA)(3e5,t),{data:P}=(0,E.Q)(3e5,t),{data:$}=(0,h.g)({staleTime:3e5,enabled:t}),{data:O}=(0,p.dj)(3e5,t),{data:_}=(0,g.MZ)(3e5,t),A=(0,o.TA)(),{data:k}=(0,f.ic)({userId:A??0},{enabled:t}),{data:L}=(0,w.YG)({enabled:t}),{data:F}=(0,b.W4)(t),R=(null==L?void 0:L.hasHistory)===!1,D=(null==F||null==(e=F.promotions)?void 0:e.some(e=>"first_charge"===e.eventType))??!1;return(0,i.useEffect)(()=>
10{if(!t)return;let e=!1;return(0,s.Q)().then(t=>{e||N(t)}).catch(()=>{e||N(!1)}),()=>{e=!0}},[t]),(0,i.useEffect)(()=>{var e,t,a,s,i,o,d,u,h;if(!j||!I||!P||!$||!O||!_||void 0===L||void 0===S)return;let p=null==j||null==(e=j.data)?void 0:e.joinDate,g=(0,l.R)(),f=p?(0,c.c)(g,p):0,E={accountId:null==j||null==(t=j.data)?void 0:t.accountId,userType:null==j||null==(a=j.data)?void 0:a.userType,isNewUser:f<=30,alipeople:null==j||null==(s=j.data)?void 0:s.userEmail.includes("@alipeople.kr"),appliedPlan:(null==(i=I.data)?void 0:i.costName)==="NEW_USER_PROMOTION"?"PROMOTION":"DEFAULT",hasApiKey:(null==P||null==(o=P.items)?void 0:o.length)>0,kakaoChannel:(null==(d=$.data)?void 0:d.length)>0,hasDedicatedAccount:(null==(u=O.data)?void 0:u.length)>0,totalContactsIn:(null==_?void 0:_.myUsageStatistics.contactsCount)??0,isRbcLinked:!!k&&(null==k||null==(h=k.items)?void 0:h.length)>0,loginMethod:(0,n.hi)(),signupMethod:S?"kakao":"default",abtestFirstBenefitConsole2026q2:function(e,t,a){if(!a||!t||!e||!e.ready)return"none";let r=e.evalFeature(x.$.SHOW_USER_FIRST_CHARGING_INFO_2026Q2);return"experiment"!==r.source?"none":r.on?"B":"A"}(C,R,D)};if(v&&y()(E,v))return;m(E);let{abtestFirstBenefitConsole2026q2:w,...b}=E;r.wv.people.set(b),"none"!==w&&r.wv.people.set_once({abtestFirstBenefitConsole2026q2:w}),v=E},[j,I,P,$,O,_,m,L,F,C,R,D,S]),a}(e);return{track:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(null==t?void 0:t.accountId)||(null==t?void 0:t.accountId)===""){console.warn(`[Mixpanel] userInfo ìì. ì´ë²¤í¸ ì ì¥: ${e}`),C.push({eventName:e,properties:a});return}for(;C.length>0;){let e=C.shift();e&&(console.log(`[Mixpanel] íì ì ì¥ë ì´ë²¤í¸ ì ì¡: ${e.eventName}`),r.wv.track(e.eventName,{...e.properties,...t}))}r.wv.track(e,{...a,...t})},reset:()=>{r.wv.reset()}}}function N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.wv.track(e,t)}},90862:(e,t,a)=>{a.d(t,{$:()=>r});let r={SHOW_VISITOR_FIRST_CHARGING_INFO_2026Q2:"show-visitor-first-charging-info-2026q2",SHOW_USER_FIRST_CHARGING_INFO_2026Q2:"show-user-first-charging-info-2026q2"}},94240:(e,t,a)=>{a.d(t,{Q:()=>n});var r=a(30926);let n=(0,r.createServerReference)("000399d5939ff45ab9afc0b943aeb52bc221378484",r.callServer,void 0,r.findSourceMapURL,"isSocialSignupSession")},97205:(e,t,a)=>{a.d(t,{D3:()=>n,K9:()=>i,Lb:()=>s,b8:()=>o});var r=a(32703);let n=async e=>{let{queryKey:t}=e,a={url:"/v2/promotions/events",params:{includeEndedDays:(t[2].params||{}).includeEndedDays}},{data:n}=await r.L.GET(a);return n},s=async e=>{let{queryKey:t}=e,{eventId:a}=t[2].params,n={url:`/v2/promotions/events/${a}/entry-status`},{data:s}=await r.L.GET(n);return s},i=async e=>{let t={url:`/v2/promotions/events/${e}/run`},{data:a}=await r.L.POST(t);return a},o=async()=>{let{data:e}=await r.L.GET({url:"/v2/promotions/events/active"});return e}},97626:(e,t,a)=>{a.d(t,{EK:()=>L,EV:()=>$,EX:()=>A,HG:()=>k,IU:()=>F,JH:()=>R,Je:()=>x,Kk:()=>m,Li:()=>G,MV:()=>g,PF:()=>c,QL:()=>D,R1:()=>b,R7:()=>Y,RX:()=>M,RZ:()=>_,Sh:()=>C,Tb:()=>h,Tr:()=>N,Ug:()=>w,VX:()=>j,WX:()=>V,Wx:()=>ee,XC:()=>v,Xm:()=>J,Y2:()=>d,Y4:()=>p,Z9:()=>X,ZQ:()=>z,_p:()=>u,_s:()=>T,a$:()=>Z,bj:()=>y,bo:()=>H,dh:()=>Q,ek:()=>f,fv:()=>P,g:()=>l,iD:()=>I,j9:()=>U,jL:()=>E,mX:()=>B,we:()=>q,xL:()=>W,xS:()=>S,zP:()=>O,zz:()=>K});var r=a(53455),n=a(80549),s=a(99776),i=a(33931),o=a(7076);let l=e=>{let{brandMessageEnabled:t,friendTalkEnabled:a,staleTime:n,enabled:s=!0}=e;return(0,r.I)({queryKey:["kakao-profile-list",t,a,n,s],queryFn:async()=>await i.o8.getProfileList({brandMessageEnabled:t,friendTalkEnabled:a}),staleTime:n,enabled:s})},c=(e,t)=>(0,r.I)({queryKey:["useKakaoProfileDetailQuery",e],queryFn:async()=>await i.o8.getProfileDetail(e),enabled:t}),d=e=>{let{...t}=e;return(0,r.I)({...o.B.Kakao.alimtalkTemplateList(t),queryFn:async()=>await i.o8.getAlimtalkTemplateList(t),enabled:t.enabled})},u=e=>{let{sendProfileId:t,cursor:a,limit:n=20,keyword:s,enabled:o}=e;return(0,r.I)({queryKey:["useKakaoAlimtalkTemplateComplexListQuery",t,n,s,o,a],queryFn:async()=>await i.o8.getAlimtalkTemplateListComplex(t,a,n,s),enabled:o})},h=(e,t,a)=>(0,r.I)({queryKey:["useKakaoAlimtalkTemplateDetailQuery",e,t],queryFn:async()=>await i.o8.getKakaoAlimtalkTemplateDetail(e,t),enabled:a}),p=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{channelId:t,templateId:a}=e;return await i.o8.getKakaoAlimtalkTemplateDetail(t,a)},onSuccess(e,a,r){t(e)}})},m=(e,t)=>
10(0,r.I)({queryKey:["useKakaoAlimtalkTemplateStatusSummaryQuery",e,t],queryFn:async()=>await i.o8.getAlimtalkTemplateStatusSummary(e),enabled:t}),y=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{channelId:t,phoneNumber:a}=e;return await i.o8.authChannelProfile(t,a)},onSuccess(e,a,r){t&&t(e)}})},g=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{channelId:t,phoneNumber:a,authNumber:r}=e;return await i.o8.addChannelProfile(t,a,r)},onSuccess(e,a,r){t&&t(e)}})},f=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{channelId:t}=e;return await i.o8.deleteChannelProfile(t)},onSuccess(e,a,r){t&&t(e)}})},E=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateCode:a,templateName:r,templateContent:n,templateMessageType:s,templateEmphasizeType:o,categoryCode:l,templateExtra:c,templateAd:d,templateTitle:u,templateSubtitle:h,securityFlag:p,templateImageName:m,templateImageUrl:y,buttons:g}=e;return await i.o8.createKakaoAlimtalkTemplate({sendProfileId:t,templateCode:a,templateName:r,templateContent:n,templateMessageType:s,templateEmphasizeType:o,categoryCode:l,templateExtra:c,templateAd:d,templateTitle:u,templateSubtitle:h,securityFlag:p,templateImageName:m,templateImageUrl:y,buttons:g})},onSuccess(e,a,r){t&&t(e)}})},w=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateId:a,templateName:r,templateContent:n,templateEmphasizeType:s,categoryCode:o,templateExtra:l,templateAd:c,templateTitle:d,templateSubtitle:u,securityFlag:h,templateImageName:p,templateImageUrl:m,buttons:y,skipInspection:g}=e;return await i.o8.updateKakaoAlimtalkTemplate({sendProfileId:t,templateId:a,templateName:r,templateContent:n,templateEmphasizeType:s,categoryCode:o,templateExtra:l,templateAd:c,templateTitle:d,templateSubtitle:u,securityFlag:h,templateImageName:p,templateImageUrl:m,buttons:y,skipInspection:g})},onSuccess(e,a,r){t&&t(e)}})},b=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateId:a,type:r,message:n,title:s,images:o,senderNumber:l,clear:c}=e;return await i.o8.setTemplateFallbackMessage({sendProfileId:t,templateId:a,type:r,message:n,title:"LMS"===r||"MMS"===r?s:void 0,images:"MMS"===r?o:void 0,senderNumber:l,clear:c}
10)},onSuccess(e,a,r){t&&t(e)}})},T=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateId:a}=e;return await i.o8.deleteTemplateFallbackMessage(t,a)},onSuccess(e,a,r){t&&t(e)}})},x=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{channelId:t,templateId:a}=e;return await i.o8.deleteKakaoAlimtalkTemplate(t,a)},onSuccess(e,a,r){t&&t(e)}})},v=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{channelId:t,templateIds:a}=e;return await i.o8.deleteKakaoManyAlimtalkTemplate(t,a)},onSuccess(e,a,r){t&&t(e)}})},C=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{channelId:t,templateId:a}=e;return await i.o8.cancelKakaoAlimtalkTemplateProcess(t,a)},onSuccess(e,a,r){t&&t(e)}})},S=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{channelId:t,templateId:a,commentContent:r,attachments:n}=e;return await i.o8.reviewKakaoAlimtalkTemplate(t,a,{commentContent:r,attachments:n})},onSuccess(e,a,r){t&&t(e)}})},N=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{channelId:t,templateId:a,templateName:r}=e;return await i.o8.updateKakaoAlimtalkTemplateName(t,a,r)},onSuccess(e,a,r){t&&t(e)}})},j=(e,t)=>(0,r.I)({queryKey:["kakaoGroupDetailInfoQuery",e],queryFn:async()=>await i.o8.getKakaoGroupDetailInfo(e),enabled:t}),I=(e,t,a)=>(0,r.I)({queryKey:["kakaoGroupMessageDetailInfoQuery",e,t],queryFn:async()=>await i.o8.getKakaoGroupMessageDetailInfo(e,t),enabled:a}),P=e=>(0,r.I)({queryKey:["kakaoGroupRepeatInfoQuery",e],queryFn:async()=>await i.o8.getKakaoGroupRepeatInfo(e)}),$=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{groupId:t}=e;return await i.o8.sendGroupDirect({groupId:t})},onSuccess(e,a,r){t&&t(e)}})},O=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{groupId:t}=e;return await i.o8.cancelGroup({groupId:t})},onSuccess(e,a,r){t&&t(e)}})},_=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,senderKeyType:a,name:r,adult:n,content:s,buttonList:o,coupon:l,fallback:c}=e;return await i.o8.createKakaoBrandMessageTextTemplate({sendProfileId:t,senderKeyType:a,name:r,adult:n,content:s,buttonList:o,coupon:l,fallback:c})},onSuccess(e,a,r){t&&t(e)}})},A=e=>{let{callback:t}=e,a=(0,s.jE)();return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,content:o,buttonList:l,coupon:c,fallback:d}=e;return await i.o8.updateKakaoBrandMessageTextTemplate({sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,content:o,buttonList:l,coupon:c,fallback:d})},onSuccess(e,r,n){a.invalidateQueries({queryKey:o.B.Kakao.brandMessageTemplateList._def}),t&&t(e)}})},k=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,senderKeyType:a,name:r,adult:n,content:s,imageUrl:o,imageLink:l,imageName:c,buttonList:d,coupon:u,fallback:h}=e;return await i.o8.createKakaoBrandMessageImageTemplate({sendProfileId:t,senderKeyType:a,name:r,adult:n,content:s,imageUrl:o,imageLink:l,imageName:c,buttonList:d,coupon:u,fallback:h})},onSuccess(e,a,r){t&&t(e)}})},L=e=>{let{callback:t}=e,a=(0,s.jE)();return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,content:o,imageUrl:l,imageLink:c,imageName:d,buttonList:u,coupon:h,fallback:p}=e;return await i.o8.updateKakaoBrandMessageImageTemplate({sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,content:o,imageUrl:l,imageLink:c,imageName:d,buttonList:u,coupon:h,fallback:p})},onSuccess(e,r,n){a.invalidateQueries({queryKey:o.B.Kakao.brandMessageTemplateList._def}),t&&t(e)}})},F=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,senderKeyType:a,name:r,adult:n,content:s,imageUrl:o,imageLink:l,imageName:c,buttonList:d,coupon:u,fallback:h}=e;return await i.o8.createKakaoBrandMessageWideImageTemplate({sendProfileId:t,senderKeyType:a,name:r,adult:n,content:s,imageUrl:o,imageLink:l,imageName:c,buttonList:d,coupon:u,fallback:h})},onSuccess(e,a,r){t&&t(e)}})},R=e=>{let{callback:t}=e,a=(0,s.jE)();return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,content:o,imageUrl:l,imageLink:c,imageName:d,buttonList:u,coupon:h,fallback:p}=e;return await i.o8.updateKakaoBrandMessageWideImageTemplate({sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,content:o,imageUrl:l,imageLink:c,imageName:d,buttonList:u,coupon:h,fallback:p})},onSuccess(e,r,n){a.invalidateQueries({queryKey:o.B.Kakao.brandMessageTemplateList._def}),t&&t(e)}})},D=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,senderKeyType:a,name:r,adult:n,header:s,mainWideItem:o,subWideItemList:l,buttonList:c,coupon:d,fallback:u}=e;return await i.o8.createKakaoBrandMessageWideItemListTemplate({sendProfileId:t,senderKeyType:a,name:r,adult:n,header:s,mainWideItem:o,subWideItemList:l,buttonList:c,coupon:d,fallback:u})},onSuccess(e,a,r){t&&t(e)}})},M=e=>{let{callback:t}=e,a=(0,s.jE)();return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,header:o,mainWideItem:l,subWideItemList:c,buttonList:d,coupon:u,fallback:h}=e;return await i.o8.updateKakaoBrandMessageWideItemListTemplate({sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,header:o,mainWideItem:l,subWideItemList:c,buttonList:d,coupon:u,fallback:h})},onSuccess(e,r,n){a.invalidateQueries({queryKey:o.B.Kakao.brandMessageTemplateList._def}),t&&t(e)}})},B=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,senderKeyType:a,name:r,adult:n,carousel:s,fallback:o}=e;return await i.o8.createKakaoBrandMessageCarouselTemplate({sendProfileId:t,senderKeyType:a,name:r,adult:n,carousel:s,fallback:o})},onSuccess(e,a,r){t&&t(e)}})},U=e=>{let{callback:t}=e,a=(0,s.jE)();return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,carousel:o,fallback:l}=e;return await i.o8.updateKakaoBrandMessageCarouselTemplate({sendProfileId:t,templateCode:a,senderKeyType:r,name:n,adult:s,carousel:o,fallback:l})},onSuccess(e,r,n){a.invalidateQueries({queryKey:o.B.Kakao.brandMessageTemplateList._def}),t&&t(e)}})},K=function(e){let{...t}=e,{keepPreviousData:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.I)({...o.B.Kakao.brandMessageTemplateList(t),queryFn:async()=>await i.o8.getBrandMessageTemplateList(t),enabled:t.enabled,placeholderData:a?(e,a)=>{var r;let n=null==a||null==(r=a.queryKey.find(e=>"object"==typeof e&&null!==e&&"params"in e))?void 0:r.params;return(null==n?void 0:n.sendProfileId)===t.sendProfileId?e:void 0}:void 0})},G=e=>(0,r.I)({...o.B.Kakao.messagingCapabilities(),queryFn:async()=>await i.o8.getKakaoMessagingCapabilities(),enabled:e}),q=e=>{let{sendProfileId:t,templateCode:a,senderKeyType:n,enabled:s,staleTime:o}=e;return(0,r.I)({queryKey:["useKakaoBrandMessageTemplateDetailQuery",t,a,n],queryFn:async()=>await i.o8.getBrandMessageTemplateItem({sendProfileId:t,templateCode:a,senderKeyType:n}),enabled:s,staleTime:o})},z=e=>{let{callback:t}=e,a=(0,s.jE)();return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateIds:a}=e;return await i.o8.deleteBrandMessageTemplate({sendProfileId:t,templateIds:a})},onSuccess(e,r,n){a.invalidateQueries({queryKey:o.B.Kakao.brandMessageTemplateList._def}),t&&t(e)}})},Y=e=>{let{callback:t}=e,a=(0,s.jE)();return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateIds:a,senderNumber:r}=e;return await i.o8.changeBrandMessageTemplateFallbackNumber({sendProfileId:t,templateIds:a,senderNumber:r})},onSuccess(e,r,n){a.invalidateQueries({queryKey:o.B.Kakao.brandMessageTemplateList._def}),t&&t(e)}})},V=e=>{let{callback:t}=e,a=(0,s.jE)();return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,templateIds:a,senderNumber:r}=e;return await i.o8.changeAlimtalkTemplateFallbackNumber({sendProfileId:t,templateIds:a,senderNumber:r})},onSuccess(e,r,n){a.invalidateQueries({queryKey:o.B.Kakao.alimtalkTemplateList._def}),t&&t(e)}})},J=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async()=>await i.o8.getFileUploadPresignedUrl(),onSuccess(e,a,r){t&&t(e)}})},H=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{sendProfileId:t,hasFriendsOver50k:a,hasSendHistoryLast3Months:r,marketingConsentFiles:n}=e;
10return await i.o8.requestBrandMessageNonFriendAdChannel({sendProfileId:t,hasFriendsOver50k:a,hasSendHistoryLast3Months:r,marketingConsentFiles:n})},onSuccess(e,a,r){t&&t(e)}})},Q=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async()=>await i.o8.refreshProfileList(),onSuccess(e,a,r){t&&t(e)}})},W=e=>{let{callback:t}=e;return(0,n.n)({mutationFn:async e=>{let{profileId:t}=e;return await i.o8.refreshProfile(t)},onSuccess(e,a,r){t&&t(e)}})},X=e=>(0,r.I)({...o.B.Kakao.sendonTemplateList(e),queryFn:async()=>await i.o8.getSendonTemplateList(e),enabled:e.enabled??!0}),Z=()=>{let e=(0,s.jE)();return(0,n.n)({mutationFn:async e=>{let{templateId:t,isFavorite:a}=e;return a?await i.o8.addSendonTemplateFavorite(t):await i.o8.deleteSendonTemplateFavorite(t)},onMutate:async t=>{let{templateId:a,isFavorite:r}=t;await e.cancelQueries({queryKey:o.B.Kakao.sendonTemplateList._def});let n=[];return e.getQueryCache().findAll({queryKey:o.B.Kakao.sendonTemplateList._def}).forEach(t=>{var s;let i=t.state.data;(null==i||null==(s=i.data)?void 0:s.templates)&&(n.push({queryKey:t.queryKey,data:i}),e.setQueryData(t.queryKey,{...i,data:{...i.data,templates:i.data.templates.map(e=>e.id===a?{...e,isFavorite:r}:e)}}))}),{previousQueries:n}},onError:(t,a,r)=>{null==r||r.previousQueries.forEach(t=>{let{queryKey:a,data:r}=t;e.setQueryData(a,r)})},onSettled:()=>{e.invalidateQueries({queryKey:o.B.Kakao.sendonTemplateList._def})}})},ee=e=>{let{sendProfileId:t,templateCode:a,enabled:n}=e;return(0,r.I)({...o.B.Kakao.broadcastExpectedCount({sendProfileId:t,templateCode:a}),queryFn:async()=>await i.o8.fetchBrandMessageBroadcastExpectedCount({sendProfileId:t,templateCode:a}),enabled:n&&!!t&&!!a})}}}]);
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.