1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1306],{6289:(e,t,l)=>{l.d(t,{b:()=>d,c:()=>x});var n=l(30573),r=l(69177),a=l(93452),i=l(17844);let s={lg:"h-[52px] rounded-[18px] gap-3",sm:"h-[45px] rounded-2xl gap-2"},o={lg:"typo-body-2",sm:"typo-callout-2"},c={lg:"typo-callout-2",sm:"typo-footnote-2"};function u(e){let{children:t,className:l,error:r,helper:a,label:s,size:o}=e;return(0,n.jsxs)("div",{className:(0,i.cn)("flex flex-col gap-1.5",l),children:[s&&(0,n.jsx)("span",{className:"typo-callout-1 px-1 text-grey-700",children:s}),t,r?(0,n.jsx)("p",{className:(0,i.cn)(c[o],"px-1 text-red-500"),children:r}):a&&(0,n.jsx)("p",{className:(0,i.cn)(c[o],"px-1 text-grey-600"),children:a})]})}let d=(0,r.forwardRef)((e,t)=>{let{className:l,disabled:c,error:d,focusedHelper:x,helper:m,label:f,size:p="lg",value:h,onBlur:b,onFocus:g,onPaste:y,onValueChange:N,...v}=e,[j,w]=(0,r.useState)(!1),C=(0,r.useRef)(null),k=(0,r.useCallback)(e=>{C.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]);return(0,r.useEffect)(()=>{document.activeElement===C.current&&w(!0)},[]),(0,n.jsx)(u,{error:d,helper:j&&x?x:m,label:f,size:p,children:(0,n.jsxs)("div",{className:(0,i.cn)("flex items-center border px-4 transition-[border-color,box-shadow]",s[p],c?"border-grey-200 bg-grey-50":d?"border-red-500 bg-white":j?"border-grey-600 bg-white shadow-[0_0_0_4px_var(--color-grey-100)]":"border-grey-300 bg-white"),children:[(0,n.jsx)("input",{className:(0,i.cn)("min-w-0 flex-1 bg-transparent outline-none placeholder:text-grey-400",o[p],c?"text-grey-600":"text-grey-800",l),disabled:c,ref:k,value:h,onBlur:e=>{w(!1),null==b||b(e)},onChange:e=>N(e.target.value),onFocus:e=>{w(!0),null==g||g(e)},onPaste:e=>{if(null==y||y(e),e.defaultPrevented)return;let t=e.clipboardData.getData("text");if(t!==t.trim()){var l,n;e.preventDefault();let r=e.currentTarget,a=null!=(l=r.selectionStart)?l:h.length,i=null!=(n=r.selectionEnd)?n:h.length;N(h.slice(0,a)+t.trim()+h.slice(i))}},...v}),j&&!c&&(0,n.jsx)("button",{"aria-label":"".concat(null!=f?f:"ì
ë ¥"," ì§ì°ê¸°"),className:"flex shrink-0 items-center",type:"button",onClick:()=>N(""),onMouseDown:e=>e.preventDefault(),children:(0,n.jsx)(a.I,{color:"var(--color-grey-400)",name:"cancel",size:20})})]})})});function x(e){let{className:t,helper:l,label:r,placeholder:c,size:d="lg",value:x,onClick:m}=e;return(0,n.jsx)(u,{className:t,helper:l,label:r,size:d,children:(0,n.jsxs)("button",{className:(0,i.cn)("flex w-full items-center border border-grey-300 bg-white px-4 text-left",s[d]),type:"button",onClick:m,children:[(0,n.jsx)("span",{className:(0,i.cn)("min-w-0 flex-1 truncate",o[d],x?"text-grey-800":"text-grey-400"),children:null!=x?x:c}),(0,n.jsx)(a.I,{className:"shrink-0",color:"var(--color-grey-500)",name:"chevron-down",size:20})]})})}d.displayName="SettlementTextField"},21373:(e,t,l)=>{l.d(t,{G7:()=>o,vQ:()=>c});var n=l(98987),r=l(38868),a=l(9212);let i={INVALID_ACCOUNT_INFO:50004,INVALID_BUSINESS_NUMBER:50005,NOT_SELLER_ACCOUNT:50006,INVALID_BANK_NAME:50008,BANK_ACCOUNT_VERIFICATION_FAIL:50045,SELLER_NOT_FOUND:60012};function s(e,t){return e instanceof n.h&&e.code===t}async function o(e){var t,l,n,o,c,u,d;let{api:x,fields:m,placeId:f}=e,p=e.existing;if(p&&(0,a.$L)(p.businessRegistrationNumber)!==(0,a.$L)(m.businessNumber)){try{await x.deleteSeller(f,p.id)}catch(e){if(!s(e,i.SELLER_NOT_FOUND))throw e}p=null}let h=[...new Set([null!=(o=null==(l=(t=m).holderName)?void 0:l.trim())?o:"",null!=(c=null==(n=t.knownHolderName)?void 0:n.trim())?c:"",t.representativeName.trim(),t.companyName.trim()].filter(Boolean))],b=null,g=null;for(let e of"ëí"===(u=m).bankKey?["ëí",r.KB]:[null!=(d=u.bankKey)?d:""])for(let t of h){let l={accountNumber:(0,a.$L)(m.accountNumber),bank:e,companyName:m.companyName.trim(),email:m.email.trim(),holderName:t,phoneNumber:(0,a.$L)(m.phoneNumber),representativeName:m.representativeName.trim()};try{p?await x.updateSeller(f,p.id,l):await x.createSeller(f,{...l,businessRegistrationNumber:(0,a.$L)(m.businessNumber),businessType:(0,a.mL)(m.businessNumber)});return}catch(e){if(g=e,s(e,i.INVALID_ACCOUNT_INFO)){b=e;continue}if(s(e,i.BANK_ACCOUNT_VERIFICATION_FAIL))break;throw e}}throw null!=b?b:g}function c(e){let{holderTyped:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof n.h)switch(e.code){case i.INVALID_ACCOUNT_INFO:return{kind:"field",field:"holder
1Name",message:t?a.p2:a.MN,step:1};case i.BANK_ACCOUNT_VERIFICATION_FAIL:case i.INVALID_BANK_NAME:return{kind:"field",field:"account",message:a.Xr,step:1};case i.NOT_SELLER_ACCOUNT:return{kind:"field",field:"account",message:a.db,step:1};case i.INVALID_BUSINESS_NUMBER:return{kind:"field",field:"businessNumber",message:a.ox,step:2}}return{kind:"toast",message:"ì ì í ë¤ì ìëí´ì£¼ì¸ì"}}},21774:(e,t,l)=>{l.d(t,{p:()=>n});let n=(0,l(1275).F3)("Device",{web:()=>l.e(6439).then(l.bind(l,88820)).then(e=>new e.DeviceWeb)})},24103:(e,t,l)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{default:function(){return o},getImageProps:function(){return s}});let n=l(49076),r=l(8633),a=l(53905),i=n._(l(93995));function s(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,l]of Object.entries(t))void 0===l&&delete t[e];return{props:t}}let o=a.Image},30880:(e,t,l)=>{l.d(t,{default:()=>r.a});var n=l(24103),r=l.n(n)},35450:(e,t,l)=>{l.d(t,{W:()=>a});var n=l(30573),r=l(17844);function a(e){let{children:t,className:l}=e;return(0,n.jsx)("div",{className:"fixed bottom-0 no-safe-area left-1/2 z-[100] w-full max-w-[var(--container-max-width)] -translate-x-1/2",style:{background:"linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 33.173%)"},children:(0,n.jsx)("div",{className:(0,r.cn)("bottom-bar-inset flex flex-col items-center gap-4 px-3 pt-4 pb-[max(var(--safe-area-inset-bottom),20px)]",l),children:t})})}},36236:(e,t,l)=>{l.d(t,{AK:()=>u,_Z:()=>m,eV:()=>x,gP:()=>d});var n=l(30573),r=l(69177),a=l(58915),i=l(31390),s=l(36795),o=l(17844),c=l(35450);let u=(0,r.createContext)(void 0);function d(e){let{onBack:t,onClickCustomerCenter:l}=e;return(0,n.jsx)("div",{className:"sticky top-0 z-10 bg-white",children:(0,n.jsx)(s.V,{rightContent:l&&(0,n.jsx)("button",{className:"typo-footnote-1 flex h-[42px] items-center rounded-xl px-1.5 text-primary-600",type:"button",onClick:l,children:(0,n.jsx)("span",{className:"px-1",children:"ê³ ê°ì¼í°"})}),onPrev:t})})}function x(e){let{children:t,description:l}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-1.5 pb-2 pl-5 pr-4 pt-6",children:[(0,n.jsx)("h1",{className:"typo-headline-24 text-grey-800",children:t}),l&&(0,n.jsx)("div",{className:"typo-callout-2 text-grey-600",children:l})]})}function m(e){let{active:t,label:l,loading:s=!1,onPress:d}=e,{visible:x}=(0,a.d)(),m=(0,r.useContext)(u);return(null!=m?m:x)?(0,n.jsx)("button",{className:(0,o.cn)("typo-callout-1 fixed bottom-[var(--register-keyboard-offset,0px)] no-safe-area left-1/2 z-[100] flex h-[50px] w-full max-w-[var(--container-max-width)] -translate-x-1/2 items-center justify-center px-6 text-white transition-colors",t?"bg-primary-400":"bg-primary-100"),disabled:s,type:"button",onClick:d,children:l}):(0,n.jsx)(c.W,{children:(0,n.jsx)(i.$,{className:(0,o.cn)("w-full",!t&&"bg-primary-100"),loading:s,size:"xlarge",variant:"filled",onClick:d,children:l})})}},55311:(e,t,l)=>{l.d(t,{O:()=>a,y:()=>r});var n=l(69177);let r="APPROVAL_REQUIRED";function a(e){let{enabled:t}=e,l=(0,n.useRef)(e.refetchSeller);l.current=e.refetchSeller;let a=(0,n.useRef)(e.onVerified);a.current=e.onVerified,(0,n.useEffect)(()=>{if(!t)return;let e=!1,n=!1,i=Date.now(),s=async()=>{if(!e&&!n&&"visible"===document.visibilityState){n=!0;try{let t=await l.current();!e&&t&&t.status!==r&&(e=!0,a.current())}catch(e){}finally{n=!1}}},o=window.setInterval(()=>{if(Date.now()-i>6e5)return void window.clearInterval(o);s()},5e3),c=()=>void s();return document.addEventListener("visibilitychange",c),window.addEventListener("focus",c),s(),()=>{e=!0,window.clearInterval(o),document.removeEventListener("visibilitychange",c),window.removeEventListener("focus",c)}},[t])}},58227:(e,t,l)=>{l.d(t,{O:()=>s,Q:()=>o});var n=l(30573),r=l(30880),a=l(30757),i=l(38868);function s(e){let{visible:t,onClose:l,onSelect:s}=e;return(0,n.jsxs)(a.H,{visible:t,onClose:l,children:[(0,n.jsx)("div",{className:"pb-2 pl-5 pr-4 pt-5",children:(0,n.jsx)("span",{className:"typo-title text-grey-800",children:"ìíì ì íí´ì£¼ì¸ì"})}),(0,n.jsx)("ul",{className:"grid min-h-0 grid-cols-3 overflow-y-auto py-2",children:i.yr.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)("button",{className:"flex w-full flex-col items-center justify-center gap-1.5 px-5 py-3.5",type:"button",onClick:()=>{s(e),l()},children:[(0,n.jsx)(r.default,{alt:"",height:28,src:(0,i.OA)(e),unoptimized:!0,width:28}),(0,n.jsx)("span",{className:"typo-callout-1 w-full whitespace-nowrap text-center text-grey-700",children:e.label})]})},e.key))})]})}function o(e){let{banks:t,onSelect:l}=e;return 0===t.length?null:(0,n.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.map(e=>(0,n.jsxs)("button",{className:"typo-callout-1 flex h-[42px] items-center rounded-2xl border border-grey-200 bg-white px-3 text-grey-600",type:"button",onClick:()=>l(e),children:[(0,n.jsx)(r.default,{alt:"",height:20,src:(0,i.OA)(e),unoptimized:!0,width:20}),(0,n.jsx)("span",{className:"px-1",children:e.label})]},e.key))})}},58915:(e,t,l)=>{l.d(t,{d:()=>i});var n=l(1275),r=l(80555),a=l(69177);function i(){let[e,t]=(0,a.useState)({visible:!1,height:0});return(0,a.useEffect)(()=>
1{if(!n.Capacitor.isNativePlatform())return;r.s3.setScroll({isDisabled:!0}).catch(()=>{});let e=null,l=null;return r.s3.addListener("keyboardWillShow",e=>{t({visible:!0,height:e.keyboardHeight}),document.body.dataset.keyboardVisible="true",document.documentElement.style.setProperty("--keyboard-height","".concat(e.keyboardHeight,"px"))}).then(t=>{e=t}),r.s3.addListener("keyboardWillHide",()=>{t({visible:!1,height:0}),delete document.body.dataset.keyboardVisible,document.documentElement.style.setProperty("--keyboard-height","0px")}).then(e=>{l=e}),()=>{null==e||e.remove(),null==l||l.remove(),delete document.body.dataset.keyboardVisible,document.documentElement.style.setProperty("--keyboard-height","0px")}},[]),e}},80555:(e,t,l)=>{l.d(t,{s3:()=>i});var n,r,a=l(1275);!function(e){e.Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT"}(n||(n={})),function(e){e.Body="body",e.Ionic="ionic",e.Native="native",e.None="none"}(r||(r={}));let i=(0,a.F3)("Keyboard")},89635:(e,t,l)=>{l.d(t,{Iu:()=>x,JI:()=>p,fB:()=>f,yy:()=>m});var n=l(30573),r=l(30880),a=l(31390),i=l(58227),s=l(36236),o=l(35450),c=l(6289),u=l(9212);function d(e){let{children:t,cta:l,onBack:r,onClickCustomerCenter:a}=e;return(0,n.jsxs)("main",{className:"-mx-[var(--container-padding-x)] flex min-h-svh-safe flex-col bg-white pb-[160px]",children:[(0,n.jsx)(s.gP,{onBack:r,onClickCustomerCenter:a}),t,l]})}function x(e){let{accountError:t,accountInputRef:l,accountNumber:r,active:a,bankLabel:o,holder:x,recommendedBanks:m,onAccountChange:f,onClickBankSelect:p,onNext:h,onSelectRecommended:b,...g}=e;return(0,n.jsxs)(d,{...g,cta:(0,n.jsx)(s._Z,{active:a,label:"ë¤ì",onPress:h}),children:[(0,n.jsx)(s.eV,{children:"ì ì°ë°ì ê³ì¢ë¥¼ ì
ë ¥í´ì£¼ì¸ì"}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 px-4 py-3",children:[(0,n.jsx)(c.b,{autoFocus:!r,error:t,helper:"ëíì ëª
ìì ì¬ì
ì ê³ì¢ë¥¼ ì
ë ¥í´ì£¼ì¸ì",inputMode:"numeric",label:"ê³ì¢ë²í¸",ref:l,value:r,onValueChange:f}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(c.c,{label:"ìí",placeholder:"ìí ì í",value:o,onClick:p}),(0,n.jsx)(i.Q,{banks:m,onSelect:b})]}),x&&(0,n.jsx)(c.b,{autoFocus:!x.value,error:x.error,helper:u.iA,label:"ìê¸ì£¼ëª
",value:x.value,onValueChange:x.onChange})]})]})}function m(e){let{active:t,businessNumber:l,error:r,onBlur:a,onChange:i,onNext:o,...u}=e;return(0,n.jsxs)(d,{...u,cta:(0,n.jsx)(s._Z,{active:t,label:"ë¤ì",onPress:o}),children:[(0,n.jsx)(s.eV,{children:"ì¬ì
ìë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì"}),(0,n.jsx)("div",{className:"flex flex-col px-4 py-3",children:(0,n.jsx)(c.b,{"aria-label":"ì¬ì
ìë²í¸",autoFocus:!l,error:r,inputMode:"numeric",value:l,onBlur:a,onValueChange:i})})]})}function f(e){let{active:t,companyName:l,email:r,emailError:a,loading:i=!1,phoneInputRef:o,phoneNumber:u,phoneOpened:x,representativeName:m,onCompanyNameChange:f,onEmailBlur:p,onEmailChange:h,onNext:b,onPhoneChange:g,onRepresentativeNameChange:y,...N}=e;return(0,n.jsxs)(d,{...N,cta:(0,n.jsx)(s._Z,{active:t,label:x?"ì íë²í¸ë¡ ì¸ì¦í기":"ë¤ì",loading:i,onPress:b}),children:[(0,n.jsxs)(s.eV,{children:["ì¬ì
ì ì¸ì¦ì ìí ì 보를",(0,n.jsx)("br",{}),"ì
ë ¥í´ì£¼ì¸ì"]}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 px-4 py-3",children:[x&&(0,n.jsx)(c.b,{autoFocus:!u,focusedHelper:"ëíì ì íë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì",helper:"본ì¸ì¸ì¦ ìë´ë¥¼ ë°ì ë²í¸ìì",inputMode:"numeric",label:"ì íë²í¸",ref:o,value:u,onValueChange:g}),(0,n.jsx)(c.b,{autoFocus:!x&&!r,error:a,helper:"ì¸ê¸ê³ì°ì, ì ì° ìë´ë¥¼ ë°ì ì´ë©ì¼ì´ìì",inputMode:"email",label:"ì´ë©ì¼",type:"email",value:r,onBlur:p,onValueChange:h}),(0,n.jsx)(c.b,{label:"ëíìëª
",value:m,onValueChange:y}),(0,n.jsx)(c.b,{label:"ìí¸ëª
",value:l,onValueChange:f})]})]})}function p(e){let{phoneNumber:t,onClickExample:l,onRetry:i,...c}=e,u=(0,n.jsx)(r.default,{alt:"í ì¤íì´ë¨¼ì¸ 본ì¸ì¸ì¦ ìë¦¼í¡ ìì",height:281,src:"/icon/place/settlement/alimtalk-verify.webp",unoptimized:!0,width:266});return(0,n.jsxs)("main",{className:"-mx-[var(--container-padding-x)] flex min-h-svh-safe flex-col bg-white pb-[160px]",children:[(0,n.jsx)(s.gP,{onBack:c.onBack,onClickCustomerCenter:c.onClickCustomerCenter}),(0,n.jsx)(r.default,{alt:"ì¹´ì¹´ì¤í¡",className:"ml-6 mt-5 rounded-2xl",height:48,src:"/icon/place/settlement/kakaotalk-logo.png",unoptimized:!0,width:48}),(0,n.jsxs)(s.eV,{description:(0,n.jsxs)("p",{className:"break-keep",children:["í ì¤íì´ë¨¼ì¸ ê°"," ",(0,n.jsx)("span",{className:"typo-callout-1",children:t}),"ë¡ ì림í¡ì ë³´ëì´ì. ì¸ì¦ì ë§ì¹ë©´ ìëì¼ë¡ ëì´ê°ì."]}),children:["ë§ì§ë§ì¼ë¡",(0,n.jsx)("br",{}),"본ì¸ì¸ì¦ì í´ì£¼ì¸ì"]}),(0,n.jsx)("div",{className:"flex justify-center pt-7",children:l?(0,n.jsx)("button",{type:"button",onClick:l,children:u}):u}),(0,n.jsx)(o.W,{children:(0,n.jsx)(a.$,{className:"w-full",size:"xlarge",variant:"default",onClick:i,children:"ë¤ì ìë/ì
ë ¥í기"})})]})}}}]);
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.