1"use strict";(self.webpackChunkdaybook=self.webpackChunkdaybook||[]).push([[9061],{65489:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var r=a(9950),o=a(14857),n=a(16491),l=a(10226),s=a(72362),i=a(20162),d=a(56712),c=a(43298),g=(a(39890),a(34779),a(44414));const p=e=>{let{setBegin:t,setEnd:a,startDate:p,endDate:h}=e;const u=(0,o.A)(),[b,x]=(0,r.useState)(null),D=Boolean(b),[k,f]=(0,r.useState)([{startDate:p||(0,d.A)(new Date,-7),endDate:h||new Date,key:"selection"}]);return(0,g.jsxs)(n.A,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,g.jsxs)(l.A,{variant:"outlined",onClick:e=>x(e.currentTarget),sx:{textTransform:"none",borderRadius:"10px",backgroundColor:"dark"===u.palette.mode?"#1c1c1c":"rgba(255,255,255,0.9)",border:"1px solid rgba(0,0,0,0.12)",padding:"10px 16px",fontSize:"0.95rem",fontWeight:500,color:u.palette.text.primary,"&:hover":{borderColor:u.palette.primary.main,backgroundColor:"dark"===u.palette.mode?"#222":"rgba(97,167,97,0.08)"}},children:["\ud83d\udcc5 ",k[0].startDate.toLocaleDateString()," \u2014"," ",k[0].endDate.toLocaleDateString()]}),(0,g.jsx)(s.Ay,{open:D,anchorEl:b,onClose:()=>x(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{boxShadow:"0 4px 20px rgba(0,0,0,0.15)",borderRadius:"12px",overflow:"visible",zIndex:9999}},children:(0,g.jsx)(i.Ur,{editableDateInputs:!0,onChange:e=>{const r=e.selection,o=r.startDate,n=r.endDate;Math.abs(n.getMonth()-o.getMonth())+12*(n.getFullYear()-o.getFullYear())>12?alert("Please select a date range within one year."):(f([r]),t(o),a(n))},moveRangeOnFirstSelection:!1,ranges:k,rangeColors:["#61a761"],direction:"horizontal",months:2,showDateDisplay:!1,showMonthAndYearPickers:!0,locale:c.default})})]})}}}]);
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.