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E,6DAA6D;AAC7D,6DAA6D;AAC7D,6DAA6D;AAC7D,6DAA6D;AAC7D,6DAA6D;AAC7D,6DAA6D;AAC7D,6DAA6D;AAC7D,6DAA6D;AAE7D,4DAA4D;AAC5D,4DAA4D;AAC5D,4DAA4D;AAC5D,4DAA4D;AAC5D,4DAA4D;AAC5D,4DAA4D;AAC5D,4DAA4D;AAC5D,4DAA4D;AAE5D,iEAAiE;AACjE,+DAA+D;AAC/D,wDAAwD;AACxD,4DAA4D;AAE5D,wCAAwC;AACxC,iCAAiC;AACjC,sCAAsC;AACtC,IAAI;AACJ,IAAI","file":"postLoad.js","sourcesContent":["import { DAYTOOL } from \"./../classes/daytool.js\";\n// import { daytool_query } from \"./../classes/daytool_query.js\";\nimport { daytool_ui } from \"./../classes/daytool_ui.js\";\n\nwindow.onload = function() {\n // console.log(ICAL);\n // var icalData = getAllCalendarsEvents();\n // microsoftReturnCalendars();\n\n // var icalData = getAllCalendarsEvents();\n // const jcalData = parse(icalData);\n // const comp = new ICAL.Component(jcalData);\n // alert(comp);\n\n // Check if there is new pulse\n\n if (localStorage.getItem('DEMITOOL_PULSE_HOURS_SPENT') &&\n localStorage.getItem('DEMITOOL_PULSE_FREQUENCY') &&\n localStorage.getItem('DEMITOOL_PULSE_AC') &&\n localStorage.getItem('DEMITOOL_PULSE_RATING')) {\n daytool_ui.confirm_pulse(true);\n }\n};\n\n// function import_pulse () {\n// const ls = new SecureLS({ encodingType: 'aes', isCompression: true });\n// if (localStorage.getItem('DEMITOOL_PULSE_HOURS_SPENT') &&\n// localStorage.getItem('DEMITOOL_PULSE_FREQUENCY') &&\n// localStorage.getItem('DEMITOOL_PULSE_AC') &&\n// localStorage.getItem('DEMITOOL_PULSE_RATING')) {\n// var DEMITOOL_PULSE_HOURS_SPENT = JSON.parse(ls.get('DEMITOOL_PULSE_HOURS_SPENT'));\n// var DEMITOOL_PULSE_FREQUENCY = JSON.parse(ls.get('DEMITOOL_PULSE_FREQUENCY'));\n// var DEMITOOL_PULSE_AC = JSON.parse(ls.get('DEMITOOL_PULSE_AC'));\n// var DEMITOOL_PULSE_RATING = JSON.parse(ls.get('DEMITOOL_PULSE_RATING'));\n// DAYTOOL.state.needs[0].unit = DEMITOOL_PULSE_FREQUENCY[0];\n// DAYTOOL.state.needs[1].unit = DEMITOOL_PULSE_FREQUENCY[1];\n// DAYTOOL.state.needs[2].unit = DEMITOOL_PULSE_FREQUENCY[2];\n// DAYTOOL.state.needs[3].unit = DEMITOOL_PULSE_FREQUENCY[3];\n// DAYTOOL.state.needs[4].unit = DEMITOOL_PULSE_FREQUENCY[4];\n// DAYTOOL.state.needs[5].unit = DEMITOOL_PULSE_FREQUENCY[5];\n// DAYTOOL.state.needs[6].unit = DEMITOOL_PULSE_FREQUENCY[6];\n// DAYTOOL.state.needs[7].unit = DEMITOOL_PULSE_FREQUENCY[7];\n\n// DAYTOOL.state.needs[0].minimum_time_required.push(DEMITOOL_PULSE_HOURS_SPENT[0]);\n// DAYTOOL.state.needs[1].minimum_time_required.push(DEMITOOL_PULSE_HOURS_SPENT[1]);\n// DAYTOOL.state.needs[2].minimum_time_required.push(DEMITOOL_PULSE_HOURS_SPENT[2]);\n// DAYTOOL.state.needs[3].minimum_time_required.push(DEMITOOL_PULSE_HOURS_SPENT[3]);\n// DAYTOOL.state.needs[4].minimum_time_required.push(DEMITOOL_PULSE_HOURS_SPENT[4]);\n// DAYTOOL.state.needs[5].minimum_time_required.push(DEMITOOL_PULSE_HOURS_SPENT[5]);\n// DAYTOOL.state.needs[6].minimum_time_required.push(DEMITOOL_PULSE_HOURS_SPENT[6]);\n// DAYTOOL.state.needs[7].minimum_time_required.push(DEMITOOL_PULSE_HOURS_SPENT[7]);\n\n// DAYTOOL.state.needs[0].pulse_rating = DEMITOOL_PULSE_RATING[0];\n// DAYTOOL.state.needs[1].pulse_rating = DEMITOOL_PULSE_RATING[1];\n// DAYTOOL.state.needs[2].pulse_rating = DEMITOOL_PULSE_RATING[2];\n// DAYTOOL.state.needs[3].pulse_rating = DEMITOOL_PULSE_RATING[3];\n// DAYTOOL.state.needs[4].pulse_rating = DEMITOOL_PULSE_RATING[4];\n// DAYTOOL.state.needs[5].pulse_rating = DEMITOOL_PULSE_RATING[5];\n// DAYTOOL.state.needs[6].pulse_rating = DEMITOOL_PULSE_RATING[6];\n// DAYTOOL.state.needs[7].pulse_rating = DEMITOOL_PULSE_RATING[7];\n\n// var note_object_0 = new daytool_note(DAYTOOL.state.needs[0].id);\n// var note_object_1 = new daytool_note(DAYTOOL.state.needs[1].id);\n// var note_object_2 = new daytool_note(DAYTOOL.state.needs[2].id);\n// var note_object_3 = new daytool_note(DAYTOOL.state.needs[3].id);\n// var note_object_4 = new daytool_note(DAYTOOL.state.needs[4].id);\n// var note_object_5 = new daytool_note(DAYTOOL.state.needs[5].id);\n// var note_object_6 = new daytool_note(DAYTOOL.state.needs[6].id);\n// var note_object_7 = new daytool_note(DAYTOOL.state.needs[7].id);\n\n// note_object_0.setNoteString(DEMITOOL_PULSE_AC[0]);\n// note_object_1.setNoteString(DEMITOOL_PULSE_AC[1]);\n// note_object_2.setNoteString(DEMITOOL_PULSE_AC[2]);\n// note_object_3.setNoteString(DEMITOOL_PULSE_AC[3]);\n// note_object_4.setNoteString(DEMITOOL_PULSE_AC[4]);\n// note_object_5.setNoteString(DEMITOOL_PULSE_AC[5]);\n// note_object_6.setNoteString(DEMITOOL_PULSE_AC[6]);\n// note_object_7.setNoteString(DEMITOOL_PULSE_AC[7]);\n\n// DAYTOOL.state.needs[0].notes.push(note_object_0);\n// DAYTOOL.state.needs[1].notes.push(note_object_1);\n// DAYTOOL.state.needs[2].notes.push(note_object_2);\n// DAYTOOL.state.needs[3].notes.push(note_object_3);\n// DAYTOOL.state.needs[4].notes.push(note_object_4);\n// DAYTOOL.state.needs[5].notes.push(note_object_5);\n// DAYTOOL.state.needs[6].notes.push(note_object_6);\n// DAYTOOL.state.needs[7].notes.push(note_object_7);\n\n// localStorage.removeItem('DEMITOOL_PULSE_HOURS_SPENT');\n// localStorage.removeItem('DEMITOOL_PULSE_FREQUENCY');\n// localStorage.removeItem('DEMITOOL_PULSE_AC');\n// localStorage.removeItem('DEMITOOL_PULSE_RATING');\n\n// DAYTOOL.saveToLocalStorage();\n// new daytool_query(\"\");\n// daytool_ui.confirm_pulse();\n// }\n// }\n"]}