1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="764133d5-cd99-4927-9a91-535d09d1fc6d",e._sentryDebugIdIdentifier="sentry-dbid-764133d5-cd99-4927-9a91-535d09d1fc6d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9098],{6243:(e,t,r)=>{r.d(t,{vj:()=>D,sO:()=>u,jh:()=>eb,TO:()=>eA,P5:()=>h.P5,Zx:()=>z,Os:()=>Y,EF:()=>h.EF,tx:()=>g,RC:()=>f.RC,gK:()=>eT,r1:()=>ej,lH:()=>e2,HX:()=>e7,$z:()=>e6,Qc:()=>e9,bq:()=>tc,hK:()=>td,bx:()=>tl,qk:()=>L,z8:()=>to.z});var n=r(90049),i=r(11963),l=r(25963),o=r(85801),a=r(62723),s=r(75883),c=r(62443);let d=e=>{let{colors:t}=e;return(0,o.AH)(a.U.center(),";width:56px;height:56px;border:solid 1px ",t.divider,";border-radius:50%;background-color:",t.background,";z-index:",c.fE4.back,";")},u=e=>{let{onClick:t,...r}=e,o=(0,i.useRouter)(),a=(0,l.useCallback)(e=>{t?t(e):o.back()},[o,t]);return(0,n.Y)(s.oq,{css:[d,c.eIw],onClick:a,...r})};var h=r(64405);let g=e=>{let{children:t,header:r,fixedHeight:i=!0,fullWidth:l,className:s}=e;return(0,n.Y)("div",{css:[[(0,a.U)({direction:"column",justify:"flex-start"}),l?c.QGu:c.o04,c.gBW.paddingTop(),c.gBW.paddingBottom(),r?(0,o.AH)("min-height:calc(100dvh - var(--global-header-height) - var(--global-history-bar-height,0px));"):(0,o.AH)("min-height:calc(100dvh - 3px);")],i&&[(0,o.AH)(c.ChW,"{height:auto;}"),r?(0,o.AH)("height:calc(100dvh - var(--global-header-height) - var(--global-history-bar-height,0px));"):(0,o.AH)("height:calc(100dvh - 3px);")],!l&&c.ER],className:s,children:t})};var p=r(73209),f=r(33973);c.fE4.alert,c.ChW,c.fE4.button;var m=r(10487);let v=(0,o.AH)("position:absolute;top:0;"),w=e=>{let{...t}=e;return(0,n.Y)(s.DL,{css:[v],...t})},b=(0,o.AH)("display:flex;justify-content:center;margin:0;",c.gBW.paddingBottom()),y=(0,o.AH)("position:relative;width:100%;"),x=(0,o.AH)("position:relative;display:flex;min-height:640px;",c.lYj.shadow,";height:max-content;flex-direction:column;",c.gBW.paddingBottom()," min-height:100dvh;padding-top:0;"),Y=e=>{let{back:t,fullWidth:r,children:i,className:l}=e;return(0,n.Y)("div",{css:[b],children:(0,n.FD)("div",{css:[y,r&&(0,m.E)({width:"100dvw"})],children:[(0,n.Y)(w,{visible:null!=t&&t}),(0,n.Y)("div",{css:[x],className:l,children:i})]})})};var k=r(31462),C=r(3425),E=r.n(C),S=r(56821);let D=(0,l.memo)(e=>{let{channelKey:t="1e05d7dd-9418-4312-9cb3-bc8b07df7475",user:r,hideButton:i,initHideButton:o}=e,a=(0,p.NDy)(r);return(0,l.useEffect)(()=>{(0,p.Jwl)(r)},[r]),(0,l.useEffect)(()=>{(0,k.A)(i)||(0,p.R7f)(!i)},[i]),(0,l.useEffect)(()=>{!(0,k.A)(o)&&o&&window.ChannelIO&&"function"==typeof window.ChannelIO&&window.ChannelIO("onHideMessenger",()=>{(0,p.R7f)(!1)})},[o]),(0,n.Y)(E(),{id:"channel_talk",dangerouslySetInnerHTML:{__html:(e=>{let{key:t,profile:r,initHideButton:n}=e;return"(function() {\n var w = window;\n if (w.ChannelIO) {\n return (window.console.error || window.console.log || function(){})('ChannelIO script included twice.');\n }\n var ch = function() {\n ch.c(arguments);\n };\n ch.q = [];\n ch.c = function(args) {\n ch.q.push(args);\n };\n w.ChannelIO = ch;\n function l() {\n if (w.ChannelIOInitialized) {\n return;\n }\n w.ChannelIOInitialized = true;\n var s = document.createElement('script');\n s.type = 'text/javascript';\n s.async = true;\n s.src = 'https://cdn.channel.io/plugin/ch-plugin-web.js';\n s.charset = 'UTF-8';\n var x = document.getElementsByTagName('script')[0];\n if (x.parentNode) {\n x.parentNode.insertBefore(s, x);\n }\n }\n if (document.readyState === 'complete') {\n l();\n } else if (window.attachEvent) {\n window.attachEvent('onload', l);\n } else {\n window.addEventListener('DOMContentLoaded', l, false);\n window.addEventListener('load', l, false);\n }\n })();\n ChannelIO('boot', {\n \"pluginKey\": \"".concat(t,'",\n "hideChannelButtonOnBoot": ').concat(n,',\n "zIndex": ').concat(c.fE4.channel_talk,',\n "profile": ').concat(r,"\n });\n ")})({key:t,profile:JSON.stringify((0,S.ovm)(a)),initHideButton:o})}})});D.displayName="ChannelTalkScript";var P=r(40162);class A{positionMove(e,t){for(let r of this.points)r.x-=e,r.y-=t}setScale(e,t){for(let r of this.points)r.x*=e,r.y*=t}constructor(e){this.points=[],this.threshold=10,this.isDrawing=!0,this.isSelected=!1,this.isDragging=!1,this.type=e}}class M{render(e){let{x:t,y:r}=this.getPoint();e.strokeStyle=P.tL.primary,e.fillStyle="#fff",e.lineWidth=2,e.beginPath(),e.arc(t,r,8,0,2*Math.PI),e.stroke(),e.fill(),e.closePath();e.strokeStyle=P.tL.primary,e.lineWidth=1,e.beginPath(),e.moveTo(t-8+5,r-8+5),e.lineTo(t+8-5,r+8-5),e.moveTo(t+8-5,r-8+5),e.lineTo(t-8+5,r+8-5),e.stroke(),e.closePath()}contains(e,t){let r=Math.abs(this.getPoint().x-e),n=Math.abs(this.getPoint().y-t);return r<8&&n<8}constructor(e){this.getPoint=e.getPoint}}class _{dragMove(e,t){this.dragCallback(e,t)}select(){this.annotation.isSelected=!0}deselect(){this.annotation.isSelected=!1}toggleSelect(){this.annotation.isSelected=!this.annotation.isSelected}render(e){let{x:t,y:r}=this.getPoint();e.save(),e.beginPath(),e.arc(t,r,4,0,2*Math.PI),e.closePath(),e.fillStyle=P.tL.accent,e.fill(),e.restore(
1)}contains(e,t){let r=Math.abs(this.getPoint().x-e),n=Math.abs(this.getPoint().y-t);return r<10&&n<10}constructor(e){this.isHover=!1,this.annotation=e.annotation,this.isHover=!1,this.dragCallback=e.dragCallback,this.cursorStyleCallback=e.cursorStyleCallback,this.getPoint=e.getPoint}}class z extends A{initDragPoints(){let[e,t]=this.points;this.dp1=new _({annotation:this,getPoint:()=>e,cursorStyleCallback:()=>this.cursorStyle(e.x,e.y),dragCallback:(t,r)=>{e.x=t,e.y=r}}),this.dp2=new _({annotation:this,getPoint:()=>({x:t.x,y:e.y}),cursorStyleCallback:()=>this.cursorStyle(t.x,e.y),dragCallback:(r,n)=>{t.x=r,e.y=n}}),this.dp3=new _({annotation:this,getPoint:()=>({x:e.x,y:t.y}),cursorStyleCallback:()=>this.cursorStyle(e.x,t.y),dragCallback:(r,n)=>{e.x=r,t.y=n}}),this.dp4=new _({annotation:this,getPoint:()=>t,cursorStyleCallback:()=>this.cursorStyle(t.x,t.y),dragCallback:(e,r)=>{t.x=e,t.y=r}}),this.dp_12=new _({annotation:this,getPoint:()=>({x:(e.x+t.x)/2,y:e.y}),cursorStyleCallback:()=>this.cursorStyle((e.x+t.x)/2,e.y),dragCallback:(t,r)=>{e.y=r}}),this.dp_34=new _({annotation:this,getPoint:()=>({x:(e.x+t.x)/2,y:t.y}),cursorStyleCallback:()=>this.cursorStyle((e.x+t.x)/2,t.y),dragCallback:(e,r)=>{t.y=r}}),this.dp_13=new _({annotation:this,getPoint:()=>({x:e.x,y:(e.y+t.y)/2}),cursorStyleCallback:()=>this.cursorStyle(e.x,(e.y+t.y)/2),dragCallback:t=>{e.x=t}}),this.dp_24=new _({annotation:this,getPoint:()=>({x:t.x,y:(e.y+t.y)/2}),cursorStyleCallback:()=>this.cursorStyle(t.x,(e.y+t.y)/2),dragCallback:e=>{t.x=e}})}dragParts(){return[this.dp1,this.dp2,this.dp3,this.dp4,this.dp_12,this.dp_34,this.dp_13,this.dp_24]}render(e){e.save(),e.beginPath(),e.fillStyle="#fff",e.strokeStyle=P.tL.accent,e.lineWidth=1;let[t,r]=this.points;e.rect(t.x,t.y,r.x-t.x,r.y-t.y),e.fill(),e.stroke(),e.restore(),this.isSelected&&(this.dp1.render(e),this.dp2.render(e),this.dp3.render(e),this.dp4.render(e),this.dp_12.render(e),this.dp_34.render(e),this.dp_13.render(e),this.dp_24.render(e),this.deleteButton.render(e))}contains(e,t){let{left:r,top:n,width:i,height:l}=this.infos;return e>r-this.threshold&&e<r+i+this.threshold&&t>n-this.threshold&&t<n+l+this.threshold}mouseMove(e,t){this.dp4.dragMove(e,t)}mouseUp(){this.isDrawing=!1;let e=!0,{width:t,height:r}=this.infos;return t<5&&r<5&&(e=!1),e}cursorStyle(e,t){let{left:r,top:n,right:i,bottom:l}=this.infos;return e===(r+i)/2?"ns-resize":t===(n+l)/2?"ew-resize":e===r&&t===n||e===i&&t===l?"nwse-resize":e===i&&t===n||e===r&&t===l?"nesw-resize":"default"}get infos(){let[e,t]=this.points,[r,n,i,l]=[Math.min(e.x,t.x),Math.min(e.y,t.y),Math.max(e.x,t.x),Math.max(e.y,t.y)],[o,a]=[Math.abs(e.x-t.x),Math.abs(e.y-t.y)];return{left:r,top:n,right:i,bottom:l,width:o,height:a}}constructor(e){var t;super("rectangle"),this.points=structuredClone(e.points),this.isDrawing=null==(t=e.drawing)||t,this.initDragPoints(),this.deleteButton=new M({getPoint:()=>{let{top:e,right:t}=this.infos;return{x:t-8,y:e-18}}})}}let F={enableXfa:!0},I={step:.25,min:.5,max:2},H=/^https?:\/\/.+$/,L=e=>{var t;let r=null==(t=e.target.textContent)?void 0:t.trim();r&&H.test(r)&&window.open(r,"_blank","noopener,noreferrer")},W=["failed to fetch","network error","load failed","networkerror when attempting to fetch resource"],N=e=>{let{containerWidth:t}=e;return Math.max(t-2,0)},U=e=>{let{pageWidth:t,pageHeight:r,containerWidth:n,scale:i}=e,l=Math.floor(r*n/t*i);return isNaN(l)?0:l};var R=r(37064),T=r(33177),V=r(2696),O=r(58525),j=r(58335),B=r(32889),G=r(40914),q=r(51631),K=r(95407),J=r.n(K);let Q=J()(async()=>{let e=await Promise.all([r.e(6105),r.e(7760)]).then(r.bind(r,27760));return t=>{let{forwardedRef:r,...i}=t;return(0,n.Y)(e.default,{ref:r,pluginRenderers:e.DocViewerRenderers,css:(0,o.AH)("height:100%;div{height:100%;div{height:100%;}}"),...i})}},{loadableGenerated:{webpack:()=>[null]},ssr:!1});r(59365),r(27051);let X=J()(async()=>{let{Document:e,pdfjs:t}=await Promise.all([r.e(3119),r.e(1243)]).then(r.bind(r,21243));void 0===Promise.withResolvers&&window&&(window.Promise.withResolvers=function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}),t.GlobalWorkerOptions.workerSrc="https://unpkg.com/pdfjs-dist@".concat(t.version,"/legacy/build/pdf.worker.min.mjs");let i="https://unpkg.com/pdfjs-dist@".concat(t.version,"/cmaps/");return t=>{let{forwardedRef:r,...o}=t,a=(0,l.useMemo)(()=>{var e;return{cMapUrl:i,cMapPacked:!0,verbosity:0,...null!=(e=null==o?void 0:o.options)?e:{},rangeChunkSize:655360,disableStream:!0,enableHWA:!0}},[]);return(0,n.Y)(e,{ref:r,...o,options:a})}},{loadableGenerated:{webpack:()=>[null]},ssr:!1}),Z=J()(async()=>{let{Page:e}=await Promise.all([r.e(3119),r.e(1243)]).then(r.bind(r,21243));return t=>{let{forwardedRef:r,...i}=t;return(0,n.Y)(e,{ref:r,...i})}},{loadableGenerated:{webpack:()=>[null]},ssr:!1});var $=r(51403);let ee=e=>{let{canvas:t,event:r}=e,n=t.getBoundingClientRect();return{mouseX:r.clientX-n.left,mouseY:r.clientY-n.top}},et=e=>{let{canvas:t,editorState:r}=e,n=t.getContext("2d");if(n)for(let e of(n.clearRect(0,0,t.width,t.height),r.annotations))e.render(n)},er=(e,t,r)=>[...r].reverse().find(r=>r.contains(e,t))||null,en=e=>({drawingAnnotation:e.find(e=>e.isDrawing),selectedAnnotation:e.find(e=>e.isSelected)}),ei={mouseDown:e=>{let{event:t,editorState:r,canvas:n}=e;r.isMouseDown=!0;let{mouseX:i,mouseY:l}=ee({canvas:n,event:t}),{selectedAnnotation:o}=en(r.annotations);if(o&&o.deleteButton.contains(i,l)){r.annotations=r.annotations.filter(e=>e!==o),et({canvas:n,editorState:r});return}
1r.annotations.forEach(e=>{e.isSelected=!1});let a=er(i,l,r.annotations);if(a)r.prevMouseX=i,r.prevMouseY=l,a.isSelected=!0;else{let e=new z({points:[{x:i,y:l},{x:i,y:l}]});r.annotations.push(e)}et({canvas:n,editorState:r})},mouseMove:e=>{var t,r;let{event:n,editorState:i,canvas:l}=e,{mouseX:o,mouseY:a}=ee({canvas:l,event:n}),s=er(o,a,i.annotations),{drawingAnnotation:c,selectedAnnotation:d}=en(i.annotations),u=null==d?void 0:d.deleteButton.contains(o,a),h=null!=(r=(null!=(t=null==d?void 0:d.dragParts())?t:[]).find(e=>e.contains(o,a)))?r:null;u?l.style.cursor="pointer":h?l.style.cursor=h.cursorStyleCallback():d||!s||s.isDrawing?s?l.style.cursor="move":l.style.cursor="crosshair":l.style.cursor="pointer",c?(c.mouseMove(o,a),et({canvas:l,editorState:i})):d&&i.isMouseDown&&(i.draggingDragPoint=i.draggingDragPoint||h,i.draggingDragPoint?(i.draggingDragPoint.dragMove(o,a),l.style.cursor=i.draggingDragPoint.cursorStyleCallback()):d.positionMove(i.prevMouseX-o,i.prevMouseY-a)),i.prevMouseX=o,i.prevMouseY=a,et({canvas:l,editorState:i})},mouseUp:e=>{let{event:t,editorState:r,canvas:n}=e,{mouseX:i,mouseY:l}=ee({canvas:n,event:t}),{selectedAnnotation:o,drawingAnnotation:a}=en(r.annotations);if(o&&o.mouseUp(i,l),a&&!a.mouseUp(i,l)){let e=r.annotations.findIndex(e=>e===a);r.annotations.splice(e,1)}r.isMouseDown=!1,r.draggingDragPoint=null,r.draggingAnnotation=null,et({canvas:n,editorState:r})},keyDown:e=>{let{event:t,editorState:r,canvas:n}=e;if(t.key===$.Rk.Backspace){let{selectedAnnotation:e}=en(r.annotations);e&&(r.annotations=r.annotations.filter(t=>t!==e),et({canvas:n,editorState:r}))}},draw:et},el=e=>{let{width:t,height:r,scale:i,annotations:o,onAnnotationsChange:a,className:s}=e,c=(0,l.useRef)(null),d=(0,l.useRef)({annotations:o,prevPageWidth:t,prevPageHeight:r,prevMouseX:0,prevMouseY:0,isMouseDown:!1,draggingAnnotation:null,draggingDragPoint:null});return(0,l.useEffect)(()=>{d.current.annotations!==o&&(d.current.annotations=o,c.current&&ei.draw({canvas:c.current,editorState:d.current}))},[o]),(0,l.useEffect)(()=>{if(!c.current||0===t||0===r)return;let{prevPageWidth:e,prevPageHeight:n}=d.current,i=t/(0===e?t:e),l=r/(0===n?r:n);d.current.annotations.forEach(e=>{e.setScale(i,l)}),ei.draw({canvas:c.current,editorState:d.current}),d.current.prevPageWidth=t,d.current.prevPageHeight=r},[t,r,i]),(0,l.useEffect)(()=>{let e=e=>{c.current&&ei.mouseDown({canvas:c.current,editorState:d.current,event:e})},t=e=>{c.current&&ei.mouseMove({canvas:c.current,editorState:d.current,event:e})},r=e=>{c.current&&d.current.isMouseDown&&(ei.mouseUp({canvas:c.current,editorState:d.current,event:e}),a(d.current.annotations))},n=e=>{c.current&&(ei.keyDown({canvas:c.current,editorState:d.current,event:e}),a(d.current.annotations))},i=c.current;return null==i||i.addEventListener("mousedown",e),null==i||i.addEventListener("mousemove",t),window.addEventListener("mouseup",r),document.addEventListener("keydown",n),()=>{null==i||i.removeEventListener("mousedown",e),null==i||i.removeEventListener("mousemove",t),window.removeEventListener("mouseup",r),document.removeEventListener("keydown",n)}},[]),(0,n.Y)("canvas",{ref:c,width:t,height:r,className:s})},eo=(0,o.AH)("position:absolute;left:0;top:0;width:100%;height:100%;z-index:3;"),ea=(0,l.memo)(e=>{let{width:t,scale:r,pageNumber:i,editMode:o,annotations:a,onAnnotationsChange:s}=e,[d,u]=(0,l.useState)({width:0,height:0}),h=t*r;return(0,n.FD)("div",{css:[(0,T.G)("relative")],children:[(0,n.Y)(Z,{renderAnnotationLayer:!0,renderTextLayer:!0,width:t,scale:r,error:(0,n.Y)(n.FK,{}),canvasBackground:"white",noData:(0,n.Y)(c.o5u.Description,{children:"ë°ì´í°ê° ììµëë¤."}),loading:(0,n.Y)("div",{css:[m.E.full,(0,c.x8U)(P.tL.gray_10)]}),pageNumber:i,onLoadSuccess:e=>{u({width:e.originalWidth,height:e.originalHeight})}}),o&&s&&(0,n.Y)(el,{width:h,height:U({pageWidth:d.width,pageHeight:d.height,containerWidth:t,scale:r}),scale:r,annotations:null!=a?a:[],css:eo,onAnnotationsChange:e=>{s(e)}})]})});ea.displayName="FileViewerPdfPageMemo";let es=e=>e>1&&(0,o.AH)("width:",100*e,"%;"),ec=e=>(0,o.AH)("transform:scale(",e,");transform-origin:",e<1?"top center":"top left",";",e>1?"width: ".concat(1/e*100,"%;"):""),ed=e=>{let{fileType:t,url:r,pdf:i,scale:o,width:a,isPdfEditMode:s,pdfEditorInfo:d,errorKind:u,updatePdf:h,updateAnnotations:g,onPresignedExpired:f}=e,{colors:v}=(0,O.u)(),[w,b]=(0,l.useState)(!1),y=e=>{if((e=>{if(403===e.status)return!0;
1if("UnknownErrorException"===e.name){let t=e.message.toLowerCase();return W.some(e=>t.startsWith(e))}return!1})(e)){null==f||f();return}(0,q.l2)(e,"InvalidPDFException"===e.name?"warning":"error")},x=(0,l.useMemo)(()=>u?"url_empty"==u?"미리보기를 ìí 주ì를 íì¸í ì ììµëë¤.":"preview_fail"==u?"미리보기를 ë¶ë¬ì¤ëë° ì¤í¨íìµëë¤.":"preview_not_support"==u?"미리보기 미ì§ì íì¼ì
ëë¤. ë¤ì´ë¡ë í íì¸í´ 주ì¸ì.":"ë¤ì´ë¡ëí´ì ë´ì©ì íì¸í´ 주ì¸ì.":"",[u]);switch(t){case"pdf":return(0,n.Y)(X,{file:r,options:F,loading:w?(0,n.Y)(c.rkz,{description:"í¨ì¤ìë ì
ë ¥ì´ íìí íì¼ ì
ëë¤.\níì¼ì ë¤ì´ë¡ë íì¬ íì¸í´ 주ì¸ì.",buttonTitle:"íì¼ ë¤ì´ë¡ë",css:j.Lc.top(100),onClick:()=>(0,p.yb0)({url:r})}):(0,n.Y)(c.UsE.Center,{css:[m.E.full,j.Ms.y(240),(0,c.x8U)("transparent"),(0,c.O_j)(c.fE4.loading)],children:(0,n.Y)(V.A,{color:v.accent})}),externalLinkTarget:"_blank",onLoadError:y,onSourceError:y,onPassword:(e,t)=>{b(!0),w||(1===t?e(null):alert("ë¹ë°ë²í¸ê° ì¬ë°ë¥´ì§ ììµëë¤."))},onLoadSuccess:e=>{h(e)},children:(0,n.Y)(c.UsE,{direction:"column",align:o>1?"flex-start":"center",gap:16,children:i&&Array.from({length:i.numPages},(e,t)=>{var r,i;return(0,n.Y)(ea,{width:a,pageNumber:t+1,scale:o,editMode:s,annotations:null!=(i=null==(r=d[t])?void 0:r.annotations)?i:[],onAnnotationsChange:e=>{g(e,t)}},"page_index_".concat(t))})})},r);case"image":return(0,n.Y)("div",{css:es(o),children:(0,n.Y)(c.UsE.Center,{css:[(0,j.Ms)(8),ec(o)],children:(0,n.Y)("img",{src:r,alt:"resume",css:[(0,c.Gn4)({width:"100%"}),(0,c.Tvn)("contain")]})})});case"text":return(0,n.Y)("div",{css:es(o),children:(0,n.Y)(c.UsE.Center,{css:[B.N,ec(o)],children:(0,n.Y)("iframe",{src:r,css:[m.E.full],title:"text-viewer"})})});case"doc":return(0,n.Y)("div",{css:[m.E.full,es(o)],children:(0,n.Y)(c.UsE,{css:[(0,j.Ms)(8),m.E.full,ec(o)],children:(0,n.Y)(Q,{prefetchMethod:"GET",documents:[{uri:r}],config:{header:{disableHeader:!0,disableFileName:!0},noRenderer:{overrideComponent:()=>(0,n.Y)(c.UsE.Center,{css:G.c,children:(0,n.Y)(c.o5u.Description,{children:"íì¼ì 보를 ì°¾ì ì ììµëë¤."})})}}})})});case"video":return(0,n.Y)(c.UsE.Center,{css:[(0,j.Ms)(8),B.N],children:(0,n.FD)("video",{controls:!0,width:"100%",children:[(0,n.Y)("source",{src:r}),"í´ë¹ ë¹ëì¤ íì¼ì ì§ìëì§ ììµëë¤."]})});case"audio":return(0,n.Y)(c.UsE.Center,{css:[(0,j.Ms)(8),B.N],children:(0,n.FD)("audio",{controls:!0,children:[(0,n.Y)("source",{src:r,type:"audio/mpeg"}),"í´ë¹ ì¤ëì¤ íì¼ì ì§ìëì§ ììµëë¤."]})});default:return(0,n.FD)(c.UsE.Center,{direction:"column",gap:16,css:[B.N,j.Ms.y(150)],children:[(0,n.Y)(c.o5u.Description,{fontSize:"small",children:x}),"preview_not_support"==u&&(0,n.Y)(c.$nd,{asChild:!0,size:"small",variant:"outline",children:(0,n.Y)("a",{href:r,target:"_blank",rel:"noreferrer",children:"ë¤ì´ë¡ë"})})]})}};var eu=r(66457),eh=r(23236);let eg=(0,l.memo)(e=>{let{scale:t,onZoom:r}=e;return(0,n.FD)(c.UsE,{css:[(0,T.G)("absolute",{top:15,right:15}),(0,c.O_j)(c.fE4.help_popup),c.az1,(0,c.Vqo)("xs")],gap:8,children:[(0,n.Y)(c.K0,{size:24,disabled:t>=I.max,onClick:()=>r("increase"),children:(0,n.Y)(eu.f,{})}),(0,n.Y)(c.K0,{size:24,disabled:t<=I.min,onClick:()=>r("decrease"),children:(0,n.Y)(eh.F,{})})]})});eg.displayName="ZoomControls";var ep=r(56369);let ef="whattime-file-viewer-scale",em=(0,o.AH)("user-select:none;> div{pointer-events:none;}"),ev=(0,o.AH)('&::after{content:"";inset:0;position:absolute;',c.R3G," ",c.PQq.all({color:P.tL.accent,size:2}),"}"),ew=(0,l.memo)((0,l.forwardRef)(function(e,t){let{url:r,isPdfEditMode:i,cacheKey:o,defaultScale:a,disabledDrag:s,initPdfEditorInfo:d,className:u,onPresignedExpired:h}=e,{containerRef:g,pdf:p,scale:f,fileType:v,pdfEditorInfo:w,errorKind:b,updatePdf:y,updatePdfEditorInfo:x,updateScale:Y,resolveMaskingInfo:C,updateAnnotations:E}=(e=>{var t;let{url:r,cacheKey:n,defaultScale:i}=e,[o,a]=(0,S.J$W)(n?"".concat(ef,"-").concat(n):ef),[s,c]=(0,l.useState)(),[d,u]=(0,l.useState)(null!=(t=null!=o?o:i)?t:1),[h,g]=(0,l.useState)({}),[p,f]=(0,l.useState)({}),m=(0,l.useRef)(null),v=(0,l.useRef)(0),w=(0,l.useRef)(0);(0,S.gVR)(()=>{let e=()=>{m.current&&(Math.abs(m.current.offsetHeight-w.current)>50||Math.abs(m.current.offsetWidth-v.current)>50)&&(v.current=m.current.offsetWidth,w.current=m.current.offsetHeight,f({}))},t=new ResizeObserver((0,ep.A)(e,500));return window.addEventListener("resize",(0,ep.A)(e,500)),m.current&&(v.current=m.current.offsetWidth,w.current=m.current.offsetHeight,t.observe(m.current)),()=>{window.removeEventListener("resize",e),m.current?t.unobserve(m.current):t.disconnect()}},[m.current]);let b=(0,l.useMemo)(()=>
1{if(r)return(0,S.IC7)(r)},[r]),y=(0,l.useMemo)(()=>r?(0,S.onG)(r)?"preview_not_support":"preview_fail":"url_empty",[r]),x=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!s)return;let{pdfEditorInfo:t}=e,r=void 0!==t,n=[];for await(let[e,{annotations:o}]of Object.entries(t||h)){var i,l;let{width:t,height:a}=(await s.getPage(+e+1)).getViewport({scale:1}),c=N({containerWidth:null!=(l=null==(i=m.current)?void 0:i.offsetWidth)?l:0}),u=c*d,h=U({pageWidth:t,pageHeight:a,containerWidth:c,scale:d}),g=r?1:t/u,p=r?1:a/h;for(let t of o){if("rectangle"!==t.type)continue;let{left:r,top:i,right:l,bottom:o}=t.infos;n.push({page:+e,left:r*g,top:i*p,right:l*g,bottom:o*p})}}return(0,S.hj7)(n)?n:void 0},Y=async e=>{if(!s)return;let t=Object.entries(e);if((0,S.hj7)(t))for await(let{page:e,annotations:r}of t.map(e=>{let[t,{annotations:r}]=e;return{page:+t,annotations:r}}).flat()){let{width:t,height:n}=(await s.getPage(e+1)).getViewport({scale:1}),i=N({containerWidth:m.current.offsetWidth}),l=U({pageWidth:t,pageHeight:n,containerWidth:i,scale:d}),o=i*d/t,a=l/n;r.forEach(e=>{e.setScale(o,a)})}g(e)};return{containerRef:m,fileType:b,pdf:s,pdfEditorInfo:h,scale:d,errorKind:y,updatePdf:c,updatePdfEditorInfo:Y,updateScale:(e,t)=>{u(r=>{let n="increase"===e?r+t:r-t;return a(n),n})},resolveMaskingInfo:x,updateAnnotations:(e,t)=>{g(r=>{let n={...r};return n[t]={annotations:e},n})}}})({url:r,cacheKey:o,defaultScale:a});(0,R.A)(()=>{y(null)},[r]),(0,l.useEffect)(()=>{i||x({}),i&&p&&x(null!=d?d:{})},[i,p]),(0,l.useImperativeHandle)(t,()=>({getPdf:()=>p,resolveMaskingInfo:C,clearPdfFile:()=>{x({})}}),[C,x,p]);let D=(0,k.A)(g.current)?0:N({containerWidth:g.current.offsetWidth});return(0,n.FD)("div",{css:[(0,T.G)("relative"),m.E.full],children:[(0,n.Y)("div",{ref:g,css:[m.E.full,(0,c.juG)("auto"),c.PQq.radius({radius:10}),c.MS_.shadow8,(0,c.x8U)(P.tL.gray_100),i&&ev,s&&em],className:u,children:(0,n.Y)(ed,{fileType:v,url:r,pdf:p,scale:f,width:D,isPdfEditMode:null!=i&&i,pdfEditorInfo:w,errorKind:b,updatePdf:y,updateAnnotations:E,onPresignedExpired:h})}),!!v&&"video"!==v&&"audio"!==v&&(0,n.Y)(eg,{scale:f,onZoom:e=>Y(e,I.step)})]})}));ew.displayName="FileViewer";let eb=(0,l.forwardRef)(function(e,t){let{url:r,...i}=e,l=(0,S.rhX)(r,(e,t)=>(e&&(0,S.DFT)(e))==(0,S.DFT)(t));return(0,n.Y)(ew,{ref:t,url:r,...i},null!=l?l:r)});var ey=r(22590),ex=r(86739),eY=r(17170);let ek=(0,l.createContext)({variant:"white"}),eC=e=>{let{variant:t,children:r}=e;return(0,n.Y)(ek.Provider,{value:{variant:t},children:r})},eE=()=>(0,l.useContext)(ek);function eS(){let e=(0,ex._)(["\n &:not(:hover) {\n font-weight: 400;\n }\n "]);return eS=function(){return e},e}let eD={white:{hoverBgColor:(0,c.UJo)(c.AgW.gray_900,.04),activeColor:c.AgW.gray_900},dark:{hoverBgColor:(0,c.UJo)(P.tL.white,.08),activeColor:P.tL.white}},eP=[(0,j.Ms)(0),(0,o.AH)('&[data-state="open"]{.toggle-caret{transform:rotate(180deg);}}')],eA=e=>{let{href:t,icon:r,title:l,rightNode:a,active:d=!1,isDropdown:u,...h}=e,g=(0,i.useRouter)(),{colors:p}=(0,O.u)(),{variant:f}=eE(),m=(0,ey.owY)(g.pathname);return(0,n.FD)(s.Ez,{"aria-current":m==t?"page":void 0,tabIndex:-1,href:t,css:[(0,o.AH)("font-size:14px;font-weight:500;min-width:30px;min-height:30px;padding-block:6px;padding-inline:12px;gap:6px;border-radius:4px;color:",p.gray_600,";",c.$_G.large,"{padding-inline:10px;min-width:25px;}",c.bvL,";"),(e=>{let{variant:t,active:r}=e,{hoverBgColor:n,activeColor:i}=eD[t],l=(0,o.AH)("font-weight:500 !important;color:",i,";");return(0,o.AH)(r&&l,";",c.VV6,"{&:hover{",l,";background-color:",n,";}}")})({variant:f,active:d})],...h,children:[r,l,a,u&&(0,n.Y)(eY.a,{weight:"fill",className:"toggle-caret"})]})},eM=e=>{let{link:t,target:r,icon:l,title:a,rightNode:s,active:d,subMenus:u}=e,h=(0,i.useRouter)(),g=(0,ey.owY)(h.pathname);return(0,n.Y)(c.KSe.List,{delayDuration:0,children:(0,n.FD)(c.KSe.Item,{css:[(0,c.O_j)(c.fE4.popup)],children:[(0,n.Y)(c.KSe.Trigger,{css:eP,children:(0,n.Y)(eA,{isDropdown:!0,href:t,target:r,icon:l,title:a,rightNode:s,active:d})}),(0,n.Y)(c.KSe.Content,{css:[c.MV0.nowrap],children:u.map((e,t)=>{var r;let{link:i,title:l,isEqualsPath:a,target:s,rightNode:d}=e,u=null!=(r=(0,S.ma7)(i))?r:i;return(0,n.Y)(eA,{href:i,target:s,title:l,rightNode:d,active:a?g===i:g.startsWith(u),css:[c.JhA.left,(0,m.E)({height:34}),(0,o.AH)(eS())]},t)})})]})})},e_=(e,t)=>
1{var r;if(t.isEqualsPath)return e===t.link;let n=null!=(r=(0,S.ma7)(t.link))?r:t.link;return e.startsWith(n)},ez=(0,o.AH)("position:fixed;bottom:15px;right:15px;padding:4px 8px;background-color:",P.tL.accentLight,";border-radius:4px;z-index:",c.fE4.debug,";opacity:0.6;"),eF=(0,o.AH)("min-width:130px;"),eI=(0,o.AH)("animation:",c.qGl," 0.2s;",c.Ypz,";"),eH={white:{backgroundColor:P.tL.background},dark:{backgroundColor:P.tL.gray_900}},eL=e=>{let{colors:t}=e;return(0,o.AH)("height:calc(var(--global-header-height) + ",c.myf,");z-index:",c.fE4.header,";background-color:",t.background,";border-bottom:1px solid ",t.gray_100,";",c.uyY,";")},eW=(0,o.AH)("display:flex;align-items:center;justify-content:space-between;height:calc(var(--global-header-height) + ",c.myf," - 1px);padding-block:8px;gap:24px;",c.ER,";");var eN=r(18585),eU=r(52307);let eR=(0,o.AH)("background-color:",eH.dark.backgroundColor,";border-color:",c.AgW.gray_700,";",c.AUo,"{",c.UUN,"{border-color:",P.tL.white,";}}"),eT={Root:e=>{let{fullWidth:t,children:r,className:i,variant:l="white"}=e,{colors:a}=(0,O.u)();return(0,n.Y)(eC,{variant:l,children:(0,n.Y)("header",{css:[eL,(e=>{let{variant:t,colors:r}=e,{backgroundColor:n}=eH[t];if("dark"===t)return(0,o.AH)("background-color:",n,";color:",r.white,";border-bottom:0 none;")})({variant:l,colors:a})],className:i,children:(0,n.Y)("div",{css:t?c.p6S:c.o04,children:(0,n.Y)("nav",{"aria-label":"header navigation",css:eW,children:r})})})})},LeftWrap:e=>{let{children:t}=e;return(0,n.Y)(c.UsE.Center,{gap:10,css:c.ZuQ,children:t})},Menu:e=>{let{menus:t}=e,r=(0,i.useRouter)(),l=(0,ey.owY)(r.pathname);return(0,n.Y)("nav",{css:[(0,a.U)("center")],children:t.map((e,t)=>{if(void 0!==e.subMenus){let r=e_(l,e)||e.subMenus.some(e=>e_(l,e));return(0,n.Y)(eM,{link:e.link,target:e.target,active:r,icon:e.icon,title:e.title,rightNode:e.rightNode,subMenus:e.subMenus},t)}return(0,n.Y)(eA,{href:e.link,target:e.target,icon:e.icon,title:e.title,rightNode:e.rightNode,active:e_(l,e)},t)})})},RightWrap:e=>{let{children:t}=e;return(0,n.Y)(c.UsE.CenterVertical,{gap:18,children:t})},Phase:()=>$.A9===$.Km.PRODUCTION?null:(0,n.Y)(c.UsE.CenterVertical,{css:ez,children:(0,n.Y)(c.o5u.Base,{color:P.tL.white,fontSize:"small",fontWeight:600,children:$.A9})}),ProfileMenu:e=>{let{user:t,children:r}=e,{colors:i}=(0,O.u)(),{variant:l}=eE();return(0,n.FD)(c.rId.Root,{children:[(0,n.Y)(c.rId.Trigger,{children:(0,n.Y)(c.euF,{src:t.img_url,size:30,name:t.name,fallbackBg:t.color,css:(e=>{let{colors:t,variant:r}=e;return(0,o.AH)("color:",t.text,";",c.VV6,"{&:hover{padding:0;outline:3px solid ","dark"===r?"white":t.primary,";}}")})({colors:i,variant:l})})}),(0,n.Y)(c.rId.Content,{align:"end",sideOffset:8,css:eF,children:(0,n.Y)("div",{css:eI,children:r})})]})}
1,SearchButton:e=>{let{className:t,openSearchModal:r}=e,{variant:i}=eE(),o=(0,S.hjO)(),a="dark"===i;return(e=>{let{openSearchModal:t}=e,[r,n]=(0,l.useState)(!1);(0,eU.vC)("mod+k",e=>{e.preventDefault(),n(!0),t(()=>{n(!1)})},{enabled:!r,enableOnFormTags:!0})})({openSearchModal:r}),(0,n.Y)(c.I2C,{size:"small",caret:!1,className:t,css:[(0,m.E)({width:90}),a&&eR],tabIndex:-1,onClick:()=>r(),...(0,c.YLv)("ê²ì"),children:(0,n.FD)(c.UsE.CenterVertical,{gap:10,justify:"space-between",css:G.c,children:[(0,n.Y)(eN.e,{fontSize:14,color:a?P.tL.white:c.AgW.gray_900}),o&&(0,n.FD)(c.o5u.Placeholder,{css:c.ZuQ,children:[o," + K"]})]})})}};var eV=r(21989);let eO=(0,o.AH)("display:flex;flex-direction:column;gap:6px;padding:12px 12px 8px;"),ej=e=>{var t;let{user:r,className:i}=e,l=null==(t=eV.fDQ[r.role])?void 0:t.title;return(0,n.FD)("div",{css:eO,className:i,children:[(0,n.FD)(c.UsE.CenterVertical,{gap:6,justify:"flex-start",children:[(0,n.Y)(P.ui,{text:r.name,css:[(0,c.xCu)({size:"medium",weight:600}),(0,c.U7A)(1)]}),l&&(0,n.Y)(c.Exy,{color:(e=>e===eV.gG1.Owner||e===eV.gG1.Admin?c.Vn_.blue:e===eV.gG1.Manager?c.Vn_.pink:c.Vn_.emerald)(r.role),size:"x-small",css:c.ZuQ,children:l})]}),r.email&&(0,n.Y)(P.ui,{text:r.email,css:[(0,c.xCu)({size:"x-small"}),(0,c.NPn)(500),(0,c.U7A)(1)]})]})};var eB=r(21187),eG=r(86001),eq=r(22349),eK=r(8952),eJ=r(37843),eQ=r(44558),eX=r(21929),eZ=r(70137),e$=r(28824);let e0=(0,eB.A)("div",{target:"e1cod4fn0"})("display:flex;flex-direction:column;align-items:flex-start;a,button{",e=>{let{theme:t}=e;return(0,c.kcZ)(t)},";font-size:14px;}& > div{width:100%;padding:0;}"),e1=(0,o.AH)("min-width:184px;max-width:200px;"),e2=e=>{let{currentUser:t,logout:r,className:i}=e,{colors:l}=(0,O.u)(),o=c.rId.Item;return(0,n.FD)("nav",{className:i,id:"menu-list",css:e1,children:[t&&(0,n.Y)(ej,{user:t}),(0,n.FD)("div",{children:[(0,n.Y)(c.duf,{children:"ì¤ì "}),(0,n.FD)(e0,{children:[(null==t?void 0:t.role)!=eV.gG1.User&&(0,n.Y)(e0,{children:(0,n.Y)(o,{children:(0,n.FD)(s.Ez,{href:(0,p.v3n)(p.f3v.Worktask),children:[(0,n.Y)(eG.t,{}),"íì¼ë¡"]})})}),(0,n.Y)(o,{children:(0,n.FD)(s.Ez,{href:(0,p.v3n)(p.Lrq.Account),children:[(0,n.Y)(eq.J,{}),"ê³ì ì¤ì "]})}),(0,n.Y)(o,{children:(0,n.FD)(s.Ez,{href:(0,p.v3n)(p.Lrq.Personal.Notification),children:[(0,n.Y)(eK.I,{}),"ì림 ì¤ì "]})}),(0,n.Y)(o,{children:(0,n.FD)(s.Ez,{href:(0,p.v3n)(p.Lrq.Personal.Calendar),children:[(0,n.Y)(eJ.J,{}),"ìºë¦°ë ì°ê²°"]})}),(0,n.Y)(o,{children:(0,n.FD)(s.Ez,{href:(0,p.v3n)(p.Lrq.Personal.Interview),children:[(0,n.Y)(eQ.z,{}),"ë©´ì ìê° ì¤ì "]})})]})]}),(0,n.FD)("div",{children:[(0,n.Y)(c.duf,{children:"기í"}),(0,n.FD)(e0,{children:[(0,n.Y)(o,{children:(0,n.FD)(c.QWc,{onClick:p.ZHK,children:[(0,n.Y)(eX.k,{}),"문ìí기"]})}),(0,n.Y)(o,{children:(0,n.FD)(s.Ez,{href:p.W6N,target:"_blank",children:[(0,n.Y)(eZ.v,{}),"ëìë§"]})}),(0,n.Y)(o,{children:(0,n.FD)(s.Ez,{href:p.gRh.DESKTOP,target:"_blank",children:[(0,n.Y)(e$.X,{}),"ë¤ì´ë¡ë"]})}),(0,n.Y)(o,{children:(0,n.Y)(c.QWc,{size:"x-large",color:l.gray_500,tabIndex:-1,onClick:r,children:"ë¡ê·¸ìì"})})]})]})]})};var e5=r(63742),e3=r(9776),e4=r(89483),e8=r.n(e4);let e7=e=>{let{height:t=32,variant:r,className:i}=e;return(0,n.Y)(e8(),{priority:!0,src:"white"===r?p.Ohd.ICON_WHITE:p.Ohd.ICON,alt:"logo",width:t,height:t,css:c.Vy8.block,className:i})},e6=e=>{let{height:t=32,locale:r,variant:i,className:l}=e,o=r==eV.hTi.KO?4.2:4;return(0,n.Y)(e8(),{src:"white"===i?p.Ohd.LOGO_WHITE:p.Ohd.LOGO,alt:"logo",width:t*o,height:t,css:c.Vy8.block,className:l})},e9=e=>{let{contentStyle:t,variant:r,className:i}=e;return(0,n.FD)(c.UsE.CenterVertical,{gap:6,className:i,children:[(0,n.Y)(c.o5u.Base,{fontSize:"x-small",css:t,children:"made with"}),(0,n.Y)(e6,{height:16,variant:r,css:t})]})},te=e=>{let{src:t,name:r,href:i,height:l=30,className:o}=e,{colors:a}=(0,O.u)(),d=(0,n.Y)(c.euF,{name:r,showNameLength:1,src:t,size:l,className:o,fallbackColor:a.gray_900});return i?(0,n.Y)(s.N_,{href:i,tabIndex:-1,children:d}):d},tt={white:(0,c.UJo)(c.AgW.gray_900,.04),dark:(0,c.UJo)(P.tL.white,.08)}
1,tr=(0,o.AH)("min-width:200px;"),tn=[(0,c.Gn4)({width:140}),(0,c.U7A)(1)],ti=(0,o.AH)("width:30px;height:30px;border-radius:100%;"),tl=e=>{let{currentName:t,currentSymbolSrc:r,homeHref:i,workspaces:l,currentWorkspaceId:a,isLoading:s,resolveEntryHref:d,onCreateWorkspace:u}=e,{colors:h}=(0,O.u)(),{variant:g}=eE();return(0,n.FD)(c.UsE.CenterVertical,{gap:6,children:[s?(0,n.Y)(c.EAD,{css:ti}):(0,n.Y)(te,{src:r,name:t,height:30,href:i,css:(0,o.AH)("outline:2px solid ",h.white,";")}),(0,n.FD)(c.rId.Root,{children:[(0,n.FD)(c.rId.Trigger,{css:(e=>{let{variant:t}=e;return[(0,o.AH)("display:flex;align-items:center;text-align:left;gap:6px;padding:6px 6px;border-radius:4px;color:","dark"===t?"white":"inherit",";cursor:pointer;"),(0,c.SrD)(tt[t])]})({variant:g}),children:[t&&(0,n.Y)(c.o5u.Base,{fontSize:"small",fontWeight:600,css:tn,children:t}),(0,n.Y)(eY.a,{size:14,weight:"fill"})]}),(0,n.FD)(c.rId.Content,{align:"start",sideOffset:8,css:tr,children:[(0,n.Y)(c.rId.Label,{children:(0,n.Y)(c.o5u.Description,{fontSize:"x-small",children:"ìí¬ì¤íì´ì¤"})}),l.map(e=>{let t=e.organization_id;if(null==t)return null;let r=t===a;return(0,n.Y)(c.rId.Item,{onSelect:()=>{r||(0,p.AqZ)(d(e),t)},children:(0,n.FD)(c.UsE.CenterVertical,{justify:"space-between",gap:8,css:tr,children:[(0,n.FD)(c.UsE.CenterVertical,{gap:8,children:[(0,n.Y)(c.euF,{name:e.organization_name,showNameLength:1,src:e.organization_icon_url,size:26}),(0,n.Y)(c.o5u.Base,{fontSize:"small",css:[(0,c.U7A)(1),tn],children:e.organization_name})]}),r&&(0,n.Y)(e5.J,{size:16,weight:"bold",color:h.accent})]})},t)}),u&&(0,n.Y)(c.rId.Item,{onSelect:u,children:(0,n.FD)(c.UsE.CenterVertical,{gap:8,children:[(0,n.Y)(e3.F,{size:16,color:h.gray_500}),(0,n.Y)(c.o5u.Placeholder,{fontSize:"small",children:"ì ìí¬ì¤íì´ì¤"})]})})]})]})]})};var to=r(32754);r(28223),(0,j.Ms)(0),(0,m.E)({width:300}),c.az1,(0,c.Vqo)("xs"),c.MS_.shadow6,(0,c.O_j)(c.fE4.joyride+1);var ta=r(97613);let ts=e=>{let{uploadPresign:t}=(0,ey.$MK)(),r=(0,l.useCallback)(async r=>{let n="object"==typeof e&&"path"in e?{kind:e.path.kind,sub_kind:e.path.subKind,folder:e.path.folder}:{kind:ey.uwn.Content,sub_kind:ey.aZb.ContentImage,folder:"image"};return(await t.mutateAsync({file:r,data:n})).file_url},[]);return e?r:void 0},tc=(0,l.forwardRef)(function(e,t){let{enableImage:r,...i}=e,l=ts(r);return(0,n.Y)(ta.fz,{ref:t,imageUploadFn:l,...i})}),td=(0,l.forwardRef)(function(e,t){let{enableImage:r,...i}=e,l=ts(r);return(0,n.Y)(ta.lL,{ref:t,imageUploadFn:l,...i})})},48501:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90049);r(25963);var i=r(58525),l=r(73209),o=r(6243),a=r(52580),s=r(40162),c=r(75883),d=r(62443);let u=e=>{let{children:t,colors:r}=e,u=(0,a.uW)(),h={colors:null!=r?r:s.tL};return(0,n.FD)(i.a,{theme:h,children:[(0,n.Y)(o.P5,{manifest:!0}),(0,n.Y)(s.WP,{}),(0,n.Y)(d.CoW,{children:t}),(0,n.Y)(o.EF,{app:l.qNh.ROUND,user:u}),(0,n.Y)(d.$Bx,{}),(0,n.Y)(c.rB,{})]})}},70214:(e,t,r)=>{r.d(t,{J:()=>l,V:()=>i});let n=["<p><br></p>","<p>empty</p>","empty"],i=e=>!e||n.some(t=>e===t),l="CustomVariable"},77286:(e,t,r)=>{r.d(t,{gx:()=>n.gx,lR:()=>n.lR,n2:()=>n.n2,rd:()=>n.rd,to:()=>n.to});var n=r(85549)},97613:(e,t,r)=>{r.d(t,{fz:()=>v,hp:()=>z,KF:()=>U,lL:()=>V});let n=[[{header:[1,2,3,!1]}],[{size:["small",!1,"large","huge"]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],["link"],[{list:"bullet"},{list:"ordered"},{align:["","center","right","justify"]}],["clean"]],i=["background","bold","color","font","code","italic","link","size","strike","script","underline","blockquote","header","indent","list","align","direction","code-block"],l={blotFormatter2:{align:{allowAligning:!1},resize:{allowResizing:!0},delete:{allowKeyboardDelete:!0},image:{allowAltTitleEdit:!1,allowCompressor:!1}}};var o=r(90049),a=r(95407),s=r.n(a),c=r(25963),d=r(58525),u=r(51403),h=r(62443),g=r(70214);let p=async e=>{var t;let{editorRef:r,file:n,imageUploadFn:i}=e,l=null==r||null==(t=r.current)?void 0:t.getEditor();if(!l)return;let o=l.getSelection();if(!o)return;let a=await i(n);a&&setTimeout(()=>{l.insertEmbed(o.index,"image",a,"user");let e=document.querySelector('img[src="'+a+'"]'),t=()=>
1{let t=e.parentElement.clientWidth,r=e.naturalWidth,n={width:"".concat(Math.min(Math.floor(r/t*100),100),"%"),height:"auto"};l.formatText(o.index,1,n,"user")};(null==e?void 0:e.complete)?t():null==e||e.addEventListener("load",t,{once:!0})},100)},f=e=>{let{imageUploadFn:t,editorRef:r,imageContentType:n}=e,i=document.createElement("input");i.setAttribute("type","file"),i.setAttribute("accept",null!=n?n:u.Ty.IMAGE),i.click(),i.onchange=async()=>{var e;let n=null==(e=i.files)?void 0:e[0];n&&t&&p({imageUploadFn:t,editorRef:r,file:n})}},m=s()(async()=>{let{RichTextQuill:e}=await Promise.all([r.e(407),r.e(1503),r.e(1707)]).then(r.bind(r,91707));return t=>{let{forwardedRef:r,...n}=t;return(0,o.Y)(e,{ref:r,...n})}},{loadableGenerated:{webpack:()=>[91707]},loading:()=>(0,o.Y)(h.AVd,{size:"small",marginTop:0}),ssr:!1}),v=(0,c.forwardRef)(function(e,t){let{defaultValue:r,value:a,placeholder:s,onChange:v,imageUploadFn:w,enableVideo:b=!1,...y}=e,x=(0,d.u)(),Y=(0,c.useRef)(null),{modules:k,formats:C}=(e=>{let{imageUploadFn:t,enableVideo:r,editorRef:o}=e,a=(0,c.useMemo)(()=>{let e=[...i],a=[...n],s=[];return t&&(s.push("image"),e.push("image")),r&&(s.push("video"),e.push("video")),s.length>0&&a.push(s),{formats:e,modules:{...t?l:{},toolbar:{container:a,handlers:{image:()=>{t&&f({imageUploadFn:t,editorRef:o})}}},imageDropAndPaste:{handler:(e,r,n)=>{if(!t)return;let i=null==n?void 0:n.toFile();i&&p({imageUploadFn:t,editorRef:o,file:i})}}}}},[t]);return{modules:a.modules,formats:a.formats}})({imageUploadFn:w,enableVideo:b,editorRef:Y});if((0,c.useImperativeHandle)(t,()=>({resetText:E,focus:S}),[]),"production"==u.Km.TEST)return(0,o.Y)(o.FK,{});let E=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Y.current){let r=Y.current.getEditor(),n=r.clipboard.convert({html:e});r.setContents(n),t&&r.focus()}},S=()=>{Y.current&&Y.current.getEditor().focus()};return(0,o.Y)(m,{preserveWhitespace:!0,linkCopyable:!0,forwardedRef:Y,value:a,defaultValue:r,modules:k,formats:C,theme:"snow",placeholder:s,css:(0,h.UW2)(x),onChange:(e,t,r,n)=>{"api"!==r&&((0,g.V)(e)?null==v||v("",t,r,n):null==v||v(e,t,r,n))},...y})});var w=r(85801),b=r(10487),y=r(33177),x=r(56821);let Y=(0,c.createContext)(null),k=Y.Provider;var C=r(58335),E=r(93333);let S=e=>{let{currentLength:t,maxLength:r}=e,{colors:n}=(0,d.u)();return(0,o.FD)(h.UsE.CenterVertical,{justify:"space-between",gap:16,css:[(0,y.G)("absolute",{right:10,bottom:5}),(0,C.Ms)(4)],children:[t>r?(0,o.Y)(h.o5u.Base,{color:n.error,fontSize:"x-small",children:(0,E.Vj)("custom.long_trailing",{length:r})}):(0,o.Y)("div",{}),(0,o.FD)(h.o5u.Hint,{fontSize:"x-small",children:[t," / ",r]})]})},D={toolbar:!1,history:{delay:2e3,maxStack:500,userOnly:!0},keyboard:{bindings:{tab:{key:9,handler:()=>!0}}}},P={...D,clipboard:{newLines:!1},keyboard:{bindings:{tab:{key:9,handler:()=>!0},enter:{key:13,handler:()=>!1}}}},A=[g.J,...i],M=s()(async()=>{let{VariableTextQuill:e}=await Promise.all([r.e(407),r.e(1503),r.e(7099)]).then(r.bind(r,57099));return t=>{let{forwardedRef:r,...n}=t;return(0,o.Y)(e,{ref:r,...n})}},{loadableGenerated:{webpack:()=>[57099]},ssr:!1,loading:e=>{let{multiLine:t}=e;return(0,o.Y)(h.AVd,{size:"small",css:[t&&(0,b.E)({height:200})]})}}),_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"350px";return(0,w.AH)(".ql-editor{line-height:1.7;height:",(0,h.kIN)(e)," !important;}.ql-container{overflow:hidden;}")},z=(0,c.forwardRef)(function(e,t){let{value:r,multiLine:i,readOnly:a,placeholder:s,toolbar:m,className:v,height:w,maxLength:b,onChange:k,onFocus:C,onBlur:E,imageUploadFn:z,...F}=e,{colors:I}=(0,d.u)(),H=(0,c.useRef)(null),L=(0,c.useRef)(null),W=(0,c.useRef)(null),[N,U]=(0,c.useState)(!1),R=(0,c.useContext)(Y),{formats:T,modules:V}=(e=>{let{editorRef:t,multiLine:r,toolbar:i,imageUploadFn:o}=e,a=(0,c.useCallback)(()=>({image:()=>{o&&f({imageUploadFn:o,editorRef:t,imageContentType:u.Ty.IMAGE_WITHOUT_SVG})}}),[t,o]),s=(0,c.useCallback)(()=>{if(!i)return D;let e=[...n];return o&&e.push(["image"]),{...D,...o?l:{},toolbar:{container:e,handlers:a(),imageResize:{modules:["Resize"]}},imageDropAndPaste:{handler:(e,r,n)=>{if(!o)return;let i=null==n?void 0:n.toFile();i&&p({imageUploadFn:o,editorRef:t,file:i})}}}},[o,i]);return{modules:(0,c.useMemo)(()=>r?s():P,[s,r]),formats:(0,c.useMemo)(()=>i&&r?[...A,"image"]:[g.J],[i,r])}})({editorRef:L,multiLine:i,toolbar:m,imageUploadFn:z}),O=(0,c.useMemo)(()=>{var e;return(e=r)?(0,x.G9J)((0,x.Cor)(e)).replace(/{{.*?}}/g," ".repeat(10)).length:0},[r]);(0,c.useImperativeHandle)(t,()=>{let e={focus:e=>{var t,r;
1null==(t=L.current)||t.focus(),null==(r=H.current)||r.scrollIntoView(null!=e?e:{block:"center"})},blur:()=>{var e;null==(e=L.current)||e.blur()},resetText:j,insertVariable:B,getContent:()=>{var e;return(0,x.Cor)(null==(e=L.current)?void 0:e.getEditor().root.innerHTML)}};return W.current=e,e},[]),(0,c.useEffect)(()=>{R&&W.current&&R.setFocused(W.current)},[R]);let j=(e,t)=>{if(L.current){let r=L.current.getEditor(),n=r.clipboard.convert({html:e});r.setContents(n),t&&(r.focus(),setTimeout(()=>{let e=r.scroll.length();r.setSelection(e+1,0,"user")},100))}},B=(e,t)=>{var r;if(!L.current)return;let n=L.current.getEditor(),i=n.scroll.length(),l=null==(r=n.getSelection())?void 0:r.index,o=null!=l?l:i;n.insertEmbed(o,g.J,{variable:e.value,title:t,color:e.color},"user"),n.insertText(o+1," ","silent"),setTimeout(()=>{n.setSelection(o+2,0,"user")},100)};return(0,o.FD)("div",{ref:H,css:[(0,y.G)("relative"),!a&&N&&(0,h.NNX)(I.primary)],className:v,...F,children:[(0,o.Y)(M,{preserveWhitespace:!0,forwardedRef:L,value:r,formats:T,modules:V,theme:"snow",multiline:i,readOnly:a,placeholder:s,linkCopyable:m,css:[h.EPL,i&&_(w)],onChange:(e,t,n)=>{if(!a&&"<p>empty</p>"!==e)if("api"===n){if(e===r)return;null==k||k(e,!0)}else(0,g.V)(e)?null==k||k(""):null==k||k(e)},onFocus:()=>{R&&W.current&&R.setFocused(W.current),null==C||C(),U(!0)},onBlur:()=>{null==E||E(),U(!1)}}),b&&(0,o.Y)(S,{currentLength:O,maxLength:b})]})});var F=r(17074),I=r(78875),H=r(17170),L=r(6199);let W=e=>{let{colors:t}=e;return(0,w.AH)("outline:none;display:block;width:100%;position:relative;border:1px solid ",t.divider,";border-radius:4px;overflow:hidden;&:focus-within{border-color:",t.primary,';}&[aria-selected="true"]{border-color:',t.primary,";}& > *:not(:last-child){border-bottom:1px solid ",t.divider,";}& > div{border:none;}")},N=e=>{let{variables:t,triggerText:r,onSelectVariable:n}=e;return(0,o.FD)(h.rId.Root,{children:[(0,o.Y)(h.rId.Trigger,{asChild:!0,tabIndex:-1,children:(0,o.FD)(h.mWS,{size:"small",children:[r,(0,o.Y)(H.a,{weight:"fill",color:h.Vn_.gray})]})}),(0,o.Y)(h.rId.Portal,{children:(0,o.Y)(h.rId.Content,{css:(0,h.btn)({maxHeight:"25dvh"}),children:null==t?void 0:t.map((e,t)=>(0,o.Y)(h.rId.Item,{css:[(0,C.Ms)({y:6,x:12})],onClick:()=>n(e),children:(0,o.Y)(h.o5u.Base,{fontSize:"small",color:h.Vn_[e.color],css:h.pg2,children:"{".concat(e.label,"}")})},t))})})]})},U=e=>{let{children:t,variables:r=[],customButton:n,fixedVariableValues:i,maxViewVariableCount:l=3,menuBtnText:a="ì¶ê° ë³ì",onClickRestore:s,className:d}=e,u=(0,c.useRef)(null),[g,p]=(0,c.useMemo)(()=>{if(!(0,x.hj7)(i))return[r.slice(0,l),r.slice(l,r.length)];{let e=(0,F.A)(r,e=>i.indexOf(e.kind));return(0,I.A)(e,e=>i.includes(e.kind))}},[r,i,l]),f=(0,c.useCallback)(e=>{u.current=e},[]),m=(0,c.useMemo)(()=>({setFocused:f}),[f]),v=e=>{u.current&&(u.current.focus({block:"nearest"}),u.current.insertVariable(e,e.label))};return(0,o.FD)("div",{tabIndex:-1,css:W,className:d,onClick:e=>{e.currentTarget.scrollIntoView({behavior:"smooth",block:"center"})},children:[(0,o.Y)(k,{value:m,children:t}),(0,x.hj7)(r)&&(0,o.FD)(h.UsE.CenterVertical,{gap:8,wrap:"wrap",css:[(0,C.Ms)({y:12,x:16}),(0,h.NPn)(10,"bg")],justify:"space-between",children:[(0,o.FD)(h.UsE.CenterVertical,{gap:8,wrap:"wrap",css:[(0,h.CMH)({height:25})],children:[g.map((e,t)=>(0,o.Y)(h.o5u.Base,{fontSize:"small",color:h.Vn_[e.color],css:h.pg2,onClick:()=>v(e),children:"{".concat(e.label,"}")},t)),(0,x.hj7)(p)&&(0,o.Y)(N,{variables:p,triggerText:a,onSelectVariable:v})]}),s&&(0,o.FD)(h.mWS,{onClick:s,children:[(0,o.Y)(L.o,{weight:"bold"})," 기본ì¼ë¡"]}),n]})]})};var R=r(22306),T=r(43667);let V=(0,c.forwardRef)(function(e,t){var r;let{control:n,name:i="",value:l,onBlur:a,onChange:s,...c}=e,{field:d}=(0,R.as)({control:n,name:i}),{setValue:u}=(0,R.xW)();return(0,o.Y)(z,{ref:(0,T.t)(t,d.ref),value:null!=(r=d.value)?r:l,onBlur:a,onChange:(e,t)=>
1{var r;r=null!=e?e:"",!s||n||i?t?u(i,r,{shouldValidate:!0}):d.onChange(r):null==s||s(r,t)},...c})})}}]);
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.