1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4824],{29927:(e,l,s)=>{"use strict";s.d(l,{a:()=>a});var r=s(55729);let a=()=>{let[e,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{l(/Mobi/i.test(navigator.userAgent))},[]),{isMobile:e}}},45848:(e,l,s)=>{"use strict";s.r(l),s.d(l,{default:()=>F});var r=s(6029),a=s(65173),n=s(94475),i=s(50873),t=s(89046),o=s(55729),c=s(99095),d=s(63999),u=s(57218),h=s(40281);let x=()=>(0,r.jsxs)("dl",{className:"pg-use-guide",children:[(0,r.jsx)("dt",{children:"PG ì´ì ìë´"}),(0,r.jsx)("dd",{children:(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:["PG ì´ì ê°ë¥ ì¬ë¶ë¥¼ íì¸í´ì£¼ì¸ì. ì´ì ê°ë¥ ì¬ë¶ê° âë¶ê°' ì¸ ê²½ì° PG ì ê· ì ì²ì´ íìí©ëë¤."," ",(0,r.jsx)(i.$,{size:"sm",hierarchy:"link-color",label:"ë ìì보기",hasUnderline:!0,target:"_blank",href:"https://migration-help.nhn-commerce.com/enamoo_end/mig_caution/mig_contents"})]}),(0,r.jsx)("li",{className:"no-bullet",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"ì´ì ê°ë¥í PGì¬: KCP, í ì¤íì´ë¨¼ì¸ "}),(0,r.jsx)("li",{children:"ì´ì ë¶ê°ë¥í PGì¬: ì´ì§íì´, ì¸íë±
í¬, ì´ëìì¤, ì¬ëê²ì´í¸, NHN ì»¤ë¨¸ì¤ PG ì¤ìí 미ì°ë ì¼í몰 ë±"})]})}),(0,r.jsx)("li",{children:"ì´ì ìµì¢
ìë£ ì, PGì¬ ê´ë¦¬ììì ì§ì ê°ìê³ì¢ ì
ê¸íµë³´ URL ë³ê²½ì ì§ííì
ì¼ í©ëë¤."}),(0,r.jsxs)("li",{children:["ì´ì ìë£ ì ì¤ìê°ì¼ë¡ ëë©ì¸ì´ ë³ê²½ëì§ ìì¼ë©° ê³ ê°ëê»ì 기존 ì¼í몰ì ì°ê²°ë ëë©ì¸ì ìì ì ì² í",(0,r.jsx)("br",{}),"ì´ì ë ì¼í몰ì ì ì ëë©ì¸ ì°ê²° ì ì²ì íì
ì¼ í©ëë¤."]}),(0,r.jsxs)("li",{children:["PG ì´ì ì´ ê°ë¥íì¬ ìë ì´ì ë ê²½ì°, ì´ì ì í ì¼í몰 모ëìì PGì¬ì©ì´ ê°ë¥íì¬",(0,r.jsx)("br",{}),"ê²°ì ê° ì¼ì´ë ê²½ì° ë§¤ì¶ì´ ë°ìí ì ìì¼ë¯ë¡ ì´ì ì ìíì기 ë°ëëë¤."]}),(0,r.jsx)("li",{children:"ì´ì ìµì¢
ìë£ íìë ì´ì í ì¼í몰ììë§ PG ì ì², ê´ë¦¬ê° ê°ë¥íë©° 기존 ì¼í몰ììë ì ì², ê´ë¦¬ê° ë¶ê°í©ëë¤."})]})})]});var j=s(64855);let m=e=>{var l,s,r,n;let i=(0,c.useQuery)({queryKey:["solutionsTransfersShopTransferNoPg",e],queryFn:async()=>(await a.p.getSolutionsTransfersShopTransferNoPg({pathParams:{shopTransferNo:e}})).data,enabled:!!e}),t=i.isError&&(null==(s=i.error)||null==(l=s.response)?void 0:l.status)===404,o=i.isError&&(null==(n=i.error)||null==(r=n.response)?void 0:r.status)!==404;return{...i,isNotFound:t,isError:o}};var p=s(29927),g=s(51399),f=s(40856),b=s(52229),P=s(45395);let N=e=>{var l;let{transferShippingInfo:s}=e,a=Number((0,b.useSearchParams)().get("shopTransferNo")||"0"),{isMobile:t}=(0,p.a)(),{data:c}=m(a),d=null==c?void 0:c.pgsAbleToTransfer,u=(0,o.useMemo)(()=>Object.entries(j.nN).some(e=>{var l;let[s,r]=e;return!(null==d||null==(l=d[r.lowerCaseValue])?void 0:l.length)}),[d]);return(0,r.jsx)(P.w,{title:"ì´ì í ì¼í몰 ì ë³´",children:(0,r.jsxs)(g.X,{className:"migration-table",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{style:{width:"15%"}}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{}),u&&(0,r.jsx)("col",{})]}),(0,r.jsxs)(g.X.Head,{children:[(0,r.jsx)(g.X.HeadCell,{children:"ì´ì ì¼í몰"}),(0,r.jsx)(g.X.HeadCell,{children:"ëë©ì¸"}),(0,r.jsx)(g.X.HeadCell,{children:"ì´ì ì²ë¦¬ ìí"}),(0,r.jsx)(g.X.HeadCell,{children:(0,r.jsxs)("div",{className:"mall-migration-table-tooltip-wrap",children:["PG ì´ì ê°ë¥ ì¬ë¶",(0,r.jsx)(f.s,{icon:{icon:"helpCircle",size:16,color:"gray300"},isMobile:t,children:"PG ì´ì ì´ ê°ë¥ì¼ ê²½ì° ì ê· ì¼íëª°ë¡ PGê° ìë ì´ì ëë©°, ë¶ê°ì¼ ê²½ì° ì ê· ì ì²ì´ íìí©ëë¤."})]})}),u&&(0,r.jsx)(g.X.HeadCell,{children:"PG ì ì²"})]}),(0,r.jsx)(g.X.Body,{children:(0,r.jsxs)(g.X.Row,{children:[(0,r.jsx)(g.X.Cell,{"data-label":"ì´ì ì¼í몰",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:(null==s?void 0:s.transfereeSolutionType)?j.o4[s.transfereeSolutionType]:""})}
1),(0,r.jsx)(g.X.Cell,{"data-label":"ëë©ì¸",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:null==s?void 0:s.transfereeShopDomain})}),(0,r.jsxs)(g.X.Cell,{"data-label":"ì´ì ì²ë¦¬ ìí",children:[(null==s?void 0:s.transferStatus)?null==(l=n.Pn[s.transferStatus])?void 0:l.name:"",(null==s?void 0:s.transferStatus)==="MIGRATION_WAITING"&&(0,r.jsxs)("p",{children:["(",(()=>{if(!(null==s?void 0:s.createdAt))return"";let e=new Date(null==s?void 0:s.createdAt);return e.setDate(e.getDate()+1),"".concat(String(e.getMonth()+1).padStart(2,"0"),"/").concat(String(e.getDate()).padStart(2,"0"))})()," 00:00)"]})]}),(0,r.jsx)(g.X.Cell,{"data-label":"PG ì´ì ê°ë¥ ì¬ë¶",children:(()=>{if(!d)return null;let e=(null==s?void 0:s.transferStatus)==="OPEN_COMPLETED";return(0,r.jsx)(r.Fragment,{children:Object.entries(j.nN).map(l=>{var s,a;let[n,i]=l,t=!!(null==d||null==(s=d[i.lowerCaseValue])?void 0:s.length);return(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)("span",{children:"â¢"}),i.label,"ê²°ì : ",(l=>e&&l?"ì´ì ìë£":l?"ê°ë¥":"ë¶ê°")(t),t&&!e&&(0,r.jsxs)("span",{children:[" ","(",null==d||null==(a=d[i.lowerCaseValue])?void 0:a.map(e=>e.pgName).join(","),")"]})]})})})})()}),u&&(0,r.jsx)(g.X.Cell,{"data-label":"PG ì ì²",className:"text-left",children:(0,r.jsx)("div",{className:"text-left",children:Object.entries(j.nN).map(e=>{var l;let[s,a]=e;return(null==d||null==(l=d[a.lowerCaseValue])?void 0:l.length)?null:(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)("span",{children:"â¢"}),(0,r.jsxs)("span",{className:"pg-type-title",children:[a.label,"ê²°ì "]})," ",(0,r.jsx)(i.$,{size:"sm",hierarchy:"link-gray",label:"ì ì²",hasUnderline:!0,className:"pg-register-button",href:"".concat(a.registerUrl,"#pro"),target:"_blank"})]})})})})]})})]})})},T=e=>{var l,s,j;let{currentMallInfo:m,transferShippingInfo:p}=e,g=(0,o.useMemo)(()=>{var e;return[n.Pn.MIGRATION_TEST_COMPLETED.value,n.Pn.MIGRATION_FINAL_COMPLETED.value].includes(null!=(e=null==p?void 0:p.transferStatus)?e:"")},[p]),{mutate:f,isLoading:b}=(0,c.useMutation)(a.p.postFinalSolutionsTransfersReserve),{mutate:P,isLoading:T}=(0,c.useMutation)(a.p.postShopSimplifiedTransferComplete);return b||T?(0,r.jsx)(t.y,{className:"custom-spinner__xs"}):(0,r.jsxs)(u.P,{activeStep:1,steps:n.D3,children:[(0,r.jsx)(d.S,{solutionType:null==m?void 0:m.solutionType,domain:null==m?void 0:m.shopDomain,status:null==m?void 0:m.status}),(0,r.jsx)(N,{transferShippingInfo:p}),(0,r.jsx)(x,{}),(0,r.jsx)(h.A,{name:null!=(l=null==p?void 0:p.customerName)?l:"",email:null!=(s=null==p?void 0:p.customerEmail)?s:"",mobileNo:null!=(j=null==p?void 0:p.customerMobileNumber)?j:""}),g&&(0,r.jsx)("div",{className:"migration-button-wrap",children:(0,r.jsx)(i.$,{label:(null==p?void 0:p.transferStatus)==="MIGRATION_TEST_COMPLETED"?"ìµì¢
ì´ì ì ì²":"ìµì¢
ì´ì ìë£",size:"xl",hierarchy:"primary-black",type:"button",disabled:!m||!p||b||T,onClick:()=>{if(null==p?void 0:p.shopTransferNo)if((null==p?void 0:p.transferStatus)==="MIGRATION_TEST_COMPLETED"){if(!confirm("ë¤ìë 00ì íì¬ ë°ì´í° 기ì¤ì¼ë¡ ìµì¢
ë§ì´ê·¸ë ì´ì
ì´ ì§íë©ëë¤.\nì ì²íìê² ìµëê¹?"))return;f(p.shopTransferNo,{onSuccess:()=>{alert("ìµì¢
ì´ì ì ì²ì´ ìë£ëììµëë¤."),window.location.reload()},onError:()=>{alert("ì²ë¦¬ì¤ ì¤ë¥ê° ë°ìëì´ ì´ì ì ì²ì´ ìë£ëì§ ìììµëë¤.")}})}else{if(!confirm("ìµì¢
ì´ì ìë£ ì ëí ëë©ì¸ì´ ì ê· ìì ì¼ë¡ ì°ê²°ëë©° ì¼íëª°ì´ ì¤íë©ëë¤.\n(íì¸ í´ë¦ ì ì´ì ì¼ë¡ ëìê° ì ìì¼ë ë¤ì í ë² íì¸í´ì£¼ì¸ì.)\nì§ííìê² ìµëê¹?"))return;P(p.shopTransferNo,{onSuccess:()=>{window.location.reload()},onError:()=>{alert("ì²ë¦¬ì¤ ì¤ë¥ê° ë°ìëì´ ì´ì ì´ ìë£ëì§ ìììµëë¤.")}})}}})})]})};var S=s(70772);let v=e=>{let{customerName:l,customerMobileNumber:s,customerEmail:a,questionContent:n}=e;return(0,r.jsx)(P.w,{title:"ë´ë¹ì ì ë³´",children:(0,r.jsxs)(g.X,{className:"migration-table",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{style:{width:"15%"}}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{})]}),(0,r.jsxs)(g.X.Head,{children:[(0,r.jsx)(g.X.HeadCell,{children:"ë´ë¹ì ì´ë¦"}),(0,r.jsx)(g.X.HeadCell,{children:"ì°ë½ì²"}),(0,r.jsx)(g.X.HeadCell,{children:"ì´ë©ì¼"}),(0,r.jsx)(g.X.HeadCell,{children:"문ì ì¬í"})]}),(0,r.jsx)(g.X.Body,{children:(0,r.jsxs)(g.X.Row,{children:[(0,r.jsx)(g.X.
1Cell,{"data-label":"ë´ë¹ì ì´ë¦",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:l})}),(0,r.jsx)(g.X.Cell,{"data-label":"ì°ë½ì²",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:s})}),(0,r.jsx)(g.X.Cell,{"data-label":"ì´ë©ì¼",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:a})}),(0,r.jsx)(g.X.Cell,{"data-label":"문ì ì¬í",children:(0,r.jsx)("span",{className:"migration-table-cell-label migration-overflow-text",children:null!=n?n:"-"})})]})})]})})},C=e=>{let{enamooToGodomall:l}=e;return(0,r.jsxs)("dl",{className:"pg-use-guide",children:[(0,r.jsx)("dt",{children:"PG ì´ì ì´ì©ìë´"}),(0,r.jsx)("dd",{children:(0,r.jsxs)("ul",{children:[l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("li",{children:["PG ì´ì ì ì´ì ê°ë¥í PGì¬ë¥¼ 먼ì íì¸ í ì ì²íì
ì¼ í©ëë¤.",(0,r.jsx)(i.$,{size:"sm",hierarchy:"link-color",label:"ë ìì보기",hasUnderline:!0,target:"_blank",href:"https://migration-help.nhn-commerce.com/readme/godomall/enamoo-to-godomall/caution#pg-pg"})]}),(0,r.jsx)("li",{className:"no-bullet",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"ì´ì ê°ë¥í PGì¬: KCP, LGU+, ì¬ì³, í ì¤ ë±"}),(0,r.jsx)("li",{children:"ì´ì ë¶ê°ë¥í PGì¬: ì´ì§íì´, ì¸íë±
í¬, ì´ëìì¤, NHN ì»¤ë¨¸ì¤ PG ì¤ìí 미ì°ë ì¼í몰 ë±"})]})})]}),(0,r.jsx)("li",{children:"PG ì´ì ì ì² í PG ì´ì [ìë£]ì, PGì¬ ê´ë¦¬ììì ì§ì ê°ìê³ì¢ ì
ê¸íµë³´ URL ë³ê²½ì ì§ííì
ì¼ í©ëë¤."}),(0,r.jsxs)("li",{children:["ì´ì ìë£ ìíê° ëë©´ PG ì´ì [ì ì²] ë²í¼ì í´ë¦íì¬ ê¸°ì¡´ ì¼í몰ì PG를 ì´ì í ì¼íëª°ë¡ ë³µì¬í ì ììµëë¤.",(0,r.jsx)("br",{}),"3ì¼ê° ì´ì ì í ì¼í몰 모ëìì PGì¬ì©ì´ ê°ë¥íë©°, í´ë¹ ê¸°ê° ë´ì ê²°ì í
ì¤í¸ ë° ëë©ì¸ ì°ê²° ë± ì´ì ìì
ì ë§ë¬´ë¦¬íì¬",(0,r.jsx)("br",{}),"PG ì´ì [ìë£] ë²í¼ì í´ë¦í´ì¼ ì§ìì ì¼ë¡ PG ì´ì©ì´ ê°ë¥í©ëë¤."]}),(0,r.jsx)("li",{children:"PG ì´ì ì ì ì²íì¬ í
ì¤í¸ ì¤ì¸ 3ì¼ ëììë ì´ì ì , í ì¼í몰 모ë PG ì ì², ê´ë¦¬ê° ë¶ê°í©ëë¤."}),(0,r.jsx)("li",{children:"PG ì´ì [ìë£] ë²í¼ì í´ë¦í ë¤ìë ì´ì í ì¼í몰ììë§ PG ì ì², ê´ë¦¬ê° ê°ë¥íë©° 기존 ì¼í몰ììë ì ì², ê´ë¦¬ê° ë¶ê°í©ëë¤."}),(0,r.jsx)("li",{children:"ì´ì ìë£ ì ì¤ìê°ì¼ë¡ ëë©ì¸ì´ ë³ê²½ëì§ ìì¼ë©° ê³ ê°ëê»ì 기존 ì¼í몰ì ì°ê²°ë ëë©ì¸ì ìì ì ì² í ì´ì ë ì¼í몰ì ì ì ëë©ì¸ ì°ê²° ì ì²ì íì
ì¼ í©ëë¤."})]})})]})},E=e=>{let{createdAt:l,paidAt:s,totalAmount:a,isIncomeConfirmed:i,payTypeLabel:t}=e;return(0,r.jsx)(P.w,{title:"ê²°ì ë´ì",children:(0,r.jsxs)(g.X,{className:"migration-table",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{style:{width:"15%"}}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{})]}),(0,r.jsxs)(g.X.Head,{children:[(0,r.jsx)(g.X.HeadCell,{children:"ì ì²ì¼"}),(0,r.jsx)(g.X.HeadCell,{children:"ê²°ì ì¼"}),(0,r.jsx)(g.X.HeadCell,{children:"ê²°ì ê¸ì¡"}),(0,r.jsx)(g.X.HeadCell,{children:"ê²°ì ë°©ë²"}),(0,r.jsx)(g.X.HeadCell,{children:"ê²°ì ìí"})]}),(0,r.jsx)(g.X.Body,{children:(0,r.jsxs)(g.X.Row,{children:[(0,r.jsx)(g.X.Cell,{"data-label":"ì ì²ì¼",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:l})}),(0,r.jsx)(g.X.Cell,{"data-label":"ê²°ì ì¼",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:i?s:"-"})}),(0,r.jsx)(g.X.Cell,{"data-label":"ê²°ì ê¸ì¡",children:(0,r.jsxs)("span",{className:"migration-table-cell-label",children:[null==a?void 0:a.toLocaleString(),"ì"]})}),(0,r.jsx)(g.X.Cell,{"data-label":"ê²°ì ë°©ë²",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:t})}),(0,r.jsx)(g.X.Cell,{"data-label":"ê²°ì ìí",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:n.g8[i?"COMPLETED":"WAITING"]})})]})})]})})};var G=s(36323),y=s(28075),_=s(75119),X=s(6225);let M=e=>{let{title:l,description:s,closeLabel:a="íì¸",onClose:n}=e,t=(0,o.useRef)(null),[c,d]=(0,o.useState)(!0);return(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsx)("div",{className:"dim"}),(0,r.jsxs)("dialog",{open:!0,className:"migration-modal migration-confirm",ref:t,children:[(0,r.jsx)(X.a,{icon:"checkCircle",color:"error",theme:"light-circle"}),(0,r.jsx)("em",{className:"migration-modal__title migration-confirm__title",children:l}),(0,r.jsx)("p",{className:"migration-confirm__description",children:s}),(0,r.jsx)("div",{className:"migration-confirm__buttons",children:(0,r.jsx)(i.$,{label:a,size:"lg",hierarchy:"secondary-gray",onClick:()=>{var e;null==(e=t.current)||e.close(),d(!1),null==n||n()}})})]})]})},L=e=>{let{onClose:l,isTransferCancel:s}=e,a="".concat(s?"PG ì´ì ì·¨ìê°":"PG ì´ì ì´"," ë¶ê°í©ëë¤.");return(0,r.jsx)(M,{title:a,description:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{children:[a," ìì¸í ë´ì©ì "]}),(0,r.jsx)("a",{rel:"noreferrer noopener",target:"_blank",href:"".concat("https://www.godo.co.kr","/support/inquiry/contact"),children:"1:1문ì"}),(0,r.jsx)("span",{children:"를 íµí´ íì¸í´ 주ì¸ì."})]}),onClose:l})};var w=s(90982);let A=e=>{let{onClose:l,shopTransferNo:s,refetch:n}=e,{mutate:i,isLoading:t}=(0,c.useMutation)(a.p.postSolutionsTransfersShopTransferNoPg);return(0,r.jsx)(w.p,{title:"PG ì´ì í
ì¤í¸ë¥¼ ì ì²íìê² ìµëê¹?",description:"ì ì² í ê²°ì í
ì¤í¸ê° ì§íëë 3ì¼ ëìì ì´ì ì , í ì¼í몰 모ë PG ì ê·ì ì²ê³¼ ê´ë¦¬ê° ë¶ê°í©ëë¤. ìì¸í ì¬íì ì´ì©ìë´ ë´ì©ì ì°¸ê³ í´ ì£¼ì¸ì.",onConfirm:()=>{i({pathParams:{shopTransferNo:s}},{onSuccess:()=>{alert("PG ì´ì í
ì¤í¸ ì ì²ì´ ìë£ëììµëë¤."),n(),l()},onError:e=>{var l;if(!_.A.isAxiosError(e))return void console.error(e);alert(null==(l=e.response)?void 0:l.data.message)}})},onClose:l,isLoading:t})},I=e=>{let{onClose:l}=e;return(0,r.jsx)(M,{title:"PG ì´ì í
ì¤í¸ë¥¼ ì ì²í ì ììµëë¤.",description:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"ì´ì íë ¤ë ì¼í몰ì ì´ë¯¸ PGê° ì°ê²°ëì´ ìì´ PG ì´ì í
ì¤í¸ ì ì²ì´ ë¶ê°í©ëë¤. ìì¸í ë´ì©ì "}),(0,r.jsx)("a",{rel:"noreferrer noopener",target:"_blank",href:"".concat("https://www.godo.co.kr","/support/inquiry/contact"),children:"1:1문ì"}),(0,r.jsx)("span",{children:"를 íµí´ íì¸í´ 주ì¸ì."})]}),onClose:l})},O=e=>{let{onClose:l,shopTransferNo:s,refetch:n}=e,{mutate:i,isLoading:t}=(0,c.useMutation)(a.p.patchSolutionsTransfersShopTransferNoPg);return(0,r.jsx)(w.p,{title:"PG ì´ì ì ìë£íìê² ìµëê¹?",description:"ì´ì ì ìë£íë©´, 기존 ì¼í몰ìì ì¬ì©íë ê²°ì ìë¹ì¤(PG)ê° ì´ê¸°íëê³ , ì ì¼í몰ë¡ì ì´ì ì´ ëª¨ë ë§ë¬´ë¦¬ë©ëë¤.",onConfirm:()=>{i({pathParams:{transferNo:s},data:{pgTransferStatus:"COMPLETED"}},{onSuccess:()=>{alert("PG ì´ì ìë£ê° ìë£ëììµëë¤."),n(),l()},onError:e=>{var l;if(!_.A.isAxiosError(e))return void console.error(e);alert(null==(l=e.response)?void 0:l.data.message)}})},onClose:l,isLoading:t})},k=e=>{var l;let{transferShippingInfo:s}=e,[t,d]=(0,o.useState)(null),{isMobile:u}=(0,p.a)(),h=Number(null!=(l=null==s?void 0:s.shopTransferNo)?l:0),{mutate:x,isLoading:f}=(0,c.useMutation)(a.p.patchSolutionsTransfersShopTransferNoPg),{data:b,isNotFound:N,isError:T,refetch:S,isFetching:v}=m(h),{data:C,refetch:E,isError:X,isFetching:M}=(e=>(0,c.useQuery)({queryKey:["solutionsTransfersShopTransferNoPgAble",e],queryFn:async()=>(await a.p.getSolutionsTransfersShopTransferNoPgAble({pathParams:{shopTransferNo:e}})).data,enabled:!!e}))(h),w=T||X,k=(e=>{let{isNotFound:l,pgTransferStatus:s="",pgTransferAble:r}
1=e,a={apply:!0,cancel:!0,complete:!0};if(!1===r)return a;switch(l&&(a.apply=!1),s){case"REVERTED":a.apply=!1;break;case"COMPLETED":a.apply=!0,a.cancel=!0,a.complete=!0;break;case"DRAFT":case"REQUESTED":case"COMPLETE_FAILED":case"FAILED":a.cancel=!1,a.complete=!1}return a})({isNotFound:N,pgTransferStatus:null==b?void 0:b.pgTransferStatus,pgTransferAble:null==C?void 0:C.isPgTransferAble}),D=()=>{S(),E()};return(0,r.jsxs)(r.Fragment,{children:[(f||v||M)&&(0,r.jsx)(G.y,{className:"is-fixed"}),(0,r.jsx)(P.w,{title:"ì´ì í ì¼í몰 ì ë³´",children:(0,r.jsxs)(g.X,{className:"migration-table",children:[(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{style:{width:"15%"}}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{}),(0,r.jsx)("col",{})]}),(0,r.jsxs)(g.X.Head,{children:[(0,r.jsx)(g.X.HeadCell,{children:"ì´ì ì¼í몰"}),(0,r.jsx)(g.X.HeadCell,{children:"ëë©ì¸"}),(0,r.jsx)(g.X.HeadCell,{children:"ì´ì ì²ë¦¬ ìí"}),(0,r.jsx)(g.X.HeadCell,{children:(0,r.jsxs)("div",{className:"mall-migration-table-tooltip-wrap",children:["PG ì´ì í
ì¤í¸",(0,r.jsx)(y.s,{icon:{icon:"helpCircle",size:16,color:"gray300"},isMobile:u,children:"PG í
ì¤í¸ ì´ì ì ì ì²íë©´ 3ì¼ ëì ì´ì í ì¼í몰ìì ê²°ì í
ì¤í¸ë¥¼ í ì ììµëë¤."})]})}),(0,r.jsx)(g.X.HeadCell,{children:(0,r.jsxs)("div",{className:"mall-migration-table-tooltip-wrap",children:["PG ì´ì ",(0,r.jsx)(y.s,{icon:{icon:"helpCircle",size:16,color:"gray300"},isMobile:u,children:"PG ì´ì ì ìë£íë©´, 기존 ì¼í몰ìì ì¬ì©íë PGê° ì´ê¸°íëê³ , ì ì¼íëª°ë¡ PG ì´ì ì´ ìë£ë©ëë¤."})]})})]}),(0,r.jsx)(g.X.Body,{children:(0,r.jsxs)(g.X.Row,{children:[(0,r.jsx)(g.X.Cell,{"data-label":"ì´ì ì¼í몰",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:(null==s?void 0:s.transfereeSolutionType)?j.o4[s.transfereeSolutionType]:""})}),(0,r.jsx)(g.X.Cell,{"data-label":"ëë©ì¸",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:null==s?void 0:s.transfereeShopDomain})}),(0,r.jsx)(g.X.Cell,{"data-label":"ì´ì ì²ë¦¬ ìí",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:(null==s?void 0:s.transferStatus)?n.si[s.transferStatus]:""})}),(0,r.jsx)(g.X.Cell,{"data-label":"PG ì´ì í
ì¤í¸",children:(0,r.jsx)("span",{className:"migration-table-cell-label",children:(null==b?void 0:b.pgTransferStatus)==="COMPLETED"?"PG ì´ì í
ì¤í¸ ìë£":(0,r.jsx)(i.$,{size:"sm",hierarchy:"link-gray",label:"ì ì²",hasUnderline:!0,disabled:k.apply,onClick:()=>{if(!k.apply){if(w)return void d("PG_IMPOSSIBLE");if(null==C?void 0:C.isNewShopAbleToTransferPg)return void d("PG_TEST_POSSIBLE");d("PG_TEST_IMPOSSIBLE")}}})})}),(0,r.jsx)(g.X.Cell,{"data-label":"PG ì´ì ",children:(0,r.jsx)("span",{className:"migration-table-cell-label flex",children:(null==b?void 0:b.pgTransferStatus)==="COMPLETED"?"PG ì´ì ìë£":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$,{size:"sm",hierarchy:"link-gray",label:"ì·¨ì",hasUnderline:!0,disabled:k.cancel,onClick:()=>{k.cancel||x({pathParams:{transferNo:h},data:{pgTransferStatus:"REVERTED"}},{onSuccess:()=>{alert("PG ì´ì ì·¨ìê° ìë£ëììµëë¤."),d(null),D()},onError:e=>{if(!_.A.isAxiosError(e))return void console.error(e);d("PG_IMPOSSIBLE_CANCEL")}})}}),(0,r.jsx)("span",{className:"bar",children:"|"}),(0,r.jsx)(i.$,{size:"sm",hierarchy:"link-gray",label:"ìë£",hasUnderline:!0,disabled:k.complete,onClick:()=>{if(!k.complete){if(w)return void d("PG_IMPOSSIBLE");d("PG_COMPLETE")}}})]})})})]})})]})}),(()=>{switch(t){case"PG_TEST_POSSIBLE":return(0,r.jsx)(A,{shopTransferNo:h,onClose:()=>d(null),refetch:D});case"PG_COMPLETE":return(0,r.jsx)(O,{shopTransferNo:h,onClose:()=>d(null),refetch:D});case"PG_TEST_IMPOSSIBLE":return(0,r.jsx)(I,{onClose:()=>d(null)});case"PG_IMPOSSIBLE":case"PG_IMPOSSIBLE_CANCEL":return(0,r.jsx)(L,{onClose:()=>d(null),isTransferCancel:"PG_IMPOSSIBLE_CANCEL"===t});default:return null}})()]})},D=e=>{let{currentMallInfo:l,transferShippingInfo:s}=e,a=(0,o.useMemo)(()=>{var e,l,r;return null!=(r=(null==s||null==(e=s.transferorSolutionType)?void 0:e.includes("ENAMOO"))&&(null==s||null==(l=s.transfereeSolutionType)?void 0:l.includes("GODOMALL")))&&r},[s]);return s?(0,r.jsxs)(u.P,{activeStep:3,children:[(0,r.jsx)(d.S,{solutionType:null==l?void 0:l.solutionType,domain:null==l?void 0:l.shopDomain,status:null==l?void 0:l.status}),(0,r.jsx)(k,{transferShippingInfo:s}),(0,r.jsx)(C,{enamooToGodomall:a}),(0,r.jsx)(v,{customerName:s.customerName,customerMobileNumber:s.customerMobileNumber,customerEmail:s.customerEmail,questionContent:s.questionContent}),(0,r.jsx)(E,{createdAt:s.createdAt,paidAt:s.paidAt,totalAmount:s.totalAmount,isIncomeConfirmed:s.isIncomeConfirmed,payTypeLabel:s.payTypeLabel})]}):null};var H=s(97921);let R=()=>{let e=(0,b.useSearchParams)(),l=e.get("shopNo")||"",s=Number(e.get("shopTransferNo")||"0"),{data:n}=(e=>(0,c.useQuery)({queryKey:["solutions",e],queryFn:async()=>{var l;return null==(l=(await a.p.getSolutions({params:{searchKey:"SHOP_NOS",searchValue:e,status:"ALL"}})).data)?void 0:l[0]},enabled:!!e}))(l),{data:i}=(0,H.I)(s);return(0,o.useMemo)(()=>(null==i?void 0:i.isSimplifiedTransfer)&&((null==n?void 0:n.solutionType)==="ENAMOO_RENTAL"||(null==n?void 0:n.solutionType)==="ENAMOO_FREE"),[n,i])?(0,r.jsx)(T,{currentMallInfo:n,transferShippingInfo:i}):(0,r.jsx)(D,{currentMallInfo:n,transferShippingInfo:i})};R.getLayout=function(e){return(0,r.jsx)(S.A,{children:e})};let F=R},88313:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/main/mall-migration/result-application",function(){return s(45848)}])},97921:(e,l,s)=>{"use strict";s.d(l,{I:()=>i});var r=s(65173),a=s(75119),n=s(99095);let i=e=>(0,n.useQuery)({queryKey:["solutionsTransfersShopTransferNo",e],queryFn:async()=>(await r.p.getSolutionsTransfersShopTransferNo({pathParams:{shopTransferNo:e}})).data,enabled:!!e,onError:e=>{var l;if(!a.A.isAxiosError(e))return void console.error(e);alert(null==(l=e.response)?void 0:l.data.message)}})}},e=>{e.O(0,[8779,563,3586,8405,9420,5019,9509,3269,7180,6977,3468,5324,3264,9703,8716,6049,1394,3815,3086,3478,7725,1179,1339,7605,4144,468,343,2452,7443,3992,5613,5806,7170,8523,6575,2574,9173,7464,456,6231,7212,2769,9473,8839,9219,199,772,3655,6193,5917,6785,8311,7118,8105,4276,3210,1895,8792],()=>e(e.s=88313)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.