1import{o as c}from"./rolldown-runtime-b_fG2Gut.js";import{a as b,i as u}from"./vendor-react-DV9bK1m_.js";import{gt as m}from"./vendor-react-aria-ByuDyAD2.js";import{Mi as h}from"./vendor-iconify-XiaKYyX9.js";import{n as f}from"./vendor-tailwind-CgWbeBRs.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[new a.Error().stack]=(function(l){for(var r=1;r<arguments.length;r++){var t=arguments[r];if(t!=null)for(var o in t)t.hasOwnProperty(o)&&(l[o]=t[o])}return l})({},a._sentryModuleMetadata[new a.Error().stack],{"_sentryBundlerPluginAppKey:pixai-web-app-key":!0});var e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="b0243c5a-6be6-43d5-892b-46daf91ad5d1",a._sentryDebugIdIdentifier="sentry-dbid-b0243c5a-6be6-43d5-892b-46daf91ad5d1")}catch{}})();var d=c(b(),1),i=u(),v=f({slots:{root:"inline-grid grid-cols-[auto_1fr_auto] items-center h-[--ui-size] rounded-md focus-visible:outline outline-2 outline-offset-1 transition duration-75",label:"row-start-1 col-start-2 whitespace-nowrap",startIcon:"row-start-1 col-start-1 size-[--ui-size]",endIcon:"row-start-1 col-start-3 size-[--ui-size]",spinner:"place-self-center animate-spin"},variants:{variant:{outlined:{root:["border","disabled:text-black/40 disabled:border-black/20","dark:disabled:text-white/40 dark:disabled:border-white/20"]},filled:{root:["disabled:text-black/50 disabled:bg-black/15","dark:disabled:text-white/50 dark:disabled:bg-white/15"]},ghost:{root:["disabled:text-black/40","dark:disabled:text-white/40"]},unstyled:{}},size:{small:{spinner:"size-5"},normal:{spinner:"size-5"},large:{spinner:"size-6"},xl:{spinner:"size-7"}},color:{normal:{},danger:{},admin:{},theme:{},"grayish-sidebar":{}},colorScheme:{auto:{},dark:{},light:{}},hasLabel:{false:{label:"hidden"}},hasStartIcon:{false:{startIcon:"hidden"}},hasEndIcon:{false:{endIcon:"hidden"}},hasBusyLabel:{true:{},false:{}},busy:{false:{spinner:"hidden"}}},compoundVariants:[{variant:["outlined","filled"],size:["small","normal"],className:{root:"text-sm"}},{variant:["outlined","filled"],size:"large",className:{root:"text-base"}},{variant:["outlined","filled"],size:"xl",className:{root:"text-lg"}},{variant:["outlined","filled"],size:"small",className:{root:"[--ui-size:theme(spacing.7)]"}},{variant:["outlined","filled"],size:"normal",className:{root:"[--ui-size:theme(spacing.8)]"}},{variant:["outlined","filled"],size:"large",className:{root:"[--ui-size:theme(spacing.10)]"}},{variant:["outlined","filled"],size:"xl",className:{root:"[--ui-size:theme(spacing.12)]"}},{variant:["outlined","filled"],hasStartIcon:!0,className:{startIcon:"grid place-content-center"}},{variant:["outlined","filled"],hasEndIcon:!0,className:{endIcon:"grid place-content-center"}},{variant:["outlined","filled"],hasStartIcon:!1,size:"small",className:{root:"pl-2"}},{variant:["outlined","filled"],hasLabel:!0,hasEndIcon:!1,size:"small",className:{root:"pr-2"}},{variant:["outlined","filled"],hasStartIcon:!1,size:"normal",className:{root:"pl-2.5"}},{variant:["outlined","filled"],hasLabel:!0,hasEndIcon:!1,size:"normal",className:{root:"pr-2.5"}},{variant:["outlined","filled"],hasStartIcon:!1,size:"large",className:{root:"pl-3"}},{variant:["outlined","filled"],hasLabel:!0,hasEndIcon:!1,size:"large",className:{root:"pr-3"}},{variant:["outlined","filled"],hasStartIcon:!1,size:"xl",className:{root:"pl-4"}},{variant:["outlined","filled"],hasLabel:!0,hasEndIcon:!1,size:"xl",className:{root:"pr-4"}},{variant:"outlined",color:"normal",className:{root:["hover:bg-black/5 border-black/50 focus-visible:border-black/20 outline-black/80","dark:hover:bg-white/5 dark:border-white/50 dark:focus-visible:border-white/20 dark:outline-white/80"]}},{variant:"outlined",color:"theme",className:{root:["text-purple-600 hover:bg-purple-600/10 border-purple-600 focus-visible:border-purple-600/20 outline-purple-600","dark:text-purple-500 dark:hover:bg-purple-500/10 dark:border-purple-500 dark:focus-visible:border-purple-500/20 dark:outline-purple-500"]}},{variant:"outlined",color:"danger",className:{root:["text-red-600 hover:bg-red-600/10 border-red-600 focus-visible:border-red-600/20 outline-red-600","dark:text-red-500 dark:hover:bg-red-500/10 dark:border-red-500 dark:focus-visible:border-red-500/20 dark:outline-red-500"]}},{variant:"outlined",color:"admin",className:{root:["text-amber-700 hover:bg-amber-600/10 border-amber-600 focus-visible:border-amber-600/20 outline-amber-600","dark:text-amber-500 dark:hover:bg-amber-500/10 dark:border-amber-500 dark:focus-visible:border-amber-500/20 dark:outline-amber-500"]}},{variant:"filled",color:"normal",colorScheme:"auto",className:{root:["text-white bg-black hover:bg-[color-mix(in_srgb,#000,#FFF_25%)] outline-black","dark:text-black dark:bg-[color-mix(in_srgb,#FFF,#000_10%)] dark:hover:bg-white dark:outline-white"]}},{variant:"filled",color:"normal",colorScheme:"dark",className:{root:"text-black bg-[color-mix(in_srgb,#FFF,#000_10%)] hover:bg-white outline-white"}},{variant:"filled",color:"theme",className:{root:["text-white bg-purple-600 hover:bg-purple-500 ","outline-purple-600","dark:outline-purple-500"]}},{variant:"filled",color:"grayish-sidebar",className:{root:["font-medium h-9","drop-shadow-sm dark:shadow-black/30 hover:shadow-black/20 dark:hover:shadow-black/60 active:shadow-black/10 dark:active:shadow-black shadow hover:shadow-md active:shadow-md dark:active:shadow disabled:shadow-none","text-black bg-background-light","ring-black/10 dark:ring-black/20 active:ring-black/20 dark:active:ring-black/40","dark:text-white disabled:text-black/50 dark:disabled:text-white/40"]}},{variant:"filled",color:"danger",className:{root:"text-white bg-red-600 hover:bg-red-500 outline-red-500"}},{variant:"filled",color:"admin",className:{root:["text-white outline-amber-600","bg-[color-mix(in_srgb,theme(colors.amber.700),#FFF_20%)] hover:bg-[color-mix(in_srgb,theme(colors.amber.700),#FFF_30%)]","dark:bg-[color-mix(in_srgb,theme(colors.amber.600),#000_20%)] dark:hover:bg-[color-mix(in_srgb,theme(colors.amber.600),#000_10%)]"]}},{variant:"ghost",color:"normal",className:{root:["hover:bg-black/5 outline-black/80","dark:hover:bg-white/5 dark:outline-white/80"]}},{variant:"ghost",color:"danger",className:{root:["text-red-600 hover:bg-red-600/10 outline-red-600","dark:text-red-500 dark:hover:bg-red-500/10 dark:outline-red-500"]}},{variant:"ghost",color:"admin",className:{root:["text-amber-700 hover:bg-amber-600/10 outline-amber-600","dark:text-amber-500 dark:hover:bg-amber-500/10 dark:outline-amber-500"]}},{hasStartIcon:!0,busy:!0,className:{startIcon:"invisible",spinner:"row-start-1 col-start-1"}},{hasStartIcon:!1,hasEndIcon:!0,busy:!0,className:{endIcon:"invisible",spinner:"row-start-1 col-start-3"}},{hasStartIcon:!1,hasEndIcon:!1,hasBusyLabel:!0,busy:!0,className:{spinner:"row-start-1 col-start-3"}},{hasStartIcon:!1,hasEndIcon:!1,hasBusyLabel:!1,busy:!0,className:{label:"invisible",spinner:"row-start-1 col-start-2"}}
1],compoundSlots:[{slots:["startIcon","endIcon"],variant:["outlined","filled"],className:"h-full aspect-square"}],defaultVariants:{variant:"outlined",size:"normal",color:"normal",hasLabel:!1,hasStartIcon:!1,hasEndIcon:!1}}),g=(0,d.forwardRef)(function(e,l){const[r,t]=(0,d.useState)(e.busy===!0);typeof e.busy=="boolean"&&r!==e.busy&&t(e.busy);async function o(n){if(e.busy==="auto")try{t(!0),await e.onPress?.(n)}finally{t(!1)}else e.onPress?.(n)}const s=v({variant:e.variant,size:e.size,color:e.color,colorScheme:e.colorScheme??"auto",hasLabel:!!e.children,hasStartIcon:!!e.icon,hasEndIcon:!!e.endIcon,hasBusyLabel:!!e.busyLabel,busy:r});return(0,i.jsxs)(m,{ref:l,...e,isDisabled:e.disabled||r||void 0,className:s.root({className:e.className}),style:e.style,onPress:o,onFocus:e.onFocus,children:[(0,i.jsx)("span",{className:s.startIcon({className:e.startIconClassName}),children:e.icon}),(0,i.jsx)("span",{className:s.label({className:e.labelClassName}),children:r?e.busyLabel??e.children:e.children}),(0,i.jsx)("span",{className:s.endIcon({className:e.endIconClassName}),children:e.endIcon}),(0,i.jsx)(h,{className:s.spinner()})]})});g.displayName="UIButton";export{v as n,g as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.