@hakit/components
Version:
A series of components to work with @hakit/core
3 lines (2 loc) • 2.28 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=["auto","heat_cool","heat","cool","dry","fan_only","off"],E="°C",T="°F",s="none";var _=(o=>(o[o.TARGET_TEMPERATURE=1]="TARGET_TEMPERATURE",o[o.TARGET_TEMPERATURE_RANGE=2]="TARGET_TEMPERATURE_RANGE",o[o.TARGET_HUMIDITY=4]="TARGET_HUMIDITY",o[o.FAN_MODE=8]="FAN_MODE",o[o.PRESET_MODE=16]="PRESET_MODE",o[o.SWING_MODE=32]="SWING_MODE",o[o.AUX_HEAT=64]="AUX_HEAT",o))(_||{});const n=a.reduce((o,e,r)=>(o[e]=r,o),{}),M=(o,e)=>n[o]-n[e],I={cooling:"cool",drying:"dry",fan:"fan_only",preheating:"heat",heating:"heat",idle:"off",off:"off",defrosting:"heat"},t={cooling:"mdi:snowflake",drying:"mdi:water-percent",fan:"mdi:fan",heating:"mdi:fire",idle:"mdi:clock-outline",off:"mdi:power",preheating:"mdi:heat-wave",defrosting:"mdi:snowflake-alert"},m={cool:"mdi:snowflake",dry:"mdi:water-percent",fan_only:"mdi:fan",auto:"mdi:thermostat-auto",heat:"mdi:fire",off:"mdi:power",heat_cool:"mdi:sun-snowflake-variant"},f=o=>m[(o??"").toLowerCase()],d={away:"mdi:account-arrow-right",boost:"mdi:rocket-launch",comfort:"mdi:sofa",eco:"mdi:leaf",home:"mdi:home",sleep:"mdi:bed",activity:"mdi:motion-sensor"},A=o=>(o??"").toLowerCase()in d?d[o.toLowerCase()]:"mdi:circle-medium",c={on:"mdi:fan",off:"mdi:fan-off",auto:"mdi:fan-auto",low:"mdi:speedometer-slow",medium:"mdi:speedometer-medium",mid:"mdi:speedometer-medium",high:"mdi:speedometer",middle:"mdi:speedometer-medium",focus:"mdi:target",diffuse:"mdi:weather-windy"},O=o=>(o??"").toLowerCase()in c?c[o.toLowerCase()]:"mdi:circle-medium",i={on:"mdi:arrow-oscillating",off:"mdi:arrow-oscillating-off",vertical:"mdi:arrow-up-down",horizontal:"mdi:arrow-left-right",both:"mdi:arrow-all"},C=o=>(o??"").toLowerCase()in i?i[o.toLowerCase()]:"mdi:circle-medium";exports.CLIMATE_FAN_MODE_ICONS=c;exports.CLIMATE_HVAC_ACTION_ICONS=t;exports.CLIMATE_HVAC_ACTION_TO_MODE=I;exports.CLIMATE_HVAC_MODE_ICONS=m;exports.CLIMATE_PRESET_MODE_ICONS=d;exports.CLIMATE_PRESET_NONE=s;exports.CLIMATE_SWING_MODE_ICONS=i;exports.ClimateEntityFeature=_;exports.UNIT_C=E;exports.UNIT_F=T;exports.compareClimateHvacModes=M;exports.computeFanModeIcon=O;exports.computeHvacModeIcon=f;exports.computePresetModeIcon=A;exports.computeSwingModeIcon=C;
//# sourceMappingURL=data.js.map