PageSourceSearch

https://my.luanasavingsbank.com/en/js/bannoweb-report-date-periods-C1i0oIjP.js

js luanasavingsbank.com collected 2026-10-02 05:55:35 UTC 2,547 bytes, 1 lines download raw bytes

1import{t as e}from"./date-URgChy6n.js";var t=[{key:`thisMonthSoFar`},{key:`last7Days`},{key:`previousBusinessDay`},{key:`pending`},{key:`lastWeek`},{key:`lastMonth`},{key:`last6Months`}];function n(e){let t=new Date;switch(e){case`thisMonthSoFar`:return{beginDate:new Date(t.getFullYear(),t.getMonth(),1),endDate:t};case`last7Days`:return{beginDate:new Date(new Date(t).setDate(t.getDate()-7)),endDate:t};case`lastWeek`:{let e=t.getDate()-t.getDay()-7,n=e+6;return{beginDate:new Date(new Date(t).setDate(e)),endDate:new Date(new Date(t).setDate(n))}}case`lastMonth`:return{beginDate:new Date(new Date(new Date(t).setMonth(t.getMonth()-1)).setDate(1)),endDate:new Date(new Date(new Date(t).setMonth(t.getMonth())).setDate(0))};case`last6Months`:return{beginDate:new Date(new Date(t).setMonth(t.getMonth()-6)),endDate:t};case`previousBusinessDay`:return null;case`pending`:return null;default:return null}}function r(e){return t.some(t=>t.key===e)}function i(e){switch(e){case`thisMonthSoFar`:return{dateType:`ThisMonthSoFar`,dayRange:null};case`last7Days`:return{dateType:`PreviousNumOfDays`,dayRange:7};case`lastWeek`:return{dateType:`LastWeek`,dayRange:null};case`lastMonth`:return{dateType:`PastMonth`,dayRange:null};case`last6Months`:return{dateType:`PreviousNumOfDays`,dayRange:180};case`previousBusinessDay`:return{dateType:`PreviousBusinessDay`,dayRange:null};case`pending`:return{dateType:`Pending`,dayRange:null};default:return{dateType:`DateRange`,dayRange:null}}}function a(e,t){switch(e){case`ThisMonthSoFar`:return`thisMonthSoFar`;case`LastWeek`:return`lastWeek`;case`PastMonth`:return`lastMonth`;case`PreviousNumOfDays`:return t===7?`last7Days`:t===180?`last6Months`:null;case`PreviousBusinessDay`:return`previousBusinessDay`;case`Pending`:return`pending`;default:return null}}function o(e){switch(e){case`thisMonthSoFar`:return`This month (so far)`;case`last7Days`:return`Last 7 days`;case`lastWeek`:return`Last week`;case`lastMonth`:return`Last month`;case`last6Months`:return`Last 6 months`;case`previousBusinessDay`:return`Previous Business Day`;case`pending`:return`Pending`;default:return``}}async function s(e){let{ok:t,data:n}=await e.getPreviousBusinessDay();if(!t)return null;let r=new Date(n);return{beginDate:r,endDate:r}}function c(){return t.map(({key:t})=>{let r=n(t);return{key:t,title:o(t),date:r?.beginDate??null,secondary:r?.endDate??null,subtitle:r?`Currently: ${e.getShortMonthDateYear(r.beginDate)} – ${e.getShortMonthDateYear(r.endDate)}`:``,detail:null}})}export{o as a,i,c as n,r as o,s as r,n as s,a 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.