@ncds/ui-admin-mcp 1.6.4-alpha.4 → 1.6.4-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ "use strict";var Il=Object.create;var zt=Object.defineProperty;var Hl=Object.getOwnPropertyDescriptor;var Ol=Object.getOwnPropertyNames;var Ul=Object.getPrototypeOf,zl=Object.prototype.hasOwnProperty;var Vl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gl=(e,t)=>{for(var o in t)zt(e,o,{get:t[o],enumerable:!0})},ia=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ol(t))!zl.call(e,a)&&a!==o&&zt(e,a,{get:()=>t[a],enumerable:!(r=Hl(t,a))||r.enumerable});return e};var h=(e,t,o)=>(o=e!=null?Il(Ul(e)):{},ia(t||!e||!e.__esModule?zt(o,"default",{value:e,enumerable:!0}):o,e)),ql=e=>ia(zt({},"__esModule",{value:!0}),e);var _=Vl((ci,Vt)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var a="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(a=r(a,o(s)))}return a}function o(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return t.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var s in a)e.call(a,s)&&a[s]&&(l=r(l,s));return l}function r(a,l){return l?a?a+" "+l:a+l:a}typeof Vt<"u"&&Vt.exports?(t.default=t,Vt.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var di={};Gl(di,{Badge:()=>pt,BadgeGroup:()=>Xl,BreadCrumb:()=>ws,Button:()=>U,ButtonCloseX:()=>Je,ButtonGroup:()=>Rt,ButtonStepper:()=>$t,CarouselArrow:()=>Ds,CarouselNumberGroup:()=>Ts,Checkbox:()=>_s,CheckboxInput:()=>kr,ComboBox:()=>Ir,DatePicker:()=>Mt,Divider:()=>Hs,Dot:()=>ve,Dropdown:()=>Os,EmptyState:()=>Us,FeaturedIcon:()=>st,FileInput:()=>zs,FileInputErrorType:()=>qr,FloatingNotification:()=>Yr,FullWidthNotification:()=>Zr,HintText:()=>le,HorizontalTab:()=>fi,ImageFileInput:()=>$s,InputBase:()=>tt,Label:()=>De,MessageNotification:()=>fo,Modal:()=>io,NavButton:()=>vt,Notification:()=>xl,NumberInput:()=>Xs,Pagination:()=>ei,PasswordInput:()=>Ks,ProgressBar:()=>oi,ProgressCircle:()=>ri,Radio:()=>ai,RadioInput:()=>oa,RangeDatePicker:()=>to,RangeDatePickerWithButtons:()=>Is,Select:()=>aa,SelectBox:()=>la,SelectDropdown:()=>ot,Slider:()=>si,Spinner:()=>ni,Switch:()=>sa,TabButton:()=>Ot,Tag:()=>rt,Textarea:()=>Ys,Toggle:()=>pi,Tooltip:()=>$r,VerticalTab:()=>ui,dotSize:()=>ha,getDateFormat:()=>eo,getToday:()=>Xa,iconOnlySvgSize:()=>ga,svgSize:()=>xa});module.exports=ql(di);var da=h(_());var K={gray100:"#EAECF0",gray200:"#D0D5DD",gray300:"#98A2B3",gray400:"#667085",gray500:"#344054",gray600:"#475467",gray700:"#0C111D",blue500:"#1570EF",blue600:"#1849a9",red500:"#ec1d31",red600:"#dc0a2b",orange500:"#e4501e",orange600:"#b93815",green500:"#099250",green600:"#087443",pink100:"#fce7f6",pink600:"#c11574",yellow600:"#c27004",violet300:"#C3B5FD",violet600:"#5720B7",white:"#fff",currentColor:"currentColor",black:"","secondary-gray-blue-50":"#f8f9fc","secondary-gray-blue-100":"#eaecf5","secondary-gray-blue-200":"#d5d9eb","secondary-gray-blue-300":"#b3b8db","secondary-gray-blue-400":"#717bbc","secondary-gray-blue-450":"#4e5ba6","secondary-gray-blue-500":"#3e4784","secondary-gray-blue-600":"#363f72","secondary-gray-blue-700":"#293056"};var na=h(_()),fa=require("react"),ua=require("react/jsx-runtime"),ve=(0,fa.forwardRef)(({color:e="success",size:t="md",className:o,...r},a)=>(0,ua.jsx)("span",{ref:a,className:(0,na.default)("ncua-dot",`ncua-dot--${e}`,`ncua-dot--${t}`,o),...r}));ve.displayName="Dot";var To=require("react/jsx-runtime"),Wl="neutral",yt=({slot:e,defaultIconSize:t})=>{if(e.type==="icon"){let o=e.icon;return(0,To.jsx)(o,{height:e.size??t,width:e.size??t,color:e.color?K[e.color]:void 0})}return e.type==="dot"?(0,To.jsx)(ve,{color:e.color??Wl,size:e.size??"sm"}):e.children};var Gt=require("react/jsx-runtime"),pa=12,pt=({label:e,type:t="pill-outline",color:o="neutral",className:r,leadingIcon:a,trailingIcon:l,size:s="sm"})=>(0,Gt.jsxs)("span",{className:(0,da.default)("ncua-badge",`ncua-badge--${t}`,`ncua-badge--${o}`,`ncua-badge--${s}`,r),children:[a&&yt({slot:a,defaultIconSize:pa}),(0,Gt.jsx)("span",{className:"ncua-badge__label",children:e}),l&&yt({slot:l,defaultIconSize:pa})]});var ma=h(_());var wt=require("react/jsx-runtime"),$l=14,Xl=({groupLabel:e,groupIcon:t,groupClassName:o,color:r="neutral",size:a="sm",href:l,target:s="_blank",...i})=>(0,wt.jsxs)("a",{className:(0,ma.default)("ncua-badge-group",`ncua-badge-group--${r}`,`ncua-badge-group--${a}`,o),href:l,target:s,children:[(0,wt.jsx)(pt,{type:"pill-dark-color",color:r,size:a,...i}),(0,wt.jsx)("span",{className:"ncua-badge-group__label",children:e}),t&&yt({slot:t,defaultIconSize:$l})]});var _o=h(require("react")),Kl=e=>_o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},_o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1m1 7a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0zm-1 7a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2z",clipRule:"evenodd"})),Ro=Kl;var Po=h(require("react")),Yl=e=>Po.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Po.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})),Ye=Yl;var Lo=h(require("react")),Zl=e=>Lo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Lo.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.812 0c-.297.132-.524.525-.979 1.31"})),Ee=Zl;var No=h(require("react")),Ql=e=>No.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},No.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 12H5m0 0 7 7m-7-7 7-7"})),Mo=Ql;var Eo=h(require("react")),Jl=e=>Eo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Eo.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14m0 0-7-7m7 7-7 7"})),Bo=Jl;var Ao=h(require("react")),jl=e=>Ao.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Ao.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22"})),Io=jl;var Ho=h(require("react")),es=e=>Ho.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Ho.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})),we=es;var Oo=h(require("react")),ts=e=>Oo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Oo.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m6 9 6 6 6-6"})),Uo=ts;var zo=h(require("react")),os=e=>zo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},zo.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m18 17-5-5 5-5m-7 10-5-5 5-5"})),Vo=os;var Go=h(require("react")),rs=e=>Go.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Go.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m15 18-6-6 6-6"})),kt=rs;var qo=h(require("react")),as=e=>qo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},qo.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m6 17 5-5-5-5m7 10 5-5-5-5"})),Wo=as;var $o=h(require("react")),ls=e=>$o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},$o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})),Dt=ls;var Xo=h(require("react")),ss=e=>Xo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Xo.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m7 15 5 5 5-5M7 9l5-5 5 5"})),Ko=ss;var Yo=h(require("react")),is=e=>Yo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Yo.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6v6l4 2m6-2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})),Zo=is;var Qo=h(require("react")),ns=e=>Qo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Qo.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),Jo=ns;var jo=h(require("react")),fs=e=>jo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},jo.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.743 5.092Q11.353 5.001 12 5c5.105 0 8.455 4.505 9.58 6.287.137.215.205.323.243.49.029.125.029.322 0 .447-.038.166-.107.274-.244.492-.3.474-.757 1.141-1.363 1.865M6.724 6.715c-2.162 1.467-3.63 3.504-4.303 4.57-.137.217-.205.325-.243.492a1.2 1.2 0 0 0 0 .446c.038.167.106.274.242.49C3.546 14.495 6.895 19 12 19c2.059 0 3.832-.732 5.289-1.723M3 3l18 18M9.88 9.879a3 3 0 1 0 4.243 4.243"})),er=fs;var qt=h(require("react")),us=e=>qt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},qt.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.2 1.2 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287"}),qt.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6"})),tr=us;var or=h(require("react")),ps=e=>or.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},or.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1m-1.093 7.271a2 2 0 0 1 3.013 1.727V10c0 .47-.365.958-1.055 1.418a6 6 0 0 1-1.262.634 1 1 0 0 0 .633 1.897l.169-.061a8.05 8.05 0 0 0 1.57-.806c.81-.54 1.944-1.55 1.945-3.081a4 4 0 0 0-7.773-1.333 1 1 0 0 0 1.886.664 2 2 0 0 1 .874-1.06M12 16a1 1 0 1 0 0 2h.01a1 1 0 0 0 0-2z",clipRule:"evenodd"})),rr=ps;var ar=h(require("react")),ds=e=>ar.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},ar.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3m.08 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})),ke=ds;var lr=h(require("react")),ms=e=>lr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},lr.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10.565c0-.574 0-.861.074-1.126a2 2 0 0 1 .318-.65c.163-.22.39-.397.843-.75l6.783-5.275c.351-.273.527-.41.72-.462a1 1 0 0 1 .523 0c.194.052.37.189.721.462l6.783 5.275c.453.353.68.53.843.75.145.195.252.416.318.65.074.265.074.552.074 1.126V17.8c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C19.48 21 18.92 21 17.8 21H6.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C3 19.48 3 18.92 3 17.8z"})),sr=ms;var ir=h(require("react")),cs=e=>ir.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},ir.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})),Tt=cs;var nr=h(require("react")),xs=e=>nr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},nr.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21"})),fr=xs;var ur=h(require("react")),gs=e=>ur.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},ur.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2 2 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152z"})),pr=gs;var dr=h(require("react")),hs=e=>dr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},dr.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.377 15.616 2.72 21.273m8.974-14.631-1.56 1.56a2 2 0 0 1-.264.242 1 1 0 0 1-.207.111c-.082.032-.17.05-.347.085l-3.665.733c-.952.19-1.428.286-1.65.537a1 1 0 0 0-.243.8c.046.333.39.677 1.076 1.363l7.086 7.086c.686.687 1.03 1.03 1.362 1.076a1 1 0 0 0 .801-.242c.251-.223.346-.7.537-1.651l.733-3.665c.035-.176.053-.265.085-.347a1 1 0 0 1 .11-.207c.051-.072.115-.136.242-.263l1.561-1.561c.082-.082.122-.122.167-.158q.06-.047.126-.085c.05-.029.103-.051.208-.097l2.495-1.069c.727-.312 1.091-.467 1.256-.72a1 1 0 0 0 .144-.747c-.06-.295-.34-.575-.9-1.135l-5.142-5.143c-.56-.56-.84-.84-1.135-.9a1 1 0 0 0-.748.145c-.252.165-.407.529-.72 1.256l-1.068 2.495a2 2 0 0 1-.097.208 1 1 0 0 1-.085.126 2 2 0 0 1-.158.167"})),Ze=hs;var mr=h(require("react")),Fs=e=>mr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},mr.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0"})),cr=Fs;var xr=h(require("react")),Cs=e=>xr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},xr.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 3h6M3 6h18m-2 0-.701 10.52c-.105 1.578-.158 2.367-.499 2.965a3 3 0 0 1-1.298 1.215c-.62.3-1.41.3-2.993.3h-3.018c-1.582 0-2.373 0-2.993-.3A3 3 0 0 1 6.2 19.485c-.34-.598-.394-1.387-.499-2.966L5 6m5 4.5v5m4-5v5"})),gr=Cs;var hr=h(require("react")),vs=e=>hr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},hr.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-7-5-5m0 0L7 8m5-5v12"})),_t=vs;var Fr=h(require("react")),bs=e=>Fr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Fr.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})),xe=bs;var Cr=h(require("react")),Ss=e=>Cr.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",stroke:"none",...e},Cr.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 7 7 17M7 7l10 10"})),vr=Ss;var br=h(_()),Qe=require("react/jsx-runtime"),ys=({href:e,children:t})=>(0,Qe.jsx)(e?"a":"span",{href:e,className:"ncua-breadcrumb__item",children:t}),ws=({items:e,className:t})=>{if(!e||e.length===0)return null;let o=(r,a)=>{let l=a===e.length-1,s=a===0?(0,Qe.jsx)(sr,{width:16,height:16,color:"gray500"}):r.label;return(0,Qe.jsx)("li",{className:(0,br.default)("ncua-breadcrumb__list-item",{"ncua-breadcrumb__list-item--active":l}),children:(0,Qe.jsx)(ys,{href:l?void 0:r.href,children:s})},a)};return(0,Qe.jsx)("nav",{"aria-label":"breadcrumb",className:(0,br.default)("ncua-breadcrumb",t),children:(0,Qe.jsx)("ol",{className:"ncua-breadcrumb__list",children:e.map(o)})})};var ca=h(_()),Wt=require("react");var Be=require("react/jsx-runtime"),xa={xxs:12,xs:14,sm:16,md:20},ga={xxs:14,xs:16,sm:20,md:20},ha={xxs:"sm",xs:"sm",sm:"md",md:"md"},U=(0,Wt.forwardRef)((e,t)=>{let{size:o="md",children:r,onlyIcon:a,disabled:l,className:s,hierarchy:i="secondary-gray",label:n,leadingIcon:f,trailingIcon:p,underline:u=!1,...d}=e,m=c=>{let g=a?ga[o]:xa[o];if(c.type==="icon"){let F=c.icon;return(0,Be.jsx)(F,{height:c.size??g,width:c.size??g,color:c.color?K[c.color]:void 0})}return c.type==="dot"?(0,Be.jsx)(ve,{color:c.color,size:c.size??ha[o]}):c.children};return(0,Wt.createElement)("button",{className:(0,ca.default)("ncua-btn",`ncua-btn--${o}`,{"only-icon":a,"is-disable":l,"has-underline":u},s,i&&`ncua-btn--${i}`),disabled:l,...d,ref:t},(0,Be.jsxs)(Be.Fragment,{children:[f&&m(f),!a&&n&&(0,Be.jsx)("span",{className:"ncua-btn__label",children:n}),r,p&&m(p)]}))});var Ca=h(_()),Sr=require("react/jsx-runtime"),Fa={xs:16,sm:20,md:20,lg:24},Je=({size:e,theme:t="light",className:o,onClick:r})=>(0,Sr.jsx)("button",{type:"button",className:(0,Ca.default)("ncua-button-close-x",`ncua-button-close-x--${e}`,`ncua-button-close-x--${t}`,o),onClick:r,children:(0,Sr.jsx)(xe,{width:Fa[e],height:Fa[e]})});var yr=h(_()),dt=h(require("react"));var Ae=require("react/jsx-runtime"),va={xxs:12,xs:16,sm:16,md:20},ks={xxs:"sm",xs:"sm",sm:"md",md:"md"},Rt=({children:e,className:t,hasBorder:o=!0,size:r="xs",onlyIcon:a=!1,disabled:l=!1})=>(0,Ae.jsx)("div",{className:(0,yr.default)("ncua-button-group",`ncua-button-group--${r}`,{"has-border":o},t),children:dt.default.Children.map(e,s=>dt.default.isValidElement(s)?dt.default.cloneElement(s,{onlyIcon:a,size:r,disabled:l||s.props.disabled}):null)});Rt.Item=({label:e,size:t="xs",onlyIcon:o,icon:r,disabled:a,children:l,isCurrent:s,...i})=>{let n=()=>{if(!r)return null;if(r.type==="icon"){let p=r.icon;return(0,Ae.jsx)(p,{width:r.size??va[t],height:r.size??va[t],color:r.color?K[r.color]:"currentColor"})}return r.type==="dot"?(0,Ae.jsx)(ve,{color:r.color,size:r.size??ks[t]}):r.children},f=r?.position??"leading";return(0,dt.createElement)("button",{className:(0,yr.default)("ncua-button-group__item",{"is-only-icon":o},{"is-current":s}),disabled:a,type:"button",...i},(0,Ae.jsxs)(Ae.Fragment,{children:[f==="leading"&&n(),!o&&e,l,f==="trailing"&&n()]}))};var ba=h(_()),Sa=require("react/jsx-runtime"),$t=({size:e,direction:t,disabled:o,onClick:r,className:a})=>(0,Sa.jsx)("button",{className:(0,ba.default)("ncua-button-stepper",`ncua-button-stepper--${e}`,`ncua-button-stepper--${t}`,a),type:"button",disabled:o,onClick:r});var ya=h(_()),Xt=require("react/jsx-runtime"),Ds=({type:e="default",className:t,size:o,chevron:r,onClick:a})=>(0,Xt.jsx)("button",{type:"button",className:(0,ya.default)("ncua-carousel-arrow",{[`ncua-carousel-arrow--${e}`]:e,[`ncua-carousel-arrow--${o}`]:o,[`ncua-carousel-arrow--${r}`]:r},t),onClick:a,children:r==="left"?(0,Xt.jsx)(kt,{className:"ncua-carousel-arrow__icon"}):(0,Xt.jsx)(Dt,{className:"ncua-carousel-arrow__icon"})});var wa=h(_()),Pt=require("react/jsx-runtime"),Ts=({framed:e=!0,size:t="sm",color:o="light",currentPage:r,totalPage:a})=>(0,Pt.jsxs)("div",{className:(0,wa.default)("ncua-carousel-number-group",{framed:e,[`ncua-carousel-number-group--${o}`]:o,[`ncua-carousel-number-group--${t}`]:t}),children:[(0,Pt.jsx)("span",{className:"ncua-carousel-number-group__number",children:r}),(0,Pt.jsxs)("span",{className:"ncua-carousel-number-group__total",children:["/",a]})]});var Da=h(_()),Ta=require("react");var ka=h(_()),mt=require("react"),wr=require("react/jsx-runtime"),kr=(0,mt.forwardRef)(({size:e="xs",indeterminate:t=!1,disabled:o,className:r,destructive:a=!1,onChange:l,...s},i)=>{let n=(0,mt.useRef)(null);return(0,mt.useEffect)(()=>{let f=i&&typeof i!="function"?i.current:n.current;f&&(f.indeterminate=t)},[t,i]),(0,wr.jsx)("span",{className:(0,ka.default)("ncua-checkbox-input",`ncua-checkbox-input--${e}`,{"has-indeterminate":t},{destructive:a},r),children:(0,wr.jsx)("input",{type:"checkbox",ref:f=>{typeof i=="function"?i(f):i&&(i.current=f),n.current=f},onChange:l,disabled:o,...s})})});var Ie=require("react/jsx-runtime"),_s=(0,Ta.forwardRef)(({size:e="xs",indeterminate:t=!1,text:o,supportText:r,disabled:a,checked:l,className:s,onChange:i,...n},f)=>(0,Ie.jsxs)("label",{className:(0,Da.default)("ncua-checkbox-field",`ncua-checkbox-field--${e}`,{"has-text":o},s),children:[(0,Ie.jsx)(kr,{size:e,ref:f,checked:l,indeterminate:t,disabled:a,onChange:i,className:"ncua-checkbox-field__input",...n}),r?(0,Ie.jsxs)("span",{children:[(0,Ie.jsx)("span",{className:"ncua-checkbox-field__text",children:o}),r&&(0,Ie.jsx)("span",{className:"ncua-checkbox-field__support-text",children:r})]}):o&&(0,Ie.jsx)("span",{className:"ncua-checkbox-field__text",children:o})]}));var Ga=h(_()),de=require("react");var et=require("react");var je=require("react");var _a=({triggerRef:e,maxHeight:t,itemCount:o,itemHeight:r=40,offset:a=20})=>{if(!e?.current)return{direction:"down",maxHeight:t};let l=e?.current.getBoundingClientRect(),s=window.innerHeight,i=Math.min(t,o*r);return s-l.bottom<i+a?{direction:"up",maxHeight:t}:{direction:"down",maxHeight:t}},Dr=(e,t,o)=>o===0?-1:t==="down"?e<o-1?e+1:0:e>0?e-1:o-1;var Ra=(e,t)=>{let o=e;for(;o&&o!==t&&o!==document.body;){let a=window.getComputedStyle(o).overflowY;if(a==="scroll"||a==="auto"){let{scrollHeight:l,clientHeight:s}=o;if(l>s)return o}o=o.parentElement}if(o===t){let a=window.getComputedStyle(t).overflowY;if(a==="scroll"||a==="auto"){let{scrollHeight:l,clientHeight:s}=t;if(l>s)return t}}return null};var Tr=(e,t)=>{if(t.length===0)return!1;let o=t.filter(r=>!r.disabled).map(r=>r.id);return o.length>0&&o.every(r=>e.includes(r))},Rs=(e,t,o="\uC804\uCCB4 \uC120\uD0DD",r="\uC804\uCCB4 \uD574\uC81C")=>Tr(e,t)?r:o,Ps=(e,t)=>Tr(e,t)?[]:t.filter(o=>!o.disabled).map(o=>o.id),Ls=(e,t)=>e.map(o=>{let r=t.find(a=>a.id===o);return r?{id:r.id,label:r.label||String(r.id)}:null}).filter(o=>o!==null),Ns=(e,t)=>e.filter(o=>o!==t),Kt=(e,t,o,r)=>{let a=Tr(e,t),l=Rs(e,t,o,r);return{isAllSelected:a,buttonText:l,toggleSelectAll:()=>Ps(e,t),getSelectedTagsData:()=>Ls(e,t),removeTag:f=>Ns(e,f)}};var _r=e=>{let{isOpen:t,disabled:o,focusedIndex:r,optionItems:a,onToggle:l,onSelect:s,onClose:i,onFocusChange:n,triggerRef:f,dropdownRef:p}=e,u=(0,je.useRef)(!1),d=(0,je.useCallback)(F=>{if(!p?.current||F<0)return;let x=p.current.querySelector(".ncua-select-dropdown__options");if(!x)return;let T=x.querySelectorAll(".ncua-select-dropdown__option")[F];if(!T)return;let y=x.getBoundingClientRect(),N=T.getBoundingClientRect();N.top<y.top?x.scrollTop=T.offsetTop:N.bottom>y.bottom&&(x.scrollTop=T.offsetTop+T.offsetHeight-x.clientHeight)},[p]),m=(0,je.useCallback)(F=>{if(!o)switch(F.key){case"Enter":case" ":F.preventDefault(),t?r>=0&&a[r]&&s(a[r]):l();break;case"Escape":t&&(F.preventDefault(),i(),f?.current?.focus());break;case"ArrowDown":if(F.preventDefault(),u.current=!0,!t)l();else{let x=Dr(r,"down",a.length);n(x),setTimeout(()=>d(x),100)}break;case"ArrowUp":if(F.preventDefault(),u.current=!0,!t)l();else{let x=Dr(r,"up",a.length);n(x),setTimeout(()=>d(x),100)}break;case"Home":t&&(F.preventDefault(),u.current=!0,n(0),setTimeout(()=>d(0),0));break;case"End":if(t){F.preventDefault(),u.current=!0;let x=a.length-1;n(x),setTimeout(()=>d(x),0)}break}},[o,t,r,a,l,s,i,n,f,d]),c=(0,je.useCallback)(()=>{u.current=!1},[]),g=(0,je.useCallback)(()=>u.current,[]);return{handleKeyDown:m,handleMouseMove:c,isKeyboardNavigation:g}};var Yt=require("react");var Rr=e=>{let[t,o]=(0,Yt.useState)("down"),r=(0,Yt.useCallback)(()=>{let a=_a(e);return o(a.direction),a},[e]);return{direction:t,updatePosition:r,setDirection:o}};var Pa=require("react"),Pr=e=>{let{isOpen:t,refs:o,onClose:r}=e;(0,Pa.useEffect)(()=>{if(!t)return;let a=l=>{let s=l.target;o.every(n=>!n.current||!n.current.contains(s))&&r()};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[t,o,r])};var Zt=require("react"),Lr=(e,t=!0,o)=>{let r=(0,Zt.useRef)(null);(0,Zt.useEffect)(()=>{if(!t)return;if(!window.ResizeObserver){let l=()=>{e()};return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}}r.current=new ResizeObserver(l=>{l.length>0&&e()});let a=o||document.body;return a&&r.current.observe(a),()=>{r.current&&(r.current.disconnect(),r.current=null)}},[e,t,o])};var Lt=e=>{let{triggerRef:t,dropdownRef:o,maxHeight:r,itemCount:a,optionItems:l,disabled:s=!1,multiple:i=!1,onSelect:n,onChange:f}=e,[p,u]=(0,et.useState)(!1),[d,m]=(0,et.useState)(-1),{direction:c,updatePosition:g}=Rr({triggerRef:t,maxHeight:r,itemCount:a}),F=(0,et.useCallback)(()=>{if(s)return;let E=!p;E&&(g(),m(-1)),u(E),f?.(E)},[s,p,g,f]),x=(0,et.useCallback)(()=>{u(!1),m(-1),f?.(!1)},[f]),v=(0,et.useCallback)(E=>{n(E),i||x()},[n,x,i]),{handleKeyDown:T,handleMouseMove:y,isKeyboardNavigation:N}=_r({isOpen:p,disabled:s,focusedIndex:d,optionItems:l,onToggle:F,onSelect:v,onClose:x,onFocusChange:m,triggerRef:t,dropdownRef:o});return Pr({isOpen:p,refs:o?[t,o]:[t],onClose:x}),Lr(g,p,t.current),{isOpen:p,direction:c,focusedIndex:d,toggleDropdown:F,closeDropdown:x,handleOptionSelect:v,handleKeyDown:T,setFocusedIndex:m,handleMouseMove:y,isKeyboardNavigation:N,updatePosition:g}};var jt=require("react");var Qt=h(require("moment"));function Jt(e=La()){return(0,Qt.default)(e).format("YYYY-MM-DD")}function La(){return(0,Qt.default)().toDate()}function Nr({date:e=La(),period:t,unit:o}){return(0,Qt.default)(e).subtract(t,o).toDate()}var Mr=e=>{if(/^(19|20)\d{2}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[0-1])$/.test(e)){let o=e.substring(0,4),r=e.substring(4,6),a=e.substring(6,8);return`${o}-${r}-${a}`}return e},Na=e=>{let o=e.replace(/\D/g,"").substring(0,2),r=parseInt(o,10);return r>=0&&r<=23?o:e},Ma=e=>{let o=e.replace(/\D/g,"").substring(0,2),r=parseInt(o,10);return r>=0&&r<=59?o:e};var Er=(e,t)=>{let o=(0,jt.useRef)(0);(0,jt.useEffect)(()=>{if(e){o.current=window.pageYOffset;let r=l=>{if(!t?.current||!t.current.contains(l.target)){l.preventDefault();return}let s=Ra(l.target,t.current);if(s&&l instanceof WheelEvent){let{deltaY:i}=l,{scrollTop:n,scrollHeight:f,clientHeight:p}=s;if(n===0&&i<0){l.preventDefault();return}if(n+p>=f&&i>0){l.preventDefault();return}}s||l.preventDefault()},a=l=>{if(t?.current&&t.current.contains(l.target))return;["PageUp","PageDown","Home","End"," "].includes(l.key)&&l.preventDefault()};return document.addEventListener("wheel",r,{passive:!1}),document.addEventListener("touchmove",r,{passive:!1}),document.addEventListener("keydown",a),()=>{document.removeEventListener("wheel",r),document.removeEventListener("touchmove",r),document.removeEventListener("keydown",a),window.scrollTo(0,o.current)}}},[e,t])};var He=h(_()),Oe=require("react");var Ea=h(_()),Ba=require("react/jsx-runtime"),le=({as:e="span",children:t,className:o,destructive:r,...a})=>(0,Ba.jsx)(e,{className:(0,Ea.default)("ncua-hint-text",{destructive:r},o),...a,children:t});var Aa=h(_()),Ia=require("react/jsx-runtime"),De=({as:e="label",children:t,className:o,isRequired:r,...a})=>(0,Ia.jsx)(e,{className:(0,Aa.default)("ncua-label",{"is-required":r},o),...a,children:t});var H=require("react/jsx-runtime"),ct={xs:14,sm:16},Ha={xs:14,sm:20},tt=(0,Oe.forwardRef)(({size:e="xs",required:t,label:o,hintText:r,disabled:a,validation:l,destructive:s,leadingElement:i,trailingElement:n,showHelpIcon:f,maxLength:p,showTextCount:u,...d},m)=>{let c=(0,Oe.useRef)(null),[g,F]=(0,Oe.useState)(0);(0,Oe.useEffect)(()=>{if(c.current&&u){F(c.current.value.length);let k=()=>{F(c.current?.value.length??0)};return c.current.addEventListener("input",k),()=>{c.current?.removeEventListener("input",k)}}},[u]);let x=k=>{if(k.type==="custom"&&k.placement!=="outside")return null;switch(k.type){case"button":return(0,H.jsx)("button",{type:k.isSubmit?"submit":"button",className:(0,He.default)("ncua-input__button",`ncua-input__button--${e}`),onClick:k.onClick,children:k.label});case"text":return(0,H.jsx)("span",{className:(0,He.default)("ncua-input__leading-text",`ncua-input__leading-text--${e}`),children:k.text});case"custom":return k.children;default:return null}},v=(k,E)=>{switch(k.type){case"icon":{let w=k.icon;return(0,H.jsx)("div",{className:"ncua-input__icon-wrap",children:(0,H.jsx)(w,{className:(0,He.default)(`ncua-input__${E}-icon`,k.className),color:k.color?K[k.color]:void 0,width:k.size??Ha[e],height:k.size??Ha[e]})})}case"custom":return k.placement!=="inside"?null:k.children;default:return null}},T=()=>d.clearText?(0,H.jsx)("button",{type:"button",className:(0,He.default)("ncua-input__icon-wrap","ncua-input__right-icon","ncua-input__clear"),onClick:d.onClearText,children:(0,H.jsx)(vr,{className:"ncua-input__clear-icon",width:ct[e],height:ct[e]})}):null,y=()=>s?(0,H.jsx)("div",{className:"ncua-input__icon-wrap ncua-input__right-icon",children:(0,H.jsx)(Tt,{className:"ncua-input__destructive-icon",width:ct[e],height:ct[e]})}):l?(0,H.jsx)("div",{className:"ncua-input__icon-wrap ncua-input__right-icon",children:(0,H.jsx)(we,{className:"ncua-input__validation-icon",width:ct[e],height:ct[e]})}):null,N=()=>o?(0,H.jsxs)("div",{className:(0,He.default)("ncua-input__label",`ncua-input__label--${e}`),children:[(0,H.jsx)(De,{isRequired:t,htmlFor:d.id,children:o}),f&&(0,H.jsx)(ke,{className:"ncua-input__help-icon"})]}):null;return(0,H.jsxs)("div",{className:(0,He.default)("ncua-input",`ncua-input--${e}`,{destructive:s,"is-disabled":a,"ncua-input__trailing-button":n?.type==="button","ncua-input__leading-text-wrap":i?.type==="text"}),children:[N(),(0,H.jsxs)("div",{className:"ncua-input__content-wrap",children:[(0,H.jsxs)("div",{className:"ncua-input__content",children:[i&&x(i),(0,H.jsxs)("div",{className:(0,He.default)("ncua-input__field",`ncua-input__field--${e}`),children:[i&&v(i,"left"),(0,H.jsx)("input",{ref:k=>{typeof m=="function"?m(k):m&&(m.current=k),c.current=k},type:"text",disabled:a,maxLength:p,...d}),T(),y(),n&&v(n,"right")]}),n&&x(n)]}),u&&p&&(0,H.jsxs)("div",{className:"ncua-input__field-text-count",children:[(0,H.jsx)("output",{className:"ncua-input__field-text-count-current",children:g}),(0,H.jsxs)("span",{children:["/",p]})]})]}),r&&(0,H.jsx)(le,{className:"ncua-input__hint-text",destructive:s,children:r})]})});var Br=h(_()),Oa=require("react");var te=require("react/jsx-runtime"),ot=(0,Oa.forwardRef)(({isOpen:e,direction:t="down",size:o="xs",options:r,value:a,focusedIndex:l,maxHeight:s,listboxId:i="selectbox-options-default",onOptionSelect:n,onMouseMove:f,isKeyboardNavigation:p,onOptionHover:u,children:d,multiple:m=!1,showFooterButtons:c=!1,selectAllButtonText:g="\uC804\uCCB4 \uC120\uD0DD",onSelectAll:F,onEdit:x,onComplete:v,className:T,activeDescendantId:y,componentType:N,align:k="left",...E},w)=>e?(0,te.jsxs)("div",{ref:w,className:(0,Br.default)("ncua-select-dropdown",`ncua-select-dropdown--${t}`,`ncua-select-dropdown--${o}`,{"ncua-select-dropdown--multiple":m,"ncua-select-dropdown--align-right":k==="right","ncua-select-dropdown--selectbox-single":N==="selectbox"&&!m},T),onMouseMove:f,onClick:b=>b.stopPropagation(),...E,children:[(0,te.jsx)("div",{className:"ncua-select-dropdown__content",children:(0,te.jsxs)("ul",{className:"ncua-select-dropdown__options",role:"listbox",id:i,style:{maxHeight:s},children:[r.map((b,C)=>{let S=C===l,D=`${i}-${b.id}`,P=m&&Array.isArray(a)?a.includes(b.id):b.id===a,L=()=>{u?.(C)};return(0,te.jsxs)("li",{id:D,className:(0,Br.default)("ncua-select-dropdown__option",{"ncua-select-dropdown__option--selected":P,"ncua-select-dropdown__option--focused":S}),onClick:()=>n(b),onMouseEnter:L,role:"option","aria-selected":P,children:[b.icon&&(0,te.jsx)("span",{className:"ncua-select-dropdown__option-icon",children:(0,te.jsx)(b.icon,{width:16,height:16})}),(0,te.jsx)("span",{className:"ncua-select-dropdown__option-text",children:b.label})]},b.id)}),d]})}),c&&(0,te.jsx)("div",{className:"ncua-select-dropdown__footer",children:(0,te.jsxs)("div",{className:"ncua-select-dropdown__footer-buttons",children:[(0,te.jsx)("div",{className:"ncua-select-dropdown__footer-left",children:m&&(0,te.jsx)(U,{label:g,hierarchy:"text",size:"xs",onClick:F,underline:!0})}),(0,te.jsxs)("div",{className:"ncua-select-dropdown__footer-right",children:[(0,te.jsx)(U,{label:"\uD3B8\uC9D1",hierarchy:"secondary-gray",size:"xs",onClick:x}),m&&(0,te.jsx)(U,{label:"\uC120\uD0DD \uC644\uB8CC",hierarchy:"secondary",size:"xs",onClick:v})]})]})})]}):null);ot.displayName="SelectDropdown";var Ar=h(_()),Te=require("react");var ge=require("react/jsx-runtime"),Nt=10,za=200,Va=60,Ua=(e,t)=>{let o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),{innerWidth:a,innerHeight:l}=window,s=r.width||za,i=r.height||Va,n={top:o.top,bottom:l-o.bottom,left:o.left,right:a-o.right},f=n.top>=i+Nt,p=f?["top-right","top-left","bottom-right","bottom-left"]:["bottom-right","bottom-left","top-right","top-left"];for(let d of p){let m=d.includes("top"),c=d.includes("right"),g=m?n.top>=i+Nt:n.bottom>=i+Nt,F=c?n.right>=s+Nt:n.left>=s+Nt;if(g&&F)return d}return f?"top-right":"bottom-right"},rt=({size:e="sm",icon:t,text:o,count:r,close:a,onButtonClick:l,maxLength:s=20})=>{let[i,n]=(0,Te.useState)(!1),[f,p]=(0,Te.useState)("top-right"),u=(0,Te.useRef)(null),d=(0,Te.useRef)(null),m={sm:14,md:16},c=o.length>s,g=c?`${o.slice(0,s-2)}...`:o,F=(0,Te.useCallback)(()=>{if(c)if(n(!0),u.current&&d.current){let T=Ua(u.current,d.current);p(T)}else setTimeout(()=>{if(u.current){let T=document.createElement("div");T.style.width=`${za}px`,T.style.height=`${Va}px`;let y=Ua(u.current,T);p(y)}},0)},[c]),x=(0,Te.useCallback)(()=>{n(!1)},[]),v=T=>{if(T.type==="icon"){let y=T.icon;return(0,ge.jsx)(y,{width:m[e],height:m[e],color:T.color})}return T.type==="dot"?(0,ge.jsx)(ve,{color:T.color,size:T.size??"sm"}):T.children};return(0,ge.jsxs)("span",{ref:u,className:(0,Ar.default)("ncua-tag",`ncua-tag--${e}`,{"ncua-tag--truncated":c}),onMouseEnter:F,onMouseLeave:x,children:[t&&v(t),(0,ge.jsx)("span",{className:"ncua-tag__text",children:g}),r&&(0,ge.jsx)("span",{className:"ncua-tag__count",children:r}),a&&(0,ge.jsx)("button",{type:"button",className:"ncua-tag__close",onClick:l,children:(0,ge.jsx)(xe,{color:K.gray300,width:m[e],height:m[e]})}),c&&i&&(0,ge.jsx)("span",{ref:d,className:(0,Ar.default)("ncua-tag__tooltip",`ncua-tag__tooltip--${f}`),children:(0,ge.jsx)("span",{className:"ncua-tag__tooltip-content",children:o})})]})};var oe=require("react/jsx-runtime"),Ms=275,Ir=(0,de.forwardRef)(({placeholder:e="\uAC80\uC0C9\uD558\uC138\uC694",id:t,className:o,hintText:r,children:a,size:l="xs",destructive:s=!1,value:i,optionItems:n=[],onChange:f,onSearch:p,disabled:u=!1,register:d,maxHeight:m=Ms,searchValue:c="",label:g,required:F=!1,multiple:x=!1,showFooterButtons:v=!1,onEdit:T,...y},N)=>{let k=(0,de.useRef)(null),E=(0,de.useRef)(null),w=(0,de.useRef)(null),[b,C]=(0,de.useState)(c),[S,D]=(0,de.useState)(!1),[P,L]=(0,de.useState)([]),$=O=>{if(u)return;let ce;if(x){let Ke=Array.isArray(i)?i:[];Ke.includes(O.id)?ce=Ke.filter(Do=>Do!==O.id):ce=[...Ke,O.id]}else{ce=O.id;let Ke={id:O.id,label:O.label};L([Ke])}f?.(ce),d?.onChange&&d.onChange({target:{value:x?JSON.stringify(ce):ce,name:d.name}})},R=O=>{let ce=O.target.value;C(ce),p?.(ce),D(!1),!I&&!u&&Ne()},B=()=>{u||w.current?.focus(),b&&Ne()},{isOpen:I,direction:G,focusedIndex:ae,toggleDropdown:Ne,closeDropdown:V,handleKeyDown:X,handleOptionSelect:fe,handleMouseMove:J,isKeyboardNavigation:Me}=Lt({triggerRef:k,dropdownRef:E,maxHeight:m,itemCount:n.length,optionItems:n,disabled:u,multiple:x,onSelect:$}),bo=()=>{u||(w.current?.focus(),C(""),p?.(""),D(!0),I||Ne())},Ut=()=>{D(!1),V()},So=O=>{if(O.key==="Escape"&&I){Ut(),O.preventDefault();return}X(O)};(0,de.useImperativeHandle)(N,()=>k.current,[]);let yo={type:"custom",children:(0,oe.jsx)("div",{className:"ncua-input__icon-wrap ncua-input__right-icon",onClick:bo,children:(0,oe.jsx)(U,{label:"\uC804\uCCB4",hierarchy:"text",size:"xxs",leadingIcon:{type:"icon",icon:Ko}})})},wo={type:"icon",icon:cr,size:14,color:"gray300"},ko=x&&Array.isArray(i)?i:[],{buttonText:A,toggleSelectAll:Ce,getSelectedTagsData:Xe,removeTag:St}=Kt(ko,n),Ml=()=>{if(!x||!f)return;let O=Ce();f(O)},El=()=>{T?.()},Bl=()=>{if(!x)return;let O=Xe();L(O),C(""),Ut()},Al=O=>{if(f)if(x){let ce=St(O);f(ce),L(Ke=>Ke.filter(Do=>Do.id!==O))}else f(""),L([])};return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{ref:k,className:(0,Ga.default)("ncua-combobox",`ncua-combobox--${l}`,{"ncua-combobox--open":I,"ncua-combobox--disabled":u,destructive:s},o),...y,children:[(0,oe.jsxs)("div",{className:"ncua-combobox__content",children:[(0,oe.jsx)(tt,{ref:w,size:l,label:g,required:F,placeholder:e,value:b,onChange:R,onKeyDown:So,onClick:B,disabled:u,destructive:s,leadingElement:wo,trailingElement:yo,role:"combobox","aria-expanded":I,"aria-haspopup":"listbox","aria-controls":`combobox-options-${t||"default"}`,"aria-disabled":u,autoComplete:"off",clearText:!!b,onClearText:()=>{C(""),p?.("")}}),(0,oe.jsxs)(ot,{ref:E,isOpen:I,direction:G,size:l,options:S||b?n:[],value:i,focusedIndex:ae,maxHeight:m,listboxId:`combobox-options-${t||"default"}`,onOptionSelect:fe,onMouseMove:J,isKeyboardNavigation:Me,multiple:x,showFooterButtons:x||v,selectAllButtonText:A,onSelectAll:Ml,onEdit:El,onComplete:Bl,componentType:"combobox",children:[!S&&!b||n.length===0?(0,oe.jsx)("li",{className:"ncua-select-dropdown__no-results",children:"\uC77C\uCE58\uD558\uB294 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):null,a]})]}),d&&(0,oe.jsx)("input",{type:"hidden",...d,value:x?JSON.stringify(i||[]):String(i||"")}),r&&(0,oe.jsx)(le,{destructive:s,children:r})]}),P.length>0&&(0,oe.jsx)("div",{className:"ncua-combobox__tags",children:P.map(O=>(0,oe.jsx)(rt,{text:O.label,size:"sm",close:!0,onButtonClick:()=>Al(O.id)},O.id))})]})});Ir.displayName="ComboBox";var Vr=h(_()),$a=require("flatpickr/dist/l10n/ko"),Ue=h(require("moment")),be=require("react");var Hr=require("react/jsx-runtime"),ue=require("react"),Or=h(require("flatpickr"),1),Es=["onCreate","onDestroy"],Ur=["onChange","onOpen","onClose","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"],Bs=(e,t)=>(Ur.forEach(o=>{let r=t[o],a=e[o];if(r){a&&!Array.isArray(a)?e[o]=[e[o]]:e[o]||(e[o]=[]);let l=Array.isArray(r)?r:[r];e[o].length===0?e[o]=l:e[o].push(...l)}}),Ur.forEach(o=>{delete t[o]}),Es.forEach(o=>{delete t[o]}),e),qa=e=>{let t=(0,ue.useMemo)(()=>({...e}),[e]),{defaultValue:o,options:r={},value:a,children:l,render:s}=t,i=(0,ue.useMemo)(()=>Bs(r,t),[r,t]),n=(0,ue.useRef)(null),f=(0,ue.useRef)(void 0);(0,ue.useImperativeHandle)(e.ref,()=>({get flatpickr(){return f.current}}),[]),(0,ue.useEffect)(()=>{var d;let m=()=>{var g;i.onClose=i.onClose||(()=>{var F;(F=n.current)!=null&&F.blur&&n.current.blur()}),f.current=(((g=Or.default)==null?void 0:g.default)||Or.default)(n.current,i),f.current&&a!==void 0&&f.current.setDate(a,!1),e.onCreate&&e.onCreate(f.current)},c=()=>{e.onDestroy&&e.onDestroy(f.current),f.current&&f.current.destroy(),f.current=void 0};if(m(),f.current){let g=Object.getOwnPropertyNames(i);for(let F=g.length-1;F>=0;F--){let x=g[F],v=i[x];v?.toString()!==((d=f.current.config[x])==null?void 0:d.toString())&&(Ur.includes(x)&&!Array.isArray(v)&&(v=[v]),f.current.set(x,v))}a!==void 0&&a!==f.current.input.value&&f.current.setDate(a,!1)}return()=>{c()}},[i,r,t,a,e]);let p=(0,ue.useCallback)(d=>{n.current=d},[]);if(s)return s({...t,defaultValue:o,value:a},p);let u=(0,ue.useCallback)(d=>{var m,c;e&&e.onChange&&(Array.isArray(e?.onChange)?(m=e?.onChange)==null||m.forEach(()=>[new Date(d.target.value)],a?.toString()||""):typeof e.onChange=="function"&&((c=e?.onChange)==null||c.call(e,[new Date(d.target.value)],a?.toString()||"",f.current)))},[e,a]);return r.wrap?(0,Hr.jsx)("div",{className:"flatpickr",ref:p,children:l}):(0,Hr.jsx)("input",{onChange:u,...t,value:a?.toString(),defaultValue:o,ref:p})};var Wa=require("react"),_e=require("react/jsx-runtime"),zr=(0,Wa.forwardRef)(({disabled:e,iconSize:t,iconName:o,...r},a)=>{let l=t==="xs"?14:16;return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)("input",{ref:a,disabled:e,autoComplete:r.autoComplete||"off",...r}),(0,_e.jsx)("label",{className:"ncua-date-picker__ico",htmlFor:r.id,children:o==="calendar"?(0,_e.jsx)(Io,{width:l,height:l}):(0,_e.jsx)(Zo,{width:l,height:l})})]})});zr.displayName="CustomInput";var xt=require("react/jsx-runtime"),As=e=>{let t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())},Mt=(0,be.forwardRef)(({shouldFocus:e=!0,currentDate:t,size:o="xs",onChangeDate:r,datePickerOptions:a,isEndDate:l=!1,onValidationError:s,className:i,...n},f)=>{let p=(0,be.useRef)(null),u=(0,be.useRef)("Y-m-d"),d=(0,be.useRef)({}),m=(w,b,C)=>{let S=[],D=(0,Ue.default)(w);if(!D.isValid())return S;if(b){let P=(0,Ue.default)(b);P.isValid()&&D.isBefore(P,"day")&&S.push("minDate")}if(C){let P=(0,Ue.default)(C);P.isValid()&&D.isAfter(P,"day")&&S.push("maxDate")}return S},c=(w,b,C)=>{if(!w||w.length===0){g(C.input,C);return}let S=w[0];if(!S||!(S instanceof Date)||isNaN(S.getTime())){let R=C?._previousDateBeforeInput;R&&R instanceof Date&&!isNaN(R.getTime())?(C.selectedDates=[R],C.setDate(R,!1)):g(C.input,C);return}let{minDate:D,maxDate:P}=y,L=m(S,D,P);if(L.length>0){let R=C?.selectedDates?.[0];if(s){s({date:S,minDate:D,maxDate:P,violations:L,previousDate:R instanceof Date&&!isNaN(R.getTime())?R:void 0});return}}C._previousDateBeforeInput=S;let $=Mr(b);As($)?r($):r(b)},g=(w,b)=>{if(b.selectedDates.length>0){let C=b.selectedDates[0];if(C instanceof Date&&!isNaN(C.getTime())){let S=u.current.replace(/Y/g,"YYYY").replace(/m/g,"MM").replace(/d/g,"DD");w.value=(0,Ue.default)(C).format(S),b.setDate(C,!1);return}}w.value="",b.setDate("",!1)},F=w=>{let b=w.target,C=b.value,S=p.current;if(!S)return;if(!C||C.trim()===""){b.value="",S.setDate("",!1),r("");return}if(!/[0-9]/.test(C)){g(b,S);return}let D=Mr(C);if(D!==C){b.value=D;return}if(D&&D.length>=10){let P=(0,Ue.default)(D);if(!P.isValid()){g(b,S);return}let L=P.toDate();if(m(L,d.current.minDate,d.current.maxDate).length>0)return}},x=w=>{let b=w.target,C=b.value,S=Na(C);S!==C&&(b.value=S)},v=w=>{let b=w.target,C=b.value,S=Ma(C);S!==C&&(b.value=S)},T=(0,be.useId)(),y={mode:"single",static:!0,locale:$a.Korean,dateFormat:"Y-m-d",clickOpens:!0,time_24hr:!0,formatDate:(w,b,C)=>{try{if(!w||!(w instanceof Date)||isNaN(w.getTime()))return"";let S=(0,Ue.default)(w);if(!S.isValid())return"";let D=b.replace(/Y/g,"YYYY").replace(/y/g,"YY").replace(/m/g,"MM").replace(/d/g,"DD").replace(/H/g,"HH").replace(/i/g,"mm").replace(/S/g,"ss");return S.format(D)}catch{return""}},onChange:c,allowInvalidPreload:!0,onReady:(w,b,C)=>{let S=C.input;if(!S)return;p.current=C,u.current=a?.dateFormat||y.dateFormat||"Y-m-d",d.current={minDate:a?.minDate||y.minDate,maxDate:a?.maxDate||y.maxDate};let D=B=>{C&&C.selectedDates.length>0&&(C._previousDateBeforeInput=C.selectedDates[0])};S.addEventListener("input",F),S.addEventListener("blur",D),C.selectedDates.length>0&&(C._previousDateBeforeInput=C.selectedDates[0]);let P=S.parentElement?.querySelector(".flatpickr-time");if(!P)return;let L=P.querySelector(".flatpickr-hour"),$=P.querySelector(".flatpickr-minute");if(!L||!$)return;L.addEventListener("input",x),$.addEventListener("input",v);let R=B=>{let I=S.parentElement?.querySelector(".flatpickr-calendar.open");I&&!I.contains(B.target)&&I.querySelectorAll(".flatpickr-time input").forEach(ae=>{document.activeElement===ae&&ae.blur()})};document.addEventListener("mousedown",R,!0),C._handleMouseDown=R,C._onBlurHandler=D},onDestroy:(w,b,C)=>{let S=C.input;if(!S)return;p.current=null,S.removeEventListener("input",F);let D=C?._onBlurHandler;D&&S.removeEventListener("blur",D);let P=S.parentElement?.querySelector(".flatpickr-time");if(!P)return;let L=P.querySelector(".flatpickr-hour");L&&L.removeEventListener("input",x);let $=P.querySelector(".flatpickr-minute");$&&$.removeEventListener("input",v);let R=C._handleMouseDown;R&&document.removeEventListener("mousedown",R,!0)},...a},N=a?.hasOwnProperty("enableTime"),k=N&&a?.hasOwnProperty("noCalendar")?"clock":"calendar",E=(0,be.useMemo)(()=>{let w=y.enableTime,b=y.noCalendar,C=y.enableSeconds;if(!w&&!b||t?.includes(":"))return t;if(b)return l?C?"23:59:59":"23:59":C?"00:00:00":"00:00";if(!t)return"";let S=C?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm",D=(0,Ue.default)(t);return l?D.endOf("day").format(S):D.startOf("day").format(S)},[t,l,y.enableSeconds,y.enableTime,y.noCalendar]);return(0,xt.jsxs)("div",{className:(0,Vr.default)("ncua-date-picker",`ncua-date-picker--${o}`,{"ncua-date-picker--disabled":n.disabled,"ncua-date-picker--has-time":N,"ncua-date-picker--destructive":n.destructive},i),children:[(0,xt.jsx)(qa,{...n,ref:f||void 0,className:(0,Vr.default)("ncua-date-picker__input"),options:y,value:E,render:({defaultValue:w,value:b,...C},S)=>{let{allowInput:D,dateFormat:P,minDate:L,maxDate:$,enableTime:R,enableSeconds:B,noCalendar:I,render:G,...ae}=C;return(0,xt.jsx)(zr,{...ae,id:T,iconSize:o,disabled:!!n.disabled,defaultValue:w,iconName:k,ref:S,onInput:F,placeholder:n.placeholder})}}),n.destructive&&(0,xt.jsx)("p",{className:"ncua-date-picker__destructive",children:n.destructive})]})});Mt.displayName="DatePicker";var se=h(require("moment")),at=require("react");var Gr=h(require("moment"));function Xa(){return(0,Gr.default)().toDate()}function eo(e=Xa()){return(0,Gr.default)(e).format("YYYY-MM-DD")}var Et=require("react/jsx-runtime"),to=(0,at.forwardRef)(({startDateOptions:e,endDateOptions:t,validationOption:o,onDateValidation:r,size:a="xs"},l)=>{let s=(0,at.useCallback)((i,n=!1)=>{if(!o?.setting){if(i==="start"&&(0,se.default)(e.currentDate).isAfter(t.currentDate)){r?.({type:i,errorType:"overlap",newDate:t.currentDate,currentDate:e.currentDate});return}if(i==="end"&&(0,se.default)(t.currentDate).isBefore(e.currentDate)){r?.({type:i,errorType:"overlap",newDate:e.currentDate,currentDate:t.currentDate});return}return}let{unit:f,period:p}=o.setting,u="";i==="start"?n?u=eo((0,se.default)(t.currentDate).subtract(p,f).toDate()):(0,se.default)(e.currentDate).isAfter(t.currentDate)&&(u=t.currentDate):n?u=eo((0,se.default)(e.currentDate).add(p,f).toDate()):(0,se.default)(t.currentDate).isBefore(e.currentDate)&&(u=e.currentDate),u&&r?.({type:i,errorType:n?"period":"overlap",newDate:u,currentDate:i==="start"?e.currentDate:t.currentDate})},[e,t,o,r]);return(0,at.useEffect)(()=>{if((0,se.default)(e.currentDate).isAfter(t.currentDate)){s("start");return}if(!o?.setting)return;let{unit:n,period:f}=o.setting;(0,se.default)(e.currentDate).isSameOrAfter((0,se.default)(t.currentDate).subtract(f,n))?r?.({type:"start",errorType:null,newDate:e.currentDate,currentDate:e.currentDate}):s("start",!0)},[e.currentDate]),(0,at.useEffect)(()=>{let i=!(0,se.default)(t.currentDate).isSame((0,se.default)(),"day");if(!o?.setting||!i)return;if((0,se.default)(t.currentDate).isBefore(e.currentDate)){s("end");return}let{unit:f,period:p}=o.setting;(0,se.default)(t.currentDate).isSameOrBefore((0,se.default)(e.currentDate).add(p,f))?r?.({type:"end",errorType:null,newDate:t.currentDate,currentDate:t.currentDate}):s("end",!0)},[t.currentDate]),(0,Et.jsxs)("div",{className:"ncua-range-date-picker",ref:l||void 0,children:[(0,Et.jsx)(Mt,{...e,ref:void 0,size:a}),"~",(0,Et.jsx)(Mt,{isEndDate:!0,...t,ref:void 0,size:a})]})});to.displayName="RangeDatePicker";var Ya=require("react");var Ka={TODAY:{text:"\uC624\uB298",period:0,unit:"days"},YESTERDAY:{text:"\uC5B4\uC81C",period:1,unit:"days"},"3DAYS":{text:"3\uC77C",period:3,unit:"days"},"7DAYS":{text:"7\uC77C",period:7,unit:"days"},"1WEEK":{text:"1\uC8FC\uC77C",period:1,unit:"week"},"15DAYS":{text:"15\uC77C",period:15,unit:"days"},"1MONTHS":{text:"1\uAC1C\uC6D4",period:1,unit:"months"},"3MONTHS":{text:"3\uAC1C\uC6D4",period:3,unit:"months"},"1YEAR":{text:"1\uB144",period:1,unit:"years"},ENTIRE:{text:"\uC804\uCCB4",period:0,unit:null},NONE:{text:"",period:0,unit:null}};var gt=require("react/jsx-runtime"),Is=({useYesterdayAsEndDate:e=!1,size:t="xs",currentButtonId:o,setCurrentButtonId:r,startDateOptions:a,endDateOptions:l,validationOption:s,periodKeys:i,periodItems:n,onDateValidation:f})=>{let p=n??Ka,u=()=>{let m=p[o];if(!m)return;if(o==="ENTIRE"){a.onChangeDate(""),l.onChangeDate("");return}let c=Jt(Nr({period:m.period,unit:m.unit}));a.onChangeDate(c);let g=e?Jt(Nr({period:1,unit:"days"})):Jt();l.onChangeDate(g)},d=(m,c)=>{c==="START"?a.onChangeDate(m):l.onChangeDate(m),o&&r("NONE")};return(0,Ya.useEffect)(()=>{o!=="NONE"&&u()},[o]),(0,gt.jsxs)("div",{className:"ncua-range-date-picker-with-buttons",children:[(0,gt.jsx)(Rt,{size:t,children:i.map(m=>(0,gt.jsx)(Rt.Item,{isCurrent:o===m,label:p[m].text,onClick:()=>r(m)},m))}),(0,gt.jsx)(to,{startDateOptions:{...a,onChangeDate:m=>d(m,"START")},endDateOptions:{...l,onChangeDate:m=>d(m,"END")},validationOption:s,onDateValidation:f,size:t})]})};var Za=require("react"),Qa=h(_()),ht=require("react/jsx-runtime"),Hs=(0,Za.forwardRef)(({className:e,type:t,style:o="single-line",children:r},a)=>(0,ht.jsxs)("div",{className:(0,Qa.default)("ncua-divider",`ncua-divider--${t}`,`ncua-divider--${o}`,e),ref:a,children:[o==="single-line"&&(0,ht.jsx)("div",{className:"ncua-divider__line"}),(0,ht.jsx)("div",{className:"ncua-divider__content",children:r}),o==="single-line"&&(0,ht.jsx)("div",{className:"ncua-divider__line"})]}));var Ft=require("react"),M=require("react/jsx-runtime"),Os=({trigger:e,align:t="left",header:o,groups:r,className:a,opened:l=!1,closeOnClickItem:s=!0,closeOnClickOutside:i=!0})=>{let[n,f]=(0,Ft.useState)(l),p=(0,Ft.useRef)(null),u=()=>{f(!n)},d=v=>{p.current&&!p.current.contains(v.target)&&f(!1)},m=v=>{!v.disabled&&v.onClick&&(v.onClick(),s&&f(!1))};(0,Ft.useEffect)(()=>{if(i)return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[i]);let c=()=>{switch(e.type){case"custom":return(0,M.jsx)("button",{className:"ncua-dropdown__trigger",onClick:u,children:e.children});case"icon":{let v=e.icon??Jo;return(0,M.jsx)("button",{className:"ncua-dropdown__trigger ncua-dropdown__trigger--icon",onClick:u,children:(0,M.jsx)(v,{})})}case"avatar":return(0,M.jsx)("button",{className:"ncua-dropdown__trigger ncua-dropdown__trigger--avatar",onClick:u,children:(0,M.jsx)("div",{className:"ncua-dropdown__avatar",children:(0,M.jsx)("img",{src:e.avatar,alt:"avatar"})})});case"button":return(0,M.jsx)("button",{className:"ncua-dropdown__trigger ncua-dropdown__trigger--button",onClick:u,children:e.text});default:return null}},g=()=>o?o.type==="avatar"&&o.avatar?(0,M.jsx)("div",{className:"ncua-dropdown__header",children:(0,M.jsxs)("div",{className:"ncua-dropdown__header-avatar-group",children:[(0,M.jsx)("div",{className:"ncua-dropdown__avatar",children:(0,M.jsx)("img",{src:o.avatar,alt:"avatar"})}),(0,M.jsxs)("div",{className:"ncua-dropdown__header-text",children:[o.title&&(0,M.jsx)("div",{className:"ncua-dropdown__header-title",children:o.title}),o.subtitle&&(0,M.jsx)("div",{className:"ncua-dropdown__header-subtitle",children:o.subtitle})]})]})}):o.type==="text"&&o.title?(0,M.jsx)("div",{className:"ncua-dropdown__header",children:(0,M.jsx)("div",{className:"ncua-dropdown__header-title",children:o.title})}):null:null,F=v=>{let T=v.icon,y=["ncua-dropdown__item",v.disabled?"is-disabled":"",v.type==="danger"?"is-danger":"",v.className].filter(Boolean).join(" ");return(0,M.jsxs)("div",{className:y,children:[(0,M.jsx)("button",{className:"ncua-dropdown__item-clickable-layer",onClick:()=>m(v)}),(0,M.jsxs)("div",{className:"ncua-dropdown__item-content",children:[(0,M.jsxs)("div",{className:"ncua-dropdown__item-text-group",children:[T&&(0,M.jsx)(T,{className:"ncua-dropdown__item-icon"}),(0,M.jsx)("span",{className:"ncua-dropdown__item-text",children:v.text})]}),v.shortcut&&(0,M.jsx)("span",{className:"ncua-dropdown__item-shortcut",children:v.shortcut})]})]},v.id)},x=["ncua-dropdown",a,t==="right"?"ncua-dropdown--right":""].filter(Boolean).join(" ");return(0,M.jsxs)("div",{className:x,ref:p,children:[c(),n&&(0,M.jsxs)("div",{className:"ncua-dropdown__menu",children:[g(),(0,M.jsx)("div",{className:"ncua-dropdown__menu-items",children:r.map((v,T)=>(0,M.jsx)("div",{className:"ncua-dropdown__group",children:v.items.map(F)},T))})]})]})};var lt=require("react/jsx-runtime"),Us=({title:e,description:t,buttons:o})=>{let r=o?Array.isArray(o)?o:[o]:[];return(0,lt.jsxs)("div",{className:"ncua-empty-state",children:[(0,lt.jsx)("p",{className:"ncua-empty-state__title",children:e}),(0,lt.jsx)("span",{className:"ncua-empty-state__description",children:t}),r.length>0&&(0,lt.jsx)("div",{className:"ncua-empty-state__button-group",children:r.map(({size:a,label:l,...s})=>(0,lt.jsx)(U,{size:a??"xs",label:l,...s},l))})]})};var ja=h(_()),el=require("react"),Re=require("react/jsx-runtime"),Ja={sm:16,md:20,lg:24,xl:28},st=(0,el.forwardRef)(({icon:e,theme:t="light-circle",color:o="neutral",size:r="md",className:a,...l},s)=>(0,Re.jsxs)("div",{ref:s,className:(0,ja.default)("ncua-featured-icon",`ncua-featured-icon--${t}`,`ncua-featured-icon--${o}`,`ncua-featured-icon--${r}`,a),...l,children:[t==="outline-circle"&&(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("div",{className:"ncua-featured-icon__outline ncua-featured-icon__outline--inner"}),(0,Re.jsx)("div",{className:"ncua-featured-icon__outline ncua-featured-icon__outline--outer"})]}),(0,Re.jsx)(e,{width:Ja[r],height:Ja[r]})]}));var tl=h(_()),ze=require("react");var re=require("react/jsx-runtime"),qr=(r=>(r.ALREADY_UPLOADED="ALREADY_UPLOADED",r.EXCEED_MAX_FILE_SIZE="EXCEED_MAX_FILE_SIZE",r.EXCEED_MAX_FILE_COUNT="EXCEED_MAX_FILE_COUNT",r))(qr||{}),zs=(0,ze.forwardRef)(({size:e="xs",accept:t,multiple:o=!1,maxFileSize:r,maxFileCount:a,value:l,onChange:s,onFileSelect:i,onFail:n,buttonLabel:f="\uD30C\uC77C \uCC3E\uAE30",disabled:p,label:u,hintItems:d,validation:m,destructive:c,isRequired:g,showHelpIcon:F,hintText:x,...v},T)=>{let y=(0,ze.useRef)(null),[N,k]=(0,ze.useState)([]),E=l!==void 0,w=E?l:N;(0,ze.useEffect)(()=>{E&&l&&k(l)},[E,l]);let b=R=>{E?s?.(R):(k(R),i?.(R))},C=R=>{let B=R.target.files;if(!B||B.length===0)return;let{validFiles:I,invalidFiles:G}=S(Array.from(B)),ae=[...w,...I];b(ae),n&&G.length>0&&n(G)},S=R=>{let B=[],I=[];for(let G of R){if(w.some(ae=>ae.name===G.name&&ae.size===G.size)){I.push({...G,errorType:"ALREADY_UPLOADED"});continue}if(r&&G.size>r){I.push({...G,errorType:"EXCEED_MAX_FILE_SIZE"});continue}if(a&&w.length+B.length>=a){I.push({...G,errorType:"EXCEED_MAX_FILE_COUNT"});continue}B.push(G)}return{validFiles:B,invalidFiles:I}},D=()=>{y.current&&!p&&y.current.click()},P=R=>{let B=[...w];B.splice(R,1),b(B)},L=()=>w.length===0?null:(0,re.jsx)("div",{className:"ncua-file-input__file-tags",children:w.map((R,B)=>(0,re.jsxs)("div",{className:"ncua-file-input__file-tag-container",children:[(0,re.jsx)(rt,{text:R.name,size:e==="xs"?"sm":"md",close:!0,onButtonClick:()=>P(B)}),R.type.startsWith("image/")&&(0,re.jsx)("img",{className:"ncua-file-input__file-image",src:URL.createObjectURL(R),alt:R.name})]},`${R.name}-${B}`))}),$=()=>!d||d.length===0?null:(0,re.jsx)("ul",{className:"ncua-file-input__hint-list",children:d.map((R,B)=>(0,re.jsx)("li",{className:"ncua-file-input__hint-item",children:R},B))});return(0,re.jsxs)("div",{className:(0,tl.default)("ncua-file-input",`ncua-file-input--${e}`),children:[(0,re.jsx)("input",{hidden:!0,ref:y,type:"file",accept:t,multiple:o,onChange:C,tabIndex:-1,"aria-hidden":"true",...v}),(0,re.jsxs)("div",{className:"ncua-file-input__input-container",children:[(0,re.jsxs)("div",{className:"ncua-file-input__label",children:[(0,re.jsx)(De,{isRequired:g,children:u}),F&&(0,re.jsx)(ke,{className:"ncua-input__help-icon"})]}),(0,re.jsx)(U,{size:e,onClick:D,disabled:p,leadingIcon:{type:"icon",icon:_t},label:f}),x&&(0,re.jsx)(le,{destructive:c,children:x})]}),$(),L()]})});var ro=h(_()),Pe=require("react");var Wr=h(_()),ie=require("react");var he=require("react/jsx-runtime"),oo=10,Vs=200,Gs=60,qs=["bottom","top","right","left"],Ws=(e,t,o="bottom")=>{let r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),{innerWidth:l,innerHeight:s}=window,i={top:r.top,bottom:s-r.bottom,left:r.left,right:l-r.right},n=a.width||Vs,f=a.height||Gs;for(let p of qs)if(p==="bottom"||p==="top"?i[p]>=f+oo:i[p]>=n+oo){if(p==="bottom"||p==="top"){let d=r.left+r.width/2,m=n/2;if(d-m<oo)return`${p}-left`;if(d+m>l-oo)return`${p}-right`}return p}return o},$r=({tooltipType:e="black",iconType:t="stroke",position:o="auto",size:r="sm",title:a,content:l,hideArrow:s=!1,type:i="short",iconColor:n="var(--gray-300)",iconStyle:f="help-circle",className:p})=>{let u=r==="sm"?14:16,d=(0,ie.useRef)(null),m=(0,ie.useRef)(null),[c,g]=(0,ie.useState)(o==="auto"?"bottom":o),[F,x]=(0,ie.useState)(!1),[v,T]=(0,ie.useState)(!1),[y,N]=(0,ie.useState)(!1),k=(0,ie.useCallback)(()=>{v||(x(!0),o==="auto"&&d.current&&m.current&&(N(!0),setTimeout(()=>{if(d.current&&m.current){let D=Ws(d.current,m.current,"bottom");g(D),N(!1)}},0)))},[o,v]),E=(0,ie.useCallback)(()=>{i==="short"&&x(!1),T(!1)},[i]),w=(0,ie.useCallback)(()=>{x(!1),T(!0)},[]),b=o==="auto"?c:o,C=(0,ie.useMemo)(()=>(0,Wr.default)("ncua-tooltip",`ncua-tooltip--${r}`,`ncua-tooltip--${i}`,{"ncua-tooltip--hidden-arrow":s,"ncua-tooltip--stroke":t==="stroke","ncua-tooltip--auto":o==="auto"},p),[r,i,s,t,o,p]),S=(0,ie.useMemo)(()=>(0,Wr.default)("ncua-tooltip__bg",`ncua-tooltip__bg--${e}`,`ncua-tooltip__bg--${b}`,{"ncua-tooltip__bg--visible":F,"ncua-tooltip__bg--measuring":y,"ncua-tooltip__bg--force-hidden":v}),[e,b,F,y,v]);return(0,he.jsxs)("span",{ref:d,className:C,onMouseEnter:k,onMouseLeave:E,children:[f==="help-circle"&&(t==="stroke"?(0,he.jsx)(ke,{width:u,height:u,color:n}):(0,he.jsx)(rr,{width:u,height:u,color:n})),f==="alert-circle"&&(t==="stroke"?(0,he.jsx)(Ye,{width:u,height:u,color:n}):(0,he.jsx)(Ro,{width:u,height:u,color:n})),(0,he.jsxs)("span",{ref:m,className:S,children:[a&&(0,he.jsx)("span",{className:"ncua-tooltip__title",children:a}),l&&(0,he.jsx)("span",{className:"ncua-tooltip__content",children:l}),i==="long"&&(0,he.jsx)(Je,{className:"ncua-tooltip__close-button",size:"xs",theme:e==="white"?"dark":"light",onClick:w,"aria-label":"\uD234\uD301 \uB2EB\uAE30"})]})]})};var Bt=require("react/jsx-runtime"),ol=({file:e,onRemove:t})=>(0,Bt.jsxs)("div",{className:"ncua-image-file-input__preview-container",children:[(0,Bt.jsx)("img",{className:"ncua-image-file-input__preview-image",src:URL.createObjectURL(e),alt:e.name}),(0,Bt.jsx)(U,{size:"sm",hierarchy:"text",onlyIcon:!0,leadingIcon:{type:"icon",icon:gr,color:"gray200"},label:"Remove image",onClick:t,className:"ncua-image-file-input__preview-remove-button"})]});var Y=require("react/jsx-runtime"),$s=(0,Pe.forwardRef)(({size:e="sm",accept:t,multiple:o=!1,maxFileSize:r,maxFileCount:a,value:l,onChange:s,onFileSelect:i,onFail:n,buttonLabel:f="\uD30C\uC77C \uCC3E\uAE30",imagePreviewTooltipLabel:p="\uC774\uBBF8\uC9C0 \uC5C5\uB85C\uB4DC",disabled:u,label:d,hintItems:m,validation:c,destructive:g,isRequired:F,showHelpIcon:x,hintText:v,showFileTagList:T=!0,showHintText:y=!0,showFileInput:N=!0,...k},E)=>{let w=(0,Pe.useRef)(null),[b,C]=(0,Pe.useState)([]),[S,D]=(0,Pe.useState)(!1),P=l!==void 0,L=P?l:b;(0,Pe.useEffect)(()=>{P&&l&&C(l)},[P,l]);let $=V=>{P?s?.(V):(C(V),i?.(V))},R=V=>{let X=V.target.files;if(!X||X.length===0)return;let{validFiles:fe,invalidFiles:J}=B(Array.from(X)),Me=a===1?fe:[...L,...fe];$(Me),n&&J.length>0&&n(J),V.target.value=""},B=V=>{let X=[],fe=[];for(let J of V){if(L.some(Me=>Me.name===J.name&&Me.size===J.size)){fe.push({...J,errorType:"ALREADY_UPLOADED"});continue}if(r&&J.size>r){fe.push({...J,errorType:"EXCEED_MAX_FILE_SIZE"});continue}if(a&&a!==1&&L.length+X.length>=a){fe.push({...J,errorType:"EXCEED_MAX_FILE_COUNT"});continue}X.push(J)}return{validFiles:X,invalidFiles:fe}},I=()=>{w.current&&!u&&w.current.click()},G=V=>{let X=[...L];X.splice(V,1),$(X)},ae=(V=[])=>{let X=a?V.length<a:V.length===0;return(0,Y.jsxs)("div",{className:"ncua-image-file-input__previews",children:[V.map((fe,J)=>(0,Y.jsx)(ol,{file:fe,onRemove:()=>G(J)},`${fe.name}-${J}`)),X&&(0,Y.jsxs)("div",{className:"ncua-image-file-input__empty-slot-wrapper",onMouseEnter:()=>!u&&D(!0),onMouseLeave:()=>D(!1),onClick:I,children:[(0,Y.jsx)(U,{onlyIcon:!0,size:e,className:(0,ro.default)("ncua-image-file-input__preview-container"),onClick:I,disabled:u,label:p}),S&&!u&&(0,Y.jsx)($r,{content:p,position:"bottom"})]})]})},Ne=()=>!m||m.length===0?null:(0,Y.jsx)("ul",{className:"ncua-file-input__hint-list",children:m.map((V,X)=>(0,Y.jsx)("li",{className:"ncua-file-input__hint-item",children:V},X))});return(0,Y.jsxs)("div",{className:(0,ro.default)("ncua-image-file-input",`ncua-image-file-input--${e}`,{destructive:g}),children:[ae(L),N&&(0,Y.jsxs)("div",{className:(0,ro.default)("ncua-file-input",`ncua-file-input--${e}`),children:[(0,Y.jsx)("input",{hidden:!0,ref:w,type:"file",accept:t,multiple:o,onChange:R,tabIndex:-1,"aria-hidden":"true",...k}),(0,Y.jsxs)("div",{className:"ncua-file-input__input-container",children:[(0,Y.jsxs)("div",{className:"ncua-file-input__label",children:[(0,Y.jsx)(De,{isRequired:F,children:d}),x&&(0,Y.jsx)(ke,{className:"ncua-input__help-icon"})]}),(0,Y.jsx)(U,{size:"xs",onClick:I,disabled:u,leadingIcon:{type:"icon",icon:_t},label:f}),y&&v&&(0,Y.jsx)(le,{destructive:g,children:v})]}),y&&Ne()]})]})});var Se=require("react");var rl=require("react");var ao=require("react"),Xr=(e,t)=>{let[o,r]=(0,ao.useState)(!1);return(0,ao.useEffect)(()=>{let a=window.matchMedia(e);r(a.matches);let l=s=>{r(s.matches),s.matches&&t?.onMatched?.()};return a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,t?.onMatched]),o};function Kr(e){return t=>{e.forEach(o=>{o&&(typeof o=="function"?o(t):o.current=t)})}}var Ct=require("react/jsx-runtime"),Xs=(0,Se.forwardRef)(({size:e="xs",minValue:t,maxValue:o,step:r=1,stepperPosition:a,disabled:l,...s},i)=>{let n=(0,Se.useRef)(null),f=Kr([i,n]),p=(0,Se.useCallback)(()=>{let F=n.current?.value;return F?parseFloat(F):0},[]),u=(0,Se.useCallback)(F=>{if(!n.current)return;let x=F;t!==void 0&&x<t&&(x=t),o!==void 0&&x>o&&(x=o),n.current.value=x.toString();let v=new Event("input",{bubbles:!0});n.current.dispatchEvent(v)},[t,o]),d=(0,Se.useCallback)(()=>{let x=p()+r;(o===void 0||x<=o)&&u(x)},[p,r,o,u]),m=(0,Se.useCallback)(()=>{let x=p()-r;(t===void 0||x>=t)&&u(x)},[p,r,t,u]),c=(0,Se.useCallback)(F=>{l||(F.key==="ArrowUp"?(F.preventDefault(),d()):F.key==="ArrowDown"&&(F.preventDefault(),m()),s.onKeyDown?.(F))},[l,d,m,s]),g=F=>F!==a?null:(0,Ct.jsxs)("div",{className:"ncua-input__stepper-button-group",children:[(0,Ct.jsx)($t,{size:e,direction:"up",onClick:d,disabled:l}),(0,Ct.jsx)($t,{size:e,direction:"down",onClick:m,disabled:l})]});return(0,Ct.jsx)(tt,{type:"number",leadingElement:g("leading")?{type:"custom",children:g("leading"),placement:"inside"}:s.leadingElement,trailingElement:g("trailing")?{type:"custom",children:g("trailing"),placement:"inside"}:s.trailingElement,ref:f,size:e,disabled:l,min:t,max:o,step:r,onKeyDown:c,className:"ncua-input__number",...s})});var ll=h(_()),lo=require("react");var At=require("react/jsx-runtime"),al={xs:14,sm:20},Ks=(0,lo.forwardRef)(({size:e="xs",...t},o)=>{let[r,a]=(0,lo.useState)(!1),l={width:al[e],height:al[e]},s=()=>{a(i=>!i)};return(0,At.jsx)(tt,{ref:o,size:e,type:r?"text":"password",leadingElement:{type:"icon",icon:fr,color:t.value?"gray600":"gray300"},trailingElement:{type:"custom",placement:"inside",children:(0,At.jsx)("button",{className:(0,ll.default)("ncua-input__icon-wrap","ncua-input__right-icon","ncua-input__password-icon"),type:"button",onClick:s,children:r?(0,At.jsx)(tr,{...l}):(0,At.jsx)(er,{...l})})},...t})});var sl=h(_()),Ve=require("react");var ye=require("react/jsx-runtime"),Ys=(0,Ve.forwardRef)(({className:e,size:t="xs",label:o,required:r,disabled:a,hintText:l,characterCount:s,destructive:i,...n},f)=>{let p=(0,Ve.useRef)(null),[u,d]=(0,Ve.useState)(0),m=l||s;return(0,Ve.useEffect)(()=>{if(p.current&&s){d(p.current.value.length);let c=()=>{d(p.current?.value.length??0)};return p.current.addEventListener("input",c),()=>{p.current?.removeEventListener("input",c)}}},[s]),(0,ye.jsxs)("div",{className:(0,sl.default)("ncua-input","ncua-input--textarea",`ncua-input--textarea--${t}`,{destructive:i,"is-disabled":a},e),children:[o&&(0,ye.jsx)(De,{htmlFor:n.id,isRequired:r,children:o}),(0,ye.jsx)("textarea",{ref:c=>{typeof f=="function"?f(c):f&&(f.current=c),p.current=c},className:"ncua-input__textarea",disabled:a,...n}),m&&(0,ye.jsxs)("div",{className:"ncua-input__text-count-wrap",children:[l&&(0,ye.jsx)(le,{as:"div",destructive:i,children:l}),s&&(0,ye.jsx)("div",{className:"ncua-input__text-count",children:(0,ye.jsxs)("span",{className:"ncua-input__text-count-text",children:[(0,ye.jsx)("span",{className:"ncua-input__text-count-text-count",children:u}),"/",n.maxLength??0]})})]})]})});var it=h(_()),so=require("react"),il=h(require("react-dom"));var z=require("react/jsx-runtime"),io=({isOpen:e,onClose:t,children:o,size:r="md",closeOnBackdropClick:a=!1,closeOnEsc:l=!0,className:s,zIndex:i,...n})=>{let f=(0,so.useRef)(null),p=d=>{a&&d.target===d.currentTarget&&t()};if((0,so.useEffect)(()=>{let d=m=>{e&&l&&m.key==="Escape"&&t()};return e&&(document.addEventListener("keydown",d),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}},[e,l,t]),!e)return null;let u=(0,z.jsx)("div",{className:(0,it.default)("ncua-modal-backdrop",s),onClick:p,ref:f,style:i?{zIndex:i}:void 0,...n,children:(0,z.jsx)("div",{className:(0,it.default)("ncua-modal",`ncua-modal--${r}`),children:o})});return il.default.createPortal(u,document.body)};io.Header=({children:e,onClose:t,featuredIcon:o,title:r,subtitle:a,align:l="left",showDivider:s=!1,hideCloseButton:i=!1})=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("header",{className:(0,it.default)("ncua-modal__header",`ncua-modal__header--${l}`,{"ncua-modal__header--close-button":!i}),children:[o&&(0,z.jsx)(st,{icon:o.icon,color:o.color,theme:o.theme,size:"sm"}),(0,z.jsxs)("div",{className:"ncua-modal__title",children:[(0,z.jsx)("div",{className:"ncua-modal__title-text",children:r}),a&&(0,z.jsx)("div",{className:"ncua-modal__title-subtitle",children:a})]}),e,!i&&(0,z.jsx)(Je,{className:"ncua-modal__close-button",size:"sm",theme:"light",onClick:t})]}),s&&(0,z.jsx)("div",{className:"ncua-modal__header-divider"})]});io.Content=({children:e,className:t})=>(0,z.jsx)("div",{className:(0,it.default)("ncua-modal__content",t),children:e});io.Actions=({children:e,layout:t="vertical",showDivider:o=!1,align:r="stretch",checkboxContent:a,className:l})=>(0,z.jsxs)(z.Fragment,{children:[o&&(0,z.jsx)("div",{className:"ncua-modal__actions-divider"}),(0,z.jsxs)("div",{className:(0,it.default)("ncua-modal__actions-wrapper",l,{"ncua-modal__actions-wrapper--checkbox":t==="checkbox"}),children:[t==="checkbox"&&(0,z.jsx)("div",{className:"ncua-modal__actions-checkbox",children:(0,z.jsx)("div",{className:"ncua-modal__actions-checkbox-content",children:a})}),(0,z.jsx)("div",{className:(0,it.default)("ncua-modal__actions",`ncua-modal__actions--${t}`,`ncua-modal__actions--${r}`),children:e})]})]});var cl=require("react");var ul=h(_()),Ge=require("react");var Zs={mobile:"768px"},nl={mobile:`(max-width: ${Zs.mobile})`};var pe=require("react/jsx-runtime"),fl={neutral:Ze,error:Ee,warning:Ye,success:we},Yr=(0,Ge.forwardRef)(({title:e,supportingText:t,color:o="neutral",onClose:r,className:a,actions:l,autoClose:s=0,...i},n)=>{let[f,p]=(0,Ge.useState)(!1),u=o,d={icon:fl[o]||Ze,size:"sm",color:u,theme:"dark-circle"},m=Xr(nl.mobile,{onMatched:r}),c=(0,Ge.useRef)(null);return(0,Ge.useEffect)(()=>(s>0&&(c.current=setTimeout(()=>{r&&r(),p(!0)},s)),()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[s,r]),f?null:(0,pe.jsxs)("div",{ref:n,className:(0,ul.default)("ncua-floating-notification",`ncua-floating-notification--${o}`,a),role:"alert",...i,children:[(0,pe.jsx)("div",{className:"ncua-floating-notification__content",children:(0,pe.jsxs)("div",{className:"ncua-floating-notification__container",children:[fl[o]&&(0,pe.jsx)(st,{...d,size:m?"md":"sm"}),(0,pe.jsxs)("div",{className:"ncua-floating-notification__text-container",children:[(0,pe.jsx)("div",{className:"ncua-floating-notification__title-wrapper",children:(0,pe.jsx)("span",{className:"ncua-floating-notification__title",children:e})}),t&&(0,pe.jsx)("span",{className:"ncua-floating-notification__supporting-text",children:t}),l&&(0,pe.jsx)("div",{className:"ncua-floating-notification__actions",children:l.map(g=>(0,pe.jsx)(U,{size:"xs",hierarchy:g.hierarchy||"text",label:g.label,onClick:g?.onClick},`${g.label}-${g.hierarchy}`))})]})]})}),r&&(0,pe.jsx)(Je,{theme:"light",className:"ncua-floating-notification__close-button",size:m?"sm":"xs",onClick:r})]})});var no=h(_()),qe=require("react");var Z=require("react/jsx-runtime"),Qs={neutral:pr,error:Ee,warning:Ee,success:we,info:Tt},pl={neutral:"gray700",error:"red500",warning:"orange500",success:"green600",info:"violet600"},Zr=(0,qe.forwardRef)(({title:e,supportingText:t,color:o="neutral",onClose:r,className:a,actions:l,autoClose:s=0,supportTextLink:i,onHidePermanently:n,...f},p)=>{let[u,d]=(0,qe.useState)(!1),m={width:20,height:20},c=(0,qe.useRef)(null);return(0,qe.useEffect)(()=>(s>0&&(c.current=setTimeout(()=>{r&&r(),d(!0)},s)),()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[s,r]),u?null:(0,Z.jsx)("div",{ref:p,className:(0,no.default)("ncua-full-width-notification",`ncua-full-width-notification--${o}`,a),role:"alert",...f,children:(0,Z.jsx)("div",{className:"ncua-full-width-notification__container",children:(0,Z.jsxs)("div",{className:"ncua-full-width-notification__content",children:[(0,Z.jsxs)("div",{className:"ncua-full-width-notification__content-wrapper",children:[(()=>{let g=Qs[o];return(0,Z.jsx)(g,{width:16,height:16,color:K[pl[o]],className:"ncua-full-width-notification__icon"})})(),(0,Z.jsxs)("div",{className:"ncua-full-width-notification__text-container",children:[(0,Z.jsx)("span",{className:"ncua-full-width-notification__title",children:e}),!i&&t&&(0,Z.jsx)("span",{className:"ncua-full-width-notification__supporting-text",children:t}),i&&t&&(0,Z.jsx)("a",{href:i,className:"ncua-full-width-notification__link",children:(0,Z.jsx)("span",{className:"ncua-full-width-notification__supporting-text",children:t})})]})]}),(0,Z.jsxs)("div",{className:"ncua-full-width-notification__actions-container",children:[l&&(0,Z.jsx)("div",{className:"ncua-full-width-notification__actions",children:l.map(g=>(0,Z.jsx)("button",{onClick:g.onClick,className:(0,no.default)("ncua-notification__action-button",`ncua-notification__action-button--${g.hierarchy||"text"}`),children:g.label},`${g.label}-${g.hierarchy}`))}),n&&(0,Z.jsx)("button",{type:"button",className:(0,no.default)("ncua-notification__action-button","ncua-notification__action-button--text","ncua-full-width-notification__link"),onClick:n,children:"\uB2E4\uC2DC\uBCF4\uC9C0 \uC54A\uAE30"}),r&&(0,Z.jsx)("button",{type:"button",className:"ncua-full-width-notification__close-button",onClick:r,"aria-label":"\uC54C\uB9BC \uB2EB\uAE30",children:(0,Z.jsx)(xe,{...m,color:K[pl[o]]})})]})]})})})});var Qr=h(_()),ml=require("react");var j=require("react/jsx-runtime"),dl={neutral:Ze,error:Ee,warning:Ye,success:we},Js={neutral:"gray700",error:"red500",warning:"orange500",success:"green600"},fo=(0,ml.forwardRef)(({title:e,supportingText:t,icon:o,color:r="neutral",onClose:a,className:l,actions:s,onHidePermanently:i,...n},f)=>{let p=r==="info"?"neutral":r,u=p,d={icon:o||dl[p]||Ze,size:"lg",color:u,theme:"light-circle"},m=K[Js[p]||"gray700"];return(0,j.jsx)("div",{ref:f,className:(0,Qr.default)("ncua-message-notification",`ncua-message-notification--${p}`,l),role:"alert",...n,children:(0,j.jsx)("div",{className:"ncua-message-notification__container",children:(0,j.jsxs)("div",{className:"ncua-message-notification__content",children:[(0,j.jsxs)("div",{className:"ncua-message-notification__content-wrapper",children:[dl[p]&&(0,j.jsx)(st,{...d,className:"ncua-message-notification__icon"}),(0,j.jsxs)("div",{className:"ncua-message-notification__text-container",children:[(0,j.jsx)("span",{className:"ncua-message-notification__title",children:e}),t&&(0,j.jsx)("span",{className:"ncua-message-notification__supporting-text",children:t})]})]}),(0,j.jsx)("div",{className:"ncua-message-notification__actions-container",children:s&&(0,j.jsx)("div",{className:"ncua-message-notification__actions",children:s.map(c=>(0,j.jsx)(U,{size:"xs",hierarchy:c.hierarchy||"text",label:c.label,onClick:c?.onClick},`${c.label}-${c.hierarchy}`))})}),(0,j.jsxs)("div",{className:"ncua-message-notification__footer-container",children:[i&&(0,j.jsx)("button",{type:"button",className:(0,Qr.default)("ncua-notification__action-button","ncua-notification__action-button--link","ncua-message-notification__hide-link"),onClick:i,children:"\uB2E4\uC2DC \uBCF4\uC9C0 \uC54A\uAE30"}),a&&(0,j.jsx)("button",{type:"button",className:"ncua-message-notification__close-button",onClick:a,"aria-label":"\uC54C\uB9BC \uB2EB\uAE30",children:(0,j.jsx)(xe,{width:20,height:20,color:m})})]})]})})})});fo.displayName="MessageNotification";var uo=require("react/jsx-runtime"),xl=(0,cl.forwardRef)(({type:e="floating",color:t="neutral",...o},r)=>e==="floating"?(0,uo.jsx)(Yr,{color:t,...o,ref:r}):e==="full-width"?(0,uo.jsx)(Zr,{color:t,...o,ref:r}):e==="message"?(0,uo.jsx)(fo,{color:t,...o,ref:r}):null);xl.displayName="Notification";var gl=require("react/jsx-runtime"),js={first:{label:"\uCC98\uC74C",className:"ncua-pagination__first",getIcon:e=>Vo},prev:{label:"\uC774\uC804",className:"ncua-pagination__before",getIcon:e=>e?kt:Mo},next:{label:"\uB2E4\uC74C",className:"ncua-pagination__next",getIcon:e=>e?Dt:Bo},last:{label:"\uB9C8\uC9C0\uB9C9",className:"ncua-pagination__last",getIcon:e=>Wo}},vt=({type:e,breakPoint:t,noPrev:o,noNext:r,onClick:a})=>{let l=js[e],s=e==="first"||e==="prev"||e==="next"||e==="last",f=(e==="first"||e==="prev"?o:!1)||(e==="next"||e==="last"?r:!1),p=t==="pc",u={label:l.label,className:l.className,onlyIcon:!0,leadingIcon:{type:"icon",icon:l.getIcon(p),size:p?16:20,color:f?"gray200":"gray700"},hierarchy:"secondary-gray",size:p?"xs":"sm",disabled:f,onClick:a},d=s?`${t}-${e}`:void 0;return(0,gl.jsx)(U,{...u},d)};var Jr=h(_()),bt=require("lodash-es"),po=require("react");var ne=require("react/jsx-runtime"),ei=({className:e="",totalCount:t,itemCountPerPage:o=10,pageCount:r=10,currentPage:a,breakPoint:l="pc",onPageChange:s,...i})=>{let n=Math.ceil(t/o),[f,p]=(0,po.useState)(1),u=l==="mo"?a===1:f===1,d=l==="mo"?a>=n:f+r-1>=n,m=n>r,c=g=>{(0,bt.isFunction)(s)&&s(g)};return(0,po.useEffect)(()=>{if(a===f+r&&p(f+r),a>f+r){let g=Math.floor((a-1)/r)*r+1;p(g)}if(a<f&&p(Math.max(1,f-r)),a===1&&p(1),a===n){let g=Math.floor((n-1)/r)*r+1;p(g)}},[a]),(0,ne.jsx)(ne.Fragment,{children:(0,ne.jsxs)("div",{className:(0,Jr.default)("ncua-pagination",`ncua-pagination--${l}`,e),children:[m&&(0,ne.jsxs)(ne.Fragment,{children:[vt({type:"first",breakPoint:l,noPrev:u,noNext:d,onClick:()=>c(1)}),vt({type:"prev",breakPoint:l,noPrev:u,noNext:d,onClick:()=>c(Math.max(l==="mo"?a-1:f-r,1))})]}),(0,ne.jsx)("ul",{className:"ncua-pagination__list",children:(0,bt.range)(f,Math.min(n+1,f+r)).map((g,F)=>(0,ne.jsx)("li",{className:"ncua-pagination__item",children:(0,ne.jsx)("button",{className:(0,Jr.default)("ncua-pagination__page-num",{"is-current":g===a}),onClick:()=>c(f+F),...i,children:f+F})},(0,bt.uniqueId)("ncua-pagination__page-num")))}),(0,ne.jsxs)("p",{className:"ncua-pagination__page-info",children:[(0,ne.jsx)("em",{className:"ncua-pagination__current-num",children:a})," / ",n]}),m&&(0,ne.jsxs)(ne.Fragment,{children:[vt({type:"next",breakPoint:l,noPrev:u,noNext:d,onClick:()=>c(Math.min(l==="mo"?a+1:f+r,n))}),vt({type:"last",breakPoint:l,noPrev:u,noNext:d,onClick:()=>c(n)})]})]})})};var ea=require("react");var mo=e=>e?`ncua-progress-bar__fill--color-${e.toLowerCase().trim()}`:"",hl=e=>e?`ncua-progress-bar__label--color-${e.toLowerCase().trim()}`:"",jr=e=>Math.min(Math.max(0,e),100);var ti=(e,t,o)=>{let r=t>=2&&o!==!1,a=e;if(r){let f=a.reduce((p,u)=>p+Number(u.value),0);f>0&&(a=a.map(p=>({value:p.value/f*100,color:p.color})))}let l=a.map(f=>({value:jr(f.value),color:f.color})),s=l.reduce((f,p)=>f+p.value,0),i=Math.min(s,100),n=l.map(f=>({...f,width:s>0?f.value/s*i:0}));return{totalValue:i,displayValue:`${i.toFixed(0)}%`,processedSegments:n,shouldSpaceOut:!1}},Fl=(e,t,o,r)=>{let a=!!(o&&o.length>0),l=o?.length??0,{totalValue:s,displayValue:i,processedSegments:n,shouldSpaceOut:f}=(0,ea.useMemo)(()=>{if(a)return ti(o,l,r);if(t!==void 0){let d=jr(t);return{totalValue:d,displayValue:`${d.toFixed(0)}%`,processedSegments:[],shouldSpaceOut:!1}}return{totalValue:0,displayValue:"0%",processedSegments:[],shouldSpaceOut:!1}},[a,o,l,t,r]),p=l>=2?"bottom":e,u=(0,ea.useMemo)(()=>{if(p==="top-float"||p==="bottom-float")return{"--progress-value":`${s}%`}},[p,s]);return{totalValue:s,displayValue:i,processedSegments:n,effectiveLabel:p,progressValueStyle:u,hasSegments:a,segmentCount:l,shouldSpaceOut:f}};var It=require("react/jsx-runtime"),Cl=({segments:e,shouldSpaceOut:t})=>(0,It.jsx)(It.Fragment,{children:e.map((o,r)=>{let a=r===0,l=r===e.length-1;return(0,It.jsx)("div",{className:`ncua-progress-bar__fill ${a?"ncua-progress-bar__fill--first":""} ${l?"ncua-progress-bar__fill--last":""} ${t&&l?"ncua-progress-bar__fill--spaced":""} ${mo(o.color)}`,style:{width:`${o.width}%`}},r)})});var co=require("react/jsx-runtime"),vl=({segments:e,segmentCount:t,showZeroLabel:o=!1})=>t>=2?(0,co.jsx)("div",{className:"ncua-progress-bar__labels--multiple",children:e.map((r,a)=>{if(r.value===0&&!o)return null;let l=0;for(let f=0;f<a;f++)l+=e[f].width;let s=r.value===0,i=s?Math.max(0,l-1):l+r.width/2,n=s?"translateX(0)":"translateX(-50%)";return(0,co.jsx)("span",{className:`ncua-progress-bar__label ncua-progress-bar__label--segment ${hl(r.color)}`,style:{left:`${i}%`,transform:n},children:`${r.value.toFixed(0)}%`},a)})}):null,nt=({labelType:e,displayValue:t,totalValue:o,showZeroLabel:r=!1})=>o===0&&!r?null:(0,co.jsx)("span",{className:`ncua-progress-bar__label ncua-progress-bar__label-${e}`,children:t});var Q=require("react/jsx-runtime"),oi=({label:e,value:t,segments:o,showZeroLabel:r=!1,valueToPercent:a=!0})=>{let{totalValue:l,displayValue:s,processedSegments:i,effectiveLabel:n,progressValueStyle:f,hasSegments:p,segmentCount:u,shouldSpaceOut:d}=Fl(e,t,o,a),m=n==="top-float"||n==="bottom-float";if(p&&u===1){let c=i[0];return(0,Q.jsxs)("div",{className:`ncua-progress-bar ncua-progress-bar-${n||""}`,style:f,children:[m&&(0,Q.jsx)(nt,{labelType:n,displayValue:s,totalValue:l,showZeroLabel:r}),(0,Q.jsxs)("div",{className:"ncua-progress-bar__content",children:[(0,Q.jsx)("div",{className:"ncua-progress-bar__bar",children:(0,Q.jsx)("div",{className:`ncua-progress-bar__fill ${mo(c.color)}`,style:{width:`${l}%`},"aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100})}),n==="right"&&(0,Q.jsx)(nt,{labelType:"right",displayValue:s,totalValue:l,showZeroLabel:r})]}),n==="bottom"&&(0,Q.jsx)(nt,{labelType:"bottom",displayValue:s,totalValue:l,showZeroLabel:r})]})}return(0,Q.jsxs)("div",{className:`ncua-progress-bar ncua-progress-bar-${n||""}`,style:f,children:[m&&(0,Q.jsx)(nt,{labelType:n,displayValue:s,totalValue:l,showZeroLabel:r}),(0,Q.jsxs)("div",{className:"ncua-progress-bar__content",children:[(0,Q.jsx)("div",{className:`ncua-progress-bar__bar ${p?"ncua-progress-bar__bar--segments":""}`,children:p?(0,Q.jsx)(Cl,{segments:i,shouldSpaceOut:d}):(0,Q.jsx)("div",{className:"ncua-progress-bar__fill",style:{width:`${l}%`},"aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100})}),n==="right"&&(0,Q.jsx)(nt,{labelType:"right",displayValue:s,totalValue:l,showZeroLabel:r})]}),p&&u>=2?(0,Q.jsx)(vl,{segments:i,segmentCount:u,showZeroLabel:r}):n==="bottom"?(0,Q.jsx)(nt,{labelType:"bottom",displayValue:s,totalValue:l,showZeroLabel:r}):null]})};var q=require("react/jsx-runtime"),ri=({size:e,label:t,value:o,theme:r="circle"})=>{let a=Math.min(Math.max(0,o),100);return r==="circle"?(0,q.jsxs)("div",{className:`ncua-progress-circle ncua-progress-circle-${e} ncua-progress-circle-${r}`,children:[(0,q.jsxs)("div",{className:"ncua-progress-circle__content",children:[(0,q.jsxs)("svg",{className:"ncua-progress-circle__svg",viewBox:"0 0 100 100",children:[(0,q.jsx)("circle",{className:"ncua-progress-circle__background",cx:"50",cy:"50",r:"45",strokeWidth:"10",fill:"none"}),(0,q.jsx)("circle",{className:"ncua-progress-circle__progress",cx:"50",cy:"50",r:"45",strokeWidth:"10",fill:"none",strokeDasharray:"var(--circle-circumference)",strokeDashoffset:`calc(var(--circle-circumference) * (1 - ${a} / 100))`,transform:"rotate(-90 50 50)",strokeLinecap:"round"})]}),(0,q.jsxs)("div",{className:"ncua-progress-circle__label-container",children:[e!=="xxs"&&t&&(0,q.jsx)("div",{className:"ncua-progress-circle__label-text",children:t}),(0,q.jsx)("div",{className:"ncua-progress-circle__label",children:`${a}%`})]})]}),e==="xxs"&&t&&(0,q.jsx)("div",{className:"ncua-progress-circle__outside-label",children:t})]}):(0,q.jsxs)("div",{className:`ncua-progress-circle ncua-progress-circle-${e} ncua-progress-circle-${r}`,children:[(0,q.jsxs)("div",{className:"ncua-progress-circle__content",children:[(0,q.jsxs)("svg",{className:"ncua-progress-circle__svg",viewBox:"0 0 100 50",children:[(0,q.jsx)("path",{className:"ncua-progress-circle__background",d:"M 5 50 A 45 45 0 0 1 95 50",strokeWidth:"10",fill:"none",strokeLinecap:"round"}),(0,q.jsx)("path",{className:"ncua-progress-circle__progress",d:"M 5 50 A 45 45 0 0 1 95 50",strokeWidth:"10",fill:"none",strokeDasharray:"var(--half-circle-circumference)",strokeDashoffset:`calc(var(--half-circle-circumference) * (1 - ${a} / 100))`,strokeLinecap:"round"})]}),(0,q.jsxs)("div",{className:"ncua-progress-circle__label-container",children:[e!=="xxs"&&t&&(0,q.jsx)("div",{className:"ncua-progress-circle__label-text",children:t}),(0,q.jsx)("div",{className:"ncua-progress-circle__label",children:`${a}%`})]})]}),e==="xxs"&&t&&(0,q.jsx)("div",{className:"ncua-progress-circle__outside-label",children:t})]})};var yl=h(_()),wl=require("react");var bl=h(_()),Sl=require("react"),ta=require("react/jsx-runtime"),oa=(0,Sl.forwardRef)(({size:e="xs",disabled:t,className:o,destructive:r=!1,onChange:a,...l},s)=>(0,ta.jsx)("span",{className:(0,bl.default)("ncua-radio-input",`ncua-radio-input--${e}`,{destructive:r},o),children:(0,ta.jsx)("input",{type:"radio",ref:s,onChange:a,disabled:t,...l})}));var ft=require("react/jsx-runtime"),ai=(0,wl.forwardRef)(({size:e="xs",text:t,supportText:o,disabled:r,checked:a,className:l,onChange:s,...i},n)=>(0,ft.jsxs)("label",{className:(0,yl.default)("ncua-radio-field",`ncua-radio-field--${e}`,{"has-text":t},l),children:[(0,ft.jsx)(oa,{size:e,ref:n,checked:a,disabled:r,onChange:s,className:"ncua-radio-field__input",...i}),(0,ft.jsxs)("span",{children:[t&&(0,ft.jsx)("span",{className:"ncua-radio-field__text",children:t}),o&&(0,ft.jsx)("span",{className:"ncua-radio-field__support-text",children:o})]})]}));var ra=h(_()),kl=require("react");var We=require("react/jsx-runtime"),aa=(0,kl.forwardRef)(({placeholder:e,disabledPlaceholder:t=!1,id:o,className:r,hintText:a,children:l,size:s="md",type:i="default",destructive:n=!1,value:f,optionItems:p,register:u,disabled:d=!1,...m},c)=>(0,We.jsxs)("span",{className:(0,ra.default)("ncua-select",{destructive:n,"ncua-select--simple":i==="simple"},r,`ncua-select--${s}`),children:[(0,We.jsx)("span",{className:"ncua-select__content",children:(0,We.jsxs)("select",{value:f,ref:c,id:o,className:(0,ra.default)("ncua-select__tag",r),disabled:d,...u,...m,children:[e&&(0,We.jsx)("option",{value:"",selected:!0,disabled:t,children:e}),p&&p.map((g,F)=>(0,We.jsx)("option",{value:g.id,children:g.label},`option-${F}`)),l]})}),a&&(0,We.jsx)(le,{destructive:n,className:"ncua-hint-text",children:a})]}));var xo=h(_()),ee=require("react");var W=require("react/jsx-runtime"),li=275,la=(0,ee.forwardRef)(({placeholder:e="\uC120\uD0DD\uD558\uC138\uC694",disabledPlaceholder:t=!1,hintText:o,size:r="xs",type:a="default",autoWidth:l=!0,destructive:s=!1,value:i,optionItems:n=[],disabled:f=!1,maxHeight:p=li,multiple:u=!1,align:d="left",id:m,className:c,children:g,register:F,onChange:x,onEdit:v,...T},y)=>{let N=(0,ee.useRef)(null),k=(0,ee.useRef)(null),[E,w]=(0,ee.useState)([]),b=(0,ee.useMemo)(()=>u?null:n.find(A=>A.id===i),[n,i,u]),C=(0,ee.useMemo)(()=>u?e:b||e,[u,b,e]),S=A=>{if(f)return;let Ce;if(u){let Xe=Array.isArray(i)?i:[];Xe.includes(A.id)?Ce=Xe.filter(St=>St!==A.id):Ce=[...Xe,A.id]}else Ce=A.id;x?.(Ce),F?.onChange&&F.onChange({target:{value:u?JSON.stringify(Ce):Ce,name:F.name}})},{isOpen:D,direction:P,focusedIndex:L,toggleDropdown:$,closeDropdown:R,handleKeyDown:B,handleOptionSelect:I,handleMouseMove:G,isKeyboardNavigation:ae,setFocusedIndex:Ne}=Lt({triggerRef:N,dropdownRef:k,maxHeight:p,itemCount:n.length,optionItems:n,disabled:f,multiple:u,onSelect:S}),V=(0,ee.useMemo)(()=>{if(!D||L<0||L>=n.length)return;let A=n[L];return`selectbox-options-${m||"default"}-${A.id}`},[D,L,n,m]),X=(0,ee.useCallback)(A=>{G(),Ne(A)},[G,Ne]),fe=u&&Array.isArray(i)?i:[],{buttonText:J,toggleSelectAll:Me,getSelectedTagsData:bo,removeTag:Ut}=Kt(fe,n),So=()=>{if(!u||!x)return;let A=Me();x(A)},yo=()=>{v?.()},wo=()=>{if(u){let A=bo();w(A)}R()},ko=A=>{if(x&&u){let Ce=Ut(A);x(Ce),w(Xe=>Xe.filter(St=>St.id!==A))}};return Er(D,k),(0,ee.useLayoutEffect)(()=>{if(l&&D&&k.current&&N.current){let A=k.current.offsetWidth;N.current.style.width=`${A}px`}},[l,D,n]),(0,ee.useImperativeHandle)(y,()=>N.current,[]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("div",{ref:N,className:(0,xo.default)("ncua-selectbox",`ncua-selectbox--${r}`,{"ncua-selectbox--open":D,"ncua-selectbox--disabled":f,"ncua-selectbox--simple":a==="simple","ncua-selectbox--multiple":u,destructive:s},c),...T,children:[(0,W.jsxs)("div",{className:(0,xo.default)("ncua-selectbox__content"),onClick:$,onKeyDown:B,tabIndex:f?-1:0,role:"combobox","aria-expanded":D,"aria-haspopup":"listbox","aria-controls":`selectbox-options-${m||"default"}`,"aria-disabled":f,"aria-label":b?b.label:e,"aria-activedescendant":V,children:[(0,W.jsxs)("div",{className:"ncua-selectbox__content-inner",children:[(0,W.jsx)("div",{className:"ncua-selectbox__value",children:typeof C=="string"?(0,W.jsx)("span",{className:"ncua-selectbox__value-text",children:C}):(0,W.jsxs)("div",{className:"ncua-selectbox__value-container",children:[C.icon&&(0,W.jsx)("span",{className:"ncua-selectbox__value-icon",children:(0,W.jsx)(C.icon,{width:16,height:16})}),(0,W.jsx)("span",{className:"ncua-selectbox__value-text",children:C.label})]})}),(0,W.jsx)(Uo,{width:r==="xs"?14:16,height:r==="xs"?14:16,color:f?K.gray300:K.gray500,className:(0,xo.default)("ncua-selectbox__arrow",{"ncua-selectbox__arrow--up":D})})]}),(0,W.jsx)(ot,{ref:k,isOpen:D,direction:P,size:r,options:n,value:i,focusedIndex:L,maxHeight:p,listboxId:`selectbox-options-${m||"default"}`,multiple:u,showFooterButtons:u,selectAllButtonText:J,componentType:"selectbox",isKeyboardNavigation:ae,activeDescendantId:V,align:d,onOptionSelect:I,onMouseMove:G,onOptionHover:X,onSelectAll:So,onEdit:yo,onComplete:wo,children:g})]}),o&&(0,W.jsx)(le,{destructive:s,className:"ncua-hint-text",children:o}),F&&(0,W.jsx)("input",{type:"hidden",...F,value:u?JSON.stringify(i||[]):String(i||"")})]}),E.length>0&&(0,W.jsx)("div",{className:"ncua-selectbox__tags",children:E.map(A=>(0,W.jsx)(rt,{text:A.label,size:"sm",close:!0,onButtonClick:()=>ko(A.id)},A.id))})]})});la.displayName="SelectBox";var ut=require("react");var go=class{constructor(t,o){this.activeHandle=null;this.isDragging=!1;this.handleElements=[];this.progressElement=null;this.trackElement=null;this.handleMouseDown=t=>{let o=t.target;t.preventDefault(),this.handleInteractionStart(t.clientX,o),this.isDragging&&(document.body.style.userSelect="none")};this.handleTouchStart=t=>{if(t.touches.length>0){let o=t.target;t.preventDefault(),this.handleInteractionStart(t.touches[0].clientX,o)}};this.handleMouseMove=t=>{this.isDragging&&this.updateValueFromClientX(t.clientX)};this.handleTouchMove=t=>{this.isDragging&&t.touches.length>0&&(t.preventDefault(),this.updateValueFromClientX(t.touches[0].clientX))};this.handleMouseUp=()=>{this.isDragging=!1,document.body.style.userSelect=""};this.handleTouchEnd=()=>{this.isDragging=!1};this.element=t,this.options=Object.assign({min:0,max:100,step:1,value:0,disabled:!1},o),this.value=this.options.value,this.options.min=Number(this.options.min),this.options.max=Number(this.options.max),this.options.step=Number(this.options.step),this.init()}init(){if(this.options.disabled&&(this.element.style.opacity="0.5"),this.element.innerHTML="",this.trackElement=document.createElement("div"),this.trackElement.className="ncua-slider__track",this.element.appendChild(this.trackElement),this.progressElement=document.createElement("div"),this.progressElement.className="ncua-slider__progress",this.element.appendChild(this.progressElement),Array.isArray(this.value)){let[t,o]=this.value;this.createHandle(0,t),this.createHandle(1,o)}else this.createHandle(0,this.value);this.options.disabled||this.enable(),this.updateHandlePositions()}createHandle(t,o){let r=document.createElement("div");if(r.className="ncua-slider__handle",r.setAttribute("role","slider"),r.setAttribute("tabindex",this.options.disabled?"-1":"0"),r.setAttribute("aria-valuemin",Array.isArray(this.value)&&t===1?String(this.value[0]):String(this.options.min)),r.setAttribute("aria-valuemax",Array.isArray(this.value)&&t===0?String(this.value[1]):String(this.options.max)),r.setAttribute("aria-valuenow",String(o)),r.setAttribute("aria-disabled",String(this.options.disabled)),r.dataset.index=String(t),r.addEventListener("focus",()=>{this.activeHandle=t,this.updateHandleClasses()}),r.addEventListener("blur",()=>{this.activeHandle=null,this.updateHandleClasses()}),this.options.labelPosition==="bottom"){let a=document.createElement("div");a.className="ncua-slider__label",a.textContent=`${o}%`,r.appendChild(a)}if(this.options.labelPosition==="top-floating"){let a=document.createElement("div");a.className="ncua-slider__label ncua-slider__label--tooltip",a.textContent=`${o}%`,r.appendChild(a)}this.element.appendChild(r),this.handleElements[t]=r}updateHandlePositions(){if(Array.isArray(this.value)){let[t,o]=this.value,r=this.getPositionFromValue(t),a=this.getPositionFromValue(o);if(this.handleElements[0].style.left=`${r}%`,this.handleElements[1].style.left=`${a}%`,this.options.labelPosition){let l=this.handleElements[0].querySelector(".ncua-slider__label"),s=this.handleElements[1].querySelector(".ncua-slider__label");l&&(l.textContent=`${t}%`),s&&(s.textContent=`${o}%`)}this.progressElement&&(this.progressElement.style.left=`${r}%`,this.progressElement.style.width=`${a-r}%`)}else{let t=this.getPositionFromValue(this.value);if(this.handleElements[0].style.left=`${t}%`,this.options.labelPosition){let o=this.handleElements[0].querySelector(".ncua-slider__label");o&&(o.textContent=`${this.value}%`)}this.progressElement&&(this.progressElement.style.left="0",this.progressElement.style.width=`${t}%`)}this.updateAriaAttributes()}updateHandleClasses(){this.handleElements.forEach((t,o)=>{o===this.activeHandle?t.classList.add("is-active"):t.classList.remove("is-active")})}updateAriaAttributes(){if(Array.isArray(this.value)){let[t,o]=this.value;this.handleElements[0].setAttribute("aria-valuenow",String(t)),this.handleElements[0].setAttribute("aria-valuemax",String(o)),this.handleElements[1].setAttribute("aria-valuenow",String(o)),this.handleElements[1].setAttribute("aria-valuemin",String(t))}else this.handleElements[0].setAttribute("aria-valuenow",String(this.value))}getPositionFromValue(t){return(t-this.options.min)/(this.options.max-this.options.min)*100}getValueFromPosition(t){let o=Math.min(Math.max(t,0),100),r=this.options.min+o/100*(this.options.max-this.options.min),a=Math.round(r/this.options.step)*this.options.step;return Math.min(Math.max(a,this.options.min),this.options.max)}handleInteractionStart(t,o){if(o.closest(".ncua-slider")){let r=o.closest(".ncua-slider__handle");if(r)Array.isArray(this.value)&&this.value[0]===this.value[1]&&this.value[0]===this.options.max?this.activeHandle=0:Array.isArray(this.value)&&this.value[0]===this.value[1]&&this.value[0]===this.options.min?this.activeHandle=1:this.activeHandle=parseInt(r.dataset.index||"0",10);else{let a=this.element.getBoundingClientRect(),l=(t-a.left)/a.width*100;if(Array.isArray(this.value)){let[s,i]=this.value,n=this.getPositionFromValue(s),f=this.getPositionFromValue(i);l<n?this.activeHandle=0:l>f?this.activeHandle=1:this.activeHandle=Math.abs(l-n)<Math.abs(l-f)?0:1}else this.activeHandle=0}this.updateHandleClasses(),this.isDragging=!0,this.updateValueFromClientX(t)}}updateValueFromClientX(t){if(!this.element||this.activeHandle===null)return;let o=this.element.getBoundingClientRect(),r=(t-o.left)/o.width*100,a=this.getValueFromPosition(r),l=this.value;if(Array.isArray(this.value)){let[s,i]=this.value;this.activeHandle===0?this.value=[Math.min(a,i),i]:this.activeHandle===1&&(this.value=[s,Math.max(a,s)])}else this.value=a;this.notifyChange(l),this.updateHandlePositions()}notifyChange(t){let l=!Array.isArray(t)?t!==this.value:Array.isArray(t)&&Array.isArray(this.value)&&(t[0]!==this.value[0]||t[1]!==this.value[1]);this.options.onChange&&l&&this.options.onChange(this.value)}setValue(t){this.value=t,this.updateHandlePositions()}getValue(){return this.value}disable(){this.options.disabled=!0,this.element.style.opacity="0.5",this.handleElements.forEach(t=>{t.setAttribute("tabindex","-1"),t.setAttribute("aria-disabled","true")}),this.element.removeEventListener("mousedown",this.handleMouseDown),this.element.removeEventListener("touchstart",this.handleTouchStart),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchmove",this.handleTouchMove),document.removeEventListener("touchend",this.handleTouchEnd)}enable(){this.options.disabled=!1,this.element.style.opacity="1",this.handleElements.forEach(t=>{t.setAttribute("tabindex","0"),t.setAttribute("aria-disabled","false")}),this.element.addEventListener("mousedown",this.handleMouseDown),this.element.addEventListener("touchstart",this.handleTouchStart,{passive:!1}),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("touchend",this.handleTouchEnd)}destroy(){this.element.removeEventListener("mousedown",this.handleMouseDown),this.element.removeEventListener("touchstart",this.handleTouchStart),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchmove",this.handleTouchMove),document.removeEventListener("touchend",this.handleTouchEnd),this.element.innerHTML="",this.handleElements=[],this.progressElement=null,this.trackElement=null}};var Dl=require("react/jsx-runtime"),si=({min:e=0,max:t=100,step:o=1,value:r=0,onChange:a,labelPosition:l,disabled:s=!1,className:i})=>{let n=(0,ut.useRef)(null),f=(0,ut.useRef)(null);return(0,ut.useEffect)(()=>{if(n.current)return f.current=new go(n.current,{min:e,max:t,step:o,value:r,onChange:a,labelPosition:l,disabled:s}),()=>{f.current&&(f.current.destroy(),f.current=null)}},[typeof r,a,e,t,o,l]),(0,ut.useEffect)(()=>{f.current&&f.current.setValue(r)},[f,r]),(0,ut.useEffect)(()=>{f.current&&(s?f.current.disable():f.current.enable())},[s]),(0,Dl.jsx)("div",{ref:n,className:`ncua-slider ${i||""}`})};var Tl=h(_()),Ht=require("react/jsx-runtime"),ii=({as:e="p",children:t})=>(0,Ht.jsx)(e,{className:"ncua-spinner__text",children:t}),ni=({as:e="p",size:t="md",children:o,backdrop:r=!1})=>(0,Ht.jsx)("div",{className:(0,Tl.default)("ncua-spinner",`ncua-spinner--${t}`,{"ncua-spinner--backdrop":r}),children:(0,Ht.jsx)("div",{className:"ncua-spinner__content",children:o&&(0,Ht.jsx)(ii,{as:e,children:o})})});var ho=h(_()),Fo=require("react"),Le=require("react/jsx-runtime"),sa=(0,Fo.forwardRef)(({size:e="xs",left:t,right:o,disabled:r=!1,value:a,defaultValue:l=t.value,onChange:s,className:i,name:n,refs:f},p)=>{let u=y=>typeof y=="boolean"?String(y):y,d=y=>y&&["xxs","xs","sm","md"].includes(y)?y:"xs",m=typeof t.value=="boolean"&&typeof o.value=="boolean",c=()=>{if(a!==void 0)return u(m&&typeof a=="boolean"?a?t.value:o.value:a)},g=c()!==void 0,[F,x]=(0,Fo.useState)(u(l)),v=g?c():F,T=y=>{if(g||x(y),!s)return;let N=y===u(t.value)?t:o;s(m&&typeof a=="boolean"?y===u(t.value):N.value)};return(0,Le.jsxs)("div",{className:(0,ho.default)("ncua-switch",`ncua-switch--${d(e)}`,{"ncua-switch--disabled":r},i),children:[(0,Le.jsxs)("label",{className:(0,ho.default)("ncua-switch__option","ncua-switch__option--left",{"ncua-switch__option--active":v===u(t.value),"ncua-switch__option--inactive":v!==u(t.value)}),children:[(0,Le.jsx)("input",{type:"radio",ref:f?.[0],name:n,value:u(t.value),checked:v===u(t.value),disabled:r,className:"ncua-switch__radio ncua-switch__radio--left",onChange:()=>T(u(t.value))}),(0,Le.jsx)("span",{className:"ncua-switch__label",children:t.label})]}),(0,Le.jsxs)("label",{className:(0,ho.default)("ncua-switch__option","ncua-switch__option--right",{"ncua-switch__option--active":v===u(o.value),"ncua-switch__option--inactive":v!==u(o.value)}),children:[(0,Le.jsx)("input",{type:"radio",ref:f?.[1],name:n,value:u(o.value),checked:v===u(o.value),disabled:r,className:"ncua-switch__radio ncua-switch__radio--right",onChange:()=>T(u(o.value))}),(0,Le.jsx)("span",{className:"ncua-switch__label",children:o.label})]})]})});sa.displayName="Switch";var Rl=h(_()),Pl=require("lodash-es"),Co=require("swiper/react");var _l=h(_());var Fe=require("react/jsx-runtime"),Ot=({id:e,label:t,size:o="sm",tabButtonType:r,type:a,isActive:l=!1,badgeInfo:s,className:i,children:n,...f})=>{let p=(0,_l.default)("ncua-tab-button",{"is-active":l},i);if("href"in f&&f.href){let{href:c,target:g="_self",onClick:F,...x}=f;return(0,Fe.jsxs)("a",{className:p,href:c,target:g,...x,children:[t,s&&(0,Fe.jsx)(pt,{...s,size:"xs"}),n]})}let{onClick:u,onClose:d,...m}=f;return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsxs)("button",{type:"button",className:p,onClick:()=>u?.(e??""),...m,children:[t,s&&(0,Fe.jsx)(pt,{...s,size:"xs"}),n]}),d&&(0,Fe.jsx)("button",{type:"button",className:"ncua-tab-close",onClick:()=>d?.(e??""),children:(0,Fe.jsx)(xe,{width:14,height:14})})]})};var $e=require("react/jsx-runtime"),fi=({type:e="button-primary",size:t="sm",activeTab:o,fullWidth:r=!1,menus:a=[]})=>{let l=s=>({underline:16})[s]??8;return a.length?(0,$e.jsx)("div",{className:(0,Rl.default)("ncua-horizontal-tab",`ncua-horizontal-tab--${e}`,`ncua-horizontal-tab--${t}`,{"ncua-horizontal-tab--fullWidth":r}),children:(0,$e.jsx)(Co.Swiper,{slidesPerView:"auto",spaceBetween:l(e),children:a.map(s=>{let i="href"in s&&s.href?s.href===o:s.id===o;return(0,$e.jsx)(Co.SwiperSlide,{className:"ncua-horizontal-tab__item",children:(0,$e.jsx)(Ot,{...s,isActive:i,tabButtonType:e,size:t})},(0,Pl.uniqueId)("horizontal-tab"))})})}):(0,$e.jsx)($e.Fragment,{})};var Ll=h(_());var vo=require("react/jsx-runtime"),ui=({type:e="button-primary",breakPoint:t="pc",activeTab:o,menus:r,onSelect:a})=>{let l=i=>{a?.(i.target.value)},s=r?.map(i=>({id:i.id||"",label:i.label||""}))||[];return t==="mobile"?(0,vo.jsx)(aa,{value:o,onChange:l,optionItems:s,size:"md"}):(0,vo.jsx)("div",{className:(0,Ll.default)("ncua-vertical-tab",`ncua-vertical-tab--${e}`),children:r?.map(i=>{let n="href"in i&&i.href?i.href===o:i.id===o;return(0,vo.jsx)(Ot,{...i,isActive:n,tabButtonType:e,size:"md"},i.id)})})};var Nl=h(_()),me=require("react/jsx-runtime"),pi=({size:e="md",text:t="",supportText:o="",disabled:r=!1,onChange:a,className:l,...s})=>(0,me.jsxs)("label",{className:(0,Nl.default)("ncua-toggle",`ncua-toggle--${e}`,{"ncua-toggle--disabled":r},l),children:[(0,me.jsx)("input",{type:"checkbox",className:"ncua-toggle__input",checked:s?.checked,disabled:r,onChange:a,...s}),(0,me.jsx)("span",{className:"ncua-toggle__switch",children:(0,me.jsx)("span",{className:"ncua-toggle__slider"})}),t&&(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)("span",{className:"ncua-toggle__text-wrapper",children:[(0,me.jsx)("span",{className:"ncua-toggle__text",children:t}),o&&(0,me.jsx)("span",{className:"ncua-toggle__support-text",children:o})]})})]});0&&(module.exports={Badge,BadgeGroup,BreadCrumb,Button,ButtonCloseX,ButtonGroup,ButtonStepper,CarouselArrow,CarouselNumberGroup,Checkbox,CheckboxInput,ComboBox,DatePicker,Divider,Dot,Dropdown,EmptyState,FeaturedIcon,FileInput,FileInputErrorType,FloatingNotification,FullWidthNotification,HintText,HorizontalTab,ImageFileInput,InputBase,Label,MessageNotification,Modal,NavButton,Notification,NumberInput,Pagination,PasswordInput,ProgressBar,ProgressCircle,Radio,RadioInput,RangeDatePicker,RangeDatePickerWithButtons,Select,SelectBox,SelectDropdown,Slider,Spinner,Switch,TabButton,Tag,Textarea,Toggle,Tooltip,VerticalTab,dotSize,getDateFormat,getToday,iconOnlySvgSize,svgSize});
2
+ /*! Bundled license information:
3
+
4
+ classnames/index.js:
5
+ (*!
6
+ Copyright (c) 2018 Jed Watson.
7
+ Licensed under the MIT License (MIT), see
8
+ http://jedwatson.github.io/classnames
9
+ *)
10
+ */
package/bin/server.js CHANGED
@@ -14,18 +14,28 @@ const getComponentHtml_js_1 = require("./tools/getComponentHtml.js");
14
14
  const getComponentProps_js_1 = require("./tools/getComponentProps.js");
15
15
  const validateHtml_js_1 = require("./tools/validateHtml.js");
16
16
  const ping_js_1 = require("./tools/ping.js");
17
+ const listIcons_js_1 = require("./tools/listIcons.js");
18
+ const searchIcon_js_1 = require("./tools/searchIcon.js");
17
19
  const version_js_1 = require("./version.js");
18
20
  const server = new mcp_js_1.McpServer({
19
21
  name: 'ncds-ui-admin',
20
22
  version: version_js_1.VERSION,
21
23
  });
22
24
  const main = async () => {
23
- // server.ts가 componentMap 소유 — tool 핸들러에 파라미터로 전달
25
+ // server.ts가 데이터 소유 — tool 핸들러에 파라미터로 전달
24
26
  const componentMap = (0, dataLoader_js_1.loadComponentsFromDir)(dataLoader_js_1.DEFAULT_DATA_DIR);
25
27
  const cdnMeta = (0, dataLoader_js_1.loadCdnMeta)(dataLoader_js_1.DEFAULT_DATA_DIR);
28
+ const iconData = (0, dataLoader_js_1.loadIconData)(dataLoader_js_1.DEFAULT_DATA_DIR);
26
29
  server.registerTool('ping', {
27
30
  description: 'NCUA MCP 서버 연결 확인 + 버전 + capabilities/rules 조회',
28
31
  }, () => (0, ping_js_1.ping)(componentMap, cdnMeta, version_js_1.VERSION));
32
+ server.registerTool('list_icons', {
33
+ description: '사용 가능한 전체 아이콘 목록을 가져옵니다. @ncds/ui-admin-icon 패키지의 아이콘입니다.',
34
+ }, () => (0, listIcons_js_1.listIcons)(iconData));
35
+ server.registerTool('search_icon', {
36
+ description: '키워드로 아이콘을 검색합니다. 이름 또는 kebab-case로 검색할 수 있습니다.',
37
+ inputSchema: { query: zod_1.z.string().describe('검색 키워드 (예: "search", "alert", "arrow")') },
38
+ }, ({ query }) => (0, searchIcon_js_1.searchIcon)(iconData, query));
29
39
  server.registerTool('list_components', {
30
40
  description: '사용 가능한 전체 UI 컴포넌트 목록을 가져옵니다.',
31
41
  }, () => (0, listComponents_js_1.listComponents)(componentMap));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * list_icons tool — 전체 아이콘 목록 반환 (순수 함수)
3
+ */
4
+ import { type McpToolResponse } from '../utils/response.js';
5
+ export interface IconEntry {
6
+ name: string;
7
+ kebab: string;
8
+ fill: boolean;
9
+ }
10
+ export interface IconData {
11
+ totalCount: number;
12
+ fillCount: number;
13
+ icons: IconEntry[];
14
+ }
15
+ export declare const listIcons: (iconData: IconData) => McpToolResponse;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listIcons = void 0;
4
+ /**
5
+ * list_icons tool — 전체 아이콘 목록 반환 (순수 함수)
6
+ */
7
+ const response_js_1 = require("../utils/response.js");
8
+ const listIcons = (iconData) => {
9
+ return (0, response_js_1.successResponse)({
10
+ totalCount: iconData.totalCount,
11
+ fillCount: iconData.fillCount,
12
+ icons: iconData.icons.map((i) => i.name).sort(),
13
+ });
14
+ };
15
+ exports.listIcons = listIcons;
package/bin/tools/ping.js CHANGED
@@ -6,6 +6,8 @@ const CAPABILITIES = [
6
6
  { tool: 'ping', description: '서버 연결 확인 + 버전 + capabilities/rules 조회' },
7
7
  { tool: 'list_components', description: '전체 컴포넌트 목록 조회' },
8
8
  { tool: 'search_component', description: '키워드로 컴포넌트 검색' },
9
+ { tool: 'list_icons', description: '전체 아이콘 목록 조회' },
10
+ { tool: 'search_icon', description: '키워드로 아이콘 검색' },
9
11
  { tool: 'get_component_html', description: '컴포넌트 HTML 마크업 조회 (variant 지원)' },
10
12
  { tool: 'get_component_props', description: '컴포넌트 Props 스펙 조회' },
11
13
  { tool: 'validate_html', description: 'HTML BEM 클래스 유효성 검증 + 자동 수정' },
@@ -0,0 +1,6 @@
1
+ /**
2
+ * search_icon tool — 키워드로 아이콘 검색 (순수 함수)
3
+ */
4
+ import type { IconData } from './listIcons.js';
5
+ import { type McpToolResponse } from '../utils/response.js';
6
+ export declare const searchIcon: (iconData: IconData, query: string) => McpToolResponse;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchIcon = void 0;
4
+ const response_js_1 = require("../utils/response.js");
5
+ const searchIcon = (iconData, query) => {
6
+ const lower = query.trim().toLowerCase();
7
+ if (!lower)
8
+ return (0, response_js_1.successResponse)([]);
9
+ const results = iconData.icons
10
+ .filter((icon) => icon.name.toLowerCase().includes(lower) || icon.kebab.includes(lower))
11
+ .map((icon) => ({
12
+ name: icon.name,
13
+ kebab: icon.kebab,
14
+ fill: icon.fill,
15
+ }));
16
+ return (0, response_js_1.successResponse)(results);
17
+ };
18
+ exports.searchIcon = searchIcon;
@@ -8,4 +8,15 @@ export interface CdnMeta {
8
8
  css: string;
9
9
  js: string;
10
10
  }
11
+ export interface IconEntry {
12
+ name: string;
13
+ kebab: string;
14
+ fill: boolean;
15
+ }
16
+ export interface IconData {
17
+ totalCount: number;
18
+ fillCount: number;
19
+ icons: IconEntry[];
20
+ }
21
+ export declare const loadIconData: (dataDir: string) => IconData;
11
22
  export declare const loadCdnMeta: (dataDir: string) => CdnMeta | null;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.loadCdnMeta = exports.getAllComponents = exports.getComponent = exports.loadComponentsFromDir = exports.DEFAULT_DATA_DIR = void 0;
6
+ exports.loadCdnMeta = exports.loadIconData = exports.getAllComponents = exports.getComponent = exports.loadComponentsFromDir = exports.DEFAULT_DATA_DIR = void 0;
7
7
  /**
8
8
  * dataLoader — mcp/data/*.json 파일을 읽어 Map으로 반환
9
9
  *
@@ -52,6 +52,23 @@ const getComponent = (map, name) => map.get(name);
52
52
  exports.getComponent = getComponent;
53
53
  const getAllComponents = (map) => Array.from(map.values());
54
54
  exports.getAllComponents = getAllComponents;
55
+ const loadIconData = (dataDir) => {
56
+ const iconPath = path_1.default.join(dataDir, 'icons.json');
57
+ if (!fs_1.default.existsSync(iconPath)) {
58
+ logger_js_1.logger.error(`icons.json이 없습니다: ${iconPath}`);
59
+ return { totalCount: 0, fillCount: 0, icons: [] };
60
+ }
61
+ try {
62
+ const raw = fs_1.default.readFileSync(iconPath, 'utf-8');
63
+ return JSON.parse(raw);
64
+ }
65
+ catch (err) {
66
+ const message = err instanceof Error ? err.message : String(err);
67
+ logger_js_1.logger.error(`icons.json 파싱 실패: ${message}`);
68
+ return { totalCount: 0, fillCount: 0, icons: [] };
69
+ }
70
+ };
71
+ exports.loadIconData = loadIconData;
55
72
  const loadCdnMeta = (dataDir) => {
56
73
  const metaPath = path_1.default.join(dataDir, '_meta.json');
57
74
  if (!fs_1.default.existsSync(metaPath))
package/bin/version.d.ts CHANGED
@@ -1 +1,4 @@
1
- export declare const VERSION = "1.6.4-alpha.4";
1
+ /**
2
+ * version — 빌드 시 scripts/build-npm.js가 자동 생성 (수동 편집 금지)
3
+ */
4
+ export declare const VERSION = "1.6.3";
package/bin/version.js CHANGED
@@ -1,4 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.6.4-alpha.4';
4
+ /**
5
+ * version — 빌드 시 scripts/build-npm.js가 자동 생성 (수동 편집 금지)
6
+ */
7
+ exports.VERSION = '1.6.3';
package/data/badge.json CHANGED
@@ -54,13 +54,19 @@
54
54
  }
55
55
  },
56
56
  "html": {
57
- "default": "<span class=\"ncua-badge ncua-badge--pill-outline ncua-badge--neutral ncua-badge--sm\"><span class=\"ncua-badge__label\"></span></span>",
58
- "type:pill-outline": "<span class=\"ncua-badge ncua-badge--pill-outline ncua-badge--neutral ncua-badge--sm\"><span class=\"ncua-badge__label\"></span></span>",
59
- "type:pill-dark-color": "<span class=\"ncua-badge ncua-badge--pill-dark-color ncua-badge--neutral ncua-badge--sm\"><span class=\"ncua-badge__label\"></span></span>",
60
- "color:error": "<span class=\"ncua-badge ncua-badge--pill-outline ncua-badge--error ncua-badge--sm\"><span class=\"ncua-badge__label\"></span></span>",
61
- "color:success": "<span class=\"ncua-badge ncua-badge--pill-outline ncua-badge--success ncua-badge--sm\"><span class=\"ncua-badge__label\"></span></span>",
62
- "size:xs": "<span class=\"ncua-badge ncua-badge--pill-outline ncua-badge--neutral ncua-badge--xs\"><span class=\"ncua-badge__label\"></span></span>",
63
- "size:md": "<span class=\"ncua-badge ncua-badge--pill-outline ncua-badge--neutral ncua-badge--md\"><span class=\"ncua-badge__label\"></span></span>"
57
+ "default": "<span class=\"ncua-badge\"></span>",
58
+ "color:blue": "<span class=\"ncua-badge ncua-badge--blue\"></span>",
59
+ "color:disabled": "<span class=\"ncua-badge ncua-badge--disabled\"></span>",
60
+ "color:error": "<span class=\"ncua-badge ncua-badge--error\"></span>",
61
+ "color:neutral": "<span class=\"ncua-badge ncua-badge--neutral\"></span>",
62
+ "color:pink": "<span class=\"ncua-badge ncua-badge--pink\"></span>",
63
+ "color:success": "<span class=\"ncua-badge ncua-badge--success\"></span>",
64
+ "color:warning": "<span class=\"ncua-badge ncua-badge--warning\"></span>",
65
+ "size:md": "<span class=\"ncua-badge ncua-badge--md\"></span>",
66
+ "size:sm": "<span class=\"ncua-badge ncua-badge--sm\"></span>",
67
+ "size:xs": "<span class=\"ncua-badge ncua-badge--xs\"></span>",
68
+ "type:pill-dark-color": "<span class=\"ncua-badge ncua-badge--pill-dark-color\"></span>",
69
+ "type:pill-outline": "<span class=\"ncua-badge ncua-badge--pill-outline\"></span>"
64
70
  },
65
71
  "bemClasses": [
66
72
  "ncua-badge",
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "html": {
16
- "default": "<nav aria-label=\"breadcrumb\" class=\"ncua-breadcrumb\"><ol class=\"ncua-breadcrumb__list\"><li class=\"ncua-breadcrumb__list-item\"><a href=\"#\" class=\"ncua-breadcrumb__item\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\" color=\"gray500\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 10.565c0-.574 0-.861.074-1.126a2 2 0 0 1 .318-.65c.163-.22.39-.397.843-.75l6.783-5.275c.351-.273.527-.41.72-.462a1 1 0 0 1 .523 0c.194.052.37.189.721.462l6.783 5.275c.453.353.68.53.843.75.145.195.252.416.318.65.074.265.074.552.074 1.126V17.8c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C19.48 21 18.92 21 17.8 21H6.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C3 19.48 3 18.92 3 17.8z\"></path></svg></a></li><li class=\"ncua-breadcrumb__list-item ncua-breadcrumb__list-item--active\"><span class=\"ncua-breadcrumb__item\"></span></li></ol></nav>"
16
+ "default": "<nav class=\"ncua-breadcrumb\"></nav>"
17
17
  },
18
18
  "bemClasses": [
19
19
  "ncua-breadcrumb",
package/data/button.json CHANGED
@@ -65,16 +65,20 @@
65
65
  }
66
66
  },
67
67
  "html": {
68
- "default": "<button class=\"ncua-btn ncua-btn--md ncua-btn--secondary-gray\"><span class=\"ncua-btn__label\">버튼</span></button>",
69
- "hierarchy:primary": "<button class=\"ncua-btn ncua-btn--md ncua-btn--primary\"><span class=\"ncua-btn__label\">버튼</span></button>",
70
- "hierarchy:secondary": "<button class=\"ncua-btn ncua-btn--md ncua-btn--secondary\"><span class=\"ncua-btn__label\">버튼</span></button>",
71
- "hierarchy:secondary-gray": "<button class=\"ncua-btn ncua-btn--md ncua-btn--secondary-gray\"><span class=\"ncua-btn__label\">버튼</span></button>",
72
- "hierarchy:tertiary": "<button class=\"ncua-btn ncua-btn--md ncua-btn--tertiary\"><span class=\"ncua-btn__label\">버튼</span></button>",
73
- "hierarchy:destructive": "<button class=\"ncua-btn ncua-btn--md ncua-btn--destructive\"><span class=\"ncua-btn__label\">버튼</span></button>",
74
- "hierarchy:text": "<button class=\"ncua-btn ncua-btn--md ncua-btn--text\"><span class=\"ncua-btn__label\">버튼</span></button>",
75
- "size:sm": "<button class=\"ncua-btn ncua-btn--sm ncua-btn--secondary-gray\"><span class=\"ncua-btn__label\">버튼</span></button>",
76
- "size:xs": "<button class=\"ncua-btn ncua-btn--xs ncua-btn--secondary-gray\"><span class=\"ncua-btn__label\">버튼</span></button>",
77
- "size:xxs": "<button class=\"ncua-btn ncua-btn--xxs ncua-btn--secondary-gray\"><span class=\"ncua-btn__label\">버튼</span></button>"
68
+ "default": "<button class=\"ncua-btn\"></button>",
69
+ "hierarchy:destructive": "<button class=\"ncua-btn ncua-btn--destructive\"></button>",
70
+ "hierarchy:primary": "<button class=\"ncua-btn ncua-btn--primary\"></button>",
71
+ "hierarchy:secondary": "<button class=\"ncua-btn ncua-btn--secondary\"></button>",
72
+ "hierarchy:secondary-gray": "<button class=\"ncua-btn ncua-btn--secondary-gray\"></button>",
73
+ "hierarchy:tertiary": "<button class=\"ncua-btn ncua-btn--tertiary\"></button>",
74
+ "hierarchy:tertiary-gray": "<button class=\"ncua-btn ncua-btn--tertiary-gray\"></button>",
75
+ "hierarchy:text": "<button class=\"ncua-btn ncua-btn--text\"></button>",
76
+ "hierarchy:text-gray": "<button class=\"ncua-btn ncua-btn--text-gray\"></button>",
77
+ "hierarchy:text-red": "<button class=\"ncua-btn ncua-btn--text-red\"></button>",
78
+ "size:md": "<button class=\"ncua-btn ncua-btn--md\"></button>",
79
+ "size:sm": "<button class=\"ncua-btn ncua-btn--sm\"></button>",
80
+ "size:xs": "<button class=\"ncua-btn ncua-btn--xs\"></button>",
81
+ "size:xxs": "<button class=\"ncua-btn ncua-btn--xxs\"></button>"
78
82
  },
79
83
  "bemClasses": [
80
84
  "ncua-btn",
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "html": {
16
- "default": "<label class=\"ncua-checkbox-field ncua-checkbox-field--xs\"><span class=\"ncua-checkbox-input ncua-checkbox-input--xs ncua-checkbox-field__input\"><input type=\"checkbox\" label=\"체크박스\"/></span></label>"
16
+ "default": "<label class=\"ncua-checkbox-field\"></label>"
17
17
  },
18
18
  "bemClasses": [
19
19
  "ncua-checkbox-field",
package/data/divider.json CHANGED
@@ -34,7 +34,15 @@
34
34
  }
35
35
  },
36
36
  "html": {
37
- "default": "<div class=\"ncua-divider ncua-divider--undefined ncua-divider--single-line\"><div class=\"ncua-divider__line\"></div><div class=\"ncua-divider__content\"></div><div class=\"ncua-divider__line\"></div></div>"
37
+ "default": "<div class=\"ncua-divider\"></div>",
38
+ "style:background-fill": "<div class=\"ncua-divider ncua-divider--background-fill\"></div>",
39
+ "style:single-line": "<div class=\"ncua-divider ncua-divider--single-line\"></div>",
40
+ "type:button": "<div class=\"ncua-divider ncua-divider--button\"></div>",
41
+ "type:button-group": "<div class=\"ncua-divider ncua-divider--button-group\"></div>",
42
+ "type:button-group-icon": "<div class=\"ncua-divider ncua-divider--button-group-icon\"></div>",
43
+ "type:button-icon": "<div class=\"ncua-divider ncua-divider--button-icon\"></div>",
44
+ "type:heading": "<div class=\"ncua-divider ncua-divider--heading\"></div>",
45
+ "type:text": "<div class=\"ncua-divider ncua-divider--text\"></div>"
38
46
  },
39
47
  "bemClasses": [
40
48
  "ncua-divider",
package/data/dot.json CHANGED
@@ -33,7 +33,17 @@
33
33
  }
34
34
  },
35
35
  "html": {
36
- "default": "<span class=\"ncua-dot ncua-dot--success ncua-dot--md\"></span>"
36
+ "default": "<div class=\"ncua-dot\"></div>",
37
+ "color:blue": "<div class=\"ncua-dot ncua-dot--blue\"></div>",
38
+ "color:disabled": "<div class=\"ncua-dot ncua-dot--disabled\"></div>",
39
+ "color:error": "<div class=\"ncua-dot ncua-dot--error\"></div>",
40
+ "color:neutral": "<div class=\"ncua-dot ncua-dot--neutral\"></div>",
41
+ "color:pink": "<div class=\"ncua-dot ncua-dot--pink\"></div>",
42
+ "color:success": "<div class=\"ncua-dot ncua-dot--success\"></div>",
43
+ "color:warning": "<div class=\"ncua-dot ncua-dot--warning\"></div>",
44
+ "size:lg": "<div class=\"ncua-dot ncua-dot--lg\"></div>",
45
+ "size:md": "<div class=\"ncua-dot ncua-dot--md\"></div>",
46
+ "size:sm": "<div class=\"ncua-dot ncua-dot--sm\"></div>"
37
47
  },
38
48
  "bemClasses": [
39
49
  "ncua-dot",
@@ -17,7 +17,7 @@
17
17
  }
18
18
  },
19
19
  "html": {
20
- "default": "<div class=\"ncua-empty-state\"><p class=\"ncua-empty-state__title\">데이터가 없습니다</p><span class=\"ncua-empty-state__description\"></span></div>"
20
+ "default": "<div class=\"ncua-empty-state\"></div>"
21
21
  },
22
22
  "bemClasses": [
23
23
  "ncua-empty-state",