1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2860],{66099:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(26042),i=n(69396),o=n(99534),a=n(85893),s=n(90948),l=n(87357),c=n(15861),d=n(97349),u=(0,s.ZP)(l.Z)((function(e){return{height:"100%",display:"flex",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center",padding:e.theme.spacing(8,2)}}));function h(e){var t=e.title,n=e.description,s=e.img,l=(0,o.Z)(e,["title","description","img"]);return(0,a.jsxs)(u,(0,i.Z)((0,r.Z)({},l),{children:[(0,a.jsx)(d.Z,{disabledEffect:!0,visibleByDefault:!0,alt:"empty content",src:s||"/assets/illustrations/illustration_empty_content.svg",sx:{height:150,width:120,mb:3}}),(0,a.jsx)(c.Z,{variant:"h5",gutterBottom:!0,children:t}),n&&(0,a.jsx)(c.Z,{variant:"body2",sx:{color:"text.secondary"},children:n})]}))}},12030:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(85893),i=n(45962),o=n(90948),a=n(41796),s=n(87357),l=n(74608),c=(0,o.ZP)("div")((function(e){return{right:0,bottom:0,zIndex:99999,width:"100%",height:"100%",position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.theme.palette.background.default}}));function d(){return(0,r.jsxs)(c,{children:[(0,r.jsx)(i.m.div,{animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,ease:"easeInOut",repeatDelay:1,repeat:1/0},children:(0,r.jsx)(l.Z,{disabledLink:!0,sx:{width:64,height:64,display:"flex",justifyContent:"center",alignItems:"center"}})}),(0,r.jsx)(s.Z,{component:i.m.div,animate:{scale:[1.2,1,1,1.2,1.2],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:100,height:100,borderRadius:"25%",position:"absolute",border:function(e){return"solid 3px ".concat((0,a.Fq)(e.palette.primary.dark,.24))}}}),(0,r.jsx)(s.Z,{component:i.m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:120,height:120,borderRadius:"25%",position:"absolute",border:function(e){return"solid 8px ".concat((0,a.Fq)(e.palette.primary.dark,.24))}}})]})}},36202:function(e,t,n){var r=n(85893),i=n(41664),o=n.n(i),a=n(67294),s=n(87357),l=n(2734),c=(0,a.forwardRef)((function(e,t){var n=e.disabledLink,i=void 0!==n&&n,a=(e.sx,(0,l.Z)()),c=(a.palette.primary.light,a.palette.primary.main,a.palette.primary.dark,(0,r.jsx)(s.Z,{sx:{width:"88px"},children:(0,r.jsx)("img",{src:"/logo/logo_black.svg",width:"126.25px",height:"40px",loading:"lazy"})}));return i?(0,r.jsx)(r.Fragment,{children:c}):(0,r.jsx)(o(),{href:"/",children:c})}));t.Z=c},48514:function(e,t,n){n.d(t,{b:function(){return c}});var r=n(85893),i=n(41664),o=n.n(i),a=n(67294),s=n(87357),l=(0,a.forwardRef)((function(e,t){var n=e.disabledLink,i=void 0!==n&&n,a=(e.sx,(0,r.jsx)(s.Z,{sx:{width:"88px"},children:(0,r.jsx)("img",{alt:"logo",src:"/logo/logo_grad.svg",width:"88px",height:"28px",loading:"lazy"})}));return i?(0,r.jsx)(r.Fragment,{children:a}):(0,r.jsx)(o(),{href:"/",children:a})}));t.Z=l;var c=(0,a.forwardRef)((function(e,t){var n=e.disabledLink,i=void 0!==n&&n,a=(e.sx,(0,r.jsx)(s.Z,{sx:{width:"63px"},children:(0,r.jsx)("img",{alt:"logo",src:"/logo/logo_grad.svg",width:"63px",height:"20px",loading:"lazy"})}));return i?(0,r.jsx)(r.Fragment,{children:a}):(0,r.jsx)(o(),{href:"/",children:a})}))},48731:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(14924),i=n(26042),o=n(69396),a=n(99534),s=n(85893),l=n(90948),c=n(14564),d=n(93223),u=(0,l.ZP)("span")((function(e){var t=e.arrow,n=e.theme,a="solid 1px ".concat(d.h1.grey),s={borderRadius:"0 0 3px 0",top:-6,borderBottom:a,borderRight:a},l={borderRadius:"3px 0 0 0",bottom:-6,borderTop:a,borderLeft:a},c={borderRadius:"0 3px 0 0",left:-6,borderTop:a,borderRight:a},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:a,borderLeft:a};return(0,i.Z)((0,r.Z)({display:"none"},n.breakpoints.up("sm"),{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:"#F4F6FA"}),"top-left"===t&&(0,o.Z)((0,i.Z)({},s),{left:20}),"top-center"===t&&(0,o.Z)((0,i.Z)({},s),{left:0,right:0,margin:"auto"}),"top-right"===t&&(0,o.Z)((0,i.Z)({},s),{right:20}),"bottom-left"===t&&(0,o.Z)((0,i.Z)({},l),{left:20}),"bottom-center"===t&&(0,o.Z)((0,i.Z)({},l),{left:0,right:0,margin:"auto"}),"bottom-right"===t&&(0,o.Z)((0,i.Z)({},l),{right:20}),"left-top"===t&&(0,o.Z)((0,i.Z)({},c),{top:20}),"left-center"===t&&(0,o.Z)((0,i.Z)({},c),{top:0,bottom:0,margin:"auto"}),"left-bottom"===t&&(0,o.Z)((0,i.Z)({},c),{bottom:20}),"right-top"===t&&(0,o.Z)((0,i.Z)({},u),{top:20}),"right-center"===t&&(0,o.Z)((0,i.Z)({},u),{top:0,bottom:0,margin:"auto"}),"right-bottom"===t&&(0,o.Z)((0,i.Z)({},u),{bottom:20}))}));function h(e){var t=e.children,n=e.arrow,r=void 0===n?"top-right":n,l=e.disabledArrow,d=e.sx,h=(0,a.Z)(e,["children","arrow","disabledArrow","sx"]);return(0,s.jsxs)(c.ZP,(0,o.Z)((0,i.Z)({anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:(0,i.Z)({p:1,width:300,overflow:"inherit"},d)}},h),{children:[!l&&(0,s.jsx)(u,{arrow:r}),t]}))}},84855:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(26042),i=n(69396),o=n(99534),a=n(85893),s=n(40077),l=n(90948),c=n(41796),d=n(87357),u=(0,l.ZP)("div")((function(){return{flexGrow:1,height:"100%",overflow:"hidden"}})),h=(0,l.ZP)(s.Z)((function(e){var t=e.theme;return{maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:(0,c.Fq)(t.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-track.simplebar-vertical":{width:10},"& .simplebar-track.simplebar-horizontal .simplebar-scrollbar":{height:6},"& .simplebar-mask":{zIndex:"inherit"}}}));function p(e){var t=e.children,n=e.sx,s=(0,o.Z)(e,["children","sx"]),l="undefined"===typeof navigator?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(l)?(0,a.jsx)(d.Z,(0,i.Z)((0,r.Z)({sx:(0,r.Z)({overflowX:"auto"},n)},s),{children:t})):(0,a.jsx)(u,{children:(0,a.jsx)(h,(0,i.Z)((0,r.Z)({timeout:500,
1clickOnTrack:!1,sx:n},s),{children:t}))})}},29960:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(85893),i=n(26601),o=n(87357),a=n(2734),s=n(15861),l=(0,i.Z)(o.Z)((function(e){e.theme;return{width:"38px",height:"17px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50px",fontWeight:500}}));function c(e){var t=e.isCertified,n=(0,a.Z)();return(0,r.jsx)(r.Fragment,{children:t?(0,r.jsx)(l,{sx:{backgroundColor:n.palette.success.main},children:(0,r.jsx)(s.Z,{textAlign:"center",fontWeight:"500",fontSize:"9px",color:"#333",children:"\uc778\uc99d"})}):(0,r.jsx)(l,{sx:{backgroundColor:"#DB4E3A"},children:(0,r.jsx)(s.Z,{textAlign:"center",fontWeight:"500",fontSize:"9px",color:"#fff",children:"\ube44\uc778\uc99d"})})})}},27303:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(85893),i=n(67294),o=n(11163),a=n(33299),s=n(96259);function l(e){var t=e.children,n=(0,o.useRouter)().push,l=(0,a.useSession)(),c=l.data;l.status;return(0,i.useEffect)((function(){c&&n(s.vB.root)}),[c]),(0,r.jsx)(r.Fragment,{children:t})}},67854:function(e,t,n){var r=n(67294),i=n(44237);t.Z=function(){return(0,r.useContext)(i.y)}},30157:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(67294);function i(e){var t=(0,r.useState)(e||""),n=t[0],i=t[1];return{currentTab:n,onChangeTab:function(e,t){i(t)},setCurrentTab:i}}},32860:function(e,t,n){n.d(t,{Z:function(){return Bn}});var r=n(85893),i=n(67294),o=n(11163),a=n(33299),s=n(71415),l=n(12030);function c(e){var t=e.children,n=(0,a.useSession)(),c=n.data,d=n.status,u=(0,o.useRouter)(),h=u.pathname,p=u.push,x=(0,i.useState)(null),f=x[0],g=x[1];return(0,i.useEffect)((function(){f&&h!==f&&p(f),c&&g(null)}),[c,h,p,f]),"loading"===d?(0,r.jsx)(l.Z,{}):c?(0,r.jsx)(r.Fragment,{children:t}):(h!==f&&g(h),(0,r.jsx)(s.default,{}))}var d=n(14924),u=n(90948),h=n(2734),p=n(96259),x=n(74608),f=n(43795),g=n(15861),m=n(87357),b=n(46574),v=n(26447),Z=n(50122),j=(0,u.ZP)(g.Z)((function(e){var t,n=e.theme;return t={fontFamily:f.TC,fontWeight:500,letterSpacing:"-0.02em",fontSize:"12px",lineHeight:"200%"},(0,d.Z)(t,n.breakpoints.up("sm"),{}),(0,d.Z)(t,n.breakpoints.up("md"),{fontSize:"14px"}),(0,d.Z)(t,n.breakpoints.up("lg"),{fontSize:"14px"}),t}));p.ko.about,p.ko.contact,p.ko.faqs,(0,u.ZP)("div")((function(e){return{position:"relative",backgroundColor:e.theme.palette.background.default}}));function y(){var e=(0,h.Z)();return(0,r.jsx)(m.Z,{id:"mainfooter",sx:{py:5,position:"relative",bgcolor:"#EEF2F8"},children:(0,r.jsxs)(b.Z,{children:[(0,r.jsxs)(v.Z,{direction:"row",width:"100%",justifyContent:"end",alignItems:"center",children:[(0,r.jsx)(j,{sx:{mr:2},children:(0,r.jsx)(Z.Z,{sx:{fontWeight:600},color:"success",href:"/privacy",children:"\uac1c\uc778\uc815\ubcf4\ucc98\ub9ac\ubc29\uce68"})}),(0,r.jsx)(j,{children:(0,r.jsx)(Z.Z,{href:"/terms",children:"\uc774\uc6a9\uc57d\uad00"})})]}),(0,r.jsx)(x.Z,{sx:{mb:[1,1,1,3],mx:"auto"}}),(0,r.jsxs)(j,{children:["\uc8fc\uc2dd\ud68c\uc0ac \ucf54\uba54\uc774\ud06c | \uc870\uc6d0\ud76c",(0,r.jsx)("br",{}),"\uc11c\uc6b8\uc2dc \uc11c\ucd08\uad6c \uac15\ub0a8\ub300\ub85c 311 8\uce35",(0,r.jsx)("br",{}),"747-81-01368",(0,r.jsx)("br",{}),"[email protected]",(0,r.jsx)("br",{}),(0,r.jsxs)(Z.Z,{href:"https://www.ftc.go.kr/bizCommPop.do?wrkr_no=7478101368",target:"_blank",children:["\uc81c2020-\uc11c\uc6b8\uc11c\ucd08-1881\ud638",(0,r.jsx)("br",{})]})]}),(0,r.jsxs)(j,{sx:{color:e.palette.text.secondary},children:["\uc8fc\uc2dd\ud68c\uc0ac \ucf54\uba54\uc774\ud06c\ub294 \ud1b5\uc2e0\ud310\ub9e4\uc911\uac1c\uc790\uc774\uba70 \ud1b5\uc2e0\ud310\ub9e4\uc758 \ub2f9\uc0ac\uc790\uac00 \uc544\ub2d9\ub2c8\ub2e4.",(0,r.jsx)("br",{}),"\ub530\ub77c\uc11c \uc8fc\uc2dd\ud68c\uc0ac \ucf54\uba54\uc774\ud06c\ub294 \ud310\ub9e4\uc790\uc758 \uac70\ub798\uc815\ubcf4 \ubc0f \uac70\ub798\uc5d0 \ub300\ud558\uc5ec \ucc45\uc784\uc744 \uc9c0\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4."]}),(0,r.jsx)(j,{sx:{textAlign:"right"},children:"\xa9 2023. Comake Corp. All Rights Reserved."})]})})}var w=n(26042),S=n(69396);function k(e){var t=(0,i.useState)(!1),n=t[0],r=t[1],o=e||100;return(0,i.useEffect)((function(){return window.onscroll=function(){window.pageYOffset>o?r(!0):r(!1)},function(){window.onscroll=null}}),[o]),n}var C=n(10653),_=n(20727),H=n(10901),I=n(36202),T=n(78728),D=n(3140),O={width:22,height:22},A=[{title:"\uc694\uae08 \uc548\ub0b4",icon:(0,r.jsx)(D.Z,(0,w.Z)({icon:"material-symbols:local-mall-outline"},O)),path:"/products"},{title:"\uacc4\uc57d \uc704\ubcc0\uc870 \ud655\uc778",icon:(0,r.jsx)(D.Z,(0,w.Z)({icon:"ph:seal-check-bold"},O)),path:"/contract/info"},{title:"\ubc95\uc801 \ud6a8\ub825, \ubcf4\uc548",icon:(0,r.jsx)(D.Z,(0,w.Z)({icon:"ic:sharp-security"},O)),path:"/legal"}],E=n(45962),R=n(41664),P=n.n(R),B=n(14564),F=n(86886),z=n(78462),L=n(75438),W=n(9974),G=(0,u.ZP)(Z.Z)((function(e){var t=e.theme;return(0,S.Z)((0,w.Z)({},t.typography.subtitle2),{color:t.palette.text.primary,marginRight:t.spacing(5),transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter}),"&:hover":{opacity:.48,textDecoration:"none"}})}
1)),M=(0,u.ZP)(Z.Z)((function(e){var t=e.theme;return(0,S.Z)((0,w.Z)({},t.typography.body2),{display:"flex",alignItems:"center",padding:0,marginTop:t.spacing(3),color:t.palette.text.primary,transition:t.transitions.create("color"),"&:hover":{color:t.palette.text.primary}})}));function N(e){var t=e.isOffset,n=e.isHome,a=e.navConfig,s=(0,o.useRouter)().pathname,l=(0,i.useState)(!1),c=l[0],d=l[1];(0,i.useEffect)((function(){c&&h()}),[s]);var u=function(){d(!0)},h=function(){d(!1)};return(0,r.jsx)(v.Z,{direction:"row",children:a.map((function(e){return(0,r.jsx)(K,{item:e,isOpen:c,onOpen:u,onClose:h,isOffset:t,isHome:n},e.title)}))})}function q(e){var t=e.type,n=void 0===t?"item":t;return(0,r.jsx)(m.Z,{sx:{width:24,height:16,display:"flex",alignItems:"center"},children:(0,r.jsx)(m.Z,{component:"span",sx:(0,w.Z)({ml:"2px",width:4,height:4,borderRadius:"50%",bgcolor:"currentColor"},"item"!==n&&{ml:0,width:8,height:2,borderRadius:2})})})}function K(e){var t=e.item,n=e.isHome,i=e.isOpen,a=e.isOffset,s=e.onOpen,l=e.onClose,c=(0,o.useRouter)().pathname,d=(0,h.Z)(),u=t.title,p=t.path,x=t.children,g=function(e){return c===e};return x?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(G,{onClick:s,sx:(0,w.Z)({display:"flex",cursor:"pointer",alignItems:"center"},n&&{color:"text.primary"},a&&{color:"text.primary"}),children:[u,(0,r.jsx)(D.Z,{icon:i?"eva:arrow-ios-upward-fill":"eva:arrow-ios-downward-fill",sx:{ml:.5,width:16,height:16}})]}),(0,r.jsx)(B.ZP,{open:i,anchorReference:"anchorPosition",anchorPosition:{top:80,left:0},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:l,PaperProps:{sx:{px:3,pt:5,pb:3,right:16,m:"auto",borderRadius:2,maxWidth:function(e){return e.breakpoints.values.lg},boxShadow:function(e){return e.customShadows.z24}}},children:(0,r.jsx)(F.ZP,{container:!0,spacing:3,children:x.map((function(e){var t=e.subheader,n=e.items;return(0,r.jsx)(F.ZP,{item:!0,xs:12,md:"Dashboard"===t?6:2,children:(0,r.jsxs)(z.Z,{disablePadding:!0,children:[(0,r.jsxs)(L.Z,{disableSticky:!0,disableGutters:!0,sx:{display:"flex",lineHeight:"unset",alignItems:"center",color:"text.primary",typography:"overline"},children:[(0,r.jsx)(q,{type:"subheader"})," ",t]}),n.map((function(e){return(0,r.jsx)(P(),{href:e.path,passHref:!0,children:(0,r.jsx)(M,{underline:"none",sx:(0,w.Z)({},g(e.path)&&{color:"text.primary",typography:"subtitle2"}),children:"Dashboard"===e.title?(0,r.jsx)(W.Z,{sx:{py:5,px:10,borderRadius:2,color:"primary.main",bgcolor:"background.neutral"},children:(0,r.jsx)(m.Z,{component:E.m.img,whileTap:"tap",whileHover:"hover",variants:{hover:{scale:1.02},tap:{scale:.98}},src:"/assets/illustrations/illustration_dashboard.png"})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(q,{}),e.title]})})},e.title)}))]})},t)}))})})]}):"\uc774\uc6a9\uc790 \uac00\uc774\ub4dc"===u?(0,r.jsx)(G,{href:p,target:"_blank",rel:"noopener",sx:{fontSize:"15px",fontWeight:500,color:"#3f4351"},children:u}):(0,r.jsx)(P(),{href:p,passHref:!0,children:(0,r.jsx)(G,{sx:(0,w.Z)({color:"#3F4351",fontFamily:f.TC,fontWeight:500,fontSize:{sm:"15px",xl:"17px"},fontStyle:"normal",textAlign:"center",letterSpacing:"-0.03em","&:hover":{color:d.palette.primary.main,Opacity:1}},n&&{},a&&{},g(p)&&{}),children:u})})}var U=n(41796),X=n(84855),Y=n(76843),V=n(99534),J=n(78405);function $(){var e=(0,J.$)(),t=e.i18n,n=e.t,r=(0,H.Z)().onChangeDirectionByLang,i=localStorage.getItem("i18nextLng");return{onChangeLang:function(e){t.changeLanguage(e),r(e)},translate:function(e,t){return n(e,t)},currentLang:T.Gk.find((function(e){return e.value===i}))||T.Fp,allLangs:T.Gk}}var Q=n(46772);function ee(e){var t=e.hasContent,n=e.roles,i=e.children,o=(0,a.useSession)();o.data,o.status;return"undefined"===typeof n||n.includes("user")?(0,r.jsx)(r.Fragment,{children:i}):t?(0,r.jsxs)(b.Z,{component:Y.NM,sx:{textAlign:"center"},children:[(0,r.jsx)(E.m.div,{variants:(0,Y.Wp)().in,children:(0,r.jsx)(g.Z,{variant:"h3",paragraph:!0,children:"Permission Denied"})}),(0,r.jsx)(E.m.div,{variants:(0,Y.Wp)().in,children:(0,r.jsx)(g.Z,{sx:{color:"text.secondary"},children:"You do not have permission to access this page"})}),(0,r.jsx)(E.m.div,{variants:(0,Y.Wp)().in})]}):null}
1var te=n(98619),ne=n(59334),re=n(48885),ie="#469BFF",oe="#A7B4D0",ae=(0,u.ZP)(te.Z,{shouldForwardProp:function(e){return"activeRoot"!==e&&"activeSub"!==e&&"subItem"!==e}})((function(e){var t=e.activeRoot,n=e.activeSub,r=e.subItem,i=e.theme;return(0,w.Z)((0,S.Z)((0,w.Z)({},i.typography.body2),{position:"relative",height:T.Au.DASHBOARD_ITEM_ROOT_HEIGHT,textTransform:"capitalize",color:i.palette.text.secondary,borderRadius:i.shape.borderRadius}),t&&{color:"#53A1DA"},n&&{color:i.palette.text.primary},r&&{height:T.Au.DASHBOARD_ITEM_SUB_HEIGHT})})),se=(0,u.ZP)(ne.Z,{shouldForwardProp:function(e){return"isCollapse"!==e}})((function(e){var t=e.isCollapse,n=e.theme;return(0,w.Z)({whiteSpace:"nowrap",color:"light"===n.palette.mode?"#333":"inherit",transition:n.transitions.create(["width","opacity"],{duration:n.transitions.duration.shorter})},t&&{width:0,opacity:0})})),le=(0,u.ZP)(re.Z)((function(e){var t=e.theme;return{width:T.Wm.NAVBAR_ITEM,height:T.Wm.NAVBAR_ITEM,display:"flex",alignItems:"center",justifyContent:"center",color:"light"===t.palette.mode?"#333":"inherit","& svg":{width:"100%",height:"100%"}}})),ce=(0,u.ZP)(re.Z)((function(e){return{marginLeft:"18px",padding:"0px",borderRadius:"11px",width:"45px",height:"42px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.theme.palette.primary.main}})),de=n(21023),ue=(0,i.forwardRef)((function(e,t){return(0,r.jsx)(ee,{roles:e.roles,children:(0,r.jsx)(ae,(0,S.Z)((0,w.Z)({},e),{ref:t,children:e.children}))})})),he=(0,u.ZP)(ue)((function(){return{height:"20px",padding:0,margin:"13px 0px 0px 0px"}}));function pe(e){var t=e.item,n=e.isCollapse,i=e.open,o=void 0!==i&&i,a=e.active,s=e.onOpen,l=$().translate,c=t.title,d=t.path,u=t.icon,h=t.info,p=t.children,x=t.disabled,f=t.caption,m=t.roles,b=(0,r.jsxs)(r.Fragment,{children:[u&&(0,r.jsx)(le,{sx:{color:a?ie:oe},children:u}),(0,r.jsx)(se,{sx:{color:a?ie:oe},disableTypography:!0,primary:l(c),secondary:(0,r.jsx)(de.Z,{title:l(f)||"",arrow:!0,children:(0,r.jsx)(g.Z,{noWrap:!0,variant:"caption",component:"div",sx:{textTransform:"initial",color:"common.white"},children:l(f)})}),isCollapse:n}),!n&&(0,r.jsxs)(r.Fragment,{children:[h&&h,p&&(0,r.jsx)(ge,{open:o})]})]});return p?(0,r.jsx)(he,{onClick:s,activeRoot:a,disabled:x,roles:m,children:b}):Be(d)?(0,r.jsx)(he,{sx:{padding:0},component:"a",href:d,target:"_blank",rel:"noopener",disabled:x,roles:m,children:b}):(0,r.jsx)(P(),{href:d,passHref:!0,children:(0,r.jsx)(he,{activeRoot:a,disabled:x,roles:m,children:b})})}function xe(e){var t=e.item,n=e.open,i=void 0!==n&&n,o=e.active,a=void 0!==o&&o,s=e.onOpen,l=$().translate,c=t.title,d=t.path,u=t.info,h=t.children,p=t.disabled,x=t.caption,f=t.roles,m=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(fe,{active:a}),(0,r.jsx)(ne.Z,{disableTypography:!0,primary:(0,r.jsx)(g.Z,{color:a?ie:"#A8A9B1",variant:"body2",children:l(c)}),secondary:(0,r.jsx)(de.Z,{title:l(x)||"",arrow:!0,children:(0,r.jsx)(g.Z,{noWrap:!0,variant:"caption",component:"div",sx:{textTransform:"initial",color:"common.white"},children:l(x)})})}),u&&u,h&&(0,r.jsx)(ge,{open:i})]});return h?(0,r.jsx)(he,{onClick:s,activeSub:a,subItem:!0,disabled:p,roles:f,children:m}):Be(d)?(0,r.jsx)(he,{component:"a",href:d,target:"_blank",rel:"noopener",subItem:!0,disabled:p,roles:f,children:m}):(0,r.jsx)(P(),{href:d,passHref:!0,children:(0,r.jsx)(he,{activeSub:a,subItem:!0,disabled:p,roles:f,children:m})})}function fe(e){var t=e.active;return(0,r.jsx)(le,{children:(0,r.jsx)(m.Z,{component:"span",sx:(0,w.Z)({width:4,height:4,borderRadius:"50%",bgcolor:"common.white",transition:function(e){return e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},t&&{transform:"scale(2)",bgcolor:ie})})})}function ge(e){var t=e.open;return(0,r.jsx)(D.Z,{icon:t?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{width:16,height:16,ml:1}})}var me=n(57922);function be(e){var t=e.list,n=e.isCollapse,a=(0,o.useRouter)(),s=a.pathname,l=a.asPath,c=Fe(t.path,s,l),d=(0,i.useState)(c),u=d[0],h=d[1];return t.children?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(pe,{item:t,isCollapse:n,active:c,open:u,onOpen:function(){return h(!u)}}),!n&&(0,r.jsx)(me.Z,{in:u,timeout:"auto",unmountOnExit:!0,children:(0,r.jsx)(z.Z,{component:"div",disablePadding:!0,children:(t.children||[]).map((function(e){return(0,r.jsx)(ve,{list:e},e.title+e.path)}))})})]}):(0,r.jsx)(pe,{item:t,active:c,isCollapse:n})}function ve(e){var t=e.list,n=(0,o.useRouter)(),a=n.pathname,s=n.asPath,l=Fe(t.path,a,s),c=(0,i.useState)(l),d=c[0],u=c[1];return t.children?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(xe,{item:t,onOpen:function(){return u(!d)},open:d,active:l}),(0,r.jsx)(me.Z,{in:d,timeout:"auto",unmountOnExit:!0,children:(0,r.jsx)(z.Z,{component:"div",disablePadding:!0,sx:{pl:3},children:(t.children||[]).map((function(e){return(0,r.jsx)(xe,{item:e,active:Fe(e.path,a,s)}
1,e.title+e.path)}))})})]}):(0,r.jsx)(xe,{item:t,active:l})}var Ze=n(83321),je=n(88164),ye=((0,u.ZP)((function(e){return(0,r.jsx)(L.Z,(0,w.Z)({disableSticky:!0,disableGutters:!0},e))}))((function(e){var t=e.theme;return(0,S.Z)((0,w.Z)({},t.typography.overline),{paddingTop:t.spacing(3),paddingLeft:t.spacing(2),paddingBottom:t.spacing(1),color:t.palette.text.primary,transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})})})),(0,u.ZP)(Ze.Z)((function(e){var t=e.theme;return{height:"38px",width:"200px",marginTop:"13px",background:"#275de7",boxSizing:"border-box",color:"#DDF9FF",fontSize:"16px",fontFamily:f.TC,"&:hover":{backgroundColor:t.palette.primary.main}}}))),we=(0,u.ZP)(Ze.Z)((function(e){e.theme;return{marginTop:"13px",padding:0,color:"#9BB7FF",fontSize:"14px",fontWeight:700,fontFamily:f.TC,border:"1px solid #5C6F9A",backgroundColor:"transparent","&:hover":{border:"1px solid #93AADF",backgroundColor:"transparent"}}}));function Se(e){var t=e.navConfig,n=e.isCollapse,i=void 0!==n&&n,a=(0,V.Z)(e,["navConfig","isCollapse"]),s=$().translate,l=(0,o.useRouter)(),c=(0,h.Z)(),d=(0,Q.I0)();return(0,r.jsxs)(m.Z,(0,S.Z)((0,w.Z)({},a),{children:[(0,r.jsx)(m.Z,{width:"100%",sx:{display:"flex",justifyContent:"center",paddingTop:2},children:(0,r.jsx)(ye,{onClick:function(){d((0,je.Es)()),l.push("/dashboard/contract/upload-unique?mode=new")},children:" \uc2e0\uaddc \uacc4\uc57d"})}),(0,r.jsxs)(m.Z,{width:"100%",sx:{marginTop:"10px",paddingX:"20px",display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",columnGap:"4px"},children:[(0,r.jsx)(we,{fullWidth:!0,href:"/dashboard/template/mytemplist",children:"\uacc4\uc57d\uc11c \uc591\uc2dd"}),(0,r.jsx)(we,{fullWidth:!0,onClick:function(){return l.push("/dashboard/product/templist")},startIcon:(0,r.jsx)(D.Z,{icon:"ri:layout-3-fill"}),children:"\uc591\uc2dd \ubaa8\uc74c"})]}),(0,r.jsx)(m.Z,{mt:"34px",children:t.map((function(e){return(0,r.jsxs)(z.Z,{disablePadding:!0,sx:{px:2},children:[(0,r.jsx)(L.Z,{disableSticky:!0,disableGutters:!0,sx:(0,w.Z)({paddingTop:c.spacing(3),paddingBottom:c.spacing(0),color:"#E3E3E3",fontFamily:f.TC,fontSize:"14px",lineHeight:"16px",fontWeight:500,transition:c.transitions.create("opacity",{duration:c.transitions.duration.shorter})},i&&{opacity:0}),children:s(e.subheader)}),e.items.map((function(e){return(0,r.jsx)(be,{list:e,isCollapse:i},e.title+e.path)}))]},e.subheader)}))})]}))}function ke(e){var t=e.navConfig,n=e.isCollapse,i=void 0!==n&&n,o=(0,V.Z)(e,["navConfig","isCollapse"]),a=$(
1).translate,s=(0,h.Z)();return(0,r.jsxs)(m.Z,(0,S.Z)((0,w.Z)({},o),{children:[(0,r.jsx)(m.Z,{width:"100%",sx:{display:"flex",justifyContent:"center"},children:i?(0,r.jsx)(ce,{children:(0,r.jsx)(Z.Z,{href:"/dashboard/contract/upload",children:(0,r.jsx)(D.Z,{icon:"el:file-new",color:"white"})})}):(0,r.jsx)(r.Fragment,{})}),t.map((function(e){return(0,r.jsxs)(z.Z,{disablePadding:!0,sx:{px:2},children:[(0,r.jsx)(L.Z,{disableSticky:!0,disableGutters:!0,sx:(0,w.Z)((0,S.Z)((0,w.Z)({},s.typography.overline),{paddingTop:s.spacing(3),paddingLeft:s.spacing(2),paddingBottom:s.spacing(1),color:s.palette.text.primary,fontFamily:f.TC,transition:s.transitions.create("opacity",{duration:s.transitions.duration.shorter})}),i&&{opacity:0}),children:a(e.subheader)}),e.items.map((function(e){return(0,r.jsx)(be,{list:e,isCollapse:i},e.title+e.path)}))]},e.subheader)}))]}))}var Ce=(0,u.ZP)(Ze.Z,{shouldForwardProp:function(e){return"activeRoot"!==e&&"activeSub"!==e&&"subItem"!==e&&"open"!==e}})((function(e){var t=e.activeRoot,n=e.activeSub,r=e.subItem,i=e.open,o=e.theme,a="light"===o.palette.mode,s={color:o.palette.grey[800],backgroundColor:o.palette.common.white,boxShadow:"-2px 4px 6px 0 ".concat((0,U.Fq)(a?o.palette.grey[500]:o.palette.common.black,.16))};return(0,w.Z)((0,S.Z)((0,w.Z)({},o.typography.body2),{margin:o.spacing(0,.5),padding:o.spacing(0,1),color:o.palette.text.secondary,height:T.Au.DASHBOARD_ITEM_HORIZONTAL_HEIGHT,"&:hover":{color:o.palette.text.primary,backgroundColor:o.palette.background.paper}}),t&&(0,S.Z)((0,w.Z)({},o.typography.subtitle2,s),{"&:hover":(0,w.Z)({},s)}),n&&(0,S.Z)((0,w.Z)({},o.typography.subtitle2),{color:o.palette.text.primary}),r&&{width:"100%",margin:0,paddingRight:0,paddingLeft:o.spacing(1),justifyContent:"space-between"},i&&!t&&{color:o.palette.text.primary,backgroundColor:o.palette.action.hover})})),_e=(0,u.ZP)(B.ZP)((function(e){var t=e.theme;return{pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:t.spacing(1),borderRadius:1.5*Number(t.shape.borderRadius),boxShadow:t.customShadows.dropdown}}})),He=(0,i.forwardRef)((function(e,t){return(0,r.jsx)(ee,{roles:e.roles,children:(0,r.jsx)(Ce,(0,S.Z)((0,w.Z)({},e),{ref:t,children:e.children}))})})),Ie=(0,i.forwardRef)((function(e,t){var n=e.item,i=e.active,o=e.open,a=e.onMouseEnter,s=e.onMouseLeave,l=$().translate,c=n.title,d=n.path,u=n.icon,h=n.children,p=n.disabled,x=n.roles;return h?(0,r.jsx)(He,{ref:t,open:o,activeRoot:i,onMouseEnter:a,onMouseLeave:s,disabled:p,roles:x,children:(0,r.jsx)(De,{icon:u,title:l(c),children:h})}):Be(d)?(0,r.jsx)(He,{component:"a",href:d,target:"_blank",rel:"noopener",disabled:p,roles:x,children:(0,r.jsx)(De,{icon:u,title:l(c),children:h})}):(0,r.jsx)(P(),{href:d,passHref:!0,children:(0,r.jsx)(He,{activeRoot:i,disabled:p,roles:x,children:(0,r.jsx)(De,{icon:u,title:l(c),children:h})})})})),Te=(0,i.forwardRef)((function(e,t){var n=e.item,i=e.active,o=e.open,a=e.onMouseEnter,s=e.onMouseLeave,l=$().translate,c=n.title,d=n.path,u=n.icon,h=n.children,p=n.disabled,x=n.roles;return h?(0,r.jsx)(He,{ref:t,subItem:!0,disableRipple:!0,open:o,activeSub:i,onMouseEnter:a,onMouseLeave:s,disabled:p,roles:x,children:(0,r.jsx)(De,{icon:u,title:l(c),children:h,subItem:!0})}):Be(d)?(0,r.jsx)(He,{subItem:!0,href:d,disableRipple:!0,rel:"noopener",target:"_blank",component:"a",disabled:p,roles:x,children:(0,r.jsx)(De,{icon:u,title:l(c),children:h,subItem:!0})}):(0,r.jsx)(P(),{href:d,passHref:!0,children:(0,r.jsx)(He,{disableRipple:!0,activeSub:i,subItem:!0,disabled:p,roles:x,children:(0,r.jsx)(De,{icon:u,title:l(c),children:h,subItem:!0})})})}));function De(e){var t=e.icon,n=e.title,i=e.children,o=e.subItem,a=$().translate;return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(m.Z,{component:"span",sx:{mr:1,width:T.Wm.NAVBAR_ITEM_HORIZONTAL,height:T.Wm.NAVBAR_ITEM_HORIZONTAL,"& svg":{width:"100%",height:"100%"}},children:t}),a(n),i&&(0,r.jsx)(D.Z,{icon:o?"eva:chevron-right-fill":"eva:chevron-down-fill",sx:{ml:.5,width:T.Wm.NAVBAR_ITEM_HORIZONTAL,height:T.Wm.NAVBAR_ITEM_HORIZONTAL}})]})}function Oe(e){var t=e.list,n=(0,i.useRef)(null),a=(0,o.useRouter)(),s=a.pathname,l=a.asPath,c=Fe(t.path,s,l),d=(0,i.useState)(!1),u=d[0],h=d[1],p=t.children;(0,i.useEffect)((function(){u&&f()}),[s]);var x=function(){h(!0)},f=function(){h(!1)};return p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Ie,{open:u,item:t,active:c,ref:n,onMouseEnter:x,onMouseLeave:f}),(0,r.jsx)(_e,{open:u,anchorEl:n.current,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{onMouseEnter:x,onMouseLeave:f},children:(t.children||[]).map((function(e){return(0,r.jsx)(Ae,{list:e},e.title+e.path)}))})]}):(0,r.jsx)(Ie,{item:t,active:c}
1)}function Ae(e){var t=e.list,n=(0,i.useRef)(null),a=(0,o.useRouter)(),s=a.pathname,l=a.asPath,c=Fe(t.path,s,l),d=(0,i.useState)(!1),u=d[0],h=d[1],p=function(){h(!0)},x=function(){h(!1)};return t.children?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Te,{ref:n,open:u,item:t,active:c,onMouseEnter:p,onMouseLeave:x}),(0,r.jsx)(_e,{open:u,anchorEl:n.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{onMouseEnter:p,onMouseLeave:x},children:(t.children||[]).map((function(e){return(0,r.jsx)(Ae,{list:e},e.title+e.path)}))})]}):(0,r.jsx)(Te,{item:t,active:c})}var Ee={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}};function Re(e){var t=e.navConfig;return(0,r.jsx)(v.Z,{direction:"row",justifyContent:"center",sx:{bgcolor:"background.neutral",borderRadius:1,px:.5},children:(0,r.jsx)(v.Z,{direction:"row",sx:(0,S.Z)((0,w.Z)({},Ee),{py:1}),children:t.map((function(e){return(0,r.jsx)(v.Z,{direction:"row",flexShrink:0,children:e.items.map((function(e){return(0,r.jsx)(Oe,{list:e},e.title+e.path)}))},e.subheader)}))})})}var Pe=(0,i.memo)(Re);function Be(e){return e.includes("http")}function Fe(e,t,n){var r=e.startsWith("#");return!r&&t.includes(e)||!r&&n.includes(e)}var ze=n(58826),Le=(0,u.ZP)(te.Z)((function(e){var t=e.theme;return(0,S.Z)((0,w.Z)({},t.typography.body2),{height:T.Au.DASHBOARD_ITEM_ROOT_HEIGHT,textTransform:"capitalize",color:t.palette.text.secondary})}));function We(e){var t=e.isOffset,n=e.isHome,a=e.navConfig,s=(0,o.useRouter)().pathname,l=(0,i.useState)(!1),c=l[0],d=l[1],u=(0,i.useState)(!1),h=u[0],p=u[1];(0,i.useEffect)((function(){h&&g()}),[s]);var f=function(){d(!c)},g=function(){p(!1)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Y.w_,{onClick:function(){p(!0)},sx:(0,w.Z)({ml:1},n&&{color:"text.primary"},t&&{color:"text.primary"}),children:(0,r.jsx)(D.Z,{icon:"eva:menu-2-fill"})}),(0,r.jsx)(ze.ZP,{open:h,onClose:g,ModalProps:{keepMounted:!0},PaperProps:{sx:{pb:5,width:260}},children:(0,r.jsxs)(X.Z,{children:[(0,r.jsx)(x.Z,{sx:{mx:2.5,my:3}}),(0,r.jsx)(z.Z,{disablePadding:!0,children:a.map((function(e){return(0,r.jsx)(Ge,{item:e,isOpen:c,onOpen:f},e.title)}))})]})})]})}function Ge(e){var t=e.item,n=e.isOpen,i=e.onOpen,a=(0,o.useRouter)().pathname,s=t.title,l=t.path,c=t.icon,d=t.children,u=a===l;return d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(Le,{onClick:i,children:[(0,r.jsx)(re.Z,{children:c}),(0,r.jsx)(ne.Z,{disableTypography:!0,primary:s}),(0,r.jsx)(D.Z,{icon:n?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{width:16,height:16,ml:1}})]}),(0,r.jsx)(me.Z,{in:n,timeout:"auto",unmountOnExit:!0,children:(0,r.jsx)(m.Z,{sx:{display:"flex",flexDirection:"column-reverse"},children:(0,r.jsx)(Se,{navConfig:d,sx:{"& .MuiList-root:last-of-type .MuiListItemButton-root":{height:200,backgroundSize:"cover",backgroundPosition:"center",bgcolor:"background.neutral",backgroundRepeat:"no-repeat",backgroundImage:"url(/assets/illustrations/illustration_dashboard.png)","& > *:not(.MuiTouchRipple-root)":{display:"none"}}}})})})]}):"\uc774\uc6a9\uc790 \uac00\uc774\ub4dc"===s?(0,r.jsxs)(Le,{href:l,target:"_blank",rel:"noopener",component:"a",children:[(0,r.jsx)(re.Z,{children:c}),(0,r.jsx)(ne.Z,{disableTypography:!0,primary:s})]}):(0,r.jsx)(P(),{href:l,passHref:!0,children:(0,r.jsxs)(Le,{sx:(0,w.Z)({},u&&{color:"primary.main",fontWeight:"fontWeightMedium",bgcolor:function(e){return(0,U.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}),children:[(0,r.jsx)(re.Z,{children:c}),(0,r.jsx)(ne.Z,{disableTypography:!0,primary:s})]})})}var Me=n(10155),Ne=n(42293),qe=(0,u.ZP)(Me.Z)((function(e){var t=e.theme;return(0,d.Z)({height:T.yf.MOBILE_HEIGHT,transition:t.transitions.create(["height","background-color"],{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.shorter})},t.breakpoints.up("md"),{height:T.yf.MAIN_DESKTOP_HEIGHT})})),Ke=(0,u.ZP)("div")((function(e){return{left:0,right:0,bottom:0,height:24,zIndex:-1,margin:"auto",borderRadius:"50%",position:"absolute",width:"calc(100% - 48px)",boxShadow:e.theme.customShadows.z8}})),Ue=(0,u.ZP)((function(e){return(0,r.jsx)(Ze.Z,(0,w.Z)({},e))}))((function(e){var t=e.theme;return(0,d.Z)({backgroundColor:"#041555",borderRadius:"50px",fontStyle:"normal",fontWeight:400,lineHeight:"100%",textAlign:"center",color:"#fff",height:"28px",paddingLeft:"12px",paddingRight:"12px",fontSize:"12px"},t.breakpoints.up("md"),{height:"34px",paddingLeft:"16px",paddingRight:"16px",fontSize:"14px"})}));function Xe(){var e=(0,a.useSession)().data,t=k(T.yf.MAIN_DESKTOP_HEIGHT),n=(0,h.Z)(),i=(0,o.useRouter)().pathname,s=(0,C.Z)("up","md"),l=(0,H.Z)().themeStretch,c=(0,o.useRouter)(),d="/"===i;return(0,r.jsxs)(Ne.Z,{sx:{boxShadow:0,bgcolor:"transparent"},children:[(0,r.jsx)(qe,{disableGutters:!0,sx:(0,w.Z)({},t&&(0,S.Z)((0,w.Z)({},(0,_.Z)(n).bgBlur()),{height:{md:T.yf.MAIN_DESKTOP_HEIGHT-16}}
1)),children:(0,r.jsxs)(b.Z,{maxWidth:!l&&"xl",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)(I.Z,{}),(0,r.jsx)(m.Z,{sx:{flexGrow:1}}),s&&(0,r.jsx)(N,{isOffset:t,isHome:d,navConfig:A}),!e&&(0,r.jsx)(Ue,{href:"/api/auth/signin",children:"\ub85c\uadf8\uc778"}),e&&(0,r.jsx)(Ue,{sx:e?{fontWeight:700}:{},onClick:function(e){return c.push("/dashboard/main")},children:"\ub098\uc758 \uacc4\uc57d"}),!s&&(0,r.jsx)(We,{isOffset:t,isHome:d,navConfig:A})]})}),t&&(0,r.jsx)(Ke,{})]})}function Ye(e){var t=e.children;(0,o.useRouter)().pathname;return(0,r.jsxs)(v.Z,{sx:{minHeight:1},children:[(0,r.jsx)(Xe,{}),t,(0,r.jsx)(m.Z,{sx:{flexGrow:1}}),(0,r.jsx)(y,{})]})}var Ve=n(47568),Je=n(97582),$e=n(67854),Qe=n(79443),et=n(93223),tt=(0,u.ZP)(g.Z)((function(e){var t,n=e.theme;return t={fontFamily:f.TC,fontWeight:500,letterSpacing:"-0.02em",fontSize:"12px",lineHeight:"200%"},(0,d.Z)(t,n.breakpoints.up("sm"),{}),(0,d.Z)(t,n.breakpoints.up("md"),{fontSize:"14px"}),(0,d.Z)(t,n.breakpoints.up("lg"),{fontSize:"14px"}),t}));function nt(e){e.isCollapse;var t=(0,C.Z)("up","lg");return(0,r.jsx)(m.Z,{sx:{position:"fixed",bottom:0,left:t?T.Au.BASE_WIDTH:0,right:0,height:"50px",borderTop:"1px solid ".concat(et.h1.lightGrey)},children:(0,r.jsxs)(v.Z,{direction:"row",justifyContent:"end",alignItems:"center",sx:{backgroundColor:"#fff",height:"100%",paddingRight:"30px"},children:[(0,r.jsx)(tt,{mr:2,children:(0,r.jsx)(Z.Z,{sx:{fontWeight:600},color:"success",href:"/privacy",children:"\uac1c\uc778\uc815\ubcf4\ucc98\ub9ac\ubc29\uce68"})}),(0,r.jsx)(tt,{mr:2,children:(0,r.jsx)(Z.Z,{href:"/terms",children:"\uc774\uc6a9\uc57d\uad00"})})]})})}var rt=n(74685),it=n(48731),ot=n(54788),at=n(73400),st=n(29960),lt=n(47637),ct=n(69127),dt=(0,u.ZP)("div")((function(e){e.theme;return{display:"flex",alignItems:"center",marginTop:"24px"}})),ut=(0,u.ZP)(m.Z)((function(e){e.theme;return{display:"flex",width:"100%",flexDirection:"row",justifyContent:"space-between",alignItems:"center"}})),ht=(0,u.ZP)(m.Z)((function(e){e.theme;return{width:"2px",height:"40px",backgroundColor:"#ED7A39",borderRadius:"50px",marginRight:"10px"}})),pt=(0,u.ZP)(g.Z)((function(e){e.theme;return{marginTop:"8px",color:"#A7B4D0",fontWeight:"500",fontSize:"12px",letterSpacing:"-1%"}})),xt=(0,u.ZP)(g.Z)((function(e){e.theme;return{color:"#ffffff",fontWeight:"500",fontSize:"15px",lineHeight:"15px",letterSpacing:"-2%",fontFamily:f.TC}})),ft=(0,u.ZP)(g.Z)((function(e){e.theme;return{color:"#ffffff",fontWeight:"500",fontSize:"12px",lineHeight:"12px",marginTop:"7px"}})),gt=(0,u.ZP)(g.Z)((function(e){e.theme;return{fontFamily:f.TC,color:"#A7B4D0",fontWeight:"500",fontSize:"12px",lineHeight:"12px",letterSpacing:"-1%",marginTop:"7px"}})),mt=(0,u.ZP)(g.Z)((function(e){e.theme;return{fontFamily:f.TC,color:"#55F5FF",fontWeight:"500",fontSize:"14px",lineHeight:"14px",letterSpacing:"-1%"}})),bt=(0,u.ZP)(g.Z)((function(e){e.theme;return{fontFamily:f.TC,color:"#A7B4D0",fontWeight:"500",fontSize:"12px",lineHeight:"12px",letterSpacing:"-1%",marginTop:"7px"}})),vt=(0,u.ZP)(Ze.Z)((function(e){e.theme;return{fontFamily:f.TC,background:"rgba(42, 68, 124, 0.1)",border:"1px solid rgba(96, 130, 210, 0.5)",borderRadius:"50px",color:"#9BB0DE",fontWeight:"500",fontSize:"11px",lineHeight:"11px",width:"73px",height:"21px",letterSpacing:"-0.005em",marginTop:"7px"}}));function Zt(e){var t,n,s,l,c,d,u=e.handleClose,p=(0,h.Z)(),x=(0,o.useRouter)(),b=(0,a.useSession)().data,j=(0,at.Ds)().enqueueSnackbar,y=(0,i.useState)(!1),w=y[0],S=y[1],k=(0,i.useState)(""),C=k[0],_=k[1],H=(0,i.useState)(""),I=H[0],T=H[1],D=(0,i.useState)(""),O=D[0],A=D[1],E=(0,i.useCallback)((0,Ve.Z)((function(){var e;return(0,Je.__generator)(this,(function(t){switch(t.label){case 0:return b&&b.user.orgLogoUrl?[4,(0,lt.IU)(null===b||void 0===b?void 0:b.user.orgLogoUrl)]:[3,2];case 1:e=t.sent(),A(e),t.label=2;case 2:return[2]}}
1))})),[b]);(0,i.useEffect)((function(){E()}),[E]),(0,i.useMemo)((function(){if(null===b||void 0===b?void 0:b.user.ticketInfo){var e=null===b||void 0===b?void 0:b.user.ticketInfo;"Y"!==e.isMonthSubscriber&&"Y"!==e.isYearSubscriber||(S(!0),_("\uc2dc\uc791\uc77c: ".concat((0,ct.Pp)(e.startDate)," ~")),T("\uc885\ub8cc\uc77c: ".concat((0,ct.Pp)(e.endDate))))}}),[]);var R,P,B=function(e){return void 0===e?0:e},z=b.user.avatarColor?b.user.avatarColor:p.palette.primary.lighter,L=((0,rt.HO)(z),0);(null===(t=b.user.ticketInfo)||void 0===t?void 0:t.freeTicket)&&(L+=null===(R=b.user.ticketInfo)||void 0===R?void 0:R.freeTicket);(null===(n=b.user.ticketInfo)||void 0===n?void 0:n.paidTicket)&&(L+=null===(P=b.user.ticketInfo)||void 0===P?void 0:P.paidTicket);var W=(0,i.useState)(!1),G=(W[0],W[1],(0,i.useState)(!1)),M=(G[0],G[1],function(e){e.preventDefault(),u&&u(),"/dashboard/user/profile/edit"!=x.asPath&&j("\ud504\ub85c\ud544 \uc218\uc815 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.",{variant:"success"}),x.push("/dashboard/user/profile/edit")}),N=(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(m.Z,{children:(null===b||void 0===b?void 0:b.user.orgLogoUrl)?(0,r.jsx)("img",{height:"21px",style:{height:"21px",aspectRatio:"auto"},alt:null===b||void 0===b?void 0:b.user.orgLogoUrl,src:O}):(0,r.jsx)(ot.Z,{sx:{color:"#A7B4D0",width:"21px",height:"21px"}})})});return(0,r.jsx)(F.ZP,{children:(0,r.jsxs)(v.Z,{children:[(null===b||void 0===b?void 0:b.user.orgNo)&&(0,r.jsx)(Z.Z,{href:"/dashboard/organization/profile",underline:"none",color:"inherit",children:(0,r.jsxs)(ut,{children:[(0,r.jsxs)(v.Z,{direction:"row",alignItems:"center",children:[(0,r.jsx)(ht,{sx:{backgroundColor:"#ED7A39"}}),(0,r.jsxs)(m.Z,{children:[N,(0,r.jsx)(pt,{noWrap:!0,children:null===b||void 0===b?void 0:b.user.orgName})]})]}),(0,r.jsx)(st.Z,{isCertified:"CERTIFIED"===b.user.orgCertifiedStatus})]})}),(0,r.jsx)(Z.Z,{href:"/dashboard/user/profile",underline:"none",color:"inherit",children:(0,r.jsxs)(dt,{sx:{marginTop:(null===b||void 0===b?void 0:b.user.orgNo)?"24px":"29px"},children:[(0,r.jsx)(ht,{sx:{backgroundColor:"#2CC17A",height:"80px"}}),(0,r.jsxs)(m.Z,{minWidth:0,children:[(0,r.jsx)(xt,{noWrap:!0,children:null===b||void 0===b?void 0:b.user.name}),(0,r.jsx)(ft,{noWrap:!0,children:(null===b||void 0===b?void 0:b.user.relatedEmail)?null===b||void 0===b?void 0:b.user.relatedEmail:""}),!(null===b||void 0===b?void 0:b.user.relatedEmail)&&(0,r.jsx)(ft,{noWrap:!0,onClick:M,sx:{color:"#91B0FF","&:hover":{cursor:"pointer"}},children:"\uc54c\ub78c \uc774\uba54\uc77c \uc124\uc815"}),"ON"===(null===b||void 0===b?void 0:b.user.kakaoAlarm)?(0,r.jsx)(ft,{noWrap:!0,onClick:M,sx:{color:"#91B0FF","&:hover":{cursor:"pointer"}},children:"\uce74\uce74\uc624\uc54c\ub78c ON"}):(0,r.jsx)(ft,{noWrap:!0,onClick:M,sx:{color:"#91B0FF","&:hover":{cursor:"pointer"}},children:"\uce74\uce74\uc624\uc54c\ub78c OFF"}),(0,r.jsxs)(gt,{noWrap:!0,children:[(null===b||void 0===b?void 0:b.user.orgDepartment)?null===b||void 0===b?void 0:b.user.orgDepartment:"",(null===b||void 0===b?void 0:b.user.orgDepartment)&&(null===b||void 0===b?void 0:b.user.orgPosition)?" ":"",(null===b||void 0===b?void 0:b.user.orgPosition)?null===b||void 0===b?void 0:b.user.orgPosition:"",(null===b||void 0===b?void 0:b.user.job)&&((null===b||void 0===b?void 0:b.user.orgDepartment)||(null===b||void 0===b?void 0:b.user.orgPosition))?" / ".concat(null===b||void 0===b?void 0:b.user.job):null===b||void 0===b?void 0:b.user.job]})]})]})}),(0,r.jsxs)(dt,{children:[(0,r.jsx)(ht,{sx:{backgroundColor:"#39F3FF",height:w?"90px":"80px"}}),(0,r.jsxs)(v.Z,{children:[(0,r.jsxs)(mt,{children:["\ubcf4\uc720 \uc774\uc6a9\uad8c"," ",w?": \uc815\uae30 \uad6c\ub3c5\uc911":"".concat(B(L),"\uac1c")]}),w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(bt,{children:C}),(0,r.jsx)(bt,{children:I})]}):(0,r.jsxs)(bt,{children:["\ubb34\ub8cc:",B(null===(s=b.user.ticketInfo)||void 0===s?void 0:s.freeTicket)," \uad6c\ub9e4:",B(null===(l=b.user.ticketInfo)||void 0===l?void 0:l.paidTicket)]}),(0,r.jsx)(vt,{onClick:function(){x.push("/dashboard/payments")},children:"\uc774\uc6a9\uad8c \uad6c\ub9e4"}),(0,r.jsxs)(bt,{children:["\ubb34\ub8cc \uc774\uc6a9\uad8c \uac31\uc2e0\uc77c : \ub9e4\ub2ec ",null===(c=null===b||void 0===b?void 0:b.user.ticketInfo)||void 0===c?void 0:c.renewalDate,"\uc77c"]})]})]}),3===B(null===(d=b.user.ticketInfo)||void 0===d?void 0:d.freeTicket)&&!w&&(0,r.jsxs)(v.Z,{direction:"row",alignItems:"center",sx:{marginTop:"24px"},children:[(0,r.jsx)(m.Z,{sx:{backgroundColor:(0,U.Fq)("#2C67FF",.51),borderRadius:"8px",height:"16px",width:"34px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(g.Z,{color:(0,U.Fq)("#55F5FF",.7),fontSize:"9px",fontWeight:"bold",children:"FREE"})}),(0,r.jsx)(g.Z,{marginLeft:"5px",color:"#A7A9BD",fontFamily:f.TC,fontSize:"12px",lineHeight:"12px",children:"\ubb34\ub8cc \uc774\uc6a9\uad8c\uc774 \uac31\uc2e0\ub418\uc5c8\uc2b5\ub2c8\ub2e4."})]})]})})}var jt=n(69661),yt=n(67720),wt=n(18972);function St(){var e=(0,a.useSession)().data,t=(0,i.useState)(null),n=t[0],s=t[1],l=(0,h.Z)(),c=(0,o.useRouter)(),d=e.user.avatarColor?e.user.avatarColor:l.palette.primary.lighter,u=(0,rt.HO)(d);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Y.w_,{onClick:function(e){s(e.currentTarget)},sx:(0,w.Z)({p:0},n&&{"&:before":{zIndex:1,content:"''",width:"100%",height:"100%",borderRadius:"50%",position:"absolute",bgcolor:function(e){return(0,U.Fq)(e.palette.grey[900],.8)}}}
1),children:(0,r.jsx)(jt.Z,{sx:{backgroundColor:d,color:u,width:"30px",height:"30px"},src:"".concat("https://comake-avatar.s3.ap-northeast-2.amazonaws.com/").concat(null===e||void 0===e?void 0:e.user.imageUrl)||0,alt:null===e||void 0===e?void 0:e.user.name,children:null===e||void 0===e?void 0:e.user.name.substring(0,1)})}),(0,r.jsxs)(it.Z,{open:Boolean(n),anchorEl:n,onClose:function(){s(null)},sx:{backgroundColor:"#242123",p:0,mt:1.5,ml:.75,"& .MuiMenuItem-root":{typography:"body2",borderRadius:.75}},children:[(0,r.jsx)(m.Z,{sx:{my:1.5,px:2.5},children:(0,r.jsx)(Zt,{handleClose:function(){return s(null)}})}),(0,r.jsx)(yt.Z,{sx:{borderStyle:"dashed",color:"common.white"}}),(0,r.jsx)(wt.Z,{sx:{m:1,color:"common.white"},onClick:function(e){return(0,a.signOut)(),void c.push("/")},children:"\ub85c\uadf8\uc544\uc6c3"})]})]})}var kt=n(30157),Ct=n(66099),_t=n(55172),Ht=n(71236),It=n(93946),Tt=n(88409),Dt=n(40044),Ot=n(18987);function At(){var e=(0,o.useRouter)(),t=(0,Q.I0)(),n=(0,at.Ds)().enqueueSnackbar,a=(0,Q.v9)((function(e){return e.systemSet})),s=a.notificationInitialized,l=a.unReadNotifiactionCount,c=(0,i.useState)([]),d=c[0],u=c[1],p=(0,i.useState)([]),x=p[0],f=p[1],b=(0,h.Z)(),v=(0,i.useState)(null),Z=v[0],j=v[1],y=(0,kt.Z)("all"),k=y.currentTab,C=y.onChangeTab,_=function(){var e=(0,Ve.Z)((function(e){return(0,Je.__generator)(this,(function(t){switch(t.label){case 0:return j(e.currentTarget),[4,H()];case 1:return t.sent(),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),H=function(){var e=(0,Ve.Z)((function(){var e;return(0,Je.__generator)(this,(function(t){switch(t.label){case 0:return[4,fetch("/api/contract/get-notifications",{method:"POST",headers:{"Content-Type":"application/json"}})];case 1:return 201!=(e=t.sent()).status?e.json().then((function(e){n(e.message,{variant:"error"})})):e.json().then((function(e){u(e.result)})),[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){if(!s){I();var e=setInterval(I,2e4);return(0,Qe.ih)(),function(){return clearInterval(e)}}}),[]);var I=(0,i.useCallback)((0,Ve.Z)((function(){return(0,Je.__generator)(this,(function(e){switch(e.label){case 0:return[4,t((0,Qe.lN)())];case 1:return e.sent(),[2]}}))})),[]),T=function(){j(null)},O=function(){var e=(0,Ve.Z)((function(){var e;return(0,Je.__generator)(this,(function(t){switch(t.label){case 0:return u(d.map((function(e){return(0,S.Z)((0,w.Z)({},e),{isUnRead:!1})}))),e=[],d.map((function(t){t.isUnRead&&e.push(t._id.toString())})),[4,fetch("/api/contract/update-notification",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:"all"})})];case 1:return 201!==t.sent().status?[3,3]:[4,H()];case 2:t.sent(),t.label=3;case 3:return I(),[2]}}))}));return function(){return e.apply(this,arguments)}}(),A=function(){var e=(0,Ve.Z)((function(e){return(0,Je.__generator)(this,(function(t){switch(t.label){case 0:return[4,fetch("/api/contract/update-notification",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({_id:e})})];case 1:return 201!==t.sent().status?[3,3]:[4,H()];case 2:t.sent(),t.label=3;case 3:return I(),[2]}}))}));return function(t){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){if("all"===k)f(d);else{var e=d.filter((function(e){return!0===e.isUnRead}));f(e)}}),[k,d]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Y.w_,{color:Z?"primary":"default",onClick:_,sx:{width:40,height:40},children:(0,r.jsx)(Ht.Z,{badgeContent:l,color:"error",children:(0,r.jsx)(D.Z,{icon:"eva:bell-fill",width:20,height:20})})}),(0,r.jsxs)(it.Z,{open:Boolean(Z),anchorEl:Z,onClose:T,sx:{width:320,p:0,mt:1.5,ml:.75},children:[(0,r.jsxs)(m.Z,{sx:{display:"flex",alignItems:"center",py:2,px:2.5},children:[(0,r.jsxs)(m.Z,{sx:{flexGrow:1},children:[(0,r.jsx)(g.Z,{variant:"subtitle1",children:"\uc54c\ub9bc"}),(0,r.jsxs)(g.Z,{variant:"body2",sx:{color:"text.secondary"},children:[l," \uac1c\uc758 \uc548 \uc77d\uc740 \uba54\uc138\uc9c0\uac00 \uc788\uc2b5\ub2c8\ub2e4"]})]}),(0,r.jsx)(de.Z,{title:"\ubaa8\ub450 \uc77d\uc74c \ucc98\ub9ac",children:(0,r.jsx)(It.Z,{color:0===l?"default":"primary",onClick:l>
10?O:void 0,children:(0,r.jsx)(D.Z,{icon:"eva:done-all-fill",width:20,height:20})})})]}),(0,r.jsxs)(Tt.Z,{TabIndicatorProps:{style:{borderBottom:"3px solid ".concat(b.palette.primary.main)}},value:k,onChange:C,sx:{bgcolor:"background.neutral",borderBottom:"1px solid #d4d8e1"},children:[(0,r.jsx)(Dt.Z,{disableRipple:!0,value:"all",label:"\ubaa8\ub450"},"all"),(0,r.jsx)(Dt.Z,{disableRipple:!0,value:"unread",label:"\uc77d\uc9c0\uc54a\uc74c"},"unread")]}),(0,r.jsx)(X.Z,{sx:{height:{xs:340}},children:x.length>0?(0,r.jsx)(z.Z,{disablePadding:!0,children:x.map((function(e){return(0,r.jsx)(Et,{notification:e,changeIsUnread:A,handleClose:T},e._id.toString())}))}):(0,r.jsx)(Ct.Z,{title:"",description:"\ud45c\uc2dc\ud560 \ud56d\ubaa9\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.",img:"/assets/illustrations/illustration_empty_mail.svg",sx:{flexGrow:1,height:"260px"}})}),x.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(yt.Z,{sx:{borderStyle:"dashed"}}),(0,r.jsx)(m.Z,{sx:{p:1},children:(0,r.jsx)(Ze.Z,{fullWidth:!0,disableRipple:!0,onClick:function(){e.push("/dashboard/notification/notifications"),j(null)},children:"\ub354\ubcf4\uae30"})})]})]})]})}function Et(e){var t=e.notification,n=e.changeIsUnread,i=e.handleClose,a=(0,o.useRouter)(),s=(0,h.Z)(),l=(0,at.Ds)().enqueueSnackbar,c=function(){var e=(0,Ve.Z)((function(e,t){var n;return(0,Je.__generator)(this,(function(r){switch(r.label){case 0:return"contract"!==e?[3,2]:[4,fetch("/api/notification/get-link-availability",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({linkUrl:t})})];case 1:if(201!=(n=r.sent()).status)return n.json().then((function(e){l(e.message,{variant:"error"})})),[2];r.label=2;case 2:return"https://comake.ai"+a.asPath===t?a.reload():location.replace(t),i(),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}(),d=function(e,t,n){var i=(0,r.jsxs)(g.Z,{variant:"subtitle2",sx:{minWidth:0},children:[e.title,(0,r.jsxs)(g.Z,{component:"span",variant:"body2",sx:{color:"text.secondary",wordBreak:"break-all",width:"100%"},children:["\xa0 ",e.description]}),(0,r.jsx)(It.Z,{disableRipple:!0,onClick:function(){return n(e.title,e.linkUrl)},children:(0,r.jsx)(D.Z,{icon:"akar-icons:link-chain",width:15,height:15})})]});return{avatar:(0,r.jsx)(_t.z,{sx:{fontSize:e.orgName||e.subjectName?"15px":"10px",backgroundColor:e.avatarColor||t.palette.primary.main,color:(0,rt.HO)(e.avatarColor)},imageUrl:e.avatar,avatarColor:e.avatarColor||t.palette.primary.main,alt:e.orgName?e.orgName:e.subjectName?e.subjectName:"COMAKE",name:e.orgName?e.orgName.substring(0,1):e.subjectName?e.subjectName.substring(0,1):"COMAKE"}),title:i}}(t,s,c),u=d.avatar,p=d.title,x=function(){var e=(0,Ve.Z)((function(e){var t;return(0,Je.__generator)(this,(function(r){switch(r.label){case 0:return[4,fetch("/api/contract/update-notification",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({_id:e})})];case 1:return 201!=(t=r.sent()).status?t.json().then((function(e){l(e.message,{variant:"error"})})):n(e),[2]}}))}));return function(t){return e.apply(this,arguments)}}();return(0,r.jsxs)(te.Z,{sx:(0,w.Z)({py:1.5,px:2.5,mt:"1px"},t.isUnRead&&{bgcolor:"action.selected"}),onClick:function(){return t.isUnRead?x(t._id.toString()):void 0},children:[(0,r.jsx)(Ot.Z,{children:(0,r.jsx)(jt.Z,{sx:{bgcolor:"background.neutral"},children:u})}),(0,r.jsx)(ne.Z,{primary:p,secondary:(0,r.jsxs)(g.Z,{variant:"caption",sx:{mt:.5,display:"flex",alignItems:"center",color:"text.disabled"},children:[(0,r.jsx)(D.Z,{icon:"eva:clock-outline",sx:{mr:.5,width:16,height:16}}),t.createdAt?(0,ct.DY)(t.createdAt):""]})})]})}var Rt=n(23926),Pt=n(54776),Bt=n(79332),Ft=n(87109),zt=(0,u.ZP)("div")((function(e){var t=e.theme;return(0,S.Z)((0,w.Z)({},(0,_.Z)(t).bgBlur()),(0,d.Z)({top:0,left:0,zIndex:99,width:"100%",display:"flex",position:"absolute",alignItems:"center",height:64,padding:t.spacing(0,3),boxShadow:t.customShadows.z8},t.breakpoints.up("md"),{height:92,padding:t.spacing(0,5)}))}));function Lt(){var e=(0,i.useState)(!1),t=e[0],n=e[1],a=function(){n(!1)},s=(0,i.useState)(!1),l=s[0],c=s[1],d=(0,i.useState)(""),u=d[0],h=d[1],p=(0,o.useRouter)();return(0,r.jsx)(Rt.Z,{onClickAway:a,children:(0,r.jsxs)("div",{children:[!t&&(0,r.jsx)(Y.w_,{onClick:function(){n((function(e){return!e}))},children:(0,r.jsx)(D.Z,{icon:"eva:search-fill",width:20,height:20})}),(0,r.jsx)(Pt.Z,{direction:"down",in:t,mountOnEnter:!0,unmountOnExit:!0,children:(0,r.jsxs)(zt,{children:[(0,r.jsx)(Bt.Z,{autoFocus:!0,fullWidth:!0,disableUnderline:!0,placeholder:"\uac80\uc0c9\uc5b4\ub97c \uc785\ub825\ud558\uc138\uc694.",startAdornment:(0,r.jsx)(Ft.Z,{position:"start",children:(0,r.jsx)(D.Z,{icon:"eva:search-fill",sx:{color:"text.disabled",width:20,height:20}})}),sx:{mr:1,fontWeight:"fontWeightBold"},onChange:function(e){""===e.target.value?(c(!1),h(e.target.value)):(c(!0),h(e.target.value))}}),(0,r.jsx)(Ze.Z,{variant:"contained",onClick:function(){if(u.trim().length>0){var e=u;c(!1),h(""),p.push("/dashboard/search/".concat(e))}a()},disabled:!l||0===u.trim().length,children:"\uac80\uc0c9"})]})})]})})}var Wt=(0,u.ZP)(Ne.Z,{shouldForwardProp:function(e){return"isCollapse"!==e&&"isOffset"!==e&&"verticalLayout"!==e}})((function(e){var t,n=e.isCollapse,r=e.isOffset,i=e.verticalLayout,o=e.theme;return(0,S.Z)((0,w.Z)({},(0,_.Z)(o).bgBlur()),(t={boxShadow:"none",height:T.yf.MOBILE_HEIGHT,backgroundColor:"#fff",zIndex:o.zIndex.appBar+1,transition:o.transitions.create(["width","height"],{duration:o.transitions.duration.shorter})},(0,d.Z)(t,o.breakpoints.up("lg"),(0,w.Z)({height:T.yf.DASHBOARD_DESKTOP_HEIGHT,width:"calc(100% - ".concat(T.Au.DASHBOARD_WIDTH+1,"px)")},n&&{width:"calc(100% - ".concat(T.Au.DASHBOARD_COLLAPSE_WIDTH,"px)")},r&&{height:T.yf.DASHBOARD_DESKTOP_OFFSET_HEIGHT},i&&{width:"100%",height:T.yf.DASHBOARD_DESKTOP_OFFSET_HEIGHT,backgroundColor:o.palette.background.default})),(0,d.Z)(t,o.breakpoints.up("xl"),{height:T.yf.DASHBOARD_DESKTOP_HEIGHT}),t))}));function Gt(e){var t=e.onOpenSidebar,n=e.isCollapse,i=void 0!==n&&n,o=e.verticalLayout,a=void 0!==o&&o,s=k(T.yf.DASHBOARD_DESKTOP_HEIGHT)&&!a,l=(0,C.Z)("up","lg");return(0,r.jsx)(Wt,{isCollapse:i,isOffset:s,verticalLayout:a,children:(0,r.jsxs)(Me.Z,{sx:{minHeight:"100% !important",px:{lg:5},boxShadow:"0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%) !important"},children:[!l&&(0,r.jsx)(x.Z,{}),!l&&(0,r.jsx)(Y.w_,{onClick:t,children:(0,r.jsx)(D.Z,{icon:"eva:menu-2-fill"})}),(0,r.jsx)(Lt,{}),(0,r.jsx)(m.Z,{sx:{flexGrow:1}}),(0,r.jsxs)(v.Z,{direction:"row",alignItems:"center",spacing:{xs:.5,sm:1.5},children:[(0,r.jsx)(At,{}),(0,r.jsx)(St,{})]})]})})}var Mt=n(87893),Nt=function(e){return(0,r.jsx)(Mt.Z,{src:"/assets/icons/navbar/".concat(e,".svg"),sx:{width:1,height:1}})},qt={user:Nt("ic_user"),organization:Nt("ic_organization"),ecommerce:Nt("ic_ecommerce"),analytics:Nt("ic_analytics"),dashboard:Nt("ic_dashboard"),onGoing:Nt("ic_signature"),contracts:Nt("ic_documents"),templates:Nt("ic_template"),personbox:Nt("ic_contract_box_person"),orgbox:Nt("ic_contract_box_org"),inbox:Nt("ic_inbou
1nd"),outbox:Nt("ic_outbound"),preparing:Nt("ic_preparing"),starred:Nt("ic_star"),trash:Nt("ic_trash"),all:Nt("ic_all")},Kt={subheader:"Dashboard",items:[{title:"\ub300\uc2dc\ubcf4\ub4dc",path:"/dashboard/main",icon:qt.dashboard}]},Ut={subheader:"Contract Box",items:[{title:"\uc694\uccad\ud558\uae30 / \uc694\uccad \ubcf4\ub0c4",path:"/dashboard/contractbox/outboundswr",icon:(0,r.jsx)(D.Z,{icon:"ic:round-forward-to-inbox"})},{title:"\ub0b4 \ucc28\ub840 / \uc694\uccad \ubc1b\uc74c",path:"/dashboard/contractbox/inboundswr",icon:qt.inbox},{title:"\uc804\uccb4",path:"/dashboard/contractbox/allswr",icon:qt.all},{title:"\uc911\uc694",path:"/dashboard/contractbox/starredswr",icon:qt.starred},{title:"\uc0ac\uc6a9\uc790 \uc815\uc758 \ud3f4\ub354",path:"/dashboard/customfolders/person",icon:(0,r.jsx)(D.Z,{icon:"ph:folder"})},{title:"\ud734\uc9c0\ud1b5",path:"/dashboard/contractbox/trashswr",icon:qt.trash}]};function Xt(){return Yt.apply(this,arguments)}function Yt(){return(Yt=(0,Ve.Z)((function(){var e,t,n,i;return(0,Je.__generator)(this,(function(o){switch(o.label){case 0:return[4,(0,a.getSession)()];case 1:return e=o.sent(),t=null===e||void 0===e?void 0:e.user.orgRole,n={title:"\ub098\uc758 \uc815\ubcf4",path:"/dashboard/user",icon:qt.user,children:[{title:"\ud504\ub85c\ud544",path:"/dashboard/user/profile"},{title:"\uc11c\uba85",path:"/dashboard/sign"},{title:"\uacb0\uc81c \uc774\ub825",path:"/dashboard/billing"}]},i={title:"\uc870\uc9c1 (Organization)",path:"/dashboard/organization",icon:qt.organization,children:[{title:"\uae30\uc5c5/\ub2e8\uccb4 \uc0dd\uc131",path:"/dashboard/organization/new"}]},"ADMIN"===t?i={title:"\uae30\uc5c5/\ub2e8\uccb4 (Organization)",path:"/dashboard/organization/profile",icon:qt.organization,children:[{title:"\ud504\ub85c\ud544",path:"/dashboard/organization/profile"},{title:"\uc11c\uba85",path:"/dashboard/organization/sign"},{title:"\uad6c\uc131\uc6d0",path:"/dashboard/organization/members"},{title:"\uacb0\uc7ac \ube44\ubc00\ubc88\ud638 \uc124\uc815",path:"/dashboard/organization/approval-pw"}]}:"MEMBER"===t&&(i={title:"\uc870\uc9c1 (Organization)",path:"/dashboard/organization/profile",icon:qt.organization,children:[{title:"\ud504\ub85c\ud544",path:"/dashboard/organization/profile"},{title:"\uc11c\uba85",path:"/dashboard/organization/sign"},{title:"\uad6c\uc131\uc6d0",path:"/dashboard/organization/members"},{title:"\uacb0\uc7ac \ube44\ubc00\ubc88\ud638 \uc124\uc815",path:"/dashboard/organization/approval-pw"}]}),t?[2,[Kt,Ut,{subheader:"Sharing Box",items:[{title:"\uc870\uc9c1 \uacf5\uc720 \ubb38\uc11c\ud568",path:"/dashboard/customfolders/org",icon:(0,r.jsx)(D.Z,{icon:"ph:folder-user"})}]},{subheader:"My Info",items:[n,i]}]]:[2,[Kt,Ut,{subheader:"My Info",items:[n,i]}]]}}))}))).apply(this,arguments)}var Vt=(0,u.ZP)(Ne.Z)((function(e){var t=e.theme;return{transition:t.transitions.create("top",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.shorter}),width:"100%",position:"fixed",zIndex:t.zIndex.appBar,padding:t.spacing(1,0),boxShadow:t.customShadows.z8,top:T.yf.DASHBOARD_DESKTOP_OFFSET_HEIGHT,backgroundColor:t.palette.background.default}}));function Jt(){var e=(0,i.useState)([{subheader:"",items:[{title:"",path:""}]}]),t=e[0],n=e[1];return(0,i.useEffect)((function(){var e=function(){var e=(0,Ve.Z)((function(){var e;return(0,Je.__generator)(this,(function(t){switch(t.label){case 0:return[4,Xt()];case 1:return e=t.sent(),n(e),[2]}}))}));return function(){return e.apply(this,arguments)}}();e()})),(0,r.jsx)(Vt,{children:(0,r.jsx)(b.Z,{maxWidth:!1,children:(0,r.jsx)(Pe,{navConfig:t})})})}var $t=(0,i.memo)(Jt),Qt=n(78187);function en(){var e=(0,a.useSession)().data;return(0,r.jsxs)(v.Z,{spacing:3,sx:{px:5,pb:5,mt:30,width:1,textAlign:"center",display:"block"},children:[(0,r.jsxs)(m.Z,{sx:{minWidth:0},children:[(0,r.jsxs)(g.Z,{gutterBottom:!0,variant:"subtitle1",sx:{color:Qt.ZP.dark.text.primary,wordBreak:"break-all",width:"100%"},children:["\uc548\ub155\ud558\uc138\uc694, ",null===e||void 0===e?void 0:e.user.name," \ub2d8,"]}),(0,r.jsx)(g.Z,{variant:"body2",sx:{color:Qt.ZP.dark.text.secondary},children:"comake3.0\uc758 \uc774\uc6a9\uc790 \uac00\uc774\ub4dc\ub97c \ucc38\uace0\ud558\uc138\uc694"})]}
1),(0,r.jsx)(P(),{href:"https://comakeai.github.io/user_guide/",target:"_blank",rel:"noopener",children:(0,r.jsx)(Ze.Z,{style:{textTransform:"none",boxShadow:"none"},variant:"contained",autoCapitalize:"false",children:"\uc774\uc6a9\uc790 \uac00\uc774\ub4dc"})})]})}var tn=n(48514),nn=(0,u.ZP)("div")((function(e){var t=e.theme;return(0,d.Z)({},t.breakpoints.up("lg"),{flexShrink:0,transition:t.transitions.create("width",{duration:t.transitions.duration.shorter})})}));function rn(e){var t=e.isOpenSidebar,n=e.onCloseSidebar,s=(0,h.Z)(),l=(0,a.useSession)().data,c=(0,o.useRouter)().pathname,d=(0,C.Z)("up","lg"),u=(s.palette.mode,(0,$e.Z)()),p=u.isCollapse,x=u.collapseClick,f=u.collapseHover,g=u.onHoverEnter,b=u.onHoverLeave,Z=[Kt,Ut],j=(0,i.useState)(Z),y=j[0],k=j[1];(0,i.useEffect)((function(){t&&n();var e=function(){var e=(0,Ve.Z)((function(){var e;return(0,Je.__generator)(this,(function(t){switch(t.label){case 0:return[4,Xt()];case 1:return e=t.sent(),k(e),[2]}}))}));return function(){return e.apply(this,arguments)}}();e()}),[c]);var H=(0,r.jsxs)(X.Z,{sx:{backgroundColor:"#172544",height:1,"& .simplebar-content":{height:1,display:"flex",flexDirection:"column"}},children:[(0,r.jsx)(v.Z,{sx:{width:"100%",height:"50px",backgroundColor:"#091838",borderBottom:"1px solid ".concat((0,U.Fq)("#000000",.5)),display:"flex",flexDirection:"row",alignItems:"center",padding:"11px 18px"},children:(0,r.jsx)(tn.Z,{})}),(0,r.jsx)(v.Z,{sx:(0,w.Z)({padding:"27px 20px 0px 20px",flexShrink:0},p&&{alignItems:"center"}),children:(0,r.jsx)(Zt,{handleClose:n})}),(0,r.jsx)(Se,{navConfig:y,isCollapse:p}),new Date(l.user.created).getTime()<new Date("2023-04-30").getTime()&&(0,r.jsx)(m.Z,{mt:5,width:"100%",sx:{display:"flex",justifyContent:"center",flexDirection:"row"},children:(0,r.jsx)(Ze.Z,{href:"/comake2/docList",variant:"outlined",sx:{borderColor:"#fff",color:"#fff",width:"200px"},children:"\ucf54\uba54\uc774\ud06c2\uc758 \uacc4\uc57d\ubaa9\ub85d"})}),(0,r.jsx)(m.Z,{sx:{flexGrow:1}}),!p&&(0,r.jsx)(en,{})]});return(0,r.jsxs)(nn,{sx:(0,w.Z)({width:{lg:p?T.Au.DASHBOARD_COLLAPSE_WIDTH:T.Au.DASHBOARD_WIDTH}},x&&{position:"absolute"}),children:[!d&&(0,r.jsx)(ze.ZP,{open:t,onClose:n,PaperProps:{sx:{width:T.Au.DASHBOARD_WIDTH}},children:H}),d&&(0,r.jsx)(ze.ZP,{open:!0,variant:"persistent",onMouseEnter:g,onMouseLeave:b,PaperProps:{sx:(0,w.Z)({width:T.Au.DASHBOARD_WIDTH,borderRightStyle:"dashed",bgcolor:"background.default",transition:function(e){return e.transitions.create("width",{duration:e.transitions.duration.standard})}},p&&{width:T.Au.DASHBOARD_COLLAPSE_WIDTH},f&&(0,S.Z)((0,w.Z)({},(0,_.Z)(s).bgBlur()),{boxShadow:function(e){return e.customShadows.z24}}))},children:H})]})}var on=(0,u.ZP)("main",{shouldForwardProp:function(e){return"collapseClick"!==e}})((function(e){var t,n=e.collapseClick,r=e.theme;return t={flexGrow:1,paddingTop:T.yf.MOBILE_HEIGHT+24,paddingBottom:T.yf.MOBILE_HEIGHT+24},(0,d.Z)(t,r.breakpoints.up("md"),(0,w.Z)({paddingLeft:16,paddingRight:16,paddingTop:T.yf.DASHBOARD_DESKTOP_HEIGHT+18,paddingBottom:T.yf.DASHBOARD_DESKTOP_HEIGHT,width:"calc(100% - ".concat(T.Au.DASHBOARD_WIDTH,"px)"),marginLeft:T.Au.DASHBOARD_WIDTH},n&&{marginLeft:T.Au.DASHBOARD_COLLAPSE_WIDTH})),(0,d.Z)(t,r.breakpoints.up("lg"),{paddingLeft:0,marginLeft:0,paddingTop:T.yf.DASHBOARD_DESKTOP_HEIGHT}),(0,d.Z)(t,r.breakpoints.up("xl"),{paddingLeft:16,paddingTop:T.yf.DASHBOARD_DESKTOP_HEIGHT}),(0,d.Z)(t,r.breakpoints.up("sm"),{marginLeft:0}),(0,d.Z)(t,"marginLeft",0),t}));function an(e){var t=e.children,n=(0,$e.Z)(),o=n.collapseClick,a=n.isCollapse,s=(0,Q.I0)(),l=(0,H.Z)().themeLayout,c=(0,C.Z)("up","lg"),d=(0,i.useState)(!1),u=d[0],h=d[1],p="vertical"===l;(0,i.useEffect)((function(){x()}),[]);var x=(0,i.useCallback)((0,Ve.Z)((function(){return(0,Je.__generator)(this,(function(e){switch(e.label){case 0:return[4,s((0,Qe.lN)())];case 1:return e.sent(),[2]}}))})),[]);return p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Gt,{onOpenSidebar:function(){return h(!0)},verticalLayout:p}),c?(0,r.jsx)($t,{}):(0,r.jsx)(rn,{isOpenSidebar:u,onCloseSidebar:function(){return h(!1)}}),(0,r.jsx)(m.Z,{component:"main",sx:{px:{lg:2},pt:{xs:"".concat(T.yf.MOBILE_HEIGHT+24,"px"),lg:"".concat(T.yf.DASHBOARD_DESKTOP_HEIGHT+80,"px"),xl:"".concat(T.yf.DASHBOARD_DESKTOP_HEIGHT+40,"px")},pb:{xs:"".concat(T.yf.MOBILE_HEIGHT+24,"px"),lg:"".concat(T.yf.DASHBOARD_DESKTOP_HEIGHT+24,"px"),xl:"".concat(T.yf.DASHBOARD_DESKTOP_HEIGHT+40,"px")}},children:t})]}):(0,r.jsxs)(m.Z,{sx:{display:{md:"flex"},minHeight:{md:1}},children:[(0,r.jsx)(Gt,{isCollapse:a,onOpenSidebar:function(){return h(!0)}}),(0,r.jsx)(rn,{isOpenSidebar:u,onCloseSidebar:function(){return h(!1)}}),(0,r.jsx)(on,{collapseClick:o,children:t}),(0,r.jsx)(nt,{isCollapse:a})]})}var sn=(0,u.ZP)(Ne.Z,{shouldForwardProp:function(e){return"isCollapse"!==e&&"isOffset"!==e&&"verticalLayout"!==e}})((function(e){var t=e.isCollapse,n=e.isOffset,r=e.verticalLayout,i=e.theme;return(0,S.Z)((0,w.Z)({},(0,_.Z)(i).bgBlur()),(0,d.Z)({boxShadow:"none",height:T.yf.MOBILE_HEIGHT,zIndex:i.zIndex.appBar+1,transition:i.transitions.create(["width","height"],{duration:i.transitions.duration.shorter})},i.breakpoints.up("lg"),(0,w.Z)({height:T.yf.DASHBOARD_DESKTOP_HEIGHT-18,width:"calc(100% - ".concat(T.Au.DASHBOARD_WIDTH+1,"px)")},t&&{width:"calc(100% - ".concat(T.Au.DASHBOARD_COLLAPSE_WIDTH,"px)")},n&&{height:T.yf.DASHBOARD_DESKTOP_OFFSET_HEIGHT},r&&{width:"100%",height:T.yf.DASHBOARD_DESKTOP_OFFSET_HEIGHT,backgroundColor:i.palette.background.default})))}));function ln(e){var t=e.onOpenSidebar,n=e.isCollapse,i=void 0!==n&&n,o=e.verticalLayout,a=void 0!==o&&o,s=k(T.yf.DASHBOARD_DESKTOP_HEIGHT)&&!a,l=(0,C.Z)("up","lg");return(0,r.jsx)(sn,{isCollapse:i,isOffset:s,verticalLayout:a,children:(0,r.jsxs)(Me.Z,{sx:{minHeight:"100% !important",px:{lg:5}},children:[l&&a&&(0,r.jsx)(x.Z,{sx:{mr:2.5}}),!l&&(0,r.jsx)(Y.w_,{onClick:t,sx:{mr:1,color:"text.primary"},children:(0,r.jsx)(D.Z,{icon:"eva:menu-2-fill"})}),(0,r.jsx)(m.Z,{sx:{flexGrow:1}}),(0,r.jsx)(v.Z,{direction:"row",alignItems:"center",spacing:{xs:.5,sm:1.5},children:(0,r.jsx)(St,{})})]})})}var cn=function(e){return(0,r.jsx)(Mt.Z,{src:"/assets/icons/navbar/".concat(e,".svg"),sx:{width:1,height:1}})},dn={user:cn("ic_user"),organization:cn("ic_organization"),ecommerce:cn("ic_ecommerce"),analytics:cn("ic_analytics"),dashboard:cn("ic_dashboard"),onGoing:cn("ic_signature"),contracts:cn("ic_documents"),templates:cn("ic_template"),personbox:cn("ic_contract_box_person"),orgbox:cn("ic_contract_box_org"),inbox:cn("ic_inbou
1nd"),outbox:cn("ic_outbound"),preparing:cn("ic_preparing"),starred:cn("ic_star"),trash:cn("ic_trash"),all:cn("ic_all")};function un(){return hn.apply(this,arguments)}function hn(){return(hn=(0,Ve.Z)((function(){return(0,Je.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,a.getSession)()];case 1:return e.sent(),[2,[{subheader:"My Info",items:[{title:"\uc870\uc9c1 \uc778\uc99d \uc2e0\uccad",path:"/admin/certify",icon:dn.organization},{title:"\uc0ac\uc6a9\uc790 \ubaa9\ub85d",path:"/admin/users",icon:dn.user}]}]]}}))}))).apply(this,arguments)}var pn=(0,u.ZP)("div")((function(e){var t=e.theme;return(0,d.Z)({},t.breakpoints.up("lg"),{flexShrink:0,transition:t.transitions.create("width",{duration:t.transitions.duration.shorter})})}));function xn(e){var t=e.isOpenSidebar,n=e.onCloseSidebar,a=(0,h.Z)(),s=(0,o.useRouter)().pathname,l=(0,C.Z)("up","lg"),c="light"===a.palette.mode,d=(0,$e.Z)(),u=d.isCollapse,p=d.collapseClick,f=d.collapseHover,g=d.onHoverEnter,b=d.onHoverLeave,Z=(0,i.useState)([{subheader:"",items:[{title:"",path:""}]}]),j=Z[0],y=Z[1];(0,i.useEffect)((function(){t&&n();var e=function(){var e=(0,Ve.Z)((function(){var e;return(0,Je.__generator)(this,(function(t){switch(t.label){case 0:return[4,un()];case 1:return e=t.sent(),y(e),[2]}}))}));return function(){return e.apply(this,arguments)}}();e()}),[s]);var k=(0,r.jsxs)(X.Z,{sx:{backgroundColor:c?a.palette.primary.main:"inherit",height:1,"& .simplebar-content":{height:1,display:"flex",flexDirection:"column"}},children:[(0,r.jsx)(v.Z,{sx:(0,w.Z)({backgroundColor:c?a.palette.primary.main:"inherit",pt:3,pb:2,px:2.5,flexShrink:0},u&&{alignItems:"center"}),children:(0,r.jsx)(v.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:c?(0,r.jsx)(tn.Z,{}):(0,r.jsx)(x.Z,{})})}),(0,r.jsx)(ke,{navConfig:j,isCollapse:u}),(0,r.jsx)(m.Z,{sx:{flexGrow:1}})]});return(0,r.jsxs)(pn,{sx:(0,w.Z)({width:{lg:u?T.Au.DASHBOARD_COLLAPSE_WIDTH:T.Au.DASHBOARD_WIDTH}},p&&{position:"absolute"}),children:[!l&&(0,r.jsx)(ze.ZP,{open:t,onClose:n,PaperProps:{sx:{width:T.Au.DASHBOARD_WIDTH}},children:k}),l&&(0,r.jsx)(ze.ZP,{open:!0,variant:"persistent",onMouseEnter:g,onMouseLeave:b,PaperProps:{sx:(0,w.Z)({width:T.Au.DASHBOARD_WIDTH,borderRightStyle:"dashed",bgcolor:"background.default",transition:function(e){return e.transitions.create("width",{duration:e.transitions.duration.standard})}},u&&{width:T.Au.DASHBOARD_COLLAPSE_WIDTH},f&&(0,S.Z)((0,w.Z)({},(0,_.Z)(a).bgBlur()),{boxShadow:function(e){return e.customShadows.z24}}))},children:k})]})}var fn=(0,u.ZP)(Ne.Z)((function(e){var t=e.theme;return{transition:t.transitions.create("top",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.shorter}),width:"100%",position:"fixed",zIndex:t.zIndex.appBar,padding:t.spacing(1,0),boxShadow:t.customShadows.z8,top:T.yf.DASHBOARD_DESKTOP_OFFSET_HEIGHT,backgroundColor:t.palette.background.default}}));function gn(){var e=(0,i.useState)([{subheader:"",items:[{title:"",path:""}]}]),t=e[0],n=e[1];return(0,i.useEffect)((function(){var e=function(){var e=(0,Ve.Z)((function(){var e;return(0,Je.__generator)(this,(function(t){switch(t.label){case 0:return[4,un()];case 1:return e=t.sent(),n(e),[2]}}))}));return function(){return e.apply(this,arguments)}}();e()})),(0,r.jsx)(fn,{children:(0,r.jsx)(b.Z,{maxWidth:!1,children:(0,r.jsx)(Pe,{navConfig:t})})})}var mn=(0,i.memo)(gn),bn=(0,u.ZP)("main",{shouldForwardProp:function(e){return"collapseClick"!==e}})((function(e){var t=e.collapseClick,n=e.theme;return(0,d.Z)({flexGrow:1,paddingTop:T.yf.MOBILE_HEIGHT+24,paddingBottom:T.yf.MOBILE_HEIGHT+24},n.breakpoints.up("lg"),(0,w.Z)({paddingLeft:16,paddingRight:16,paddingTop:T.yf.DASHBOARD_DESKTOP_HEIGHT+24,paddingBottom:T.yf.DASHBOARD_DESKTOP_HEIGHT+24,width:"calc(100% - ".concat(T.Au.DASHBOARD_WIDTH,"px)"),transition:n.transitions.create("margin-left",{duration:n.transitions.duration.shorter})},t&&{marginLeft:T.Au.DASHBOARD_COLLAPSE_WIDTH}))}));function vn(e){var t=e.children,n=(0,$e.Z)(),o=n.collapseClick,a=n.isCollapse,s=(0,H.Z)().themeLayout,l=(0,C.Z)("up","lg"),c=(0,i.useState)(!1),d=c[0],u=c[1],h="vertical"===s;return h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ln,{onOpenSidebar:function(){return u(!0)},verticalLayout:h}),l?(0,r.jsx)(mn,{}):(0,r.jsx)(xn,{isOpenSidebar:d,onCloseSidebar:function(){u(!1)}}),(0,r.jsx)(m.Z,{component:"main",sx:{px:{lg:2},pt:{xs:"".concat(T.yf.MOBILE_HEIGHT+24,"px"),lg:"".concat(T.yf.DASHBOARD_DESKTOP_HEIGHT+80,"px")},pb:{xs:"".concat(T.yf.MOBILE_HEIGHT+24,"px"),lg:"".concat(T.yf.DASHBOARD_DESKTOP_HEIGHT+24,"px")}},children:t})]}):(0,r.jsxs)(m.Z,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[(0,r.jsx)(ln,{isCollapse:a,onOpenSidebar:function(){return u(!0)}}),(0,r.jsx)(xn,{isOpenSidebar:d,onCloseSidebar:function(){return u(!1)}}),(0,r.jsx)(bn,{collapseClick:o,children:t})]})}var Zn=(0,u.ZP)("header")((function(e){var t=e.theme;return(0,d.Z)({top:0,left:0,lineHeight:0,width:"100%",position:"absolute",padding:t.spacing(3,3,0)},t.breakpoints.up("sm"),{padding:t.spacing(5,5,0)})}));function jn(e){var t=e.children;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Zn,{id:"header",children:(0,r.jsx)(x.Z,{})}),t,(0,r.jsx)(y,{})]})}var yn=n(51359),wn=n(98865),Sn=(0,u.ZP)(m.Z)((function(){return{height:"30px",paddingLeft:"10px",paddingRight:"10px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}})),kn=(0,u.ZP)(g.Z)((function(){return{fontFamily:f.TC,fontSize:"11px",fontWeight:500}})),Cn=["1. \ubb38\uc11c \uc5c5\ub85c\ub4dc","2. \uc11c\uba85\ub780 \ub123\uae30","3. \uc800\uc7a5"];function _n(){var e=(0,Q.v9)((function(e){return e.contractSteps})).activeStep,t=(0,o.useRouter)(),n=(0,Q.I0)(),a=(0,i.useState)(0),s=(a[0],a[1]);(0,i.useEffect)((function(){"/dashboard/contract/upload-unique"===t.pathname?s(0):"/dashboard/contract/setting-unique"===t.pathname?s(1):"/dashboard/contract/save"===t.pathname&&s(2)}));var l=function(e,r){if(r){var i=t.asPath.indexOf("?"),o="";i>-1&&(o=t.asPath.substring(i)),t.push("".concat(function(e){switch(e){case 0:return n((0,wn.pw)(0)),"/dashboard/contract/upload-unique";case 1:return n((0,wn.pw)(1)),"/dashboard/contract/setting-unique";case 2:return n((0,wn.pw)(2)),"/dashboard/contract/save";default:return"/dashboard/main"}}(e)).concat(o))}};return(0,r.jsx)(yn.Z,{activeStep:e,color:"white",sx:{height:["38px","auto"],width:"100%",paddingX:"20px",gap:["6px","8px","8px","10px"],justifyContent:"center",alignItems:"end"},children:Cn.map((function(t,n){return(0,r.jsx)(Sn,{onClick:function(){return l(n,n<e)},sx:{paddingBottom:["5px","15px"],position:"relative",borderBottom:n===e?"3px ".concat((0,U.Fq)("#fff",.8)," solid"):"3px","&:hover":{cursor:n<e?"pointer":"default"}},children:(0,r.jsx)(kn,{sx:{color:e===n?"#eee":"#8B8B8B",fontSize:["14px","15px","16px","16px"],fontWeight:"400"},children:t})},n)}))})}function Hn(){var e=(0,o.useRouter)(),t=e.query.token,n=function(){"/dashboard/contract/setting-unique"===e.pathname?e.push("/dashboard/contract/upload-unique"):"/dashboard/contract/setting-bulk"===e.pathname?e.push("/dashboard/contract/upload-bulk"):"/dashboard/contract/upload-unique"===e.pathname||"/dashboard/contract/upload-bulk"===e.pathname?e.push("/dashboard/main"):e.back()},i=function(){e.push("/dashboard/main")};return(0,C.Z)("up","sm")?(0,r.jsxs)(m.Z,{display:"flex",flexDirection:"row",alignItems:"center",sx:{background:"linear-gradient(180deg, #282C30 100%, #191F24 100%)",position:"absolute",left:"0",top:"0",width:"100%",height:[T.NZ.HIEHGT_SX,T.NZ.HIEHGT_SM,T.NZ.HIEHGT_MD,T.NZ.HIEHGT_LG,T.NZ.HIEHGT_XL]},children:[("undefined"===t||!t)&&(0,r.jsx)(It.Z,{onClick:n,sx:{marginLeft:["5px","10px","10px","15px","18px"]},children:(0,r.jsx)(D.Z,{icon:"fluent-mdl2:back",fontSize:{xs:"17px",sm:"17px",md:"18px",lg:"18px"},color:(0,U.Fq)("#eee",.7)})}),(0,r.jsx)(m.Z,{sx:{flexGrow:1,width:"100%",height:"100%",display:"flex",flexDirection:"row",justifyContent:"center"},children:(0,r.jsx)(_n,{})}),("undefined"===t||!t)&&(0,r.jsx)(It.Z,{onClick:i,sx:{marginRight:["5px","10px","10px","15px","18px"]},children:(0,r.jsx)(D.Z,{icon:"ph:x-light",fontSize:["20px","20px","20px","20px"],color:(0,U.Fq)("#eee",.7)})})]}):(0,r.jsxs)(v.Z,{sx:{position:"absolute",left:"0",top:"0",width:"100%",height:T.NZ.HIEHGT_SX},children:[(0,r.jsxs)(v.Z,{sx:{height:"40px",backgroundColor:"#282C30"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,r.jsx)(It.Z,{onClick:n,sx:{marginLeft:["5px","10px","10px","15px","18px"]},children:(0,r.jsx)(D.Z,{icon:"fluent-mdl2:back",fontSize:{xs:"17px",sm:"17px",md:"18px",lg:"18px"},color:(0,U.Fq)("#eee",.7)})}),(0,r.jsx)(tn.b,{disabledLink:!0}),("undefined"===t||""===t)&&(0,r.jsx)(It.Z,{onClick:i,sx:{marginRight:["5px","10px","10px","15px","18px"]},children:(0,r.jsx)(D.Z,{icon:"ph:x-light",fontSize:["20px","20px","20px","20px"],color:(0,U.Fq)("#eee",.7)})})]}),(0,r.jsx)(v.Z,{sx:{height:"40px",alignItems:"center",backgroundColor:"#33373A",borderTop:"1px solid ".concat((0,U.Fq)("#6C7277",.24))},direction:"row",justifyContent:"center",alignItems:"center",children:(0,r.jsx)(_n,{})})]})}function In(e){var t=e.children;return(0,r.jsxs)(m.Z,{sx:{backgroundColor:"#fff",width:"100%",height:"100%"},children:[(0,r.jsx)(Hn,{}),t]})}function Tn(e){var t=e.children;return(0,r.jsx)(r.Fragment,{children:t})}var Dn=(0,u.ZP)(m.Z)((function(){return{height:"30px",paddingLeft:"10px",paddingRight:"10px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}})),On=(0,u.ZP)(g.Z)((function(){return{fontFamily:f.TC,fontSize:"11px",fontWeight:500}})),An=["1. \ubb38\uc11c \uc5c5\ub85c\ub4dc","2. \uc11c\uba85\ub780 \ub123\uae30","3. \uc800\uc7a5"];function En(){var e=(0,Q.v9)((function(e){return e.contractSteps})).activeStep,t=(0,o.useRouter)(),n=(0,Q.I0)(),a=(0,i.useState)(0),s=(a[0],a[1]);(0,i.useEffect)((function(){"/dashboard/contract/upload-bulk"===t.pathname?s(0):"/dashboard/contract/setting-bulk"===t.pathname?s(1):"/dashboard/contract/save-bulk"===t.pathname&&s(2)}));var l=function(e,r){if(r){var i=t.asPath.indexOf("?"),o="";i>-1&&(o=t.asPath.substring(i)),t.push("".concat(function(e){switch(e){case 0:return n((0,wn.pw)(0)),"/dashboard/contract/upload-bulk";case 1:return n((0,wn.pw)(1)),"/dashboard/contract/setting-bulk";case 2:return n((0,wn.pw)(2)),"/dashboard/contract/save-bulk";default:return"/dashboard/main"}}(e)).concat(o))}};return(0,r.jsx)(yn.Z,{activeStep:e,color:"white",sx:{height:["38px","auto"],width:"100%",paddingX:"20px",gap:["6px","8px","8px","10px"],justifyContent:"center",alignItems:"end"},children:An.map((function(t,n){return(0,r.jsx)(Dn,{onClick:function(){return l(n,n<e)},sx:{paddingBottom:["5px","15px"],position:"relative",borderBottom:n===e?"3px ".concat((0,U.Fq)("#fff",.8)," solid"):"3px","&:hover":{cursor:n<e?"pointer":"default"}},children:(0,r.jsx)(On,{sx:{color:e===n?"#eee":"#8B8B8B",fontSize:["14px","15px","16px","16px"],fontWeight:"400"},children:t})},n)}))})}function Rn(){var e=(0,o.useRouter)(),t=e.query.token,n=function(){"/dashboard/contract/setting-unique"===e.pathname?e.push("/dashboard/contract/upload-unique"):"/dashboard/contract/setting-bulk"===e.pathname?e.push("/dashboard/contract/upload-bulk"):"/dashboard/contract/upload-unique"===e.pathname||"/dashboard/contract/upload-bulk"===e.pathname?e.push("/dashboard/main"):e.back()},i=function(){e.push("/dashboard/main")};return(0,C.Z)("up","sm")?(0,r.jsxs)(m.Z,{display:"flex",flexDirection:"row",alignItems:"center",sx:{background:"linear-gradient(180deg, #282C30 100%, #191F24 100%)",position:"absolute",left:"0",top:"0",width:"100%",height:[T.NZ.HIEHGT_SX,T.NZ.HIEHGT_SM,T.NZ.HIEHGT_MD,T.NZ.HIEHGT_LG,T.NZ.HIEHGT_XL]},children:[("undefined"===t||!t)&&(0,r.jsx)(It.Z,{onClick:n,sx:{marginLeft:["5px","10px","10px","15px","18px"]},children:(0,r.jsx)(D.Z,{icon:"fluent-mdl2:back",fontSize:{xs:"17px",sm:"17px",md:"18px",lg:"18px"},color:(0,U.Fq)("#eee",.7)})}),(0,r.jsx)(m.Z,{sx:{flexGrow:1,width:"100%",height:"100%",display:"flex",flexDirection:"row",justifyContent:"center"},children:(0,r.jsx)(_n,{})}),("undefined"===t||!t)&&(0,r.jsx)(It.Z,{onClick:i,sx:{marginRight:["5px","10px","10px","15px","18px"]},children:(0,r.jsx)(D.Z,{icon:"ph:x-light",fontSize:["20px","20px","20px","20px"],color:(0,U.Fq)("#eee",.7)})})]}):(0,r.jsxs)(v.Z,{sx:{position:"absolute",left:"0",top:"0",width:"100%",height:T.NZ.HIEHGT_SX},children:[(0,r.jsxs)(v.Z,{sx:{height:"40px",backgroundColor:"#282C30"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,r.jsx)(It.Z,{onClick:n,sx:{marginLeft:["5px","10px","10px","15px","18px"]},children:(0,r.jsx)(D.Z,{icon:"fluent-mdl2:back",fontSize:{xs:"17px",sm:"17px",md:"18px",lg:"18px"},color:(0,U.Fq)("#eee",.7)})}),(0,r.jsx)(tn.b,{disabledLink:!0}),("undefined"===t||""===t)&&(0,r.jsx)(It.Z,{onClick:i,sx:{marginRight:["5px","10px","10px","15px","18px"]},children:(0,r.jsx)(D.Z,{icon:"ph:x-light",fontSize:["20px","20px","20px","20px"],color:(0,U.Fq)("#eee",.7)})})]}),(0,r.jsx)(v.Z,{sx:{height:"40px",alignItems:"center",backgroundColor:"#33373A",borderTop:"1px solid ".concat((0,U.Fq)("#6C7277",.24))},direction:"row",justifyContent:"center",alignItems:"center",children:(0,r.jsx)(En,{})})]})}function Pn(e){var t=e.children;return(0,r.jsxs)(m.Z,{sx:{backgroundColor:"#fff",width:"100%",height:"100%"},children:[(0,r.jsx)(Rn,{}),t]})}function Bn(e){var t=e.variant,n=void 0===t?"dashboard":t,i=e.children;return"logoOnly"===n?(0,r.jsxs)(jn,{children:[" ",i," "]}):"main"===n?(0,r.jsx)(Ye,{children:i}):"logoOnlyWithAuthGard"==n?(0,r.jsx)(c,{children:(0,r.jsxs)(jn,{children:[" ",i," "]})}):"contract"==n?(0,r.jsx)(c,{children:(0,r.jsxs)(In,{children:[" ",i," "]})}):"bulk"==n?(0,r.jsx)(c,{children:(0,r.jsxs)(Pn,{children:[" ",i," "]})}):"contractWithoutAuth"==n?(0,r.jsxs)(In,{children:[" ",i," "]}):"signee"==n?(0,r.jsxs)(Tn,{children:[" ",i," "]}):"admin"==n?(0,r.jsx)(c,{children:(0,r.jsxs)(vn,{children:[" ",i," "]})}):(0,r.jsx)(c,{children:(0,r.jsxs)(an,{children:[" ",i," "]})})}},71415:function(e,t,n){n.r(t),n.d(t,{__N_SSP:function(){return H},default:function(){return I}});var r=n(14924),i=n(85893),o=n(50122),a=n(15861),s=n(66242),l=n(90948),c=n(41664),d=n.n(c),u=n(11163),h=n(97349),p=n(74608),x=n(61582),f=n(27303),g=n(10653),m=n(96259),b=n(81032),v=n(43795),Z=n(46574),j=n(26447),y=n(87357),w=(0,l.ZP)("div")((function(e){var t=e.theme;return(0,r.Z)({},t.breakpoints.up("md"),{display:"flex"})})),S=(0,l.ZP)("header")((function(e){var t=e.theme;return(0,r.Z)({top:0,zIndex:9,lineHeight:0,width:"100%",display:"flex",alignItems:"center",position:"absolute",padding:t.spacing(3),justifyContent:"space-between"},t.breakpoints.up("md"),{alignItems:"flex-start",padding:t.spacing(7,5,0,7)})})),k=(0,l.ZP)(s.Z)((function(e){return{width:"100%",paddingLeft:"30px",maxWidth:464,display:"flex",flexDirection:"column",justifyContent:"center",margin:e.theme.spacing(2,0,2,2)}})),C=(0,l.ZP)("div")((function(e){return{maxWidth:480,margin:"auto",minHeight:"100vh",display:"flex",justifyContent:"center",flexDirection:"column",padding:e.theme.spacing(12,0)}})),_=(0,l.ZP)("span")((function(e){e.theme;return{fontFamily:v.TC,fontWeight:500,fontSize:"28px"}})),H=!0;function I(e){var t=(0,u.useRouter)().query.callbackUrl,n=(0,g.Z)("up","sm"),r=(0,g.Z)("up","md");return(0,i.jsx)(f.Z,{children:(0,i.jsx)(x.Z,{title:"Login",children:(0,i.jsxs)(w,{children:[(0,i.jsxs)(S,{children:[(0,i.jsx)(p.Z,{}),n&&(0,i.jsxs)(a.Z,{variant:"body2",sx:{mt:{md:-2}},children:["\uacc4\uc815\uc774 \uc5c6\uc73c\uc2e0\uac00\uc694? ","",(0,i.jsx)(d(),{href:m.EE.register,passHref:!0,children:(0,i.jsx)(o.Z,{variant:"subtitle2",children:"\ud68c\uc6d0\uac00\uc785"})})]})]}),r&&(0,i.jsxs)(k,{children:[(0,i.jsxs)(_,{sx:{mt:10,mb:5},children:["\uc548\ub155\ud558\uc138\uc694. ",(0,i.jsx)("br",{}),(0,i.jsx)(_,{sx:{color:"primary.main"},children:"All-In-One \xa0"}),"\uacc4\uc57d \uc11c\ube44\uc2a4 ",(0,i.jsx)("br",{}),(0,i.jsx)(_,{sx:{color:"primary.main"},children:"\ucf54\uba54\uc774\ud06c"}),"\uc785\ub2c8\ub2e4!"]}),(0,i.jsx)(h.Z,{visibleByDefault:!0,disabledEffect:!0,src:"/assets/illustrations/illustration_login.png",alt:"login"})]}),(0,i.jsx)(Z.Z,{maxWidth:"sm",children:(0,i.jsxs)(C,{children:[(0,i.jsx)(j.Z,{direction:"row",alignItems:"center",sx:{mb:2},children:(0,i.jsx)(y.Z,{sx:{flexGrow:1},children:(0,i.jsx)(a.Z,{sx:{fontWeight:500},variant:"h4",gutterBottom:!0,children:"\ub85c\uad
1f8\uc778"})})}),(0,i.jsx)(b.U,{csrfToken:e.csrfToken,callbackUrl:t}),!n&&(0,i.jsxs)(a.Z,{variant:"body2",align:"center",sx:{mt:3},children:["\uacc4\uc815\uc774 \uc5c6\uc73c\uc2e0\uac00\uc694?"," ",(0,i.jsx)(d(),{href:m.EE.register,passHref:!0,children:(0,i.jsx)(o.Z,{variant:"subtitle2",children:"\ud68c\uc6d0\uac00\uc785"})})]})]})})]})})})}},55172:function(e,t,n){n.d(t,{Z:function(){return p},z:function(){return x}});var r=n(26042),i=n(85893),o=n(69661),a=n(87357),s=n(18987),l=n(59334),c=n(18972),d=n(33299),u=n(74685),h=n(84855);function p(e){var t=e.menuSelectHandler,n=e.dataFiltered,r=(0,d.useSession)().data;return(0,i.jsx)(h.Z,{sx:{height:312,p:1,"& .MuiMenuItem-root":{px:1.5,height:52,borderRadius:.75}},children:n&&n.map((function(e,n){var o=e.no,d=e.name,u=e.thumb_url,h=e.org_no,p=e.avatar_color,f=e.mail,g=e.related_email;return(0,i.jsx)(a.Z,{children:(0,i.jsxs)(c.Z,{sx:{display:Number(r.user.userNo)===Number(o)?"none":"default"},onClick:function(){return t(Number(o),d,u,p||"")},disabled:!!h,children:[(0,i.jsx)(s.Z,{sx:{position:"relative"},children:(0,i.jsx)(x,{imageUrl:u,avatarColor:p||"",name:d,alt:d})}),(0,i.jsx)(l.Z,{primaryTypographyProps:{typography:"subtitle2",mb:.25},secondaryTypographyProps:{typography:"caption"},primary:d.length>23?d.substring(0,23)+"...":d,secondary:g||f})]})},n)}))})}var x=function(e){var t=e.imageUrl,n=e.avatarColor,a=e.name,s=e.alt,l=e.sx;return(0,i.jsx)(o.Z,{src:t?"".concat("https://comake-avatar.s3.ap-northeast-2.amazonaws.com/").concat(t):void 0,alt:s,sx:(0,r.Z)({backgroundColor:n,color:n?(0,u.HO)(n):null},l),children:a?a.substring(0,1):void 0})}},20727:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(41796);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"bottom";return{top:"to top",right:"to right",bottom:"to bottom",left:"to left"}[e]}function o(e){return{bgBlur:function(t){var n=(null===t||void 0===t?void 0:t.color)||(null===e||void 0===e?void 0:e.palette.background.default)||"#000000",i=(null===t||void 0===t?void 0:t.blur)||6,o=(null===t||void 0===t?void 0:t.opacity)||.8;return{backdropFilter:"blur(".concat(i,"px)"),WebkitBackdropFilter:"blur(".concat(i,"px)"),backgroundColor:(0,r.Fq)(n,o)}},bgGradient:function(e){var t=i(null===e||void 0===e?void 0:e.direction),n=(null===e||void 0===e?void 0:e.startColor)||"".concat((0,r.Fq)("#000000",0)," 0%"),o=(null===e||void 0===e?void 0:e.endColor)||"#000000 75%";return{background:"linear-gradient(".concat(t,", ").concat(n,", ").concat(o,");")}},bgImage:function(t){var n=(null===t||void 0===t?void 0:t.url)||"/assets/bg_gradient.jpg",o=i(null===t||void 0===t?void 0:t.direction),a=(null===t||void 0===t?void 0:t.startColor)||(0,r.Fq)((null===e||void 0===e?void 0:e.palette.grey[900])||"#000000",.88),s=(null===t||void 0===t?void 0:t.endColor)||(0,r.Fq)((null===e||void 0===e?void 0:e.palette.grey[900])||"#000000",.88);return{background:"linear-gradient(".concat(o,", ").concat(a,", ").concat(s,"), url(").concat(n,")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}}}}},69127:function(e,t,n){n.d(t,{DM:function(){return c},DY:function(){return s},Pp:function(){return a},fR:function(){return l}});var r=n(32912),i=n(2141),o=n(3006);function a(e){return e?(0,r.Z)(new Date(e),"yyyy-MM-dd HH:mm"):"-"}function s(e){var t=new Date(e),n=(Date.now()-t.getTime())/1e3;return n<60?"\ubc29\uae08 \uc804":n<518400?(0,i.Z)(new Date(e),{addSuffix:!0,locale:o.Z}):(0,r.Z)(t,"PPP",{locale:o.Z})}function l(e){return(0,r.Z)(new Date(e),"yyyyMMddhhmmss")}function c(e){var t=new Date(e);return t.setHours(t.getHours()+9),new Date(t)}}}]);
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.