text: (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[3778],{25516:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r=function(e){return function(t){return{kind:"method",placement:"prototype",key:t.key,descriptor:{set:function(e){this["__".concat(String(t.key))]=e},get:function(){return this["__".concat(String(t.key))]},enumerable:!0,configurable:!0},finisher:function(n){var r=n.prototype.connectedCallback;n.prototype.connectedCallback=function(){if(r.call(this),this[t.key]){var n=this.renderRoot.querySelector(e);if(!n)return;n.scrollTop=this[t.key]}}}}}}},43793:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var r=function(e,t){return e.substring(0,t.length)===t}},62021:function(e,t,n){"use strict";n.d(t,{HD:function(){return r},oO:function(){return i},p6:function(){return o},jt:function(){return a}});var r=function(e){return e.callWS({type:"person/list"})},i=function(e,t){return e.callWS(Object.assign({type:"person/create"},t))},o=function(e,t,n){return e.callWS(Object.assign({type:"person/update",person_id:t},n))},a=function(e,t){return e.callWS({type:"person/delete",person_id:t})}},97389:function(e,t,n){"use strict";n.d(t,{mA:function(){return i},lj:function(){return o},U_:function(){return a},nV:function(){return s},Zm:function(){return c}});var r=n(43793),i=function(e,t,n,r){return e.callWS({type:"trace/get",domain:t,item_id:n,run_id:r})},o=function(e,t,n){return e.callWS({type:"trace/list",domain:t,item_id:n})},a=function(e,t,n){return e.callWS({type:"trace/contexts",domain:t,item_id:n})},s=function(e,t){for(var n=t.split("/").reverse(),r=e;n.length;){var i=n.pop(),o=Number(i);if(isNaN(o))r=r[i];else if(Array.isArray(r))r=r[o];else if(0!==o)throw new Error("If config is not an array, can only return index 0")}return r},c=function(e){return"trigger"===e||(0,r.x)(e,"trigger/")}},65253:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}n.d(t,{Pb:function(){return o},CE:function(){return a},uh:function(){return s},r4:function(){return c},Nq:function(){return u},h8:function(){return l}});var o="system-admin",a="system-users",s=function(){var e=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.callWS({type:"config/auth/list"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=i(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.callWS({type:"config/auth/create",name:n,group_ids:r}));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),u=function(){var e=i(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.callWS(Object.assign({},r,{type:"config/auth/update",user_id:n})));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),l=function(){var e=i(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.callWS({type:"config/auth/delete",user_id:n}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},18873:function(e,t,n){"use strict";n.r(t),n.d(t,{HaPanelLogbook:function(){return B}});var r,i,o,a,s,c=n(68546),u=(n(53268),n(12730),n(50424)),l=n(55358),f=n(7323),d=n(87744),h=(n(74535),n(31206),n(44491),n(10983),n(48932),n(55422)),p=n(62021),y=n(97389),m=n(65253),v=(n(27849),n(11654));n(97740);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){return W(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||L(e,t)||M()}function k(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=L(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){w(o,r,i,a,s,"next",e)}function s(e){w(o,r,i,a,s,"throw",e)}a(void 0)}))}}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=U(e);if(t){var i=U(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?C(e):t}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(){O=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!A(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var u=c.extras;if(u){for(var l=0;l<u.length;l++)this.addElementPlacement(u[l],t);n.push.apply(n,u)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){var t;if(void 0!==e)return(t=e,W(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||L(t)||M()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this)},toElementDescriptor:function(e){var t=String(e.kind);if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var n=I(e.key),r=String(e.placement);if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var i=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:z(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=String(e.kind);if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=z(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var r=(0,t[n])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function j(e){var t,n=I(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function R(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function A(e){return e.decorators&&e.decorators.length}function T(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function z(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function I(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g(t)?t:String(t)}function M(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function L(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e){if(Array.isArray(e))return e}function H(e,t,n){return(H="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=U(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e,t,n,r){var i=O();if(r)for(var o=0;o<r.length;o++)i=r[o](i);var a=t((function(e){i.initializeInstanceElements(e,s.elements)}),n),s=i.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},r=0;r<e.length;r++){var i,o=e[r];if("method"===o.kind&&(i=t.find(n)))if(T(o.descriptor)||T(i.descriptor)){if(A(o)||A(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(A(o)){if(A(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}R(o,i)}else t.push(o)}return t}(a.d.map(j)),e);return i.initializeClassElements(a.F,s.elements),i.runClassFinishers(a.F,s.finishers)}([(0,l.Mo)("ha-panel-logbook")],(function(e,t){var n,g,w=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(r,t);var n=x(r);function r(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=n.call(this),e(C(t));var i=new Date;i.setHours(i.getHours()-2),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),t._startDate=i;var o=new Date;return o.setHours(o.getHours()+1),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),t._endDate=o,t}return r}(t);return{F:w,d:[{kind:"field",decorators:[(0,l.Cb)()],key:"hass",value:void 0},{kind:"field",decorators:[(0,l.Cb)({reflect:!0,type:Boolean})],key:"narrow",value:void 0},{kind:"field",decorators:[(0,l.Cb)()],key:"_startDate",value:void 0},{kind:"field",decorators:[(0,l.Cb)()],key:"_endDate",value:void 0},{kind:"field",decorators:[(0,l.Cb)()],key:"_entityId",value:function(){return""}},{kind:"field",decorators:[(0,l.Cb)()],key:"_isLoading",value:function(){return!1}},{kind:"field",decorators:[(0,l.Cb)()],key:"_entries",value:function(){return[]}},{kind:"field",decorators:[(0,l.Cb)({reflect:!0,type:Boolean})],key:"rtl",value:function(){return!1}},{kind:"field",decorators:[(0,l.SB)()],key:"_ranges",value:void 0},{kind:"field",key:"_fetchUserDone",value:void 0},{kind:"field",decorators:[(0,l.SB)()],key:"_userIdToName",value:function(){return{}}},{kind:"field",decorators:[(0,l.SB)()],key:"_traceContexts",value:function(){return{}}},{kind:"method",key:"render",value:function(){return(0,u.dy)(r||(r=S(['\n      <ha-app-layout>\n        <app-header slot="header" fixed>\n          <app-toolbar>\n            <ha-menu-button\n              .hass=',"\n              .narrow=","\n            ></ha-menu-button>\n            <div main-title>","</div>\n            <mwc-icon-button\n              @click=","\n              .disabled=","\n            >\n              <ha-svg-icon .path=","></ha-svg-icon>\n            </mwc-icon-button>\n          </app-toolbar>\n        </app-header>\n\n        ",'\n\n        <div class="filters">\n          <ha-date-range-picker\n            .hass=',"\n            ?disabled=","\n            .startDate=","\n            .endDate=","\n            .ranges=","\n            @change=","\n          ></ha-date-range-picker>\n\n          <ha-entity-picker\n            .hass=","\n            .value=","\n            .label=","\n            .disabled=","\n            @change=","\n          ></ha-entity-picker>\n        </div>\n\n        ","\n      </ha-app-layout>\n    "])),this.hass,this.narrow,this.hass.localize("panel.logbook"),this._refreshLogbook,this._isLoading,c.jcD,this._isLoading?(0,u.dy)(i||(i=S([""]))):"",this.hass,this._isLoading,this._startDate,this._endDate,this._ranges,this._dateRangeChanged,this.hass,this._entityId,this.hass.localize("ui.components.entity.entity-picker.entity"),this._isLoading,this._entityPicked,this._isLoading?(0,u.dy)(o||(o=S(['\n              <div class="progress-wrapper">\n                <ha-circular-progress\n                  active\n                  alt=',"\n                ></ha-circular-progress>\n              </div>\n            "])),this.hass.localize("ui.common.loading")):(0,u.dy)(a||(a=S(["\n              <ha-logbook\n                .hass=","\n                .entries=","\n                .userIdToName=","\n                .traceContexts=","\n                virtualize\n              ></ha-logbook>\n            "])),this.hass,this._entries,this._userIdToName,this._traceContexts))}},{kind:"method",key:"firstUpdated",value:function(e){var t;H(U(w.prototype),"firstUpdated",this).call(this,e),this.hass.loadBackendTranslation("title"),this._fetchUserDone=this._fetchUserNames();var n=new Date;n.setHours(0,0,0,0);var r=new Date(n);r.setDate(r.getDate()+1),r.setMilliseconds(r.getMilliseconds()-1);var i=new Date(n);i.setDate(n.getDate()-1);var o=new Date(n);o.setMilliseconds(o.getMilliseconds()-1);var a=new Date(n);a.setDate(n.getDate()-n.getDay());var s=new Date(a);s.setDate(a.getDate()+7),s.setMilliseconds(s.getMilliseconds()-1);var c=new Date(n);c.setDate(n.getDate()-n.getDay()-7);var u=new Date(c);u.setDate(c.getDate()+7),u.setMilliseconds(u.getMilliseconds()-1),this._ranges=(D(t={},this.hass.localize("ui.panel.logbook.ranges.today"),[n,r]),D(t,this.hass.localize("ui.panel.logbook.ranges.yesterday"),[i,o]),D(t,this.hass.localize("ui.panel.logbook.ranges.this_week"),[a,s]),D(t,this.hass.localize("ui.panel.logbook.ranges.last_week"),[c,u]),t)}},{kind:"method",key:"updated",value:function(e){if((e.has("_startDate")||e.has("_endDate")||e.has("_entityId"))&&this._getData(),e.has("hass")){var t=e.get("hass");t&&t.language===this.hass.language||(this.rtl=(0,d.HE)(this.hass))}}},{kind:"method",key:"_fetchUserNames",value:(g=_(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c,u,l,f,d,h,y;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=(0,p.HD)(this.hass),r=this.hass.user.is_admin&&(0,m.uh)(this.hass),e.next=5,n;case 5:i=e.sent,o=k(i.storage);try{for(o.s();!(a=o.n()).done;)(s=a.value).user_id&&(t[s.user_id]=s.name)}catch(v){o.e(v)}finally{o.f()}c=k(i.config);try{for(c.s();!(u=c.n()).done;)(l=u.value).user_id&&(t[l.user_id]=l.name)}catch(v){c.e(v)}finally{c.f()}if(!r){e.next=16;break}return e.next=13,r;case 13:f=e.sent,d=k(f);try{for(d.s();!(h=d.n()).done;)(y=h.value).id in t||(t[y.id]=y.name)}catch(v){d.e(v)}finally{d.f()}case 16:this._userIdToName=t;case 17:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{kind:"method",key:"_dateRangeChanged",value:function(e){this._startDate=e.detail.startDate;var t=e.detail.endDate;0===t.getHours()&&0===t.getMinutes()&&(t.setDate(t.getDate()+1),t.setMilliseconds(t.getMilliseconds()-1)),this._endDate=t}},{kind:"method",key:"_entityPicked",value:function(e){this._entityId=e.target.value}},{kind:"method",key:"_refreshLogbook",value:function(){this._entries=[],(0,h.tf)(this._startDate.toISOString(),this._endDate.toISOString()),this._getData()}},{kind:"method",key:"_getData",value:(n=_(regeneratorRuntime.mark((function e(){var t,n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._isLoading=!0,e.next=3,Promise.all([(0,h.rM)(this.hass,this._startDate.toISOString(),this._endDate.toISOString(),this._entityId),(0,f.p)(this.hass,"trace")?(0,y.U_)(this.hass):{},this._fetchUserDone]);case 3:t=e.sent,n=b(t,2),r=n[0],i=n[1],this._entries=r,this._traceContexts=i,this._isLoading=!1;case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[v.Qx,(0,u.iv)(s||(s=S(["\n        ha-logbook,\n        .progress-wrapper {\n          height: calc(100vh - 136px);\n        }\n\n        :host([narrow]) ha-logbook,\n        :host([narrow]) .progress-wrapper {\n          height: calc(100vh - 198px);\n        }\n\n        ha-date-range-picker {\n          margin-right: 16px;\n          max-width: 100%;\n        }\n\n        :host([narrow]) ha-date-range-picker {\n          margin-right: 0;\n        }\n\n        .progress-wrapper {\n          position: relative;\n        }\n\n        ha-circular-progress {\n          position: absolute;\n          left: 50%;\n          top: 50%;\n          transform: translate(-50%, -50%);\n        }\n\n        .filters {\n          display: flex;\n          align-items: flex-end;\n          padding: 0 16px;\n        }\n\n        :host([narrow]) .filters {\n          flex-wrap: wrap;\n        }\n\n        ha-entity-picker {\n          display: inline-block;\n          flex-grow: 1;\n          max-width: 400px;\n        }\n\n        :host([narrow]) ha-entity-picker {\n          max-width: none;\n          width: 100%;\n        }\n      "])))]}}]}}),u.oi)}}]);
  //# sourceMappingURL=chunk.7d8536eec40a40d7c558.js.map