1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d4c292b3-3130-41c1-8c60-8a4820cd8a23",e._sentryDebugIdIdentifier="sentry-dbid-d4c292b3-3130-41c1-8c60-8a4820cd8a23")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6271],{1525:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var a=s(74429),l=s(69997),i=s(71041),r=s(76557),n=s(68795),c=s(9188),o=s(87873),d=s(3589),m=s(96910),x=s(3043);let u=e=>{let{path:t,isShow:s,onClose:m}=e,{t:u}=(0,l.Bd)("job-ad"),[p,g]=(0,i.useState)(null),{data:y,isLoading:f,isError:b}=(0,r.e$v)({path:t,isDecrypt:!0},{query:{enabled:!!t&&s},request:{responseType:"blob"}});return(0,i.useEffect)(()=>{let e;if(y){e=URL.createObjectURL(y);let s=t.split(".").pop()?.toLowerCase();g({blob:y,objectUrl:e,isPdf:"pdf"===s})}else g(null);return()=>{e&&URL.revokeObjectURL(e)}},[y,t]),(0,a.jsx)(n._,{headerClassName:"flex flex-row-reverse items-center justify-start max-xs:h-12 max-xs:px-4",steps:[{contentClassName:"p-0",content:(0,a.jsxs)(a.Fragment,{children:[f&&(0,a.jsx)(c.A,{}),b&&(0,a.jsx)(x.Label,{type:x.LabelType.Body1,children:"ì¬ì
ì ì¸ì¦ ì´ë¯¸ì§ë¥¼ ê°ì ¸ì¤ëë°ì ì¤í¨íìµëë¤."}),!f&&!b&&p&&(0,a.jsx)("div",{className:"relative flex h-full flex-col",children:p.isPdf?(0,a.jsx)(d.b,{wrapClassName:"h-full flex justify-center items-center",blob:p.blob,showPageNavigation:!0}):(0,a.jsx)(o.A,{src:p.objectUrl,alt:u("title.employer_certification")})})]})}],isShow:s,onClose:m})},p=e=>(0,a.jsx)(m.R.Provider,{children:(0,a.jsx)(u,{...e})})},3589:(e,t,s)=>{"use strict";s.d(t,{b:()=>l});var a=s(72551);let l=s.n(a)()(()=>Promise.all([s.e(1370),s.e(7501),s.e(1828)]).then(s.bind(s,71828)),{loadableGenerated:{webpack:()=>[71828]},ssr:!1})},7628:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(74429),l=s(71041),i=s(9188),r=s(3589);let n=e=>{let{file:t,pdfViewerWidth:s=200,imageClassName:n="max-h-[200px] w-full object-contain",pdfOuterClassName:c,pdfWrapClassName:o="px-0 py-0 overflow-hidden bg-gray-50"}=e,[d,m]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(t.type.startsWith("image/")){let e=URL.createObjectURL(t);return m(e),()=>URL.revokeObjectURL(e)}m(null)},[t]),t.type.startsWith("image/"))return d?(0,a.jsx)("img",{src:d,alt:t.name,className:n}):(0,a.jsx)("div",{className:"flex min-h-[120px] items-center justify-center py-6",children:(0,a.jsx)(i.A,{})});let x=(0,a.jsx)(r.b,{blob:t,hideScaleButton:!0,width:s,wrapClassName:o});return c?(0,a.jsx)("div",{className:c,children:x}):x}},13144:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a,l=s(71041);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)({}).hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e}).apply(null,arguments)}let r=e=>l.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:"current",height:"current",fill:"none",viewBox:"0 0 20 21"},e),a||(a=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.414 6.76a5.917 5.917 0 0 0 8.325 8.325L5.414 6.762Zm1.088-1.033 8.27 8.27a5.917 5.917 0 0 0-8.27-8.27M2.583 10.5a7.417 7.417 0 1 1 14.834 0 7.417 7.417 0 0 1-14.834 0",clipRule:"evenodd"})))},21930:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>W,default:()=>Q});var a=s(74429),l=s(67382),i=s(69102),r=s(69997),n=s(36734),c=s.n(n),o=s(76115),d=s(71041),m=s(90739),x=s(12074),u=s(1533),p=s(96496),g=s(81672),y=s(71824),f=s(7887),b=s(51766),h=s(25833),j=s(68857),v=s(3043);let A=e=>{let{buttonProps:t,items:s,className:l,offsetX:i=-4,offsetY:r=8,placement:n="bottom-end",strategy:c,stopInteractiveParentNavigation:o=!0}=e,{isShow:d,toggleShow:m,setReferenceElement:u,getDropdownProps:p,getDimmedProps:g,forceUpdate:y}=(0,j.B)({offsetY:r,offsetX:i,placement:n,strategy:c});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:u,className:(0,x.QP)("shrink-0",l),children:(0,a.jsx)(h.A,{...t,onClick:e=>{o&&(e.preventDefault(),e.stopPropagation()),y?.(),m(!0)}})}),d&&(0,a.jsx)("div",{...g()}),(0,a.jsx)("div",{...p({useFullWidth:!1}),children:s.map((e,t)=>(0,a.jsx)(v.SelectOptionItem,{className:e.className,label:e.label,onClick:()=>{e.onClick(),m(!1)}},`${e.label}-${t}`))})]})};var N=s(58264),_=s(9188),w=s(47479),C=s(87285),L=s(86478),B=s(39563),I=s(47228),T=s(53426),S=s(68790),k=s(14241),E=s(96179),P=s(28865),M=s(77316),U=s(13293),F=s(94942),R=s(37648),D=s(36142),z=s(1542);let H=()=>{let{t:e}=(0,r.Bd)("my"),{t:t}=(0,r.Bd)("job-ad"),s=(0,o.useRouter)(),l=(0,D.jE)(),n=(0,P.x)(),{refetchUncertifiedCount:j}=E.b.use(),H=String(s.query.tab||""),[O,W]=(0,d.useState)(()=>"reviewing"===H?"reviewing":"unverified"),[Q,q]=(0,d.useState)(null),[K,V]=(0,d.useState)(null),[G,X]=(0,d.useState)(!1),{ref:Y,inView:J}=(0,m.Wx)();(0,d.useEffect)(()=>{("reviewing"===H||"unverified"===H)&&W(H)},[H]);let Z="unverified"===O?f.WHj.UNCERTIFIED:f.WHj.PENDING,{data:$,isLoading:ee,isFetchingNextPage:et,fetchNextPage:es,hasNextPage:ea}=(0,z.q)({queryKey:(0,g.N_)({status:Z}),initialPageParam:0,enabled:(0,k.J)(),queryFn:async e=>{let{pageParam:t=0}=e;return await (0,g.qi)({status:Z,offset:t,limit:20})},getNextPageParam:e=>{if(e.pagination.hasNextPage)return(e.pagination.page-1)*e.pagination.perPage+e.pagination.count}}),{mutateAsync:el,isPending:ei}=(0,u.Q8O)(),er=(0,u._gV)();(0,M.we)(er);let en=(0,y.h)();(0,M.we)(en);let ec=(0,d.useCallback)(async e=>{if(!K)return;let t=K.storeId,s=function(e){let t={};return null!=e.companyName&&""!==e.companyName&&(t.companyName=e.companyName),void 0!==e.isAgency&&(t.isAgency=e.isAgency),null!=e.additionalDocumentUrls&&e.additionalDocumentUrls.length>0&&(t.additionalDocumentUrls=e.additionalDocumentUrls),t}(e);await en.mutateAsync({storeId:t,data:s}
1),V(null),await l.invalidateQueries({queryKey:(0,g.N_)()}),await l.invalidateQueries({queryKey:(0,y.M_)(t)}),j(),X(!0)},[K,l,j,en]),eo=(0,d.useMemo)(()=>$?.pages.flatMap(e=>e.data)??[],[$]),ed=$?.pages[0]?.uncertifiedCount??0,em=$?.pages[0]?.pendingCount??0;(0,d.useEffect)(()=>{"unverified"===O&&0===ed&&em>0&&W("reviewing")},[ed,em,O]),(0,d.useEffect)(()=>{J&&ea&&!et&&es()},[J,ea,et,es]);let ex=t=>{n?.show({title:e("job-ad:title.delete_company"),message:e("job-ad:desc.delete_company_warning"),...(0,I.x)(!1),useAlert:!0,danger:!0,confirmText:e("common:button.delete"),onConfirmClick:async()=>{(await er.mutateAsync({storeId:t.storeId})).error||((0,U.P)({message:e("job-ad:toast.company_deleted")}),await l.invalidateQueries({queryKey:(0,g.N_)()}),await j())}})},eu=(0,d.useMemo)(()=>[{label:e("certification.tab.unverified",{count:ed}),value:"unverified",disabled:0===ed},{label:e("certification.tab.reviewing",{count:em}),value:"reviewing",disabled:0===em}],[e,ed,em]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.A,{className:"bg-transparent pb-0 max-xs:px-4 max-xs:pb-8 xs:pb-0",title:e("certification.page_title"),useTitleBreadcrumbs:!0}),(0,a.jsx)("main",{className:"mx-auto flex w-full max-w-[520px] flex-col gap-6 pb-14 max-xs:px-4 max-xs:pt-4 xs:pt-8 md:flex-row md:px-0",children:(0,a.jsxs)("section",{className:"flex flex-1 flex-col gap-3",children:[(0,a.jsx)("div",{className:"h-12",children:(0,a.jsx)(v.Segment,{options:eu,selectedValue:O,onChange:e=>{let t=eu.find(t=>t.value===e);t?.disabled||W(e)}})}),(0,a.jsx)("div",{className:"flex flex-col gap-3",children:ee?(0,a.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,a.jsx)(_.A,{})}):0===eo.length?"reviewing"===O&&0===em?(0,a.jsx)("div",{className:"flex flex-col items-center gap-4 py-12",children:(0,a.jsx)(v.Label,{type:v.LabelType.Body1,className:"text-gray-500",children:e("certification.empty.reviewing")})}):"unverified"===O&&0===ed?(0,a.jsx)("div",{className:"flex flex-col items-center gap-4 py-12",children:(0,a.jsx)(v.Label,{type:v.LabelType.Body1,className:"text-gray-500",children:e("certification.empty.unverified")})}):null:(0,a.jsxs)(a.Fragment,{children:[eo.map(t=>{let s=(0,B.Hs)({certificationStatus:t.certificationStatus,rejectionReasonAttrs:t.rejectionReasonAttrs}),r=t.certificationStatus!==f.xRG.PENDING;return(0,a.jsxs)("div",{"aria-label":`${t.name} ê³µê³ ëª©ë¡ ë³´ê¸°`,className:"flex flex-col gap-5 overflow-hidden rounded-xl border border-gray-100 bg-gray-0 py-4",children:[(0,a.jsxs)(c(),{href:`/employer/prepare-recruit/my-job-ad?storeId=${t.storeId}`,className:"flex gap-3 px-4",children:[t.pictures.length>0?(0,a.jsx)(v.Avatar,{className:"h-10 w-10 rounded-[14px] border-[1px] border-gray-50 shadow-[0_0_0_0]",imageUrl:t.pictures[0]}):(0,a.jsx)("div",{className:"h-10 w-10 rounded-[14px] border-gray-50 bg-gray-30 p-[10px]",children:(0,a.jsx)(F.Dg,{size:20,color:R.MF["gray-300"]})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-4 pt-1",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,a.jsx)(v.Label,{type:v.LabelType.Caption1,className:"truncate text-gray-500",children:t.category}),(0,a.jsx)(v.Label,{type:v.LabelType.Body1,bold:v.FontWeight.Bold,className:"text-gray-900",children:t.name})]}),(0,a.jsx)(v.Label,{type:v.LabelType.Caption1,className:"text-gray-600",children:t.addressFull})]}),(0,a.jsxs)("div",{className:"flex items-center gap-[6px]",children:[(0,a.jsx)(v.Label,{type:v.LabelType.Caption1,bold:v.FontWeight.Medium,className:"text-gray-600",children:e("certification.store.job_ad_count",{count:t.jobAdCount})}),(0,a.jsx)(T.A,{className:"h-3"}),(0,a.jsx)(v.Label,{type:v.LabelType.Caption1,bold:v.FontWeight.Medium,className:"text-gray-600",children:e("certification.store.active_ad_count",{count:t.adCount})}),(0,a.jsx)(T.A,{className:"h-3"}),(0,a.jsx)(v.Label,{type:v.LabelType.Caption1,className:"truncate text-gray-500",children:e("certification.store.registered_at",{date:(e=>{try{return(0,i.GP)(new Date(e),"yyyy.MM.dd")}catch{return e}})(t.createdAt)})})]})]})]}),r&&(0,a.jsxs)(a.Fragment,{children:[s?.show&&(0,a.jsxs)("div",{className:"bg-red-30 px-4 py-3 text-red-800",children:[(0,a.jsxs)("div",{className:(0,x.QP)("flex items-center gap-1 px-0.5",s.descriptions.length>0&&"mb-2"),children:[(0,a.jsx)(F.mo,{size:18,color:R.MF["red-800"]}),(0,a.jsx)(v.Label,{type:v.LabelType.Body2,bold:!0,children:e(s.titleKey)})]}),s.descriptions.map(t=>{let l=s.descriptions.length>=2;return(0,a.jsxs)("div",{className:(0,x.QP)("flex items-center",!l&&"pl-[22px]"),children:[l&&(0,a.jsx)(F.Zy,{size:24,color:R.MF["red-800"]}),(0,a.jsx)(v.Label,{type:v.LabelType.Body2,children:e(t.i18nKey,t.i18nParams)})]},t.code)})]}),(0,a.jsx)("div",{className:"flex flex-col gap-5 px-4 pb-1",children:(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(h.A,{type:s?.button.buttonType==="caution"?v.ButtonAnatomy.Caution:v.ButtonAnatomy.Primary,size:R.or.Large,label:e(s?.button.labelKey??"certification.button.verify_business"),className:"w-full gap-1.5",icon:(s?.button.iconVariant??"verified")==="verified"?(0,a.jsx)(F._f,{size:20,color:R.MF["gray-0"]}):(s?.button.iconVariant??"verified")==="plus"?(0,a.jsx)(F.c1,{size:20,color:R.MF["gray-0"]}):(s?.button.iconVariant??"verified")==="delete"?(0,a.jsx)(F.d7,{size:20,color:R.MF["red-500"]}):(0,a.jsx)(b.A,{width:20,height:20,className:"text-gray-0"}),onClick:e=>{e.preventDefault(),e.stopPropagation();let a=s?.button.action??{type:"open_certify"};return"delete"===a.type?void ex(t):"open_update_modal"===a.type?void V({storeId:t.storeId,storeName:t.name,plan:a.plan}):void q({storeId:t.storeId,skipAgencyStep:a.skipAgencyStep})}}),s?.button.action.type!=="delete"&&(0,a.jsx)(A,{buttonProps:{"aria-label":`${t.name} ë보기 ë©ë´`,className:"px-[14px]",type:v.ButtonAnatomy.Tertiary,icon:(0,a.jsx)(F.d5,{})},items:[{label:e("certification.button.change_to_individual"),onClick:()=>{(t=>{n?.show({title:e("certification.change_to_individual_modal.title"),message:e("certification.change_to_individual_modal.message",{storeName:t.name}),confirmText:e("certification.change_to_individual_modal.confirm"),cancelText:e("certification.change_to_individual_modal.cancel"),onConfirmClick:async()=>{try{let s=await (0,u.Etr)(t.storeId),a=s?.store;if(!a?.name||!a?.category||!a?.address?.name||!a?.address?.source||!a?.address?.full)throw Error("ì¤í ì´ ì 보를 ë¶ë¬ì¬ ì ììµëë¤.");await el({storeId:t.storeId,data:{type:p.FpI.personal,name:a.name,pictures:a.pictures,address:{name:a.address.name,source:a.address.source,full:a.address.full,detail
1:a.address.detail,areas:a.address.areas},category:a.category}}),await l.invalidateQueries({queryKey:(0,g.N_)()}),await j(),(0,U.P)({message:e("toast.changed_to_individual")})}catch(t){(0,U.P)({message:e("toast.error_occurred")})}}})})(t)}},{label:e("job-ad:button.delete_store"),className:"text-red-500",onClick:()=>{ex(t)}}]})]})})]})]},t.storeId)}),(0,a.jsx)("div",{ref:Y}),et&&(0,a.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,a.jsx)(_.A,{})})]})})]})}),(0,a.jsx)(L.A,{isShow:!!Q,onClose:async()=>{q(null),await l.invalidateQueries({queryKey:(0,g.N_)()})},storeId:Q?.storeId??null,skipAgencyStep:Q?.skipAgencyStep}),(0,a.jsx)(C.A,{isShow:!!K,plan:K?.plan??null,storeId:K?.storeId??null,storeName:K?.storeName??null,onSubmitCollectedData:ec,onClose:async()=>{V(null),await l.invalidateQueries({queryKey:(0,g.N_)()})}}),(0,a.jsx)(w.A,{isShow:G,onClose:()=>X(!1),title:t("title.business_info_auth"),size:R.or.Medium,useMobileFullScreen:!0,className:"min-h-max xs:w-[452px] xs:max-w-[452px]",buttons:(0,a.jsx)(h.A,{className:"mb-3 w-full",size:R.or.Large,label:e("common:button.confirm"),onClick:()=>X(!1)}),children:(0,a.jsx)(S.A,{})})]})},O=()=>(0,a.jsx)(H,{});O.getLayout=function(e){return(0,a.jsx)(l.A,{bodyClassName:"xs:px-12",className:"min-w-full",children:e})};var W=!0;let Q=O},35768:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/employer/prepare-recruit/employer-certification",function(){return s(21930)}])},45748:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var a=s(74429),l=s(69997),i=s(71041),r=s(22632),n=s(28226),c=s(65895),o=s(3043);let d=(0,i.forwardRef)(function(e,t){let{onIsAgencyChange:s}=e,{t:d}=(0,l.Bd)(["job-ad","validate","common"]),m=(0,r.Ik)({isAgency:(0,r.zM)().required(d("validate:required_is_agency"))}),{formState:{errors:x},watch:u,setValue:p,getValues:g,trigger:y}=(0,c.mN)(m,{mode:"onSubmit"}),f=u("isAgency");(0,i.useEffect)(()=>{s?.(f)},[f,s]),(0,i.useImperativeHandle)(t,()=>({validate:()=>y("isAgency"),getIsAgency:()=>g("isAgency")}));let b=!!x?.isAgency?.message;return(0,a.jsxs)("div",{className:"flex flex-col gap-10 px-5 pb-10 pt-6 max-xs:px-4 xs:w-[452px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 text-left",children:[(0,a.jsx)(o.Label,{className:"text-gray-900",type:o.LabelType.Heading3,children:d("title.is_agency_employer_question")}),(0,a.jsx)(o.Label,{className:"text-gray-800",children:d("desc.agency_info_warning")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)(n.A,{className:"w-full items-center gap-4 px-4 py-3.5",selected:!0===f,isError:b,onClick:()=>{p("isAgency",!0),y("isAgency")},children:[(0,a.jsx)(o.Label,{className:!0===f?"text-gray-900":"text-gray-700",bold:o.FontWeight.Bold,children:d("common:button.yes_label")}),(0,a.jsx)(o.Label,{className:!0===f?"text-gray-900":"text-gray-700",type:o.LabelType.Body2,children:d("desc.agency_yes_description")})]}),(0,a.jsxs)(n.A,{className:"w-full items-center gap-4 px-4 py-3.5",selected:!1===f,isError:b,onClick:()=>{p("isAgency",!1),y("isAgency")},children:[(0,a.jsx)(o.Label,{className:!1===f?"text-gray-900":"text-gray-700",bold:o.FontWeight.Bold,children:d("common:button.no_label")}),(0,a.jsx)(o.Label,{className:!1===f?"text-gray-900":"text-gray-700",type:o.LabelType.Body2,children:d("desc.agency_no_description")})]}),(0,a.jsx)(o.FormErrorMessage,{errorMessage:void 0===f&&(0,c.u1)(x,"isAgency")})]})]})})},47037:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var a=s(74429),l=s(69997),i=s(71041),r=s(12074),n=s(36989),c=s(25833),o=s(47479),d=s(48659),m=s(96910),x=s(3043),u=s(37648);let p=e=>{let{steps:t,headerExtraContent:s,useForceClose:p,useMobileFullScreen:g,...y}=e,{t:f}=(0,l.Bd)("common"),b=(0,d.H)(),h=(0,n.i7)(m.R.context,e=>e);if(!h)return null;let{step:j,setStep:v}=h,A=t[j];return(0,i.useEffect)(()=>{A?.viewEvent&&b?.trackEvent(A.viewEvent.eventName,A.viewEvent.eventData)},[j]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.A,{size:u.or.Medium,...y,bodyClassName:(0,r.QP)(y.bodyClassName,A.contentClassName),title:A.title,scrollResetDeps:[j],header:A.titleRight&&(0,a.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,a.jsx)(x.Label,{className:"text-gray-800",type:x.LabelType.Heading3,children:A.title}),A.titleRight]}),buttons:!!A.buttons&&(0,a.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[A.buttonDescription?(0,a.jsx)("div",{className:"flex flex-row items-center justify-center text-center",children:A.buttonDescription}):null,(0,a.jsxs)("div",{className:(0,r.QP)("flex w-full flex-1 items-center gap-4",!!A.hideBackButton&&"justify-end",A.buttonWrapClassName),children:[p||A.hideBackButton?A.ignoreBackButtonSpacing?null:(0,a.jsx)("div",{className:"flex-1 max-xs:hidden"}):(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(c.A,{size:u.or.Large,type:x.ButtonAnatomy.Quaternary,label:f("button.prev"),disabled:!j||A.disabledBackButton,onClick:e=>{e.stopPropagation(),A.onBackButtonClick?.()||v(j?j-1:0)}})}),A.buttons]})]}),useMobileFullScreen:g,children:[A.content,s]})})}},68790:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(74429),l=s(69997),i=s(3043),r=s(94942);let n=()=>{let{t:e}=(0,l.Bd)("job-ad");return(0,a.jsxs)("div",{className:"flex flex-col items-center gap-12 pb-10 pt-10 max-xs:pt-20",children:[(0,a.jsx)(r.fr,{size:110}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,a.jsx)(i.Label,{className:"text-gray-900",type:i.LabelType.Heading2,children:e("title.employer_certification_complete_title")}),(0,a.jsx)(i.Label,{className:"text-gray-800",type:i.LabelType.Body1,children:e("desc.employer_certification_complete_description")})]})]})}},87157:(e,t,s)=>{"use strict";s.d(t,{A:()=>T});var a=s(74429),l=s(69997),i=s(30883),r=s.n(i),n=s(71041),c=s(8734),o=s(12074),d=s(22632),m=s(76557),x=s(13144),u=s(52675);let p={src:"/_next/static/media/cert_guide01.7a4c446a.png",height:424,width:299,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAMAAADtGH4KAAAALVBMVEU5tICLjJC7u8H09vfl5ue1t7nq7OwPwYDi5OUTxITX2dr09PTu7u/s7u////+cBwSeAAAADXRSTlMBFAz+9SbkZc53zuT2IsG8XgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAC9JREFUeJwdxQEKACAIwMBZmmXZ/58bORiHaeYQRLMXvTj3bsFizjBao2Ytfu7wABzyAOSAJO/OAAAAAElFTkSuQmCC",blurWidth:6,blurHeight:8},g={src:"/_next/static/media/cert_guide02.dfc56782.png",height:424,width:299,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAMAAADtGH4KAAAALVBMVEVMaXHV1dfd3d7Ey83/SUOtrb//Dwe4tbjx8vP9/v7Kys3d39/c3t7i5OT////vyW81AAAADnRSTlMAeoZYJw4hLvX4auWV0OSVWzcAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAuSURBVHicRchBDgAQDADBpaW0+P9zpS72MsmCxw6HeuYpyfi09WYzETGgdzJVuCTHARWXdZHBAAAAAElFTkSuQmCC",blurWidth:6,blurHeight:8};var y=s(25833),f=s(89885),b=s(9188),h=s(1525),j=s(7628),v=s(96179),A=s(48659),N=s(28865),_=s(65895),w=s(3043),C=s(94942),L=s(37648);let B=["image/jpeg","image/png","application/pdf"],I=[{tipKey:"desc.business_license_guide_corners",Icon:u.A,iconClassName:"text-green-500"},{tipKey:"desc.business_license_guide_clear",Icon:u.A,iconClassName:"text-green-500"},{tipKey:"desc.business_license_guide_no_reflection",Icon:x.A,iconClassName:"text-red-500"},{tipKey:"desc.business_license_guide_original",Icon:x.A,iconClassName:"text-red-500"}],T=e=>{let{storeId:t,storeName:s,isAgency:i,onCompleted:x}=e,{t:u}=(0,l.Bd)(["job-ad","validate","common","error"]),T=(0,A.H)(),S=(0,N.x)(),{refetchUncertifiedCount:k}=v.b.use(),[E,P]=(0,c.A)(!1),M=(0,n.useRef)(null),[U,F]=(0,n.use
1State)(null),R=(0,m.fUl)(),D=(0,m.KHu)(),z=(0,d.Ik)({businessLicenseImgUrl:(0,d.Yj)().required(u("validate:required_employer_license_file"))}),{formState:{errors:H},setValue:O,clearErrors:W,handleSubmit:Q,trigger:q}=(0,_.mN)(z,{mode:"onSubmit"}),K=async e=>{if(!D.isPending&&t&&s){try{await D.mutateAsync({storeId:t,data:{companyName:s,businessLicenseImgUrl:e.businessLicenseImgUrl,isAgency:i}})}catch(e){if("40000"===e.code||"40012"===e.code||"40011"===e.code)return void S?.show({title:u("common:title.modal_notice"),message:u("error:already_exists_certs"),confirmText:u("common:button.confirm"),hideCancel:!0});if(e.description)return void S?.show({title:u("common:title.modal_notice"),message:e.description,confirmText:u("common:button.confirm"),hideCancel:!0});S?.show({title:u("error:temporary_error"),message:u("error:try_later"),confirmText:u("common:button.confirm"),hideCancel:!0});return}T?.trackEvent("complete_business_cert"),await k(),x?.()}},V=async e=>{let t=e.target.files?.[0];if(t){if(t.size>0xa00000)return void S?.show({title:u("common:title.file_not_added"),message:u("common:desc.file_max_size",{size:"10MB"}),confirmText:u("common:button.confirm"),hideCancel:!0});if(!B.includes(t.type))return void S?.show({title:u("common:title.file_not_added"),message:u("common:desc.retry_later"),confirmText:u("common:button.confirm"),hideCancel:!0});try{let e=await R.mutateAsync({data:{file:t},params:{fileType:m.Ypl.BUSINESS_CERTIFICATION}});e&&(F({file:t,serverUploadedUrl:e}),O("businessLicenseImgUrl",e),q("businessLicenseImgUrl"))}catch{S?.show({title:u("common:title.file_not_added"),message:u("common:desc.retry_later"),confirmText:u("common:button.confirm"),hideCancel:!0})}finally{M.current&&(M.current.value="")}}};return(0,a.jsxs)("div",{className:"xs:w-[452px]",children:[(0,a.jsxs)("form",{className:(0,o.QP)("flex flex-col pt-6",U?"pb-0":"pb-10"),onSubmit:Q(K),children:[(0,a.jsx)("input",{ref:M,type:"file",className:"hidden",accept:"image/png, image/jpeg, application/pdf",onChange:V}),(R.isPending||D.isPending)&&(0,a.jsx)(f.A,{dimmedClassName:"opacity-40",children:(0,a.jsx)(b.A,{})}),(0,a.jsxs)("div",{className:"flex flex-col gap-8 px-5 max-xs:px-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 text-left",children:[(0,a.jsx)(w.Label,{className:"text-gray-900",type:w.LabelType.Heading3,children:u("title.submit_business_license_with_store",{storeName:s})}),(0,a.jsx)(w.Label,{className:"text-gray-800",children:u("desc.employer_license_supported_files_size")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[R.isPending?(0,a.jsx)("div",{className:"rounded-2 border border-gray-300",children:(0,a.jsx)(b.A,{wrapClassName:"py-10"})}):U?(0,a.jsxs)("div",{className:"relative flex cursor-pointer items-center justify-between overflow-hidden rounded-2 border border-gray-200 bg-gray-50",onClick:P,role:"button",children:[(0,a.jsx)("div",{className:"flex max-w-full items-center gap-2",children:(0,a.jsx)(j.A,{file:U.file,pdfViewerWidth:412,imageClassName:"max-w-full object-contain",pdfWrapClassName:"px-0 py-0 overflow-hidden"})}),(0,a.jsx)(y.A,{className:"absolute right-[14px] top-4 rounded-full bg-black/40 p-2",type:w.ButtonAnatomy.Quaternary,onClick:e=>{e.stopPropagation(),F(null),O("businessLicenseImgUrl","",{shouldValidate:!1}),W("businessLicenseImgUrl")},icon:(0,a.jsx)(C.uv,{size:20,color:L.MF["gray-0"]})})]}):(0,a.jsx)(y.A,{label:u("button.add_employer_license"),onClick:()=>{M.current?.click()},icon:(0,a.jsx)(C.c1,{size:20,color:L.MF["gray-0"]})}),(0,a.jsx)(w.FormErrorMessage,{errorMessage:H.businessLicenseImgUrl?u("desc.employer_license_supported_files_size"):void 0})]})]}),(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(w.Divider,{height:8})}),(0,a.jsxs)("div",{className:"flex min-h-[240px] flex-col pt-10",children:[(0,a.jsxs)("div",{className:"px-5 text-center max-xs:px-4",children:[(0,a.jsx)(w.Label,{className:"text-gray-900",type:w.LabelType.Heading3,children:u("title.how_to_add_business_license")}),(0,a.jsxs)("div",{className:"my-10 flex items-start gap-1 rounded-[8px] bg-yellow-30 p-4 text-yellow-800",children:[(0,a.jsx)("span",{className:"shrink-0",children:(0,a.jsx)(C.mo,{size:18,color:L.MF["yellow-800"]})}),(0,a.jsx)(w.Label,{className:"break-all pt-1 text-left text-yellow-800",type:w.LabelType.Body2,bold:w.FontWeight.Semibold,children:u("desc.business_license_quality_notice")})]})]}),(0,a.jsxs)("div",{className:"mx-4 mt-4 flex gap-3",children:[(0,a.jsx)("div",{className:"flex-1 px-5",children:(0,a.jsx)(r(),{className:"h-auto w-full",src:p,alt:u("title.how_to_add_business_license"),width:299,height:424})}),(0,a.jsx)("div",{className:"flex-1 px-5",children:(0,a.jsx)(r(),{className:"h-auto w-full",src:g,alt:u("title.how_to_add_business_license"),width:299,height:424})})]}),(0,a.jsx)("div",{className:"mx-4 mt-8 flex flex-col items-start gap-3.5 rounded-[12px] bg-gray-30 px-5 py-6",children:I.map(e=>{let{tipKey:t,Icon:s,iconClassName:l}=e;return(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)(s,{className:(0,o.QP)("shrink-0",l),width:20,height:20}),(0,a.jsx)("div",{className:"flex pt-[2px]",children:(0,a.jsx)(w.Label,{className:"text-gray-800",children:u(t)})})]},t)})})]}),(0,a.jsx)("div",{className:"mt-10",children:(0,a.jsx)(w.Divider,{height:8})}),(0,a.jsx)("div",{className:"px-4 pb-0 pt-10",children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 rounded-2 bg-gray-100 px-5 py-6",children:[(0,a.jsxs)("div",{className:"flex items-start gap-1",children:[(0,a.jsx)("span",{className:"shrink-0 pt-0",children:(0,a.jsx)(C.mo,{size:18,color:L.MF["gray-800"]})}),(0,a.jsx)(w.Label,{className:"leading-[21px] text-gray-800",type:w.LabelType.Body2,children:u("desc.business_cert_privacy_notice")})]}),(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)("span",{className:"shrink-0",children:(0,a.jsx)(C.Zy,{size:24,color:L.MF["gray-800"]})}),(0,a.jsx)(w.Label,{className:"text-gray-800",type:w.LabelType.Body2,children:u("desc.business_cert_privacy_items")})]})]})}),U&&(0,a.jsx)("div",{className:"border-t border-gray-30 px-4 pb-8 pt-4",children:(0,a.jsx)(y.A,{className:"w-full",size:L.or.Large,label:u("common:button.submit"),onClick:Q(K),isLoading:D.isPending})})]}),U?.serverUploadedUrl&&(0,a.jsx)(h.A,{path:U.serverUploadedUrl,isShow:E,onClose:P})]})}}},e=>{e.O(0,[8370,2687,5389,2279,4067,9417,4506,6734,883,386,3244,6220,832,2045,3712,192,8e3,4064,7006,9479,1144,9584,6496,2121,2258,3390,7464,6031,7588,728,457,6534,2945,3188,4205,7382,6639,636,6593,8792],()=>e(e.s=35768)),_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.