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AAI,QAAQ,IAAI,gBAAgB,EAAE,CAAC;QAEjE,CAAC;aAAM,IAAI,QAAQ,IAAI,gBAAgB,IAAI,QAAQ,IAAI,WAAW,EAAE,CAAC;QAErE,CAAC;aAAM,IAAI,QAAQ,IAAI,WAAW,IAAI,QAAQ,IAAI,gBAAgB,EAAE,CAAC;QAErE,CAAC;aAAM,IAAI,QAAQ,IAAI,gBAAgB,IAAI,QAAQ,IAAI,SAAS,EAAE,CAAC;QAEnE,CAAC;aAEI,IAAI,QAAQ,IAAI,SAAS,IAAI,QAAQ,IAAI,UAAU,EAAE,CAAC;QAE3D,CAAC;aAAM,IAAI,QAAQ,IAAI,UAAU,IAAI,QAAQ,IAAI,iBAAiB,EAAE,CAAC;QAErE,CAAC;aAAM,IAAI,QAAQ,IAAI,iBAAiB,IAAI,QAAQ,IAAI,UAAU,EAAE,CAAC;QAErE,CAAC;aAAM,IAAI,QAAQ,IAAI,UAAU,IAAI,QAAQ,IAAI,SAAS,EAAE,CAAC;QAE7D,CAAC;aAEI,IAAI,QAAQ,IAAI,SAAS,IAAI,QAAQ,IAAI,WAAW,EAAE,CAAC;QAE5D,CAAC;aAAM,IAAI,QAAQ,IAAI,WAAW,IAAI,QAAQ,IAAI,SAAS,EAAE,CAAC;QAE9D,CAAC;aAEI,IAAI,QAAQ,IAAI,SAAS,IAAI,QAAQ,IAAI,YAAY,EAAE,CAAC;QAE7D,CAAC;aAAM,IAAI,QAAQ,IAAI,YAAY,IAAI,QAAQ,IAAI,SAAS,EAAE,CAAC;QAE/D,CAAC;QACD,eAAe;QACf,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC;IAC1B,CAAC;CACJ,CAAC","file":"main_interface.js","sourcesContent":["export const main_interface = {\r\n state: \"default\",\r\n // Left Diamond\r\n settings_toggle: document.getElementById(\"settings_toggle\"),\r\n contacts_toggle: document.getElementById(\"contacts_toggle\"),\r\n calendar_toggle: document.getElementById(\"calendars_toggle\"),\r\n briefcase_toggle: document.getElementById(\"cases_toggle\"),\r\n\r\n // Right Diamond\r\n search_toggle: document.getElementById(\"search_toggle\"),\r\n uploads_toggle: document.getElementById(\"uploads_toggle\"),\r\n imports_toggle: document.getElementById(\"imports_toggle\"),\r\n\r\n // Arrowhead\r\n center_button: document.getElementById(\"center_button\"),\r\n center_button_indicator__add: document.getElementById(\"center_button_indicator__add\"),\r\n center_button_indicator__play: document.getElementById(\"center_button_indicator__play\"),\r\n center_button_indicator__target: document.getElementById(\"center_button_indicator__target\"),\r\n center_button_indicator__plan: document.getElementById(\"center_button_indicator__plan\"),\r\n center_button_indicator__timing: document.getElementById(\"center_button_indicator__timing\"),\r\n center_button_indicator__link: document.getElementById(\"center_button_indicator__link\"),\r\n center_button_indicator__pulse: document.getElementById(\"center_button_indicator__pulse\"),\r\n center_button_indicator__complete: document.getElementById(\"center_button_indicator__complete\"),\r\n center_button_indicator__return: document.getElementById(\"center_button_indicator__return\"),\r\n\r\n plans_button: document.getElementById(\"plans_toggle\"),\r\n goals_button: document.getElementById(\"goals_toggle\"),\r\n events_button: document.getElementById(\"events_toggle\"),\r\n stats_button: document.getElementById(\"stats_toggle\"),\r\n notes_button: document.getElementById(\"notes_toggle\"),\r\n link_button: document.getElementById(\"secondary_button\"),\r\n\r\n // Need Indicators\r\n sleep_indicator: document.getElementById(\"indicator__sleep\"),\r\n health_indicator: document.getElementById(\"indicator__health\"),\r\n friends_indicator: document.getElementById(\"indicator__friends\"),\r\n fun_indicator: document.getElementById(\"indicator__fun\"),\r\n food_indicator: document.getElementById(\"indicator__food\"),\r\n home_indicator: document.getElementById(\"indicator__home\"),\r\n family_indicator: document.getElementById(\"indicator__family\"),\r\n career_indicator: document.getElementById(\"indicator__career\"),\r\n\r\n changeState: function(newState, oldState){\r\n // States:\r\n\r\n // \"default\": // Initial state - no items selected - lists inactive - clipboard on\r\n\r\n // \"mobile_only__nav_mode\": // No items selected - a list has been selected - one list active at a time - center button acts as return to clipboard\r\n\r\n // \"selection_mode\": // Items selected - list toggling should still be possible\r\n // Center button acts as pin (and MOBILE_ONLY return to clipboard after pin) button\r\n\r\n // If Plan Item is selected - secondary button acts as Plan Item complete button\r\n // If Plan is selected - secondary button acts as add Plan Item button\r\n // If Event is selected - secondary button acts as Event timing button\r\n // If Stat is selected - secondary button acts as Stat input button\r\n // If Goal is selected - secondary button acts as Goal play button\r\n // If Note is selected - secondary button acts as new linked Note button\r\n // If Multiple is selected - secondary button acts as create Case from selection button\r\n\r\n // \"add_mode\": // On clipboard - list toggling is deactivated, list buttons now act as add buttons - center button acts as way to exit add_mode - secondary button enables linked_add_mode\r\n\r\n // \"linked_add_mode\": On clipboard - list toggling is deactivated, list buttons now act as add buttons - center button acts as way to exit link_add_mode - secondary button disables linked_add_mode\r\n\r\n // \"link_mode\":\r\n\r\n // \"pulse_mode\":\r\n\r\n\r\n if (oldState == \"default\" && newState == \"mobile_only__nav_mode\") {\r\n\r\n } else if (oldState == \"mobile_only__nav_mode\" && newState == \"default\") {\r\n\r\n }\r\n\r\n else if (oldState == \"default\" && newState == \"selection_mode\") {\r\n\r\n } else if (oldState == \"selection_mode\" && newState == \"link_mode\") {\r\n\r\n } else if (oldState == \"link_mode\" && newState == \"selection_mode\") {\r\n\r\n } else if (oldState == \"selection_mode\" && newState == \"default\") {\r\n\r\n }\r\n\r\n else if (oldState == \"default\" && newState == \"add_mode\") {\r\n\r\n } else if (oldState == \"add_mode\" && newState == \"linked_add_mode\") {\r\n\r\n } else if (oldState == \"linked_add_mode\" && newState == \"add_mode\") {\r\n\r\n } else if (oldState == \"add_mode\" && newState == \"default\") {\r\n\r\n }\r\n\r\n else if (oldState == \"default\" && newState == \"link_mode\") {\r\n\r\n } else if (oldState == \"link_mode\" && newState == \"default\") {\r\n\r\n }\r\n\r\n else if (oldState == \"default\" && newState == \"pulse_mode\") {\r\n\r\n } else if (oldState == \"pulse_mode\" && newState == \"default\") {\r\n\r\n }\r\n // Update state\r\n this.state = newState;\r\n }\r\n};"]}