PageSourceSearch

https://science-fitness.de/_nuxt/D1hfHgh2.js

js science-fitness.de collected 2026-10-08 11:14:31 UTC 2,086 bytes, 1 lines download raw bytes

1import{B as e,Gt as t,Ht as n,U as r,W as i,Wt as a,d as o,f as s,it as c,l,p as u,r as d,u as f,v as p,x as m,xt as h}from"./Dx2Pl1Mx.js";import{t as g}from"#entry";import{n as _,t as v}from"./BhwO-H10.js";var y=Object.assign(m({__name:`SfButtonGroup`,props:{modelValue:{},options:{},activeClass:{},inactiveClass:{},equal:{type:Boolean},variant:{}},emits:[`update:modelValue`],setup(m){let y=m,b=l(()=>y.options.findIndex(e=>e.value===y.modelValue));function x(e){return y.variant===`segment`?e===0?`rounded-l-lg`:e===y.options.length-1?`rounded-r-lg`:`rounded-none`:`rounded-lg`}return(l,y)=>{let S=g;return e(),o(h(_),{"model-value":m.modelValue,class:n([`relative flex flex-wrap`,m.variant===`segment`?``:`gap-2`]),"onUpdate:modelValue":y[0]||=e=>l.$emit(`update:modelValue`,e)},{default:c(()=>[m.variant===`segment`&&h(b)>=0?(e(),u(`div`,{key:0,class:n([`absolute inset-y-0 transition-all duration-200 ease-out rounded-lg z-10 pointer-events-none`,m.activeClass||`bg-blue-600`]),style:a({width:100/m.options.length+`%`,left:h(b)*100/m.options.length+`%`,opacity:.15})},null,6)):s(``,!0),(e(!0),u(d,null,r(m.options,(r,a)=>(e(),o(h(v),{key:String(r.value),value:r.value,disabled:r.disabled,as:`template`},{default:c(({checked:c})=>[i(l.$slots,`option`,{option:r,checked:c,index:a},()=>[f(`button`,{type:`button`,class:n([`px-3 py-2 border text-sm font-medium outline-none relative z-20`,m.variant===`segment`?`transition-colors duration-200`:`transition-all duration-150`,x(a),m.variant===`segment`&&a>0?`-ml-px`:``,r.disabled?`opacity-40 cursor-not-allowed`:`cursor-pointer`,m.equal||m.variant===`segment`?`flex-1 text-center`:``,c?m.activeClass||`bg-blue-600 text-white border-blue-600`:m.inactiveClass||`bg-white text-gray-700 border-gray-300 hover:bg-gray-50`,c&&m.variant===`segment`?`relative z-30`:``,!c&&m.variant!==`segment`?`active:scale-95`:``])},[r.icon?(e(),o(S,{key:0,name:r.icon,class:`mr-1`},null,8,[`name`])):s(``,!0),p(` `+t(r.label),1)],2)])]),_:2},1032,[`value`,`disabled`]))),128))]),_:3},8,[`model-value`,`class`])}}}),{__name:`SfButtonGroup`});export{y 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.