1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[971],{3048:(e,t,o)=>{"use strict";function a(e,t,o,a){let n=e=>new Date(e.setHours(0,0,0,0));e=n(e),a=n(a);let l=new Date(e);for(;l<=a;){let e=new Date(l);e.setDate(l.getDate()+t);let n=new Date(l),s=new Date(l);s.setDate(n.getDate()+o-1);let i=new Date(l);i.setDate(l.getDate()+t);let r=new Date(i);r.setDate(i.getDate()-14);let D=new Date(r);if(D.setDate(r.getDate()-5),a>=l&&a<e){if(a>=n&&a<=s){let e=(a.getTime()-n.getTime())/864e5+1;return{top:"Period",bottom:"Day ".concat(e)}}if(a.getTime()===r.getTime())return{top:"",bottom:"Ovulation day"};if(a>=D&&a<r){let e=(r.getTime()-a.getTime())/864e5;return{top:"Ovulation in",bottom:"".concat(e," days")}}let e=(i.getTime()-a.getTime())/864e5;if(a>r&&e<=5)return{top:"Period in",bottom:"".concat(e," days")};return{top:"",bottom:"Normal cycle day"}}l=i}return{top:"",bottom:"Date out of cycle range"}}function n(e,t,o,a){let n,s,i,r;let D=e=>new Date(e.setHours(0,0,0,0));e=D(e),a=D(a);let c=new Date(e),d=0;for(;c<=a;){console.log(++d),new Date(c).setDate(c.getDate()+t);let e=new Date(c);new Date(c).setDate(e.getDate()+o-1),(r=new Date(c)).setDate(c.getDate()+t),(i=new Date(r)).setDate(r.getDate()-14),(n=new Date(i)).setDate(i.getDate()-5),s=new Date(i),c.setDate(c.getDate()+t)}return{fertileStart:l(n),fertileEnd:l(s),ovulationDay:l(i),nextPeriodStart:l(r)}}function l(e){return e?e.toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"Undefined Date"}o.d(t,{x:()=>n,y:()=>a})},5302:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>r});var a=o(5155),n=o(2115),l=o(3048),s=o(5348),i=o(729);function r(){let[e,t]=(0,n.useState)([]);return(0,n.useEffect)(()=>{let e=function(e,t){let o=new Date(e),a=new Date(t),n=[];for(;o<=a;)n.push({date:o.toISOString().split("T")[0],cycle_day:"",flow:"",feelings:"",sex_options:"",mood:"",symptoms:""}),o.setDate(o.getDate()+1);return n}("2025-03-20","2025-03-29"),o=new Date(localStorage.getItem("lastPeriod")),a=parseInt(localStorage.getItem("cycleLength")),n=parseInt(localStorage.getItem("periodLength"));t(e.map(e=>{let t=new Date(e.date),s="".concat(t.getDate()," ").concat(t.toLocaleString("default",{month:"long"})),{top:i,bottom:r}=(0,l.y)(o,a,n,t);e.cycle_day="".concat(i," ").concat(r);{let t=localStorage.getItem(s);if(console.log(s),console.log(t),t){let o=JSON.parse(t);e.mood=o.selectedMoods.join(", "),e.symptoms=o.selectedSymptoms.join(", "),e.sex_options=o.selectedSexOptions.join(", "),e.feelings=o.selectedFeelings.join(", "),e.flow=o.selectedFlow.join(", ")}}return e}))},[]),(0,a.jsxs)(s.x,{data:e,children:[(0,a.jsx)(i.H,{field:"date",title:"Date"}),(0,a.jsx)(i.H,{field:"cycle_day",title:"Cycle Day"}),(0,a.jsx)(i.H,{field:"feelings",title:"Feelings"}),(0,a.jsx)(i.H,{field:"flow",title:"Menstrual Flow"}),(0,a.jsx)(i.H,{field:"sex_options",title:"Sex and Sex Drive"}),(0,a.jsx)(i.H,{field:"mood",title:"Mood"}),(0,a.jsx)(i.H,{field:"symptoms",title:"Symptoms"})]})}},9174:(e,t,o)=>{Promise.resolve().then(o.bind(o,5302))}},e=>{var t=t=>e(e.s=t);e.O(0,[191,312,438,641,348,441,684,358],()=>t(9174)),_N_E=e.O()}]);
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.