boottent-design 0.1.145 → 0.1.146
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.
- package/dist/components.cjs.js +2 -2
- package/dist/components.es.js +5 -5
- package/dist/{index-ChtBmrWj.js → index-Bd9-63p2.js} +1 -1
- package/dist/{index-CAVq1Ubr.cjs → index-CQvLmHc8.cjs} +1 -1
- package/dist/{index-C0p0m0-y.js → index-DSblJs9H.js} +1 -1
- package/dist/{index-BMocD7nM.cjs → index-_qlrPVFv.cjs} +1 -1
- package/dist/{portal-container-C56ZQrkB.js → portal-container-BGDcl4t1.js} +1 -1
- package/dist/{portal-container-BXoI7L39.cjs → portal-container-Dt-YsKQi.cjs} +1 -1
- package/dist/provider.cjs.js +1 -1
- package/dist/provider.es.js +2 -2
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +3 -3
- package/package.json +1 -1
package/dist/components.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),fe=require("./index-DKCqkplO.cjs"),s=require("./index-BMocD7nM.cjs"),I=require("react"),B=require("./index-z9hRvvSX.cjs"),_=require("./index-CAVq1Ubr.cjs"),P=require("./portal-container-BXoI7L39.cjs");function Rn(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const x=Rn(I);var rt="Collapsible",[Vn,Lt]=s.createContextScope(rt),[Bn,nt]=Vn(rt),Ut=x.forwardRef((r,e)=>{const{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:i,onOpenChange:d,...g}=r,[f=!1,p]=s.useControllableState({prop:n,defaultProp:o,onChange:d});return a.jsx(Bn,{scope:t,disabled:i,contentId:s.useId(),open:f,onOpenToggle:x.useCallback(()=>p(v=>!v),[p]),children:a.jsx(s.Primitive.div,{"data-state":at(f),"data-disabled":i?"":void 0,...g,ref:e})})});Ut.displayName=rt;var Wt="CollapsibleTrigger",zt=x.forwardRef((r,e)=>{const{__scopeCollapsible:t,...n}=r,o=nt(Wt,t);return a.jsx(s.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":at(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:e,onClick:s.composeEventHandlers(r.onClick,o.onOpenToggle)})});zt.displayName=Wt;var ot="CollapsibleContent",$t=x.forwardRef((r,e)=>{const{forceMount:t,...n}=r,o=nt(ot,r.__scopeCollapsible);return a.jsx(s.Presence,{present:t||o.open,children:({present:i})=>a.jsx(Ln,{...n,ref:e,present:i})})});$t.displayName=ot;var Ln=x.forwardRef((r,e)=>{const{__scopeCollapsible:t,present:n,children:o,...i}=r,d=nt(ot,t),[g,f]=x.useState(n),p=x.useRef(null),v=s.useComposedRefs(e,p),h=x.useRef(0),l=h.current,u=x.useRef(0),c=u.current,m=d.open||g,b=x.useRef(m),j=x.useRef();return x.useEffect(()=>{const T=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(T)},[]),s.useLayoutEffect2(()=>{const T=p.current;if(T){j.current=j.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const C=T.getBoundingClientRect();h.current=C.height,u.current=C.width,b.current||(T.style.transitionDuration=j.current.transitionDuration,T.style.animationName=j.current.animationName),f(n)}},[d.open,n]),a.jsx(s.Primitive.div,{"data-state":at(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!m,...i,ref:v,style:{"--radix-collapsible-content-height":l?`${l}px`:void 0,"--radix-collapsible-content-width":c?`${c}px`:void 0,...r.style},children:m&&o})});function at(r){return r?"open":"closed"}var Un=Ut,Wn=zt,zn=$t,Q="Accordion",$n=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[it,Gn,Hn]=s.createCollection(Q),[Me,zi]=s.createContextScope(Q,[Hn,Lt]),st=Lt(),Gt=I.forwardRef((r,e)=>{const{type:t,...n}=r,o=n,i=n;return a.jsx(it.Provider,{scope:r.__scopeAccordion,children:t==="multiple"?a.jsx(Zn,{...i,ref:e}):a.jsx(Xn,{...o,ref:e})})});Gt.displayName=Q;var[Ht,qn]=Me(Q),[qt,Yn]=Me(Q,{collapsible:!1}),Xn=I.forwardRef((r,e)=>{const{value:t,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...d}=r,[g,f]=s.useControllableState({prop:t,defaultProp:n,onChange:o});return a.jsx(Ht,{scope:r.__scopeAccordion,value:g?[g]:[],onItemOpen:f,onItemClose:I.useCallback(()=>i&&f(""),[i,f]),children:a.jsx(qt,{scope:r.__scopeAccordion,collapsible:i,children:a.jsx(Yt,{...d,ref:e})})})}),Zn=I.forwardRef((r,e)=>{const{value:t,defaultValue:n,onValueChange:o=()=>{},...i}=r,[d=[],g]=s.useControllableState({prop:t,defaultProp:n,onChange:o}),f=I.useCallback(v=>g((h=[])=>[...h,v]),[g]),p=I.useCallback(v=>g((h=[])=>h.filter(l=>l!==v)),[g]);return a.jsx(Ht,{scope:r.__scopeAccordion,value:d,onItemOpen:f,onItemClose:p,children:a.jsx(qt,{scope:r.__scopeAccordion,collapsible:!0,children:a.jsx(Yt,{...i,ref:e})})})}),[Kn,_e]=Me(Q),Yt=I.forwardRef((r,e)=>{const{__scopeAccordion:t,disabled:n,dir:o,orientation:i="vertical",...d}=r,g=I.useRef(null),f=s.useComposedRefs(g,e),p=Gn(t),h=s.useDirection(o)==="ltr",l=s.composeEventHandlers(r.onKeyDown,u=>{var ee;if(!$n.includes(u.key))return;const c=u.target,m=p().filter(H=>{var q;return!((q=H.ref.current)!=null&&q.disabled)}),b=m.findIndex(H=>H.ref.current===c),j=m.length;if(b===-1)return;u.preventDefault();let T=b;const C=0,w=j-1,E=()=>{T=b+1,T>w&&(T=C)},R=()=>{T=b-1,T<C&&(T=w)};switch(u.key){case"Home":T=C;break;case"End":T=w;break;case"ArrowRight":i==="horizontal"&&(h?E():R());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(h?R():E());break;case"ArrowUp":i==="vertical"&&R();break}const G=T%j;(ee=m[G].ref.current)==null||ee.focus()});return a.jsx(Kn,{scope:t,disabled:n,direction:o,orientation:i,children:a.jsx(it.Slot,{scope:t,children:a.jsx(s.Primitive.div,{...d,"data-orientation":i,ref:f,onKeyDown:n?void 0:l})})})}),Ee="AccordionItem",[Jn,lt]=Me(Ee),Xt=I.forwardRef((r,e)=>{const{__scopeAccordion:t,value:n,...o}=r,i=_e(Ee,t),d=qn(Ee,t),g=st(t),f=s.useId(),p=n&&d.value.includes(n)||!1,v=i.disabled||r.disabled;return a.jsx(Jn,{scope:t,open:p,disabled:v,triggerId:f,children:a.jsx(Un,{"data-orientation":i.orientation,"data-state":tr(p),...g,...o,ref:e,disabled:v,open:p,onOpenChange:h=>{h?d.onItemOpen(n):d.onItemClose(n)}})})});Xt.displayName=Ee;var Zt="AccordionHeader",Kt=I.forwardRef((r,e)=>{const{__scopeAccordion:t,...n}=r,o=_e(Q,t),i=lt(Zt,t);return a.jsx(s.Primitive.h3,{"data-orientation":o.orientation,"data-state":tr(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:e})});Kt.displayName=Zt;var Xe="AccordionTrigger",Jt=I.forwardRef((r,e)=>{const{__scopeAccordion:t,...n}=r,o=_e(Q,t),i=lt(Xe,t),d=Yn(Xe,t),g=st(t);return a.jsx(it.ItemSlot,{scope:t,children:a.jsx(Wn,{"aria-disabled":i.open&&!d.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...g,...n,ref:e})})});Jt.displayName=Xe;var Qt="AccordionContent",er=I.forwardRef((r,e)=>{const{__scopeAccordion:t,...n}=r,o=_e(Q,t),i=lt(Qt,t),d=st(t);return a.jsx(zn,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...d,...n,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...r.style}})});er.displayName=Qt;function tr(r){return r?"open":"closed"}var Qn=Gt,eo=Xt,to=Kt,rr=Jt,nr=er;const ro=Qn,or=x.forwardRef(({className:r,...e},t)=>a.jsx(eo,{ref:t,className:s.cn("w-full border-b",r),...e}));or.displayName="AccordionItem";const ar=x.forwardRef(({className:r,children:e,disabled:t,...n},o)=>a.jsx(to,{className:"flex",children:a.jsxs(rr,{ref:o,className:s.cn("flex flex-1 items-center justify-between py-4 text-start font-medium transition-all [&[data-state=open]>svg]:rotate-180",r),disabled:t,...n,children:[e,!t&&a.jsx(s.Icon.ArrowDown,{className:"shrink-0 transition-transform duration-200",fill:fe.colors.grey[600],size:"16"})]})}));ar.displayName=rr.displayName;const ir=x.forwardRef(({className:r,children:e,...t},n)=>a.jsx(nr,{ref:n,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down transition-all",...t,children:a.jsx("div",{className:s.cn("overflow-hidden pb-4 text-sm",r),children:e})}));ir.displayName=nr.displayName;const no={Root:ro,Item:or,Trigger:ar,Content:ir},Oe=({src:r,alt:e,object:t="cover",lazy:n=!0,size:o="auto",className:i,...d})=>{const g={contain:"object-contain h-full",cover:"object-cover h-full",fill:"object-fill h-full","scale-down":"object-scale-down",none:"object-none"},f={full:"w-full",fit:"w-fit",auto:"w-auto"};let p="",v={};return typeof o=="string"?p=f[o]:typeof o=="number"&&(v={width:`${o}px`}),a.jsx("img",{src:r,alt:e?`${e} 이미지`:"이미지",loading:n?"lazy":"eager",className:s.cn(g[t],p,i),style:v,...d})},oo=864e5,sr=6e4,lr=36e5,At=Symbol.for("constructDateFrom");function ct(r,e){return typeof r=="function"?r(e):r&&typeof r=="object"&&At in r?r[At](e):r instanceof Date?new r.constructor(e):new Date(e)}function Ae(r,e){return ct(r,r)}function Ft(r){const e=Ae(r),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+r-+t}function cr(r,...e){const t=ct.bind(null,e.find(n=>typeof n=="object"));return e.map(t)}function It(r,e){const t=Ae(r);return t.setHours(0,0,0,0),t}function ao(r,e,t){const[n,o]=cr(t==null?void 0:t.in,r,e),i=It(n),d=It(o),g=+i-Ft(i),f=+d-Ft(d);return Math.round((g-f)/oo)}function io(r,e,t){const[n,o]=cr(t==null?void 0:t.in,r,e),i=Dt(n,o),d=Math.abs(ao(n,o));n.setDate(n.getDate()-i*d);const g=+(Dt(n,o)===-i),f=i*(d-g);return f===0?0:f}function Dt(r,e){const t=r.getFullYear()-e.getFullYear()||r.getMonth()-e.getMonth()||r.getDate()-e.getDate()||r.getHours()-e.getHours()||r.getMinutes()-e.getMinutes()||r.getSeconds()-e.getSeconds()||r.getMilliseconds()-e.getMilliseconds();return t<0?-1:t>0?1:t}function so(r,e){const t=()=>ct(e==null?void 0:e.in,NaN),o=mo(r);let i;if(o.date){const p=po(o.date,2);i=fo(p.restDateString,p.year)}if(!i||isNaN(+i))return t();const d=+i;let g=0,f;if(o.time&&(g=go(o.time),isNaN(g)))return t();if(o.timezone){if(f=bo(o.timezone),isNaN(f))return t()}else{const p=new Date(d+g),v=Ae(0);return v.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),v.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),v}return Ae(d+g+f)}const Pe={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},lo=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,co=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,uo=/^([+-])(\d{2})(?::?(\d{2}))?$/;function mo(r){const e={},t=r.split(Pe.dateTimeDelimiter);let n;if(t.length>2)return e;if(/:/.test(t[0])?n=t[0]:(e.date=t[0],n=t[1],Pe.timeZoneDelimiter.test(e.date)&&(e.date=r.split(Pe.timeZoneDelimiter)[0],n=r.substr(e.date.length,r.length))),n){const o=Pe.timezone.exec(n);o?(e.time=n.replace(o[1],""),e.timezone=o[1]):e.time=n}return e}function po(r,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=r.match(t);if(!n)return{year:NaN,restDateString:""};const o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?o:i*100,restDateString:r.slice((n[1]||n[2]).length)}}function fo(r,e){if(e===null)return new Date(NaN);const t=r.match(lo);if(!t)return new Date(NaN);const n=!!t[4],o=pe(t[1]),i=pe(t[2])-1,d=pe(t[3]),g=pe(t[4]),f=pe(t[5])-1;if(n)return yo(e,g,f)?vo(e,g,f):new Date(NaN);{const p=new Date(0);return!wo(e,i,d)||!xo(e,o)?new Date(NaN):(p.setUTCFullYear(e,i,Math.max(o,d)),p)}}function pe(r){return r?parseInt(r):1}function go(r){const e=r.match(co);if(!e)return NaN;const t=Ye(e[1]),n=Ye(e[2]),o=Ye(e[3]);return Co(t,n,o)?t*lr+n*sr+o*1e3:NaN}function Ye(r){return r&&parseFloat(r.replace(",","."))||0}function bo(r){if(r==="Z")return 0;const e=r.match(uo);if(!e)return 0;const t=e[1]==="+"?-1:1,n=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return To(n,o)?t*(n*lr+o*sr):NaN}function vo(r,e,t){const n=new Date(0);n.setUTCFullYear(r,0,4);const o=n.getUTCDay()||7,i=(e-1)*7+t+1-o;return n.setUTCDate(n.getUTCDate()+i),n}const ho=[31,null,31,30,31,30,31,31,30,31,30,31];function dr(r){return r%400===0||r%4===0&&r%100!==0}function wo(r,e,t){return e>=0&&e<=11&&t>=1&&t<=(ho[e]||(dr(r)?29:28))}function xo(r,e){return e>=1&&e<=(dr(r)?366:365)}function yo(r,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function Co(r,e,t){return r===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&r>=0&&r<25}function To(r,e){return e>=0&&e<=59}function jo({adProduct:r,logo:e,title:t,batchName:n="",adTitle:o,startDate:i,tuition:d,nbCardRequired:g,isLoading:f=!1,regEndDate:p,className:v}){if(f)return a.jsx(mr,{className:v});const h=`${So(i)} · ${No(d,g)}`;return a.jsx(ur,{logo:e,title:`${t} ${n}`,adTitle:o,footerText:h,regEndDate:p,className:v,adProduct:r})}function ur({adProduct:r,logo:e,title:t,adTitle:n,footerText:o,regEndDate:i,className:d}){return a.jsxs(s.FlexBox.Col,{className:s.cn("relative z-10 h-full w-full items-start justify-between gap-2 overflow-hidden rounded-xl border border-grey-200 bg-white p-4 text-grey-800 md:p-5 lg:p-6",d),children:[a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.event.background,color:B.adProducts.event.color},children:r===B.adProducts.dDay.value&&i?ko(i):B.adProducts.event.value.toUpperCase()}),a.jsx(Oe,{src:e,alt:`${t} 로고`,className:"h-4 object-contain"}),a.jsxs(s.FlexBox.Col,{className:"w-full gap-2",children:[a.jsx("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:text-base lg:h-12",title:t,children:t}),a.jsx("p",{className:"line-clamp-2 h-auto w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:h-[54px] md:text-[15px] md:text-grey-800",children:n}),a.jsx(s.Box,{className:"text-[13px] leading-[19px] text-grey-600",children:o})]})]})}function mr({className:r}){return a.jsxs(_.Skeleton,{type:"background",className:s.cn("relative z-10 flex h-full w-full flex-col justify-between gap-2 overflow-hidden rounded-xl p-4 md:p-5 lg:p-6",r),children:[a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.event.background,color:B.adProducts.event.color},className:s.cn("h-7 w-20 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),a.jsx(_.Skeleton,{className:"h-4 w-1/2"}),a.jsxs(s.FlexBox.Col,{className:"gap-2",children:[a.jsx(s.Box,{className:"h-10 w-full",children:a.jsx(_.Skeleton,{className:"h-5 w-4/5"})}),a.jsx(_.Skeleton,{className:"h-14 w-full"})]}),a.jsx(_.Skeleton,{className:"mt-2 h-[19px] w-2/3"})]})}const So=r=>{if(!r)return"";const t=r.split(" ")[0].split("-"),n=Number(t[1]),o=`${n}/${Number(t.slice(2).join("."))}`;switch(t[2]){case"98":return`${n}월중 개강`;case"99":return`${n}월중(예상) 개강`;default:return`${o} 개강`}},No=(r,e)=>{const t=e?"(내배카💳)":"";return r===0||r===void 0?`무료 ${t}`:`유료 ${t}`},Po=r=>{const t=r.split(" ")[0].split("-"),n=Number(t[0]),o=Number(t[1]);let i=t[2];const d=new Date(n,o,0).getDate();return(isNaN(Number(i))||Number(i)>d)&&(i=d.toString()),`${n}-${String(o).padStart(2,"0")}-${String(i).padStart(2,"0")}`},ko=r=>{const e=io(so(Po(r)),new Date);return e<=0?"마감임박":`D-${e}`},Eo={homepage:{label:"홈페이지",value:"homepage",query:!1},boottent:{label:"자세히보기",value:"boottent",query:!1},curriculum:{label:"커리큘럼 보기",value:"curriculum",query:"curriculum"},event:{label:"이벤트",value:"event",query:"event"},reviews:{label:"후기보기",value:"reviews",query:"reviews"}};var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},y={},Ze={exports:{}};(function(r,e){(function(t,n){var o="1.0.39",i="",d="?",g="function",f="undefined",p="object",v="string",h="major",l="model",u="name",c="type",m="vendor",b="version",j="architecture",T="console",C="mobile",w="tablet",E="smarttv",R="wearable",G="embedded",ee=500,H="Amazon",q="Apple",ht="ASUS",wt="BlackBerry",ce="Browser",xe="Chrome",In="Edge",ye="Firefox",Ce="Google",xt="Huawei",We="LG",ze="Microsoft",yt="Motorola",de="Opera",ue="Samsung",Ct="Sharp",Te="Sony",$e="Xiaomi",Ge="Zebra",Tt="Facebook",jt="Chromium OS",St="Mac OS",Nt=" Browser",Dn=function(O,A){var k={};for(var D in O)A[D]&&A[D].length%2===0?k[D]=A[D].concat(O[D]):k[D]=O[D];return k},je=function(O){for(var A={},k=0;k<O.length;k++)A[O[k].toUpperCase()]=O[k];return A},Pt=function(O,A){return typeof O===v?ne(A).indexOf(ne(O))!==-1:!1},ne=function(O){return O.toLowerCase()},Mn=function(O){return typeof O===v?O.replace(/[^\d\.]/g,i).split(".")[0]:n},He=function(O,A){if(typeof O===v)return O=O.replace(/^\s\s*/,i),typeof A===f?O:O.substring(0,ee)},me=function(O,A){for(var k=0,D,J,X,F,N,Z;k<A.length&&!N;){var qe=A[k],Ot=A[k+1];for(D=J=0;D<qe.length&&!N&&qe[D];)if(N=qe[D++].exec(O),N)for(X=0;X<Ot.length;X++)Z=N[++J],F=Ot[X],typeof F===p&&F.length>0?F.length===2?typeof F[1]==g?this[F[0]]=F[1].call(this,Z):this[F[0]]=F[1]:F.length===3?typeof F[1]===g&&!(F[1].exec&&F[1].test)?this[F[0]]=Z?F[1].call(this,Z,F[2]):n:this[F[0]]=Z?Z.replace(F[1],F[2]):n:F.length===4&&(this[F[0]]=Z?F[3].call(this,Z.replace(F[1],F[2])):n):this[F]=Z||n;k+=2}},Se=function(O,A){for(var k in A)if(typeof A[k]===p&&A[k].length>0){for(var D=0;D<A[k].length;D++)if(Pt(A[k][D],O))return k===d?n:k}else if(Pt(A[k],O))return k===d?n:k;return A.hasOwnProperty("*")?A["*"]:O},_n={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},kt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,b],[/opios[\/ ]+([\w\.]+)/i],[b,[u,de+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[u,de+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[u,de]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[u,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[u,"UC"+ce]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[u,"Smart Lenovo "+ce]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+ce],b],[/\bfocus\/([\w\.]+)/i],[b,[u,ye+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[u,de+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[u,de+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[u,"MIUI "+ce]],[/fxios\/([-\w\.]+)/i],[b,[u,ye]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360"+Nt]],[/\b(qq)\/([\w\.]+)/i],[[u,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1"+Nt],b],[/samsungbrowser\/([\w\.]+)/i],[b,[u,ue+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],b],[/metasr[\/ ]?([\d\.]+)/i],[b,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,Tt],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[u,xe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,xe+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[u,"Android "+ce]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[b,Se,_n]],[/(webkit|khtml)\/([\w\.]+)/i],[u,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],b],[/(wolvic)\/([\w\.]+)/i],[u,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[u,ye+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[u,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[j,"amd64"]],[/(ia32(?=;))/i],[[j,ne]],[/((?:i[346]|x)86)[;\)]/i],[[j,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[j,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[j,"armhf"]],[/windows (ce|mobile); ppc;/i],[[j,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[j,/ower/,i,ne]],[/(sun4\w)[;\)]/i],[[j,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[j,ne]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[m,ue],[c,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[m,ue],[c,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[m,q],[c,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[m,q],[c,w]],[/(macintosh);/i],[l,[m,q]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[m,Ct],[c,C]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[m,xt],[c,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[m,xt],[c,C]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[l,/_/g," "],[m,$e],[c,C]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[m,$e],[c,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[m,"OPPO"],[c,C]],[/\b(opd2\d{3}a?) bui/i],[l,[m,"OPPO"],[c,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[m,"Vivo"],[c,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[m,"Realme"],[c,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[m,yt],[c,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[m,yt],[c,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[m,We],[c,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[m,We],[c,C]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[m,"Lenovo"],[c,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[m,"Nokia"],[c,C]],[/(pixel c)\b/i],[l,[m,Ce],[c,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[m,Ce],[c,C]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[m,Te],[c,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[m,Te],[c,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[m,"OnePlus"],[c,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[m,H],[c,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[m,H],[c,C]],[/(playbook);[-\w\),; ]+(rim)/i],[l,m,[c,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[m,wt],[c,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[m,ht],[c,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[m,ht],[c,C]],[/(nexus 9)/i],[l,[m,"HTC"],[c,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[l,/_/g," "],[c,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[m,"TCL"],[c,w]],[/(itel) ((\w+))/i],[[m,ne],l,[c,Se,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[m,"Acer"],[c,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[m,"Meizu"],[c,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[m,"Ulefone"],[c,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[m,"Nothing"],[c,C]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,l,[c,C]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,l,[c,w]],[/(surface duo)/i],[l,[m,ze],[c,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[m,"Fairphone"],[c,C]],[/(u304aa)/i],[l,[m,"AT&T"],[c,C]],[/\bsie-(\w*)/i],[l,[m,"Siemens"],[c,C]],[/\b(rct\w+) b/i],[l,[m,"RCA"],[c,w]],[/\b(venue[\d ]{2,7}) b/i],[l,[m,"Dell"],[c,w]],[/\b(q(?:mv|ta)\w+) b/i],[l,[m,"Verizon"],[c,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[m,"Barnes & Noble"],[c,w]],[/\b(tm\d{3}\w+) b/i],[l,[m,"NuVision"],[c,w]],[/\b(k88) b/i],[l,[m,"ZTE"],[c,w]],[/\b(nx\d{3}j) b/i],[l,[m,"ZTE"],[c,C]],[/\b(gen\d{3}) b.+49h/i],[l,[m,"Swiss"],[c,C]],[/\b(zur\d{3}) b/i],[l,[m,"Swiss"],[c,w]],[/\b((zeki)?tb.*\b) b/i],[l,[m,"Zeki"],[c,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],l,[c,w]],[/\b(ns-?\w{0,9}) b/i],[l,[m,"Insignia"],[c,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[m,"NextBook"],[c,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],l,[c,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],l,[c,C]],[/\b(ph-1) /i],[l,[m,"Essential"],[c,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[m,"Envizen"],[c,w]],[/\b(trio[-\w\. ]+) b/i],[l,[m,"MachSpeed"],[c,w]],[/\btu_(1491) b/i],[l,[m,"Rotor"],[c,w]],[/(shield[\w ]+) b/i],[l,[m,"Nvidia"],[c,w]],[/(sprint) (\w+)/i],[m,l,[c,C]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[m,ze],[c,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[m,Ge],[c,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[m,Ge],[c,C]],[/smart-tv.+(samsung)/i],[m,[c,E]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[m,ue],[c,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,We],[c,E]],[/(apple) ?tv/i],[m,[l,q+" TV"],[c,E]],[/crkey/i],[[l,xe+"cast"],[m,Ce],[c,E]],[/droid.+aft(\w+)( bui|\))/i],[l,[m,H],[c,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[m,Ct],[c,E]],[/(bravia[\w ]+)( bui|\))/i],[l,[m,Te],[c,E]],[/(mitv-\w{5}) bui/i],[l,[m,$e],[c,E]],[/Hbbtv.*(technisat) (.*);/i],[m,l,[c,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,He],[l,He],[c,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,l,[c,T]],[/droid.+; (shield) bui/i],[l,[m,"Nvidia"],[c,T]],[/(playstation [345portablevi]+)/i],[l,[m,Te],[c,T]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[m,ze],[c,T]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[l,[m,ue],[c,R]],[/((pebble))app/i],[m,l,[c,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[m,q],[c,R]],[/droid.+; (glass) \d/i],[l,[m,Ce],[c,R]],[/droid.+; (wt63?0{2,3})\)/i],[l,[m,Ge],[c,R]],[/(quest( \d| pro)?)/i],[l,[m,Tt],[c,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[c,G]],[/(aeobc)\b/i],[l,[m,H],[c,G]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[c,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[c,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,C]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[u,In+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[b,Se,kt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,Se,kt],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,St],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,b],[/\(bb(10);/i],[b,[u,wt]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[u,ye+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[u,xe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,jt],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,b],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,b]]},Y=function(O,A){if(typeof O===p&&(A=O,O=n),!(this instanceof Y))return new Y(O,A).getResult();var k=typeof t!==f&&t.navigator?t.navigator:n,D=O||(k&&k.userAgent?k.userAgent:i),J=k&&k.userAgentData?k.userAgentData:n,X=A?Dn(Et,A):Et,F=k&&k.userAgent==D;return this.getBrowser=function(){var N={};return N[u]=n,N[b]=n,me.call(N,D,X.browser),N[h]=Mn(N[b]),F&&k&&k.brave&&typeof k.brave.isBrave==g&&(N[u]="Brave"),N},this.getCPU=function(){var N={};return N[j]=n,me.call(N,D,X.cpu),N},this.getDevice=function(){var N={};return N[m]=n,N[l]=n,N[c]=n,me.call(N,D,X.device),F&&!N[c]&&J&&J.mobile&&(N[c]=C),F&&N[l]=="Macintosh"&&k&&typeof k.standalone!==f&&k.maxTouchPoints&&k.maxTouchPoints>2&&(N[l]="iPad",N[c]=w),N},this.getEngine=function(){var N={};return N[u]=n,N[b]=n,me.call(N,D,X.engine),N},this.getOS=function(){var N={};return N[u]=n,N[b]=n,me.call(N,D,X.os),F&&!N[u]&&J&&J.platform&&J.platform!="Unknown"&&(N[u]=J.platform.replace(/chrome os/i,jt).replace(/macos/i,St)),N},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return D},this.setUA=function(N){return D=typeof N===v&&N.length>ee?He(N,ee):N,this},this.setUA(D),this};Y.VERSION=o,Y.BROWSER=je([u,b,h]),Y.CPU=je([j]),Y.DEVICE=je([l,m,c,T,C,E,w,R,G]),Y.ENGINE=Y.OS=je([u,b]),r.exports&&(e=r.exports=Y),e.UAParser=Y;var oe=typeof t!==f&&(t.jQuery||t.Zepto);if(oe&&!oe.ua){var Ne=new Y;oe.ua=Ne.getResult(),oe.ua.get=function(){return Ne.getUA()},oe.ua.set=function(O){Ne.setUA(O);var A=Ne.getResult();for(var k in A)oe.ua[k]=A[k]}}})(typeof window=="object"?window:Oo)})(Ze,Ze.exports);var Ao=Ze.exports;Object.defineProperty(y,"__esModule",{value:!0});function Fo(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var L=I,M=Fo(L),pr=Ao,te=new pr,U=te.getBrowser(),Io=te.getCPU(),z=te.getDevice(),dt=te.getEngine(),re=te.getOS(),he=te.getUA(),fr=function(e){return te.setUA(e)},we=function(e){if(!e){console.error("No userAgent string was provided");return}var t=new pr(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(o){return t.setUA(o)}}},gr=Object.freeze({ClientUAInstance:te,browser:U,cpu:Io,device:z,engine:dt,os:re,ua:he,setUa:fr,parseUserAgent:we});function Mt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,n)}return t}function Do(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Mt(Object(t),!0).forEach(function(n){Vo(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Mt(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function be(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?be=function(e){return typeof e}:be=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(r)}function Mo(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _o(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Ro(r,e,t){return e&&_o(r.prototype,e),r}function Vo(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ke(){return Ke=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Ke.apply(this,arguments)}function Bo(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&Qe(r,e)}function Je(r){return Je=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Je(r)}function Qe(r,e){return Qe=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Qe(r,e)}function Lo(r,e){if(r==null)return{};var t={},n=Object.keys(r),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}function $(r,e){if(r==null)return{};var t=Lo(r,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function ke(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Uo(r,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ke(r)}function Wo(r,e){return zo(r)||$o(r,e)||Go(r,e)||Ho()}function zo(r){if(Array.isArray(r))return r}function $o(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n=[],o=!0,i=!1,d,g;try{for(t=t.call(r);!(o=(d=t.next()).done)&&(n.push(d.value),!(e&&n.length===e));o=!0);}catch(f){i=!0,g=f}finally{try{!o&&t.return!=null&&t.return()}finally{if(i)throw g}}return n}}function Go(r,e){if(r){if(typeof r=="string")return _t(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _t(r,e)}}function _t(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Ho(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},W={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},se={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},qo={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Yo=function(e){switch(e){case V.Mobile:return{isMobile:!0};case V.Tablet:return{isTablet:!0};case V.SmartTv:return{isSmartTV:!0};case V.Console:return{isConsole:!0};case V.Wearable:return{isWearable:!0};case V.Browser:return{isBrowser:!0};case V.Embedded:return{isEmbedded:!0};default:return qo}},Xo=function(e){return fr(e)},S=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return e||t},ut=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},mt=function(e){var t=ut();return t&&t.platform&&(t.platform.indexOf(e)!==-1||t.platform==="MacIntel"&&t.maxTouchPoints>1&&!window.MSStream)},Zo=function(e,t,n,o,i){return{isBrowser:e,browserMajorVersion:S(t.major),browserFullVersion:S(t.version),browserName:S(t.name),engineName:S(n.name),engineVersion:S(n.version),osName:S(o.name),osVersion:S(o.version),userAgent:S(i)}},Rt=function(e,t,n,o){return Do({},e,{vendor:S(t.vendor),model:S(t.model),os:S(n.name),osVersion:S(n.version),ua:S(o)})},Ko=function(e,t,n,o){return{isSmartTV:e,engineName:S(t.name),engineVersion:S(t.version),osName:S(n.name),osVersion:S(n.version),userAgent:S(o)}},Jo=function(e,t,n,o){return{isConsole:e,engineName:S(t.name),engineVersion:S(t.version),osName:S(n.name),osVersion:S(n.version),userAgent:S(o)}},Qo=function(e,t,n,o){return{isWearable:e,engineName:S(t.name),engineVersion:S(t.version),osName:S(n.name),osVersion:S(n.version),userAgent:S(o)}},ea=function(e,t,n,o,i){return{isEmbedded:e,vendor:S(t.vendor),model:S(t.model),engineName:S(n.name),engineVersion:S(n.version),osName:S(o.name),osVersion:S(o.version),userAgent:S(i)}};function ta(r){var e=r?we(r):gr,t=e.device,n=e.browser,o=e.engine,i=e.os,d=e.ua,g=Yo(t.type),f=g.isBrowser,p=g.isMobile,v=g.isTablet,h=g.isSmartTV,l=g.isConsole,u=g.isWearable,c=g.isEmbedded;if(f)return Zo(f,n,o,i,d);if(h)return Ko(h,o,i,d);if(l)return Jo(l,o,i,d);if(p||v)return Rt(g,t,i,d);if(u)return Qo(u,o,i,d);if(c)return ea(c,t,o,i,d)}var br=function(e){var t=e.type;return t===V.Mobile},vr=function(e){var t=e.type;return t===V.Tablet},hr=function(e){var t=e.type;return t===V.Mobile||t===V.Tablet},wr=function(e){var t=e.type;return t===V.SmartTv},Fe=function(e){var t=e.type;return t===V.Browser},xr=function(e){var t=e.type;return t===V.Wearable},yr=function(e){var t=e.type;return t===V.Console},Cr=function(e){var t=e.type;return t===V.Embedded},Tr=function(e){var t=e.vendor;return S(t)},jr=function(e){var t=e.model;return S(t)},Sr=function(e){var t=e.type;return S(t,"browser")},Nr=function(e){var t=e.name;return t===se.Android},Pr=function(e){var t=e.name;return t===se.Windows},kr=function(e){var t=e.name;return t===se.MAC_OS},Er=function(e){var t=e.name;return t===se.WindowsPhone},Or=function(e){var t=e.name;return t===se.IOS},Ar=function(e){var t=e.version;return S(t)},Fr=function(e){var t=e.name;return S(t)},Ir=function(e){var t=e.name;return t===W.Chrome},Dr=function(e){var t=e.name;return t===W.Firefox},Mr=function(e){var t=e.name;return t===W.Chromium},Ie=function(e){var t=e.name;return t===W.Edge},_r=function(e){var t=e.name;return t===W.Yandex},Rr=function(e){var t=e.name;return t===W.Safari||t===W.MobileSafari},Vr=function(e){var t=e.name;return t===W.MobileSafari},Br=function(e){var t=e.name;return t===W.Opera},Lr=function(e){var t=e.name;return t===W.InternetExplorer||t===W.Ie},Ur=function(e){var t=e.name;return t===W.MIUI},Wr=function(e){var t=e.name;return t===W.SamsungBrowser},zr=function(e){var t=e.version;return S(t)},$r=function(e){var t=e.major;return S(t)},Gr=function(e){var t=e.name;return S(t)},Hr=function(e){var t=e.name;return S(t)},qr=function(e){var t=e.version;return S(t)},Yr=function(){var e=ut(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof t=="string"?/electron/.test(t):!1},ae=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},Xr=function(){var e=ut();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},K=function(){return mt("iPad")},Zr=function(){return mt("iPhone")},Kr=function(){return mt("iPod")},Jr=function(e){return S(e)};function Qr(r){var e=r||gr,t=e.device,n=e.browser,o=e.os,i=e.engine,d=e.ua;return{isSmartTV:wr(t),isConsole:yr(t),isWearable:xr(t),isEmbedded:Cr(t),isMobileSafari:Vr(n)||K(),isChromium:Mr(n),isMobile:hr(t)||K(),isMobileOnly:br(t),isTablet:vr(t)||K(),isBrowser:Fe(t),isDesktop:Fe(t),isAndroid:Nr(o),isWinPhone:Er(o),isIOS:Or(o)||K(),isChrome:Ir(n),isFirefox:Dr(n),isSafari:Rr(n),isOpera:Br(n),isIE:Lr(n),osVersion:Ar(o),osName:Fr(o),fullBrowserVersion:zr(n),browserVersion:$r(n),browserName:Gr(n),mobileVendor:Tr(t),mobileModel:jr(t),engineName:Hr(i),engineVersion:qr(i),getUA:Jr(d),isEdge:Ie(n)||ae(d),isYandex:_r(n),deviceType:Sr(t),isIOS13:Xr(),isIPad13:K(),isIPhone13:Zr(),isIPod13:Kr(),isElectron:Yr(),isEdgeChromium:ae(d),isLegacyEdge:Ie(n)&&!ae(d),isWindows:Pr(o),isMacOs:kr(o),isMIUI:Ur(n),isSamsungBrowser:Wr(n)}}var en=wr(z),tn=yr(z),rn=xr(z),ra=Cr(z),na=Vr(U)||K(),oa=Mr(U),Re=hr(z)||K(),nn=br(z),on=vr(z)||K(),an=Fe(z),aa=Fe(z),sn=Nr(re),ln=Er(re),cn=Or(re)||K(),ia=Ir(U),sa=Dr(U),la=Rr(U),ca=Br(U),dn=Lr(U),da=Ar(re),ua=Fr(re),ma=zr(U),pa=$r(U),fa=Gr(U),ga=Tr(z),ba=jr(z),va=Hr(dt),ha=qr(dt),wa=Jr(he),xa=Ie(U)||ae(he),ya=_r(U),Ca=Sr(z),Ta=Xr(),ja=K(),Sa=Zr(),Na=Kr(),Pa=Yr(),ka=ae(he),Ea=Ie(U)&&!ae(he),Oa=Pr(re),Aa=kr(re),Fa=Ur(U),Ia=Wr(U),Da=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var t=we(e),n=t.device,o=t.browser,i=t.os,d=t.engine,g=t.ua;return Qr({device:n,browser:o,os:i,engine:d,ua:g})},Ma=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return sn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},_a=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return an?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ra=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return dn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Va=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return cn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ba=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return Re?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},La=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return on?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ua=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return ln?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Wa=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var o=$(e,["renderWithFragment","children","viewClassName","style"]);return nn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},za=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return en?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},$a=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return tn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ga=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return rn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ha=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var o=e.condition,i=$(e,["renderWithFragment","children","viewClassName","style","condition"]);return o?t?M.createElement(L.Fragment,null,n):M.createElement("div",i,n):null};function qa(r){return function(e){Bo(t,e);function t(n){var o;return Mo(this,t),o=Uo(this,Je(t).call(this,n)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(ke(o)),o.onOrientationChange=o.onOrientationChange.bind(ke(o)),o.onPageLoad=o.onPageLoad.bind(ke(o)),o.state={isLandscape:!1,isPortrait:!1},o}return Ro(t,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var o=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:o===0,isLandscape:o===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":be(window))!==void 0&&Re&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return M.createElement(r,Ke({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),t}(M.Component)}function Ya(){var r=L.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),e=Wo(r,2),t=e[0],n=e[1],o=L.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,d={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};t.orientation!==d.orientation&&n(d)},[t.orientation]);return L.useEffect(function(){return(typeof window>"u"?"undefined":be(window))!==void 0&&Re&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),t}function un(r){var e=r||window.navigator.userAgent;return we(e)}function Xa(r){var e=r||window.navigator.userAgent,t=un(e),n=Qr(t);return[n,t]}y.AndroidView=Ma;y.BrowserTypes=W;y.BrowserView=_a;y.ConsoleView=$a;y.CustomView=Ha;y.IEView=Ra;y.IOSView=Va;y.MobileOnlyView=Wa;y.MobileView=Ba;y.OsTypes=se;y.SmartTVView=za;y.TabletView=La;y.WearableView=Ga;y.WinPhoneView=Ua;y.browserName=fa;y.browserVersion=pa;y.deviceDetect=ta;y.deviceType=Ca;y.engineName=va;y.engineVersion=ha;y.fullBrowserVersion=ma;y.getSelectorsByUserAgent=Da;y.getUA=wa;y.isAndroid=sn;y.isBrowser=an;y.isChrome=ia;y.isChromium=oa;y.isConsole=tn;y.isDesktop=aa;y.isEdge=xa;y.isEdgeChromium=ka;y.isElectron=Pa;y.isEmbedded=ra;y.isFirefox=sa;y.isIE=dn;y.isIOS=cn;y.isIOS13=Ta;y.isIPad13=ja;y.isIPhone13=Sa;y.isIPod13=Na;y.isLegacyEdge=Ea;y.isMIUI=Fa;y.isMacOs=Aa;var ge=y.isMobile=Re;y.isMobileOnly=nn;y.isMobileSafari=na;y.isOpera=ca;y.isSafari=la;y.isSamsungBrowser=Ia;y.isSmartTV=en;y.isTablet=on;y.isWearable=rn;y.isWinPhone=ln;y.isWindows=Oa;y.isYandex=ya;y.mobileModel=ba;y.mobileVendor=ga;y.osName=ua;y.osVersion=da;y.parseUserAgent=we;y.setUserAgent=Xo;y.useDeviceData=un;y.useDeviceSelectors=Xa;y.useMobileOrientation=Ya;y.withOrientationChange=qa;function Za({adKey:r,filename:e,title:t,backgroundColor:n,hideButton:o=!1,buttonColors:i,linkType:d="homepage",isLoading:g=!1,className:f}){var u;const p=r&&e,v=`https://cdn.sayun.studio/boottent/images/banners/${r}/${e}`,h={background:i?i.button:B.defaultBannerColor.button,color:i?i.buttonText:B.defaultBannerColor.buttonText,border:i?i.button:B.defaultBannerColor.button},l=g?_.Skeleton:s.Box;return a.jsx(l,{style:{backgroundColor:g?void 0:n},type:g?"background":void 0,className:s.cn("relative h-40 w-full overflow-hidden md:h-[200px]",g?"bg-white":"border-y border-y-grey-200",f),children:g?a.jsx(mn,{}):a.jsx(a.Fragment,{children:a.jsxs(s.FlexBox.Row,{className:"absolute inset-0 mx-auto h-full w-full max-w-screen-xl px-0 pb-6 pt-0 md:h-auto md:px-6 md:pb-0 md:pt-10 lg:px-10 lg:pt-6",children:[p?a.jsx("div",{className:"mx-auto flex h-full w-full items-center md:items-start",children:a.jsx("img",{loading:"lazy",src:v,alt:`${t} 이미지`,className:"h-auto max-h-[136px] w-full object-contain md:max-h-40 lg:max-h-[176px]"})}):a.jsx(s.Box,{className:"h-full w-full bg-grey-100 text-muted",children:t}),!o&&a.jsx(s.Box,{className:"absolute inset-0 mx-auto max-w-screen-xl px-4 md:px-6 lg:px-10",children:a.jsx(s.Button,{style:h,theme:"etc",variant:"solid",size:ge?"sm":"md",className:"absolute bottom-4 right-4 h-9 w-24 md:bottom-6 md:right-6 md:h-11 md:w-32 lg:bottom-4 lg:right-10",children:((u=Eo[d])==null?void 0:u.label)+" →"||"홈페이지 →"})})]})})})}function mn(){return a.jsxs(s.FlexBox.Col,{className:"relative mx-auto flex h-full w-full max-w-screen-xl items-start gap-5 px-4 pt-4 md:px-6 md:pt-10 lg:px-10",children:[a.jsx(_.Skeleton,{type:"text",className:"h-6 w-4/5 rounded-xl md:h-10"}),a.jsx(_.Skeleton,{type:"text",className:"h-10 w-1/2 rounded-xl md:h-16 lg:w-3/5"}),a.jsx(_.Skeleton,{type:"text",className:"absolute bottom-4 right-4 aspect-[3/1] w-[120px] shrink-0 md:right-6 md:w-[140px] lg:right-10"})]})}const Ka=({logo:r,title:e,subtitle:t,thumbnail:n,batchTitle:o,batchName:i="",brandName:d,tag:g,isLoading:f=!1,className:p})=>{const v=f?_.Skeleton:s.Box;return a.jsxs(v,{title:e,type:"background",className:s.cn("xs:h-full relative z-10 box-border h-[154px] w-full max-w-[720px] cursor-pointer overflow-hidden rounded-xl bg-white p-4 md:h-[174px] md:max-w-[592px] md:p-5 lg:h-[174px] lg:p-6 xl:h-[174px]",f?"":"border border-grey-200",p),children:[a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.premiumCard.background,color:B.adProducts.premiumCard.color},className:s.cn(f&&"h-7 w-28 animate-pulse"),children:f?"":g}),f?a.jsx(Qa,{}):a.jsx(Ja,{logo:r,brandName:d,batchTitle:o,batchName:i,subtitle:t,thumbnail:n})]})},Ja=({logo:r,brandName:e,batchTitle:t,batchName:n,subtitle:o,thumbnail:i})=>a.jsxs(s.FlexBox.Col,{className:"h-full justify-start gap-2",children:[a.jsx(Oe,{src:r,alt:`${e} 로고`,className:"h-4 object-contain"}),a.jsxs(s.FlexBox.Row,{className:"w-full items-start justify-between gap-6",children:[a.jsxs(s.FlexBox.Col,{className:"flex h-full grow flex-col justify-between gap-2 pb-2",children:[a.jsxs("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:h-12 md:text-base",title:`${e} ${t} ${n}`,children:[t," ",n]}),a.jsx("h4",{className:"line-clamp-2 max-h-[56px] w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:text-[15px] md:text-grey-800",title:o,children:o})]}),a.jsx(Oe,{src:i,alt:`${t} 썸네일`,className:"h-[86px] w-[86px] shrink-0 grow-0 rounded-xl border border-grey-200 object-cover md:h-[96px] md:w-[96px]"})]})]}),Qa=()=>a.jsxs(s.FlexBox.Col,{className:"h-full justify-center gap-2",children:[a.jsx(_.Skeleton,{className:"h-4 w-1/2"}),a.jsxs(s.FlexBox.Row,{className:"w-full items-start justify-between gap-6",children:[a.jsxs(s.FlexBox.Col,{className:"flex h-full w-full flex-col justify-between gap-2 pb-2",children:[a.jsx(_.Skeleton,{className:"h-5 w-4/5 lg:h-12"}),a.jsx(_.Skeleton,{className:"h-5 w-4/5"})]}),a.jsx(_.Skeleton,{className:"h-[86px] w-[86px] shrink-0 grow-0 rounded-xl md:h-[96px] md:w-[96px]"})]})]}),ei=({tags:r,coverImage:e,brandName:t,title:n,batchName:o="",titleTagType:i,adTitle:d,changedAspect:g="aspect-[8/5]",isLoading:f=!1,className:p})=>f?a.jsx(ti,{changedAspect:g,className:p,titleTagType:i}):a.jsxs(s.FlexBox.Col,{className:s.cn("shadow-base h-full w-full shrink-0 cursor-pointer overflow-hidden rounded-xl border border-grey-700 bg-white transition-all",p),children:[a.jsxs(s.Box,{style:{background:"linear-gradient(0deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"},className:`relative flex ${g} w-full flex-col items-center justify-center overflow-hidden`,children:[a.jsx(Oe,{src:e,alt:`${t} ${n} ${o} 이미지`,className:"h-full w-full object-cover"}),i&&a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.titleTag.background,color:B.adProducts.titleTag.color},children:i}),d&&a.jsxs(a.Fragment,{children:[a.jsx(s.Box,{className:"absolute left-4 top-4 z-10 w-36 whitespace-pre-wrap break-keep text-[18px] font-semibold text-white md:left-5 md:top-7",children:d}),a.jsx(s.Box,{className:"absolute inset-0 opacity-50",style:{background:"linear-gradient(270deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"}})]})]}),a.jsxs(s.FlexBox.Col,{className:"w-full justify-between gap-2 p-4 text-grey-800 md:p-5 lg:p-6",children:[a.jsxs("h4",{className:"flex flex-col gap-2",title:`${t} ${n} ${o}`,children:[a.jsx("p",{className:"text-sm",children:t}),a.jsx("p",{className:"truncate3 break-keep text-base font-semibold",children:`${n} ${o}`})]}),r&&a.jsx("ul",{className:"flex w-full max-w-full flex-wrap gap-1",children:r.map((v,h)=>{var u;const l=Object.values(B.campCategoryColors).find(c=>c.tags.some(m=>m.value===v));return l&&a.jsx("li",{children:a.jsx(s.Tag,{size:"sm",style:{background:l.background,color:l.color},children:(u=l.tags.find(c=>c.value===v))==null?void 0:u.text})},h)})})]})]}),ti=({changedAspect:r,className:e,titleTagType:t})=>a.jsxs(_.Skeleton,{type:"background",className:s.cn("relative h-full w-full shrink-0 cursor-pointer overflow-hidden rounded-xl bg-grey-50 transition-all",e),children:[t&&a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.titleTag.background,color:B.adProducts.titleTag.color},className:s.cn("h-7 w-28 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),a.jsx(s.Box,{style:{background:"linear-gradient(270deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"},className:`relative flex ${r} w-full`,children:a.jsx(_.Skeleton,{className:"h-full w-full",type:"background"})}),a.jsxs(s.FlexBox.Col,{className:"w-full justify-between gap-2 p-4",children:[a.jsxs(s.FlexBox.Col,{className:"relative w-full gap-2",children:[a.jsx(_.Skeleton,{className:"h-5 w-1/2",type:"text"}),a.jsx(_.Skeleton,{className:"h-12 w-full",type:"text"})]}),a.jsxs(s.FlexBox.Row,{className:"w-full gap-1",children:[a.jsx(_.Skeleton,{className:"h-5 w-1/4",type:"text"}),a.jsx(_.Skeleton,{className:"h-5 w-2/5",type:"text"}),a.jsx(_.Skeleton,{className:"h-5 w-1/4",type:"text"})]})]})]}),ri=({name:r,control:e,heading:t,label:n,description:o,required:i=!1,text:d,type:g,errorMsg:f=!1,onChange:p,rules:v})=>{const{field:h,fieldState:{error:l}}=s.useController({name:r,control:e,rules:v}),u=n||t||o;return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[u&&a.jsx(s.FormLabel,{required:i,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsxs("div",{className:"flex flex-row items-center gap-2",children:[a.jsx(s.Checkbox,{...h,id:r,checked:g==="boolean"?h.value:h.value===d,onCheckedChange:c=>{h.onChange(g==="boolean"?c:c?d:""),p&&p()}}),a.jsx(s.Label,{className:"cursor-pointer",htmlFor:r,children:d})]})}),f&&a.jsx(s.FormMessage,{children:l==null?void 0:l.message})]})})},ni=({name:r,control:e,heading:t,label:n,description:o,options:i,required:d=!1,additional:g,type:f="checkbox",onChange:p,rules:v})=>{const{field:h,fieldState:{error:l}}=s.useController({name:r,control:e,rules:v}),u=(b,j)=>{var T;h.onChange(j?[...h.value||[],b]:(T=h.value)==null?void 0:T.filter(C=>C!==b)),p==null||p()},c=()=>i.map(b=>{var j;return a.jsxs(s.FormItem,{className:"flex flex-row items-center",children:[a.jsx(s.FormControl,{children:a.jsx(s.Checkbox,{id:b.value+r,checked:(j=h.value)==null?void 0:j.includes(b.value),onCheckedChange:T=>u(b.value,T)})}),a.jsx(s.Label,{htmlFor:b.value+r,className:"cursor-pointer",children:b.text})]},b.value)}),m=()=>i.map(({value:b,text:j})=>{var C;const T=(C=h.value)==null?void 0:C.includes(b);return a.jsx(s.FormItem,{className:"flex flex-row items-start gap-2",children:a.jsx(s.FormControl,{children:a.jsx(s.Button,{shape:"rounded",size:"xs",theme:T?"primary":"secondary",variant:T?"solid":"outline",onClick:w=>{w.preventDefault(),u(b,!T)},children:j})})},b)});return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[(n||t||o)&&a.jsx(s.FormLabel,{required:d,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:f==="checkbox"?a.jsx("div",{className:"space-y-4",children:c()}):a.jsx("ul",{className:"flex w-full flex-wrap gap-2 text-sm font-normal",children:m()})}),g,a.jsx(s.FormMessage,{children:l==null?void 0:l.message})]})})},oi=({name:r,control:e,label:t,description:n,required:o=!1,children:i,className:d,errorMsg:g=!0})=>a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[t&&a.jsxs(s.FormLabel,{required:o,children:[a.jsx(s.Text,{children:t}),n&&a.jsx(s.FormDescription,{children:n})]}),a.jsx(s.FormControl,{children:a.jsx("div",{className:d,children:i})}),g&&a.jsx(s.FormMessage,{})]})}),ai=({name:r,control:e,heading:t,label:n,description:o,options:i,required:d=!1,className:g,placeholder:f="선택해주세요",onChange:p,rules:v,size:h,column:l,absoluteMsg:u=!1})=>{const{field:c,fieldState:{error:m}}=s.useController({name:r,control:e,rules:v}),b=j=>{j.length>0&&(c.onChange(j[0].value),p&&p())};return a.jsx(s.FormField,{control:e,name:r,render:()=>{var j;return a.jsxs(s.FormItem,{className:"relative",children:[(n||t||o)&&a.jsx(s.FormLabel,{required:d,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsx(s.Dropdown,{size:h,column:l,items:i,defaultValue:c.value?[{value:c.value,label:c.value,containerKey:r,containerType:"radio"}]:[],onChange:b,className:s.cn("w-full",g),multiple:!1,children:a.jsx(s.Button,{variant:"outline",theme:"secondary",className:s.cn(!c.value&&"data-[state=closed]:text-muted data-[state=open]:text-grey-800","min-w-fit justify-between text-medium14 data-[state=open]:border-grey-800",m&&"border-red-500 data-[state=closed]:text-grey-800"),icRight:a.jsx(s.Icon.ArrowDown,{size:"16",className:s.cn("fill-grey-300 group-data-[state=open]:fill-grey-800",m&&"fill-grey-800")}),children:c.value?((j=i.flatMap(T=>T.items).find(T=>T.value===c.value))==null?void 0:j.label)||c.value:f})})}),a.jsx(s.FormMessage,{absolute:u,children:m==null?void 0:m.message})]})}})},ii=({name:r,control:e,heading:t,label:n,description:o,options:i,required:d=!1,className:g,additional:f,direction:p="vertical",onChange:v,rules:h})=>{const{field:l,fieldState:{error:u}}=s.useController({name:r,control:e,rules:h}),c=n||t||o;return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{className:"relative",children:[c&&a.jsx(s.FormLabel,{required:d,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsxs("div",{className:s.cn("flex max-w-screen-sm items-center gap-2",g),children:[a.jsx(s.RadioGroup,{onValueChange:m=>{l.onChange(m),v&&v()},value:l.value,className:s.cn(p==="vertical"&&"flex flex-col gap-4",p==="horizontal"&&"flex flex-wrap gap-8",p==="grid"&&"grid w-full grid-cols-2 gap-x-8 gap-y-4"),children:i.map(m=>a.jsxs(s.FormItem,{className:"flex flex-row items-center",children:[a.jsx(s.FormControl,{children:a.jsx(s.RadioGroupItem,{value:m.value,id:m.text,checked:m.value===l.value})}),a.jsx(s.Label,{className:"cursor-pointer font-normal",htmlFor:m.text,children:m.text})]},m.key))}),f&&a.jsx(a.Fragment,{children:f})]})}),a.jsx(s.FormMessage,{children:u==null?void 0:u.message})]})})},si=({required:r,heading:e,name:t,label:n,description:o,placeholder:i,control:d,tagDirection:g="flex-col",tagSize:f="md",rules:p})=>{const{setValue:v,getValues:h}=s.useFormContext(),{field:l,fieldState:{error:u}}=s.useController({name:t,control:d,defaultValue:[],rules:p}),[c,m]=I.useState(""),b=()=>{if(c.trim()!==""){const w=h(t)||[];v(t,[...w,c.trim()]),m("")}},j=w=>{w.key==="Enter"&&!w.nativeEvent.isComposing&&(w.preventDefault(),b())},T=w=>{const E=h(t)||[];E.splice(w,1),v(t,E)},C=n||e||o;return a.jsx(s.FormField,{control:d,name:t,render:()=>a.jsxs(s.FormItem,{children:[C&&a.jsx(s.FormLabel,{required:r,heading:e,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsxs("div",{className:"flex flex-col gap-2",children:[l.value&&l.value.length>0&&a.jsx("ul",{className:s.cn("flex flex-col flex-wrap gap-1",g),children:l.value.map((w,E)=>a.jsx("li",{children:a.jsx(s.Tag,{size:f,variant:"solid-secondary-100",onClick:()=>T(E),icRight:a.jsx(s.Icon.Cancel,{size:"10",className:"text-grey-600"}),children:a.jsx("span",{children:w})})},E))}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(s.Input,{value:c,onChange:w=>m(w.target.value),onKeyDown:j,className:"max-w-screen-sm",placeholder:i,error:!!u}),a.jsx(s.Button,{size:"md",variant:"outline",disabled:!c.trim(),theme:"secondary",onClick:b,className:"whitespace-nowrap",children:"추가"})]})]})}),a.jsx(s.FormMessage,{children:u==null?void 0:u.message})]})})},li=({name:r,control:e,heading:t,label:n,description:o,placeholder:i,required:d=!1,isTextArea:g=!1,unitLabel:f,unitLabelBefore:p,inputType:v="text",className:h,onChange:l,onBlur:u,icon:c,disabled:m,errorMsg:b=!0,rules:j,limit:T,inputClassName:C,absoluteMsg:w=!1})=>{const{field:E,formState:{errors:R}}=s.useController({name:r,control:e,rules:{...j,...T?{maxLength:{value:T,message:`최대 ${T}자까지 입력 가능합니다.`}}:{}}}),G=H=>{const q=v==="number"?Number(H.target.value):H.target.value;E.onChange(q),l==null||l(q)},ee=n||t||o;return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[ee&&a.jsx(s.FormLabel,{required:d,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsxs("div",{className:s.cn("flex w-full max-w-screen-sm items-center gap-2",h),children:[p&&a.jsx("div",{className:"whitespace-nowrap",children:p}),g?a.jsx(s.Textarea,{...E,placeholder:i,disabled:m,error:!!R[r],onChange:G,onBlur:u,className:s.cn("h-32 resize-none",C)}):a.jsx(s.Input,{...E,type:v,placeholder:i,disabled:m,error:!!R[r],onChange:G,onBlur:u,icon:c,iconPosition:"right",className:C}),f&&a.jsx("div",{className:"whitespace-nowrap",children:f})]})}),a.jsxs(s.FlexBox.Row,{className:"flex w-full items-center gap-1",children:[b&&a.jsx(s.FormMessage,{absolute:w}),T&&a.jsxs("div",{className:s.cn("h-5 grow text-end text-sm text-grey-600",{"text-red-600":E.value.length>T}),children:[E.value.length,"/",T,"자"]})]})]})})},ci=({name:r,control:e,heading:t,label:n,description:o,placeholder:i="",buttonLabel:d="보기",required:g,onClick:f,disabled:p=!1,children:v,urlTitle:h,rules:l})=>{const{trigger:u,setValue:c}=s.useFormContext(),{field:m,fieldState:{error:b}}=s.useController({name:r,control:e,rules:{required:g?"URL을 입력해주세요.":!1,pattern:{value:/^(https?:\/\/)?([\w-]+\.)+[\w-]{2,4}(\/.*)?$/,message:"올바른 URL을 입력해주세요."},...l}}),j=w=>{m.onChange(w),c(r,w.target.value)},T=w=>{if(w.preventDefault(),f)f(w);else if(m.value&&!b){const E=m.value.startsWith("http")?m.value:`https://${m.value}`;window.open(E,"_blank")}},C=n||t||o;return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[C&&a.jsx(s.FormLabel,{required:g,heading:t,label:n,description:o}),v,a.jsxs("div",{className:"flex items-center gap-2",children:[h&&a.jsx(s.Callout,{size:"sm",className:"flex w-32 justify-center truncate shadow-none",children:h}),a.jsx(s.FormControl,{children:a.jsx(s.Input,{...m,onBlur:()=>u(r),onChange:j,placeholder:i,className:"w-auto grow",error:!!b})}),a.jsx(s.Button,{variant:"outline",theme:"secondary",size:"md",disabled:p||!!b||!m.value,onClick:T,children:d})]}),a.jsx(s.FormMessage,{children:b==null?void 0:b.message})]})})},di=()=>{const[r,e]=I.useState([]);return I.useEffect(()=>{const p=(h,l)=>{e(l?u=>u.includes(h.id)?u:[...u,h.id]:u=>u.filter(c=>c!==h.id))},v=P.portalManager.subscribe(p);return e(P.portalManager.getOpenPortals()),()=>{v()}},[]),{modal:p=>{const{onClose:v=()=>{}}=p;return P.portalManager.showPortal("modal",{...p,onClose:v})},toast:p=>{let v;return typeof p=="string"?v={description:p}:v=p,P.portalManager.showPortal("toast",v)},alert:p=>{let v;return typeof p=="string"?v={description:p,onClose:()=>{}}:v={...p,onClose:p.onClose||(()=>{})},P.portalManager.showPortal("alert",v)},dialog:p=>{const{onClose:v=()=>{}}=p;return P.portalManager.showPortal("dialog",{...p,onClose:v})},custom:p=>{const{onClose:v=()=>{}}=p;return console.log(p),P.portalManager.showPortal("custom",{...p,onClose:v})},getIsOpen:p=>P.portalManager.getIsPortalOpen(p),closePortal:p=>{P.portalManager.closePortal(p)},openPortals:r}};var[Ve,$i]=s.createContextScope("Tooltip",[s.createPopperScope]),Be=s.createPopperScope(),pn="TooltipProvider",ui=700,et="tooltip.open",[mi,pt]=Ve(pn),fn=r=>{const{__scopeTooltip:e,delayDuration:t=ui,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=r,[d,g]=x.useState(!0),f=x.useRef(!1),p=x.useRef(0);return x.useEffect(()=>{const v=p.current;return()=>window.clearTimeout(v)},[]),a.jsx(mi,{scope:e,isOpenDelayed:d,delayDuration:t,onOpen:x.useCallback(()=>{window.clearTimeout(p.current),g(!1)},[]),onClose:x.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>g(!0),n)},[n]),isPointerInTransitRef:f,onPointerInTransitChange:x.useCallback(v=>{f.current=v},[]),disableHoverableContent:o,children:i})};fn.displayName=pn;var Le="Tooltip",[pi,Ue]=Ve(Le),gn=r=>{const{__scopeTooltip:e,children:t,open:n,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:d,delayDuration:g}=r,f=pt(Le,r.__scopeTooltip),p=Be(e),[v,h]=x.useState(null),l=s.useId(),u=x.useRef(0),c=d??f.disableHoverableContent,m=g??f.delayDuration,b=x.useRef(!1),[j=!1,T]=s.useControllableState({prop:n,defaultProp:o,onChange:G=>{G?(f.onOpen(),document.dispatchEvent(new CustomEvent(et))):f.onClose(),i==null||i(G)}}),C=x.useMemo(()=>j?b.current?"delayed-open":"instant-open":"closed",[j]),w=x.useCallback(()=>{window.clearTimeout(u.current),u.current=0,b.current=!1,T(!0)},[T]),E=x.useCallback(()=>{window.clearTimeout(u.current),u.current=0,T(!1)},[T]),R=x.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>{b.current=!0,T(!0),u.current=0},m)},[m,T]);return x.useEffect(()=>()=>{u.current&&(window.clearTimeout(u.current),u.current=0)},[]),a.jsx(s.Root2,{...p,children:a.jsx(pi,{scope:e,contentId:l,open:j,stateAttribute:C,trigger:v,onTriggerChange:h,onTriggerEnter:x.useCallback(()=>{f.isOpenDelayed?R():w()},[f.isOpenDelayed,R,w]),onTriggerLeave:x.useCallback(()=>{c?E():(window.clearTimeout(u.current),u.current=0)},[E,c]),onOpen:w,onClose:E,disableHoverableContent:c,children:t})})};gn.displayName=Le;var tt="TooltipTrigger",bn=x.forwardRef((r,e)=>{const{__scopeTooltip:t,...n}=r,o=Ue(tt,t),i=pt(tt,t),d=Be(t),g=x.useRef(null),f=s.useComposedRefs(e,g,o.onTriggerChange),p=x.useRef(!1),v=x.useRef(!1),h=x.useCallback(()=>p.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),a.jsx(s.Anchor,{asChild:!0,...d,children:a.jsx(s.Primitive.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:f,onPointerMove:s.composeEventHandlers(r.onPointerMove,l=>{l.pointerType!=="touch"&&!v.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:s.composeEventHandlers(r.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:s.composeEventHandlers(r.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:s.composeEventHandlers(r.onFocus,()=>{p.current||o.onOpen()}),onBlur:s.composeEventHandlers(r.onBlur,o.onClose),onClick:s.composeEventHandlers(r.onClick,o.onClose)})})});bn.displayName=tt;var fi="TooltipPortal",[Gi,gi]=Ve(fi,{forceMount:void 0}),ie="TooltipContent",vn=x.forwardRef((r,e)=>{const t=gi(ie,r.__scopeTooltip),{forceMount:n=t.forceMount,side:o="top",...i}=r,d=Ue(ie,r.__scopeTooltip);return a.jsx(s.Presence,{present:n||d.open,children:d.disableHoverableContent?a.jsx(hn,{side:o,...i,ref:e}):a.jsx(bi,{side:o,...i,ref:e})})}),bi=x.forwardRef((r,e)=>{const t=Ue(ie,r.__scopeTooltip),n=pt(ie,r.__scopeTooltip),o=x.useRef(null),i=s.useComposedRefs(e,o),[d,g]=x.useState(null),{trigger:f,onClose:p}=t,v=o.current,{onPointerInTransitChange:h}=n,l=x.useCallback(()=>{g(null),h(!1)},[h]),u=x.useCallback((c,m)=>{const b=c.currentTarget,j={x:c.clientX,y:c.clientY},T=xi(j,b.getBoundingClientRect()),C=yi(j,T),w=Ci(m.getBoundingClientRect()),E=ji([...C,...w]);g(E),h(!0)},[h]);return x.useEffect(()=>()=>l(),[l]),x.useEffect(()=>{if(f&&v){const c=b=>u(b,v),m=b=>u(b,f);return f.addEventListener("pointerleave",c),v.addEventListener("pointerleave",m),()=>{f.removeEventListener("pointerleave",c),v.removeEventListener("pointerleave",m)}}},[f,v,u,l]),x.useEffect(()=>{if(d){const c=m=>{const b=m.target,j={x:m.clientX,y:m.clientY},T=(f==null?void 0:f.contains(b))||(v==null?void 0:v.contains(b)),C=!Ti(j,d);T?l():C&&(l(),p())};return document.addEventListener("pointermove",c),()=>document.removeEventListener("pointermove",c)}},[f,v,d,p,l]),a.jsx(hn,{...r,ref:i})}),[vi,hi]=Ve(Le,{isInside:!1}),hn=x.forwardRef((r,e)=>{const{__scopeTooltip:t,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:d,...g}=r,f=Ue(ie,t),p=Be(t),{onClose:v}=f;return x.useEffect(()=>(document.addEventListener(et,v),()=>document.removeEventListener(et,v)),[v]),x.useEffect(()=>{if(f.trigger){const h=l=>{const u=l.target;u!=null&&u.contains(f.trigger)&&v()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[f.trigger,v]),a.jsx(s.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:d,onFocusOutside:h=>h.preventDefault(),onDismiss:v,children:a.jsxs(s.Content,{"data-state":f.stateAttribute,...p,...g,ref:e,style:{...g.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(s.Slottable,{children:n}),a.jsx(vi,{scope:t,isInside:!0,children:a.jsx(P.Root,{id:f.contentId,role:"tooltip",children:o||n})})]})})});vn.displayName=ie;var wn="TooltipArrow",wi=x.forwardRef((r,e)=>{const{__scopeTooltip:t,...n}=r,o=Be(t);return hi(wn,t).isInside?null:a.jsx(s.Arrow,{...o,...n,ref:e})});wi.displayName=wn;function xi(r,e){const t=Math.abs(e.top-r.y),n=Math.abs(e.bottom-r.y),o=Math.abs(e.right-r.x),i=Math.abs(e.left-r.x);switch(Math.min(t,n,o,i)){case i:return"left";case o:return"right";case t:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function yi(r,e,t=5){const n=[];switch(e){case"top":n.push({x:r.x-t,y:r.y+t},{x:r.x+t,y:r.y+t});break;case"bottom":n.push({x:r.x-t,y:r.y-t},{x:r.x+t,y:r.y-t});break;case"left":n.push({x:r.x+t,y:r.y-t},{x:r.x+t,y:r.y+t});break;case"right":n.push({x:r.x-t,y:r.y-t},{x:r.x-t,y:r.y+t});break}return n}function Ci(r){const{top:e,right:t,bottom:n,left:o}=r;return[{x:o,y:e},{x:t,y:e},{x:t,y:n},{x:o,y:n}]}function Ti(r,e){const{x:t,y:n}=r;let o=!1;for(let i=0,d=e.length-1;i<e.length;d=i++){const g=e[i].x,f=e[i].y,p=e[d].x,v=e[d].y;f>n!=v>n&&t<(p-g)*(n-f)/(v-f)+g&&(o=!o)}return o}function ji(r){const e=r.slice();return e.sort((t,n)=>t.x<n.x?-1:t.x>n.x?1:t.y<n.y?-1:t.y>n.y?1:0),Si(e)}function Si(r){if(r.length<=1)return r.slice();const e=[];for(let n=0;n<r.length;n++){const o=r[n];for(;e.length>=2;){const i=e[e.length-1],d=e[e.length-2];if((i.x-d.x)*(o.y-d.y)>=(i.y-d.y)*(o.x-d.x))e.pop();else break}e.push(o)}e.pop();const t=[];for(let n=r.length-1;n>=0;n--){const o=r[n];for(;t.length>=2;){const i=t[t.length-1],d=t[t.length-2];if((i.x-d.x)*(o.y-d.y)>=(i.y-d.y)*(o.x-d.x))t.pop();else break}t.push(o)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Ni=fn,Pi=gn,ki=bn,xn=vn;const Vt={primary:"bg-main-600 text-white",secondary:"bg-grey-800 text-white",white:"bg-grey-50 text-grey-800"},Ei={sm:"p-2 text-[13px] rounded",md:"p-2 text-sm font-normal rounded"},Oi=Ni,Ai=Pi,Fi=ki,Ii=(r,e)=>{const t=e==="primary"?fe.colors.main[600]:e==="secondary"?fe.colors.grey[800]:fe.colors.grey[50],n=e==="white"?fe.colors.grey[200]:t;return{...{width:"12px",height:"12px",backgroundColor:t,border:"1px solid",borderColor:n,opacity:e==="white"?1:.9,transform:"rotate(45deg)",borderRadius:"2px",zIndex:20},...{"top-left":{left:"1.5rem",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-center":{left:"50%",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-right":{right:"1.5rem",top:"100%",transform:"translateX(50%) translateY(-60%) rotate(45deg)"},"bottom-left":{left:"1.5rem",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-center":{left:"50%",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-right":{right:"1.5rem",bottom:"100%",transform:"translateX(50%) translateY(60%) rotate(45deg)"},right:{right:"100%",top:"50%",transform:"translateX(60%) translateY(-50%) rotate(45deg)"},left:{left:"100%",top:"50%",transform:"translateX(-60%) translateY(-50%) rotate(45deg)"}}[r]}},yn=x.forwardRef(({className:r,variant:e="primary",size:t="pc",position:n="top-center",sideOffset:o=8,icLeft:i,icRight:d,children:g,bubbleTip:f=!0,...p},v)=>{const h=Ii(n,e),l=n.startsWith("top"),u=n==="right"||n==="left"?n:l?"top":"bottom",c=n==="right"||n==="left"?"center":n.includes("left")?"start":n.includes("right")?"end":"center";return a.jsx(xn,{ref:v,avoidCollisions:!1,sideOffset:f?o:4,side:u,align:c,style:{zIndex:50},...p,children:a.jsxs("div",{className:s.cn("relative z-50 rounded",f&&"m-1",e==="white"&&"border-border border",Vt[e],r),children:[f&&a.jsx("div",{style:h,className:"absolute z-20"}),a.jsx("div",{className:"absolute inset-0 z-30 bg-white"}),a.jsxs("div",{className:s.cn("relative z-40 flex max-w-sm items-center font-normal",e!=="white"&&"bg-opacity-90",Vt[e],Ei[t]),children:[i&&a.jsx("span",{className:"mr-1",children:i}),a.jsx("span",{className:"whitespace-pre-wrap break-keep",children:g}),d&&a.jsx("span",{className:"ml-1",children:d})]})]})})});yn.displayName=xn.displayName;const ft=({label:r,variant:e="secondary",size:t="md",children:n,icLeft:o,icRight:i,position:d="top-center",bubbleTip:g=!0,forceMount:f,isMobile:p=ge})=>{const[v,h]=x.useState(!1),l=x.useRef(null),u=typeof p=="number"?p:3e3,c=()=>{v?h(!1):(h(!0),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>h(!1),u))};return x.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]),a.jsx(Oi,{delayDuration:200,children:a.jsxs(Ai,{delayDuration:200,children:[a.jsx(Fi,{asChild:!0,"data-state":v?"delayed-open":"closed",onMouseLeave:ge?void 0:()=>h(!1),onMouseEnter:ge?void 0:()=>h(!0),onClick:ge?c:void 0,children:n}),a.jsx(yn,{variant:e,size:t,icLeft:o,icRight:i,position:d,forceMount:f||v||void 0,bubbleTip:g,children:r})]})})};function Di(r,e=[]){let t=[];function n(i,d){const g=x.createContext(d),f=t.length;t=[...t,d];function p(h){const{scope:l,children:u,...c}=h,m=(l==null?void 0:l[r][f])||g,b=x.useMemo(()=>c,Object.values(c));return a.jsx(m.Provider,{value:b,children:u})}function v(h,l){const u=(l==null?void 0:l[r][f])||g,c=x.useContext(u);if(c)return c;if(d!==void 0)return d;throw new Error(`\`${h}\` must be used within \`${i}\``)}return p.displayName=i+"Provider",[p,v]}const o=()=>{const i=t.map(d=>x.createContext(d));return function(g){const f=(g==null?void 0:g[r])||i;return x.useMemo(()=>({[`__scope${r}`]:{...g,[r]:f}}),[g,f])}};return o.scopeName=r,[n,Mi(o,...e)]}function Mi(...r){const e=r[0];if(r.length===1)return e;const t=()=>{const n=r.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const d=n.reduce((g,{useScope:f,scopeName:p})=>{const h=f(i)[`__scope${p}`];return{...g,...h}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:d}),[d])}};return t.scopeName=e.scopeName,t}var _i="Toggle",Cn=x.forwardRef((r,e)=>{const{pressed:t,defaultPressed:n=!1,onPressedChange:o,...i}=r,[d=!1,g]=s.useControllableState({prop:t,onChange:o,defaultProp:n});return a.jsx(s.Primitive.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":r.disabled?"":void 0,...i,ref:e,onClick:s.composeEventHandlers(r.onClick,()=>{r.disabled||g(!d)})})});Cn.displayName=_i;var le="ToggleGroup",[Tn,Hi]=Di(le,[s.createRovingFocusGroupScope]),jn=s.createRovingFocusGroupScope(),gt=I.forwardRef((r,e)=>{const{type:t,...n}=r;if(t==="single"){const o=n;return a.jsx(Ri,{...o,ref:e})}if(t==="multiple"){const o=n;return a.jsx(Vi,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${le}\``)});gt.displayName=le;var[Sn,Nn]=Tn(le),Ri=I.forwardRef((r,e)=>{const{value:t,defaultValue:n,onValueChange:o=()=>{},...i}=r,[d,g]=s.useControllableState({prop:t,defaultProp:n,onChange:o});return a.jsx(Sn,{scope:r.__scopeToggleGroup,type:"single",value:d?[d]:[],onItemActivate:g,onItemDeactivate:I.useCallback(()=>g(""),[g]),children:a.jsx(Pn,{...i,ref:e})})}),Vi=I.forwardRef((r,e)=>{const{value:t,defaultValue:n,onValueChange:o=()=>{},...i}=r,[d=[],g]=s.useControllableState({prop:t,defaultProp:n,onChange:o}),f=I.useCallback(v=>g((h=[])=>[...h,v]),[g]),p=I.useCallback(v=>g((h=[])=>h.filter(l=>l!==v)),[g]);return a.jsx(Sn,{scope:r.__scopeToggleGroup,type:"multiple",value:d,onItemActivate:f,onItemDeactivate:p,children:a.jsx(Pn,{...i,ref:e})})});gt.displayName=le;var[Bi,Li]=Tn(le),Pn=I.forwardRef((r,e)=>{const{__scopeToggleGroup:t,disabled:n=!1,rovingFocus:o=!0,orientation:i,dir:d,loop:g=!0,...f}=r,p=jn(t),v=s.useDirection(d),h={role:"group",dir:v,...f};return a.jsx(Bi,{scope:t,rovingFocus:o,disabled:n,children:o?a.jsx(s.Root$1,{asChild:!0,...p,orientation:i,dir:v,loop:g,children:a.jsx(s.Primitive.div,{...h,ref:e})}):a.jsx(s.Primitive.div,{...h,ref:e})})}),De="ToggleGroupItem",kn=I.forwardRef((r,e)=>{const t=Nn(De,r.__scopeToggleGroup),n=Li(De,r.__scopeToggleGroup),o=jn(r.__scopeToggleGroup),i=t.value.includes(r.value),d=n.disabled||r.disabled,g={...r,pressed:i,disabled:d},f=I.useRef(null);return n.rovingFocus?a.jsx(s.Item,{asChild:!0,...o,focusable:!d,active:i,ref:f,children:a.jsx(Bt,{...g,ref:e})}):a.jsx(Bt,{...g,ref:e})});kn.displayName=De;var Bt=I.forwardRef((r,e)=>{const{__scopeToggleGroup:t,value:n,...o}=r,i=Nn(De,t),d={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},g=i.type==="single"?d:void 0;return a.jsx(Cn,{...g,...o,ref:e,onPressedChange:f=>{f?i.onItemActivate(n):i.onItemDeactivate(n)}})}),En=gt,On=kn;const Ui=s.cva("inline-flex items-center justify-center gap-1 whitespace-nowrap text-sm font-normal ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none",{variants:{variant:{solid:"disabled:bg-muted disabled:text-muted-foreground disabled:border-muted",outline:"disabled:bg-white disabled:text-muted disabled:border-border"},theme:{primary:"bg-white border border-main-200 text-primary hover:bg-main-100",secondary:"bg-white border border-grey-200 text-secondary hover:bg-grey-100"},size:{xs:"h-8 py-1 px-2 text-sm",sm:"h-9 py-2 px-3 text-sm",md:"h-11 px-3 py-3 text-sm",lg:"h-[52px] px-12 py-[14px] text-base",icon:"h-auto w-auto"},shape:{square:"rounded-lg",rounded:"rounded-full"},checked:{true:"",false:""}},compoundVariants:[{theme:"primary",checked:!0,className:"bg-main-600 border-main-600 text-white hover:bg-main-700 hover:border-main-700"},{theme:"secondary",checked:!0,className:"bg-grey-800 border-grey-800 text-white hover:bg-grey-900 hover:border-grey-900"}],defaultVariants:{theme:"primary",size:"md",shape:"square",checked:!1}}),bt=x.createContext({theme:"primary",size:"md",shape:"square"});bt.displayName="ToggleGroupContext";const vt=x.forwardRef(({className:r,variant:e,theme:t,size:n,shape:o,children:i,...d},g)=>a.jsx(bt.Provider,{value:{theme:t,size:n,shape:o},children:a.jsx(En,{ref:g,className:s.cn("flex items-center justify-center gap-1",r),...d,children:i})}));vt.displayName=En.displayName;const ve=x.forwardRef(({className:r,checked:e=!1,children:t,...n},o)=>{const i=x.useContext(bt);return a.jsx(On,{ref:o,className:s.cn(Ui({theme:n.theme||i.theme||"primary",size:n.size||i.size||"md",shape:n.shape||i.shape||"square",variant:n.variant||"outline",checked:e}),r),...n,children:t})});ve.displayName=On.displayName;const An=({options:r,variant:e="outline",theme:t="primary",size:n="md",shape:o="square",value:i,onChange:d,nullable:g=!0,className:f})=>a.jsx(vt,{type:"single",value:i,onValueChange:p=>{!g&&!p||d(p)},theme:t,size:n,shape:o,className:f,children:r.map(p=>p.tooltip?a.jsx(ft,{label:p.tooltip.label,variant:p.tooltip.variant,size:p.tooltip.size,icLeft:p.tooltip.icLeft,icRight:p.tooltip.icRight,position:p.tooltip.position,bubbleTip:p.tooltip.bubbleTip,children:a.jsx(ve,{value:p.value,checked:i===p.value,disabled:p.disabled,variant:e,children:p.label})},p.value):a.jsx(ve,{value:p.value,checked:i===p.value,disabled:p.disabled,variant:e,children:p.label},p.value))}),Fn=({options:r,variant:e="outline",theme:t="primary",size:n="md",shape:o="square",value:i,onChange:d,className:g})=>a.jsx(vt,{type:"multiple",value:i,onValueChange:d,theme:t,size:n,shape:o,className:g,children:r.map(f=>f.tooltip?a.jsx(ft,{label:f.tooltip.label,variant:f.tooltip.variant,size:f.tooltip.size,icLeft:f.tooltip.icLeft,icRight:f.tooltip.icRight,position:f.tooltip.position,bubbleTip:f.tooltip.bubbleTip,children:a.jsx(ve,{value:f.value,checked:(i||[]).includes(f.value),disabled:f.disabled,variant:e,children:f.label})},f.value):a.jsx(ve,{value:f.value,checked:(i||[]).includes(f.value),disabled:f.disabled,variant:e,children:f.label},f.value))}),Wi={Single:An,Multiple:Fn};exports.AlertDialog=P.AlertDialog;exports.AlertDialogAction=P.AlertDialogAction;exports.AlertDialogCancel=P.AlertDialogCancel;exports.AlertDialogContent=P.AlertDialogContent;exports.AlertDialogDescription=P.AlertDialogDescription;exports.AlertDialogFooter=P.AlertDialogFooter;exports.AlertDialogHeader=P.AlertDialogHeader;exports.AlertDialogOverlay=P.AlertDialogOverlay;exports.AlertDialogPortal=P.AlertDialogPortal;exports.AlertDialogTitle=P.AlertDialogTitle;exports.AlertDialogTrigger=P.AlertDialogTrigger;exports.AlertForm=P.AlertForm;exports.Dialog=P.Dialog;exports.DialogClose=P.DialogClose;exports.DialogContent=P.DialogContent;exports.DialogDescription=P.DialogDescription;exports.DialogFooter=P.DialogFooter;exports.DialogForm=P.DialogForm;exports.DialogHeader=P.DialogHeader;exports.DialogOverlay=P.DialogOverlay;exports.DialogPortal=P.DialogPortal;exports.DialogTitle=P.DialogTitle;exports.DialogTrigger=P.DialogTrigger;exports.ModalForm=P.ModalForm;exports.PortalContainer=P.PortalContainer;exports.Toast=P.Toast;exports.ToastAction=P.ToastAction;exports.ToastClose=P.ToastClose;exports.ToastDescription=P.ToastDescription;exports.ToastForm=P.ToastForm;exports.ToastProvider=P.ToastProvider;exports.ToastTitle=P.ToastTitle;exports.ToastViewport=P.ToastViewport;exports.toastPositionVariants=P.toastPositionVariants;exports.toastVariants=P.toastVariants;exports.Accordion=no;exports.CheckboxBooleanFormField=ri;exports.CheckboxGroupFormField=ni;exports.ContentsCard=ur;exports.DefaultFormField=oi;exports.DropdownRadioFormField=ai;exports.EventCard=jo;exports.LoadingCard=mr;exports.MainBannerImage=Za;exports.MainBannerLoading=mn;exports.Multiple=Fn;exports.PremiumCard=Ka;exports.RadioFormField=ii;exports.Single=An;exports.StringArrayFormField=si;exports.StringInputField=li;exports.TitleTagCard=ei;exports.ToggleButtonGroup=Wi;exports.Tooltip=ft;exports.UrlFormField=ci;exports.usePortal=di;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),fe=require("./index-DKCqkplO.cjs"),s=require("./index-_qlrPVFv.cjs"),I=require("react"),B=require("./index-z9hRvvSX.cjs"),_=require("./index-CQvLmHc8.cjs"),P=require("./portal-container-Dt-YsKQi.cjs");function Rn(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const x=Rn(I);var rt="Collapsible",[Vn,Lt]=s.createContextScope(rt),[Bn,nt]=Vn(rt),Ut=x.forwardRef((r,e)=>{const{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:i,onOpenChange:d,...g}=r,[f=!1,p]=s.useControllableState({prop:n,defaultProp:o,onChange:d});return a.jsx(Bn,{scope:t,disabled:i,contentId:s.useId(),open:f,onOpenToggle:x.useCallback(()=>p(v=>!v),[p]),children:a.jsx(s.Primitive.div,{"data-state":at(f),"data-disabled":i?"":void 0,...g,ref:e})})});Ut.displayName=rt;var Wt="CollapsibleTrigger",zt=x.forwardRef((r,e)=>{const{__scopeCollapsible:t,...n}=r,o=nt(Wt,t);return a.jsx(s.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":at(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:e,onClick:s.composeEventHandlers(r.onClick,o.onOpenToggle)})});zt.displayName=Wt;var ot="CollapsibleContent",$t=x.forwardRef((r,e)=>{const{forceMount:t,...n}=r,o=nt(ot,r.__scopeCollapsible);return a.jsx(s.Presence,{present:t||o.open,children:({present:i})=>a.jsx(Ln,{...n,ref:e,present:i})})});$t.displayName=ot;var Ln=x.forwardRef((r,e)=>{const{__scopeCollapsible:t,present:n,children:o,...i}=r,d=nt(ot,t),[g,f]=x.useState(n),p=x.useRef(null),v=s.useComposedRefs(e,p),h=x.useRef(0),l=h.current,u=x.useRef(0),c=u.current,m=d.open||g,b=x.useRef(m),j=x.useRef();return x.useEffect(()=>{const T=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(T)},[]),s.useLayoutEffect2(()=>{const T=p.current;if(T){j.current=j.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const C=T.getBoundingClientRect();h.current=C.height,u.current=C.width,b.current||(T.style.transitionDuration=j.current.transitionDuration,T.style.animationName=j.current.animationName),f(n)}},[d.open,n]),a.jsx(s.Primitive.div,{"data-state":at(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!m,...i,ref:v,style:{"--radix-collapsible-content-height":l?`${l}px`:void 0,"--radix-collapsible-content-width":c?`${c}px`:void 0,...r.style},children:m&&o})});function at(r){return r?"open":"closed"}var Un=Ut,Wn=zt,zn=$t,Q="Accordion",$n=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[it,Gn,Hn]=s.createCollection(Q),[Me,zi]=s.createContextScope(Q,[Hn,Lt]),st=Lt(),Gt=I.forwardRef((r,e)=>{const{type:t,...n}=r,o=n,i=n;return a.jsx(it.Provider,{scope:r.__scopeAccordion,children:t==="multiple"?a.jsx(Zn,{...i,ref:e}):a.jsx(Xn,{...o,ref:e})})});Gt.displayName=Q;var[Ht,qn]=Me(Q),[qt,Yn]=Me(Q,{collapsible:!1}),Xn=I.forwardRef((r,e)=>{const{value:t,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...d}=r,[g,f]=s.useControllableState({prop:t,defaultProp:n,onChange:o});return a.jsx(Ht,{scope:r.__scopeAccordion,value:g?[g]:[],onItemOpen:f,onItemClose:I.useCallback(()=>i&&f(""),[i,f]),children:a.jsx(qt,{scope:r.__scopeAccordion,collapsible:i,children:a.jsx(Yt,{...d,ref:e})})})}),Zn=I.forwardRef((r,e)=>{const{value:t,defaultValue:n,onValueChange:o=()=>{},...i}=r,[d=[],g]=s.useControllableState({prop:t,defaultProp:n,onChange:o}),f=I.useCallback(v=>g((h=[])=>[...h,v]),[g]),p=I.useCallback(v=>g((h=[])=>h.filter(l=>l!==v)),[g]);return a.jsx(Ht,{scope:r.__scopeAccordion,value:d,onItemOpen:f,onItemClose:p,children:a.jsx(qt,{scope:r.__scopeAccordion,collapsible:!0,children:a.jsx(Yt,{...i,ref:e})})})}),[Kn,_e]=Me(Q),Yt=I.forwardRef((r,e)=>{const{__scopeAccordion:t,disabled:n,dir:o,orientation:i="vertical",...d}=r,g=I.useRef(null),f=s.useComposedRefs(g,e),p=Gn(t),h=s.useDirection(o)==="ltr",l=s.composeEventHandlers(r.onKeyDown,u=>{var ee;if(!$n.includes(u.key))return;const c=u.target,m=p().filter(H=>{var q;return!((q=H.ref.current)!=null&&q.disabled)}),b=m.findIndex(H=>H.ref.current===c),j=m.length;if(b===-1)return;u.preventDefault();let T=b;const C=0,w=j-1,E=()=>{T=b+1,T>w&&(T=C)},R=()=>{T=b-1,T<C&&(T=w)};switch(u.key){case"Home":T=C;break;case"End":T=w;break;case"ArrowRight":i==="horizontal"&&(h?E():R());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(h?R():E());break;case"ArrowUp":i==="vertical"&&R();break}const G=T%j;(ee=m[G].ref.current)==null||ee.focus()});return a.jsx(Kn,{scope:t,disabled:n,direction:o,orientation:i,children:a.jsx(it.Slot,{scope:t,children:a.jsx(s.Primitive.div,{...d,"data-orientation":i,ref:f,onKeyDown:n?void 0:l})})})}),Ee="AccordionItem",[Jn,lt]=Me(Ee),Xt=I.forwardRef((r,e)=>{const{__scopeAccordion:t,value:n,...o}=r,i=_e(Ee,t),d=qn(Ee,t),g=st(t),f=s.useId(),p=n&&d.value.includes(n)||!1,v=i.disabled||r.disabled;return a.jsx(Jn,{scope:t,open:p,disabled:v,triggerId:f,children:a.jsx(Un,{"data-orientation":i.orientation,"data-state":tr(p),...g,...o,ref:e,disabled:v,open:p,onOpenChange:h=>{h?d.onItemOpen(n):d.onItemClose(n)}})})});Xt.displayName=Ee;var Zt="AccordionHeader",Kt=I.forwardRef((r,e)=>{const{__scopeAccordion:t,...n}=r,o=_e(Q,t),i=lt(Zt,t);return a.jsx(s.Primitive.h3,{"data-orientation":o.orientation,"data-state":tr(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:e})});Kt.displayName=Zt;var Xe="AccordionTrigger",Jt=I.forwardRef((r,e)=>{const{__scopeAccordion:t,...n}=r,o=_e(Q,t),i=lt(Xe,t),d=Yn(Xe,t),g=st(t);return a.jsx(it.ItemSlot,{scope:t,children:a.jsx(Wn,{"aria-disabled":i.open&&!d.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...g,...n,ref:e})})});Jt.displayName=Xe;var Qt="AccordionContent",er=I.forwardRef((r,e)=>{const{__scopeAccordion:t,...n}=r,o=_e(Q,t),i=lt(Qt,t),d=st(t);return a.jsx(zn,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...d,...n,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...r.style}})});er.displayName=Qt;function tr(r){return r?"open":"closed"}var Qn=Gt,eo=Xt,to=Kt,rr=Jt,nr=er;const ro=Qn,or=x.forwardRef(({className:r,...e},t)=>a.jsx(eo,{ref:t,className:s.cn("w-full border-b",r),...e}));or.displayName="AccordionItem";const ar=x.forwardRef(({className:r,children:e,disabled:t,...n},o)=>a.jsx(to,{className:"flex",children:a.jsxs(rr,{ref:o,className:s.cn("flex flex-1 items-center justify-between py-4 text-start font-medium transition-all [&[data-state=open]>svg]:rotate-180",r),disabled:t,...n,children:[e,!t&&a.jsx(s.Icon.ArrowDown,{className:"shrink-0 transition-transform duration-200",fill:fe.colors.grey[600],size:"16"})]})}));ar.displayName=rr.displayName;const ir=x.forwardRef(({className:r,children:e,...t},n)=>a.jsx(nr,{ref:n,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down transition-all",...t,children:a.jsx("div",{className:s.cn("overflow-hidden pb-4 text-sm",r),children:e})}));ir.displayName=nr.displayName;const no={Root:ro,Item:or,Trigger:ar,Content:ir},Oe=({src:r,alt:e,object:t="cover",lazy:n=!0,size:o="auto",className:i,...d})=>{const g={contain:"object-contain h-full",cover:"object-cover h-full",fill:"object-fill h-full","scale-down":"object-scale-down",none:"object-none"},f={full:"w-full",fit:"w-fit",auto:"w-auto"};let p="",v={};return typeof o=="string"?p=f[o]:typeof o=="number"&&(v={width:`${o}px`}),a.jsx("img",{src:r,alt:e?`${e} 이미지`:"이미지",loading:n?"lazy":"eager",className:s.cn(g[t],p,i),style:v,...d})},oo=864e5,sr=6e4,lr=36e5,At=Symbol.for("constructDateFrom");function ct(r,e){return typeof r=="function"?r(e):r&&typeof r=="object"&&At in r?r[At](e):r instanceof Date?new r.constructor(e):new Date(e)}function Ae(r,e){return ct(r,r)}function Ft(r){const e=Ae(r),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+r-+t}function cr(r,...e){const t=ct.bind(null,e.find(n=>typeof n=="object"));return e.map(t)}function It(r,e){const t=Ae(r);return t.setHours(0,0,0,0),t}function ao(r,e,t){const[n,o]=cr(t==null?void 0:t.in,r,e),i=It(n),d=It(o),g=+i-Ft(i),f=+d-Ft(d);return Math.round((g-f)/oo)}function io(r,e,t){const[n,o]=cr(t==null?void 0:t.in,r,e),i=Dt(n,o),d=Math.abs(ao(n,o));n.setDate(n.getDate()-i*d);const g=+(Dt(n,o)===-i),f=i*(d-g);return f===0?0:f}function Dt(r,e){const t=r.getFullYear()-e.getFullYear()||r.getMonth()-e.getMonth()||r.getDate()-e.getDate()||r.getHours()-e.getHours()||r.getMinutes()-e.getMinutes()||r.getSeconds()-e.getSeconds()||r.getMilliseconds()-e.getMilliseconds();return t<0?-1:t>0?1:t}function so(r,e){const t=()=>ct(e==null?void 0:e.in,NaN),o=mo(r);let i;if(o.date){const p=po(o.date,2);i=fo(p.restDateString,p.year)}if(!i||isNaN(+i))return t();const d=+i;let g=0,f;if(o.time&&(g=go(o.time),isNaN(g)))return t();if(o.timezone){if(f=bo(o.timezone),isNaN(f))return t()}else{const p=new Date(d+g),v=Ae(0);return v.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),v.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),v}return Ae(d+g+f)}const Pe={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},lo=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,co=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,uo=/^([+-])(\d{2})(?::?(\d{2}))?$/;function mo(r){const e={},t=r.split(Pe.dateTimeDelimiter);let n;if(t.length>2)return e;if(/:/.test(t[0])?n=t[0]:(e.date=t[0],n=t[1],Pe.timeZoneDelimiter.test(e.date)&&(e.date=r.split(Pe.timeZoneDelimiter)[0],n=r.substr(e.date.length,r.length))),n){const o=Pe.timezone.exec(n);o?(e.time=n.replace(o[1],""),e.timezone=o[1]):e.time=n}return e}function po(r,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=r.match(t);if(!n)return{year:NaN,restDateString:""};const o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?o:i*100,restDateString:r.slice((n[1]||n[2]).length)}}function fo(r,e){if(e===null)return new Date(NaN);const t=r.match(lo);if(!t)return new Date(NaN);const n=!!t[4],o=pe(t[1]),i=pe(t[2])-1,d=pe(t[3]),g=pe(t[4]),f=pe(t[5])-1;if(n)return yo(e,g,f)?vo(e,g,f):new Date(NaN);{const p=new Date(0);return!wo(e,i,d)||!xo(e,o)?new Date(NaN):(p.setUTCFullYear(e,i,Math.max(o,d)),p)}}function pe(r){return r?parseInt(r):1}function go(r){const e=r.match(co);if(!e)return NaN;const t=Ye(e[1]),n=Ye(e[2]),o=Ye(e[3]);return Co(t,n,o)?t*lr+n*sr+o*1e3:NaN}function Ye(r){return r&&parseFloat(r.replace(",","."))||0}function bo(r){if(r==="Z")return 0;const e=r.match(uo);if(!e)return 0;const t=e[1]==="+"?-1:1,n=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return To(n,o)?t*(n*lr+o*sr):NaN}function vo(r,e,t){const n=new Date(0);n.setUTCFullYear(r,0,4);const o=n.getUTCDay()||7,i=(e-1)*7+t+1-o;return n.setUTCDate(n.getUTCDate()+i),n}const ho=[31,null,31,30,31,30,31,31,30,31,30,31];function dr(r){return r%400===0||r%4===0&&r%100!==0}function wo(r,e,t){return e>=0&&e<=11&&t>=1&&t<=(ho[e]||(dr(r)?29:28))}function xo(r,e){return e>=1&&e<=(dr(r)?366:365)}function yo(r,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function Co(r,e,t){return r===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&r>=0&&r<25}function To(r,e){return e>=0&&e<=59}function jo({adProduct:r,logo:e,title:t,batchName:n="",adTitle:o,startDate:i,tuition:d,nbCardRequired:g,isLoading:f=!1,regEndDate:p,className:v}){if(f)return a.jsx(mr,{className:v});const h=`${So(i)} · ${No(d,g)}`;return a.jsx(ur,{logo:e,title:`${t} ${n}`,adTitle:o,footerText:h,regEndDate:p,className:v,adProduct:r})}function ur({adProduct:r,logo:e,title:t,adTitle:n,footerText:o,regEndDate:i,className:d}){return a.jsxs(s.FlexBox.Col,{className:s.cn("relative z-10 h-full w-full items-start justify-between gap-2 overflow-hidden rounded-xl border border-grey-200 bg-white p-4 text-grey-800 md:p-5 lg:p-6",d),children:[a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.event.background,color:B.adProducts.event.color},children:r===B.adProducts.dDay.value&&i?ko(i):B.adProducts.event.value.toUpperCase()}),a.jsx(Oe,{src:e,alt:`${t} 로고`,className:"h-4 object-contain"}),a.jsxs(s.FlexBox.Col,{className:"w-full gap-2",children:[a.jsx("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:text-base lg:h-12",title:t,children:t}),a.jsx("p",{className:"line-clamp-2 h-auto w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:h-[54px] md:text-[15px] md:text-grey-800",children:n}),a.jsx(s.Box,{className:"text-[13px] leading-[19px] text-grey-600",children:o})]})]})}function mr({className:r}){return a.jsxs(_.Skeleton,{type:"background",className:s.cn("relative z-10 flex h-full w-full flex-col justify-between gap-2 overflow-hidden rounded-xl p-4 md:p-5 lg:p-6",r),children:[a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.event.background,color:B.adProducts.event.color},className:s.cn("h-7 w-20 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),a.jsx(_.Skeleton,{className:"h-4 w-1/2"}),a.jsxs(s.FlexBox.Col,{className:"gap-2",children:[a.jsx(s.Box,{className:"h-10 w-full",children:a.jsx(_.Skeleton,{className:"h-5 w-4/5"})}),a.jsx(_.Skeleton,{className:"h-14 w-full"})]}),a.jsx(_.Skeleton,{className:"mt-2 h-[19px] w-2/3"})]})}const So=r=>{if(!r)return"";const t=r.split(" ")[0].split("-"),n=Number(t[1]),o=`${n}/${Number(t.slice(2).join("."))}`;switch(t[2]){case"98":return`${n}월중 개강`;case"99":return`${n}월중(예상) 개강`;default:return`${o} 개강`}},No=(r,e)=>{const t=e?"(내배카💳)":"";return r===0||r===void 0?`무료 ${t}`:`유료 ${t}`},Po=r=>{const t=r.split(" ")[0].split("-"),n=Number(t[0]),o=Number(t[1]);let i=t[2];const d=new Date(n,o,0).getDate();return(isNaN(Number(i))||Number(i)>d)&&(i=d.toString()),`${n}-${String(o).padStart(2,"0")}-${String(i).padStart(2,"0")}`},ko=r=>{const e=io(so(Po(r)),new Date);return e<=0?"마감임박":`D-${e}`},Eo={homepage:{label:"홈페이지",value:"homepage",query:!1},boottent:{label:"자세히보기",value:"boottent",query:!1},curriculum:{label:"커리큘럼 보기",value:"curriculum",query:"curriculum"},event:{label:"이벤트",value:"event",query:"event"},reviews:{label:"후기보기",value:"reviews",query:"reviews"}};var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},y={},Ze={exports:{}};(function(r,e){(function(t,n){var o="1.0.39",i="",d="?",g="function",f="undefined",p="object",v="string",h="major",l="model",u="name",c="type",m="vendor",b="version",j="architecture",T="console",C="mobile",w="tablet",E="smarttv",R="wearable",G="embedded",ee=500,H="Amazon",q="Apple",ht="ASUS",wt="BlackBerry",ce="Browser",xe="Chrome",In="Edge",ye="Firefox",Ce="Google",xt="Huawei",We="LG",ze="Microsoft",yt="Motorola",de="Opera",ue="Samsung",Ct="Sharp",Te="Sony",$e="Xiaomi",Ge="Zebra",Tt="Facebook",jt="Chromium OS",St="Mac OS",Nt=" Browser",Dn=function(O,A){var k={};for(var D in O)A[D]&&A[D].length%2===0?k[D]=A[D].concat(O[D]):k[D]=O[D];return k},je=function(O){for(var A={},k=0;k<O.length;k++)A[O[k].toUpperCase()]=O[k];return A},Pt=function(O,A){return typeof O===v?ne(A).indexOf(ne(O))!==-1:!1},ne=function(O){return O.toLowerCase()},Mn=function(O){return typeof O===v?O.replace(/[^\d\.]/g,i).split(".")[0]:n},He=function(O,A){if(typeof O===v)return O=O.replace(/^\s\s*/,i),typeof A===f?O:O.substring(0,ee)},me=function(O,A){for(var k=0,D,J,X,F,N,Z;k<A.length&&!N;){var qe=A[k],Ot=A[k+1];for(D=J=0;D<qe.length&&!N&&qe[D];)if(N=qe[D++].exec(O),N)for(X=0;X<Ot.length;X++)Z=N[++J],F=Ot[X],typeof F===p&&F.length>0?F.length===2?typeof F[1]==g?this[F[0]]=F[1].call(this,Z):this[F[0]]=F[1]:F.length===3?typeof F[1]===g&&!(F[1].exec&&F[1].test)?this[F[0]]=Z?F[1].call(this,Z,F[2]):n:this[F[0]]=Z?Z.replace(F[1],F[2]):n:F.length===4&&(this[F[0]]=Z?F[3].call(this,Z.replace(F[1],F[2])):n):this[F]=Z||n;k+=2}},Se=function(O,A){for(var k in A)if(typeof A[k]===p&&A[k].length>0){for(var D=0;D<A[k].length;D++)if(Pt(A[k][D],O))return k===d?n:k}else if(Pt(A[k],O))return k===d?n:k;return A.hasOwnProperty("*")?A["*"]:O},_n={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},kt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,b],[/opios[\/ ]+([\w\.]+)/i],[b,[u,de+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[u,de+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[u,de]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[u,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[u,"UC"+ce]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[u,"Smart Lenovo "+ce]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+ce],b],[/\bfocus\/([\w\.]+)/i],[b,[u,ye+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[u,de+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[u,de+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[u,"MIUI "+ce]],[/fxios\/([-\w\.]+)/i],[b,[u,ye]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360"+Nt]],[/\b(qq)\/([\w\.]+)/i],[[u,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1"+Nt],b],[/samsungbrowser\/([\w\.]+)/i],[b,[u,ue+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],b],[/metasr[\/ ]?([\d\.]+)/i],[b,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,Tt],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[u,xe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,xe+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[u,"Android "+ce]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[b,Se,_n]],[/(webkit|khtml)\/([\w\.]+)/i],[u,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],b],[/(wolvic)\/([\w\.]+)/i],[u,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[u,ye+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[u,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[j,"amd64"]],[/(ia32(?=;))/i],[[j,ne]],[/((?:i[346]|x)86)[;\)]/i],[[j,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[j,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[j,"armhf"]],[/windows (ce|mobile); ppc;/i],[[j,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[j,/ower/,i,ne]],[/(sun4\w)[;\)]/i],[[j,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[j,ne]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[m,ue],[c,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[m,ue],[c,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[m,q],[c,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[m,q],[c,w]],[/(macintosh);/i],[l,[m,q]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[m,Ct],[c,C]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[m,xt],[c,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[m,xt],[c,C]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[l,/_/g," "],[m,$e],[c,C]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[m,$e],[c,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[m,"OPPO"],[c,C]],[/\b(opd2\d{3}a?) bui/i],[l,[m,"OPPO"],[c,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[m,"Vivo"],[c,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[m,"Realme"],[c,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[m,yt],[c,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[m,yt],[c,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[m,We],[c,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[m,We],[c,C]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[m,"Lenovo"],[c,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[m,"Nokia"],[c,C]],[/(pixel c)\b/i],[l,[m,Ce],[c,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[m,Ce],[c,C]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[m,Te],[c,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[m,Te],[c,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[m,"OnePlus"],[c,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[m,H],[c,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[m,H],[c,C]],[/(playbook);[-\w\),; ]+(rim)/i],[l,m,[c,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[m,wt],[c,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[m,ht],[c,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[m,ht],[c,C]],[/(nexus 9)/i],[l,[m,"HTC"],[c,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[l,/_/g," "],[c,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[m,"TCL"],[c,w]],[/(itel) ((\w+))/i],[[m,ne],l,[c,Se,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[m,"Acer"],[c,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[m,"Meizu"],[c,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[m,"Ulefone"],[c,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[m,"Nothing"],[c,C]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,l,[c,C]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,l,[c,w]],[/(surface duo)/i],[l,[m,ze],[c,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[m,"Fairphone"],[c,C]],[/(u304aa)/i],[l,[m,"AT&T"],[c,C]],[/\bsie-(\w*)/i],[l,[m,"Siemens"],[c,C]],[/\b(rct\w+) b/i],[l,[m,"RCA"],[c,w]],[/\b(venue[\d ]{2,7}) b/i],[l,[m,"Dell"],[c,w]],[/\b(q(?:mv|ta)\w+) b/i],[l,[m,"Verizon"],[c,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[m,"Barnes & Noble"],[c,w]],[/\b(tm\d{3}\w+) b/i],[l,[m,"NuVision"],[c,w]],[/\b(k88) b/i],[l,[m,"ZTE"],[c,w]],[/\b(nx\d{3}j) b/i],[l,[m,"ZTE"],[c,C]],[/\b(gen\d{3}) b.+49h/i],[l,[m,"Swiss"],[c,C]],[/\b(zur\d{3}) b/i],[l,[m,"Swiss"],[c,w]],[/\b((zeki)?tb.*\b) b/i],[l,[m,"Zeki"],[c,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],l,[c,w]],[/\b(ns-?\w{0,9}) b/i],[l,[m,"Insignia"],[c,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[m,"NextBook"],[c,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],l,[c,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],l,[c,C]],[/\b(ph-1) /i],[l,[m,"Essential"],[c,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[m,"Envizen"],[c,w]],[/\b(trio[-\w\. ]+) b/i],[l,[m,"MachSpeed"],[c,w]],[/\btu_(1491) b/i],[l,[m,"Rotor"],[c,w]],[/(shield[\w ]+) b/i],[l,[m,"Nvidia"],[c,w]],[/(sprint) (\w+)/i],[m,l,[c,C]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[m,ze],[c,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[m,Ge],[c,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[m,Ge],[c,C]],[/smart-tv.+(samsung)/i],[m,[c,E]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[m,ue],[c,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,We],[c,E]],[/(apple) ?tv/i],[m,[l,q+" TV"],[c,E]],[/crkey/i],[[l,xe+"cast"],[m,Ce],[c,E]],[/droid.+aft(\w+)( bui|\))/i],[l,[m,H],[c,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[m,Ct],[c,E]],[/(bravia[\w ]+)( bui|\))/i],[l,[m,Te],[c,E]],[/(mitv-\w{5}) bui/i],[l,[m,$e],[c,E]],[/Hbbtv.*(technisat) (.*);/i],[m,l,[c,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,He],[l,He],[c,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,l,[c,T]],[/droid.+; (shield) bui/i],[l,[m,"Nvidia"],[c,T]],[/(playstation [345portablevi]+)/i],[l,[m,Te],[c,T]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[m,ze],[c,T]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[l,[m,ue],[c,R]],[/((pebble))app/i],[m,l,[c,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[m,q],[c,R]],[/droid.+; (glass) \d/i],[l,[m,Ce],[c,R]],[/droid.+; (wt63?0{2,3})\)/i],[l,[m,Ge],[c,R]],[/(quest( \d| pro)?)/i],[l,[m,Tt],[c,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[c,G]],[/(aeobc)\b/i],[l,[m,H],[c,G]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[c,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[c,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,C]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[u,In+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[b,Se,kt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,Se,kt],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,St],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,b],[/\(bb(10);/i],[b,[u,wt]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[u,ye+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[u,xe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,jt],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,b],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,b]]},Y=function(O,A){if(typeof O===p&&(A=O,O=n),!(this instanceof Y))return new Y(O,A).getResult();var k=typeof t!==f&&t.navigator?t.navigator:n,D=O||(k&&k.userAgent?k.userAgent:i),J=k&&k.userAgentData?k.userAgentData:n,X=A?Dn(Et,A):Et,F=k&&k.userAgent==D;return this.getBrowser=function(){var N={};return N[u]=n,N[b]=n,me.call(N,D,X.browser),N[h]=Mn(N[b]),F&&k&&k.brave&&typeof k.brave.isBrave==g&&(N[u]="Brave"),N},this.getCPU=function(){var N={};return N[j]=n,me.call(N,D,X.cpu),N},this.getDevice=function(){var N={};return N[m]=n,N[l]=n,N[c]=n,me.call(N,D,X.device),F&&!N[c]&&J&&J.mobile&&(N[c]=C),F&&N[l]=="Macintosh"&&k&&typeof k.standalone!==f&&k.maxTouchPoints&&k.maxTouchPoints>2&&(N[l]="iPad",N[c]=w),N},this.getEngine=function(){var N={};return N[u]=n,N[b]=n,me.call(N,D,X.engine),N},this.getOS=function(){var N={};return N[u]=n,N[b]=n,me.call(N,D,X.os),F&&!N[u]&&J&&J.platform&&J.platform!="Unknown"&&(N[u]=J.platform.replace(/chrome os/i,jt).replace(/macos/i,St)),N},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return D},this.setUA=function(N){return D=typeof N===v&&N.length>ee?He(N,ee):N,this},this.setUA(D),this};Y.VERSION=o,Y.BROWSER=je([u,b,h]),Y.CPU=je([j]),Y.DEVICE=je([l,m,c,T,C,E,w,R,G]),Y.ENGINE=Y.OS=je([u,b]),r.exports&&(e=r.exports=Y),e.UAParser=Y;var oe=typeof t!==f&&(t.jQuery||t.Zepto);if(oe&&!oe.ua){var Ne=new Y;oe.ua=Ne.getResult(),oe.ua.get=function(){return Ne.getUA()},oe.ua.set=function(O){Ne.setUA(O);var A=Ne.getResult();for(var k in A)oe.ua[k]=A[k]}}})(typeof window=="object"?window:Oo)})(Ze,Ze.exports);var Ao=Ze.exports;Object.defineProperty(y,"__esModule",{value:!0});function Fo(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var L=I,M=Fo(L),pr=Ao,te=new pr,U=te.getBrowser(),Io=te.getCPU(),z=te.getDevice(),dt=te.getEngine(),re=te.getOS(),he=te.getUA(),fr=function(e){return te.setUA(e)},we=function(e){if(!e){console.error("No userAgent string was provided");return}var t=new pr(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(o){return t.setUA(o)}}},gr=Object.freeze({ClientUAInstance:te,browser:U,cpu:Io,device:z,engine:dt,os:re,ua:he,setUa:fr,parseUserAgent:we});function Mt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,n)}return t}function Do(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Mt(Object(t),!0).forEach(function(n){Vo(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Mt(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function be(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?be=function(e){return typeof e}:be=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(r)}function Mo(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _o(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Ro(r,e,t){return e&&_o(r.prototype,e),r}function Vo(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ke(){return Ke=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Ke.apply(this,arguments)}function Bo(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&Qe(r,e)}function Je(r){return Je=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Je(r)}function Qe(r,e){return Qe=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Qe(r,e)}function Lo(r,e){if(r==null)return{};var t={},n=Object.keys(r),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}function $(r,e){if(r==null)return{};var t=Lo(r,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function ke(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Uo(r,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ke(r)}function Wo(r,e){return zo(r)||$o(r,e)||Go(r,e)||Ho()}function zo(r){if(Array.isArray(r))return r}function $o(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n=[],o=!0,i=!1,d,g;try{for(t=t.call(r);!(o=(d=t.next()).done)&&(n.push(d.value),!(e&&n.length===e));o=!0);}catch(f){i=!0,g=f}finally{try{!o&&t.return!=null&&t.return()}finally{if(i)throw g}}return n}}function Go(r,e){if(r){if(typeof r=="string")return _t(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _t(r,e)}}function _t(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Ho(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},W={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},se={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},qo={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Yo=function(e){switch(e){case V.Mobile:return{isMobile:!0};case V.Tablet:return{isTablet:!0};case V.SmartTv:return{isSmartTV:!0};case V.Console:return{isConsole:!0};case V.Wearable:return{isWearable:!0};case V.Browser:return{isBrowser:!0};case V.Embedded:return{isEmbedded:!0};default:return qo}},Xo=function(e){return fr(e)},S=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return e||t},ut=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},mt=function(e){var t=ut();return t&&t.platform&&(t.platform.indexOf(e)!==-1||t.platform==="MacIntel"&&t.maxTouchPoints>1&&!window.MSStream)},Zo=function(e,t,n,o,i){return{isBrowser:e,browserMajorVersion:S(t.major),browserFullVersion:S(t.version),browserName:S(t.name),engineName:S(n.name),engineVersion:S(n.version),osName:S(o.name),osVersion:S(o.version),userAgent:S(i)}},Rt=function(e,t,n,o){return Do({},e,{vendor:S(t.vendor),model:S(t.model),os:S(n.name),osVersion:S(n.version),ua:S(o)})},Ko=function(e,t,n,o){return{isSmartTV:e,engineName:S(t.name),engineVersion:S(t.version),osName:S(n.name),osVersion:S(n.version),userAgent:S(o)}},Jo=function(e,t,n,o){return{isConsole:e,engineName:S(t.name),engineVersion:S(t.version),osName:S(n.name),osVersion:S(n.version),userAgent:S(o)}},Qo=function(e,t,n,o){return{isWearable:e,engineName:S(t.name),engineVersion:S(t.version),osName:S(n.name),osVersion:S(n.version),userAgent:S(o)}},ea=function(e,t,n,o,i){return{isEmbedded:e,vendor:S(t.vendor),model:S(t.model),engineName:S(n.name),engineVersion:S(n.version),osName:S(o.name),osVersion:S(o.version),userAgent:S(i)}};function ta(r){var e=r?we(r):gr,t=e.device,n=e.browser,o=e.engine,i=e.os,d=e.ua,g=Yo(t.type),f=g.isBrowser,p=g.isMobile,v=g.isTablet,h=g.isSmartTV,l=g.isConsole,u=g.isWearable,c=g.isEmbedded;if(f)return Zo(f,n,o,i,d);if(h)return Ko(h,o,i,d);if(l)return Jo(l,o,i,d);if(p||v)return Rt(g,t,i,d);if(u)return Qo(u,o,i,d);if(c)return ea(c,t,o,i,d)}var br=function(e){var t=e.type;return t===V.Mobile},vr=function(e){var t=e.type;return t===V.Tablet},hr=function(e){var t=e.type;return t===V.Mobile||t===V.Tablet},wr=function(e){var t=e.type;return t===V.SmartTv},Fe=function(e){var t=e.type;return t===V.Browser},xr=function(e){var t=e.type;return t===V.Wearable},yr=function(e){var t=e.type;return t===V.Console},Cr=function(e){var t=e.type;return t===V.Embedded},Tr=function(e){var t=e.vendor;return S(t)},jr=function(e){var t=e.model;return S(t)},Sr=function(e){var t=e.type;return S(t,"browser")},Nr=function(e){var t=e.name;return t===se.Android},Pr=function(e){var t=e.name;return t===se.Windows},kr=function(e){var t=e.name;return t===se.MAC_OS},Er=function(e){var t=e.name;return t===se.WindowsPhone},Or=function(e){var t=e.name;return t===se.IOS},Ar=function(e){var t=e.version;return S(t)},Fr=function(e){var t=e.name;return S(t)},Ir=function(e){var t=e.name;return t===W.Chrome},Dr=function(e){var t=e.name;return t===W.Firefox},Mr=function(e){var t=e.name;return t===W.Chromium},Ie=function(e){var t=e.name;return t===W.Edge},_r=function(e){var t=e.name;return t===W.Yandex},Rr=function(e){var t=e.name;return t===W.Safari||t===W.MobileSafari},Vr=function(e){var t=e.name;return t===W.MobileSafari},Br=function(e){var t=e.name;return t===W.Opera},Lr=function(e){var t=e.name;return t===W.InternetExplorer||t===W.Ie},Ur=function(e){var t=e.name;return t===W.MIUI},Wr=function(e){var t=e.name;return t===W.SamsungBrowser},zr=function(e){var t=e.version;return S(t)},$r=function(e){var t=e.major;return S(t)},Gr=function(e){var t=e.name;return S(t)},Hr=function(e){var t=e.name;return S(t)},qr=function(e){var t=e.version;return S(t)},Yr=function(){var e=ut(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof t=="string"?/electron/.test(t):!1},ae=function(e){return typeof e=="string"&&e.indexOf("Edg/")!==-1},Xr=function(){var e=ut();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform==="MacIntel"&&e.maxTouchPoints>1)&&!window.MSStream},K=function(){return mt("iPad")},Zr=function(){return mt("iPhone")},Kr=function(){return mt("iPod")},Jr=function(e){return S(e)};function Qr(r){var e=r||gr,t=e.device,n=e.browser,o=e.os,i=e.engine,d=e.ua;return{isSmartTV:wr(t),isConsole:yr(t),isWearable:xr(t),isEmbedded:Cr(t),isMobileSafari:Vr(n)||K(),isChromium:Mr(n),isMobile:hr(t)||K(),isMobileOnly:br(t),isTablet:vr(t)||K(),isBrowser:Fe(t),isDesktop:Fe(t),isAndroid:Nr(o),isWinPhone:Er(o),isIOS:Or(o)||K(),isChrome:Ir(n),isFirefox:Dr(n),isSafari:Rr(n),isOpera:Br(n),isIE:Lr(n),osVersion:Ar(o),osName:Fr(o),fullBrowserVersion:zr(n),browserVersion:$r(n),browserName:Gr(n),mobileVendor:Tr(t),mobileModel:jr(t),engineName:Hr(i),engineVersion:qr(i),getUA:Jr(d),isEdge:Ie(n)||ae(d),isYandex:_r(n),deviceType:Sr(t),isIOS13:Xr(),isIPad13:K(),isIPhone13:Zr(),isIPod13:Kr(),isElectron:Yr(),isEdgeChromium:ae(d),isLegacyEdge:Ie(n)&&!ae(d),isWindows:Pr(o),isMacOs:kr(o),isMIUI:Ur(n),isSamsungBrowser:Wr(n)}}var en=wr(z),tn=yr(z),rn=xr(z),ra=Cr(z),na=Vr(U)||K(),oa=Mr(U),Re=hr(z)||K(),nn=br(z),on=vr(z)||K(),an=Fe(z),aa=Fe(z),sn=Nr(re),ln=Er(re),cn=Or(re)||K(),ia=Ir(U),sa=Dr(U),la=Rr(U),ca=Br(U),dn=Lr(U),da=Ar(re),ua=Fr(re),ma=zr(U),pa=$r(U),fa=Gr(U),ga=Tr(z),ba=jr(z),va=Hr(dt),ha=qr(dt),wa=Jr(he),xa=Ie(U)||ae(he),ya=_r(U),Ca=Sr(z),Ta=Xr(),ja=K(),Sa=Zr(),Na=Kr(),Pa=Yr(),ka=ae(he),Ea=Ie(U)&&!ae(he),Oa=Pr(re),Aa=kr(re),Fa=Ur(U),Ia=Wr(U),Da=function(e){if(!e||typeof e!="string"){console.error("No valid user agent string was provided");return}var t=we(e),n=t.device,o=t.browser,i=t.os,d=t.engine,g=t.ua;return Qr({device:n,browser:o,os:i,engine:d,ua:g})},Ma=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return sn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},_a=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return an?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ra=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return dn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Va=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return cn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ba=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return Re?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},La=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return on?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ua=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return ln?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Wa=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var o=$(e,["renderWithFragment","children","viewClassName","style"]);return nn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},za=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return en?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},$a=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return tn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ga=function(e){var t=e.renderWithFragment,n=e.children,o=$(e,["renderWithFragment","children"]);return rn?t?M.createElement(L.Fragment,null,n):M.createElement("div",o,n):null},Ha=function(e){var t=e.renderWithFragment,n=e.children;e.viewClassName,e.style;var o=e.condition,i=$(e,["renderWithFragment","children","viewClassName","style","condition"]);return o?t?M.createElement(L.Fragment,null,n):M.createElement("div",i,n):null};function qa(r){return function(e){Bo(t,e);function t(n){var o;return Mo(this,t),o=Uo(this,Je(t).call(this,n)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(ke(o)),o.onOrientationChange=o.onOrientationChange.bind(ke(o)),o.onPageLoad=o.onPageLoad.bind(ke(o)),o.state={isLandscape:!1,isPortrait:!1},o}return Ro(t,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var o=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:o===0,isLandscape:o===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":be(window))!==void 0&&Re&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return M.createElement(r,Ke({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),t}(M.Component)}function Ya(){var r=L.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),e=Wo(r,2),t=e[0],n=e[1],o=L.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,d={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};t.orientation!==d.orientation&&n(d)},[t.orientation]);return L.useEffect(function(){return(typeof window>"u"?"undefined":be(window))!==void 0&&Re&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),t}function un(r){var e=r||window.navigator.userAgent;return we(e)}function Xa(r){var e=r||window.navigator.userAgent,t=un(e),n=Qr(t);return[n,t]}y.AndroidView=Ma;y.BrowserTypes=W;y.BrowserView=_a;y.ConsoleView=$a;y.CustomView=Ha;y.IEView=Ra;y.IOSView=Va;y.MobileOnlyView=Wa;y.MobileView=Ba;y.OsTypes=se;y.SmartTVView=za;y.TabletView=La;y.WearableView=Ga;y.WinPhoneView=Ua;y.browserName=fa;y.browserVersion=pa;y.deviceDetect=ta;y.deviceType=Ca;y.engineName=va;y.engineVersion=ha;y.fullBrowserVersion=ma;y.getSelectorsByUserAgent=Da;y.getUA=wa;y.isAndroid=sn;y.isBrowser=an;y.isChrome=ia;y.isChromium=oa;y.isConsole=tn;y.isDesktop=aa;y.isEdge=xa;y.isEdgeChromium=ka;y.isElectron=Pa;y.isEmbedded=ra;y.isFirefox=sa;y.isIE=dn;y.isIOS=cn;y.isIOS13=Ta;y.isIPad13=ja;y.isIPhone13=Sa;y.isIPod13=Na;y.isLegacyEdge=Ea;y.isMIUI=Fa;y.isMacOs=Aa;var ge=y.isMobile=Re;y.isMobileOnly=nn;y.isMobileSafari=na;y.isOpera=ca;y.isSafari=la;y.isSamsungBrowser=Ia;y.isSmartTV=en;y.isTablet=on;y.isWearable=rn;y.isWinPhone=ln;y.isWindows=Oa;y.isYandex=ya;y.mobileModel=ba;y.mobileVendor=ga;y.osName=ua;y.osVersion=da;y.parseUserAgent=we;y.setUserAgent=Xo;y.useDeviceData=un;y.useDeviceSelectors=Xa;y.useMobileOrientation=Ya;y.withOrientationChange=qa;function Za({adKey:r,filename:e,title:t,backgroundColor:n,hideButton:o=!1,buttonColors:i,linkType:d="homepage",isLoading:g=!1,className:f}){var u;const p=r&&e,v=`https://cdn.sayun.studio/boottent/images/banners/${r}/${e}`,h={background:i?i.button:B.defaultBannerColor.button,color:i?i.buttonText:B.defaultBannerColor.buttonText,border:i?i.button:B.defaultBannerColor.button},l=g?_.Skeleton:s.Box;return a.jsx(l,{style:{backgroundColor:g?void 0:n},type:g?"background":void 0,className:s.cn("relative h-40 w-full overflow-hidden md:h-[200px]",g?"bg-white":"border-y border-y-grey-200",f),children:g?a.jsx(mn,{}):a.jsx(a.Fragment,{children:a.jsxs(s.FlexBox.Row,{className:"absolute inset-0 mx-auto h-full w-full max-w-screen-xl px-0 pb-6 pt-0 md:h-auto md:px-6 md:pb-0 md:pt-10 lg:px-10 lg:pt-6",children:[p?a.jsx("div",{className:"mx-auto flex h-full w-full items-center md:items-start",children:a.jsx("img",{loading:"lazy",src:v,alt:`${t} 이미지`,className:"h-auto max-h-[136px] w-full object-contain md:max-h-40 lg:max-h-[176px]"})}):a.jsx(s.Box,{className:"h-full w-full bg-grey-100 text-muted",children:t}),!o&&a.jsx(s.Box,{className:"absolute inset-0 mx-auto max-w-screen-xl px-4 md:px-6 lg:px-10",children:a.jsx(s.Button,{style:h,theme:"etc",variant:"solid",size:ge?"sm":"md",className:"absolute bottom-4 right-4 h-9 w-24 md:bottom-6 md:right-6 md:h-11 md:w-32 lg:bottom-4 lg:right-10",children:((u=Eo[d])==null?void 0:u.label)+" →"||"홈페이지 →"})})]})})})}function mn(){return a.jsxs(s.FlexBox.Col,{className:"relative mx-auto flex h-full w-full max-w-screen-xl items-start gap-5 px-4 pt-4 md:px-6 md:pt-10 lg:px-10",children:[a.jsx(_.Skeleton,{type:"text",className:"h-6 w-4/5 rounded-xl md:h-10"}),a.jsx(_.Skeleton,{type:"text",className:"h-10 w-1/2 rounded-xl md:h-16 lg:w-3/5"}),a.jsx(_.Skeleton,{type:"text",className:"absolute bottom-4 right-4 aspect-[3/1] w-[120px] shrink-0 md:right-6 md:w-[140px] lg:right-10"})]})}const Ka=({logo:r,title:e,subtitle:t,thumbnail:n,batchTitle:o,batchName:i="",brandName:d,tag:g,isLoading:f=!1,className:p})=>{const v=f?_.Skeleton:s.Box;return a.jsxs(v,{title:e,type:"background",className:s.cn("xs:h-full relative z-10 box-border h-[154px] w-full max-w-[720px] cursor-pointer overflow-hidden rounded-xl bg-white p-4 md:h-[174px] md:max-w-[592px] md:p-5 lg:h-[174px] lg:p-6 xl:h-[174px]",f?"":"border border-grey-200",p),children:[a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.premiumCard.background,color:B.adProducts.premiumCard.color},className:s.cn(f&&"h-7 w-28 animate-pulse"),children:f?"":g}),f?a.jsx(Qa,{}):a.jsx(Ja,{logo:r,brandName:d,batchTitle:o,batchName:i,subtitle:t,thumbnail:n})]})},Ja=({logo:r,brandName:e,batchTitle:t,batchName:n,subtitle:o,thumbnail:i})=>a.jsxs(s.FlexBox.Col,{className:"h-full justify-start gap-2",children:[a.jsx(Oe,{src:r,alt:`${e} 로고`,className:"h-4 object-contain"}),a.jsxs(s.FlexBox.Row,{className:"w-full items-start justify-between gap-6",children:[a.jsxs(s.FlexBox.Col,{className:"flex h-full grow flex-col justify-between gap-2 pb-2",children:[a.jsxs("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:h-12 md:text-base",title:`${e} ${t} ${n}`,children:[t," ",n]}),a.jsx("h4",{className:"line-clamp-2 max-h-[56px] w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:text-[15px] md:text-grey-800",title:o,children:o})]}),a.jsx(Oe,{src:i,alt:`${t} 썸네일`,className:"h-[86px] w-[86px] shrink-0 grow-0 rounded-xl border border-grey-200 object-cover md:h-[96px] md:w-[96px]"})]})]}),Qa=()=>a.jsxs(s.FlexBox.Col,{className:"h-full justify-center gap-2",children:[a.jsx(_.Skeleton,{className:"h-4 w-1/2"}),a.jsxs(s.FlexBox.Row,{className:"w-full items-start justify-between gap-6",children:[a.jsxs(s.FlexBox.Col,{className:"flex h-full w-full flex-col justify-between gap-2 pb-2",children:[a.jsx(_.Skeleton,{className:"h-5 w-4/5 lg:h-12"}),a.jsx(_.Skeleton,{className:"h-5 w-4/5"})]}),a.jsx(_.Skeleton,{className:"h-[86px] w-[86px] shrink-0 grow-0 rounded-xl md:h-[96px] md:w-[96px]"})]})]}),ei=({tags:r,coverImage:e,brandName:t,title:n,batchName:o="",titleTagType:i,adTitle:d,changedAspect:g="aspect-[8/5]",isLoading:f=!1,className:p})=>f?a.jsx(ti,{changedAspect:g,className:p,titleTagType:i}):a.jsxs(s.FlexBox.Col,{className:s.cn("shadow-base h-full w-full shrink-0 cursor-pointer overflow-hidden rounded-xl border border-grey-700 bg-white transition-all",p),children:[a.jsxs(s.Box,{style:{background:"linear-gradient(0deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"},className:`relative flex ${g} w-full flex-col items-center justify-center overflow-hidden`,children:[a.jsx(Oe,{src:e,alt:`${t} ${n} ${o} 이미지`,className:"h-full w-full object-cover"}),i&&a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.titleTag.background,color:B.adProducts.titleTag.color},children:i}),d&&a.jsxs(a.Fragment,{children:[a.jsx(s.Box,{className:"absolute left-4 top-4 z-10 w-36 whitespace-pre-wrap break-keep text-[18px] font-semibold text-white md:left-5 md:top-7",children:d}),a.jsx(s.Box,{className:"absolute inset-0 opacity-50",style:{background:"linear-gradient(270deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"}})]})]}),a.jsxs(s.FlexBox.Col,{className:"w-full justify-between gap-2 p-4 text-grey-800 md:p-5 lg:p-6",children:[a.jsxs("h4",{className:"flex flex-col gap-2",title:`${t} ${n} ${o}`,children:[a.jsx("p",{className:"text-sm",children:t}),a.jsx("p",{className:"truncate3 break-keep text-base font-semibold",children:`${n} ${o}`})]}),r&&a.jsx("ul",{className:"flex w-full max-w-full flex-wrap gap-1",children:r.map((v,h)=>{var u;const l=Object.values(B.campCategoryColors).find(c=>c.tags.some(m=>m.value===v));return l&&a.jsx("li",{children:a.jsx(s.Tag,{size:"sm",style:{background:l.background,color:l.color},children:(u=l.tags.find(c=>c.value===v))==null?void 0:u.text})},h)})})]})]}),ti=({changedAspect:r,className:e,titleTagType:t})=>a.jsxs(_.Skeleton,{type:"background",className:s.cn("relative h-full w-full shrink-0 cursor-pointer overflow-hidden rounded-xl bg-grey-50 transition-all",e),children:[t&&a.jsx(s.Tag,{variant:"ad",style:{background:B.adProducts.titleTag.background,color:B.adProducts.titleTag.color},className:s.cn("h-7 w-28 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),a.jsx(s.Box,{style:{background:"linear-gradient(270deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"},className:`relative flex ${r} w-full`,children:a.jsx(_.Skeleton,{className:"h-full w-full",type:"background"})}),a.jsxs(s.FlexBox.Col,{className:"w-full justify-between gap-2 p-4",children:[a.jsxs(s.FlexBox.Col,{className:"relative w-full gap-2",children:[a.jsx(_.Skeleton,{className:"h-5 w-1/2",type:"text"}),a.jsx(_.Skeleton,{className:"h-12 w-full",type:"text"})]}),a.jsxs(s.FlexBox.Row,{className:"w-full gap-1",children:[a.jsx(_.Skeleton,{className:"h-5 w-1/4",type:"text"}),a.jsx(_.Skeleton,{className:"h-5 w-2/5",type:"text"}),a.jsx(_.Skeleton,{className:"h-5 w-1/4",type:"text"})]})]})]}),ri=({name:r,control:e,heading:t,label:n,description:o,required:i=!1,text:d,type:g,errorMsg:f=!1,onChange:p,rules:v})=>{const{field:h,fieldState:{error:l}}=s.useController({name:r,control:e,rules:v}),u=n||t||o;return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[u&&a.jsx(s.FormLabel,{required:i,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsxs("div",{className:"flex flex-row items-center gap-2",children:[a.jsx(s.Checkbox,{...h,id:r,checked:g==="boolean"?h.value:h.value===d,onCheckedChange:c=>{h.onChange(g==="boolean"?c:c?d:""),p&&p()}}),a.jsx(s.Label,{className:"cursor-pointer",htmlFor:r,children:d})]})}),f&&a.jsx(s.FormMessage,{children:l==null?void 0:l.message})]})})},ni=({name:r,control:e,heading:t,label:n,description:o,options:i,required:d=!1,additional:g,type:f="checkbox",onChange:p,rules:v})=>{const{field:h,fieldState:{error:l}}=s.useController({name:r,control:e,rules:v}),u=(b,j)=>{var T;h.onChange(j?[...h.value||[],b]:(T=h.value)==null?void 0:T.filter(C=>C!==b)),p==null||p()},c=()=>i.map(b=>{var j;return a.jsxs(s.FormItem,{className:"flex flex-row items-center",children:[a.jsx(s.FormControl,{children:a.jsx(s.Checkbox,{id:b.value+r,checked:(j=h.value)==null?void 0:j.includes(b.value),onCheckedChange:T=>u(b.value,T)})}),a.jsx(s.Label,{htmlFor:b.value+r,className:"cursor-pointer",children:b.text})]},b.value)}),m=()=>i.map(({value:b,text:j})=>{var C;const T=(C=h.value)==null?void 0:C.includes(b);return a.jsx(s.FormItem,{className:"flex flex-row items-start gap-2",children:a.jsx(s.FormControl,{children:a.jsx(s.Button,{shape:"rounded",size:"xs",theme:T?"primary":"secondary",variant:T?"solid":"outline",onClick:w=>{w.preventDefault(),u(b,!T)},children:j})})},b)});return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[(n||t||o)&&a.jsx(s.FormLabel,{required:d,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:f==="checkbox"?a.jsx("div",{className:"space-y-4",children:c()}):a.jsx("ul",{className:"flex w-full flex-wrap gap-2 text-sm font-normal",children:m()})}),g,a.jsx(s.FormMessage,{children:l==null?void 0:l.message})]})})},oi=({name:r,control:e,label:t,description:n,required:o=!1,children:i,className:d,errorMsg:g=!0})=>a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[t&&a.jsxs(s.FormLabel,{required:o,children:[a.jsx(s.Text,{children:t}),n&&a.jsx(s.FormDescription,{children:n})]}),a.jsx(s.FormControl,{children:a.jsx("div",{className:d,children:i})}),g&&a.jsx(s.FormMessage,{})]})}),ai=({name:r,control:e,heading:t,label:n,description:o,options:i,required:d=!1,className:g,placeholder:f="선택해주세요",onChange:p,rules:v,size:h,column:l,absoluteMsg:u=!1})=>{const{field:c,fieldState:{error:m}}=s.useController({name:r,control:e,rules:v}),b=j=>{j.length>0&&(c.onChange(j[0].value),p&&p())};return a.jsx(s.FormField,{control:e,name:r,render:()=>{var j;return a.jsxs(s.FormItem,{className:"relative",children:[(n||t||o)&&a.jsx(s.FormLabel,{required:d,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsx(s.Dropdown,{size:h,column:l,items:i,defaultValue:c.value?[{value:c.value,label:c.value,containerKey:r,containerType:"radio"}]:[],onChange:b,className:s.cn("w-full",g),multiple:!1,children:a.jsx(s.Button,{variant:"outline",theme:"secondary",className:s.cn("min-w-fit justify-between text-medium14 text-sm data-[state=open]:border-grey-800 md:text-base",!c.value&&"data-[state=closed]:text-muted data-[state=open]:text-grey-800",m&&"border-red-500 data-[state=closed]:text-grey-800"),icRight:a.jsx(s.Icon.ArrowDown,{size:"16",className:s.cn("fill-grey-300 group-data-[state=open]:fill-grey-800",m&&"fill-grey-800")}),children:c.value?((j=i.flatMap(T=>T.items).find(T=>T.value===c.value))==null?void 0:j.label)||c.value:f})})}),a.jsx(s.FormMessage,{absolute:u,children:m==null?void 0:m.message})]})}})},ii=({name:r,control:e,heading:t,label:n,description:o,options:i,required:d=!1,className:g,additional:f,direction:p="vertical",onChange:v,rules:h})=>{const{field:l,fieldState:{error:u}}=s.useController({name:r,control:e,rules:h}),c=n||t||o;return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{className:"relative",children:[c&&a.jsx(s.FormLabel,{required:d,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsxs("div",{className:s.cn("flex max-w-screen-sm items-center gap-2",g),children:[a.jsx(s.RadioGroup,{onValueChange:m=>{l.onChange(m),v&&v()},value:l.value,className:s.cn(p==="vertical"&&"flex flex-col gap-4",p==="horizontal"&&"flex flex-wrap gap-8",p==="grid"&&"grid w-full grid-cols-2 gap-x-8 gap-y-4"),children:i.map(m=>a.jsxs(s.FormItem,{className:"flex flex-row items-center",children:[a.jsx(s.FormControl,{children:a.jsx(s.RadioGroupItem,{value:m.value,id:m.text,checked:m.value===l.value})}),a.jsx(s.Label,{className:"cursor-pointer font-normal",htmlFor:m.text,children:m.text})]},m.key))}),f&&a.jsx(a.Fragment,{children:f})]})}),a.jsx(s.FormMessage,{children:u==null?void 0:u.message})]})})},si=({required:r,heading:e,name:t,label:n,description:o,placeholder:i,control:d,tagDirection:g="flex-col",tagSize:f="md",rules:p})=>{const{setValue:v,getValues:h}=s.useFormContext(),{field:l,fieldState:{error:u}}=s.useController({name:t,control:d,defaultValue:[],rules:p}),[c,m]=I.useState(""),b=()=>{if(c.trim()!==""){const w=h(t)||[];v(t,[...w,c.trim()]),m("")}},j=w=>{w.key==="Enter"&&!w.nativeEvent.isComposing&&(w.preventDefault(),b())},T=w=>{const E=h(t)||[];E.splice(w,1),v(t,E)},C=n||e||o;return a.jsx(s.FormField,{control:d,name:t,render:()=>a.jsxs(s.FormItem,{children:[C&&a.jsx(s.FormLabel,{required:r,heading:e,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsxs("div",{className:"flex flex-col gap-2",children:[l.value&&l.value.length>0&&a.jsx("ul",{className:s.cn("flex flex-col flex-wrap gap-1",g),children:l.value.map((w,E)=>a.jsx("li",{children:a.jsx(s.Tag,{size:f,variant:"solid-secondary-100",onClick:()=>T(E),icRight:a.jsx(s.Icon.Cancel,{size:"10",className:"text-grey-600"}),children:a.jsx("span",{children:w})})},E))}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(s.Input,{value:c,onChange:w=>m(w.target.value),onKeyDown:j,className:"max-w-screen-sm",placeholder:i,error:!!u}),a.jsx(s.Button,{size:"md",variant:"outline",disabled:!c.trim(),theme:"secondary",onClick:b,className:"whitespace-nowrap",children:"추가"})]})]})}),a.jsx(s.FormMessage,{children:u==null?void 0:u.message})]})})},li=({name:r,control:e,heading:t,label:n,description:o,placeholder:i,required:d=!1,isTextArea:g=!1,unitLabel:f,unitLabelBefore:p,inputType:v="text",className:h,onChange:l,onBlur:u,icon:c,disabled:m,errorMsg:b=!0,rules:j,limit:T,inputClassName:C,absoluteMsg:w=!1})=>{const{field:E,formState:{errors:R}}=s.useController({name:r,control:e,rules:{...j,...T?{maxLength:{value:T,message:`최대 ${T}자까지 입력 가능합니다.`}}:{}}}),G=H=>{const q=v==="number"?Number(H.target.value):H.target.value;E.onChange(q),l==null||l(q)},ee=n||t||o;return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[ee&&a.jsx(s.FormLabel,{required:d,heading:t,label:n,description:o}),a.jsx(s.FormControl,{children:a.jsxs("div",{className:s.cn("flex w-full max-w-screen-sm items-center gap-2",h),children:[p&&a.jsx("div",{className:"whitespace-nowrap",children:p}),g?a.jsx(s.Textarea,{...E,placeholder:i,disabled:m,error:!!R[r],onChange:G,onBlur:u,className:s.cn("h-32 resize-none",C)}):a.jsx(s.Input,{...E,type:v,placeholder:i,disabled:m,error:!!R[r],onChange:G,onBlur:u,icon:c,iconPosition:"right",className:C}),f&&a.jsx("div",{className:"whitespace-nowrap",children:f})]})}),a.jsxs(s.FlexBox.Row,{className:"flex w-full items-center gap-1",children:[b&&a.jsx(s.FormMessage,{absolute:w}),T&&a.jsxs("div",{className:s.cn("h-5 grow text-end text-sm text-grey-600",{"text-red-600":E.value.length>T}),children:[E.value.length,"/",T,"자"]})]})]})})},ci=({name:r,control:e,heading:t,label:n,description:o,placeholder:i="",buttonLabel:d="보기",required:g,onClick:f,disabled:p=!1,children:v,urlTitle:h,rules:l})=>{const{trigger:u,setValue:c}=s.useFormContext(),{field:m,fieldState:{error:b}}=s.useController({name:r,control:e,rules:{required:g?"URL을 입력해주세요.":!1,pattern:{value:/^(https?:\/\/)?([\w-]+\.)+[\w-]{2,4}(\/.*)?$/,message:"올바른 URL을 입력해주세요."},...l}}),j=w=>{m.onChange(w),c(r,w.target.value)},T=w=>{if(w.preventDefault(),f)f(w);else if(m.value&&!b){const E=m.value.startsWith("http")?m.value:`https://${m.value}`;window.open(E,"_blank")}},C=n||t||o;return a.jsx(s.FormField,{control:e,name:r,render:()=>a.jsxs(s.FormItem,{children:[C&&a.jsx(s.FormLabel,{required:g,heading:t,label:n,description:o}),v,a.jsxs("div",{className:"flex items-center gap-2",children:[h&&a.jsx(s.Callout,{size:"sm",className:"flex w-32 justify-center truncate shadow-none",children:h}),a.jsx(s.FormControl,{children:a.jsx(s.Input,{...m,onBlur:()=>u(r),onChange:j,placeholder:i,className:"w-auto grow",error:!!b})}),a.jsx(s.Button,{variant:"outline",theme:"secondary",size:"md",disabled:p||!!b||!m.value,onClick:T,children:d})]}),a.jsx(s.FormMessage,{children:b==null?void 0:b.message})]})})},di=()=>{const[r,e]=I.useState([]);return I.useEffect(()=>{const p=(h,l)=>{e(l?u=>u.includes(h.id)?u:[...u,h.id]:u=>u.filter(c=>c!==h.id))},v=P.portalManager.subscribe(p);return e(P.portalManager.getOpenPortals()),()=>{v()}},[]),{modal:p=>{const{onClose:v=()=>{}}=p;return P.portalManager.showPortal("modal",{...p,onClose:v})},toast:p=>{let v;return typeof p=="string"?v={description:p}:v=p,P.portalManager.showPortal("toast",v)},alert:p=>{let v;return typeof p=="string"?v={description:p,onClose:()=>{}}:v={...p,onClose:p.onClose||(()=>{})},P.portalManager.showPortal("alert",v)},dialog:p=>{const{onClose:v=()=>{}}=p;return P.portalManager.showPortal("dialog",{...p,onClose:v})},custom:p=>{const{onClose:v=()=>{}}=p;return console.log(p),P.portalManager.showPortal("custom",{...p,onClose:v})},getIsOpen:p=>P.portalManager.getIsPortalOpen(p),closePortal:p=>{P.portalManager.closePortal(p)},openPortals:r}};var[Ve,$i]=s.createContextScope("Tooltip",[s.createPopperScope]),Be=s.createPopperScope(),pn="TooltipProvider",ui=700,et="tooltip.open",[mi,pt]=Ve(pn),fn=r=>{const{__scopeTooltip:e,delayDuration:t=ui,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=r,[d,g]=x.useState(!0),f=x.useRef(!1),p=x.useRef(0);return x.useEffect(()=>{const v=p.current;return()=>window.clearTimeout(v)},[]),a.jsx(mi,{scope:e,isOpenDelayed:d,delayDuration:t,onOpen:x.useCallback(()=>{window.clearTimeout(p.current),g(!1)},[]),onClose:x.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>g(!0),n)},[n]),isPointerInTransitRef:f,onPointerInTransitChange:x.useCallback(v=>{f.current=v},[]),disableHoverableContent:o,children:i})};fn.displayName=pn;var Le="Tooltip",[pi,Ue]=Ve(Le),gn=r=>{const{__scopeTooltip:e,children:t,open:n,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:d,delayDuration:g}=r,f=pt(Le,r.__scopeTooltip),p=Be(e),[v,h]=x.useState(null),l=s.useId(),u=x.useRef(0),c=d??f.disableHoverableContent,m=g??f.delayDuration,b=x.useRef(!1),[j=!1,T]=s.useControllableState({prop:n,defaultProp:o,onChange:G=>{G?(f.onOpen(),document.dispatchEvent(new CustomEvent(et))):f.onClose(),i==null||i(G)}}),C=x.useMemo(()=>j?b.current?"delayed-open":"instant-open":"closed",[j]),w=x.useCallback(()=>{window.clearTimeout(u.current),u.current=0,b.current=!1,T(!0)},[T]),E=x.useCallback(()=>{window.clearTimeout(u.current),u.current=0,T(!1)},[T]),R=x.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>{b.current=!0,T(!0),u.current=0},m)},[m,T]);return x.useEffect(()=>()=>{u.current&&(window.clearTimeout(u.current),u.current=0)},[]),a.jsx(s.Root2,{...p,children:a.jsx(pi,{scope:e,contentId:l,open:j,stateAttribute:C,trigger:v,onTriggerChange:h,onTriggerEnter:x.useCallback(()=>{f.isOpenDelayed?R():w()},[f.isOpenDelayed,R,w]),onTriggerLeave:x.useCallback(()=>{c?E():(window.clearTimeout(u.current),u.current=0)},[E,c]),onOpen:w,onClose:E,disableHoverableContent:c,children:t})})};gn.displayName=Le;var tt="TooltipTrigger",bn=x.forwardRef((r,e)=>{const{__scopeTooltip:t,...n}=r,o=Ue(tt,t),i=pt(tt,t),d=Be(t),g=x.useRef(null),f=s.useComposedRefs(e,g,o.onTriggerChange),p=x.useRef(!1),v=x.useRef(!1),h=x.useCallback(()=>p.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),a.jsx(s.Anchor,{asChild:!0,...d,children:a.jsx(s.Primitive.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:f,onPointerMove:s.composeEventHandlers(r.onPointerMove,l=>{l.pointerType!=="touch"&&!v.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:s.composeEventHandlers(r.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:s.composeEventHandlers(r.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:s.composeEventHandlers(r.onFocus,()=>{p.current||o.onOpen()}),onBlur:s.composeEventHandlers(r.onBlur,o.onClose),onClick:s.composeEventHandlers(r.onClick,o.onClose)})})});bn.displayName=tt;var fi="TooltipPortal",[Gi,gi]=Ve(fi,{forceMount:void 0}),ie="TooltipContent",vn=x.forwardRef((r,e)=>{const t=gi(ie,r.__scopeTooltip),{forceMount:n=t.forceMount,side:o="top",...i}=r,d=Ue(ie,r.__scopeTooltip);return a.jsx(s.Presence,{present:n||d.open,children:d.disableHoverableContent?a.jsx(hn,{side:o,...i,ref:e}):a.jsx(bi,{side:o,...i,ref:e})})}),bi=x.forwardRef((r,e)=>{const t=Ue(ie,r.__scopeTooltip),n=pt(ie,r.__scopeTooltip),o=x.useRef(null),i=s.useComposedRefs(e,o),[d,g]=x.useState(null),{trigger:f,onClose:p}=t,v=o.current,{onPointerInTransitChange:h}=n,l=x.useCallback(()=>{g(null),h(!1)},[h]),u=x.useCallback((c,m)=>{const b=c.currentTarget,j={x:c.clientX,y:c.clientY},T=xi(j,b.getBoundingClientRect()),C=yi(j,T),w=Ci(m.getBoundingClientRect()),E=ji([...C,...w]);g(E),h(!0)},[h]);return x.useEffect(()=>()=>l(),[l]),x.useEffect(()=>{if(f&&v){const c=b=>u(b,v),m=b=>u(b,f);return f.addEventListener("pointerleave",c),v.addEventListener("pointerleave",m),()=>{f.removeEventListener("pointerleave",c),v.removeEventListener("pointerleave",m)}}},[f,v,u,l]),x.useEffect(()=>{if(d){const c=m=>{const b=m.target,j={x:m.clientX,y:m.clientY},T=(f==null?void 0:f.contains(b))||(v==null?void 0:v.contains(b)),C=!Ti(j,d);T?l():C&&(l(),p())};return document.addEventListener("pointermove",c),()=>document.removeEventListener("pointermove",c)}},[f,v,d,p,l]),a.jsx(hn,{...r,ref:i})}),[vi,hi]=Ve(Le,{isInside:!1}),hn=x.forwardRef((r,e)=>{const{__scopeTooltip:t,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:d,...g}=r,f=Ue(ie,t),p=Be(t),{onClose:v}=f;return x.useEffect(()=>(document.addEventListener(et,v),()=>document.removeEventListener(et,v)),[v]),x.useEffect(()=>{if(f.trigger){const h=l=>{const u=l.target;u!=null&&u.contains(f.trigger)&&v()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[f.trigger,v]),a.jsx(s.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:d,onFocusOutside:h=>h.preventDefault(),onDismiss:v,children:a.jsxs(s.Content,{"data-state":f.stateAttribute,...p,...g,ref:e,style:{...g.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(s.Slottable,{children:n}),a.jsx(vi,{scope:t,isInside:!0,children:a.jsx(P.Root,{id:f.contentId,role:"tooltip",children:o||n})})]})})});vn.displayName=ie;var wn="TooltipArrow",wi=x.forwardRef((r,e)=>{const{__scopeTooltip:t,...n}=r,o=Be(t);return hi(wn,t).isInside?null:a.jsx(s.Arrow,{...o,...n,ref:e})});wi.displayName=wn;function xi(r,e){const t=Math.abs(e.top-r.y),n=Math.abs(e.bottom-r.y),o=Math.abs(e.right-r.x),i=Math.abs(e.left-r.x);switch(Math.min(t,n,o,i)){case i:return"left";case o:return"right";case t:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function yi(r,e,t=5){const n=[];switch(e){case"top":n.push({x:r.x-t,y:r.y+t},{x:r.x+t,y:r.y+t});break;case"bottom":n.push({x:r.x-t,y:r.y-t},{x:r.x+t,y:r.y-t});break;case"left":n.push({x:r.x+t,y:r.y-t},{x:r.x+t,y:r.y+t});break;case"right":n.push({x:r.x-t,y:r.y-t},{x:r.x-t,y:r.y+t});break}return n}function Ci(r){const{top:e,right:t,bottom:n,left:o}=r;return[{x:o,y:e},{x:t,y:e},{x:t,y:n},{x:o,y:n}]}function Ti(r,e){const{x:t,y:n}=r;let o=!1;for(let i=0,d=e.length-1;i<e.length;d=i++){const g=e[i].x,f=e[i].y,p=e[d].x,v=e[d].y;f>n!=v>n&&t<(p-g)*(n-f)/(v-f)+g&&(o=!o)}return o}function ji(r){const e=r.slice();return e.sort((t,n)=>t.x<n.x?-1:t.x>n.x?1:t.y<n.y?-1:t.y>n.y?1:0),Si(e)}function Si(r){if(r.length<=1)return r.slice();const e=[];for(let n=0;n<r.length;n++){const o=r[n];for(;e.length>=2;){const i=e[e.length-1],d=e[e.length-2];if((i.x-d.x)*(o.y-d.y)>=(i.y-d.y)*(o.x-d.x))e.pop();else break}e.push(o)}e.pop();const t=[];for(let n=r.length-1;n>=0;n--){const o=r[n];for(;t.length>=2;){const i=t[t.length-1],d=t[t.length-2];if((i.x-d.x)*(o.y-d.y)>=(i.y-d.y)*(o.x-d.x))t.pop();else break}t.push(o)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Ni=fn,Pi=gn,ki=bn,xn=vn;const Vt={primary:"bg-main-600 text-white",secondary:"bg-grey-800 text-white",white:"bg-grey-50 text-grey-800"},Ei={sm:"p-2 text-[13px] rounded",md:"p-2 text-sm font-normal rounded"},Oi=Ni,Ai=Pi,Fi=ki,Ii=(r,e)=>{const t=e==="primary"?fe.colors.main[600]:e==="secondary"?fe.colors.grey[800]:fe.colors.grey[50],n=e==="white"?fe.colors.grey[200]:t;return{...{width:"12px",height:"12px",backgroundColor:t,border:"1px solid",borderColor:n,opacity:e==="white"?1:.9,transform:"rotate(45deg)",borderRadius:"2px",zIndex:20},...{"top-left":{left:"1.5rem",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-center":{left:"50%",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-right":{right:"1.5rem",top:"100%",transform:"translateX(50%) translateY(-60%) rotate(45deg)"},"bottom-left":{left:"1.5rem",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-center":{left:"50%",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-right":{right:"1.5rem",bottom:"100%",transform:"translateX(50%) translateY(60%) rotate(45deg)"},right:{right:"100%",top:"50%",transform:"translateX(60%) translateY(-50%) rotate(45deg)"},left:{left:"100%",top:"50%",transform:"translateX(-60%) translateY(-50%) rotate(45deg)"}}[r]}},yn=x.forwardRef(({className:r,variant:e="primary",size:t="pc",position:n="top-center",sideOffset:o=8,icLeft:i,icRight:d,children:g,bubbleTip:f=!0,...p},v)=>{const h=Ii(n,e),l=n.startsWith("top"),u=n==="right"||n==="left"?n:l?"top":"bottom",c=n==="right"||n==="left"?"center":n.includes("left")?"start":n.includes("right")?"end":"center";return a.jsx(xn,{ref:v,avoidCollisions:!1,sideOffset:f?o:4,side:u,align:c,style:{zIndex:50},...p,children:a.jsxs("div",{className:s.cn("relative z-50 rounded",f&&"m-1",e==="white"&&"border-border border",Vt[e],r),children:[f&&a.jsx("div",{style:h,className:"absolute z-20"}),a.jsx("div",{className:"absolute inset-0 z-30 bg-white"}),a.jsxs("div",{className:s.cn("relative z-40 flex max-w-sm items-center font-normal",e!=="white"&&"bg-opacity-90",Vt[e],Ei[t]),children:[i&&a.jsx("span",{className:"mr-1",children:i}),a.jsx("span",{className:"whitespace-pre-wrap break-keep",children:g}),d&&a.jsx("span",{className:"ml-1",children:d})]})]})})});yn.displayName=xn.displayName;const ft=({label:r,variant:e="secondary",size:t="md",children:n,icLeft:o,icRight:i,position:d="top-center",bubbleTip:g=!0,forceMount:f,isMobile:p=ge})=>{const[v,h]=x.useState(!1),l=x.useRef(null),u=typeof p=="number"?p:3e3,c=()=>{v?h(!1):(h(!0),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>h(!1),u))};return x.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]),a.jsx(Oi,{delayDuration:200,children:a.jsxs(Ai,{delayDuration:200,children:[a.jsx(Fi,{asChild:!0,"data-state":v?"delayed-open":"closed",onMouseLeave:ge?void 0:()=>h(!1),onMouseEnter:ge?void 0:()=>h(!0),onClick:ge?c:void 0,children:n}),a.jsx(yn,{variant:e,size:t,icLeft:o,icRight:i,position:d,forceMount:f||v||void 0,bubbleTip:g,children:r})]})})};function Di(r,e=[]){let t=[];function n(i,d){const g=x.createContext(d),f=t.length;t=[...t,d];function p(h){const{scope:l,children:u,...c}=h,m=(l==null?void 0:l[r][f])||g,b=x.useMemo(()=>c,Object.values(c));return a.jsx(m.Provider,{value:b,children:u})}function v(h,l){const u=(l==null?void 0:l[r][f])||g,c=x.useContext(u);if(c)return c;if(d!==void 0)return d;throw new Error(`\`${h}\` must be used within \`${i}\``)}return p.displayName=i+"Provider",[p,v]}const o=()=>{const i=t.map(d=>x.createContext(d));return function(g){const f=(g==null?void 0:g[r])||i;return x.useMemo(()=>({[`__scope${r}`]:{...g,[r]:f}}),[g,f])}};return o.scopeName=r,[n,Mi(o,...e)]}function Mi(...r){const e=r[0];if(r.length===1)return e;const t=()=>{const n=r.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const d=n.reduce((g,{useScope:f,scopeName:p})=>{const h=f(i)[`__scope${p}`];return{...g,...h}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:d}),[d])}};return t.scopeName=e.scopeName,t}var _i="Toggle",Cn=x.forwardRef((r,e)=>{const{pressed:t,defaultPressed:n=!1,onPressedChange:o,...i}=r,[d=!1,g]=s.useControllableState({prop:t,onChange:o,defaultProp:n});return a.jsx(s.Primitive.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":r.disabled?"":void 0,...i,ref:e,onClick:s.composeEventHandlers(r.onClick,()=>{r.disabled||g(!d)})})});Cn.displayName=_i;var le="ToggleGroup",[Tn,Hi]=Di(le,[s.createRovingFocusGroupScope]),jn=s.createRovingFocusGroupScope(),gt=I.forwardRef((r,e)=>{const{type:t,...n}=r;if(t==="single"){const o=n;return a.jsx(Ri,{...o,ref:e})}if(t==="multiple"){const o=n;return a.jsx(Vi,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${le}\``)});gt.displayName=le;var[Sn,Nn]=Tn(le),Ri=I.forwardRef((r,e)=>{const{value:t,defaultValue:n,onValueChange:o=()=>{},...i}=r,[d,g]=s.useControllableState({prop:t,defaultProp:n,onChange:o});return a.jsx(Sn,{scope:r.__scopeToggleGroup,type:"single",value:d?[d]:[],onItemActivate:g,onItemDeactivate:I.useCallback(()=>g(""),[g]),children:a.jsx(Pn,{...i,ref:e})})}),Vi=I.forwardRef((r,e)=>{const{value:t,defaultValue:n,onValueChange:o=()=>{},...i}=r,[d=[],g]=s.useControllableState({prop:t,defaultProp:n,onChange:o}),f=I.useCallback(v=>g((h=[])=>[...h,v]),[g]),p=I.useCallback(v=>g((h=[])=>h.filter(l=>l!==v)),[g]);return a.jsx(Sn,{scope:r.__scopeToggleGroup,type:"multiple",value:d,onItemActivate:f,onItemDeactivate:p,children:a.jsx(Pn,{...i,ref:e})})});gt.displayName=le;var[Bi,Li]=Tn(le),Pn=I.forwardRef((r,e)=>{const{__scopeToggleGroup:t,disabled:n=!1,rovingFocus:o=!0,orientation:i,dir:d,loop:g=!0,...f}=r,p=jn(t),v=s.useDirection(d),h={role:"group",dir:v,...f};return a.jsx(Bi,{scope:t,rovingFocus:o,disabled:n,children:o?a.jsx(s.Root$1,{asChild:!0,...p,orientation:i,dir:v,loop:g,children:a.jsx(s.Primitive.div,{...h,ref:e})}):a.jsx(s.Primitive.div,{...h,ref:e})})}),De="ToggleGroupItem",kn=I.forwardRef((r,e)=>{const t=Nn(De,r.__scopeToggleGroup),n=Li(De,r.__scopeToggleGroup),o=jn(r.__scopeToggleGroup),i=t.value.includes(r.value),d=n.disabled||r.disabled,g={...r,pressed:i,disabled:d},f=I.useRef(null);return n.rovingFocus?a.jsx(s.Item,{asChild:!0,...o,focusable:!d,active:i,ref:f,children:a.jsx(Bt,{...g,ref:e})}):a.jsx(Bt,{...g,ref:e})});kn.displayName=De;var Bt=I.forwardRef((r,e)=>{const{__scopeToggleGroup:t,value:n,...o}=r,i=Nn(De,t),d={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},g=i.type==="single"?d:void 0;return a.jsx(Cn,{...g,...o,ref:e,onPressedChange:f=>{f?i.onItemActivate(n):i.onItemDeactivate(n)}})}),En=gt,On=kn;const Ui=s.cva("inline-flex items-center justify-center gap-1 whitespace-nowrap text-sm font-normal ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none",{variants:{variant:{solid:"disabled:bg-muted disabled:text-muted-foreground disabled:border-muted",outline:"disabled:bg-white disabled:text-muted disabled:border-border"},theme:{primary:"bg-white border border-main-200 text-primary hover:bg-main-100",secondary:"bg-white border border-grey-200 text-secondary hover:bg-grey-100"},size:{xs:"h-8 py-1 px-2 text-sm",sm:"h-9 py-2 px-3 text-sm",md:"h-11 px-3 py-3 text-sm",lg:"h-[52px] px-12 py-[14px] text-base",icon:"h-auto w-auto"},shape:{square:"rounded-lg",rounded:"rounded-full"},checked:{true:"",false:""}},compoundVariants:[{theme:"primary",checked:!0,className:"bg-main-600 border-main-600 text-white hover:bg-main-700 hover:border-main-700"},{theme:"secondary",checked:!0,className:"bg-grey-800 border-grey-800 text-white hover:bg-grey-900 hover:border-grey-900"}],defaultVariants:{theme:"primary",size:"md",shape:"square",checked:!1}}),bt=x.createContext({theme:"primary",size:"md",shape:"square"});bt.displayName="ToggleGroupContext";const vt=x.forwardRef(({className:r,variant:e,theme:t,size:n,shape:o,children:i,...d},g)=>a.jsx(bt.Provider,{value:{theme:t,size:n,shape:o},children:a.jsx(En,{ref:g,className:s.cn("flex items-center justify-center gap-1",r),...d,children:i})}));vt.displayName=En.displayName;const ve=x.forwardRef(({className:r,checked:e=!1,children:t,...n},o)=>{const i=x.useContext(bt);return a.jsx(On,{ref:o,className:s.cn(Ui({theme:n.theme||i.theme||"primary",size:n.size||i.size||"md",shape:n.shape||i.shape||"square",variant:n.variant||"outline",checked:e}),r),...n,children:t})});ve.displayName=On.displayName;const An=({options:r,variant:e="outline",theme:t="primary",size:n="md",shape:o="square",value:i,onChange:d,nullable:g=!0,className:f})=>a.jsx(vt,{type:"single",value:i,onValueChange:p=>{!g&&!p||d(p)},theme:t,size:n,shape:o,className:f,children:r.map(p=>p.tooltip?a.jsx(ft,{label:p.tooltip.label,variant:p.tooltip.variant,size:p.tooltip.size,icLeft:p.tooltip.icLeft,icRight:p.tooltip.icRight,position:p.tooltip.position,bubbleTip:p.tooltip.bubbleTip,children:a.jsx(ve,{value:p.value,checked:i===p.value,disabled:p.disabled,variant:e,children:p.label})},p.value):a.jsx(ve,{value:p.value,checked:i===p.value,disabled:p.disabled,variant:e,children:p.label},p.value))}),Fn=({options:r,variant:e="outline",theme:t="primary",size:n="md",shape:o="square",value:i,onChange:d,className:g})=>a.jsx(vt,{type:"multiple",value:i,onValueChange:d,theme:t,size:n,shape:o,className:g,children:r.map(f=>f.tooltip?a.jsx(ft,{label:f.tooltip.label,variant:f.tooltip.variant,size:f.tooltip.size,icLeft:f.tooltip.icLeft,icRight:f.tooltip.icRight,position:f.tooltip.position,bubbleTip:f.tooltip.bubbleTip,children:a.jsx(ve,{value:f.value,checked:(i||[]).includes(f.value),disabled:f.disabled,variant:e,children:f.label})},f.value):a.jsx(ve,{value:f.value,checked:(i||[]).includes(f.value),disabled:f.disabled,variant:e,children:f.label},f.value))}),Wi={Single:An,Multiple:Fn};exports.AlertDialog=P.AlertDialog;exports.AlertDialogAction=P.AlertDialogAction;exports.AlertDialogCancel=P.AlertDialogCancel;exports.AlertDialogContent=P.AlertDialogContent;exports.AlertDialogDescription=P.AlertDialogDescription;exports.AlertDialogFooter=P.AlertDialogFooter;exports.AlertDialogHeader=P.AlertDialogHeader;exports.AlertDialogOverlay=P.AlertDialogOverlay;exports.AlertDialogPortal=P.AlertDialogPortal;exports.AlertDialogTitle=P.AlertDialogTitle;exports.AlertDialogTrigger=P.AlertDialogTrigger;exports.AlertForm=P.AlertForm;exports.Dialog=P.Dialog;exports.DialogClose=P.DialogClose;exports.DialogContent=P.DialogContent;exports.DialogDescription=P.DialogDescription;exports.DialogFooter=P.DialogFooter;exports.DialogForm=P.DialogForm;exports.DialogHeader=P.DialogHeader;exports.DialogOverlay=P.DialogOverlay;exports.DialogPortal=P.DialogPortal;exports.DialogTitle=P.DialogTitle;exports.DialogTrigger=P.DialogTrigger;exports.ModalForm=P.ModalForm;exports.PortalContainer=P.PortalContainer;exports.Toast=P.Toast;exports.ToastAction=P.ToastAction;exports.ToastClose=P.ToastClose;exports.ToastDescription=P.ToastDescription;exports.ToastForm=P.ToastForm;exports.ToastProvider=P.ToastProvider;exports.ToastTitle=P.ToastTitle;exports.ToastViewport=P.ToastViewport;exports.toastPositionVariants=P.toastPositionVariants;exports.toastVariants=P.toastVariants;exports.Accordion=no;exports.CheckboxBooleanFormField=ri;exports.CheckboxGroupFormField=ni;exports.ContentsCard=ur;exports.DefaultFormField=oi;exports.DropdownRadioFormField=ai;exports.EventCard=jo;exports.LoadingCard=mr;exports.MainBannerImage=Za;exports.MainBannerLoading=mn;exports.Multiple=Fn;exports.PremiumCard=Ka;exports.RadioFormField=ii;exports.Single=An;exports.StringArrayFormField=si;exports.StringInputField=li;exports.TitleTagCard=ei;exports.ToggleButtonGroup=Wi;exports.Tooltip=ft;exports.UrlFormField=ci;exports.usePortal=di;
|
package/dist/components.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as i, jsxs as N, Fragment as vt } from "react/jsx-runtime";
|
|
2
2
|
import { c as Ee } from "./index-BFsbj9HY.js";
|
|
3
|
-
import { p as wt, E as fe, G as yt, P as ae, r as oe, s as sr, q as Xe, Q as so, K as lo, W as lr, c as _, I as xt, F as U, T as pe, B as te, a as Ie, X as ge, h as le, i as Z, j as ce, f as K, d as cr, L as Ct, k as de, n as co, g as uo, D as mo, R as po, l as fo, Y as dr, m as Tt, o as go, C as ho, Z as ur, _ as bo, z as vo, $ as wo, J as yo, a0 as xo, a1 as Co, a2 as mr, a3 as To, a4 as No, V as Po } from "./index-
|
|
3
|
+
import { p as wt, E as fe, G as yt, P as ae, r as oe, s as sr, q as Xe, Q as so, K as lo, W as lr, c as _, I as xt, F as U, T as pe, B as te, a as Ie, X as ge, h as le, i as Z, j as ce, f as K, d as cr, L as Ct, k as de, n as co, g as uo, D as mo, R as po, l as fo, Y as dr, m as Tt, o as go, C as ho, Z as ur, _ as bo, z as vo, $ as wo, J as yo, a0 as xo, a1 as Co, a2 as mr, a3 as To, a4 as No, V as Po } from "./index-Bd9-63p2.js";
|
|
4
4
|
import * as w from "react";
|
|
5
5
|
import R, { useState as pr, useEffect as So } from "react";
|
|
6
6
|
import { a as $, d as ct, c as Eo } from "./index-CEwEyzHV.js";
|
|
7
|
-
import { S as V } from "./index-
|
|
8
|
-
import { p as ne, R as Oo } from "./portal-container-
|
|
9
|
-
import { c as Ks, d as Js, e as Qs, f as el, g as tl, h as rl, i as nl, j as ol, k as al, l as il, m as sl, A as ll, D as cl, n as dl, a as ul, o as ml, q as pl, b as fl, r as gl, s as hl, u as bl, v as vl, w as wl, M as yl, P as xl, z as Cl, B as Tl, C as Nl, E as Pl, T as Sl, F as El, G as Ol, H as kl, x as Al, y as Il } from "./portal-container-
|
|
7
|
+
import { S as V } from "./index-DSblJs9H.js";
|
|
8
|
+
import { p as ne, R as Oo } from "./portal-container-BGDcl4t1.js";
|
|
9
|
+
import { c as Ks, d as Js, e as Qs, f as el, g as tl, h as rl, i as nl, j as ol, k as al, l as il, m as sl, A as ll, D as cl, n as dl, a as ul, o as ml, q as pl, b as fl, r as gl, s as hl, u as bl, v as vl, w as wl, M as yl, P as xl, z as Cl, B as Tl, C as Nl, E as Pl, T as Sl, F as El, G as Ol, H as kl, x as Al, y as Il } from "./portal-container-BGDcl4t1.js";
|
|
10
10
|
var Nt = "Collapsible", [ko, fr] = wt(Nt), [Ao, Pt] = ko(Nt), gr = w.forwardRef(
|
|
11
11
|
(r, e) => {
|
|
12
12
|
const {
|
|
@@ -1958,8 +1958,8 @@ const Ms = ({
|
|
|
1958
1958
|
variant: "outline",
|
|
1959
1959
|
theme: "secondary",
|
|
1960
1960
|
className: _(
|
|
1961
|
+
"min-w-fit justify-between text-medium14 text-sm data-[state=open]:border-grey-800 md:text-base",
|
|
1961
1962
|
!l.value && "data-[state=closed]:text-muted data-[state=open]:text-grey-800",
|
|
1962
|
-
"min-w-fit justify-between text-medium14 data-[state=open]:border-grey-800",
|
|
1963
1963
|
u && "border-red-500 data-[state=closed]:text-grey-800"
|
|
1964
1964
|
),
|
|
1965
1965
|
icRight: /* @__PURE__ */ i(
|
|
@@ -8813,7 +8813,7 @@ const Id = l.forwardRef(({ className: e, children: t, absolute: n, ...r }, o) =>
|
|
|
8813
8813
|
{
|
|
8814
8814
|
ref: o,
|
|
8815
8815
|
id: s,
|
|
8816
|
-
className: I("flex h-5 items-center", n && "absolute top-full"),
|
|
8816
|
+
className: I("flex h-5 items-center", n && "absolute top-full mt-2"),
|
|
8817
8817
|
...r,
|
|
8818
8818
|
children: /* @__PURE__ */ c(ot.Error, { className: I("h-5 text-sm", e), children: u })
|
|
8819
8819
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),i=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),i=require("./index-_qlrPVFv.cjs");function s({className:n,type:e="text",...r}){return t.jsx("div",{role:"presentation",className:i.cn("animate-pulse rounded-md",e==="text"&&"bg-grey-200/80",e==="background"&&"bg-grey-100/50",e==="image"&&"bg-grey-200/80",n),...r})}exports.Skeleton=s;
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
`)},wr=function(){var e=parseInt(document.body.getAttribute(Le)||"0",10);return isFinite(e)?e:0},A1=function(){l.useEffect(function(){return document.body.setAttribute(Le,(wr()+1).toString()),function(){var e=wr()-1;e<=0?document.body.removeAttribute(Le):document.body.setAttribute(Le,e.toString())}},[])},P1=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;A1();var s=l.useMemo(function(){return S1(o)},[o]);return l.createElement(j1,{styles:E1(s,!t,o,n?"":"!important")})},on=!1;if(typeof window<"u")try{var pt=Object.defineProperty({},"passive",{get:function(){return on=!0,!0}});window.addEventListener("test",pt,pt),window.removeEventListener("test",pt,pt)}catch{on=!1}var Ee=on?{passive:!1}:!1,_1=function(e){return e.tagName==="TEXTAREA"},Eo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_1(e)&&n[t]==="visible")},L1=function(e){return Eo(e,"overflowY")},N1=function(e){return Eo(e,"overflowX")},Cr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ao(e,r);if(o){var s=Po(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},O1=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},k1=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ao=function(e,t){return e==="v"?L1(t):N1(t)},Po=function(e,t){return e==="v"?O1(t):k1(t)},I1=function(e,t){return e==="h"&&t==="rtl"?-1:1},T1=function(e,t,n,r,o){var s=I1(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,u=t.contains(c),d=!1,h=a>0,f=0,m=0;do{var p=Po(e,c),v=p[0],g=p[1],x=p[2],w=g-x-s*v;(v||w)&&Ao(e,c)&&(f+=w,m+=v),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(h&&(Math.abs(f)<1||!o)||!h&&(Math.abs(m)<1||!o))&&(d=!0),d},ht=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},br=function(e){return[e.deltaX,e.deltaY]},yr=function(e){return e&&"current"in e?e.current:e},D1=function(e,t){return e[0]===t[0]&&e[1]===t[1]},F1=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},V1=0,Ae=[];function B1(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(V1++)[0],s=l.useState(jo)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=a1([e.lockRef.current],(e.shards||[]).map(yr),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var w=ht(g),C=n.current,b="deltaX"in g?g.deltaX:C[0]-w[0],y="deltaY"in g?g.deltaY:C[1]-w[1],R,j=g.target,S=Math.abs(b)>Math.abs(y)?"h":"v";if("touches"in g&&S==="h"&&j.type==="range")return!1;var A=Cr(S,j);if(!A)return!0;if(A?R=S:(R=S==="v"?"h":"v",A=Cr(S,j)),!A)return!1;if(!r.current&&"changedTouches"in g&&(b||y)&&(r.current=R),!R)return!0;var T=r.current||R;return T1(T,x,g,T==="h"?b:y,!0)},[]),u=l.useCallback(function(g){var x=g;if(!(!Ae.length||Ae[Ae.length-1]!==s)){var w="deltaY"in x?br(x):ht(x),C=t.current.filter(function(R){return R.name===x.type&&(R.target===x.target||x.target===R.shadowParent)&&D1(R.delta,w)})[0];if(C&&C.should){x.cancelable&&x.preventDefault();return}if(!C){var b=(a.current.shards||[]).map(yr).filter(Boolean).filter(function(R){return R.contains(x.target)}),y=b.length>0?c(x,b[0]):!a.current.noIsolation;y&&x.cancelable&&x.preventDefault()}}},[]),d=l.useCallback(function(g,x,w,C){var b={name:g,delta:x,target:w,should:C,shadowParent:$1(w)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(y){return y!==b})},1)},[]),h=l.useCallback(function(g){n.current=ht(g),r.current=void 0},[]),f=l.useCallback(function(g){d(g.type,br(g),g.target,c(g,e.lockRef.current))},[]),m=l.useCallback(function(g){d(g.type,ht(g),g.target,c(g,e.lockRef.current))},[]);l.useEffect(function(){return Ae.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",u,Ee),document.addEventListener("touchmove",u,Ee),document.addEventListener("touchstart",h,Ee),function(){Ae=Ae.filter(function(g){return g!==s}),document.removeEventListener("wheel",u,Ee),document.removeEventListener("touchmove",u,Ee),document.removeEventListener("touchstart",h,Ee)}},[]);var p=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(s,{styles:F1(o)}):null,p?l.createElement(P1,{gapMode:e.gapMode}):null)}function $1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const H1=g1(So,B1);var Ln=l.forwardRef(function(e,t){return l.createElement(Dt,re({},e,{ref:t,sideCar:H1}))});Ln.classNames=Dt.classNames;var sn=["Enter"," "],Z1=["ArrowDown","PageUp","Home"],_o=["ArrowUp","PageDown","End"],G1=[...Z1,..._o],W1={ltr:[...sn,"ArrowRight"],rtl:[...sn,"ArrowLeft"]},U1={ltr:["ArrowLeft"],rtl:["ArrowRight"]},nt="Menu",[Qe,K1,z1]=fn(nt),[Se,Lo]=Ie(nt,[z1,Sn,tt]),rt=Sn(),No=tt(),[Oo,be]=Se(nt),[Y1,ot]=Se(nt),ko=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,c=rt(t),[u,d]=l.useState(null),h=l.useRef(!1),f=q(s),m=Pt(o);return l.useEffect(()=>{const p=()=>{h.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>h.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),i.jsx(En,{...c,children:i.jsx(Oo,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:d,children:i.jsx(Y1,{scope:t,onClose:l.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:h,dir:m,modal:a,children:r})})})};ko.displayName=nt;var X1="MenuAnchor",Nn=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=rt(n);return i.jsx(po,{...o,...r,ref:t})});Nn.displayName=X1;var On="MenuPortal",[q1,Io]=Se(On,{forceMount:void 0}),To=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=be(On,t);return i.jsx(q1,{scope:t,forceMount:n,children:i.jsx(Ce,{present:n||s.open,children:i.jsx(An,{asChild:!0,container:o,children:r})})})};To.displayName=On;var J="MenuContent",[Q1,kn]=Se(J),Do=l.forwardRef((e,t)=>{const n=Io(J,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=be(J,e.__scopeMenu),a=ot(J,e.__scopeMenu);return i.jsx(Qe.Provider,{scope:e.__scopeMenu,children:i.jsx(Ce,{present:r||s.open,children:i.jsx(Qe.Slot,{scope:e.__scopeMenu,children:a.modal?i.jsx(J1,{...o,ref:t}):i.jsx(eu,{...o,ref:t})})})})}),J1=l.forwardRef((e,t)=>{const n=be(J,e.__scopeMenu),r=l.useRef(null),o=U(t,r);return l.useEffect(()=>{const s=r.current;if(s)return yo(s)},[]),i.jsx(In,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eu=l.forwardRef((e,t)=>{const n=be(J,e.__scopeMenu);return i.jsx(In,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),In=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:m,onDismiss:p,disableOutsideScroll:v,...g}=e,x=be(J,n),w=ot(J,n),C=rt(n),b=No(n),y=K1(n),[R,j]=l.useState(null),S=l.useRef(null),A=U(t,S,x.onContentChange),T=l.useRef(0),I=l.useRef(""),B=l.useRef(0),P=l.useRef(null),F=l.useRef("right"),D=l.useRef(0),W=v?Ln:l.Fragment,k=v?{as:me,allowPinchZoom:!0}:void 0,Z=M=>{var ae,Ze;const V=I.current+M,$=y().filter(Q=>!Q.disabled),ne=document.activeElement,$e=(ae=$.find(Q=>Q.ref.current===ne))==null?void 0:ae.textValue,He=$.map(Q=>Q.textValue),at=fu(He,V,$e),ye=(Ze=$.find(Q=>Q.textValue===at))==null?void 0:Ze.ref.current;(function Q(Ge){I.current=Ge,window.clearTimeout(T.current),Ge!==""&&(T.current=window.setTimeout(()=>Q(""),1e3))})(V),ye&&setTimeout(()=>ye.focus())};l.useEffect(()=>()=>window.clearTimeout(T.current),[]),Wr();const _=l.useCallback(M=>{var $,ne;return F.current===(($=P.current)==null?void 0:$.side)&&hu(M,(ne=P.current)==null?void 0:ne.area)},[]);return i.jsx(Q1,{scope:n,searchRef:I,onItemEnter:l.useCallback(M=>{_(M)&&M.preventDefault()},[_]),onItemLeave:l.useCallback(M=>{var V;_(M)||((V=S.current)==null||V.focus(),j(null))},[_]),onTriggerLeave:l.useCallback(M=>{_(M)&&M.preventDefault()},[_]),pointerGraceTimerRef:B,onPointerGraceIntentChange:l.useCallback(M=>{P.current=M},[]),children:i.jsx(W,{...k,children:i.jsx(mn,{asChild:!0,trapped:o,onMountAutoFocus:N(s,M=>{var V;M.preventDefault(),(V=S.current)==null||V.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:i.jsx(Nt,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:m,onDismiss:p,children:i.jsx(Pn,{asChild:!0,...b,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:j,onEntryFocus:N(u,M=>{w.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(ho,{role:"menu","aria-orientation":"vertical","data-state":es(x.open),"data-radix-menu-content":"",dir:w.dir,...C,...g,ref:A,style:{outline:"none",...g.style},onKeyDown:N(g.onKeyDown,M=>{const $=M.target.closest("[data-radix-menu-content]")===M.currentTarget,ne=M.ctrlKey||M.altKey||M.metaKey,$e=M.key.length===1;$&&(M.key==="Tab"&&M.preventDefault(),!ne&&$e&&Z(M.key));const He=S.current;if(M.target!==He||!G1.includes(M.key))return;M.preventDefault();const ye=y().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);_o.includes(M.key)&&ye.reverse(),uu(ye)}),onBlur:N(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(T.current),I.current="")}),onPointerMove:N(e.onPointerMove,Je(M=>{const V=M.target,$=D.current!==M.clientX;if(M.currentTarget.contains(V)&&$){const ne=M.clientX>D.current?"right":"left";F.current=ne,D.current=M.clientX}}))})})})})})})});Do.displayName=J;var tu="MenuGroup",Tn=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(G.div,{role:"group",...r,ref:t})});Tn.displayName=tu;var nu="MenuLabel",Fo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(G.div,{...r,ref:t})});Fo.displayName=nu;var Mt="MenuItem",Rr="menu.itemSelect",Ft=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=ot(Mt,e.__scopeMenu),c=kn(Mt,e.__scopeMenu),u=U(t,s),d=l.useRef(!1),h=()=>{const f=s.current;if(!n&&f){const m=new CustomEvent(Rr,{bubbles:!0,cancelable:!0});f.addEventListener(Rr,p=>r==null?void 0:r(p),{once:!0}),pn(f,m),m.defaultPrevented?d.current=!1:a.onClose()}};return i.jsx(Vo,{...o,ref:u,disabled:n,onClick:N(e.onClick,h),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),d.current=!0},onPointerUp:N(e.onPointerUp,f=>{var m;d.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:N(e.onKeyDown,f=>{const m=c.searchRef.current!=="";n||m&&f.key===" "||sn.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Ft.displayName=Mt;var Vo=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=kn(Mt,n),c=No(n),u=l.useRef(null),d=U(t,u),[h,f]=l.useState(!1),[m,p]=l.useState("");return l.useEffect(()=>{const v=u.current;v&&p((v.textContent??"").trim())},[s.children]),i.jsx(Qe.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:i.jsx(_n,{asChild:!0,...c,focusable:!r,children:i.jsx(G.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:d,onPointerMove:N(e.onPointerMove,Je(v=>{r?a.onItemLeave(v):(a.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:N(e.onPointerLeave,Je(v=>a.onItemLeave(v))),onFocus:N(e.onFocus,()=>f(!0)),onBlur:N(e.onBlur,()=>f(!1))})})})}),ru="MenuCheckboxItem",Bo=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(Wo,{scope:e.__scopeMenu,checked:n,children:i.jsx(Ft,{role:"menuitemcheckbox","aria-checked":St(n)?"mixed":n,...o,ref:t,"data-state":Vn(n),onSelect:N(o.onSelect,()=>r==null?void 0:r(St(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Bo.displayName=ru;var $o="MenuRadioGroup",[ou,su]=Se($o,{value:void 0,onValueChange:()=>{}}),Ho=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=q(r);return i.jsx(ou,{scope:e.__scopeMenu,value:n,onValueChange:s,children:i.jsx(Tn,{...o,ref:t})})});Ho.displayName=$o;var Zo="MenuRadioItem",Go=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=su(Zo,e.__scopeMenu),s=n===o.value;return i.jsx(Wo,{scope:e.__scopeMenu,checked:s,children:i.jsx(Ft,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Vn(s),onSelect:N(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});Go.displayName=Zo;var Dn="MenuItemIndicator",[Wo,iu]=Se(Dn,{checked:!1}),Uo=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=iu(Dn,n);return i.jsx(Ce,{present:r||St(s.checked)||s.checked===!0,children:i.jsx(G.span,{...o,ref:t,"data-state":Vn(s.checked)})})});Uo.displayName=Dn;var au="MenuSeparator",Ko=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(G.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ko.displayName=au;var cu="MenuArrow",zo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=rt(n);return i.jsx(mo,{...o,...r,ref:t})});zo.displayName=cu;var Fn="MenuSub",[lu,Yo]=Se(Fn),Xo=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=be(Fn,t),a=rt(t),[c,u]=l.useState(null),[d,h]=l.useState(null),f=q(o);return l.useEffect(()=>(s.open===!1&&f(!1),()=>f(!1)),[s.open,f]),i.jsx(En,{...a,children:i.jsx(Oo,{scope:t,open:r,onOpenChange:f,content:d,onContentChange:h,children:i.jsx(lu,{scope:t,contentId:Ne(),triggerId:Ne(),trigger:c,onTriggerChange:u,children:n})})})};Xo.displayName=Fn;var ze="MenuSubTrigger",qo=l.forwardRef((e,t)=>{const n=be(ze,e.__scopeMenu),r=ot(ze,e.__scopeMenu),o=Yo(ze,e.__scopeMenu),s=kn(ze,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},h=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>h,[h]),l.useEffect(()=>{const f=c.current;return()=>{window.clearTimeout(f),u(null)}},[c,u]),i.jsx(Nn,{asChild:!0,...d,children:i.jsx(Vo,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":es(n.open),...e,ref:At(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,Je(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:N(e.onPointerLeave,Je(f=>{var p,v;h();const m=(p=n.content)==null?void 0:p.getBoundingClientRect();if(m){const g=(v=n.content)==null?void 0:v.dataset.side,x=g==="right",w=x?-5:5,C=m[x?"left":"right"],b=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+w,y:f.clientY},{x:C,y:m.top},{x:b,y:m.top},{x:b,y:m.bottom},{x:C,y:m.bottom}],side:g}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,f=>{var p;const m=s.searchRef.current!=="";e.disabled||m&&f.key===" "||W1[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});qo.displayName=ze;var Qo="MenuSubContent",Jo=l.forwardRef((e,t)=>{const n=Io(J,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=be(J,e.__scopeMenu),a=ot(J,e.__scopeMenu),c=Yo(Qo,e.__scopeMenu),u=l.useRef(null),d=U(t,u);return i.jsx(Qe.Provider,{scope:e.__scopeMenu,children:i.jsx(Ce,{present:r||s.open,children:i.jsx(Qe.Slot,{scope:e.__scopeMenu,children:i.jsx(In,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:d,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:h=>{var f;a.isUsingKeyboardRef.current&&((f=u.current)==null||f.focus()),h.preventDefault()},onCloseAutoFocus:h=>h.preventDefault(),onFocusOutside:N(e.onFocusOutside,h=>{h.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,h=>{a.onClose(),h.preventDefault()}),onKeyDown:N(e.onKeyDown,h=>{var p;const f=h.currentTarget.contains(h.target),m=U1[a.dir].includes(h.key);f&&m&&(s.onOpenChange(!1),(p=c.trigger)==null||p.focus(),h.preventDefault())})})})})})});Jo.displayName=Qo;function es(e){return e?"open":"closed"}function St(e){return e==="indeterminate"}function Vn(e){return St(e)?"indeterminate":e?"checked":"unchecked"}function uu(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function du(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function fu(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=du(e,Math.max(s,0));o.length===1&&(a=a.filter(d=>d!==n));const u=a.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function pu(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s].x,u=t[s].y,d=t[a].x,h=t[a].y;u>r!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(o=!o)}return o}function hu(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return pu(n,t)}function Je(e){return t=>t.pointerType==="mouse"?e(t):void 0}var mu=ko,gu=Nn,vu=To,xu=Do,wu=Tn,Cu=Fo,bu=Ft,yu=Bo,Ru=Ho,Mu=Go,Su=Uo,ju=Ko,Eu=zo,Au=Xo,Pu=qo,_u=Jo,Bn="DropdownMenu",[Lu,Kd]=Ie(Bn,[Lo]),z=Lo(),[Nu,ts]=Lu(Bn),ns=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,u=z(t),d=l.useRef(null),[h=!1,f]=Te({prop:o,defaultProp:s,onChange:a});return i.jsx(Nu,{scope:t,triggerId:Ne(),triggerRef:d,contentId:Ne(),open:h,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(m=>!m),[f]),modal:c,children:i.jsx(mu,{...u,open:h,onOpenChange:f,dir:r,modal:c,children:n})})};ns.displayName=Bn;var rs="DropdownMenuTrigger",os=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=ts(rs,n),a=z(n);return i.jsx(gu,{asChild:!0,...a,children:i.jsx(G.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:At(t,s.triggerRef),onPointerDown:N(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:N(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});os.displayName=rs;var Ou="DropdownMenuPortal",ss=e=>{const{__scopeDropdownMenu:t,...n}=e,r=z(t);return i.jsx(vu,{...r,...n})};ss.displayName=Ou;var is="DropdownMenuContent",as=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ts(is,n),s=z(n),a=l.useRef(!1);return i.jsx(xu,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,c=>{var u;a.current||(u=o.triggerRef.current)==null||u.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:N(e.onInteractOutside,c=>{const u=c.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,h=u.button===2||d;(!o.modal||h)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});as.displayName=is;var ku="DropdownMenuGroup",Iu=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(wu,{...o,...r,ref:t})});Iu.displayName=ku;var Tu="DropdownMenuLabel",cs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Cu,{...o,...r,ref:t})});cs.displayName=Tu;var Du="DropdownMenuItem",ls=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(bu,{...o,...r,ref:t})});ls.displayName=Du;var Fu="DropdownMenuCheckboxItem",us=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(yu,{...o,...r,ref:t})});us.displayName=Fu;var Vu="DropdownMenuRadioGroup",ds=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Ru,{...o,...r,ref:t})});ds.displayName=Vu;var Bu="DropdownMenuRadioItem",fs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Mu,{...o,...r,ref:t})});fs.displayName=Bu;var $u="DropdownMenuItemIndicator",ps=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Su,{...o,...r,ref:t})});ps.displayName=$u;var Hu="DropdownMenuSeparator",hs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(ju,{...o,...r,ref:t})});hs.displayName=Hu;var Zu="DropdownMenuArrow",Gu=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Eu,{...o,...r,ref:t})});Gu.displayName=Zu;var Wu=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,a=z(t),[c=!1,u]=Te({prop:r,defaultProp:s,onChange:o});return i.jsx(Au,{...a,open:c,onOpenChange:u,children:n})},Uu="DropdownMenuSubTrigger",ms=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Pu,{...o,...r,ref:t})});ms.displayName=Uu;var Ku="DropdownMenuSubContent",gs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(_u,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gs.displayName=Ku;var zu=ns,Yu=os,Xu=ss,vs=as,xs=cs,ws=ls,Cs=us,qu=ds,bs=fs,Qu=ps,ys=hs,Ju=Wu,Rs=ms,Ms=gs;function ed(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var td=["color"],nd=E.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ed(e,td);return E.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),E.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const rd=zu,od=Yu,sd=Ju,id=qu,Ss=l.forwardRef(({className:e,inset:t,children:n,...r},o)=>i.jsxs(Rs,{ref:o,className:O("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-grey-100 focus:bg-grey-100 data-[state=open]:bg-grey-100 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,i.jsx(nd,{className:"ml-auto"})]}));Ss.displayName=Rs.displayName;const js=l.forwardRef(({className:e,...t},n)=>i.jsx(Ms,{ref:n,className:O("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 ml-1 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg",e),...t}));js.displayName=Ms.displayName;const Es=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>i.jsx(Xu,{children:i.jsx(vs,{ref:r,sideOffset:t,className:O("z-50 w-fit min-w-[8rem] overflow-hidden overflow-y-auto rounded-lg border bg-background p-1 text-foreground shadow-md md:max-h-[50vh]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Es.displayName=vs.displayName;const As=l.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(ws,{ref:r,className:O("relative flex cursor-pointer select-none items-center gap-2 rounded-lg px-2 py-1 text-sm outline-none transition-colors hover:bg-grey-100 focus:bg-grey-100 focus:text-grey-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));As.displayName=ws.displayName;const Ps=l.forwardRef(({className:e,children:t,checked:n,...r},o)=>i.jsxs(Cs,{ref:o,className:O("relative flex cursor-pointer select-none items-center gap-2 rounded-sm py-1 pl-8 pr-2 text-sm outline-none transition-colors hover:bg-grey-100 focus:bg-grey-100 focus:text-grey-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[i.jsx("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:n?i.jsx(Re.Checkbox,{type:"checked",size:"16"}):i.jsx(Re.Checkbox,{type:"blank",size:"16"})}),t]}));Ps.displayName=Cs.displayName;const _s=l.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(bs,{ref:r,className:O("relative flex cursor-default select-none items-center gap-2 rounded-sm py-1 pl-8 pr-2 text-sm outline-none transition-colors hover:bg-grey-100 focus:bg-grey-100 focus:text-grey-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[i.jsxs("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[i.jsx(Re.Radio,{type:"blank",size:"16"}),i.jsx(Qu,{children:i.jsx(Re.Radio,{type:"checked",fill:un.colors.main[600],size:"16"})})]}),t]}));_s.displayName=bs.displayName;const an=l.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(xs,{ref:r,className:O("p-1 text-xs font-semibold",t&&"pl-8",e),...n}));an.displayName=xs.displayName;const cn=l.forwardRef(({className:e,...t},n)=>i.jsx(ys,{ref:n,className:O("-mx-1 my-1 h-px bg-grey-100",e),...t}));cn.displayName=ys.displayName;const Ls=l.forwardRef(({children:e,items:t,defaultValue:n=[],defaultOpen:r,onOpenChange:o,onChange:s,size:a,column:c=1,multiple:u=!1,className:d},h)=>{var C;const[f,m]=E.useState(n),p=E.useRef(null),[v,g]=E.useState(void 0);l.useImperativeHandle(h,()=>({setSelectedItems:m}),[]),l.useEffect(()=>{s&&s(f)},[f,s]),E.useLayoutEffect(()=>{const b=()=>{if(p.current){const y=p.current.getBoundingClientRect();g(y.width)}};return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[e,a]);const x=b=>{m(y=>{switch(b.containerType){case"checkbox":return y.some(R=>R.value===b.value&&R.containerKey===b.containerKey)?y.filter(R=>!(R.value===b.value&&R.containerKey===b.containerKey)):[...y,b];case"radio":return u?[...y.filter(R=>!(R.containerType==="radio"&&R.containerKey===b.containerKey)),b]:[b];case"default":return u?[...y.filter(R=>!(R.containerType==="default"&&R.containerKey===b.containerKey)),b]:[b];default:return y}})},w=b=>{m(y=>y.filter(R=>!(R.value===b.value&&R.containerKey===b.containerKey)))};return i.jsxs(rd,{defaultOpen:r,onOpenChange:o,children:[i.jsx(od,{asChild:!0,className:"group outline-none",ref:p,style:{width:a==="fit"?"fit-content":a==="full"?"100%":a||"auto"},children:e}),i.jsx(Es,{style:{width:a==="fit"?"fit-content":a==="full"?`${(C=p.current)==null?void 0:C.offsetWidth}px`:a||"auto",minWidth:a==="fit"&&v?`${v}px`:void 0},className:d,children:t.map((b,y)=>i.jsx(Ns,{container:b,handleSelect:x,handleDeselect:w,selectedItems:f,column:c},y))})]})});Ls.displayName="Dropdown";const Ns=({container:e,handleSelect:t,handleDeselect:n,selectedItems:r,column:o=1})=>{var m;const{containerType:s,containerKey:a,containerTitle:c,isShowTitle:u,isShowSeparator:d,items:h}=e,f=p=>p.some(v=>v.items.some(g=>g.type==="default"||g.type==="checkbox"||g.type==="radio"?r.some(x=>x.value===g.value&&x.containerKey===v.containerKey&&x.containerType===v.containerType):g.type==="sub"?f(g.items):!1));return i.jsxs(l.Fragment,{children:[u&&i.jsx(an,{inset:!1,children:c}),s==="radio"?i.jsx(id,{value:(m=r.find(p=>p.containerType==="radio"&&p.containerKey===a))==null?void 0:m.value,onValueChange:p=>{var g;const v=h.find(x=>x.type==="radio"&&x.value===p);v&&(t==null||t({containerType:e.containerType,containerKey:e.containerKey,label:v.label,value:v.value}),(g=v.onSelect)==null||g.call(v))},style:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`},children:h.map((p,v)=>{if(p.type!=="radio")return null;const g=r.some(w=>w.containerType==="radio"&&w.value===p.value&&w.containerKey===a);return i.jsxs(_s,{value:p.value,disabled:p.disabled,className:`${g?"bg-grey-100 text-main-600":""}`,onSelect:w=>w.preventDefault(),children:[p.icLeft&&i.jsx("span",{children:p.icLeft}),i.jsx("div",{className:"flex items-center justify-start gap-1",children:p.label}),p.icRight&&i.jsx("span",{className:"ml-auto",children:p.icRight})]},v)})}):i.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`,gap:"4px"},children:h.map((p,v)=>{const g=(p.type==="default"||p.type==="checkbox")&&r.some(w=>w.value===p.value&&w.containerKey===a&&w.containerType===s),x="bg-grey-100 text-main-600";switch(p.type){case"default":return i.jsxs(As,{onSelect:()=>{var C;t==null||t({containerType:s,containerKey:a,label:p.label,value:p.value}),(C=p.onSelect)==null||C.call(p)},disabled:p.disabled,className:`${g?x:""} ${p.disabled?"cursor-default text-muted":""}`,children:[p.icLeft&&i.jsx("span",{children:p.icLeft}),i.jsx("div",{className:"flex items-center justify-start gap-1",children:p.label}),p.icRight&&i.jsx("span",{className:"ml-auto",children:p.icRight})]},v);case"checkbox":const w=g;return i.jsxs(Ps,{checked:w,onSelect:C=>C.preventDefault(),onCheckedChange:C=>{var b;C?(t==null||t({containerType:s,containerKey:a,label:p.label,value:p.value}),(b=p.onSelect)==null||b.call(p)):n==null||n({containerType:s,containerKey:a,label:p.label,value:p.value})},disabled:p.disabled,className:`${w?x:""}`,children:[p.icLeft&&i.jsx("span",{className:"",children:p.icLeft}),i.jsx("div",{className:"flex items-center justify-start gap-1",children:p.label}),p.icRight&&i.jsx("span",{className:"ml-auto",children:p.icRight})]},v);case"separator":return i.jsx("div",{className:"px-2",style:{gridColumn:`span ${o}`},children:i.jsx(cn,{className:"bg-grey-200"},v)},v);case"title":return i.jsx(an,{inset:p.inset,children:p.label},v);case"action":return i.jsx("div",{className:"flex justify-center p-1",children:i.jsx(hn,{icLeft:p.icLeft,icRight:p.icRight,disabled:p.disabled,onClick:p.onClick,variant:"outline",size:"sm",className:"w-full",theme:"secondary",children:p.label})},v);case"sub":return i.jsxs(sd,{children:[i.jsxs(Ss,{inset:p.inset,className:`${f(p.items)?x:""}`,children:[p.icLeft&&i.jsx("span",{children:p.icLeft}),i.jsx("span",{className:"w-full px-1",children:p.label}),p.icRight&&i.jsx("span",{className:"ml-auto",children:p.icRight})]}),i.jsx(js,{children:p.items.map((C,b)=>i.jsx(Ns,{container:C,handleSelect:t,handleDeselect:n,selectedItems:r},b))})]},v);default:return null}})}),d&&i.jsx(cn,{className:"h-1"})]})},Vt=({className:e,...t})=>i.jsx(_t,{className:O("flex",e),...t});Vt.Col=({className:e,...t})=>i.jsx(_t,{className:O("flex flex-col items-start",e),...t});Vt.Row=({className:e,...t})=>i.jsx(_t,{className:O("flex flex-row justify-start",e),...t});function Os(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var $n="Checkbox",[ad,zd]=Ie($n),[cd,ld]=ad($n),ks=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:a,disabled:c,value:u="on",onCheckedChange:d,form:h,...f}=e,[m,p]=l.useState(null),v=U(t,y=>p(y)),g=l.useRef(!1),x=m?h||!!m.closest("form"):!0,[w=!1,C]=Te({prop:o,defaultProp:s,onChange:d}),b=l.useRef(w);return l.useEffect(()=>{const y=m==null?void 0:m.form;if(y){const R=()=>C(b.current);return y.addEventListener("reset",R),()=>y.removeEventListener("reset",R)}},[m,C]),i.jsxs(cd,{scope:n,state:w,disabled:c,children:[i.jsx(G.button,{type:"button",role:"checkbox","aria-checked":he(w)?"mixed":w,"aria-required":a,"data-state":Ts(w),"data-disabled":c?"":void 0,disabled:c,value:u,...f,ref:v,onKeyDown:N(e.onKeyDown,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:N(e.onClick,y=>{C(R=>he(R)?!0:!R),x&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})}),x&&i.jsx(dd,{control:m,bubbles:!g.current,name:r,value:u,checked:w,required:a,disabled:c,form:h,style:{transform:"translateX(-100%)"},defaultChecked:he(s)?!1:s})]})});ks.displayName=$n;var Is="CheckboxIndicator",ud=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=ld(Is,n);return i.jsx(Ce,{present:r||he(s.state)||s.state===!0,children:i.jsx(G.span,{"data-state":Ts(s.state),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ud.displayName=Is;var dd=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...s}=e,a=l.useRef(null),c=Os(n),u=Rn(t);l.useEffect(()=>{const h=a.current,f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==n&&p){const v=new Event("click",{bubbles:r});h.indeterminate=he(n),p.call(h,he(n)?!1:n),h.dispatchEvent(v)}},[c,n,r]);const d=l.useRef(he(n)?!1:n);return i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??d.current,...s,tabIndex:-1,ref:a,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function he(e){return e==="indeterminate"}function Ts(e){return he(e)?"indeterminate":e?"checked":"unchecked"}var Ds=ks;const Fs=l.forwardRef(({className:e,checked:t,...n},r)=>i.jsx(Ds,{ref:r,className:O("shrink-0 rounded-sm disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:i.jsx(Re.Checkbox,{type:t?"checked":"blank"})}));Fs.displayName=Ds.displayName;var fd=e=>e.type==="checkbox",pd=e=>e instanceof Date,Vs=e=>e==null;const hd=e=>typeof e=="object";var Ve=e=>!Vs(e)&&!Array.isArray(e)&&hd(e)&&!pd(e),md=e=>Ve(e)&&e.target?fd(e.target)?e.target.checked:e.target.value:e,gd=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vd=(e,t)=>e.has(gd(t)),xd=e=>{const t=e.constructor&&e.constructor.prototype;return Ve(t)&&t.hasOwnProperty("isPrototypeOf")},wd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Hn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(wd&&(e instanceof Blob||e instanceof FileList))&&(n||Ve(e)))if(t=n?[]:{},!n&&!xd(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Hn(e[r]));else return e;return t}var Bs=e=>Array.isArray(e)?e.filter(Boolean):[],ln=e=>e===void 0,K=(e,t,n)=>{if(!t||!Ve(e))return n;const r=Bs(t.split(/[,[\].]+?/)).reduce((o,s)=>Vs(o)?o:o[s],e);return ln(r)||r===e?ln(e[t])?n:e[t]:r},Mr=e=>typeof e=="boolean",Cd=e=>/^\w*$/.test(e),bd=e=>Bs(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Sr=(e,t,n)=>{let r=-1;const o=Cd(t)?[t]:bd(t),s=o.length,a=s-1;for(;++r<s;){const c=o[r];let u=n;if(r!==a){const d=e[c];u=Ve(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(c==="__proto__")return;e[c]=u,e=e[c]}return e};const jr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Er={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$s=E.createContext(null),st=()=>E.useContext($s),yd=e=>{const{children:t,...n}=e;return E.createElement($s.Provider,{value:n},t)};var Rd=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Er.all&&(t._proxyFormState[a]=!r||Er.all),n&&(n[a]=!0),e[a]}});return o},Md=e=>Ve(e)&&!Object.keys(e).length,Sd=(e,t,n,r)=>{n(e);const{name:o,...s}=e;return Md(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(a=>t[a]===!r)},jd=e=>Array.isArray(e)?e:[e],Hs=(e,t,n)=>!e||!t||e===t||jd(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Zs(e){const t=E.useRef(e);t.current=e,E.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Ed(e){const t=st(),{control:n=t.control,disabled:r,name:o,exact:s}=e||{},[a,c]=E.useState(n._formState),u=E.useRef(!0),d=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=E.useRef(o);return h.current=o,Zs({disabled:r,next:f=>u.current&&Hs(h.current,f.name,s)&&Sd(f,d.current,n._updateFormState)&&c({...n._formState,...f}),subject:n._subjects.state}),E.useEffect(()=>(u.current=!0,d.current.isValid&&n._updateValid(!0),()=>{u.current=!1}),[n]),Rd(a,n,d.current,!1)}var Ad=e=>typeof e=="string",Pd=(e,t,n,r,o)=>Ad(e)?K(n,e,o):Array.isArray(e)?e.map(s=>K(n,s)):n;function _d(e){const t=st(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:a}=e||{},c=E.useRef(r);c.current=r,Zs({disabled:s,subject:n._subjects.values,next:h=>{Hs(c.current,h.name,a)&&d(Hn(Pd(c.current,n._names,h.values||n._formValues,!1,o)))}});const[u,d]=E.useState(n._getWatch(r,o));return E.useEffect(()=>n._removeUnmounted()),u}function Gs(e){const t=st(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s}=e,a=vd(o._names.array,n),c=_d({control:o,name:n,defaultValue:K(o._formValues,n,K(o._defaultValues,n,e.defaultValue)),exact:!0}),u=Ed({control:o,name:n,exact:!0}),d=E.useRef(o.register(n,{...e.rules,value:c,...Mr(e.disabled)?{disabled:e.disabled}:{}}));return E.useEffect(()=>{const h=o._options.shouldUnregister||s,f=(m,p)=>{const v=K(o._fields,m);v&&v._f&&(v._f.mount=p)};if(f(n,!0),h){const m=Hn(K(o._options.defaultValues,n));Sr(o._defaultValues,n,m),ln(K(o._formValues,n))&&Sr(o._formValues,n,m)}return()=>{(a?h&&!o._state.action:h)?o.unregister(n):f(n,!1)}},[n,o,a,s]),E.useEffect(()=>{K(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:K(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:c,...Mr(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:E.useCallback(h=>d.current.onChange({target:{value:md(h),name:n},type:jr.CHANGE}),[n]),onBlur:E.useCallback(()=>d.current.onBlur({target:{value:K(o._formValues,n),name:n},type:jr.BLUR}),[n,o]),ref:E.useCallback(h=>{const f=K(o._fields,n);f&&h&&(f._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:m=>h.setCustomValidity(m),reportValidity:()=>h.reportValidity()})},[o._fields,n])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!K(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!K(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!K(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!K(u.validatingFields,n)},error:{enumerable:!0,get:()=>K(u.errors,n)}})}}const Ld=e=>e.render(Gs(e));var Nd="Label",Ws=l.forwardRef((e,t)=>i.jsx(G.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ws.displayName=Nd;var Us=Ws;const Od=Lt("text-sm font-normal leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Zn=l.forwardRef(({className:e,...t},n)=>i.jsx(Us,{ref:n,className:O(Od(),e),...t}));Zn.displayName=Us.displayName;const Ks=Lt("inline-flex items-center justify-center whitespace-nowrap gap-1",{variants:{size:{sm:"px-1 py-0.5 text-[13px] font-normal",md:"px-1 py-1 text-[13px] font-normal",lg:"px-2 py-1 text-sm font-medium"},shape:{square:"rounded",round:"rounded-full"},variant:{ad:"rounded-none rounded-bl-xl text-sm font-normal px-2 py-1 absolute top-0 right-0 bg-grey-800 text-white","solid-primary-50":"bg-main-50 text-main-600","solid-primary-100":"bg-main-100 text-main-600","solid-primary-600":"bg-main-600 text-main-50","solid-secondary-100":"bg-grey-100 text-grey-600","solid-secondary-400":"bg-grey-400 text-white","solid-secondary-800":"bg-grey-800 text-white","solid-red-400":"text-red-600 bg-grey-200/50","solid-red-white":"text-red-400 bg-white","outline-primary-600":"bg-main-100 border border-main-600 text-main-600","outline-secondary-200":"bg-white border border-grey-200 text-grey-800",etc:""}},defaultVariants:{variant:"solid-primary-50",size:"sm",shape:"square"}});function zs({className:e,variant:t,size:n,shape:r,icLeft:o,icRight:s,...a}){return i.jsxs("div",{className:O(Ks({size:n,shape:r,variant:t}),e),...a,children:[o&&i.jsx("div",{children:o})," ",i.jsx("div",{children:a.children}),s&&i.jsx("div",{children:s})," "]})}const Be=({children:e,className:t,type:n="text"})=>{switch(n){case"accent":return i.jsx(Ys,{children:e});case"error":return i.jsx(Xs,{children:e});case"mute":return i.jsx(qs,{children:e});default:return i.jsx("span",{className:O("text-grey-800",t),children:e})}},Ys=({children:e,className:t,color:n="text-main-600",tagSize:r="sm",asTag:o=!1})=>o?i.jsx(zs,{className:O(n,t),size:r,variant:"solid-red-400",children:e}):i.jsx("span",{className:O(n,t),children:e}),Xs=({children:e,className:t})=>i.jsx("span",{className:O("text-red-600",t),children:e}),qs=({children:e,className:t})=>i.jsx("span",{className:O("text-muted",t),children:e});Be.Accent=Ys;Be.Error=Xs;Be.Mute=qs;const kd=yd,Qs=l.createContext({}),Id=({...e})=>i.jsx(Qs.Provider,{value:{name:e.name},children:i.jsx(Ld,{...e})}),it=()=>{const e=l.useContext(Qs),t=l.useContext(Js),{getFieldState:n,formState:r}=st(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},Js=l.createContext({}),ei=l.forwardRef(({className:e,...t},n)=>{const r=l.useId();return i.jsx(Js.Provider,{value:{id:r},children:i.jsx("div",{ref:n,className:O("relative flex flex-col gap-2",e),...t})})});ei.displayName="FormItem";const ti=l.forwardRef(({className:e,required:t,heading:n,label:r,description:o,children:s,...a},c)=>{const{error:u,formItemId:d}=it();return i.jsxs(Zn,{ref:c,className:O("relative",u&&"text-red-400","space-y-1 text-base font-semibold text-grey-800",e),htmlFor:d,...a,children:[t&&i.jsx("div",{className:"absolute right-full top-0 -mt-1 mr-0.5 text-lg text-red-600",children:"*"}),n&&i.jsx(Be,{className:"font-semibold",children:n}),r&&i.jsx(jt,{className:"text-sm font-normal text-grey-800",children:r}),o&&i.jsx(jt,{className:"whitespace-pre-wrap",children:o}),s]})});ti.displayName="FormLabel";const ni=l.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:s}=it();return i.jsx(me,{ref:t,id:r,"aria-describedby":n?`${o} ${s}`:`${o}`,"aria-invalid":!!n,...e})});ni.displayName="FormControl";const jt=l.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=it();return i.jsx("div",{ref:n,id:r,className:O("whitespace-pre-wrap text-sm font-normal text-grey-600",e),...t})});jt.displayName="FormDescription";const ri=l.forwardRef(({className:e,children:t,absolute:n,...r},o)=>{var d;const{error:s,formMessageId:a}=it(),c=(s==null?void 0:s.message)||((d=s==null?void 0:s.root)==null?void 0:d.message),u=s?c||"":t;return u?i.jsx("div",{ref:o,id:a,className:O("flex h-5 items-center",n&&"absolute top-full"),...r,children:i.jsx(Be.Error,{className:O("h-5 text-sm",e),children:u})}):null});ri.displayName="FormMessage";var Gn="Radio",[Td,oi]=Ie(Gn),[Dd,Fd]=Td(Gn),si=l.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:s,disabled:a,value:c="on",onCheck:u,form:d,...h}=e,[f,m]=l.useState(null),p=U(t,x=>m(x)),v=l.useRef(!1),g=f?d||!!f.closest("form"):!0;return i.jsxs(Dd,{scope:n,checked:o,disabled:a,children:[i.jsx(G.button,{type:"button",role:"radio","aria-checked":o,"data-state":ci(o),"data-disabled":a?"":void 0,disabled:a,value:c,...h,ref:p,onClick:N(e.onClick,x=>{o||u==null||u(),g&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),g&&i.jsx(Vd,{control:f,bubbles:!v.current,name:r,value:c,checked:o,required:s,disabled:a,form:d,style:{transform:"translateX(-100%)"}})]})});si.displayName=Gn;var ii="RadioIndicator",ai=l.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,s=Fd(ii,n);return i.jsx(Ce,{present:r||s.checked,children:i.jsx(G.span,{"data-state":ci(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t})})});ai.displayName=ii;var Vd=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,s=l.useRef(null),a=Os(n),c=Rn(t);return l.useEffect(()=>{const u=s.current,d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==n&&f){const m=new Event("click",{bubbles:r});f.call(u,n),u.dispatchEvent(m)}},[a,n,r]),i.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ci(e){return e?"checked":"unchecked"}var Bd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Wn="RadioGroup",[$d,Yd]=Ie(Wn,[tt,oi]),li=tt(),ui=oi(),[Hd,Zd]=$d(Wn),di=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:s,required:a=!1,disabled:c=!1,orientation:u,dir:d,loop:h=!0,onValueChange:f,...m}=e,p=li(n),v=Pt(d),[g,x]=Te({prop:s,defaultProp:o,onChange:f});return i.jsx(Hd,{scope:n,name:r,required:a,disabled:c,value:g,onValueChange:x,children:i.jsx(Pn,{asChild:!0,...p,orientation:u,dir:v,loop:h,children:i.jsx(G.div,{role:"radiogroup","aria-required":a,"aria-orientation":u,"data-disabled":c?"":void 0,dir:v,...m,ref:t})})})});di.displayName=Wn;var fi="RadioGroupItem",pi=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,s=Zd(fi,n),a=s.disabled||r,c=li(n),u=ui(n),d=l.useRef(null),h=U(t,d),f=s.value===o.value,m=l.useRef(!1);return l.useEffect(()=>{const p=g=>{Bd.includes(g.key)&&(m.current=!0)},v=()=>m.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",v)}},[]),i.jsx(_n,{asChild:!0,...c,focusable:!a,active:f,children:i.jsx(si,{disabled:a,required:s.required,checked:f,...u,...o,name:s.name,ref:h,onCheck:()=>s.onValueChange(o.value),onKeyDown:N(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:N(o.onFocus,()=>{var p;m.current&&((p=d.current)==null||p.click())})})})});pi.displayName=fi;var Gd="RadioGroupIndicator",Wd=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=ui(n);return i.jsx(ai,{...o,...r,ref:t})});Wd.displayName=Gd;var hi=di,mi=pi;const gi=l.forwardRef(({className:e,...t},n)=>i.jsx(hi,{className:O("grid gap-2",e),...t,ref:n}));gi.displayName=hi.displayName;const vi=l.forwardRef(({className:e,checked:t,size:n,...r},o)=>i.jsx(mi,{ref:o,className:O("aspect-square rounded-full text-primary focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:i.jsx(Re.Radio,{type:t?"checked":"blank",size:n})}));vi.displayName=mi.displayName;const Ud=l.forwardRef(({className:e,type:t="text",icon:n,error:r,iconPosition:o="right",...s},a)=>i.jsxs("div",{className:O("relative flex w-full items-center text-sm"),children:[n&&o==="left"&&i.jsx("span",{className:"absolute left-4",children:n}),i.jsx("input",{type:t,className:O("h-11 w-full rounded-lg border border-border bg-background px-4 py-2.5 text-sm font-normal outline-none transition-all focus:border-foreground disabled:cursor-not-allowed disabled:opacity-50 md:text-base",n&&o==="left"&&"pl-10",n&&o==="right"&&"pr-10",r&&"border-red-600 focus:border-red-600",e),ref:a,...s}),n&&o==="right"&&i.jsx("span",{className:"absolute right-4",children:n})]})),xi=l.forwardRef(({className:e,error:t,...n},r)=>i.jsx("textarea",{className:O("flex min-h-[72px] w-full rounded-md border bg-background px-3 py-2.5 text-sm font-normal placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-base",t?"border-red-600 focus:border-red-600":"border-border focus:border-grey-800",e),ref:r,...n}));xi.displayName="Textarea";exports.Anchor=po;exports.Arrow=mo;exports.Box=_t;exports.Branch=_c;exports.Button=hn;exports.Callout=Ye;exports.Checkbox=Fs;exports.Content=ho;exports.DismissableLayer=Nt;exports.Dropdown=Ls;exports.FlexBox=Vt;exports.FocusScope=mn;exports.Form=kd;exports.FormControl=ni;exports.FormDescription=jt;exports.FormField=Id;exports.FormItem=ei;exports.FormLabel=ti;exports.FormMessage=ri;exports.Icon=Re;exports.Input=Ud;exports.Item=_n;exports.Label=Zn;exports.Portal=An;exports.Presence=Ce;exports.Primitive=G;exports.RadioGroup=gi;exports.RadioGroupItem=vi;exports.ReactRemoveScroll=Ln;exports.Root=Pc;exports.Root$1=Pn;exports.Root2=En;exports.Slot=me;exports.Slottable=Br;exports.Tag=zs;exports.Text=Be;exports.Textarea=xi;exports.buttonVariants=$r;exports.cn=O;exports.composeEventHandlers=N;exports.createCollection=fn;exports.createContext2=sc;exports.createContextScope=Ie;exports.createPopperScope=Sn;exports.createRovingFocusGroupScope=tt;exports.cva=Lt;exports.dispatchDiscreteCustomEvent=pn;exports.hideOthers=yo;exports.tagVariants=Ks;exports.useCallbackRef=q;exports.useComposedRefs=U;exports.useControllableState=Te;exports.useController=Gs;exports.useDirection=Pt;exports.useFocusGuards=Wr;exports.useFormContext=st;exports.useFormField=it;exports.useId=Ne;exports.useLayoutEffect2=ge;
|
|
41
|
+
`)},V1=0,Ae=[];function B1(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(V1++)[0],s=l.useState(jo)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=a1([e.lockRef.current],(e.shards||[]).map(yr),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var w=ht(g),C=n.current,b="deltaX"in g?g.deltaX:C[0]-w[0],y="deltaY"in g?g.deltaY:C[1]-w[1],R,j=g.target,S=Math.abs(b)>Math.abs(y)?"h":"v";if("touches"in g&&S==="h"&&j.type==="range")return!1;var A=Cr(S,j);if(!A)return!0;if(A?R=S:(R=S==="v"?"h":"v",A=Cr(S,j)),!A)return!1;if(!r.current&&"changedTouches"in g&&(b||y)&&(r.current=R),!R)return!0;var T=r.current||R;return T1(T,x,g,T==="h"?b:y,!0)},[]),u=l.useCallback(function(g){var x=g;if(!(!Ae.length||Ae[Ae.length-1]!==s)){var w="deltaY"in x?br(x):ht(x),C=t.current.filter(function(R){return R.name===x.type&&(R.target===x.target||x.target===R.shadowParent)&&D1(R.delta,w)})[0];if(C&&C.should){x.cancelable&&x.preventDefault();return}if(!C){var b=(a.current.shards||[]).map(yr).filter(Boolean).filter(function(R){return R.contains(x.target)}),y=b.length>0?c(x,b[0]):!a.current.noIsolation;y&&x.cancelable&&x.preventDefault()}}},[]),d=l.useCallback(function(g,x,w,C){var b={name:g,delta:x,target:w,should:C,shadowParent:$1(w)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(y){return y!==b})},1)},[]),h=l.useCallback(function(g){n.current=ht(g),r.current=void 0},[]),f=l.useCallback(function(g){d(g.type,br(g),g.target,c(g,e.lockRef.current))},[]),m=l.useCallback(function(g){d(g.type,ht(g),g.target,c(g,e.lockRef.current))},[]);l.useEffect(function(){return Ae.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",u,Ee),document.addEventListener("touchmove",u,Ee),document.addEventListener("touchstart",h,Ee),function(){Ae=Ae.filter(function(g){return g!==s}),document.removeEventListener("wheel",u,Ee),document.removeEventListener("touchmove",u,Ee),document.removeEventListener("touchstart",h,Ee)}},[]);var p=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(s,{styles:F1(o)}):null,p?l.createElement(P1,{gapMode:e.gapMode}):null)}function $1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const H1=g1(So,B1);var Ln=l.forwardRef(function(e,t){return l.createElement(Dt,re({},e,{ref:t,sideCar:H1}))});Ln.classNames=Dt.classNames;var sn=["Enter"," "],Z1=["ArrowDown","PageUp","Home"],_o=["ArrowUp","PageDown","End"],G1=[...Z1,..._o],W1={ltr:[...sn,"ArrowRight"],rtl:[...sn,"ArrowLeft"]},U1={ltr:["ArrowLeft"],rtl:["ArrowRight"]},nt="Menu",[Qe,K1,z1]=fn(nt),[Se,Lo]=Ie(nt,[z1,Sn,tt]),rt=Sn(),No=tt(),[Oo,be]=Se(nt),[Y1,ot]=Se(nt),ko=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,c=rt(t),[u,d]=l.useState(null),h=l.useRef(!1),f=q(s),m=Pt(o);return l.useEffect(()=>{const p=()=>{h.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>h.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),i.jsx(En,{...c,children:i.jsx(Oo,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:d,children:i.jsx(Y1,{scope:t,onClose:l.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:h,dir:m,modal:a,children:r})})})};ko.displayName=nt;var X1="MenuAnchor",Nn=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=rt(n);return i.jsx(po,{...o,...r,ref:t})});Nn.displayName=X1;var On="MenuPortal",[q1,Io]=Se(On,{forceMount:void 0}),To=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=be(On,t);return i.jsx(q1,{scope:t,forceMount:n,children:i.jsx(Ce,{present:n||s.open,children:i.jsx(An,{asChild:!0,container:o,children:r})})})};To.displayName=On;var J="MenuContent",[Q1,kn]=Se(J),Do=l.forwardRef((e,t)=>{const n=Io(J,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=be(J,e.__scopeMenu),a=ot(J,e.__scopeMenu);return i.jsx(Qe.Provider,{scope:e.__scopeMenu,children:i.jsx(Ce,{present:r||s.open,children:i.jsx(Qe.Slot,{scope:e.__scopeMenu,children:a.modal?i.jsx(J1,{...o,ref:t}):i.jsx(eu,{...o,ref:t})})})})}),J1=l.forwardRef((e,t)=>{const n=be(J,e.__scopeMenu),r=l.useRef(null),o=U(t,r);return l.useEffect(()=>{const s=r.current;if(s)return yo(s)},[]),i.jsx(In,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eu=l.forwardRef((e,t)=>{const n=be(J,e.__scopeMenu);return i.jsx(In,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),In=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:m,onDismiss:p,disableOutsideScroll:v,...g}=e,x=be(J,n),w=ot(J,n),C=rt(n),b=No(n),y=K1(n),[R,j]=l.useState(null),S=l.useRef(null),A=U(t,S,x.onContentChange),T=l.useRef(0),I=l.useRef(""),B=l.useRef(0),P=l.useRef(null),F=l.useRef("right"),D=l.useRef(0),W=v?Ln:l.Fragment,k=v?{as:me,allowPinchZoom:!0}:void 0,Z=M=>{var ae,Ze;const V=I.current+M,$=y().filter(Q=>!Q.disabled),ne=document.activeElement,$e=(ae=$.find(Q=>Q.ref.current===ne))==null?void 0:ae.textValue,He=$.map(Q=>Q.textValue),at=fu(He,V,$e),ye=(Ze=$.find(Q=>Q.textValue===at))==null?void 0:Ze.ref.current;(function Q(Ge){I.current=Ge,window.clearTimeout(T.current),Ge!==""&&(T.current=window.setTimeout(()=>Q(""),1e3))})(V),ye&&setTimeout(()=>ye.focus())};l.useEffect(()=>()=>window.clearTimeout(T.current),[]),Wr();const _=l.useCallback(M=>{var $,ne;return F.current===(($=P.current)==null?void 0:$.side)&&hu(M,(ne=P.current)==null?void 0:ne.area)},[]);return i.jsx(Q1,{scope:n,searchRef:I,onItemEnter:l.useCallback(M=>{_(M)&&M.preventDefault()},[_]),onItemLeave:l.useCallback(M=>{var V;_(M)||((V=S.current)==null||V.focus(),j(null))},[_]),onTriggerLeave:l.useCallback(M=>{_(M)&&M.preventDefault()},[_]),pointerGraceTimerRef:B,onPointerGraceIntentChange:l.useCallback(M=>{P.current=M},[]),children:i.jsx(W,{...k,children:i.jsx(mn,{asChild:!0,trapped:o,onMountAutoFocus:N(s,M=>{var V;M.preventDefault(),(V=S.current)==null||V.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:i.jsx(Nt,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:m,onDismiss:p,children:i.jsx(Pn,{asChild:!0,...b,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:j,onEntryFocus:N(u,M=>{w.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(ho,{role:"menu","aria-orientation":"vertical","data-state":es(x.open),"data-radix-menu-content":"",dir:w.dir,...C,...g,ref:A,style:{outline:"none",...g.style},onKeyDown:N(g.onKeyDown,M=>{const $=M.target.closest("[data-radix-menu-content]")===M.currentTarget,ne=M.ctrlKey||M.altKey||M.metaKey,$e=M.key.length===1;$&&(M.key==="Tab"&&M.preventDefault(),!ne&&$e&&Z(M.key));const He=S.current;if(M.target!==He||!G1.includes(M.key))return;M.preventDefault();const ye=y().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);_o.includes(M.key)&&ye.reverse(),uu(ye)}),onBlur:N(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(T.current),I.current="")}),onPointerMove:N(e.onPointerMove,Je(M=>{const V=M.target,$=D.current!==M.clientX;if(M.currentTarget.contains(V)&&$){const ne=M.clientX>D.current?"right":"left";F.current=ne,D.current=M.clientX}}))})})})})})})});Do.displayName=J;var tu="MenuGroup",Tn=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(G.div,{role:"group",...r,ref:t})});Tn.displayName=tu;var nu="MenuLabel",Fo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(G.div,{...r,ref:t})});Fo.displayName=nu;var Mt="MenuItem",Rr="menu.itemSelect",Ft=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=ot(Mt,e.__scopeMenu),c=kn(Mt,e.__scopeMenu),u=U(t,s),d=l.useRef(!1),h=()=>{const f=s.current;if(!n&&f){const m=new CustomEvent(Rr,{bubbles:!0,cancelable:!0});f.addEventListener(Rr,p=>r==null?void 0:r(p),{once:!0}),pn(f,m),m.defaultPrevented?d.current=!1:a.onClose()}};return i.jsx(Vo,{...o,ref:u,disabled:n,onClick:N(e.onClick,h),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),d.current=!0},onPointerUp:N(e.onPointerUp,f=>{var m;d.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:N(e.onKeyDown,f=>{const m=c.searchRef.current!=="";n||m&&f.key===" "||sn.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Ft.displayName=Mt;var Vo=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=kn(Mt,n),c=No(n),u=l.useRef(null),d=U(t,u),[h,f]=l.useState(!1),[m,p]=l.useState("");return l.useEffect(()=>{const v=u.current;v&&p((v.textContent??"").trim())},[s.children]),i.jsx(Qe.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:i.jsx(_n,{asChild:!0,...c,focusable:!r,children:i.jsx(G.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:d,onPointerMove:N(e.onPointerMove,Je(v=>{r?a.onItemLeave(v):(a.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:N(e.onPointerLeave,Je(v=>a.onItemLeave(v))),onFocus:N(e.onFocus,()=>f(!0)),onBlur:N(e.onBlur,()=>f(!1))})})})}),ru="MenuCheckboxItem",Bo=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(Wo,{scope:e.__scopeMenu,checked:n,children:i.jsx(Ft,{role:"menuitemcheckbox","aria-checked":St(n)?"mixed":n,...o,ref:t,"data-state":Vn(n),onSelect:N(o.onSelect,()=>r==null?void 0:r(St(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Bo.displayName=ru;var $o="MenuRadioGroup",[ou,su]=Se($o,{value:void 0,onValueChange:()=>{}}),Ho=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=q(r);return i.jsx(ou,{scope:e.__scopeMenu,value:n,onValueChange:s,children:i.jsx(Tn,{...o,ref:t})})});Ho.displayName=$o;var Zo="MenuRadioItem",Go=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=su(Zo,e.__scopeMenu),s=n===o.value;return i.jsx(Wo,{scope:e.__scopeMenu,checked:s,children:i.jsx(Ft,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Vn(s),onSelect:N(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});Go.displayName=Zo;var Dn="MenuItemIndicator",[Wo,iu]=Se(Dn,{checked:!1}),Uo=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=iu(Dn,n);return i.jsx(Ce,{present:r||St(s.checked)||s.checked===!0,children:i.jsx(G.span,{...o,ref:t,"data-state":Vn(s.checked)})})});Uo.displayName=Dn;var au="MenuSeparator",Ko=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(G.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ko.displayName=au;var cu="MenuArrow",zo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=rt(n);return i.jsx(mo,{...o,...r,ref:t})});zo.displayName=cu;var Fn="MenuSub",[lu,Yo]=Se(Fn),Xo=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=be(Fn,t),a=rt(t),[c,u]=l.useState(null),[d,h]=l.useState(null),f=q(o);return l.useEffect(()=>(s.open===!1&&f(!1),()=>f(!1)),[s.open,f]),i.jsx(En,{...a,children:i.jsx(Oo,{scope:t,open:r,onOpenChange:f,content:d,onContentChange:h,children:i.jsx(lu,{scope:t,contentId:Ne(),triggerId:Ne(),trigger:c,onTriggerChange:u,children:n})})})};Xo.displayName=Fn;var ze="MenuSubTrigger",qo=l.forwardRef((e,t)=>{const n=be(ze,e.__scopeMenu),r=ot(ze,e.__scopeMenu),o=Yo(ze,e.__scopeMenu),s=kn(ze,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},h=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>h,[h]),l.useEffect(()=>{const f=c.current;return()=>{window.clearTimeout(f),u(null)}},[c,u]),i.jsx(Nn,{asChild:!0,...d,children:i.jsx(Vo,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":es(n.open),...e,ref:At(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,Je(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:N(e.onPointerLeave,Je(f=>{var p,v;h();const m=(p=n.content)==null?void 0:p.getBoundingClientRect();if(m){const g=(v=n.content)==null?void 0:v.dataset.side,x=g==="right",w=x?-5:5,C=m[x?"left":"right"],b=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+w,y:f.clientY},{x:C,y:m.top},{x:b,y:m.top},{x:b,y:m.bottom},{x:C,y:m.bottom}],side:g}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,f=>{var p;const m=s.searchRef.current!=="";e.disabled||m&&f.key===" "||W1[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});qo.displayName=ze;var Qo="MenuSubContent",Jo=l.forwardRef((e,t)=>{const n=Io(J,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=be(J,e.__scopeMenu),a=ot(J,e.__scopeMenu),c=Yo(Qo,e.__scopeMenu),u=l.useRef(null),d=U(t,u);return i.jsx(Qe.Provider,{scope:e.__scopeMenu,children:i.jsx(Ce,{present:r||s.open,children:i.jsx(Qe.Slot,{scope:e.__scopeMenu,children:i.jsx(In,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:d,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:h=>{var f;a.isUsingKeyboardRef.current&&((f=u.current)==null||f.focus()),h.preventDefault()},onCloseAutoFocus:h=>h.preventDefault(),onFocusOutside:N(e.onFocusOutside,h=>{h.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,h=>{a.onClose(),h.preventDefault()}),onKeyDown:N(e.onKeyDown,h=>{var p;const f=h.currentTarget.contains(h.target),m=U1[a.dir].includes(h.key);f&&m&&(s.onOpenChange(!1),(p=c.trigger)==null||p.focus(),h.preventDefault())})})})})})});Jo.displayName=Qo;function es(e){return e?"open":"closed"}function St(e){return e==="indeterminate"}function Vn(e){return St(e)?"indeterminate":e?"checked":"unchecked"}function uu(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function du(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function fu(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=du(e,Math.max(s,0));o.length===1&&(a=a.filter(d=>d!==n));const u=a.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function pu(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s].x,u=t[s].y,d=t[a].x,h=t[a].y;u>r!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(o=!o)}return o}function hu(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return pu(n,t)}function Je(e){return t=>t.pointerType==="mouse"?e(t):void 0}var mu=ko,gu=Nn,vu=To,xu=Do,wu=Tn,Cu=Fo,bu=Ft,yu=Bo,Ru=Ho,Mu=Go,Su=Uo,ju=Ko,Eu=zo,Au=Xo,Pu=qo,_u=Jo,Bn="DropdownMenu",[Lu,Kd]=Ie(Bn,[Lo]),z=Lo(),[Nu,ts]=Lu(Bn),ns=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,u=z(t),d=l.useRef(null),[h=!1,f]=Te({prop:o,defaultProp:s,onChange:a});return i.jsx(Nu,{scope:t,triggerId:Ne(),triggerRef:d,contentId:Ne(),open:h,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(m=>!m),[f]),modal:c,children:i.jsx(mu,{...u,open:h,onOpenChange:f,dir:r,modal:c,children:n})})};ns.displayName=Bn;var rs="DropdownMenuTrigger",os=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=ts(rs,n),a=z(n);return i.jsx(gu,{asChild:!0,...a,children:i.jsx(G.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:At(t,s.triggerRef),onPointerDown:N(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:N(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});os.displayName=rs;var Ou="DropdownMenuPortal",ss=e=>{const{__scopeDropdownMenu:t,...n}=e,r=z(t);return i.jsx(vu,{...r,...n})};ss.displayName=Ou;var is="DropdownMenuContent",as=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ts(is,n),s=z(n),a=l.useRef(!1);return i.jsx(xu,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,c=>{var u;a.current||(u=o.triggerRef.current)==null||u.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:N(e.onInteractOutside,c=>{const u=c.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,h=u.button===2||d;(!o.modal||h)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});as.displayName=is;var ku="DropdownMenuGroup",Iu=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(wu,{...o,...r,ref:t})});Iu.displayName=ku;var Tu="DropdownMenuLabel",cs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Cu,{...o,...r,ref:t})});cs.displayName=Tu;var Du="DropdownMenuItem",ls=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(bu,{...o,...r,ref:t})});ls.displayName=Du;var Fu="DropdownMenuCheckboxItem",us=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(yu,{...o,...r,ref:t})});us.displayName=Fu;var Vu="DropdownMenuRadioGroup",ds=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Ru,{...o,...r,ref:t})});ds.displayName=Vu;var Bu="DropdownMenuRadioItem",fs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Mu,{...o,...r,ref:t})});fs.displayName=Bu;var $u="DropdownMenuItemIndicator",ps=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Su,{...o,...r,ref:t})});ps.displayName=$u;var Hu="DropdownMenuSeparator",hs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(ju,{...o,...r,ref:t})});hs.displayName=Hu;var Zu="DropdownMenuArrow",Gu=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Eu,{...o,...r,ref:t})});Gu.displayName=Zu;var Wu=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,a=z(t),[c=!1,u]=Te({prop:r,defaultProp:s,onChange:o});return i.jsx(Au,{...a,open:c,onOpenChange:u,children:n})},Uu="DropdownMenuSubTrigger",ms=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(Pu,{...o,...r,ref:t})});ms.displayName=Uu;var Ku="DropdownMenuSubContent",gs=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=z(n);return i.jsx(_u,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gs.displayName=Ku;var zu=ns,Yu=os,Xu=ss,vs=as,xs=cs,ws=ls,Cs=us,qu=ds,bs=fs,Qu=ps,ys=hs,Ju=Wu,Rs=ms,Ms=gs;function ed(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var td=["color"],nd=E.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ed(e,td);return E.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),E.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const rd=zu,od=Yu,sd=Ju,id=qu,Ss=l.forwardRef(({className:e,inset:t,children:n,...r},o)=>i.jsxs(Rs,{ref:o,className:O("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-grey-100 focus:bg-grey-100 data-[state=open]:bg-grey-100 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,i.jsx(nd,{className:"ml-auto"})]}));Ss.displayName=Rs.displayName;const js=l.forwardRef(({className:e,...t},n)=>i.jsx(Ms,{ref:n,className:O("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 ml-1 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg",e),...t}));js.displayName=Ms.displayName;const Es=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>i.jsx(Xu,{children:i.jsx(vs,{ref:r,sideOffset:t,className:O("z-50 w-fit min-w-[8rem] overflow-hidden overflow-y-auto rounded-lg border bg-background p-1 text-foreground shadow-md md:max-h-[50vh]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Es.displayName=vs.displayName;const As=l.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(ws,{ref:r,className:O("relative flex cursor-pointer select-none items-center gap-2 rounded-lg px-2 py-1 text-sm outline-none transition-colors hover:bg-grey-100 focus:bg-grey-100 focus:text-grey-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));As.displayName=ws.displayName;const Ps=l.forwardRef(({className:e,children:t,checked:n,...r},o)=>i.jsxs(Cs,{ref:o,className:O("relative flex cursor-pointer select-none items-center gap-2 rounded-sm py-1 pl-8 pr-2 text-sm outline-none transition-colors hover:bg-grey-100 focus:bg-grey-100 focus:text-grey-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[i.jsx("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:n?i.jsx(Re.Checkbox,{type:"checked",size:"16"}):i.jsx(Re.Checkbox,{type:"blank",size:"16"})}),t]}));Ps.displayName=Cs.displayName;const _s=l.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(bs,{ref:r,className:O("relative flex cursor-default select-none items-center gap-2 rounded-sm py-1 pl-8 pr-2 text-sm outline-none transition-colors hover:bg-grey-100 focus:bg-grey-100 focus:text-grey-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[i.jsxs("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[i.jsx(Re.Radio,{type:"blank",size:"16"}),i.jsx(Qu,{children:i.jsx(Re.Radio,{type:"checked",fill:un.colors.main[600],size:"16"})})]}),t]}));_s.displayName=bs.displayName;const an=l.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(xs,{ref:r,className:O("p-1 text-xs font-semibold",t&&"pl-8",e),...n}));an.displayName=xs.displayName;const cn=l.forwardRef(({className:e,...t},n)=>i.jsx(ys,{ref:n,className:O("-mx-1 my-1 h-px bg-grey-100",e),...t}));cn.displayName=ys.displayName;const Ls=l.forwardRef(({children:e,items:t,defaultValue:n=[],defaultOpen:r,onOpenChange:o,onChange:s,size:a,column:c=1,multiple:u=!1,className:d},h)=>{var C;const[f,m]=E.useState(n),p=E.useRef(null),[v,g]=E.useState(void 0);l.useImperativeHandle(h,()=>({setSelectedItems:m}),[]),l.useEffect(()=>{s&&s(f)},[f,s]),E.useLayoutEffect(()=>{const b=()=>{if(p.current){const y=p.current.getBoundingClientRect();g(y.width)}};return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[e,a]);const x=b=>{m(y=>{switch(b.containerType){case"checkbox":return y.some(R=>R.value===b.value&&R.containerKey===b.containerKey)?y.filter(R=>!(R.value===b.value&&R.containerKey===b.containerKey)):[...y,b];case"radio":return u?[...y.filter(R=>!(R.containerType==="radio"&&R.containerKey===b.containerKey)),b]:[b];case"default":return u?[...y.filter(R=>!(R.containerType==="default"&&R.containerKey===b.containerKey)),b]:[b];default:return y}})},w=b=>{m(y=>y.filter(R=>!(R.value===b.value&&R.containerKey===b.containerKey)))};return i.jsxs(rd,{defaultOpen:r,onOpenChange:o,children:[i.jsx(od,{asChild:!0,className:"group outline-none",ref:p,style:{width:a==="fit"?"fit-content":a==="full"?"100%":a||"auto"},children:e}),i.jsx(Es,{style:{width:a==="fit"?"fit-content":a==="full"?`${(C=p.current)==null?void 0:C.offsetWidth}px`:a||"auto",minWidth:a==="fit"&&v?`${v}px`:void 0},className:d,children:t.map((b,y)=>i.jsx(Ns,{container:b,handleSelect:x,handleDeselect:w,selectedItems:f,column:c},y))})]})});Ls.displayName="Dropdown";const Ns=({container:e,handleSelect:t,handleDeselect:n,selectedItems:r,column:o=1})=>{var m;const{containerType:s,containerKey:a,containerTitle:c,isShowTitle:u,isShowSeparator:d,items:h}=e,f=p=>p.some(v=>v.items.some(g=>g.type==="default"||g.type==="checkbox"||g.type==="radio"?r.some(x=>x.value===g.value&&x.containerKey===v.containerKey&&x.containerType===v.containerType):g.type==="sub"?f(g.items):!1));return i.jsxs(l.Fragment,{children:[u&&i.jsx(an,{inset:!1,children:c}),s==="radio"?i.jsx(id,{value:(m=r.find(p=>p.containerType==="radio"&&p.containerKey===a))==null?void 0:m.value,onValueChange:p=>{var g;const v=h.find(x=>x.type==="radio"&&x.value===p);v&&(t==null||t({containerType:e.containerType,containerKey:e.containerKey,label:v.label,value:v.value}),(g=v.onSelect)==null||g.call(v))},style:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`},children:h.map((p,v)=>{if(p.type!=="radio")return null;const g=r.some(w=>w.containerType==="radio"&&w.value===p.value&&w.containerKey===a);return i.jsxs(_s,{value:p.value,disabled:p.disabled,className:`${g?"bg-grey-100 text-main-600":""}`,onSelect:w=>w.preventDefault(),children:[p.icLeft&&i.jsx("span",{children:p.icLeft}),i.jsx("div",{className:"flex items-center justify-start gap-1",children:p.label}),p.icRight&&i.jsx("span",{className:"ml-auto",children:p.icRight})]},v)})}):i.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`,gap:"4px"},children:h.map((p,v)=>{const g=(p.type==="default"||p.type==="checkbox")&&r.some(w=>w.value===p.value&&w.containerKey===a&&w.containerType===s),x="bg-grey-100 text-main-600";switch(p.type){case"default":return i.jsxs(As,{onSelect:()=>{var C;t==null||t({containerType:s,containerKey:a,label:p.label,value:p.value}),(C=p.onSelect)==null||C.call(p)},disabled:p.disabled,className:`${g?x:""} ${p.disabled?"cursor-default text-muted":""}`,children:[p.icLeft&&i.jsx("span",{children:p.icLeft}),i.jsx("div",{className:"flex items-center justify-start gap-1",children:p.label}),p.icRight&&i.jsx("span",{className:"ml-auto",children:p.icRight})]},v);case"checkbox":const w=g;return i.jsxs(Ps,{checked:w,onSelect:C=>C.preventDefault(),onCheckedChange:C=>{var b;C?(t==null||t({containerType:s,containerKey:a,label:p.label,value:p.value}),(b=p.onSelect)==null||b.call(p)):n==null||n({containerType:s,containerKey:a,label:p.label,value:p.value})},disabled:p.disabled,className:`${w?x:""}`,children:[p.icLeft&&i.jsx("span",{className:"",children:p.icLeft}),i.jsx("div",{className:"flex items-center justify-start gap-1",children:p.label}),p.icRight&&i.jsx("span",{className:"ml-auto",children:p.icRight})]},v);case"separator":return i.jsx("div",{className:"px-2",style:{gridColumn:`span ${o}`},children:i.jsx(cn,{className:"bg-grey-200"},v)},v);case"title":return i.jsx(an,{inset:p.inset,children:p.label},v);case"action":return i.jsx("div",{className:"flex justify-center p-1",children:i.jsx(hn,{icLeft:p.icLeft,icRight:p.icRight,disabled:p.disabled,onClick:p.onClick,variant:"outline",size:"sm",className:"w-full",theme:"secondary",children:p.label})},v);case"sub":return i.jsxs(sd,{children:[i.jsxs(Ss,{inset:p.inset,className:`${f(p.items)?x:""}`,children:[p.icLeft&&i.jsx("span",{children:p.icLeft}),i.jsx("span",{className:"w-full px-1",children:p.label}),p.icRight&&i.jsx("span",{className:"ml-auto",children:p.icRight})]}),i.jsx(js,{children:p.items.map((C,b)=>i.jsx(Ns,{container:C,handleSelect:t,handleDeselect:n,selectedItems:r},b))})]},v);default:return null}})}),d&&i.jsx(cn,{className:"h-1"})]})},Vt=({className:e,...t})=>i.jsx(_t,{className:O("flex",e),...t});Vt.Col=({className:e,...t})=>i.jsx(_t,{className:O("flex flex-col items-start",e),...t});Vt.Row=({className:e,...t})=>i.jsx(_t,{className:O("flex flex-row justify-start",e),...t});function Os(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var $n="Checkbox",[ad,zd]=Ie($n),[cd,ld]=ad($n),ks=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:a,disabled:c,value:u="on",onCheckedChange:d,form:h,...f}=e,[m,p]=l.useState(null),v=U(t,y=>p(y)),g=l.useRef(!1),x=m?h||!!m.closest("form"):!0,[w=!1,C]=Te({prop:o,defaultProp:s,onChange:d}),b=l.useRef(w);return l.useEffect(()=>{const y=m==null?void 0:m.form;if(y){const R=()=>C(b.current);return y.addEventListener("reset",R),()=>y.removeEventListener("reset",R)}},[m,C]),i.jsxs(cd,{scope:n,state:w,disabled:c,children:[i.jsx(G.button,{type:"button",role:"checkbox","aria-checked":he(w)?"mixed":w,"aria-required":a,"data-state":Ts(w),"data-disabled":c?"":void 0,disabled:c,value:u,...f,ref:v,onKeyDown:N(e.onKeyDown,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:N(e.onClick,y=>{C(R=>he(R)?!0:!R),x&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})}),x&&i.jsx(dd,{control:m,bubbles:!g.current,name:r,value:u,checked:w,required:a,disabled:c,form:h,style:{transform:"translateX(-100%)"},defaultChecked:he(s)?!1:s})]})});ks.displayName=$n;var Is="CheckboxIndicator",ud=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=ld(Is,n);return i.jsx(Ce,{present:r||he(s.state)||s.state===!0,children:i.jsx(G.span,{"data-state":Ts(s.state),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ud.displayName=Is;var dd=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...s}=e,a=l.useRef(null),c=Os(n),u=Rn(t);l.useEffect(()=>{const h=a.current,f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==n&&p){const v=new Event("click",{bubbles:r});h.indeterminate=he(n),p.call(h,he(n)?!1:n),h.dispatchEvent(v)}},[c,n,r]);const d=l.useRef(he(n)?!1:n);return i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??d.current,...s,tabIndex:-1,ref:a,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function he(e){return e==="indeterminate"}function Ts(e){return he(e)?"indeterminate":e?"checked":"unchecked"}var Ds=ks;const Fs=l.forwardRef(({className:e,checked:t,...n},r)=>i.jsx(Ds,{ref:r,className:O("shrink-0 rounded-sm disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:i.jsx(Re.Checkbox,{type:t?"checked":"blank"})}));Fs.displayName=Ds.displayName;var fd=e=>e.type==="checkbox",pd=e=>e instanceof Date,Vs=e=>e==null;const hd=e=>typeof e=="object";var Ve=e=>!Vs(e)&&!Array.isArray(e)&&hd(e)&&!pd(e),md=e=>Ve(e)&&e.target?fd(e.target)?e.target.checked:e.target.value:e,gd=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vd=(e,t)=>e.has(gd(t)),xd=e=>{const t=e.constructor&&e.constructor.prototype;return Ve(t)&&t.hasOwnProperty("isPrototypeOf")},wd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Hn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(wd&&(e instanceof Blob||e instanceof FileList))&&(n||Ve(e)))if(t=n?[]:{},!n&&!xd(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Hn(e[r]));else return e;return t}var Bs=e=>Array.isArray(e)?e.filter(Boolean):[],ln=e=>e===void 0,K=(e,t,n)=>{if(!t||!Ve(e))return n;const r=Bs(t.split(/[,[\].]+?/)).reduce((o,s)=>Vs(o)?o:o[s],e);return ln(r)||r===e?ln(e[t])?n:e[t]:r},Mr=e=>typeof e=="boolean",Cd=e=>/^\w*$/.test(e),bd=e=>Bs(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Sr=(e,t,n)=>{let r=-1;const o=Cd(t)?[t]:bd(t),s=o.length,a=s-1;for(;++r<s;){const c=o[r];let u=n;if(r!==a){const d=e[c];u=Ve(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(c==="__proto__")return;e[c]=u,e=e[c]}return e};const jr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Er={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$s=E.createContext(null),st=()=>E.useContext($s),yd=e=>{const{children:t,...n}=e;return E.createElement($s.Provider,{value:n},t)};var Rd=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Er.all&&(t._proxyFormState[a]=!r||Er.all),n&&(n[a]=!0),e[a]}});return o},Md=e=>Ve(e)&&!Object.keys(e).length,Sd=(e,t,n,r)=>{n(e);const{name:o,...s}=e;return Md(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(a=>t[a]===!r)},jd=e=>Array.isArray(e)?e:[e],Hs=(e,t,n)=>!e||!t||e===t||jd(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Zs(e){const t=E.useRef(e);t.current=e,E.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Ed(e){const t=st(),{control:n=t.control,disabled:r,name:o,exact:s}=e||{},[a,c]=E.useState(n._formState),u=E.useRef(!0),d=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=E.useRef(o);return h.current=o,Zs({disabled:r,next:f=>u.current&&Hs(h.current,f.name,s)&&Sd(f,d.current,n._updateFormState)&&c({...n._formState,...f}),subject:n._subjects.state}),E.useEffect(()=>(u.current=!0,d.current.isValid&&n._updateValid(!0),()=>{u.current=!1}),[n]),Rd(a,n,d.current,!1)}var Ad=e=>typeof e=="string",Pd=(e,t,n,r,o)=>Ad(e)?K(n,e,o):Array.isArray(e)?e.map(s=>K(n,s)):n;function _d(e){const t=st(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:a}=e||{},c=E.useRef(r);c.current=r,Zs({disabled:s,subject:n._subjects.values,next:h=>{Hs(c.current,h.name,a)&&d(Hn(Pd(c.current,n._names,h.values||n._formValues,!1,o)))}});const[u,d]=E.useState(n._getWatch(r,o));return E.useEffect(()=>n._removeUnmounted()),u}function Gs(e){const t=st(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s}=e,a=vd(o._names.array,n),c=_d({control:o,name:n,defaultValue:K(o._formValues,n,K(o._defaultValues,n,e.defaultValue)),exact:!0}),u=Ed({control:o,name:n,exact:!0}),d=E.useRef(o.register(n,{...e.rules,value:c,...Mr(e.disabled)?{disabled:e.disabled}:{}}));return E.useEffect(()=>{const h=o._options.shouldUnregister||s,f=(m,p)=>{const v=K(o._fields,m);v&&v._f&&(v._f.mount=p)};if(f(n,!0),h){const m=Hn(K(o._options.defaultValues,n));Sr(o._defaultValues,n,m),ln(K(o._formValues,n))&&Sr(o._formValues,n,m)}return()=>{(a?h&&!o._state.action:h)?o.unregister(n):f(n,!1)}},[n,o,a,s]),E.useEffect(()=>{K(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:K(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:c,...Mr(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:E.useCallback(h=>d.current.onChange({target:{value:md(h),name:n},type:jr.CHANGE}),[n]),onBlur:E.useCallback(()=>d.current.onBlur({target:{value:K(o._formValues,n),name:n},type:jr.BLUR}),[n,o]),ref:E.useCallback(h=>{const f=K(o._fields,n);f&&h&&(f._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:m=>h.setCustomValidity(m),reportValidity:()=>h.reportValidity()})},[o._fields,n])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!K(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!K(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!K(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!K(u.validatingFields,n)},error:{enumerable:!0,get:()=>K(u.errors,n)}})}}const Ld=e=>e.render(Gs(e));var Nd="Label",Ws=l.forwardRef((e,t)=>i.jsx(G.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ws.displayName=Nd;var Us=Ws;const Od=Lt("text-sm font-normal leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Zn=l.forwardRef(({className:e,...t},n)=>i.jsx(Us,{ref:n,className:O(Od(),e),...t}));Zn.displayName=Us.displayName;const Ks=Lt("inline-flex items-center justify-center whitespace-nowrap gap-1",{variants:{size:{sm:"px-1 py-0.5 text-[13px] font-normal",md:"px-1 py-1 text-[13px] font-normal",lg:"px-2 py-1 text-sm font-medium"},shape:{square:"rounded",round:"rounded-full"},variant:{ad:"rounded-none rounded-bl-xl text-sm font-normal px-2 py-1 absolute top-0 right-0 bg-grey-800 text-white","solid-primary-50":"bg-main-50 text-main-600","solid-primary-100":"bg-main-100 text-main-600","solid-primary-600":"bg-main-600 text-main-50","solid-secondary-100":"bg-grey-100 text-grey-600","solid-secondary-400":"bg-grey-400 text-white","solid-secondary-800":"bg-grey-800 text-white","solid-red-400":"text-red-600 bg-grey-200/50","solid-red-white":"text-red-400 bg-white","outline-primary-600":"bg-main-100 border border-main-600 text-main-600","outline-secondary-200":"bg-white border border-grey-200 text-grey-800",etc:""}},defaultVariants:{variant:"solid-primary-50",size:"sm",shape:"square"}});function zs({className:e,variant:t,size:n,shape:r,icLeft:o,icRight:s,...a}){return i.jsxs("div",{className:O(Ks({size:n,shape:r,variant:t}),e),...a,children:[o&&i.jsx("div",{children:o})," ",i.jsx("div",{children:a.children}),s&&i.jsx("div",{children:s})," "]})}const Be=({children:e,className:t,type:n="text"})=>{switch(n){case"accent":return i.jsx(Ys,{children:e});case"error":return i.jsx(Xs,{children:e});case"mute":return i.jsx(qs,{children:e});default:return i.jsx("span",{className:O("text-grey-800",t),children:e})}},Ys=({children:e,className:t,color:n="text-main-600",tagSize:r="sm",asTag:o=!1})=>o?i.jsx(zs,{className:O(n,t),size:r,variant:"solid-red-400",children:e}):i.jsx("span",{className:O(n,t),children:e}),Xs=({children:e,className:t})=>i.jsx("span",{className:O("text-red-600",t),children:e}),qs=({children:e,className:t})=>i.jsx("span",{className:O("text-muted",t),children:e});Be.Accent=Ys;Be.Error=Xs;Be.Mute=qs;const kd=yd,Qs=l.createContext({}),Id=({...e})=>i.jsx(Qs.Provider,{value:{name:e.name},children:i.jsx(Ld,{...e})}),it=()=>{const e=l.useContext(Qs),t=l.useContext(Js),{getFieldState:n,formState:r}=st(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},Js=l.createContext({}),ei=l.forwardRef(({className:e,...t},n)=>{const r=l.useId();return i.jsx(Js.Provider,{value:{id:r},children:i.jsx("div",{ref:n,className:O("relative flex flex-col gap-2",e),...t})})});ei.displayName="FormItem";const ti=l.forwardRef(({className:e,required:t,heading:n,label:r,description:o,children:s,...a},c)=>{const{error:u,formItemId:d}=it();return i.jsxs(Zn,{ref:c,className:O("relative",u&&"text-red-400","space-y-1 text-base font-semibold text-grey-800",e),htmlFor:d,...a,children:[t&&i.jsx("div",{className:"absolute right-full top-0 -mt-1 mr-0.5 text-lg text-red-600",children:"*"}),n&&i.jsx(Be,{className:"font-semibold",children:n}),r&&i.jsx(jt,{className:"text-sm font-normal text-grey-800",children:r}),o&&i.jsx(jt,{className:"whitespace-pre-wrap",children:o}),s]})});ti.displayName="FormLabel";const ni=l.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:s}=it();return i.jsx(me,{ref:t,id:r,"aria-describedby":n?`${o} ${s}`:`${o}`,"aria-invalid":!!n,...e})});ni.displayName="FormControl";const jt=l.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=it();return i.jsx("div",{ref:n,id:r,className:O("whitespace-pre-wrap text-sm font-normal text-grey-600",e),...t})});jt.displayName="FormDescription";const ri=l.forwardRef(({className:e,children:t,absolute:n,...r},o)=>{var d;const{error:s,formMessageId:a}=it(),c=(s==null?void 0:s.message)||((d=s==null?void 0:s.root)==null?void 0:d.message),u=s?c||"":t;return u?i.jsx("div",{ref:o,id:a,className:O("flex h-5 items-center",n&&"absolute top-full mt-2"),...r,children:i.jsx(Be.Error,{className:O("h-5 text-sm",e),children:u})}):null});ri.displayName="FormMessage";var Gn="Radio",[Td,oi]=Ie(Gn),[Dd,Fd]=Td(Gn),si=l.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:s,disabled:a,value:c="on",onCheck:u,form:d,...h}=e,[f,m]=l.useState(null),p=U(t,x=>m(x)),v=l.useRef(!1),g=f?d||!!f.closest("form"):!0;return i.jsxs(Dd,{scope:n,checked:o,disabled:a,children:[i.jsx(G.button,{type:"button",role:"radio","aria-checked":o,"data-state":ci(o),"data-disabled":a?"":void 0,disabled:a,value:c,...h,ref:p,onClick:N(e.onClick,x=>{o||u==null||u(),g&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),g&&i.jsx(Vd,{control:f,bubbles:!v.current,name:r,value:c,checked:o,required:s,disabled:a,form:d,style:{transform:"translateX(-100%)"}})]})});si.displayName=Gn;var ii="RadioIndicator",ai=l.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,s=Fd(ii,n);return i.jsx(Ce,{present:r||s.checked,children:i.jsx(G.span,{"data-state":ci(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t})})});ai.displayName=ii;var Vd=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,s=l.useRef(null),a=Os(n),c=Rn(t);return l.useEffect(()=>{const u=s.current,d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==n&&f){const m=new Event("click",{bubbles:r});f.call(u,n),u.dispatchEvent(m)}},[a,n,r]),i.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ci(e){return e?"checked":"unchecked"}var Bd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Wn="RadioGroup",[$d,Yd]=Ie(Wn,[tt,oi]),li=tt(),ui=oi(),[Hd,Zd]=$d(Wn),di=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:s,required:a=!1,disabled:c=!1,orientation:u,dir:d,loop:h=!0,onValueChange:f,...m}=e,p=li(n),v=Pt(d),[g,x]=Te({prop:s,defaultProp:o,onChange:f});return i.jsx(Hd,{scope:n,name:r,required:a,disabled:c,value:g,onValueChange:x,children:i.jsx(Pn,{asChild:!0,...p,orientation:u,dir:v,loop:h,children:i.jsx(G.div,{role:"radiogroup","aria-required":a,"aria-orientation":u,"data-disabled":c?"":void 0,dir:v,...m,ref:t})})})});di.displayName=Wn;var fi="RadioGroupItem",pi=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,s=Zd(fi,n),a=s.disabled||r,c=li(n),u=ui(n),d=l.useRef(null),h=U(t,d),f=s.value===o.value,m=l.useRef(!1);return l.useEffect(()=>{const p=g=>{Bd.includes(g.key)&&(m.current=!0)},v=()=>m.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",v)}},[]),i.jsx(_n,{asChild:!0,...c,focusable:!a,active:f,children:i.jsx(si,{disabled:a,required:s.required,checked:f,...u,...o,name:s.name,ref:h,onCheck:()=>s.onValueChange(o.value),onKeyDown:N(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:N(o.onFocus,()=>{var p;m.current&&((p=d.current)==null||p.click())})})})});pi.displayName=fi;var Gd="RadioGroupIndicator",Wd=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=ui(n);return i.jsx(ai,{...o,...r,ref:t})});Wd.displayName=Gd;var hi=di,mi=pi;const gi=l.forwardRef(({className:e,...t},n)=>i.jsx(hi,{className:O("grid gap-2",e),...t,ref:n}));gi.displayName=hi.displayName;const vi=l.forwardRef(({className:e,checked:t,size:n,...r},o)=>i.jsx(mi,{ref:o,className:O("aspect-square rounded-full text-primary focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:i.jsx(Re.Radio,{type:t?"checked":"blank",size:n})}));vi.displayName=mi.displayName;const Ud=l.forwardRef(({className:e,type:t="text",icon:n,error:r,iconPosition:o="right",...s},a)=>i.jsxs("div",{className:O("relative flex w-full items-center text-sm"),children:[n&&o==="left"&&i.jsx("span",{className:"absolute left-4",children:n}),i.jsx("input",{type:t,className:O("h-11 w-full rounded-lg border border-border bg-background px-4 py-2.5 text-sm font-normal outline-none transition-all focus:border-foreground disabled:cursor-not-allowed disabled:opacity-50 md:text-base",n&&o==="left"&&"pl-10",n&&o==="right"&&"pr-10",r&&"border-red-600 focus:border-red-600",e),ref:a,...s}),n&&o==="right"&&i.jsx("span",{className:"absolute right-4",children:n})]})),xi=l.forwardRef(({className:e,error:t,...n},r)=>i.jsx("textarea",{className:O("flex min-h-[72px] w-full rounded-md border bg-background px-3 py-2.5 text-sm font-normal placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-base",t?"border-red-600 focus:border-red-600":"border-border focus:border-grey-800",e),ref:r,...n}));xi.displayName="Textarea";exports.Anchor=po;exports.Arrow=mo;exports.Box=_t;exports.Branch=_c;exports.Button=hn;exports.Callout=Ye;exports.Checkbox=Fs;exports.Content=ho;exports.DismissableLayer=Nt;exports.Dropdown=Ls;exports.FlexBox=Vt;exports.FocusScope=mn;exports.Form=kd;exports.FormControl=ni;exports.FormDescription=jt;exports.FormField=Id;exports.FormItem=ei;exports.FormLabel=ti;exports.FormMessage=ri;exports.Icon=Re;exports.Input=Ud;exports.Item=_n;exports.Label=Zn;exports.Portal=An;exports.Presence=Ce;exports.Primitive=G;exports.RadioGroup=gi;exports.RadioGroupItem=vi;exports.ReactRemoveScroll=Ln;exports.Root=Pc;exports.Root$1=Pn;exports.Root2=En;exports.Slot=me;exports.Slottable=Br;exports.Tag=zs;exports.Text=Be;exports.Textarea=xi;exports.buttonVariants=$r;exports.cn=O;exports.composeEventHandlers=N;exports.createCollection=fn;exports.createContext2=sc;exports.createContextScope=Ie;exports.createPopperScope=Sn;exports.createRovingFocusGroupScope=tt;exports.cva=Lt;exports.dispatchDiscreteCustomEvent=pn;exports.hideOthers=yo;exports.tagVariants=Ks;exports.useCallbackRef=q;exports.useComposedRefs=U;exports.useControllableState=Te;exports.useController=Gs;exports.useDirection=Pt;exports.useFocusGuards=Wr;exports.useFormContext=st;exports.useFormField=it;exports.useId=Ne;exports.useLayoutEffect2=ge;
|
|
@@ -2,7 +2,7 @@ var po = Object.defineProperty;
|
|
|
2
2
|
var fo = (e, t, o) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var q = (e, t, o) => fo(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import { jsx as r, jsxs as h, Fragment as U } from "react/jsx-runtime";
|
|
5
|
-
import { p as we, q as k, P as C, r as D, s as re, v as mo, S as go, w as vo, x as ho, y as yo, z as wo, A as To, E as Ue, G as ue, H as Ke, J as xo, c as g, b as se, I as Te, F as Do, K as Eo, M as No, N as te, O as Ro, Q as bo, U as Ao, V as Co } from "./index-
|
|
5
|
+
import { p as we, q as k, P as C, r as D, s as re, v as mo, S as go, w as vo, x as ho, y as yo, z as wo, A as To, E as Ue, G as ue, H as Ke, J as xo, c as g, b as se, I as Te, F as Do, K as Eo, M as No, N as te, O as Ro, Q as bo, U as Ao, V as Co } from "./index-Bd9-63p2.js";
|
|
6
6
|
import * as n from "react";
|
|
7
7
|
import Po, { Fragment as _o, useState as So, useEffect as Oo } from "react";
|
|
8
8
|
import * as Io from "react-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var co=Object.defineProperty;var uo=(e,t,o)=>t in e?co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var H=(e,t,o)=>uo(e,typeof t!="symbol"?t+"":t,o);const r=require("react/jsx-runtime"),n=require("./index-
|
|
1
|
+
"use strict";var co=Object.defineProperty;var uo=(e,t,o)=>t in e?co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var H=(e,t,o)=>uo(e,typeof t!="symbol"?t+"":t,o);const r=require("react/jsx-runtime"),n=require("./index-_qlrPVFv.cjs"),z=require("react"),qe=require("react-dom");function Ge(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=Ge(z),po=Ge(qe);let B;const fo=new Uint8Array(16);function mo(){if(!B&&(B=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!B))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return B(fo)}const w=[];for(let e=0;e<256;++e)w.push((e+256).toString(16).slice(1));function go(e,t=0){return w[e[t+0]]+w[e[t+1]]+w[e[t+2]]+w[e[t+3]]+"-"+w[e[t+4]]+w[e[t+5]]+"-"+w[e[t+6]]+w[e[t+7]]+"-"+w[e[t+8]]+w[e[t+9]]+"-"+w[e[t+10]]+w[e[t+11]]+w[e[t+12]]+w[e[t+13]]+w[e[t+14]]+w[e[t+15]]}const xo=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ze={randomUUID:xo};function vo(e,t,o){if(ze.randomUUID&&!t&&!e)return ze.randomUUID();e=e||{};const s=e.random||(e.rng||mo)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,go(s)}class ho{constructor(){H(this,"listeners",new Set);H(this,"portals",new Map);H(this,"queue",[]);H(this,"isProcessing",!1)}processQueue(){if(!(this.isProcessing||this.queue.length===0)){for(this.isProcessing=!0;this.queue.length>0;){const t=this.queue.shift();t&&t()}this.isProcessing=!1}}isPortalOpen(t){var o;return((o=this.portals.get(t))==null?void 0:o.isOpen)??!1}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}showPortal(t,o){console.log(o.id);const s=o.id||this.generateId(t);if(this.isPortalOpen(s))return console.warn(`Portal with id "${s}" is already open.`),null;const a={id:s,type:t,props:o};return this.portals.set(s,{...a,isOpen:!0}),this.queue.push(()=>{this.listeners.forEach(l=>{l(a,!0)})}),this.processQueue(),s}setPortalOpen(t,o){const s=this.portals.get(t);s&&(s.isOpen=o,this.portals.set(t,s),this.queue.push(()=>{this.listeners.forEach(a=>{a(s,o)})}),this.processQueue())}getIsPortalOpen(t){var o;return((o=this.portals.get(t))==null?void 0:o.isOpen)??!1}getOpenPortals(){const t=[];for(const[o,s]of this.portals.entries())s.isOpen&&t.push(o);return t}closePortal(t){const o=this.portals.get(t);o&&(o.isOpen=!1,this.portals.set(t,o),this.queue.push(()=>{this.listeners.forEach(s=>{s(o,!1)})}),this.processQueue())}generateId(t){const o=`${t}_${window.location.pathname}`;return t==="toast"?`${o}_${vo()}`:o}}const yo=new ho,wo=5,To=2e3;let de=0;function Be(){return de=(de+1)%Number.MAX_SAFE_INTEGER,de.toString()}const ue=new Map,Ue=e=>{if(ue.has(e))return;const t=setTimeout(()=>{ue.delete(e),W({type:"REMOVE_TOAST",toastId:e})},To);ue.set(e,t)},Do=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,wo)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{const{toastId:o}=t;return o?Ue(o):e.toasts.forEach(s=>{Ue(s.id||Be())}),{...e,toasts:e.toasts.map(s=>s.id===o||o===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)}}},X=[];let Q={toasts:[]};function W(e){Q=Do(Q,e),X.forEach(t=>{t(Q)})}function Ye({...e}){const t=Be(),o=a=>W({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>W({type:"DISMISS_TOAST",toastId:t});return W({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||(s(),e.onClose&&e.onClose())}}}),{id:t,dismiss:s,update:o}}function Eo(){const[e,t]=i.useState(Q);return i.useEffect(()=>(X.push(t),()=>{const o=X.indexOf(t);o>-1&&X.splice(o,1)}),[e]),{...e,toast:Ye,dismiss:o=>W({type:"DISMISS_TOAST",toastId:o})}}var xe="Dialog",[Xe,Qe]=n.createContextScope(xe),[No,b]=Xe(xe),Ze=e=>{const{__scopeDialog:t,children:o,open:s,defaultOpen:a,onOpenChange:l,modal:d=!0}=e,u=i.useRef(null),f=i.useRef(null),[c=!1,g]=n.useControllableState({prop:s,defaultProp:a,onChange:l});return r.jsx(No,{scope:t,triggerRef:u,contentRef:f,contentId:n.useId(),titleId:n.useId(),descriptionId:n.useId(),open:c,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(v=>!v),[g]),modal:d,children:o})};Ze.displayName=xe;var Je="DialogTrigger",et=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=b(Je,o),l=n.useComposedRefs(t,a.triggerRef);return r.jsx(n.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":ye(a.open),...s,ref:l,onClick:n.composeEventHandlers(e.onClick,a.onOpenToggle)})});et.displayName=Je;var ve="DialogPortal",[Ro,tt]=Xe(ve,{forceMount:void 0}),ot=e=>{const{__scopeDialog:t,forceMount:o,children:s,container:a}=e,l=b(ve,t);return r.jsx(Ro,{scope:t,forceMount:o,children:i.Children.map(s,d=>r.jsx(n.Presence,{present:o||l.open,children:r.jsx(n.Portal,{asChild:!0,container:a,children:d})}))})};ot.displayName=ve;var Z="DialogOverlay",st=i.forwardRef((e,t)=>{const o=tt(Z,e.__scopeDialog),{forceMount:s=o.forceMount,...a}=e,l=b(Z,e.__scopeDialog);return l.modal?r.jsx(n.Presence,{present:s||l.open,children:r.jsx(bo,{...a,ref:t})}):null});st.displayName=Z;var bo=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=b(Z,o);return r.jsx(n.ReactRemoveScroll,{as:n.Slot,allowPinchZoom:!0,shards:[a.contentRef],children:r.jsx(n.Primitive.div,{"data-state":ye(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),I="DialogContent",rt=i.forwardRef((e,t)=>{const o=tt(I,e.__scopeDialog),{forceMount:s=o.forceMount,...a}=e,l=b(I,e.__scopeDialog);return r.jsx(n.Presence,{present:s||l.open,children:l.modal?r.jsx(Ao,{...a,ref:t}):r.jsx(Co,{...a,ref:t})})});rt.displayName=I;var Ao=i.forwardRef((e,t)=>{const o=b(I,e.__scopeDialog),s=i.useRef(null),a=n.useComposedRefs(t,o.contentRef,s);return i.useEffect(()=>{const l=s.current;if(l)return n.hideOthers(l)},[]),r.jsx(at,{...e,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:n.composeEventHandlers(e.onCloseAutoFocus,l=>{var d;l.preventDefault(),(d=o.triggerRef.current)==null||d.focus()}),onPointerDownOutside:n.composeEventHandlers(e.onPointerDownOutside,l=>{const d=l.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0;(d.button===2||u)&&l.preventDefault()}),onFocusOutside:n.composeEventHandlers(e.onFocusOutside,l=>l.preventDefault())})}),Co=i.forwardRef((e,t)=>{const o=b(I,e.__scopeDialog),s=i.useRef(!1),a=i.useRef(!1);return r.jsx(at,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var d,u;(d=e.onCloseAutoFocus)==null||d.call(e,l),l.defaultPrevented||(s.current||(u=o.triggerRef.current)==null||u.focus(),l.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:l=>{var f,c;(f=e.onInteractOutside)==null||f.call(e,l),l.defaultPrevented||(s.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=l.target;((c=o.triggerRef.current)==null?void 0:c.contains(d))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),at=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:l,...d}=e,u=b(I,o),f=i.useRef(null),c=n.useComposedRefs(t,f);return n.useFocusGuards(),r.jsxs(r.Fragment,{children:[r.jsx(n.FocusScope,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:l,children:r.jsx(n.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":ye(u.open),...d,ref:c,onDismiss:()=>u.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(jo,{titleId:u.titleId}),r.jsx(So,{contentRef:f,descriptionId:u.descriptionId})]})]})}),he="DialogTitle",nt=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=b(he,o);return r.jsx(n.Primitive.h2,{id:a.titleId,...s,ref:t})});nt.displayName=he;var it="DialogDescription",lt=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=b(it,o);return r.jsx(n.Primitive.p,{id:a.descriptionId,...s,ref:t})});lt.displayName=it;var ct="DialogClose",dt=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=b(ct,o);return r.jsx(n.Primitive.button,{type:"button",...s,ref:t,onClick:n.composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});dt.displayName=ct;function ye(e){return e?"open":"closed"}var ut="DialogTitleWarning",[Po,pt]=n.createContext2(ut,{contentName:I,titleName:he,docsSlug:"dialog"}),jo=({titleId:e})=>{const t=pt(ut),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
4
|
|
package/dist/provider.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("./portal-container-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("./portal-container-Dt-YsKQi.cjs"),p=require("./index-_qlrPVFv.cjs"),r=require("react"),m=r.forwardRef(({open:i,onClose:a,className:t,contents:l,...e},s)=>n.jsx(o.Dialog,{open:!0,onOpenChange:c=>{!c&&a&&a()},children:n.jsx(o.DialogContent,{ref:s,className:p.cn("flex flex-col gap-0 px-0 py-0",t),...e,children:l&&n.jsx(n.Fragment,{children:l})})})),C=()=>{const[i,a]=r.useState([]);console.log(i),r.useEffect(()=>{const e=o.portalManager.subscribe((s,c)=>{a(u=>{const f=u.find(d=>d.id===s.id);return c?f?u:[...u,{...s,isOpen:c}]:u.map(d=>d.id===s.id?{...d,isOpen:!1}:d)})});return()=>{e()}},[]);const t=r.useCallback(e=>{o.portalManager.setPortalOpen(e,!1)},[]);r.useEffect(()=>{const e=[];return i.forEach(s=>{if(!s.isOpen){const c=setTimeout(()=>{a(u=>u.filter(f=>f.id!==s.id))},300);e.push(c)}}),()=>{e.forEach(s=>clearTimeout(s))}},[i]);const l=r.useCallback(e=>{const s=e.props;o.toast({title:s.title,description:s.description,action:s.action,closeButton:s.closeButton,variant:s.variant,position:s.position,size:s.size,className:s.className}),t(e.id)},[t]);return r.useEffect(()=>{i.forEach(e=>{e.type==="toast"&&e.isOpen&&l(e)})},[i,l]),n.jsxs(o.PortalContainer,{children:[n.jsx(o.ToastForm,{}),i.map(e=>{var s;if(!e.isOpen)return null;switch(e.type){case"modal":return n.jsx(o.ModalForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),t(e.id)},description:(s=e.props.description)==null?void 0:s.toString()},e.id);case"alert":return n.jsx(o.AlertForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),t(e.id)}},e.id);case"dialog":return n.jsx(o.DialogForm,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),t(e.id)}},e.id);case"custom":return n.jsx(m,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),t(e.id)},contents:e.props.contents},e.id);case"toast":return null;default:return null}})]})};exports.PortalProvider=C;
|
package/dist/provider.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, Fragment as f, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import { D as h, a as g, p, t as x, P as F, T as P, b, A as O, M as T } from "./portal-container-
|
|
3
|
-
import { c as D } from "./index-
|
|
2
|
+
import { D as h, a as g, p, t as x, P as F, T as P, b, A as O, M as T } from "./portal-container-BGDcl4t1.js";
|
|
3
|
+
import { c as D } from "./index-Bd9-63p2.js";
|
|
4
4
|
import { forwardRef as E, useState as y, useEffect as l, useCallback as m } from "react";
|
|
5
5
|
const M = E(
|
|
6
6
|
({ open: i, onClose: c, className: o, contents: a, ...s }, e) => /* @__PURE__ */ n(
|
package/dist/ui.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),o=require("./index-BMocD7nM.cjs"),t=require("react/jsx-runtime"),x=require("./index-CAVq1Ubr.cjs"),p=require("./index-DKCqkplO.cjs");function g(e){const C=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(C,l,n.get?n:{enumerable:!0,get:()=>e[l]})}}return C.default=e,Object.freeze(C)}const w=g(u),v=(e,C)=>e.length===0?t.jsx("span",{children:C}):e.length===1?t.jsx("span",{children:e[0].label}):t.jsxs("span",{children:[e[0].label," ","외"," ",e.length-1,"개"]});var V="AspectRatio",d=w.forwardRef((e,C)=>{const{ratio:l=1/1,style:n,...r}=e;return t.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/l}%`},"data-radix-aspect-ratio-wrapper":"",children:t.jsx(o.Primitive.div,{...r,ref:C,style:{...n,position:"absolute",top:0,right:0,bottom:0,left:0}})})});d.displayName=V;var H=d;const f=H,j=({className:e,columns:C,rows:l,gap:n,style:r,...s})=>{const a=i=>i?i>=1&&i<=12?`grid-cols-${i}`:"grid-cols-auto":"",h=i=>i?i>=1&&i<=12?`grid-rows-${i} grid-flow-col`:"grid-rows-auto":"",c=n!==void 0?`${n/4}rem`:void 0;return t.jsx(o.Box,{className:o.cn("grid",a(C),h(l),e),style:{gap:c,...r},...s})},R=({size:e="24",fill:C="#000000",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.95557 21.9477C10.2363 21.9477 10.798 21.0602 12.3933 21.0602C13.9887 21.0602 14.3706 21.914 15.7862 21.914C17.2017 21.914 18.1117 20.5883 18.9993 19.2851C19.9879 17.7909 20.3924 16.3304 20.4261 16.263C20.3362 16.2406 17.6624 15.1059 17.6624 11.949C17.6624 9.20773 19.7745 7.97193 19.8868 7.88205C18.4937 5.81489 16.3704 5.76995 15.7974 5.76995C14.2358 5.76995 12.9551 6.74736 12.1462 6.74736C11.2811 6.74736 10.1352 5.82612 8.77582 5.82612C6.19187 5.82612 3.57422 8.0281 3.57422 12.1737C3.57422 14.7464 4.55163 17.4764 5.74249 19.2402C6.76483 20.7344 7.6636 21.959 8.95557 21.959V21.9477ZM12.2473 5.52279C13.1798 5.52279 14.3594 4.87119 15.0559 4.00613C15.6851 3.21971 16.1457 2.11872 16.1457 1.01773C16.1457 0.87168 16.1345 0.714396 16.1007 0.602051C15.0559 0.646989 13.8089 1.32106 13.0562 2.23106C12.4608 2.92761 11.9215 4.00612 11.9215 5.11835C11.9215 5.27563 11.944 5.44415 11.9664 5.50032C12.0338 5.51156 12.135 5.52279 12.2473 5.52279Z",fill:C})}),M=({className:e,fill:C=p.colors.main[600],size:l="140"})=>t.jsx("svg",{width:l,height:`${Number(l)*124/977}`,viewBox:"0 0 977 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93 62C93 99.7533 117.112 124 151 124C185.051 124 209 99.7533 209 62C209 24.084 185.051 0 151 0C117.112 0 93 24.084 93 62ZM194.989 62C194.989 89.9895 178.86 110.656 151 110.656C123.303 110.656 107.174 89.9895 107.174 62C107.174 34.0105 123.303 13.3438 151 13.3438C178.86 13.3438 194.989 33.8478 194.989 62ZM278 124C244.112 124 220 99.7533 220 62C220 24.084 244.112 0 278 0C312.051 0 336 24.084 336 62C336 99.7533 312.051 124 278 124ZM278 110.656C305.86 110.656 321.989 89.9895 321.989 62C321.989 33.8478 305.86 13.3438 278 13.3438C250.303 13.3438 234.174 34.0105 234.174 62C234.174 89.9895 250.303 110.656 278 110.656ZM390.078 122H379.922C378.775 122 378.119 121.346 378.119 120.201V14.9155H338.638C337.491 14.9155 337 14.2616 337 13.1171V3.63487C337 2.65395 337.491 2 338.638 2H431.362C432.345 2 433 2.65395 433 3.63487V13.1171C433 14.2616 432.345 14.9155 431.362 14.9155H391.881V120.201C391.881 121.346 391.225 122 390.078 122ZM42.9184 122H1.79507C0.652752 122 0 121.346 0 120.201V3.63487C0 2.65395 0.652752 2 1.79507 2H40.797C68.0493 2 80.2884 15.2425 80.2884 32.4086C80.2884 45.3242 74.0873 54.8064 62.3378 59.2206C78.167 63.1443 86 73.444 86 88.4848C86 108.267 73.2713 122 42.9184 122ZM13.7078 14.752V53.662H40.9602C58.5844 53.662 66.4175 46.3051 66.4175 34.207C66.4175 22.2724 57.7685 14.752 39.981 14.752H13.7078ZM13.7078 66.2505V109.084H42.9184C62.6641 109.084 71.9659 101.237 71.9659 87.5039C71.9659 73.9345 62.6641 66.2505 42.9184 66.2505H13.7078ZM923.922 122H934.078C935.225 122 935.881 121.346 935.881 120.201V14.9155H975.362C976.345 14.9155 977 14.2616 977 13.1171V3.63487C977 2.65395 976.345 2 975.362 2H882.638C881.491 2 881 2.65395 881 3.63487V13.1171C881 14.2616 881.491 14.9155 882.638 14.9155H922.119V120.201C922.119 121.346 922.775 122 923.922 122ZM787.625 122H777.801C776.655 122 776 121.346 776 120.201V3.63487C776 2.65395 776.655 2 777.801 2H788.771C789.754 2 790.245 2.32697 790.9 3.14441L855.738 99.7655V3.63487C855.738 2.65395 856.393 2 857.539 2H867.363C868.345 2 869 2.65395 869 3.63487V120.201C869 121.346 868.345 122 867.363 122H856.393C855.41 122 854.919 121.673 854.264 120.855L789.262 24.0708V120.201C789.262 121.346 788.607 122 787.625 122ZM687.806 122H762.358C763.343 122 764 121.346 764 120.201V110.719C764 109.738 763.343 109.084 762.358 109.084H699.794V66.2505H755.133C756.118 66.2505 756.775 65.5966 756.775 64.6157V55.2969C756.775 54.1525 756.118 53.4985 755.133 53.4985H699.794V14.9155H760.387C761.537 14.9155 762.194 14.2616 762.194 13.1171V3.63487C762.194 2.65395 761.537 2 760.387 2H687.806C686.657 2 686 2.65395 686 3.63487V120.201C686 121.346 686.657 122 687.806 122ZM631.078 122H620.922C619.775 122 619.119 121.346 619.119 120.201V14.9155H579.638C578.491 14.9155 578 14.2616 578 13.1171V3.63487C578 2.65395 578.491 2 579.638 2H672.362C673.345 2 674 2.65395 674 3.63487V13.1171C674 14.2616 673.345 14.9155 672.362 14.9155H632.881V120.201C632.881 121.346 632.225 122 631.078 122ZM460.936 106.978L506.5 28.8673L552.064 106.978H460.936ZM440 119L506.5 5L573 119H440Z",fill:C})}),m=({size:e="24",fill:C="#FFFFFF",className:l})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",className:l,children:[t.jsx("circle",{cx:"12",cy:"12.0002",r:"12",fill:"#0866FF"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8821 23.8536V15.4806H16.6781L17.2061 12.0126H13.8821V9.75663C13.8821 8.80863 14.3501 7.88463 15.8381 7.88463H17.3501V4.93263C17.3501 4.93263 15.9701 4.69263 14.6621 4.69263C11.9141 4.69263 10.1261 6.34863 10.1261 9.36063V12.0006H7.07812V15.4686H10.1261V23.8555C10.7361 23.951 11.3613 24.0006 11.9981 24.0006C12.6391 24.0006 13.2683 23.9504 13.8821 23.8536Z",fill:C})]}),Z=({size:e="24",fill:C="none",className:l})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:C,className:l,children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.52 12.2733C23.52 11.4226 23.444 10.6039 23.3013 9.8186H12V14.4599H18.4587C18.18 15.9599 17.3347 17.2319 16.064 18.0826V21.0933H19.9413C22.2107 19.0039 23.52 15.9279 23.52 12.2733Z",fill:"#3D82F0"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9994 24.0005C15.2394 24.0005 17.956 22.9253 19.9413 21.0933L16.064 18.0826C14.9893 18.8026 13.6141 19.2272 11.9994 19.2272C8.87406 19.2272 6.22872 17.1165 5.28472 14.2805H1.27539V17.3899C3.25006 21.3112 7.30872 24.0005 11.9994 24.0005Z",fill:"#31A752"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.28472 14.2805C5.04472 13.5605 4.90933 12.7912 4.90933 12.0005C4.90933 11.2099 5.04533 10.4405 5.28533 9.72054V6.61121H1.276C0.464 8.23121 0 10.0645 0 12.0005C0 13.9365 0.463391 15.7699 1.27539 17.3899L5.28472 14.2805Z",fill:"#F9BA00"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9994 4.77358C13.7607 4.77358 15.3434 5.37891 16.5861 6.56824L20.0287 3.12691C17.9501 1.18958 15.2341 0.000244141 11.9994 0.000244141C7.30872 0.000244141 3.25006 2.68958 1.27539 6.61225L5.28533 9.72054C6.22933 6.88454 8.87406 4.77358 11.9994 4.77358Z",fill:"#E64234"})]}),F=({size:e="24",fill:C="none",className:l})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:`${Number(e)*24/21}`,viewBox:"0 0 21 24",fill:C,className:l,children:[t.jsx("path",{d:"M9.84416 11.5002L0.591043 21.3177C0.877759 22.3864 1.85086 23.1683 3.00641 23.1683C3.4669 23.1683 3.90131 23.0467 4.27491 22.8208L4.30098 22.8034L14.7097 16.7999L9.83547 11.4915L9.84416 11.5002Z",fill:"#EA4335"}),t.jsx("path",{d:"M19.2006 9.83196H19.192L14.7001 7.21684L9.63475 11.726L14.7174 16.8085L19.192 14.2281C19.9739 13.8024 20.5039 12.9771 20.5039 12.0301C20.5039 11.083 19.9826 10.2577 19.2006 9.84065V9.83196Z",fill:"#FBBC04"}),t.jsx("path",{d:"M0.59079 2.69054C0.53866 2.89905 0.503906 3.10757 0.503906 3.33346V20.6836C0.503906 20.9095 0.529971 21.118 0.59079 21.3265L10.1567 11.7609L0.59079 2.69054Z",fill:"#4285F4"}),t.jsx("path",{d:"M9.91367 12.0041L14.7001 7.21684L4.30098 1.18739C3.92738 0.961499 3.48427 0.831177 3.00641 0.831177C1.85086 0.831177 0.877759 1.6218 0.591043 2.68175L9.91367 11.9954V12.0041Z",fill:"#34A853"})]}),L=({size:e="20",fill:C="none",className:l})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:C,xmlns:"http://www.w3.org/2000/svg",className:l,children:[t.jsx("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",fill:"white"}),t.jsx("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",stroke:"#DDE2E6"}),t.jsxs("g",{clipPath:"url(#clip0_4596_247326)",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.8 10.1139C14.8 9.75944 14.7683 9.41833 14.7089 9.0911H10V11.025H12.6911C12.575 11.65 12.2228 12.18 11.6933 12.5344V13.7889H13.3089C14.2544 12.9183 14.8 11.6367 14.8 10.1139Z",fill:"#3D82F0"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99975 15.0002C11.3497 15.0002 12.4817 14.5522 13.3089 13.7889L11.6933 12.5344C11.2456 12.8344 10.6725 13.0113 9.99975 13.0113C8.69752 13.0113 7.5953 12.1319 7.20197 10.9502H5.53141V12.2458C6.35419 13.8797 8.0453 15.0002 9.99975 15.0002Z",fill:"#31A752"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.20197 10.9502C7.10197 10.6502 7.04556 10.3297 7.04556 10.0002C7.04556 9.6708 7.10222 9.35025 7.20222 9.05025V7.75469H5.53167C5.19333 8.42969 5 9.19358 5 10.0002C5 10.8069 5.19308 11.5708 5.53141 12.2458L7.20197 10.9502Z",fill:"#F9BA00"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99975 6.98901C10.7336 6.98901 11.3931 7.24123 11.9109 7.73679L13.3453 6.3029C12.4792 5.49568 11.3475 5.00012 9.99975 5.00012C8.0453 5.00012 6.35419 6.12068 5.53141 7.75512L7.20222 9.05025C7.59556 7.86858 8.69752 6.98901 9.99975 6.98901Z",fill:"#E64234"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4596_247326",children:t.jsx("rect",{width:"10",height:"10",fill:"white",transform:"translate(5 5)"})})})]}),b=({size:e="24",fill:C="black",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.61816C6.48 2.61816 2 6.09816 2 10.3782C2 13.0482 3.73 15.3782 6.37 16.7982L5.26 20.8682C5.23906 20.9491 5.24337 21.0345 5.27235 21.113C5.30134 21.1914 5.35362 21.2591 5.42217 21.307C5.49073 21.3549 5.57228 21.3806 5.6559 21.3808C5.73952 21.3811 5.8212 21.3557 5.89 21.3082L10.75 18.0782C11.16 18.0782 11.58 18.1482 12 18.1482C17.52 18.1482 22 14.6682 22 10.3782C22 6.08816 17.52 2.61816 12 2.61816Z",fill:C})}),B=({size:e="20",fill:C="none",className:l})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 20 20",fill:C,className:l,children:[t.jsx("rect",{width:"20",height:"20",rx:"10",fill:"#FEE500"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 5.3125C7.24 5.3125 5 7.0525 5 9.1925C5 10.5275 5.865 11.6925 7.185 12.4025L6.63 14.4375C6.61953 14.478 6.62168 14.5207 6.63618 14.5599C6.65067 14.5991 6.67681 14.633 6.71109 14.6569C6.74536 14.6809 6.78614 14.6937 6.82795 14.6938C6.86976 14.6939 6.9106 14.6813 6.945 14.6575L9.375 13.0425C9.58 13.0425 9.79 13.0775 10 13.0775C12.76 13.0775 15 11.3375 15 9.1925C15 7.0475 12.76 5.3125 10 5.3125Z",fill:"black"})]}),y=({size:e="20",fill:C="none",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 20 20",fill:C,className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.61259 0.350098H12.3905C13.4775 0.35009 14.3482 0.350084 15.052 0.407584C15.7746 0.466628 16.4002 0.590759 16.9761 0.884167C17.898 1.35395 18.6476 2.10355 19.1174 3.02555C19.4108 3.60139 19.535 4.22695 19.594 4.94962C19.6515 5.65339 19.6515 6.52407 19.6515 7.61115V12.3891C19.6515 13.4761 19.6515 14.3468 19.594 15.0506C19.535 15.7732 19.4108 16.3988 19.1174 16.9747C18.6476 17.8966 17.898 18.6462 16.9761 19.116C16.4002 19.4094 15.7746 19.5336 15.052 19.5926C14.3482 19.6501 13.4775 19.6501 12.3905 19.6501H7.6125C6.52547 19.6501 5.65482 19.6501 4.95106 19.5926C4.2284 19.5336 3.60284 19.4094 3.027 19.116C2.10501 18.6462 1.35541 17.8966 0.885629 16.9747C0.592223 16.3988 0.468093 15.7732 0.409049 15.0506C0.351549 14.3468 0.351555 13.4761 0.351562 12.3891V7.61112C0.351555 6.52405 0.351549 5.65338 0.409049 4.94962C0.468093 4.22695 0.592223 3.60139 0.885629 3.02555C1.35541 2.10355 2.10501 1.35395 3.027 0.884167C3.60284 0.590759 4.2284 0.466628 4.95106 0.407584C5.65483 0.350084 6.52552 0.35009 7.61258 0.350098H7.61259ZM5.85129 7.14866C5.13227 7.14866 4.55176 6.56687 4.55176 5.84923C4.55176 5.13159 5.13227 4.5498 5.85129 4.5498C6.56736 4.5498 7.14787 5.13159 7.14787 5.84923C7.14787 6.56391 6.56736 7.14866 5.85129 7.14866ZM6.97107 15.3498H4.73151V8.13209H6.97107V15.3498ZM13.1151 15.3498H15.3517V11.3895C15.3517 9.44628 14.9333 7.95194 12.6672 7.95194C11.5798 7.95194 10.849 8.55145 10.5514 9.11847H10.5219V8.13209H8.37668V15.3498H10.6103V11.7823C10.6103 10.8402 10.7871 9.92766 11.9511 9.92766C13.1004 9.92766 13.1151 11.0056 13.1151 11.8414V15.3498Z",fill:"#0A66C2"})}),A=({size:e="20",fill:C="none",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:`${Number(e)*18/20}`,viewBox:"0 0 20 18",fill:C,className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.61259 0.350098H12.3905C13.4775 0.35009 14.3482 0.350084 15.052 0.407584C15.7746 0.466628 16.4002 0.590759 16.9761 0.884167C17.898 1.35395 18.6476 2.10355 19.1174 3.02555C19.4108 3.60139 19.535 4.22695 19.594 4.94962C19.6515 5.65339 19.6515 6.52407 19.6515 7.61115V12.3891C19.6515 13.4761 19.6515 14.3468 19.594 15.0506C19.535 15.7732 19.4108 16.3988 19.1174 16.9747C18.6476 17.8966 17.898 18.6462 16.9761 19.116C16.4002 19.4094 15.7746 19.5336 15.052 19.5926C14.3482 19.6501 13.4775 19.6501 12.3905 19.6501H7.6125C6.52547 19.6501 5.65482 19.6501 4.95106 19.5926C4.2284 19.5336 3.60284 19.4094 3.027 19.116C2.10501 18.6462 1.35541 17.8966 0.885629 16.9747C0.592223 16.3988 0.468093 15.7732 0.409049 15.0506C0.351549 14.3468 0.351555 13.4761 0.351562 12.3891V7.61112C0.351555 6.52405 0.351549 5.65338 0.409049 4.94962C0.468093 4.22695 0.592223 3.60139 0.885629 3.02555C1.35541 2.10355 2.10501 1.35395 3.027 0.884167C3.60284 0.590759 4.2284 0.466628 4.95106 0.407584C5.65483 0.350084 6.52552 0.35009 7.61258 0.350098H7.61259ZM5.85129 7.14866C5.13227 7.14866 4.55176 6.56687 4.55176 5.84923C4.55176 5.13159 5.13227 4.5498 5.85129 4.5498C6.56736 4.5498 7.14787 5.13159 7.14787 5.84923C7.14787 6.56391 6.56736 7.14866 5.85129 7.14866ZM6.97107 15.3498H4.73151V8.13209H6.97107V15.3498ZM13.1151 15.3498H15.3517V11.3895C15.3517 9.44628 14.9333 7.95194 12.6672 7.95194C11.5798 7.95194 10.849 8.55145 10.5514 9.11847H10.5219V8.13209H8.37668V15.3498H10.6103V11.7823C10.6103 10.8402 10.7871 9.92766 11.9511 9.92766C13.1004 9.92766 13.1151 11.0056 13.1151 11.8414V15.3498Z",fill:"#00C73C"})}),k=({size:e="22",fill:C="none",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 22 16",fill:C,className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3192 0.992222C20.2351 1.23717 20.9593 1.96137 21.2043 2.87727C21.6516 4.53867 21.6516 7.99992 21.6516 7.99992C21.6516 7.99992 21.6516 11.4612 21.2043 13.1226C20.9593 14.0385 20.2351 14.7627 19.3192 15.0076C17.6578 15.4549 11.0016 15.4549 11.0016 15.4549C11.0016 15.4549 4.34531 15.4549 2.68391 15.0076C1.76801 14.7627 1.04381 14.0385 0.798863 13.1226C0.351562 11.4612 0.351562 7.99992 0.351562 7.99992C0.351562 7.99992 0.351562 4.53867 0.798863 2.87727C1.04381 1.96137 1.76801 1.23717 2.68391 0.992222C4.34531 0.544922 11.0016 0.544922 11.0016 0.544922C11.0016 0.544922 17.6578 0.544922 19.3192 0.992222ZM8.87207 10.329C8.87207 10.7138 9.2886 10.9544 9.62193 10.7621L13.6594 8.43278C13.9929 8.24037 13.9929 7.75901 13.6594 7.5666L9.62193 5.2373C9.2886 5.04499 8.87207 5.28556 8.87207 5.67039V10.329Z",fill:"#FF0000"})}),D={Apple:R,FacebookRound:m,Google:Z,GooglePlaystore:F,GoogleRound:L,KakaoMessage:b,KakaoRound:B,LinkedIn:y,NaverBlog:A,YouTube:k,Boottent:M};exports.Box=o.Box;exports.Button=o.Button;exports.Callout=o.Callout;exports.Checkbox=o.Checkbox;exports.Dropdown=o.Dropdown;exports.FlexBox=o.FlexBox;exports.Form=o.Form;exports.FormControl=o.FormControl;exports.FormDescription=o.FormDescription;exports.FormField=o.FormField;exports.FormItem=o.FormItem;exports.FormLabel=o.FormLabel;exports.FormMessage=o.FormMessage;exports.Icon=o.Icon;exports.Input=o.Input;exports.Label=o.Label;exports.RadioGroup=o.RadioGroup;exports.RadioGroupItem=o.RadioGroupItem;exports.Tag=o.Tag;exports.Text=o.Text;exports.Textarea=o.Textarea;exports.buttonVariants=o.buttonVariants;exports.tagVariants=o.tagVariants;exports.useFormField=o.useFormField;exports.Skeleton=x.Skeleton;exports.AspectRatio=f;exports.GridBox=j;exports.Symbols=D;exports.getDropdownButtonText=v;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),o=require("./index-_qlrPVFv.cjs"),t=require("react/jsx-runtime"),x=require("./index-CQvLmHc8.cjs"),p=require("./index-DKCqkplO.cjs");function g(e){const C=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(C,l,n.get?n:{enumerable:!0,get:()=>e[l]})}}return C.default=e,Object.freeze(C)}const w=g(u),v=(e,C)=>e.length===0?t.jsx("span",{children:C}):e.length===1?t.jsx("span",{children:e[0].label}):t.jsxs("span",{children:[e[0].label," ","외"," ",e.length-1,"개"]});var V="AspectRatio",d=w.forwardRef((e,C)=>{const{ratio:l=1/1,style:n,...r}=e;return t.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/l}%`},"data-radix-aspect-ratio-wrapper":"",children:t.jsx(o.Primitive.div,{...r,ref:C,style:{...n,position:"absolute",top:0,right:0,bottom:0,left:0}})})});d.displayName=V;var H=d;const f=H,j=({className:e,columns:C,rows:l,gap:n,style:r,...s})=>{const a=i=>i?i>=1&&i<=12?`grid-cols-${i}`:"grid-cols-auto":"",h=i=>i?i>=1&&i<=12?`grid-rows-${i} grid-flow-col`:"grid-rows-auto":"",c=n!==void 0?`${n/4}rem`:void 0;return t.jsx(o.Box,{className:o.cn("grid",a(C),h(l),e),style:{gap:c,...r},...s})},R=({size:e="24",fill:C="#000000",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.95557 21.9477C10.2363 21.9477 10.798 21.0602 12.3933 21.0602C13.9887 21.0602 14.3706 21.914 15.7862 21.914C17.2017 21.914 18.1117 20.5883 18.9993 19.2851C19.9879 17.7909 20.3924 16.3304 20.4261 16.263C20.3362 16.2406 17.6624 15.1059 17.6624 11.949C17.6624 9.20773 19.7745 7.97193 19.8868 7.88205C18.4937 5.81489 16.3704 5.76995 15.7974 5.76995C14.2358 5.76995 12.9551 6.74736 12.1462 6.74736C11.2811 6.74736 10.1352 5.82612 8.77582 5.82612C6.19187 5.82612 3.57422 8.0281 3.57422 12.1737C3.57422 14.7464 4.55163 17.4764 5.74249 19.2402C6.76483 20.7344 7.6636 21.959 8.95557 21.959V21.9477ZM12.2473 5.52279C13.1798 5.52279 14.3594 4.87119 15.0559 4.00613C15.6851 3.21971 16.1457 2.11872 16.1457 1.01773C16.1457 0.87168 16.1345 0.714396 16.1007 0.602051C15.0559 0.646989 13.8089 1.32106 13.0562 2.23106C12.4608 2.92761 11.9215 4.00612 11.9215 5.11835C11.9215 5.27563 11.944 5.44415 11.9664 5.50032C12.0338 5.51156 12.135 5.52279 12.2473 5.52279Z",fill:C})}),M=({className:e,fill:C=p.colors.main[600],size:l="140"})=>t.jsx("svg",{width:l,height:`${Number(l)*124/977}`,viewBox:"0 0 977 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93 62C93 99.7533 117.112 124 151 124C185.051 124 209 99.7533 209 62C209 24.084 185.051 0 151 0C117.112 0 93 24.084 93 62ZM194.989 62C194.989 89.9895 178.86 110.656 151 110.656C123.303 110.656 107.174 89.9895 107.174 62C107.174 34.0105 123.303 13.3438 151 13.3438C178.86 13.3438 194.989 33.8478 194.989 62ZM278 124C244.112 124 220 99.7533 220 62C220 24.084 244.112 0 278 0C312.051 0 336 24.084 336 62C336 99.7533 312.051 124 278 124ZM278 110.656C305.86 110.656 321.989 89.9895 321.989 62C321.989 33.8478 305.86 13.3438 278 13.3438C250.303 13.3438 234.174 34.0105 234.174 62C234.174 89.9895 250.303 110.656 278 110.656ZM390.078 122H379.922C378.775 122 378.119 121.346 378.119 120.201V14.9155H338.638C337.491 14.9155 337 14.2616 337 13.1171V3.63487C337 2.65395 337.491 2 338.638 2H431.362C432.345 2 433 2.65395 433 3.63487V13.1171C433 14.2616 432.345 14.9155 431.362 14.9155H391.881V120.201C391.881 121.346 391.225 122 390.078 122ZM42.9184 122H1.79507C0.652752 122 0 121.346 0 120.201V3.63487C0 2.65395 0.652752 2 1.79507 2H40.797C68.0493 2 80.2884 15.2425 80.2884 32.4086C80.2884 45.3242 74.0873 54.8064 62.3378 59.2206C78.167 63.1443 86 73.444 86 88.4848C86 108.267 73.2713 122 42.9184 122ZM13.7078 14.752V53.662H40.9602C58.5844 53.662 66.4175 46.3051 66.4175 34.207C66.4175 22.2724 57.7685 14.752 39.981 14.752H13.7078ZM13.7078 66.2505V109.084H42.9184C62.6641 109.084 71.9659 101.237 71.9659 87.5039C71.9659 73.9345 62.6641 66.2505 42.9184 66.2505H13.7078ZM923.922 122H934.078C935.225 122 935.881 121.346 935.881 120.201V14.9155H975.362C976.345 14.9155 977 14.2616 977 13.1171V3.63487C977 2.65395 976.345 2 975.362 2H882.638C881.491 2 881 2.65395 881 3.63487V13.1171C881 14.2616 881.491 14.9155 882.638 14.9155H922.119V120.201C922.119 121.346 922.775 122 923.922 122ZM787.625 122H777.801C776.655 122 776 121.346 776 120.201V3.63487C776 2.65395 776.655 2 777.801 2H788.771C789.754 2 790.245 2.32697 790.9 3.14441L855.738 99.7655V3.63487C855.738 2.65395 856.393 2 857.539 2H867.363C868.345 2 869 2.65395 869 3.63487V120.201C869 121.346 868.345 122 867.363 122H856.393C855.41 122 854.919 121.673 854.264 120.855L789.262 24.0708V120.201C789.262 121.346 788.607 122 787.625 122ZM687.806 122H762.358C763.343 122 764 121.346 764 120.201V110.719C764 109.738 763.343 109.084 762.358 109.084H699.794V66.2505H755.133C756.118 66.2505 756.775 65.5966 756.775 64.6157V55.2969C756.775 54.1525 756.118 53.4985 755.133 53.4985H699.794V14.9155H760.387C761.537 14.9155 762.194 14.2616 762.194 13.1171V3.63487C762.194 2.65395 761.537 2 760.387 2H687.806C686.657 2 686 2.65395 686 3.63487V120.201C686 121.346 686.657 122 687.806 122ZM631.078 122H620.922C619.775 122 619.119 121.346 619.119 120.201V14.9155H579.638C578.491 14.9155 578 14.2616 578 13.1171V3.63487C578 2.65395 578.491 2 579.638 2H672.362C673.345 2 674 2.65395 674 3.63487V13.1171C674 14.2616 673.345 14.9155 672.362 14.9155H632.881V120.201C632.881 121.346 632.225 122 631.078 122ZM460.936 106.978L506.5 28.8673L552.064 106.978H460.936ZM440 119L506.5 5L573 119H440Z",fill:C})}),m=({size:e="24",fill:C="#FFFFFF",className:l})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",className:l,children:[t.jsx("circle",{cx:"12",cy:"12.0002",r:"12",fill:"#0866FF"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8821 23.8536V15.4806H16.6781L17.2061 12.0126H13.8821V9.75663C13.8821 8.80863 14.3501 7.88463 15.8381 7.88463H17.3501V4.93263C17.3501 4.93263 15.9701 4.69263 14.6621 4.69263C11.9141 4.69263 10.1261 6.34863 10.1261 9.36063V12.0006H7.07812V15.4686H10.1261V23.8555C10.7361 23.951 11.3613 24.0006 11.9981 24.0006C12.6391 24.0006 13.2683 23.9504 13.8821 23.8536Z",fill:C})]}),Z=({size:e="24",fill:C="none",className:l})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:C,className:l,children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.52 12.2733C23.52 11.4226 23.444 10.6039 23.3013 9.8186H12V14.4599H18.4587C18.18 15.9599 17.3347 17.2319 16.064 18.0826V21.0933H19.9413C22.2107 19.0039 23.52 15.9279 23.52 12.2733Z",fill:"#3D82F0"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9994 24.0005C15.2394 24.0005 17.956 22.9253 19.9413 21.0933L16.064 18.0826C14.9893 18.8026 13.6141 19.2272 11.9994 19.2272C8.87406 19.2272 6.22872 17.1165 5.28472 14.2805H1.27539V17.3899C3.25006 21.3112 7.30872 24.0005 11.9994 24.0005Z",fill:"#31A752"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.28472 14.2805C5.04472 13.5605 4.90933 12.7912 4.90933 12.0005C4.90933 11.2099 5.04533 10.4405 5.28533 9.72054V6.61121H1.276C0.464 8.23121 0 10.0645 0 12.0005C0 13.9365 0.463391 15.7699 1.27539 17.3899L5.28472 14.2805Z",fill:"#F9BA00"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9994 4.77358C13.7607 4.77358 15.3434 5.37891 16.5861 6.56824L20.0287 3.12691C17.9501 1.18958 15.2341 0.000244141 11.9994 0.000244141C7.30872 0.000244141 3.25006 2.68958 1.27539 6.61225L5.28533 9.72054C6.22933 6.88454 8.87406 4.77358 11.9994 4.77358Z",fill:"#E64234"})]}),F=({size:e="24",fill:C="none",className:l})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:`${Number(e)*24/21}`,viewBox:"0 0 21 24",fill:C,className:l,children:[t.jsx("path",{d:"M9.84416 11.5002L0.591043 21.3177C0.877759 22.3864 1.85086 23.1683 3.00641 23.1683C3.4669 23.1683 3.90131 23.0467 4.27491 22.8208L4.30098 22.8034L14.7097 16.7999L9.83547 11.4915L9.84416 11.5002Z",fill:"#EA4335"}),t.jsx("path",{d:"M19.2006 9.83196H19.192L14.7001 7.21684L9.63475 11.726L14.7174 16.8085L19.192 14.2281C19.9739 13.8024 20.5039 12.9771 20.5039 12.0301C20.5039 11.083 19.9826 10.2577 19.2006 9.84065V9.83196Z",fill:"#FBBC04"}),t.jsx("path",{d:"M0.59079 2.69054C0.53866 2.89905 0.503906 3.10757 0.503906 3.33346V20.6836C0.503906 20.9095 0.529971 21.118 0.59079 21.3265L10.1567 11.7609L0.59079 2.69054Z",fill:"#4285F4"}),t.jsx("path",{d:"M9.91367 12.0041L14.7001 7.21684L4.30098 1.18739C3.92738 0.961499 3.48427 0.831177 3.00641 0.831177C1.85086 0.831177 0.877759 1.6218 0.591043 2.68175L9.91367 11.9954V12.0041Z",fill:"#34A853"})]}),L=({size:e="20",fill:C="none",className:l})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:C,xmlns:"http://www.w3.org/2000/svg",className:l,children:[t.jsx("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",fill:"white"}),t.jsx("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",stroke:"#DDE2E6"}),t.jsxs("g",{clipPath:"url(#clip0_4596_247326)",children:[t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.8 10.1139C14.8 9.75944 14.7683 9.41833 14.7089 9.0911H10V11.025H12.6911C12.575 11.65 12.2228 12.18 11.6933 12.5344V13.7889H13.3089C14.2544 12.9183 14.8 11.6367 14.8 10.1139Z",fill:"#3D82F0"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99975 15.0002C11.3497 15.0002 12.4817 14.5522 13.3089 13.7889L11.6933 12.5344C11.2456 12.8344 10.6725 13.0113 9.99975 13.0113C8.69752 13.0113 7.5953 12.1319 7.20197 10.9502H5.53141V12.2458C6.35419 13.8797 8.0453 15.0002 9.99975 15.0002Z",fill:"#31A752"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.20197 10.9502C7.10197 10.6502 7.04556 10.3297 7.04556 10.0002C7.04556 9.6708 7.10222 9.35025 7.20222 9.05025V7.75469H5.53167C5.19333 8.42969 5 9.19358 5 10.0002C5 10.8069 5.19308 11.5708 5.53141 12.2458L7.20197 10.9502Z",fill:"#F9BA00"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99975 6.98901C10.7336 6.98901 11.3931 7.24123 11.9109 7.73679L13.3453 6.3029C12.4792 5.49568 11.3475 5.00012 9.99975 5.00012C8.0453 5.00012 6.35419 6.12068 5.53141 7.75512L7.20222 9.05025C7.59556 7.86858 8.69752 6.98901 9.99975 6.98901Z",fill:"#E64234"})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_4596_247326",children:t.jsx("rect",{width:"10",height:"10",fill:"white",transform:"translate(5 5)"})})})]}),b=({size:e="24",fill:C="black",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.61816C6.48 2.61816 2 6.09816 2 10.3782C2 13.0482 3.73 15.3782 6.37 16.7982L5.26 20.8682C5.23906 20.9491 5.24337 21.0345 5.27235 21.113C5.30134 21.1914 5.35362 21.2591 5.42217 21.307C5.49073 21.3549 5.57228 21.3806 5.6559 21.3808C5.73952 21.3811 5.8212 21.3557 5.89 21.3082L10.75 18.0782C11.16 18.0782 11.58 18.1482 12 18.1482C17.52 18.1482 22 14.6682 22 10.3782C22 6.08816 17.52 2.61816 12 2.61816Z",fill:C})}),B=({size:e="20",fill:C="none",className:l})=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 20 20",fill:C,className:l,children:[t.jsx("rect",{width:"20",height:"20",rx:"10",fill:"#FEE500"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 5.3125C7.24 5.3125 5 7.0525 5 9.1925C5 10.5275 5.865 11.6925 7.185 12.4025L6.63 14.4375C6.61953 14.478 6.62168 14.5207 6.63618 14.5599C6.65067 14.5991 6.67681 14.633 6.71109 14.6569C6.74536 14.6809 6.78614 14.6937 6.82795 14.6938C6.86976 14.6939 6.9106 14.6813 6.945 14.6575L9.375 13.0425C9.58 13.0425 9.79 13.0775 10 13.0775C12.76 13.0775 15 11.3375 15 9.1925C15 7.0475 12.76 5.3125 10 5.3125Z",fill:"black"})]}),y=({size:e="20",fill:C="none",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 20 20",fill:C,className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.61259 0.350098H12.3905C13.4775 0.35009 14.3482 0.350084 15.052 0.407584C15.7746 0.466628 16.4002 0.590759 16.9761 0.884167C17.898 1.35395 18.6476 2.10355 19.1174 3.02555C19.4108 3.60139 19.535 4.22695 19.594 4.94962C19.6515 5.65339 19.6515 6.52407 19.6515 7.61115V12.3891C19.6515 13.4761 19.6515 14.3468 19.594 15.0506C19.535 15.7732 19.4108 16.3988 19.1174 16.9747C18.6476 17.8966 17.898 18.6462 16.9761 19.116C16.4002 19.4094 15.7746 19.5336 15.052 19.5926C14.3482 19.6501 13.4775 19.6501 12.3905 19.6501H7.6125C6.52547 19.6501 5.65482 19.6501 4.95106 19.5926C4.2284 19.5336 3.60284 19.4094 3.027 19.116C2.10501 18.6462 1.35541 17.8966 0.885629 16.9747C0.592223 16.3988 0.468093 15.7732 0.409049 15.0506C0.351549 14.3468 0.351555 13.4761 0.351562 12.3891V7.61112C0.351555 6.52405 0.351549 5.65338 0.409049 4.94962C0.468093 4.22695 0.592223 3.60139 0.885629 3.02555C1.35541 2.10355 2.10501 1.35395 3.027 0.884167C3.60284 0.590759 4.2284 0.466628 4.95106 0.407584C5.65483 0.350084 6.52552 0.35009 7.61258 0.350098H7.61259ZM5.85129 7.14866C5.13227 7.14866 4.55176 6.56687 4.55176 5.84923C4.55176 5.13159 5.13227 4.5498 5.85129 4.5498C6.56736 4.5498 7.14787 5.13159 7.14787 5.84923C7.14787 6.56391 6.56736 7.14866 5.85129 7.14866ZM6.97107 15.3498H4.73151V8.13209H6.97107V15.3498ZM13.1151 15.3498H15.3517V11.3895C15.3517 9.44628 14.9333 7.95194 12.6672 7.95194C11.5798 7.95194 10.849 8.55145 10.5514 9.11847H10.5219V8.13209H8.37668V15.3498H10.6103V11.7823C10.6103 10.8402 10.7871 9.92766 11.9511 9.92766C13.1004 9.92766 13.1151 11.0056 13.1151 11.8414V15.3498Z",fill:"#0A66C2"})}),A=({size:e="20",fill:C="none",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:`${Number(e)*18/20}`,viewBox:"0 0 20 18",fill:C,className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.61259 0.350098H12.3905C13.4775 0.35009 14.3482 0.350084 15.052 0.407584C15.7746 0.466628 16.4002 0.590759 16.9761 0.884167C17.898 1.35395 18.6476 2.10355 19.1174 3.02555C19.4108 3.60139 19.535 4.22695 19.594 4.94962C19.6515 5.65339 19.6515 6.52407 19.6515 7.61115V12.3891C19.6515 13.4761 19.6515 14.3468 19.594 15.0506C19.535 15.7732 19.4108 16.3988 19.1174 16.9747C18.6476 17.8966 17.898 18.6462 16.9761 19.116C16.4002 19.4094 15.7746 19.5336 15.052 19.5926C14.3482 19.6501 13.4775 19.6501 12.3905 19.6501H7.6125C6.52547 19.6501 5.65482 19.6501 4.95106 19.5926C4.2284 19.5336 3.60284 19.4094 3.027 19.116C2.10501 18.6462 1.35541 17.8966 0.885629 16.9747C0.592223 16.3988 0.468093 15.7732 0.409049 15.0506C0.351549 14.3468 0.351555 13.4761 0.351562 12.3891V7.61112C0.351555 6.52405 0.351549 5.65338 0.409049 4.94962C0.468093 4.22695 0.592223 3.60139 0.885629 3.02555C1.35541 2.10355 2.10501 1.35395 3.027 0.884167C3.60284 0.590759 4.2284 0.466628 4.95106 0.407584C5.65483 0.350084 6.52552 0.35009 7.61258 0.350098H7.61259ZM5.85129 7.14866C5.13227 7.14866 4.55176 6.56687 4.55176 5.84923C4.55176 5.13159 5.13227 4.5498 5.85129 4.5498C6.56736 4.5498 7.14787 5.13159 7.14787 5.84923C7.14787 6.56391 6.56736 7.14866 5.85129 7.14866ZM6.97107 15.3498H4.73151V8.13209H6.97107V15.3498ZM13.1151 15.3498H15.3517V11.3895C15.3517 9.44628 14.9333 7.95194 12.6672 7.95194C11.5798 7.95194 10.849 8.55145 10.5514 9.11847H10.5219V8.13209H8.37668V15.3498H10.6103V11.7823C10.6103 10.8402 10.7871 9.92766 11.9511 9.92766C13.1004 9.92766 13.1151 11.0056 13.1151 11.8414V15.3498Z",fill:"#00C73C"})}),k=({size:e="22",fill:C="none",className:l})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 22 16",fill:C,className:l,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3192 0.992222C20.2351 1.23717 20.9593 1.96137 21.2043 2.87727C21.6516 4.53867 21.6516 7.99992 21.6516 7.99992C21.6516 7.99992 21.6516 11.4612 21.2043 13.1226C20.9593 14.0385 20.2351 14.7627 19.3192 15.0076C17.6578 15.4549 11.0016 15.4549 11.0016 15.4549C11.0016 15.4549 4.34531 15.4549 2.68391 15.0076C1.76801 14.7627 1.04381 14.0385 0.798863 13.1226C0.351562 11.4612 0.351562 7.99992 0.351562 7.99992C0.351562 7.99992 0.351562 4.53867 0.798863 2.87727C1.04381 1.96137 1.76801 1.23717 2.68391 0.992222C4.34531 0.544922 11.0016 0.544922 11.0016 0.544922C11.0016 0.544922 17.6578 0.544922 19.3192 0.992222ZM8.87207 10.329C8.87207 10.7138 9.2886 10.9544 9.62193 10.7621L13.6594 8.43278C13.9929 8.24037 13.9929 7.75901 13.6594 7.5666L9.62193 5.2373C9.2886 5.04499 8.87207 5.28556 8.87207 5.67039V10.329Z",fill:"#FF0000"})}),D={Apple:R,FacebookRound:m,Google:Z,GooglePlaystore:F,GoogleRound:L,KakaoMessage:b,KakaoRound:B,LinkedIn:y,NaverBlog:A,YouTube:k,Boottent:M};exports.Box=o.Box;exports.Button=o.Button;exports.Callout=o.Callout;exports.Checkbox=o.Checkbox;exports.Dropdown=o.Dropdown;exports.FlexBox=o.FlexBox;exports.Form=o.Form;exports.FormControl=o.FormControl;exports.FormDescription=o.FormDescription;exports.FormField=o.FormField;exports.FormItem=o.FormItem;exports.FormLabel=o.FormLabel;exports.FormMessage=o.FormMessage;exports.Icon=o.Icon;exports.Input=o.Input;exports.Label=o.Label;exports.RadioGroup=o.RadioGroup;exports.RadioGroupItem=o.RadioGroupItem;exports.Tag=o.Tag;exports.Text=o.Text;exports.Textarea=o.Textarea;exports.buttonVariants=o.buttonVariants;exports.tagVariants=o.tagVariants;exports.useFormField=o.useFormField;exports.Skeleton=x.Skeleton;exports.AspectRatio=f;exports.GridBox=j;exports.Symbols=D;exports.getDropdownButtonText=v;
|
package/dist/ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { P as w, B as v, c as g } from "./index-
|
|
3
|
-
import { a as _, C as j, d as S, D as I, F as K, e as Y, f as q, g as J, h as O, i as Q, j as U, k as W, I as X, m as z, L as e1, R as C1, l as l1, T as t1, n as o1, o as i1, b as n1, t as r1, u as d1 } from "./index-
|
|
2
|
+
import { P as w, B as v, c as g } from "./index-Bd9-63p2.js";
|
|
3
|
+
import { a as _, C as j, d as S, D as I, F as K, e as Y, f as q, g as J, h as O, i as Q, j as U, k as W, I as X, m as z, L as e1, R as C1, l as l1, T as t1, n as o1, o as i1, b as n1, t as r1, u as d1 } from "./index-Bd9-63p2.js";
|
|
4
4
|
import { jsx as C, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
import { S as h1 } from "./index-
|
|
5
|
+
import { S as h1 } from "./index-DSblJs9H.js";
|
|
6
6
|
import { c as u } from "./index-BFsbj9HY.js";
|
|
7
7
|
const E = (e, l) => e.length === 0 ? /* @__PURE__ */ C("span", { children: l }) : e.length === 1 ? /* @__PURE__ */ C("span", { children: e[0].label }) : /* @__PURE__ */ i("span", { children: [
|
|
8
8
|
e[0].label,
|