PageSourceSearch

https://plus.subanana.com/assets/slider-BBHqwdPE.js

js subanana.com collected 2026-09-24 13:25:26 UTC 3,564 bytes, 1 lines download raw bytes

1import{c as N,a as p}from"./index-C-dmXOB-.js";import{j as s}from"./jsx-runtime-u17CrQMm.js";import{r as i}from"./chunk-UVKPFVEO-42f6VqCb.js";const L=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],K=N("play",L);const D=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Y=N("volume-2",D),I=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"]);function f(c,d,u){return Number.isFinite(c)?Math.min(Math.max(c,d),u):d}function F({className:c,defaultValue:d,disabled:u=!1,form:j,inverted:g=!1,value:m,min:e=0,max:t=100,name:x,orientation:o="horizontal",step:A=1,children:w,onValueChange:y,onValueCommit:v,"aria-label":M,"aria-labelledby":S,...V}){const h=Array.isArray(m),[$,C]=i.useState(()=>d?.[0]??e),E=h?m[0]:$,r=f(E??e,e,t),b=i.useRef(r),n=t>e?(r-e)/(t-e)*100:0;i.useEffect(()=>{b.current=r},[r]);const k=i.useCallback(a=>{v?.([f(a,e,t)])},[t,e,v]),_=i.useCallback(a=>{const l=f(Number(a.currentTarget.value),e,t);b.current=l,h||C(l),y?.([l])},[h,t,e,y]),z=i.useCallback(a=>{const l=Number(a.currentTarget.value);k(l===r?b.current:l)},[k,r]),P=o==="vertical"?g?{bottom:`${n}%`,top:0}:{bottom:0,top:`${100-n}%`}:g?{left:`${n}%`,right:0}:{left:0,right:`${100-n}%`},R=o==="vertical"?{bottom:`${n}%`,transform:"translateY(50%)"}:{left:`${n}%`,transform:"translateX(-50%)"},U=o==="vertical"?{writingMode:"vertical-lr"}:void 0;return s.jsxs("span",{"data-slot":"slider","data-disabled":u?"":void 0,"data-orientation":o,className:p("group/slider relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=horizontal]:h-4 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",c),...V,children:[s.jsxs("span",{"data-slot":"slider-track","data-orientation":o,className:p("bg-muted dark:bg-muted-foreground relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:[s.jsx("span",{"data-slot":"slider-range","data-orientation":o,className:p("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"),style:P}),w?s.jsx("span",{className:"pointer-events-none absolute inset-0 z-20",children:w}):null]}),s.jsx("input",{"aria-label":M,"aria-labelledby":S,className:p("absolute inset-0 z-10 m-0 cursor-pointer appearance-none bg-transparent opacity-0 disabled:pointer-events-none disabled:cursor-not-allowed","[&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:appearance-none","[&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none","h-full w-full"),disabled:u,form:j,max:t,min:e,name:x,step:A,style:U,type:"range",value:r,onChange:_,onKeyUp:a=>{I.has(a.key)&&z(a)},onPointerUp:z}),s.jsx("span",{"aria-hidden":"true","data-slot":"slider-thumb",className:"border-primary ring-ring/50 pointer-events-none absolute z-20 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 group-focus-within/slider:ring-4 group-focus-within/slider:outline-hidden disabled:pointer-events-none disabled:opacity-50",style:R})]})}export{K as P,F as S,Y as V};

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.