PageSourceSearch

https://quiroom.it/assets/year-selector-C9vZUPFy.js

js quiroom.it collected 2026-10-06 20:38:17 UTC 1,483 bytes, 1 lines download raw bytes

1import{R as u,j as t}from"./index-BCpPkyqe.js";import{d as f}from"./dayjs.min-CNBi1RcP.js";import{L as S}from"./label-CYoQbKR4.js";import{S as d,a as x,b as p,c as j,d as g}from"./select-DoG1_aSp.js";import{u as v}from"./use-locale-B187lbU4.js";import{u as y}from"./use-translate-CU5bsLgX.js";import{c as P}from"./create-months-BIBWc1DV.js";import{b}from"./components-CN-rrsvO.js";function w(){const[n,o]=b(),c=y(),s=v(),[l,m]=u.useState(n.get("month")||(f().month()+1).toString()),h=P(s).map((e,a)=>({key:a+1,label:e})),i=e=>{m(e),o(a=>{const r=new URLSearchParams(a);return r.set("month",e),r},{preventScrollReset:!0})};return t.jsxs("div",{className:"space-y-2",children:[t.jsx(S,{htmlFor:"month",children:c("b2b.month")}),t.jsxs(d,{name:"month",value:l,onValueChange:i,children:[t.jsx(x,{children:t.jsx(p,{})}),t.jsx(j,{children:h.map(e=>t.jsx(g,{value:e.key.toString(),children:e.label},e.key))})]})]})}function N(){const[n,o]=b(),c=y(),s=new Date().getFullYear(),[l,m]=u.useState(n.get("year")||s.toString()),h=Array.from({length:5},(e,a)=>s-a).map(e=>({key:e,label:e})),i=e=>{m(e),o(a=>{const r=new URLSearchParams(a);return r.set("year",e),r},{preventScrollReset:!0})};return t.jsxs("div",{className:"space-y-2",children:[t.jsx(S,{htmlFor:"year",children:c("b2b.year")}),t.jsxs(d,{name:"year",value:l,onValueChange:i,children:[t.jsx(x,{children:t.jsx(p,{})}),t.jsx(j,{children:h.map(e=>t.jsx(g,{value:e.key.toString(),children:e.label},e.key))})]})]})}export{w as M,N as Y};

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.