PageSourceSearch

https://www.prettylitter.com/_nuxt/Button.a551143e.js

js prettylitter.com collected 2026-09-24 18:13:28 UTC 5,119 bytes, 1 lines download raw bytes

1import{_ as T}from"./nuxt-link.9da98e8a.js";import{o,c,a as y,s as p,Z as B,A as z,l as r,h as f,w as A,S as l,d as h,_ as d,$ as x,a0 as O,y as E}from"./entry.68c30b5d.js";const G={class:"h-5 flex items-center"},I={class:"flex w-full justify-center self-center"},L={__name:"LoadingAnimation",props:{animationColor:{type:String,default:"bg-white"}},setup(e){return(m,a)=>(o(),c("div",G,[y("div",I,[y("div",{class:p([e.animationColor,"group-hover:bg-white","mx-px","w-2","h-2","rounded-full","animate-pulse","dot-1"])},null,2),y("div",{class:p([e.animationColor,"group-hover:bg-white","mx-px","w-2","h-2","rounded-full","animate-pulse","dot-2"])},null,2),y("div",{class:p([e.animationColor,"group-hover:bg-white","mx-px","w-2","h-2","rounded-full","animate-pulse","dot-3"])},null,2)])]))}},N=L,R=["href"],V=["disabled"],j=Object.assign({inheritAttrs:!1},{__name:"Button",props:{class:{type:String,default:""},onClick:{type:Function,default:()=>{}},size:{type:String,default:"medium"},href:{type:String,default:"/get-started"},type:{type:String,default:"nuxt-link",validator:e=>["button","link","nuxt-link","loading","scroll"].includes(e)},styleType:{type:String,default:"primarySolid"},loadingState:{type:Boolean,default:!1},animationColor:{type:String,default:"bg-white"},disabled:{type:Boolean,default:!1},textCase:{type:String,default:"uppercase",validator:e=>["uppercase","lowercase","capitalize","normal-case"].includes(e)}},emits:["click"],setup(e,{emit:m}){const a=e,w=m,{onClick:q,size:C,href:b,type:i,styleType:k}=B(a),v={primarySolid:"bg-primary-800 border-primary-800 text-white hover:bg-primary-900 hover:border-primary-900",primaryOutline:"bg-white border-primary-800 text-primary-800 hover:bg-primary-800 hover:text-white",primaryInverse:"bg-white border-white text-primary-800 hover:bg-primary-800 hover:border-primary-800 hover:text-white",whiteRounded:"bg-white border-white text-primary-800 hover:bg-primary-50 shadow-md focus:ring-white focus:ring-offset-0",secondarySolid:"bg-secondary-800 border-secondary-800 text-white hover:bg-secondary-900 hover:border-secondary-900",secondaryOutline:"bg-white border-secondary-800 text-secondary-800 hover:bg-secondary-800 hover:text-white",secondaryInverse:"bg-white border-white text-secondary-800 hover:bg-secondary-800 hover:border-secondary-800 hover:text-white",tertiarySolid:"bg-tertiary-800 border-tertiary-800 text-white hover:bg-tertiary-900 hover:border-tertiary-900",tertiarySolidLight:"bg-tertiary-500 border-tertiary-500 text-white hover:bg-tertiary-800 hover:border-tertiary-800",tertiaryOutline:"bg-white border-tertiary-800 text-tertiary-800 hover:bg-tertiary-800 hover:text-white",tertiaryInverse:"bg-white border-white text-tertiary-800 hover:bg-tertiary-800 hover:border-tertiary-800 hover:text-white",gradient:"bg-gradient-to-r from-gradient-200 to-gradient-500 border-transparent text-white  hover:from-primary-800 hover:to-primary-800",accent:"bg-accent border-transparent text-black hover:bg-primary-900 hover:text-white",red:"bg-red-600 border-red-600 text-white hover:bg-red-900 hover:border-red-900",green:"bg-[#137C44] border-[#137C44] text-white hover:bg-[#0C502C] hover:border-[#0C502C]",primaryRounded:"bg-primary-800 border-primary-800 text-white hover:bg-primary-900 hover:border-primary-900","x-small":"text-sm px-1 lg:px-6 py-2 lg:py-3","xx-small":"text-xs px-1.5 lg:px-4 py-1 lg:py-1.5",small:"text-sm leading-tight px-4 py-2",medium:"text-lg leading-snug px-6 py-2.5",large:"text-xl leading-snug px-6 py-3","x-large":"text-lg leading-snug px-8 py-4",vday:"bg-[#950430] text-white border-[#950430]"},n=z(()=>{let t=`inline-block ${a.textCase} font-sansbold text-center border-2 rounded-full focus:outline-none focus:ring-2 ring-offset-2 focus:ring-primary-800 transition duration-150 ease-in-out`,s=`${v[C.value]} ${v[k.value]}`,g=a.loadingState||a.disabled?"opacity-25 cursor-not-allowed":"";return`${t} ${s} ${a.class} ${g}`}),u=()=>{w("click"),console.debug(`${i.value} emitClicked!!`)},S=()=>{window.scrollTo(0,0),document.querySelector("#main").focus()},$=t=>{setTimeout(()=>{const s=document.querySelector("#main");s?s.focus():document.body.focus()},500)};return(t,s)=>{const g=T,_=N;return r(i)==="nuxt-link"?(o(),f(g,d({key:0,to:r(b),class:n.value},t.$attrs,{onClick:x(u,["prevent","stop"])}),{default:A(()=>[l(t.$slots,"default",{},()=>[h("Get Started")])]),_:3},16,["to","class"])):r(i)==="link"?(o(),c("a",d({key:1,href:r(b),class:n.value},t.$attrs,{onClick:u}),[l(t.$slots,"default",{},()=>[h("Get Started")])],16,R)):r(i)==="scroll"?(o(),c("a",d({key:2,href:"#",class:n.value},t.$attrs,{onClick:x(S,["prevent"]),onKeyup:O($,["enter"])}),[l(t.$slots,"default",{},()=>[h("Back To Top")])],16)):r(i)==="button"?(o(),c("button",d({key:3,class:n.value},t.$attrs,{onClick:u}),[l(t.$slots,"default",{},()=>[h("Get Started")])],16)):r(i)==="loading"?(o(),c("button",d({key:4,class:n.value},t.$attrs,{onClick:u,disabled:e.loadingState||e.disabled}),[e.loadingState?(o(),f(_,{key:1,animationColor:e.animationColor},null,8,["animationColor"])):l(t.$slots,"default",{key:0})],16,V)):E("",!0)}}}),F=j;export{F as _,N as a};

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.