PageSourceSearch

https://portal.chip-in.asia/build/_shared/chunk-B4NKPGJX.js

js chip-in.asia collected 2026-09-24 08:55:02 UTC 2,742 bytes, 1 lines download raw bytes

1import{ka as p,la as S,ma as b,na as y,pa as v}from"/build/_shared/chunk-EOJS7VXF.js";import{A as C,a as $,l as f}from"/build/_shared/chunk-X4AHNLAR.js";import{d as m}from"/build/_shared/chunk-DTKMK5PW.js";var T=m($()),t=m(C()),V=T.default.memo(({selectedMonth:n,selectedYear:l,onMonthChange:h,onYearChange:u,startParam:i="created.gte",endParam:r="created.lte",valueFormat:g="unix"})=>{let[c,M]=f(),I=[{label:"January",value:"january"},{label:"February",value:"february"},{label:"March",value:"march"},{label:"April",value:"april"},{label:"May",value:"may"},{label:"June",value:"june"},{label:"July",value:"july"},{label:"August",value:"august"},{label:"September",value:"september"},{label:"October",value:"october"},{label:"November",value:"november"},{label:"December",value:"december"}],D=new Date().getFullYear(),F=Array.from({length:5},(e,a)=>{let d=D-4+a;return{label:d.toString(),value:d.toString()}});return(0,T.useEffect)(()=>{let e=I.findIndex(N=>N.value===n);if(e===-1)return;let a=parseInt(l,10),d=new Date(a,e,1,0,0,0),P=new Date(a,e+1,0,23,59,59);g==="date"?(c.set(i,`${a}-${String(e+1).padStart(2,"0")}-01`),c.set(r,`${a}-${String(e+1).padStart(2,"0")}-${String(P.getDate()).padStart(2,"0")}`)):(c.set(i,Math.floor(d.getTime()/1e3).toString()),c.set(r,Math.floor(P.getTime()/1e3).toString())),setTimeout(()=>{M(c)},100)},[n,l,c,M,i,r,g]),(0,t.jsx)("div",{className:"rounded-lg border-2 border-gray-100 bg-gray-50 p-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)("span",{children:"Select month:"})}),(0,t.jsxs)(p,{value:n,onValueChange:e=>h(e),children:[(0,t.jsx)(b,{children:(0,t.jsx)(S,{})}),(0,t.jsx)(y,{sticky:"always",position:"item-aligned",className:"z-10",children:I.map((e,a)=>(0,t.jsx)(v,{value:e.value||`option-${a}`,children:e.label},a))})]}),(0,t.jsxs)(p,{value:l,onValueChange:e=>u(e),children:[(0,t.jsx)(b,{children:(0,t.jsx)(S,{})}),(0,t.jsx)(y,{sticky:"always",position:"item-aligned",className:"z-10",children:F.map((e,a)=>(0,t.jsx)(v,{value:e.value||`option-${a}`,children:e.label},a))})]})]})})});var s=m($()),o=m(C()),J=s.default.memo(({defaultTypeFilter:n})=>{let[l,h]=(0,s.useState)(n||""),[u,i]=f();return(0,s.useEffect)(()=>{l&&(l=="byMonth"?u.set("filter_type","bymonth"):l=="byDateRange"&&u.delete("filter_type"),i(u,{replace:!0}))},[l,i]),(0,s.useEffect)(()=>{h(n||"")},[n]),(0,o.jsxs)(p,{value:l,onValueChange:r=>h(r),children:[(0,o.jsx)(b,{children:(0,o.jsx)(S,{})}),(0,o.jsx)(y,{sticky:"always",position:"item-aligned",className:"z-10",children:[{label:"By month",value:"byMonth"},{label:"By date range",value:"byDateRange"}].map((r,g)=>(0,o.jsx)(v,{value:r.value||`option-${g}`,children:r.label},g))})]})});export{V as a,J as b};

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.