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AS,CAAC;YACzB,MAAM,CAAC,IAAI,GAAG,SAAS,CAAC;YACxB,IAAI,SAAS,IAAI,OAAO,EAAE,CAAC;gBACzB,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;YACzB,CAAC;YACD,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACpC,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IAEL,CAAC;IAID,oBAAoB,CAAC,IAAkB;IAEvC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,wBAAwB,EAAE,CAAC","file":"daytool_stat.js","sourcesContent":["import { daytool_stat } from \"../daytool_entity.js\";\r\nexport const DAYTOOL_STAT_UNITS = {\r\n Count : \"Count\",\r\n Seconds : \"Seconds\",\r\n Minutes : \"Minutes\",\r\n Hours : \"Hours\",\r\n Days : \"Days\",\r\n Weeks : \"Weeks\",\r\n Months : \"Months\",\r\n Years : \"Years\",\r\n Millimeters : \"Millimeters\",\r\n Centimeters : \"Centimeters\",\r\n Meters : \"Meters\",\r\n Kilometers : \"Kilometers\",\r\n Inches : \"Inches\",\r\n Feet : \"Feet\",\r\n Yards : \"Yards\",\r\n Miles : \"Miles\",\r\n Milligrams : \"Milligrams\",\r\n Grams : \"Grams\",\r\n Kilograms : \"Kilograms\",\r\n Tons : \"Tons\",\r\n Ounces : \"Ounces\",\r\n Pounds : \"Pounds\",\r\n Stones : \"Stones\",\r\n Milliliters : \"Milliliters\",\r\n Liters : \"Liters\",\r\n CubicMeters : \"Cubic meters\",\r\n Teaspoons : \"Teaspoons\",\r\n Tablespoons : \"Tablespoons\",\r\n FluidOunces : \"Fluid ounces\",\r\n Cups : \"Cups\",\r\n Pints : \"Pints\",\r\n Quarts : \"Quarts\",\r\n Gallons : \"Gallons\",\r\n SquareMillimeters : \"Square millimeters\",\r\n SquareCentimeters : \"Square centimeters\",\r\n SquareMeters : \"Square meters\",\r\n Hectares : \"Hectares\",\r\n SquareKilometers : \"Square kilometers\",\r\n SquareInches : \"Square inches\",\r\n SquareFeet : \"Square feet\",\r\n SquareYards : \"Square yards\",\r\n Acres : \"Acres\",\r\n MetersPerSecond : \"Meters per second\",\r\n KilometersPerHour : \"Kilometers per hour\",\r\n MilesPerHour : \"Miles per hour\",\r\n FeetPerSecond : \"Feet per second\",\r\n Celsius : \"Celsius\",\r\n Fahrenheit : \"Fahrenheit\",\r\n Kelvin : \"Kelvin\",\r\n Bits : \"Bits\",\r\n Bytes : \"Bytes\",\r\n Kilobytes : \"Kilobytes\",\r\n Megabytes : \"Megabytes\",\r\n Gigabytes : \"Gigabytes\",\r\n Terabytes : \"Terabytes\",\r\n Petabytes : \"Petabytes\",\r\n Joules : \"Joules\",\r\n KilowattHours : \"Kilowatt-hours\",\r\n Calories : \"Calories\",\r\n USDollar : \"US Dollar\",\r\n Euro : \"Euro\",\r\n BritishPound : \"British Pound\",\r\n JapaneseYen : \"Japanese Yen\",\r\n ChineseYuan : \"Chinese Yuan\",\r\n AustralianDollar : \"Australian Dollar\",\r\n CanadianDollar : \"Canadian Dollar\",\r\n SwissFranc : \"Swiss Franc\",\r\n SwedishKrona : \"Swedish Krona\",\r\n NewZealandDollar : \"New Zealand Dollar\",\r\n MexicanPeso : \"Mexican Peso\",\r\n SingaporeDollar : \"Singapore Dollar\",\r\n HongKongDollar : \"Hong Kong Dollar\",\r\n NorwegianKrone : \"Norwegian Krone\",\r\n SouthKoreanWon : \"South Korean Won\",\r\n TurkishLira : \"Turkish Lira\",\r\n RussianRuble : \"Russian Ruble\",\r\n IndianRupee : \"Indian Rupee\",\r\n BrazilianReal : \"Brazilian Real\",\r\n SouthAfricanRand : \"South African Rand\",\r\n DanishKrone : \"Danish Krone\",\r\n PolishZloty : \"Polish Zloty\",\r\n IsraeliNewShekel : \"Israeli New Shekel\",\r\n SaudiRiyal : \"Saudi Riyal\",\r\n IndonesianRupiah : \"Indonesian Rupiah\",\r\n MalaysianRinggit : \"Malaysian Ringgit\",\r\n PhilippinePeso : \"Philippine Peso\",\r\n ThaiBaht : \"Thai Baht\",\r\n ArgentinePeso : \"Argentine Peso\",\r\n EgyptianPound : \"Egyptian Pound\",\r\n NigerianNaira : \"Nigerian Naira\",\r\n CzechKoruna : \"Czech Koruna\",\r\n HungarianForint : \"Hungarian Forint\",\r\n RomanianLeu : \"Romanian Leu\",\r\n ColombianPeso : \"Colombian Peso\",\r\n ChileanPeso : \"Chilean Peso\",\r\n PakistaniRupee : \"Pakistani Rupee\",\r\n BangladeshiTaka : \"Bangladeshi Taka\",\r\n VietnameseDong : \"Vietnamese Dong\",\r\n UkrainianHryvnia : \"Ukrainian Hryvnia\",\r\n}\r\n\r\n\r\nexport class daytool_stat_settings_ui {\r\n // READ ONLY\r\n DOM__stat_title:HTMLElement;\r\n DOM__stat_units:HTMLSelectElement;\r\n\r\n DOM__data_log:HTMLInputElement;\r\n\r\n // INTERACTIONS\r\n DOM__stat_sets_check:HTMLInputElement; // Enables sets of stats to be inputted\r\n\r\n\r\n // STAT UPDATE FORM\r\n DOM__stat_amount_sets:HTMLInputElement;\r\n DOM__stat_amount:HTMLInputElement;\r\n DOM__stat_input_units:HTMLSelectElement;\r\n\r\n current_item: daytool_stat[] = [];\r\n\r\n constructor () {\r\n this.DOM__stat_title = document.querySelector('#stat_settings #stat_title');\r\n this.DOM__stat_units = document.querySelector('#stat_settings #stat_units');\r\n\r\n // INTERACTIONS\r\n this.DOM__stat_sets_check = document.querySelector('#stat_settings #stat_sets_check');\r\n\r\n this.DOM__data_log = document.querySelector('#stat_settings #data_log');\r\n\r\n this.DOM__stat_amount_sets = document.querySelector('#stat_settings #stat_amount_sets');\r\n this.DOM__stat_amount = document.querySelector('#stat_settings #stat_amount');\r\n this.DOM__stat_input_units = document.querySelector('#stat_settings #stat_input_units');\r\n\r\n }\r\n\r\n setupFormForGivenStat(stat: daytool_stat) {\r\n this.current_item.pop();\r\n this.current_item.push(stat);\r\n // Change Title\r\n this.DOM__stat_title.innerHTML = `${stat.title.at(-1)}`;\r\n\r\n\r\n\r\n Object.values(DAYTOOL_STAT_UNITS).forEach(stat_unit => {\r\n const option = document.createElement('option');\r\n option.value = stat_unit;\r\n option.text = stat_unit;\r\n if (stat_unit == 'Count') {\r\n option.selected = true;\r\n }\r\n this.DOM__stat_units.append(option);\r\n this.DOM__stat_input_units.append(option);\r\n });\r\n\r\n }\r\n\r\n\r\n\r\n saveFormForGivenStat(stat: daytool_stat) {\r\n\r\n }\r\n}\r\n\r\nexport const DAYTOOL__STAT_SETTINGS_FORM_UI = new daytool_stat_settings_ui();\r\n"]}