PageSourceSearch

https://jober.io/static/js/dayOffSetup.fc4d76f2.chunk.js

js jober.io collected 2026-10-03 21:14:15 UTC 30,435 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkspa=self.webpackChunkspa||[]).push([[7549],{52707:(e,a,s)=>{s.r(a),s.d(a,{default:()=>M});s(9830);var t=s(73852),l=s(9950),n=s(59051),c=s.n(n),o=s(34655),i=s(90937),r=(s(37888),s(55273)),d=(s(81052),s(38266)),u=(s(32067),s(15449)),p=(s(46459),s(64577)),m=(s(81066),s(50720)),f=(s(34188),s(14698)),h=(s(6086),s(19804)),g=(s(55378),s(33784)),y=(s(36338),s(120)),j=(s(37604),s(80978)),x=(s(36391),s(93165)),v=s(41397),C=s.n(v),N=s(51369),S=s(39105),A=s(78510),k=s(44414);const O=e=>{const{approverList:a=[],removeApprover:s=()=>{}}=e,t=a.sort(((e,a)=>a.isRootManager-e.isRootManager)).filter((e=>e.isApprover)).filter((e=>!e.isDeleted)),l=t.length<=1;return t.map((e=>(0,k.jsxs)(p.default,{className:"approver-list-btn",children:[(0,k.jsxs)("div",{className:"title",children:[(0,A.Mn)(e.name),(0,k.jsx)("br",{}),(0,k.jsx)("span",{className:"email",children:e.email})]}),(0,k.jsxs)("div",{className:"icon",children:[e.isRootManager&&(0,k.jsx)("span",{className:"role-label",style:{marginRight:8},children:"\ucd5c\uace0\uad00\ub9ac\uc790"}),(0,k.jsx)(g.default,{title:l?"\uc5f0\ucc28 \uacb0\uc7ac\uc790\ub294 \ucd5c\uc18c 1\uba85 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.":"\uc2e0\uaddc \uc5f0\ucc28 \uacb0\uc7ac\uc790 \ubaa9\ub85d\uc5d0\uc11c \uc81c\uc678\ud569\ub2c8\ub2e4.",children:(0,k.jsx)(y.default,{style:{fontSize:20,...l?{color:"#cccccc",cursor:"not-allowed"}:{}},type:"close-circle-o",onClick:()=>{l||s(e)}})})]})]},e.companyUserId)))};var b=s(43116),D=s(56815),E=s(86234),_=s(38901);const{Option:R}=x.default,w="https://jober-api-static.s3.ap-northeast-2.amazonaws.com/joberGoogleCalendarIcon.png",T=()=>(0,k.jsxs)("div",{className:"DayOffGoogleRegisterStep",children:[(0,k.jsx)("div",{children:(0,k.jsx)("img",{src:w,alt:"\uc790\ubc84 \uad6c\uae00 \uce98\ub9b0\ub354 \ub85c\uace0"})}),(0,k.jsx)("div",{className:"google-calendar-maintitle",children:(0,k.jsx)("h1",{children:"Jober \uc5f0\ucc28\uad00\ub9ac + Google \uce98\ub9b0\ub354"})}),(0,k.jsx)("div",{children:(0,k.jsx)("p",{children:"\uc790\ubc84\uc5d0\uc11c \uc2b9\uc778\ud55c \uc5f0\ucc28\uac00 Google \uce98\ub9b0\ub354\uc5d0 \ud45c\uc2dc\ub429\ub2c8\ub2e4."})}),(0,k.jsx)(j.A,{}),(0,k.jsxs)("div",{className:"google-calendar-notification",children:[(0,k.jsxs)("div",{children:["\ub2e4\uc74c \ud654\uba74\uc5d0\uc11c ",(0,k.jsx)("span",{children:"\uc5f0\ub3d9\ud560 Google \uacc4\uc815\uc744"})," \uc120\ud0dd\ud558\uace0"]}),(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{children:"\uce98\ub9b0\ub354 \uc811\uadfc \uad8c\ud55c\uc744 \ud5c8\uc6a9"}),"\ud574\uc8fc\uc138\uc694."]})]})]}),I=e=>{const{setSelectedGoogleCalendar:a,selectedGoogleEmail:s}=e,{request:t,loading:n}=(0,i.A)({showErrorMessage:!0}),[c,o]=(0,l.useState)([]),d=(0,l.useCallback)((async()=>{const e=await t({method:"GET",url:"/day-off/dayoff-google-calendarlist"});e&&e.data&&o(e.data)}),[]);return(0,l.useEffect)((()=>{d()}),[]),(0,k.jsx)(r.default,{spinning:n,children:(0,k.jsxs)("div",{className:"DayOffGoogleRegisterStep",children:[(0,k.jsx)("div",{children:(0,k.jsx)("img",{src:w,alt:"\uc790\ubc84 \uad6c\uae00 \uce98\ub9b0\ub354 \ub85c\uace0"})}),(0,k.jsx)("div",{className:"google-calendar-maintitle",children:(0,k.jsx)("h1",{children:`${s}\uc5d0 \uc5f0\uacb0\ud569\ub2c8\ub2e4.`})}),(0,k.jsx)("div",{className:"google-calendar-select-notification",children:(0,k.jsx)("p",{children:"\uc5f0\ub3d9\ud560 \uce98\ub9b0\ub354\ub97c \uc120\ud0dd\ud558\uc138\uc694."})}),(0,k.jsx)(j.A,{}),(0,k.jsxs)("div",{className:"select-google-calendar-wrapper",children:[(0,k.jsx)("div",{className:"select-google-calendar-title",children:"\uce98\ub9b0\ub354 \uc120\ud0dd"}),(0,k.jsx)(x.default,{className:"select-google-calendar",placeholder:"\uc5f0\ub3d9\ud558\uc2e4 \uad6c\uae00 \uce98\ub9b0\ub354\ub97c \uc120\ud0dd\ud574 \uc8fc\uc138\uc694.",onChange:e=>{a(e)},children:c.length>0&&c.map((e=>(0,k.jsx)(R,{value:e.id,children:e.summary},e.id)))})]})]})})},G=e=>{const{closeGoogleRegisterModal:a=()=>{},googleRegisterModalVisible:s=!1,googleRegisterCurrentStep:n,setGoogleRegisterCurrentStep:o}=e,{company:r}=(0,l.useContext)(E.A),{request:u,loading:m}=(0,i.A)({showErrorMessage:!0}),{request:f,loading:h}=(0,i.A)({showErrorMessage:!0}),[g,y]=(0,l.useState)(!1),[j,x]=(0,l.useState)(null),[v,C]=(0,l.useState)(null),N=(0,l.useCallback)((()=>{switch(n){case 1:return(0,k.jsx)(T,{});case 2:return(0,k.jsx)(I,{selectedGoogleEmail:v,setSelectedGoogleCalendar:x});default:return null}}),[n,v]),{signIn:S,loaded:A}=(0,b.useGoogleLogin)({clientId:"7685899165-v7bca9gqtr72jl6ecituk21t5vd4qagv.apps.googleusercontent.com",cookiePolicy:"single_host_origin",responseType:"code",accessType:"offline",scope:"openid email profile https://www.googleapis.com/auth/calendar",onSuccess:async e=>{y(!0);const{code:a}=e,s=await u({method:"POST",url:"/day-off/register-dayoff-google-account",data:{code:a,type:"company"}});s&&s.data&&(o((e=>e+1)),C(s.data.email)),y(!1)},onFailure:e=>{"string"===typeof e&&t.A.warning(e),"object"===typeof e&&console.info(e),console.error(e)}}),O=(0,l.useCallback)((async()=>await f({method:"POST",url:"/day-off/update-dayoff-google-account",data:{calendarId:j}})),[j]),R=g||!A||m||h,w=(0,k.jsx)("div",{className:"dayoff-google-modal-title",children:`Google \uce98\ub9b0\ub354 \uc5f0\ub3d9 (${n}/2)`}),G=2===n&&!j,q=(0,k.jsx)(p.default,{loading:R,disabled:R||G,className:"check-google-modal-ok-button",onClick:async()=>
1{if(1===n)S();else if(2===n&&j){await O();const e={"\uace0\uac1d\uc0ac\uba85":r.name,"\uc5f0\ub3d9\uc77c\uc2dc":c()(),"\uc5f0\ub3d9\ub41c\uad6c\uae00\uacc4\uc815":v,"\uce98\ub9b0\ub354Id":j};await(0,D.A)("\uad6c\uae00 \uce98\ub9b0\ub354 \uc5f0\ub3d9","#99_\uc54c\ub9bc_\uae30\ud0c0",e),a()}},children:!R&&(0,k.jsxs)("div",{className:"check-google-modal-ok-button-text",children:[1===n&&(0,k.jsx)("img",{src:_.A,alt:"\uad6c\uae00 \ub85c\uadf8\uc778 \ubc84\ud2bc"}),1===n?"\uad6c\uae00 \uacc4\uc815\uc73c\ub85c \ub85c\uadf8\uc778":"\uc644\ub8cc"]})});return(0,k.jsx)(d.A,{title:w,visible:s,maskClosable:!1,footer:q,onCancel:a,className:"DayOffGoogleRegisterModal",children:N()})};s(64241);const{Option:q}=x.default,F=e=>{const{dayOffTypes:a="",setCalculationRadio:s=()=>{},isEmployeeDayOffRecord:t=!1,setEmployeeRecordRadio:n=()=>{},addApprover:o=()=>{},approverList:i=[],removeApprover:v=()=>{},loading:b=!0,onClickSubmit:D=()=>{},onClickCancel:E=()=>{},handleRequestedDayOffDateType:_=()=>{},requestedDayOffDateTypeList:R=[],isFetchedDayOffDateType:w=!1,openGoogleRegisterModal:T=()=>{},closeGoogleRegisterModal:I=()=>{},googleRegisterModalVisible:F=!1,googleRegisterCurrentStep:Y=1,setGoogleRegisterCurrentStep:L=()=>{},googleCalendarList:P=[],googleAccountInfo:M={},setSelectedGoogleCalendar:U=()=>{},deleteDayOffGoogleAccount:z=()=>{},defaultValOfGoogleCalendar:V="",isExceedAssginedDayOff:B=!1,isApprovedDayOffCancelRequest:K=!1,setIsExceedAssginedDayOffRadio:Q=()=>{},approvedDayOffCancelRequestOnChange:$=()=>{},isBlockSelfApprovalDayOff:W=!1,blockSelfApprovalDayOffOnChange:J=()=>{},isBlockSamedayDayOffRequest:H=!1,blockSamedayDayOffRequestOnChange:X=()=>{},setCustomFiscalDateOnChange:Z=()=>{},customFiscalDate:ee,isWorkerSelfOnlyCalendar:ae=!1,workerSelfOnlyCalendarOnChange:se=()=>{},dayOffRequestTypeList:te=[],hiddenDayOffTypeIds:le=[],handleHiddenDayOffType:ne=()=>{},approvalLineSummary:ce=null}=e,oe=w&&R.filter((e=>e.isRequested)).map((e=>e.value)),ie=(0,k.jsxs)("div",{children:[(0,k.jsx)("h3",{children:"\uc785\uc0ac\uc5f0\ub3c4"}),(0,k.jsx)("span",{children:"\uc9c1\uc6d0\uc774 \uc785\uc0ac\ud55c \ub0a0\uc9dc\ub97c \uae30\uc900\uc73c\ub85c \uc5f0\ucc28\ub97c \uad00\ub9ac\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. "}),(0,k.jsx)("h3",{children:"\ud68c\uacc4\uc5f0\ub3c4"}),(0,k.jsx)("span",{children:"\uc804\uccb4 \uc9c1\uc6d0\uc758 \uc5f0\ucc28\ub97c \ud3b8\ub9ac\ud558\uac8c \uad00\ub9ac\ud558\uae30 \uc704\ud574, \ud68c\uacc4\uc5f0\ub3c4(FY) \uae30\uc900\uc73c\ub85c \uc5f0\ucc28\ub97c \uad00\ub9ac\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4."}),(0,k.jsx)("h3",{children:"\ud68c\uacc4\uc5f0\ub3c4 (\uc0ac\uc804\ubd80\uc5ec)"}),(0,k.jsx)("span",{children:"\ud68c\uacc4\uc5f0\ub3c4 \uae30\uc900\uacfc \uc6d0\ub9ac\ub294 \ub3d9\uc77c\ud569\ub2c8\ub2e4. \uc785\uc0ac\ud55c \uc5f0\ub3c4\uc758 \ub9d0\uc77c(12\uc6d4 31\uc77c)\uae4c\uc9c0\uc758 \uc6d4\ucc28\uac00 \uc0ac\uc804 \ubd80\uc5ec\ub418\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4."}),(0,k.jsx)("div",{className:"guide-link-section",children:(0,k.jsx)("a",{href:"https://jober.notion.site/f63b592d40d7436ca5cf28e464f38443",className:"guide-link",rel:"noopener noreferrer",target:"_blank",children:"\uc5f0\ucc28 \ubd80\uc5ec \uac00\uc774\ub4dc \ubcf4\uae30"})})]}),re=(0,k.jsx)("div",{children:"\uc9c1\uc6d0\uc774 \uc2b9\uc778\ub41c \uc5f0\ucc28\uc5d0 \ub300\ud574 \ucde8\uc18c\uc694\uccad\uc744 \ud560 \uc218 \uc788\uc73c\uba70, \uad00\ub9ac\uc790\ub294 \ucde8\uc18c\ub300\uae30 \ud56d\ubaa9\uc744 \ud1b5\ud574 \uc2b9\uc778, \uac70\ubd80\ub97c \uc9c4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."}),de=(0,l.useCallback)((e=>{Q(e)}),[]);return(0,k.jsx)("div",{className:"DayOffSetup",children:(0,k.jsxs)(r.default,{spinning:b,tip:"Loading...",children:[(0,k.jsx)(N.A,{title:"\uc124\uc815"}),(0,k.jsx)(j.A,{}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsxs)("span",{className:"title",children:["\uc5f0\ucc28 \ubc29\uc2dd",(0,k.jsx)(g.default,{className:"title-tooltip",trigger:"click",placement:"right",title:ie,children:(0,k.jsx)(y.default,{type:"question-circle"})})]}),(0,k.jsx)("span",{className:"content",children:(0,k.jsxs)(h.default.Group,{value:a,onChange:s,size:"large",className:"radio-group",children:[(0,k.jsx)(h.default.Button,{value:"joinYear",className:"radio-Btn",children:"\uc785\uc0ac\uc5f0\ub3c4"}),(0,k.jsx)(h.default.Button,{value:"fiscalYear",className:"radio-Btn",children:"\ud68c\uacc4\uc5f0\ub3c4"}),(0,k.jsx)(h.default.Button,{value:"fiscalBeforehandYear",className:"radio-Btn",children:"\ud68c\uacc4\uc5f0\ub3c4(\uc0ac\uc804\ubd80\uc5ec)"})]})})]}),"fiscalYear"===a&&(0,k.jsxs)("div",{className:"section",children:[(0,k.jsx)("span",{className:"title",children:"\ud68c\uacc4\uc5f0\ub3c4 \uc124\uc815"}),(0,k.jsx)("span",{className:"content",children:(0,k.jsx)(f.A,{format:"YYYY-MM-DD",value:c()(ee),onChange:Z})})]}),(0,k.jsx)(j.A,{}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsx)("span",{className:"title",children:"\uc9c1\uc6d0\uc758 \uc5f0\ucc28 \uae30\ub85d"}),(0,k.jsx)("span",{className:"content",children:(0,k.jsxs)(h.default.Group,{size:"large",className:"radio-group",value:t,onChange:n,children:[(0,k.jsx)(h.default.Button,{className:"radio-Btn",value:1,children:"\ubcf4\uc774\uae30"}),(0,k.jsx)(h.default.Button,{className:"radio-Btn",value:0,children:"\uc228\uae30\uae30"})]})})]}),(0,k.jsx)(j.A,{}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsx)("span",{className:"title",children:"\uc5f0\ucc28 \uacb0\uc7ac\uc790"}),(0,k.jsxs)("span",{className:"content",children:[(0,k.jsx)(x.default,{className:"approver-select",showSearch:!0,optionFilterProp:"label",onCh
1ange:o,size:"large",value:"\uacb0\uc7ac\uc790 \ucd94\uac00",children:i.filter((e=>!e.isRootManager||e.isDeleted)).map((e=>(0,k.jsx)(x.default.Option,{value:e.companyUserId,label:(0,A.Mn)(e.name),children:(0,A.Mn)(e.name)},e.companyUserId)))}),(0,k.jsx)("div",{children:(0,k.jsx)(O,{approverList:i,removeApprover:v})})]})]}),ce?(0,k.jsxs)("div",{className:"section approval-line-section",children:[(0,k.jsx)("span",{className:"title",children:"\ubd80\uc11c\ubcc4 \uacb0\uc7ac\uc120"}),(0,k.jsxs)("span",{className:"content",children:[(0,k.jsxs)("div",{className:"line-entry",children:[ce.isDepartmentMode?(0,k.jsx)(m.A,{status:"success",text:`\uc0ac\uc6a9 \uc911 \xb7 \uacb0\uc7ac\uc120 ${ce.lineCount}\uac1c`}):(0,k.jsx)(m.A,{status:"default",text:"\uc0ac\uc6a9 \uc548 \ud568"}),(0,k.jsxs)(p.default,{type:"link",size:"small",className:"line-entry-link",onClick:()=>(0,S.Ay)("/day-off-set-up/approval-lines"),children:["\uc124\uc815",(0,k.jsx)(y.default,{type:"right"})]})]}),(0,k.jsx)("div",{className:"help12",children:"\ubd80\uc11c\ub9c8\ub2e4 \uacb0\uc7ac\uc790\uac00 \ub2e4\ub97c \ub54c\ub9cc \uc124\uc815\ud574\uc694. \ub300\ubd80\ubd84\uc758 \ud68c\uc0ac\ub294 \uadf8\ub300\ub85c \ub450\uba74 \ub3fc\uc694."})]})]}):null,(0,k.jsx)(j.A,{}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsx)("span",{className:"title",children:"\uc5f0\ucc28 \ucd08\uacfc \uc81c\ud55c"}),(0,k.jsx)("span",{className:"content",children:(0,k.jsx)(u.A,{checked:B,onChange:de})})]}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsxs)("span",{className:"title",children:["\uc5f0\ucc28 \ucde8\uc18c \uc694\uccad",(0,k.jsx)(g.default,{className:"title-tooltip",trigger:"click",placement:"right",title:re,children:(0,k.jsx)(y.default,{type:"question-circle"})})]}),(0,k.jsx)("span",{className:"content",children:(0,k.jsx)(u.A,{checked:K,onChange:$})})]}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsxs)("span",{className:"title",children:["\ubcf8\uc778 \uc2e0\uccad \uac74 \uc140\ud504 \uc2b9\uc778 \uc81c\ud55c",(0,k.jsx)(g.default,{className:"title-tooltip",trigger:"click",placement:"right",title:"\uacb0\uc7ac \uad8c\ud55c\uc774 \uc788\uc5b4\ub3c4 \ubcf8\uc778\uc774 \uc2e0\uccad\ud55c \uc5f0\ucc28\ub294 \ubcf8\uc778\uc774 \uc2b9\uc778\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.",children:(0,k.jsx)(y.default,{type:"question-circle"})})]}),(0,k.jsx)("span",{className:"content",children:(0,k.jsx)(u.A,{checked:W,onChange:J})})]}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsxs)("span",{className:"title",children:["\uc5f0\ucc28 \ub2f9\uc77c \uc2e0\uccad \uc81c\ud55c",(0,k.jsx)(g.default,{className:"title-tooltip",trigger:"click",placement:"right",title:"\uc5f0\ucc28 \uc2dc\uc791\uc77c \ucd5c\uc18c 1\uc77c \uc804\uae4c\uc9c0\ub9cc \uc2e0\uccad\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4 (\ub2f9\uc77c \uc2e0\uccad \ubd88\uac00).",children:(0,k.jsx)(y.default,{type:"question-circle"})})]}),(0,k.jsx)("span",{className:"content",children:(0,k.jsx)(u.A,{checked:H,onChange:X})})]}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsxs)("span",{className:"title",children:["\uc804\uccb4 \uc77c\uc815 \ubcf8\uc778\ub9cc \ubcf4\uae30",(0,k.jsx)(g.default,{className:"title-tooltip",trigger:"click",placement:"right",title:"\ucf1c\uba74 \uadfc\ub85c\uc790(\uacb0\uc7ac\uc790 \uc81c\uc678)\ub294 [\uc804\uccb4 \uc77c\uc815]\uc5d0\uc11c \ub2e4\ub978 \uc9c1\uc6d0\uc758 \ud734\uac00 \uc77c\uc815\uc744 \ubcfc \uc218 \uc5c6\uace0 \ubcf8\uc778 \uc77c\uc815\ub9cc \ubcf4\uac8c \ub429\ub2c8\ub2e4.",children:(0,k.jsx)(y.default,{type:"question-circle"})})]}),(0,k.jsx)("span",{className:"content",children:(0,k.jsx)(u.A,{checked:ae,onChange:se})})]}),(0,k.jsx)(j.A,{}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsx)("span",{className:"title",children:"\uc5f0\ucc28 \uc720\ud615"}),(0,k.jsx)("span",{className:"content",children:(0,k.jsx)(x.default,{mode:"multiple",onChange:_,value:oe,children:R.map((e=>(0,k.jsx)(q,{children:e.value},e.value)))})})]}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsxs)("span",{className:"title",children:["\uc228\uae38 \ud734\uac00\xb7\uc7ac\ud0dd \uc720\ud615",(0,k.jsx)(g.default,{className:"title-tooltip",trigger:"click",placement:"right",title:"\uc120\ud0dd\ud55c \uc720\ud615\uc740 \ud734\uac00\xb7\uc7ac\ud0dd \uc2e0\uccad \ud654\uba74\uc5d0\uc11c \ub178\ucd9c\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. (\uc774\ubbf8 \uc2e0\uccad\ub41c \ub0b4\uc5ed\uc740 \uadf8\ub300\ub85c \uc720\uc9c0\ub429\ub2c8\ub2e4.)",children:(0,k.jsx)(y.default,{type:"question-circle"})})]}),(0,k.jsx)("span",{className:"content",children:(0,k.jsx)(x.default,{mode:"multiple",placeholder:"\uc228\uae38 \uc720\ud615 \uc120\ud0dd",onChange:ne,value:le,children:te.map((e=>(0,k.jsx)(q,{value:e.id,children:e.type},e.id)))})})]}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsx)("span",{className:"title",children:"\uc5f0\ucc28 \uae30\ub85d \uc785\ub825"}),(0,k.jsx)("span",{className:"content",children:(0,k.jsx)(g.default,{title:"<\uc2dc\uc2a4\ud15c \uc0ac\uc6a9\ubb38\uc758> \uc5d0 \ubb38\uc758\ub97c \ub0a8\uaca8\uc8fc\uc2dc\uba74 \uc785\ub825\uc744 \ub3c4\uc640\ub4dc\ub9b4\uac8c\uc694.",children:(0,k.jsx)(p.default,{size:"large",onClick:()=>(0,S.Ay)("/consult"),children:"\uc5f0\ucc28 \ubb38\uc758\ud558\uae30"})})})]}),(0,k.jsx)(j.A,{}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsx)("span",{className:"title",children:"\uc9c1\uc6d0 \ucd08\ub300"}),(0,k.jsxs)("span",{className:"content",children:[(0,k.jsx)(g.default,{title:(0,k.jsxs)("div",{children:["<\uc9c1\uc6d0 \uc815\ubcf4> \uba54\ub274\uc5d0\uc11c \uc9c1\uc6d0\ub4e4\uc758 \uc785\uc0ac\uc77c\uc744 \uc785\ub825\ud558\uc2e0 \ud6c4, ",(0,k.jsx)("br",{}),"  <\uc815\ubcf4 \uc785\ub825 \uc694\uccad>\uc744 \ud558\uba74 \uc9c1\uc6d0\uc744 \ucd08\ub300\ud560 \uc218 \uc788\uc5b4\uc694."]}
1),children:(0,k.jsx)(p.default,{size:"large",onClick:()=>(0,S.Ay)("/employee"),children:"\uc9c1\uc6d0 \ub4f1\ub85d\ud558\uae30"})}),(0,k.jsx)("div",{className:"guide-link-section",children:(0,k.jsx)("a",{href:"https://jober.notion.site/f63b592d40d7436ca5cf28e464f38443",className:"guide-link",rel:"noopener noreferrer",target:"_blank",children:"\uc5f0\ucc28 \uc0ac\uc6a9 \ubc29\ubc95 \uacf5\uc9c0 \ud3fc"})})]})]}),(0,k.jsx)(j.A,{}),(0,k.jsxs)("div",{className:"section",children:[(0,k.jsx)("span",{className:"title",children:"Google \uce98\ub9b0\ub354 \uc5f0\ub3d9"}),(0,k.jsxs)("div",{className:"content google-calendar-content",children:[(0,k.jsx)(p.default,{disabled:!C().isEmpty(M),size:"large",onClick:T,children:"Google \uce98\ub9b0\ub354 \uc5f0\ub3d9"}),M&&M.registered_google_email&&(0,k.jsxs)("span",{className:"google-calendar-info",children:[(0,k.jsx)("div",{className:"google-calendar-email",children:`${M.registered_google_email}`}),(0,k.jsx)("div",{children:(0,k.jsx)(x.default,{className:"select-google-calendar",placeholder:"\uce98\ub9b0\ub354 \uc120\ud0dd",onChange:e=>{U(e)},defaultValue:V,children:P.length>0&&P.map((e=>(0,k.jsx)(q,{value:e.id,children:e.summary},e.id)))})}),(0,k.jsx)("div",{className:"delete-google-account-text",onClick:()=>d.A.confirm({title:"Google \uce98\ub9b0\ub354 \uc5f0\ub3d9 \ud574\uc81c",content:(0,k.jsxs)("div",{children:["\uce98\ub9b0\ub354 \uc5f0\ub3d9\uc744 \ud574\uc81c\ud574\ub3c4 \uc5f0\ub3d9 \uc911\uc778 \uae30\uc874 \uce98\ub9b0\ub354\ub294 \uc0ad\uc81c\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.",(0,k.jsx)("br",{}),"(\ud574\ub2f9 \uce98\ub9b0\ub354\uc5d0 \ub4f1\ub85d\ub41c \uc5f0\ucc28 \uc0ac\uc6a9 \uc774\ub825\ub3c4 \uadf8\ub300\ub85c \uc720\uc9c0\ub429\ub2c8\ub2e4.)"]}),onOk(){z()}}),children:"\ud574\uc81c"})]})]})]}),(0,k.jsx)("div",{className:"button-section",children:(0,k.jsxs)("span",{children:[(0,k.jsx)(p.default,{size:"large",className:"submit-btn",onClick:D,type:"primary",children:"\uc801\uc6a9\ud558\uae30"}),(0,k.jsx)(p.default,{size:"large",className:"cancel-btn",onClick:E,children:"\ucde8\uc18c"})]})}),(0,k.jsx)(G,{closeGoogleRegisterModal:I,googleRegisterModalVisible:F,googleRegisterCurrentStep:Y,setGoogleRegisterCurrentStep:L})]})})},Y=Object.freeze([{value:"\uc885\uc77c",isRequested:!0},{value:"\uc624\uc804 \ubc18\ucc28",isRequested:!0},{value:"\uc624\ud6c4 \ubc18\ucc28",isRequested:!0},{value:"\uc624\uc804 \ubc18\ubc18\ucc28",isRequested:!0},{value:"\uc624\ud6c4 \ubc18\ubc18\ucc28",isRequested:!0}]),L=`${c()().year()}-01-01`,P="CUSTOM_DAYOFF_FISCAL_DATE",M=()=>{const[e,a]=(0,l.useState)("fiscalYear"),[s,n]=(0,l.useState)("fiscalYear"),[c,r]=(0,l.useState)(!1),[d,u]=(0,l.useState)(!1),[p,m]=(0,l.useState)(!1),[f,h]=(0,l.useState)(L),[g,y]=(0,l.useState)(!1),[j,x]=(0,l.useState)([]),[v,C]=(0,l.useState)([]),[N,S]=(0,l.useState)([]),[A,O]=(0,l.useState)([]),[b,D]=(0,l.useState)(Y),[E,_]=(0,l.useState)(!1),[R,w]=(0,l.useState)(!1),[T,I]=(0,l.useState)(1),[G,q]=(0,l.useState)(null),[M,U]=(0,l.useState)([]),[z,V]=(0,l.useState)(null),[B,K]=(0,l.useState)(null),[Q,$]=(0,l.useState)(!1),[W,J]=(0,l.useState)(L),[H,X]=(0,l.useState)(!1),[Z,ee]=(0,l.useState)(!1),[ae,se]=(0,l.useState)(!1),[te,le]=(0,l.useState)(!1),[ne,ce]=(0,l.useState)(!1),[oe,ie]=(0,l.useState)(!1),[re,de]=(0,l.useState)(!1),[ue,pe]=(0,l.useState)([]),[me,fe]=(0,l.useState)([]),[he,ge]=(0,l.useState)([]),[ye,je]=(0,l.useState)(null),{request:xe,loading:ve}=(0,i.A)(),{request:Ce,loading:Ne}=(0,i.A)(),{request:Se}=(0,i.A)(),Ae=(0,l.useCallback)((async()=>{const e=await Se({method:"GET",url:"/day-off/approval-lines",params:{withDiagnosis:!1}}),a=e&&e.data;if(!a||"object"!==typeof a)return void je(null);const s=Array.isArray(a.lines)?a.lines:[];je({isDepartmentMode:"department"===a.mode,lineCount:s.length})}),[]),ke=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/v2/company",params:{constantName:"DAY_OFF_REQUEST_DATE_TYPE"}});if(!e||!e.data)return void _(!0);const a=[];Object.entries(e.data).forEach((e=>{let[s,t]=e;return a.push({value:s,isRequested:t})})),D(a),_(!0)}),[]),Oe=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/day-off/get-calculation-type"});e&&e.data?(a(e.data.calculationType),n(e.data.calculationType)):(0,o.qz)({subject:"\uc5f0\ucc28\ubd80\uc5ec \ubc29\uc2dd \ubd88\ub7ec\uc624\uae30",error:"no data"})}),[]),be=(0,l.useCallback)((async()=>
1{if(e===s)return;await xe({method:"POST",url:"/day-off/set-calculation-type",data:{calculationType:e}})||(0,o.qz)({subject:"\uc5f0\ucc28\ubd80\uc5ec \ubc29\uc2dd \uc800\uc7a5\ud558\uae30",error:"no data"})}),[e,s]),De=(0,l.useCallback)((async e=>{let{target:s}=e;a(s.value)}),[]),Ee=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/v2/company",params:{constantName:"IS_DAY_OFF_EMPLOYEE_RECORD"}});if(!e)return void(0,o.qz)({subject:"\uc9c1\uc6d0 \uc5f0\ucc28\uae30\ub85d \uc800\uc7a5\ud558\uae30",error:"no data"});const{IS_DAY_OFF_EMPLOYEE_RECORD:a=0}=e.value||{};r(parseInt(a,10)),u(parseInt(a,10))}),[]),_e=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/v2/company",params:{constantName:"IS_EXCEED_ASSIGNED_DAYOFF"}});e||(0,o.qz)({subject:"\uc9c1\uc6d0 \uc5f0\ucc28\uae30\ub85d \uc800\uc7a5\ud558\uae30",error:"no data"}),e.data&&(m(!0),$(!0))}),[]),Re=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/v2/company",params:{constantName:P}});e&&e.data&&(h(e.data),J(e.data))}),[]),we=(0,l.useCallback)((async()=>{if(c===d)return;await xe({method:"PUT",url:"/v2/company",data:{constantName:"IS_DAY_OFF_EMPLOYEE_RECORD",constantValue:c}})||(0,o.qz)({subject:"\uc9c1\uc6d0 \uc5f0\ucc28\uae30\ub85d \uc800\uc7a5\ud558\uae30",error:"no data"})}),[c,d]),Te=(0,l.useCallback)((async()=>{if(Q===p)return;await xe({method:"PUT",url:"/v2/company",data:{constantName:"IS_EXCEED_ASSIGNED_DAYOFF",constantValue:Q?1:0}})||(0,o.qz)({subject:"\uc9c1\uc6d0 \uc5f0\ucc28 \ucd08\uacfc \uc81c\ud55c \uc800\uc7a5\ud558\uae30",error:"no data"})}),[Q,p]),Ie=(0,l.useCallback)((async()=>{if(f===W)return;await xe({method:"PUT",url:"/v2/company",data:{constantName:P,constantValue:W}})||(0,o.qz)({subject:"\ud14c\uc2a4\ud2b8",error:"no data"})}),[W,f]),Ge=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/v2/company",params:{constantName:"IS_ACTIVATE_APPROVED_DAYOFF_CANCEL_REQUEST"}});e&&e.data&&e.data&&(y(!0),X(!0))}),[]),qe=(0,l.useCallback)((async()=>{if(H===g)return;await xe({method:"PUT",url:"/v2/company",data:{constantName:"IS_ACTIVATE_APPROVED_DAYOFF_CANCEL_REQUEST",constantValue:H?1:0}})||(0,o.qz)({subject:"\uc5f0\ucc28 \ucde8\uc18c \uc694\uccad \ud65c\uc131\ud654",error:"no data"})}),[H,g]),Fe=(0,l.useCallback)((e=>{X(e)}),[]),Ye=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/v2/company",params:{constantName:"IS_BLOCK_SELF_APPROVAL_DAYOFF"}});if(!e)return;const a=1===parseInt(e.data,10);ee(a),se(a)}),[]),Le=(0,l.useCallback)((async()=>{if(Z===ae)return!0;return await xe({method:"PUT",url:"/v2/company",data:{constantName:"IS_BLOCK_SELF_APPROVAL_DAYOFF",constantValue:Z?1:0}})?(se(Z),!0):((0,o.qz)({subject:"\ubcf8\uc778 \uc2e0\uccad \uac74 \uc140\ud504 \uc2b9\uc778 \uc81c\ud55c \uc800\uc7a5\ud558\uae30",error:"no data"}),!1)}),[Z,ae]),Pe=(0,l.useCallback)((e=>{ee(e)}),[]),Me=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/v2/company",params:{constantName:"IS_BLOCK_SAMEDAY_DAYOFF_REQUEST"}});if(!e)return;const a=1===parseInt(e.data,10);le(a),ce(a)}),[]),Ue=(0,l.useCallback)((async()=>{if(te===ne)return!0;return await xe({method:"PUT",url:"/v2/company",data:{constantName:"IS_BLOCK_SAMEDAY_DAYOFF_REQUEST",constantValue:te?1:0}})?(ce(te),!0):((0,o.qz)({subject:"\uc5f0\ucc28 \ub2f9\uc77c \uc2e0\uccad \uc81c\ud55c \uc800\uc7a5\ud558\uae30",error:"no data"}),!1)}),[te,ne]),ze=(0,l.useCallback)((e=>{le(e)}),[]),Ve=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/v2/company",params:{constantName:"IS_DAY_OFF_CALENDAR_WORKER_SELF_ONLY"}});if(!e)return;const a=1===parseInt(e.data,10);ie(a),de(a)}),[]),Be=(0,l.useCallback)((async()=>{if(oe===re)return;await xe({method:"PUT",url:"/v2/company",data:{constantName:"IS_DAY_OFF_CALENDAR_WORKER_SELF_ONLY",constantValue:oe?1:0}})||(0,o.qz)({subject:"\uc804\uccb4 \uc77c\uc815 \ubcf8\uc778\ub9cc \ubcf4\uae30 \uc124\uc815 \uc800\uc7a5\ud558\uae30",error:"no data"})}),[oe,re]),Ke=(0,l.useCallback)((e=>{ie(e)}),[]),Qe=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/day-off/types"});e&&e.data&&pe(e.data)}),[]),$e=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/v2/company",params:{constantName:"OVERRIDED_DAY_OFF_TYPE_LIST"}});if(!e)return;const a=(Array.isArray(e.data)?e.data:[]).filter((e=>e&&0===e.value)).map((e=>e.key));fe(a),ge(a)}),[]),We=(0,l.useCallback)((async()=>
1{if(JSON.stringify([...me].sort())===JSON.stringify([...he].sort()))return;const e=me.map((e=>({key:e,value:0})));await xe({method:"PUT",url:"/v2/company",data:{constantName:"OVERRIDED_DAY_OFF_TYPE_LIST",constantValue:e}})||(0,o.qz)({subject:"\ud734\uac00\xb7\uc7ac\ud0dd \uc720\ud615 \ud45c\uc2dc \uc124\uc815 \uc800\uc7a5\ud558\uae30",error:"no data"})}),[me,he]),Je=(0,l.useCallback)((e=>{fe(e)}),[]),He=(0,l.useCallback)((async e=>{let{target:a}=e;r(a.value)}),[]),Xe=(0,l.useCallback)((async e=>{$(e)}),[]),Ze=(0,l.useCallback)(((e,a)=>{J(a)}),[]),ea=(0,l.useCallback)((async e=>await xe({method:"POST",url:"/day-off/update-approver",data:{approverId:e.companyUserId,isDeleted:!0}})),[]),aa=(0,l.useCallback)((async e=>await xe({method:"POST",url:"/day-off/add-approver",data:{approverId:e}})),[]),sa=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/day-off/approvers"});x(e.data),C(e.data)}),[]),ta=(0,l.useCallback)((async()=>{const e=await Ce({method:"GET",url:"/day-off/dayoff-google-calendarlist"});e&&e.data&&U(e.data)}),[]),la=(0,l.useCallback)((async()=>{const e=await xe({method:"GET",url:"/day-off/dayoff-google-acount"});e&&e.data&&(K(e.data.calendar_id),q(e.data))}),[]),na=(0,l.useCallback)((async()=>await xe({method:"POST",url:"/day-off/update-dayoff-google-account",data:{calendarId:z}})),[z]),ca=(0,l.useCallback)((()=>{q(null),U([]),I(1),V(null)}),[]),oa=(0,l.useCallback)((async()=>{const e=await xe({method:"DELETE",url:"/day-off/dayoff-google-acount",params:{googleAccountID:G.id}});e&&e.data&&(ca(),await la())}),[G]);(0,l.useEffect)((()=>{(async()=>{Oe(),sa(),Ee(),_e(),Re(),Ge(),Ye(),Me(),ke(),Ve(),Qe(),$e(),Ae(),await ta(),await la()})()}),[]);const ia=(0,l.useCallback)((async e=>{const a=j.find((a=>a.companyUserId===e));if(!a)return void t.A.warn("\uc5f0\ucc28 \uacb0\uc7ac\uc790\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.");a.isApprover=!0,a.isDeleted=!1;const s=j.reduce(((s,t)=>(t.companyUserId===e?s.push({...t,...a}):s.push(t),s)),[]);S(N.filter((a=>a!==e)).concat([e])),O(A.filter((a=>a.companyUserId!==e))),x(s)}),[j,N,A,v]),ra=(0,l.useCallback)((async e=>{const a=j.find((a=>a.companyUserId===e.companyUserId));if(!a)return void t.A.warn("\uc5f0\ucc28 \uacb0\uc7ac\uc790\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.");if(j.filter((e=>e.isApprover&&!e.isDeleted)).length<=1)return void t.A.warn("\uc5f0\ucc28 \uacb0\uc7ac\uc790\ub294 \ucd5c\uc18c 1\uba85 \uc774\uc0c1 \uc9c0\uc815\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4.");a.isApprover=!1,a.isDeleted=!0;const s=j.reduce(((s,t)=>(t.companyUserId===e.companyUserId?s.push({...t,...a}):s.push(t),s)),[]);O(A.filter((a=>a.companyUserId!==e.companyUserId)).concat([e])),S(N.filter((a=>a!==e.companyUserId))),x(s)}),[j,N,A]),da=(0,l.useCallback)((e=>{D((a=>{const s=[...a];return e&&s.map((a=>{const s=a;return s.isRequested=e.includes(a.value),s})),s}))}),[]),ua=(0,l.useCallback)((async()=>{const e=b.reduce(((e,a)=>({...e,[a.value]:a.isRequested})),{});await xe({method:"PUT",url:"/v2/company",data:{constantName:"DAY_OFF_REQUEST_DATE_TYPE",constantValue:e}})}),[b]),pa=(0,l.useCallback)((async()=>{ta(),la(),w(!1)}),[]),ma=(0,l.useCallback)((()=>{w(!0)}),[]),fa=(0,l.useCallback)((async()=>{await be(),await we(),await Te(),await Ie(),await qe();const e=await Le(),a=await Ue();await Be(),await We();const s=[...await Promise.all(N.map((e=>aa(e)))),...await Promise.all(A.map((e=>ea(e))))].some((e=>!e));await ua();const l=!e||!a;s?(0,o.qz)({subject:"\uc5f0\ucc28 \uacb0\uc7ac\uc790 \uc800\uc7a5\ud558\uae30",error:"no data"}):l||t.A.success("\uc800\uc7a5 \ub418\uc5c8\uc2b5\ub2c8\ub2e4."),await sa(),await Ee(),await Oe(),await ke(),await Ve(),await $e(),await na(),S([]),O([])}),[e,j,Q,H,W,N,A,c,z,oe,re,me,he,Z,ae,te,ne]),ha=(0,l.useCallback)((async()=>{await sa(),a(s),r(d),ie(re),fe(he),ee(ae),le(ne),S([]),O([])}),[s,d,re,he,ae,ne]),ga=ve||Ne;return(0,k.jsx)(F,{loading:ga,dayOffTypes:e,setCalculationRadio:De,isEmployeeDayOffRecord:c,setEmployeeRecordRadio:He,addApprover:ia,approverList:j,removeApprover:ra,onClickSubmit:fa,onClickCancel:ha,handleRequestedDayOffDateType:da,requestedDayOffDateTypeList:b,isFetchedDayOffDateType:E,openGoogleRegisterModal:ma,closeGoogleRegisterModal:pa,googleRegisterModalVisible:R,googleRegisterCurrentStep:T,setGoogleRegisterCurrentStep:I,googleAccountInfo:G,googleCalendarList:M,setSelectedGoogleCalendar:V,deleteDayOffGoogleAccount:oa,defaultValOfGoogleCalendar:B,isExceedAssginedDayOff:Q,setIsExceedAssginedDayOffRadio:Xe,setCustomFiscalDateOnChange:Ze,customFiscalDate:W,isApprovedDayOffCancelRequest:H,approvedDayOffCancelRequestOnChange:Fe,isBlockSelfApprovalDayOff:Z,blockSelfApprovalDayOffOnChange:Pe,isBlockSamedayDayOffRequest:te,blockSamedayDayOffRequestOnChange:ze,isWorkerSelfOnlyCalendar:oe,workerSelfOnlyCalendarOnChange:Ke,dayOffRequestTypeList:ue,hiddenDayOffTypeIds:me,handleHiddenDayOffType:Je,approvalLineSummary:ye})}},64241:()=>{}}]);

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.