(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61],{38140:function(e,n,t){var r={"./ca/app.json":[11473,1473],"./cs/app.json":[98387,8387],"./da/app.json":[23562,3562],"./de/app.json":[80679,679],"./en/app.json":[69303,9303],"./es/app.json":[57202,7202],"./eu/app.json":[84866,4866],"./fa/app.json":[96174,6174],"./fi/app.json":[98090,8090],"./fr/app.json":[42850,2850],"./hr/app.json":[92635,2635],"./hu/app.json":[6105,6105],"./it/app.json":[36738,6738],"./ko/app.json":[8067,8067],"./nb/app.json":[46250,6250],"./nl/app.json":[14385,4385],"./nn/app.json":[72330,2330],"./no/app.json":[7562,7562],"./pl/app.json":[15720,5720],"./pt-BR/app.json":[76058,6058],"./pt/app.json":[35518,5518],"./ru/app.json":[39259,9259],"./sk/app.json":[55753,5753],"./sv/app.json":[49598,9598],"./th/app.json":[30544,544],"./tr/app.json":[7744,7744],"./vi/app.json":[21020,1020],"./zh-Hant/app.json":[10896,896],"./zh/app.json":[90508,508]};function s(e){if(!t.o(r,e))return Promise.resolve().then(function(){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=r[e],s=n[0];return t.e(n[1]).then(function(){return t.t(s,19)})}s.keys=function(){return Object.keys(r)},s.id=38140,e.exports=s},84476:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,t(34788).Z)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},55595:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,t(34788).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},60310:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,t(34788).Z)("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]])},35041:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,t(34788).Z)("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]])},39540:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,t(34788).Z)("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]])},65453:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,t(34788).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},32151:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,t(34788).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},95173:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,t(34788).Z)("Vote",[["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}],["path",{d:"M5 7c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v12H5V7Z",key:"1ezoue"}],["path",{d:"M22 19H2",key:"nuriw5"}]])},40061:function(e,n,t){"use strict";t.r(n),t.d(n,{Sidebar:function(){return _}});var r=t(27573),s=t(49364),a=t(19700),i=t(95173),o=t(84476),l=t(34788);/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let u=(0,l.Z)("BookMarked",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["polyline",{points:"10 2 10 10 13 7 16 10 16 2",key:"13o6vz"}]]);var c=t(32151);/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let d=(0,l.Z)("Blocks",[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]]);var p=t(39540),f=t(60310),h=t(35041),x=t(55595),g=t(2056),m=t.n(g),v=t(32859),y=t(51376),j=t(80594),b=t(99176),k=t(56888),N=t(49590);function Z(e){let{href:n,children:t,icon:a,current:i}=e;return(0,r.jsxs)(m(),{href:n,className:(0,s.cn)(i?"bg-gray-200 text-gray-800":"text-gray-700 hover:bg-gray-200 active:bg-gray-300","group flex  items-center gap-x-3 rounded-md px-3 py-2 text-sm font-semibold leading-6"),children:[(0,r.jsx)(a,{className:(0,s.cn)(i?"text-gray-500":"text-gray-400 group-hover:text-gray-500","size-5 shrink-0"),"aria-hidden":"true"}),t]})}function _(){let e=(0,v.usePathname)(),{user:n}=(0,k.aF)();return(0,r.jsx)("nav",{className:"flex flex-1 flex-col ",children:(0,r.jsxs)("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[(0,r.jsx)("li",{children:(0,r.jsx)("ul",{role:"list",className:"-mx-2 space-y-1",children:(0,r.jsx)("li",{children:(0,r.jsx)(Z,{current:null==e?void 0:e.startsWith("/poll"),href:"/polls",icon:i.Z,children:(0,r.jsx)(j.c,{i18nKey:"polls",defaults:"Polls"})})})})}),(0,r.jsxs)("li",{children:[(0,r.jsx)("div",{className:"text-xs font-semibold leading-6 text-gray-400",children:(0,r.jsx)(j.c,{i18nKey:"comingSoon",defaults:"Coming Soon"})}),(0,r.jsx)("ul",{role:"list",className:"-mx-2 mt-2 space-y-1",children:(0,r.jsxs)("li",{className:"pointer-events-none grid gap-1 opacity-50",children:[(0,r.jsx)(Z,{href:"/events",icon:o.Z,children:(0,r.jsx)(j.c,{i18nKey:"events",defaults:"Events"})}),(0,r.jsx)(Z,{href:"/b",icon:u,children:(0,r.jsx)(j.c,{i18nKey:"registrations",defaults:"Registrations"})}),(0,r.jsx)(Z,{href:"/contacts",icon:c.Z,children:(0,r.jsx)(j.c,{i18nKey:"contacts",defaults:"Contacts"})}),(0,r.jsx)(Z,{href:"/integrations",icon:d,children:(0,r.jsx)(j.c,{i18nKey:"integrations",defaults:"Integrations"})})]})})]}),(0,r.jsxs)("li",{className:"mt-auto",children:[(0,r.jsxs)("ul",{role:"list",className:"-mx-2 space-y-1",children:[(0,r.jsx)(N.LB,{children:(0,r.jsx)("li",{children:(0,r.jsxs)(m(),{href:"/settings/billing",className:"mb-4 grid rounded-md border border-gray-200 bg-gray-50 px-4 py-3 hover:border-gray-300 hover:bg-gray-200 active:bg-gray-300",children:[(0,r.jsxs)("span",{className:"mb-2 flex items-center gap-x-2",children:[(0,r.jsx)(p.Z,{className:"size-5 text-gray-400"}),(0,r.jsx)("span",{className:"text-sm font-bold",children:(0,r.jsx)(j.c,{i18nKey:"upgrade"})}),(0,r.jsx)(y.Z,{})]}),(0,r.jsx)("span",{className:"text-sm leading-relaxed text-gray-500",children:(0,r.jsx)(j.c,{i18nKey:"unlockFeatures",defaults:"Unlock all Pro features."})})]})})}),(0,r.jsx)(k.YQ,{children:(0,r.jsx)("li",{children:(0,r.jsx)(Z,{href:"/login",icon:f.Z,children:(0,r.jsx)(j.c,{i18nKey:"login"})})})}),(0,r.jsx)("li",{children:(0,r.jsx)(Z,{href:"/settings/preferences",icon:h.Z,children:(0,r.jsx)(j.c,{i18nKey:"preferences"})})})]}),(0,r.jsx)("hr",{className:"my-2"}),(0,r.jsx)("ul",{role:"list",className:"-mx-2 space-y-1",children:(0,r.jsx)("li",{children:(0,r.jsx)(a.Button,{asChild:!0,variant:"ghost",className:"group h-auto w-full justify-start py-3",children:(0,r.jsxs)(m(),{href:"/settings/profile",children:[(0,r.jsx)(b.CurrentUserAvatar,{}),(0,r.jsxs)("span",{className:"ml-1 grid grow",children:[(0,r.jsx)("span",{className:"font-semibold",children:n.name}),(0,r.jsx)("span",{className:"text-muted-foreground text-sm",children:n.email})]}),(0,r.jsx)(x.Z,{className:"text-muted-foreground size-4 opacity-0 group-hover:opacity-100"})]})})})})]})]})})}},21848:function(e,n,t){"use strict";t.d(n,{b:function(){return f},$:function(){return p}});var r=t(27573),s=t(31277),a=t(11803),i=t(67536),o=t(32859);t(7653);var l=t(70880),u=t(15926);let c=Object.keys(t(73516).Z);async function d(e){let n=s.ZP.use(l.Db).use(a.Z).use((0,i.Z)((e,n)=>t(38140)("./".concat(e,"/").concat(n,".json"))));return await n.init(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"app";return{supportedLngs:c,fallbackLng:"en",lng:e,fallbackNS:"app",defaultNS:"app",ns:n}}(e)),n}function p(e){return(0,l.$G)(e)}function f(e){var n;let{children:t}=e,s=(0,o.useParams)(),a=null!==(n=null==s?void 0:s.locale)&&void 0!==n?n:"app",i=(0,u.Z)(async()=>await d(a));return i.value?(0,r.jsx)(l.a3,{i18n:i.value,defaultNS:"app",children:t}):null}},51376:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(27573),s=t(490),a=t(45e3),i=t(49590);let o=e=>{let{className:n}=e;return(0,r.jsx)(i.LB,{children:(0,r.jsx)(s.C,{className:n,children:(0,r.jsx)(a.cC,{i18nKey:"planPro"})})})}},80594:function(e,n,t){"use strict";t.d(n,{c:function(){return i}});var r=t(27573),s=t(70880),a=t(21848);let i=e=>{let{t:n}=(0,a.$)();return(0,r.jsx)(s.cC,{t:n,...e})}},98861:function(e,n,t){"use strict";t.d(n,{a:function(){return s}});var r=t(7653);let s=(e,n)=>{let t=r.useContext(e);if(null===t)throw Error(null!=n?n:"Missing context provider: ".concat(e.displayName));return t}},56888:function(e,n,t){"use strict";t.d(n,{IY:function(){return v},YQ:function(){return y},dr:function(){return j},aF:function(){return m}});var r=t(27573),s=t(78386),a=t(7653),i=t(68449),o=t(21848),l=t(80171),u=t(26368),c=t(40783),d=t(94850);let p=e=>{let{user:n}=m();return(0,c.Z)(()=>{d.env.NEXT_PUBLIC_POSTHOG_API_KEY&&l.ZP.init(d.env.NEXT_PUBLIC_POSTHOG_API_KEY,{api_host:d.env.NEXT_PUBLIC_POSTHOG_API_HOST,opt_out_capturing_by_default:!1,capture_pageview:!0,persistence:"memory",capture_pageleave:!1,autocapture:!1,opt_in_site_apps:!0,bootstrap:{distinctID:n.id}})}),(0,r.jsx)(u.zf,{client:l.ZP,children:e.children})},f=e=>d.env.NEXT_PUBLIC_POSTHOG_API_KEY?(0,r.jsx)(p,{...e}):(0,r.jsx)(r.Fragment,{children:e.children});var h=t(33712),x=t(98861);i.z.object({id:i.z.string(),name:i.z.string(),email:i.z.string().email().nullable(),isGuest:i.z.boolean(),timeZone:i.z.string().nullish(),timeFormat:i.z.enum(["hours12","hours24"]).nullish(),weekStart:i.z.number().min(0).max(6).nullish()});let g=a.createContext(null),m=()=>(0,x.a)(g,"UserContext"),v=e=>{let{user:n}=m();return n.isGuest?null:(0,r.jsx)(r.Fragment,{children:e.children})},y=e=>{let{user:n}=m();return n.isGuest?(0,r.jsx)(r.Fragment,{children:e.children}):null},j=e=>{var n,t,a,i,l,u;let c=(0,s.useSession)(),d=null===(n=c.data)||void 0===n?void 0:n.user,{t:p}=(0,o.$)();return d?(0,r.jsx)(g.Provider,{value:{user:{id:d.id,name:null!==(t=d.name)&&void 0!==t?t:p("guest"),email:d.email||null,isGuest:null===d.email},refresh:c.update,ownsObject:e=>{let{userId:n}=e;return!!n&&[d.id].includes(n)}},children:(0,r.jsx)(h.C,{initialValue:{locale:null!==(a=d.locale)&&void 0!==a?a:void 0,timeZone:null!==(i=d.timeZone)&&void 0!==i?i:void 0,timeFormat:null!==(l=d.timeFormat)&&void 0!==l?l:void 0,weekStart:null!==(u=d.weekStart)&&void 0!==u?u:void 0},onUpdate:async e=>{await c.update(e)},children:(0,r.jsx)(f,{children:e.children})})}):null}},99176:function(e,n,t){"use strict";t.r(n),t.d(n,{CurrentUserAvatar:function(){return l},UserAvatar:function(){return u}});var r=t(27573),s=t(97157),a=t(65453),i=t(56888),o=t(58997);let l=e=>{let{size:n="md",className:t}=e,{user:s}=(0,i.aF)();return(0,r.jsx)(u,{className:t,name:s.isGuest?void 0:s.name,size:n})},u=e=>{let{size:n="md",name:t,className:i}=e,l=t?(0,o.nb)(t):null;return(0,r.jsx)("span",{className:(0,s.Z)("inline-flex items-center justify-center overflow-hidden rounded-full font-semibold",{"size-6 text-sm":"sm"===n,"size-8 text-base":"md"===n,"size-14 text-2xl":"lg"===n},t?(null==l?void 0:l.requiresDarkText)?"text-gray-800":"text-white":"bg-gray-200",i),style:{backgroundColor:null==l?void 0:l.color},children:t?t[0].toUpperCase():(0,r.jsx)(a.Z,{className:(0,s.Z)({"size-4":"sm"===n,"size-6":"md"===n,"size-8":"lg"===n})})})}},49590:function(e,n,t){"use strict";t.d(n,{LB:function(){return d},fU:function(){return p},g0:function(){return c},mU:function(){return u}});var r=t(27573),s=t(490);t(7653);var a=t(80594),i=t(56888),o=t(45037),l=t(65943);let u=()=>{let{user:e}=(0,i.aF)(),{data:n}=l.S.user.subscription.useQuery(void 0,{enabled:!o.Q0&&!1===e.isGuest});return o.Q0?{active:!0}:e.isGuest?{active:!1}:n},c=()=>{let e=u();return(null==e?void 0:e.active)===!0?"paid":"free"},d=e=>{let{children:n}=e,t=u();return(null==t?void 0:t.active)===!1?(0,r.jsx)(r.Fragment,{children:n}):null},p=()=>"paid"===c()?(0,r.jsx)(s.C,{children:(0,r.jsx)(a.c,{i18nKey:"planPro",defaults:"Pro"})}):(0,r.jsx)(s.C,{variant:"secondary",children:(0,r.jsx)(a.c,{i18nKey:"planFree",defaults:"Free"})})},33712:function(e,n,t){"use strict";t.d(n,{C:function(){return l},G:function(){return u}});var r=t(27573),s=t(7653),a=t(98864),i=t(98861);let o=s.createContext(null),l=e=>{let{children:n,initialValue:t,onUpdate:s}=e,[i,l]=(0,a.Z)(t);return(0,r.jsx)(o.Provider,{value:{preferences:i,updatePreferences:e=>{l(e),null==s||s(e)}},children:n})},u=()=>(0,i.a)(o)},58997:function(e,n,t){"use strict";t.d(n,{nb:function(){return a},uI:function(){return i}});let r=new(t(61442)).Z({hue:[{min:220,max:320}],lightness:[.65],saturation:.8}),s=[[255,135,160],[255,179,71],[255,95,95],[240,128,128],[255,160,122],[255,192,203],[230,230,250],[173,216,230],[176,224,230],[106,90,205],[123,104,238],[147,112,219],[138,43,226],[148,0,211],[153,50,204],[139,0,139],[75,0,130],[72,61,139],[219,39,119],[236,72,153]],a=e=>{let n=e.split("").reduce((e,n)=>e+n.charCodeAt(0),0)%s.length,t=s[n],[r,a,i]=t;return{color:"rgb(".concat(r,", ").concat(a,", ").concat(i,")"),requiresDarkText:function(e){let[n,t,r]=e;return .2126*n/255+.7152*t/255+.0722*r/255>.6}(t)}},i=e=>{let n=e.substring(0,e.length/2),t=e.substring(e.length/2),s=r.hex(n),a=r.hex(t);return"linear-gradient(45deg, ".concat(s,", ").concat(a,")")}},45037:function(e,n,t){"use strict";t.d(n,{Q0:function(){return s},QE:function(){return a},SR:function(){return o},ix:function(){return i}});var r=t(94850);r.env.NEXT_PUBLIC_PRO_PLAN_ID_MONTHLY,r.env.NEXT_PUBLIC_PRO_PLAN_ID_YEARLY;let s=!1,a=!1,i=7,o=42;r.env.NEXT_PUBLIC_APP_VERSION},65943:function(e,n,t){"use strict";t.d(n,{S:function(){return a}});var r=t(23718),s=t(8288);let a=(0,r.t)({config:()=>s.A})},8288:function(e,n,t){"use strict";t.d(n,{A:function(){return l}});var r=t(39547),s=t(19619),a=t(93909),i=t(98748),o=t(81342);let l={links:[(0,a.N8)({url:"/api/trpc"})],transformer:o.ZP,queryClientConfig:{defaultOptions:{queries:{retry:!1,cacheTime:1/0,staleTime:6e4}},mutationCache:new s.L({onError:e=>{i.ZP.error("Uh oh! Something went wrong. The issue has been logged and we'll fix it as soon as possible. Please try again later."),r.Tb(e)}})}}},73516:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var r=JSON.parse('{"eu":"Basque","ca":"Catal\xe0","cs":"Česky","da":"Dansk","de":"Deutsch","en":"English","es":"Espa\xf1ol","fr":"Fran\xe7ais","hr":"Hrvatski","it":"Italiano","hu":"Magyar","nl":"Nederlands","no":"Norsk","pl":"Polski","pt-BR":"Portugu\xeas - Brasil","ru":"Русский","sk":"Slovenčina","fi":"Suomi","sv":"Svenska","tr":"T\xfcrk\xe7e","zh":"简体中文","zh-Hant":"繁體中文"}')},490:function(e,n,t){"use strict";t.d(n,{C:function(){return o}});var r=t(27573),s=t(1485);t(7653);var a=t(49364);let i=(0,s.j)("inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-50",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function o(e){let{className:n,variant:t,...s}=e;return(0,r.jsx)("div",{className:(0,a.cn)(i({variant:t}),n),...s})}},19700:function(e,n,t){"use strict";t.r(n),t.d(n,{Button:function(){return c},buttonVariants:function(){return u}});var r=t(27573),s=t(88377),a=t(78886),i=t(1485),o=t(7653),l=t(49364);let u=(0,i.j)((0,l.cn)("inline-flex border font-medium disabled:pointer-events-none select-none disabled:opacity-50 items-center justify-center whitespace-nowrap rounded-md border","focus:ring-offset-input-background focus:border-primary-400 focus:ring-2 focus:ring-indigo-100"),{variants:{variant:{primary:"border-primary-700 bg-primary disabled:bg-gray-400 disabled:border-transparent text-primary-foreground shadow-sm hover:bg-primary-500 active:bg-primary-700",destructive:"bg-destructive text-destructive-foreground focus:ring-offset-1 active:bg-destructive border-destructive hover:bg-destructive/90",default:"rounded-md px-3.5 py-2.5 data-[state=open]:shadow-none data-[state=open]:bg-gray-100 active:bg-gray-200 hover:bg-gray-100 bg-gray-50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"border-transparent hover:bg-gray-200 active:bg-gray-300",link:"underline-offset-4 hover:underline text-primary"},size:{default:"h-9 px-2.5 gap-x-2.5 text-sm",sm:"h-7 text-xs px-1.5 gap-x-1.5 rounded-md",lg:"h-11 text-base gap-x-3 px-4 rounded-md"}},defaultVariants:{variant:"default",size:"default"}}),c=o.forwardRef((e,n)=>{let{className:t,icon:i,loading:o,children:c,variant:d,type:p="button",size:f,asChild:h=!1,...x}=e,g=h?s.g7:"button";return(0,r.jsx)(g,{className:(0,l.cn)("group",u({variant:d,size:f}),{"pointer-events-none":o},t),ref:n,type:p,...x,children:h?c:(0,r.jsxs)(r.Fragment,{children:[o?(0,r.jsx)(a.Z,{className:"size-4 animate-spin"}):i?(0,r.jsx)(i,{className:(0,l.cn)("-ml-0.5 size-4")}):null,c]})})});c.displayName="Button"},49364:function(e,n,t){"use strict";t.d(n,{cn:function(){return a}});var r=t(97157),s=t(75e3);function a(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return(0,s.m)((0,r.W)(n))}},2056:function(e,n,t){e.exports=t(43040)}}]);
//# sourceMappingURL=61-d3d5dc4ab38d1949.js.map