iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 21.1 kB
JavaScript
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[23954],{90433:function(e,t,i){i.d(t,{Vy:function(){return r},fI:function(){return a},ux:function(){return c}});var o=i(22786),s=i(79468);const n=54;function r(e,t){const i=e%n+1;return t.getPropertyValue(`--color-${i}`)}function a(e,t){const i=t.getPropertyValue(`--graph-color-${e+1}`)||r(e,t);return(0,s.RQ)(i)}const c=(0,o.A)(e=>Array.from({length:n},(t,i)=>a(i,e)),(e,t)=>e[0].getPropertyValue("--graph-color-1")===t[0].getPropertyValue("--graph-color-1")&&e[0].getPropertyValue("--color-1")===t[0].getPropertyValue("--color-1"))},15090:function(e,t,i){i.d(t,{nP:function(){return l},vB:function(){return a}});i(44114),i(26910),i(18111),i(22489),i(61701),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(62953);var o=i(22675),s=i(52220),n=i(71727),r=i(69093);const a={alarm_control_panel:["armed_away","armed_custom_bypass","armed_home","armed_night","armed_vacation","arming","disarmed","disarming","pending","triggered"],alert:["on","off","idle"],assist_satellite:["idle","listening","responding","processing"],automation:["on","off"],binary_sensor:["on","off"],button:[],calendar:["on","off"],camera:["idle","recording","streaming"],cover:["closed","closing","open","opening"],device_tracker:["home","not_home"],fan:["on","off"],humidifier:["on","off"],infrared:[],input_boolean:["on","off"],input_button:[],lawn_mower:["error","paused","mowing","returning","docked"],light:["on","off"],lock:["jammed","locked","locking","unlocked","unlocking","opening","open"],media_player:["off","on","idle","playing","paused","standby","buffering"],person:["home","not_home"],plant:["ok","problem"],radio_frequency:[],remote:["on","off"],scene:[],schedule:["on","off"],script:["on","off"],siren:["on","off"],sun:["above_horizon","below_horizon"],switch:["on","off"],timer:["active","idle","paused"],update:["on","off"],vacuum:["cleaning","docked","error","idle","paused","returning"],valve:["closed","closing","open","opening"],weather:["clear-night","cloudy","exceptional","fog","hail","lightning-rainy","lightning","partlycloudy","pouring","rainy","snowy-rainy","snowy","sunny","windy-variant","windy"]},c={alarm_control_panel:{code_format:["number","text"]},binary_sensor:{device_class:["battery","battery_charging","co","cold","connectivity","door","garage_door","gas","heat","light","lock","moisture","motion","moving","occupancy","opening","plug","power","presence","problem","running","safety","smoke","sound","tamper","update","vibration","window"]},button:{device_class:["restart","update"]},camera:{frontend_stream_type:["hls","web_rtc"]},climate:{hvac_action:["off","idle","preheating","defrosting","heating","cooling","drying","fan"]},cover:{device_class:["awning","blind","curtain","damper","door","garage","gate","shade","shutter","window"]},device_tracker:{source_type:["bluetooth","bluetooth_le","gps","router"]},fan:{direction:["forward","reverse"]},humidifier:{device_class:["humidifier","dehumidifier"],action:["off","idle","humidifying","drying"]},media_player:{device_class:["tv","speaker","receiver"],media_content_type:["album","app","artist","channel","channels","composer","contributing_artist","episode","game","genre","image","movie","music","playlist","podcast","season","track","tvshow","url","video"],repeat:["off","one","all"]},number:{device_class:["temperature"]},sensor:{device_class:["apparent_power","aqi","battery","carbon_dioxide","carbon_monoxide","current","date","duration","energy","frequency","gas","humidity","illuminance","monetary","nitrogen_dioxide","nitrogen_monoxide","nitrous_oxide","ozone","ph","pm1","pm10","pm25","pm4","power_factor","power","pressure","reactive_power","signal_strength","sulphur_dioxide","temperature","timestamp","uptime","volatile_organic_compounds","volatile_organic_compounds_parts","voltage","volume_flow_rate"],state_class:["measurement","total","total_increasing"]},switch:{device_class:["outlet","switch"]},update:{device_class:["firmware"]},water_heater:{away_mode:["on","off"]}},l=(e,t,i=void 0)=>{const l=(0,r.t)(t),d=[];switch(d.push(...((e,t,i)=>{const r=[];switch(i||r.push(o.Hh,o.HV),!i&&t in a?r.push(...a[t]):i&&t in c&&i in c[t]&&r.push(...c[t][i]),t){case"device_tracker":case"person":i||r.push(...Object.entries(e.states).filter(([e,t])=>"zone"===(0,n.m)(e)&&"zone.home"!==e&&t.attributes.friendly_name).map(([e,t])=>t.attributes.friendly_name).sort((t,i)=>(0,s.xL)(t,i,e.locale.language)))}return r})(e,l,i)),l){case"climate":i?"fan_mode"===i?d.push(...t.attributes.fan_modes):"preset_mode"===i?d.push(...t.attributes.preset_modes):"swing_mode"===i?d.push(...t.attributes.swing_modes):"swing_horizontal_mode"===i&&d.push(...t.attributes.swing_horizontal_modes):d.push(...t.attributes.hvac_modes);break;case"event":"event_type"===i&&d.push(...t.attributes.event_types);break;case"fan":"preset_mode"===i&&d.push(...t.attributes.preset_modes);break;case"humidifier":"mode"===i&&d.push(...t.attributes.available_modes);break;case"input_select":case"select":i||d.push(...t.attributes.options);break;case"light":"effect"===i&&t.attributes.effect_list?d.push(...t.attributes.effect_list):"color_mode"===i&&t.attributes.supported_color_modes&&d.push(...t.attributes.supported_color_modes);break;case"media_player":"sound_mode"===i?d.push(...t.attributes.sound_mode_list):"source"===i&&d.push(...t.attributes.source_list);break;case"remote":"current_activity"===i&&d.push(...t.attributes.activity_list);break;case"sensor":i||"enum"!==t.attributes.device_class||d.push(...t.attributes.options);break;case"vacuum":"fan_speed"===i&&d.push(...t.attributes.fan_speed_list);break;case"water_heater":i&&"operation_mode"!==i||d.push(...t.attributes.operation_list)}return[...new Set(d)]}},22533:function(e,t,i){i.d(t,{i:function(){return s}});var o=i(52943);const s=(e,t)=>(e=>{switch(e){case"de":case"lb":return!0;default:return!1}})(t)?(0,o.Z)(e):e.toLocaleLowerCase(t)},86531:function(e,t,i){i.a(e,async function(e,o){try{i.d(t,{$O:function(){return f},a$:function(){return k},cj:function(){return u},dG:function(){return b},gM:function(){return m},gd:function(){return g},k$:function(){return y},rc:function(){return w}});i(74423),i(3362),i(27495),i(25440),i(62953);var s=i(46190),n=i(71727),r=i(69093),a=i(22533),c=i(22675),l=i(25064),d=e([l]);l=(d.then?(await d)():d)[0];const h="ui.components.logbook.messages",u=["counter","proximity"],_={triggered_by_numeric_state_of:"numeric state of",triggered_by_state_of:"state of",triggered_by_event:"event",triggered_by_time_pattern:"time pattern",triggered_by_time:"time",triggered_by_homeassistant_stopping:"ioBroker stopping",triggered_by_homeassistant_starting:"ioBroker starting"},g=async(e,t,i)=>p(e,t,void 0,void 0,i),p=(e,t,i,o,s,n)=>{if((o||n)&&(!o||0===o.length)&&(!n||0===n.length))return Promise.resolve([]);const r={type:"logbook/get_events",start_time:t};return i&&(r.end_time=i),null!=o&&o.length&&(r.entity_ids=o),null!=n&&n.length&&(r.device_ids=n),s&&(r.context_id=s),e.callWS(r)},m=(e,t,i,o,s,n,r)=>{if((n||r)&&(!n||0===n.length)&&(!r||0===r.length))return Promise.reject("No entities or devices");const a={type:"logbook/event_stream",start_time:i,end_time:o};return null!=n&&n.length&&(a.entity_ids=n),null!=r&&r.length&&(a.device_ids=r),e.connection.subscribeMessage(e=>t(e,s),a)},b=(e,t)=>({entity_id:e.entity_id,state:t,attributes:{device_class:null==e?void 0:e.attributes.device_class,source_type:null==e?void 0:e.attributes.source_type,has_date:null==e?void 0:e.attributes.has_date,has_time:null==e?void 0:e.attributes.has_time,entity_picture_local:s.oL.has((0,n.m)(e.entity_id))||null==e?void 0:e.attributes.entity_picture_local,entity_picture:s.oL.has((0,n.m)(e.entity_id))||null==e?void 0:e.attributes.entity_picture}}),f=(e,t)=>{for(const i of Object.keys(_)){const o=_[i];if(t.startsWith(o))return t.replace(o,`${e(`ui.components.logbook.${i}`)}`)}return t},v=66649!=i.j?{triggered_by_numeric_state_of:"numeric_state_of",triggered_by_state_of:"state_of",triggered_by_event:"event",triggered_by_time_pattern:"time_pattern",triggered_by_time:"time",triggered_by_homeassistant_stopping:"homeassistant_stopping",triggered_by_homeassistant_starting:"homeassistant_starting"}:null,y=(e,t)=>{for(const i of Object.keys(_)){const o=_[i];if(t.startsWith(o)){const s=v[i];return t.replace(o,`${e(`ui.components.logbook.${s}`)}`)}}return t},k=(e,t,i,o,s)=>{switch(s){case"device_tracker":case"person":return"not_home"===i?t(`${h}.was_away`):"home"===i?t(`${h}.was_at_home`):t(`${h}.was_at_state`,{state:i});case"sun":return t("above_horizon"===i?`${h}.rose`:`${h}.set`);case"binary_sensor":{const s="on"===i,n="off"===i,r=o.attributes.device_class;if(r&&(s||n))return t(`${h}.${s?"detected_device_classes":"cleared_device_classes"}.${r}`,{device_class:(0,a.i)(t(`component.binary_sensor.entity_component.${r}.name`)||r,e.language)})||t(`${h}.${s?"detected_device_class":"cleared_device_class"}`,{device_class:(0,a.i)(t(`component.binary_sensor.entity_component.${r}.name`)||r,e.language)});break}case"cover":switch(i){case"open":return t(`${h}.was_opened`);case"opening":return t(`${h}.is_opening`);case"closing":return t(`${h}.is_closing`);case"closed":return t(`${h}.was_closed`)}break;case"event":return t(`${h}.detected_event_no_type`);case"lock":switch(i){case"unlocked":return t(`${h}.was_unlocked`);case"locking":return t(`${h}.is_locking`);case"unlocking":return t(`${h}.is_unlocking`);case"opening":return t(`${h}.is_opening`);case"open":return t(`${h}.is_opened`);case"locked":return t(`${h}.was_locked`);case"jammed":return t(`${h}.is_jammed`)}}return"on"===i?t(`${h}.turned_on`):"off"===i?t(`${h}.turned_off`):i===c.HV?t(`${h}.became_unknown`):i===c.Hh?t(`${h}.became_unavailable`):e.localize(`${h}.changed_to_state`,{state:o?e.formatEntityState(o,i):i})},w=(e,t=[])=>{const i=(0,r.t)(e);return!(u.includes(i)||"sensor"===i&&(0,l.Fp)(i,e,void 0,t))};o()}catch(h){o(h)}})},89434:function(e,t,i){i.a(e,async function(e,t){try{i(16280),i(74423),i(44114),i(94490),i(26910),i(18111),i(22489),i(7588),i(13579),i(3362),i(62953);var o=i(40445),s=i(5124),n=i(67576),r=i(36312),a=i(69093),c=i(77796),l=i(65829),d=i(86531),h=i(61165),u=i(28669),_=i(11184),g=e([l,_,d]);[l,_,d]=g.then?(await g)():g;let p,m,b,f,v,y=e=>e;const k=(e,t)=>new Date(e.getTime()-1e3*t).getTime()/1e3,w=(e,t)=>(void 0!==e||void 0!==t)&&(!e||!t||e.length!==t.length||e.some(e=>!t.includes(e))||t.some(t=>!e.includes(t)));class $ extends s.WF{render(){return(0,r.x)(this.hass.config,"logbook")?this._error?(0,s.qy)(p||(p=y`<div class="no-entries"> ${0} </div>`),`${this.hass.localize("ui.components.logbook.retrieval_error")}: ${this._error}`):void 0===this._logbookEntries?(0,s.qy)(m||(m=y` <div class="progress-wrapper"> <ha-spinner></ha-spinner> </div> `)):0===this._logbookEntries.length?(0,s.qy)(b||(b=y`<div class="no-entries"> ${0} </div>`),this.hass.localize("ui.components.logbook.entries_not_found")):(0,s.qy)(f||(f=y` <ha-logbook-renderer .hass="${0}" .narrow="${0}" .virtualize="${0}" .noIcon="${0}" .noName="${0}" .showIndicator="${0}" .relativeTime="${0}" .entries="${0}" .traceContexts="${0}" .userIdToName="${0}" -logbook-live="${0}"></ha-logbook-renderer> `),this.hass,this.narrow,this.virtualize,this.noIcon,this.noName,this.showIndicator,this.relativeTime,this._logbookEntries,this._traceContexts,this._userIdToName,this._handleLogbookLive):s.s6}async refresh(e=!1){(e||!this._unsubLogbook&&void 0!==this._logbookEntries)&&(this._throttleGetLogbookEntries.cancel(),this._updateTraceContexts.cancel(),this._updateUsers.cancel(),this._unsubscribe(!0),this._liveUpdatesEnabled=!0,e?this._getLogBookData():this._throttleGetLogbookEntries())}shouldUpdate(e){if(1!==e.size||!e.has("hass"))return!0;const t=e.get("hass");return!t||t.localize!==this.hass.localize}willUpdate(e){let t=e.has("time");for(const i of["entityIds","deviceIds","stateFilter"]){if(!e.has(i))continue;const o=e.get(i),s=this[i];if(w(o,s)){t=!0;break}}t&&this.refresh(!0)}_handleLogbookLive(e){e.detail.enable&&!this._liveUpdatesEnabled&&(this._pendingStreamMessages.forEach(e=>this._processStreamMessage(e)),this._pendingStreamMessages=[]),this._liveUpdatesEnabled=e.detail.enable}get _filterAlwaysEmptyResults(){const e=this.entityIds,t=this.deviceIds;return Boolean(e||t)&&(!e||0===e.length)&&(!t||0===t.length)}_unsubscribe(e){this._unsubLogbook&&(this._unsubLogbook.then(e=>e()),this._unsubLogbook=void 0,this._logbookEntries=e?void 0:[],this._pendingStreamMessages=[])}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this._subscribeLogbookPeriod(this._calculateLogbookPeriod())}disconnectedCallback(){super.disconnectedCallback(),this._unsubscribe(!0)}_calculateLogbookPeriod(){const e=new Date;if("range"in this.time)return{now:e,startTime:this.time.range[0],endTime:this.time.range[1],purgeBeforePythonTime:void 0};if("recent"in this.time){const t=k(e,this.time.recent);return{now:e,startTime:new Date(1e3*t),endTime:new Date(e.getTime()+31536e6),purgeBeforePythonTime:k(e,this.time.recent)}}throw new Error("Unexpected time specified")}async _subscribeLogbookPeriod(e){if(!this._unsubLogbook)try{this._logbookSubscriptionId++,this._unsubLogbook=(0,d.gM)(this.hass,(e,t)=>{t===this._logbookSubscriptionId&&this._processOrQueueStreamMessage(e)},e.startTime.toISOString(),e.endTime.toISOString(),this._logbookSubscriptionId,this.entityIds,this.deviceIds),await this._unsubLogbook}catch(t){this._unsubLogbook=void 0,this._error=t}}async _getLogBookData(){var e;if(this._error=void 0,this._filterAlwaysEmptyResults)return void this._unsubscribe(!1);const t=this._calculateLogbookPeriod();t.startTime>t.now?this._unsubscribe(!1):(this._updateUsers(),null!==(e=this.hass.user)&&void 0!==e&&e.is_admin&&this._updateTraceContexts(),this._subscribeLogbookPeriod(t))}static get styles(){return[(0,s.AH)(v||(v=y`:host{display:block}:host([virtualize]){height:100%}.no-entries{text-align:center;padding:16px;color:var(--secondary-text-color)}.progress-wrapper{display:flex;justify-content:center;height:100%;align-items:center}`))]}constructor(...e){super(...e),this.narrow=!1,this.virtualize=!1,this.noIcon=!1,this.noName=!1,this.showIndicator=!1,this.relativeTime=!1,this.showMoreLink=!0,this._traceContexts={},this._userIdToName={},this._liveUpdatesEnabled=!0,this._pendingStreamMessages=[],this._throttleGetLogbookEntries=(0,c.n)(()=>this._getLogBookData(),1e3),this._logbookSubscriptionId=0,this._nonExpiredRecords=e=>this._logbookEntries?e?this._logbookEntries.filter(t=>t.when>e):this._logbookEntries:[],this._processOrQueueStreamMessage=e=>{this._liveUpdatesEnabled?this._processStreamMessage(e):this._pendingStreamMessages.push(e)},this._processStreamMessage=e=>{const t="recent"in this.time?k(new Date,this.time.recent):void 0;let i;i=this.stateFilter&&this.stateFilter.length>0?e.events.filter(e=>{var t;return e.state&&(null===(t=this.stateFilter)||void 0===t?void 0:t.includes(e.state))}):[...e.events];const o=i.reverse();if(!this._logbookEntries||!this._logbookEntries.length)return void(this._logbookEntries=o);if(!o.length)return;const s=this._nonExpiredRecords(t);s.length?o[o.length-1].when>s[0].when?this._logbookEntries=o.concat(s):s[s.length-1].when>o[0].when?this._logbookEntries=s.concat(o):this._logbookEntries=s.concat(o).sort((e,t)=>t.when-e.when):this._logbookEntries=o},this._updateTraceContexts=(0,c.n)(async()=>{this._traceContexts=await(0,h.gq)(this.hass)},6e4),this._updateUsers=(0,c.n)(async()=>{var e;const t={},i=(null===(e=this.hass.user)||void 0===e?void 0:e.is_admin)&&(0,u.hU)(this.hass);for(const o of Object.values(this.hass.states))o.attributes.user_id&&"person"===(0,a.t)(o)&&(t[o.attributes.user_id]=o.attributes.friendly_name);if(i){const e=await i;for(const i of e)i.id in t||(t[i.id]=i.name)}this._userIdToName=t},6e4)}}(0,o.Cg)([(0,n.MZ)({attribute:!1})],$.prototype,"hass",void 0),(0,o.Cg)([(0,n.MZ)({attribute:!1})],$.prototype,"time",void 0),(0,o.Cg)([(0,n.MZ)({attribute:!1})],$.prototype,"entityIds",void 0),(0,o.Cg)([(0,n.MZ)({attribute:!1})],$.prototype,"deviceIds",void 0),(0,o.Cg)([(0,n.MZ)({attribute:!1})],$.prototype,"stateFilter",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],$.prototype,"narrow",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],$.prototype,"virtualize",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,attribute:"no-icon"})],$.prototype,"noIcon",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,attribute:"no-name"})],$.prototype,"noName",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,attribute:"show-indicator"})],$.prototype,"showIndicator",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,attribute:"relative-time"})],$.prototype,"relativeTime",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"show-more-link",type:Boolean})],$.prototype,"showMoreLink",void 0),(0,o.Cg)([(0,n.wk)()],$.prototype,"_logbookEntries",void 0),(0,o.Cg)([(0,n.wk)()],$.prototype,"_traceContexts",void 0),(0,o.Cg)([(0,n.wk)()],$.prototype,"_userIdToName",void 0),(0,o.Cg)([(0,n.wk)()],$.prototype,"_error",void 0),$=(0,o.Cg)([(0,n.EM)("ha-logbook")],$),t()}catch(p){t(p)}})},42526:function(e,t,i){i.a(e,async function(e,o){try{i.r(t),i.d(t,{DEFAULT_HOURS_TO_SHOW:function(){return w},HuiLogbookCard:function(){return $}});i(49255),i(16280),i(18111),i(61701),i(3362),i(62953);var s=i(40445),n=i(5124),r=i(67576),a=i(6412),c=i(22786),l=i(36312),d=i(42372),h=(i(76776),i(89434)),u=i(13632),_=i(20939),g=i(85979),p=i(95311),m=i(44537),b=e([h,g]);[h,g]=b.then?(await b)():b;let f,v,y,k=e=>e;const w=24;class $ extends n.WF{static async getConfigElement(){return await Promise.all([i.e(13628),i.e(1535),i.e(14351),i.e(24891),i.e(7457)]).then(i.bind(i,38355)),document.createElement("hui-logbook-card-editor")}static getStubConfig(e,t,i){return{target:{entity_id:(0,u.B)(e,3,t,i,["light","switch"])}}}getCardSize(){var e;return 9+(null!==(e=this._config)&&void 0!==e&&e.title?1:0)}getGridOptions(){var e;return{rows:6,columns:12,min_columns:6,min_rows:null!==(e=this._config)&&void 0!==e&&e.title?4:3}}validateTarget(e){var t,i,o,s,n,r;if((!e.entities||e.entities.length)&&(!e.target||null!==(t=e.target.area_id)&&void 0!==t&&t.length||null!==(i=e.target.device_id)&&void 0!==i&&i.length||null!==(o=e.target.entity_id)&&void 0!==o&&o.length||null!==(s=e.target.floor_id)&&void 0!==s&&s.length||null!==(n=e.target.label_id)&&void 0!==n&&n.length))return e.entities?{entity_id:(0,_.L)(e.entities).map(e=>e.entity)}:null!==(r=e.target)&&void 0!==r&&r.entity_id?Object.assign(Object.assign({},e.target),{},{entity_id:(0,_.L)((0,m.e)(e.target.entity_id)).map(e=>e.entity)}):e.target}setConfig(e){const t=this.validateTarget(e);if(!t)throw new Error("The provided target in the logbook card has no entities. Targets can include entities, devices, labels, or areas, with devices, areas, and labels resolving to entities.");this._config=Object.assign({hours_to_show:w},e),this._time={recent:60*this._config.hours_to_show*60},this._targetPickerValue=t,this._stateFilter=(0,m.e)(e.state_filter)}_getEntityIds(){const e=this._getMemoizedEntityIds(this._targetPickerValue,this.hass.entities,this.hass.devices,this.hass.areas);if(0!==e.length)return e}update(e){super.update(e),e.has("layout")&&this.toggleAttribute("ispanel","panel"===this.layout)}updated(e){if(super.updated(e),!this._config||!this.hass)return;const t=e.has("_config"),i=e.has("hass"),o=e.get("hass"),s=e.get("_config");(i&&(null==o?void 0:o.themes)!==this.hass.themes||t&&(null==s?void 0:s.theme)!==this._config.theme)&&(0,d.Q)(this,this.hass.themes,this._config.theme)}render(){return this.hass&&this._config?(0,l.x)(this.hass.config,"logbook")?(0,n.qy)(v||(v=k` <ha-card .header="${0}" class="${0}"> <div class="content"> <ha-logbook class="${0}" .hass="${0}" .time="${0}" .entityIds="${0}" .stateFilter="${0}" narrow relative-time virtualize></ha-logbook> </div> </ha-card> `),this._config.title,(0,a.H)({"no-header":!this._config.title}),(0,a.H)({"is-grid":"grid"===this.layout,"is-panel":"panel"===this.layout}),this.hass,this._time,this._getEntityIds(),this._stateFilter):(0,n.qy)(f||(f=k` <hui-warning .hass="${0}"> ${0}</hui-warning> `),this.hass,this.hass.localize("ui.components.logbook.not_loaded",{platform:"logbook"})):n.s6}static get styles(){return[(0,n.AH)(y||(y=k`ha-card{height:100%;display:flex;flex-direction:column;justify-content:space-between}.content{height:100%;padding:0 16px 16px}.no-header .content{padding-top:16px}ha-logbook{height:385px;display:block}ha-logbook.is-grid,ha-logbook.is-panel{height:100%}:host([ispanel]) .content,:host([ispanel]) ha-logbook{height:100%}`))]}constructor(...e){super(...e),this._targetPickerValue={},this._getMemoizedEntityIds=(0,c.A)((e,t,i,o)=>(0,p.wY)(this.hass,e,t,i,o))}}(0,s.Cg)([(0,r.MZ)({attribute:!1})],$.prototype,"hass",void 0),(0,s.Cg)([(0,r.MZ)({attribute:!1})],$.prototype,"layout",void 0),(0,s.Cg)([(0,r.wk)()],$.prototype,"_config",void 0),(0,s.Cg)([(0,r.wk)()],$.prototype,"_time",void 0),(0,s.Cg)([(0,r.wk)()],$.prototype,"_targetPickerValue",void 0),(0,s.Cg)([(0,r.wk)()],$.prototype,"_stateFilter",void 0),$=(0,s.Cg)([(0,r.EM)("hui-logbook-card")],$),o()}catch(f){o(f)}})}}]);