PageSourceSearch

https://mmohub.app/assets/GlassButton.vue_vue_type_script_setup_true_lang-CWxKAR-O.js

js mmohub.app collected 2026-10-02 01:14:56 UTC 1,535 bytes, 1 lines download raw bytes

1import{d as i,b as c,c as s,n as u,h as b,S as m,a as l,o as r}from"./index-EaLmg-Ni.js";const g=["disabled"],p={key:0,class:"animate-spin -ml-1 mr-2 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},y=i({__name:"GlassButton",props:{variant:{default:"default"},size:{default:"md"},block:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){const a=e,n=c(()=>{const o="inline-flex items-center justify-center font-medium transition-all duration-200 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",t={default:"glass-button",primary:"glass-button-primary",cta:"glass-button-cta",secondary:"bg-gray-100 hover:bg-gray-200 dark:bg-white/5 dark:hover:bg-white/10 border border-gray-200 dark:border-white/10 rounded-xl text-gray-800 dark:text-white",danger:"bg-red-500 hover:bg-red-600 text-white rounded-xl"},d={sm:"px-4 py-2 text-sm rounded-lg",md:"px-6 py-3 text-base rounded-xl",lg:"px-8 py-4 text-lg rounded-xl"};return[o,t[a.variant],d[a.size],a.block?"w-full":""].join(" ")});return(o,t)=>(r(),s("button",{class:u(n.value),disabled:e.loading||e.disabled},[e.loading?(r(),s("svg",p,[...t[0]||(t[0]=[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])])):b("",!0),m(o.$slots,"default")],10,g))}});export{y as _};

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.