Files
HomeAssistantVS/custom_components/maintenance_supporter/frontend/panel-chunks/chunk-4OPY4VQ5.js
T

1282 lines
102 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! maintenance_supporter frontend 2.82.0 */
var Re=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var dt=(o,e,t,r)=>{for(var a=r>1?void 0:r?De(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&Re(e,t,a),a};var q=globalThis,I=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,J=Symbol(),de=new WeakMap,N=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==J)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(I&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=de.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&de.set(t,e))}return e}toString(){return this.cssText}},pe=o=>new N(typeof o=="string"?o:o+"",void 0,J),C=(o,...e)=>{let t=o.length===1?o[0]:e.reduce((r,a,n)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+o[n+1],o[0]);return new N(t,o,J)},_e=(o,e)=>{if(I)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),a=q.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=t.cssText,o.appendChild(r)}},Z=I?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return pe(t)})(o):o;var{is:Oe,defineProperty:Le,getOwnPropertyDescriptor:ze,getOwnPropertyNames:Me,getOwnPropertySymbols:Ue,getPrototypeOf:qe}=Object,F=globalThis,he=F.trustedTypes,Ie=he?he.emptyScript:"",Fe=F.reactiveElementPolyfillSupport,j=(o,e)=>o,P={toAttribute(o,e){switch(e){case Boolean:o=o?Ie:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},H=(o,e)=>!Oe(o,e),ue={attribute:!0,type:String,converter:P,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),F.litPropertyMetadata??=new WeakMap;var g=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ue){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),a=this.getPropertyDescriptor(e,r,t);a!==void 0&&Le(this.prototype,e,a)}}static getPropertyDescriptor(e,t,r){let{get:a,set:n}=ze(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:a,set(i){let l=a?.call(this);n?.call(this,i),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ue}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let e=qe(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let t=this.properties,r=[...Me(t),...Ue(t)];for(let a of r)this.createProperty(a,t[a])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,a]of t)this.elementProperties.set(r,a)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let a=this._$Eu(t,r);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let a of r)t.unshift(Z(a))}else e!==void 0&&t.push(Z(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _e(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,r);if(a!==void 0&&r.reflect===!0){let n=(r.converter?.toAttribute!==void 0?r.converter:P).toAttribute(t,r.type);this._$Em=e,n==null?this.removeAttribute(a):this.setAttribute(a,n),this._$Em=null}}_$AK(e,t){let r=this.constructor,a=r._$Eh.get(e);if(a!==void 0&&this._$Em!==a){let n=r.getPropertyOptions(a),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:P;this._$Em=a;let l=i.fromAttribute(t,n.type);this[a]=l??this._$Ej?.get(a)??l,this._$Em=null}}requestUpdate(e,t,r,a=!1,n){if(e!==void 0){let i=this.constructor;if(a===!1&&(n=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??H)(n,t)||r.useDefault&&r.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:a,wrapped:n},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),n!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),a===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[a,n]of r){let{wrapped:i}=n,l=this[a];i!==!0||this._$AL.has(a)||l===void 0||this.C(a,void 0,n,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};g.elementStyles=[],g.shadowRootOptions={mode:"open"},g[j("elementProperties")]=new Map,g[j("finalized")]=new Map,Fe?.({ReactiveElement:g}),(F.reactiveElementVersions??=[]).push("2.1.2");var ee=globalThis,ge=o=>o,B=ee.trustedTypes,me=B?B.createPolicy("lit-html",{createHTML:o=>o}):void 0,te="$lit$",m=`lit$${Math.random().toFixed(9).slice(2)}$`,oe="?"+m,He=`<${oe}>`,w=document,D=()=>w.createComment(""),O=o=>o===null||typeof o!="object"&&typeof o!="function",re=Array.isArray,xe=o=>re(o)||typeof o?.[Symbol.iterator]=="function",X=`[
\f\r]`,R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fe=/-->/g,ye=/>/g,b=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),be=/'/g,ve=/"/g,ke=/^(?:script|style|textarea|title)$/i,ae=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),mt=ae(1),ft=ae(2),yt=ae(3),x=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),we=new WeakMap,v=w.createTreeWalker(w,129);function Se(o,e){if(!re(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return me!==void 0?me.createHTML(e):e}var Ae=(o,e)=>{let t=o.length-1,r=[],a,n=e===2?"<svg>":e===3?"<math>":"",i=R;for(let l=0;l<t;l++){let s=o[l],d,_,c=-1,u=0;for(;u<s.length&&(i.lastIndex=u,_=i.exec(s),_!==null);)u=i.lastIndex,i===R?_[1]==="!--"?i=fe:_[1]!==void 0?i=ye:_[2]!==void 0?(ke.test(_[2])&&(a=RegExp("</"+_[2],"g")),i=b):_[3]!==void 0&&(i=b):i===b?_[0]===">"?(i=a??R,c=-1):_[1]===void 0?c=-2:(c=i.lastIndex-_[2].length,d=_[1],i=_[3]===void 0?b:_[3]==='"'?ve:be):i===ve||i===be?i=b:i===fe||i===ye?i=R:(i=b,a=void 0);let y=i===b&&o[l+1].startsWith("/>")?" ":"";n+=i===R?s+He:c>=0?(r.push(d),s.slice(0,c)+te+s.slice(c)+m+y):s+m+(c===-2?l:y)}return[Se(o,n+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},L=class o{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let n=0,i=0,l=e.length-1,s=this.parts,[d,_]=Ae(e,t);if(this.el=o.createElement(d,r),v.currentNode=this.el.content,t===2||t===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(a=v.nextNode())!==null&&s.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let c of a.getAttributeNames())if(c.endsWith(te)){let u=_[i++],y=a.getAttribute(c).split(m),U=/([.?@])?(.*)/.exec(u);s.push({type:1,index:n,name:U[2],strings:y,ctor:U[1]==="."?V:U[1]==="?"?G:U[1]==="@"?K:S}),a.removeAttribute(c)}else c.startsWith(m)&&(s.push({type:6,index:n}),a.removeAttribute(c));if(ke.test(a.tagName)){let c=a.textContent.split(m),u=c.length-1;if(u>0){a.textContent=B?B.emptyScript:"";for(let y=0;y<u;y++)a.append(c[y],D()),v.nextNode(),s.push({type:2,index:++n});a.append(c[u],D())}}}else if(a.nodeType===8)if(a.data===oe)s.push({type:2,index:n});else{let c=-1;for(;(c=a.data.indexOf(m,c+1))!==-1;)s.push({type:7,index:n}),c+=m.length-1}n++}}static createElement(e,t){let r=w.createElement("template");return r.innerHTML=e,r}};function k(o,e,t=o,r){if(e===x)return e;let a=r!==void 0?t._$Co?.[r]:t._$Cl,n=O(e)?void 0:e._$litDirective$;return a?.constructor!==n&&(a?._$AO?.(!1),n===void 0?a=void 0:(a=new n(o),a._$AT(o,t,r)),r!==void 0?(t._$Co??=[])[r]=a:t._$Cl=a),a!==void 0&&(e=k(o,a._$AS(o,e.values),a,r)),e}var W=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,a=(e?.creationScope??w).importNode(t,!0);v.currentNode=a;let n=v.nextNode(),i=0,l=0,s=r[0];for(;s!==void 0;){if(i===s.index){let d;s.type===2?d=new T(n,n.nextSibling,this,e):s.type===1?d=new s.ctor(n,s.name,s.strings,this,e):s.type===6&&(d=new Q(n,this,e)),this._$AV.push(d),s=r[++l]}i!==s?.index&&(n=v.nextNode(),i++)}return v.currentNode=w,a}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},T=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,a){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=k(this,e,t),O(e)?e===p||e==null||e===""?(this._$AH!==p&&this._$AR(),this._$AH=p):e!==this._$AH&&e!==x&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xe(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==p&&O(this._$AH)?this._$AA.nextSibling.data=e:this.T(w.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,a=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=L.createElement(Se(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===a)this._$AH.p(t);else{let n=new W(a,this),i=n.u(this.options);n.p(t),this.T(i),this._$AH=n}}_$AC(e){let t=we.get(e.strings);return t===void 0&&we.set(e.strings,t=new L(e)),t}k(e){re(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,a=0;for(let n of e)a===t.length?t.push(r=new o(this.O(D()),this.O(D()),this,this.options)):r=t[a],r._$AI(n),a++;a<t.length&&(this._$AR(r&&r._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=ge(e).nextSibling;ge(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},S=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,a,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(e,t=this,r,a){let n=this.strings,i=!1;if(n===void 0)e=k(this,e,t,0),i=!O(e)||e!==this._$AH&&e!==x,i&&(this._$AH=e);else{let l=e,s,d;for(e=n[0],s=0;s<n.length-1;s++)d=k(this,l[r+s],t,s),d===x&&(d=this._$AH[s]),i||=!O(d)||d!==this._$AH[s],d===p?e=p:e!==p&&(e+=(d??"")+n[s+1]),this._$AH[s]=d}i&&!a&&this.j(e)}j(e){e===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},V=class extends S{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===p?void 0:e}},G=class extends S{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==p)}},K=class extends S{constructor(e,t,r,a,n){super(e,t,r,a,n),this.type=5}_$AI(e,t=this){if((e=k(this,e,t,0)??p)===x)return;let r=this._$AH,a=e===p&&r!==p||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==p&&(r===p||a);a&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Q=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){k(this,e)}},bt={M:te,P:m,A:oe,C:1,L:Ae,R:W,D:xe,V:k,I:T,H:S,N:G,U:K,B:V,F:Q},Be=ee.litHtmlPolyfillSupport;Be?.(L,T),(ee.litHtmlVersions??=[]).push("3.3.2");var $e=(o,e,t)=>{let r=t?.renderBefore??e,a=r._$litPart$;if(a===void 0){let n=t?.renderBefore??null;r._$litPart$=a=new T(e.insertBefore(D(),n),n,void 0,t??{})}return a._$AI(o),a};var ne=globalThis,E=class extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$e(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return x}};E._$litElement$=!0,E.finalized=!0,ne.litElementHydrateSupport?.({LitElement:E});var We=ne.litElementPolyfillSupport;We?.({LitElement:E});(ne.litElementVersions??=[]).push("4.2.2");var ie="2.82.0";function Pt(o,e=ie){return!o||!e||e==="dev"?!1:o!==e}var Dt=o=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var Ve={attribute:!0,type:String,converter:P,reflect:!1,hasChanged:H},Ge=(o=Ve,e,t)=>{let{kind:r,metadata:a}=t,n=globalThis.litPropertyMetadata.get(a);if(n===void 0&&globalThis.litPropertyMetadata.set(a,n=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),n.set(t.name,o),r==="accessor"){let{name:i}=t;return{set(l){let s=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,s,o,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,o,l),l}}}if(r==="setter"){let{name:i}=t;return function(l){let s=this[i];e.call(this,l),this.requestUpdate(i,s,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function Ce(o){return(e,t)=>typeof t=="object"?Ge(o,e,t):((r,a,n)=>{let i=a.hasOwnProperty(n);return a.constructor.createProperty(n,r),i?Object.getOwnPropertyDescriptor(a,n):void 0})(o,e,t)}function Ut(o){return Ce({...o,state:!0,attribute:!1})}var Ke={ok:"var(--success-color, #4caf50)",due_soon:"var(--warning-color, #ff9800)",overdue:"var(--error-color, #f44336)",triggered:"var(--deep-orange-color, #ff5722)",archived:"var(--disabled-color, #9e9e9e)",paused:"var(--info-color, #2196f3)"},Qe={ok:"mdi:check-circle",due_soon:"mdi:alert-circle",overdue:"mdi:alert-octagon",triggered:"mdi:bell-alert",archived:"mdi:archive-outline",paused:"mdi:pause-circle-outline",completed:"mdi:check-circle",skipped:"mdi:skip-next",missed:"mdi:calendar-remove",reset:"mdi:refresh"};var Te={maintenance:"Maintenance",objects:"Objects",tasks:"Tasks",overdue:"Overdue",due_soon:"Due Soon",triggered:"Triggered",trigger_replaced:"Trigger replaced",trigger_removed:"Trigger removed",ok:"OK",all:"All",new_object:"+ New Object",templates_from:"From template",templates_title:"Start from a template",templates_task_count:"{n} tasks",template_created:"Created from template",onboard_hint:"Add your first object to start tracking maintenance.",edit:"Edit",duplicate:"Duplicate",task_duplicated:"Task duplicated",task_moved:"Task moved",move_task_target:"Target object",move_task_message:"Choose the object this task should belong to. Its history, readings and trigger state move with it; it gets a new reference number and its entities are recreated under the new object. Linked documents stay with the current object.",move_task_title:"Move task",move_task:"Move to another object\u2026",object_duplicated:"Object duplicated",delete:"Delete",add_task:"+ Add Task",complete:"Complete",completed:"Completed",skip:"Skip",skipped:"Skipped",missed:"Missed",reset:"Reset",snooze:"Snooze",snoozed:"Snoozed",cancel:"Cancel",bulk_select:"Select",bulk_select_all:"Select all",bulk_n_selected:"{n} selected",bulk_completed:"{n} tasks completed",bulk_archived:"{n} tasks archived",completing:"Completing\u2026",interval:"Interval",warning:"Warning",last_performed:"Last performed",next_due:"Next due",days_until_due:"Days until due",avg_duration:"Avg duration",trigger:"Trigger",trigger_type:"Trigger type",threshold_above:"Upper limit",threshold_below:"Lower limit",threshold:"Threshold",counter:"Counter",state_change:"State change",runtime:"Runtime",runtime_hours:"Target runtime (hours)",target_value:"Target value",baseline:"Baseline",target_changes:"Target changes",for_minutes:"For (minutes)",time_based:"Time-based",sensor_based:"Sensor-based",manual:"Manual",one_time:"One-time",weekdays:"Weekdays",nth_weekday:"Nth weekday of month",day_of_month:"Day of month",recurrence_on_days:"Repeat on",recurrence_occurrence:"Occurrence",recurrence_weekday:"Weekday",recurrence_day:"Day of month (1\u201331)",recurrence_last_day:"Last day of the month",recurrence_business_day:"Business days only (roll back from weekend)",recurrence_offset:"Offset (days, \xB1)",recurrence_offset_help:"Shift the date by \xB1N days, e.g. -2 = two days before.",last_day_month:"Last day of month",last_business_day_month:"Last business day",ord_1:"1st",ord_2:"2nd",ord_3:"3rd",ord_4:"4th",ord_5:"5th",ord_last:"Last",day_word:"Day",interval_value:"Interval",interval_unit:"Unit",unit_days:"Days",unit_weeks:"Weeks",unit_months:"Months",unit_years:"Years",due_date:"Due date",cleaning:"Cleaning",inspection:"Inspection",replacement:"Replacement",calibration:"Calibration",service:"Service",reading:"Reading",custom:"Custom",history:"History",cost:"Cost",report_button:"Report",report_title:"Maintenance report",report_generated:"Generated",report_times_done:"Done",report_total_cost:"Total cost",report_every:"every {n} {unit}",report_notes:"Notes",report_col_type:"Type",report_col_status:"Status",report_col_schedule:"Schedule",duration:"Duration",both:"Both",trigger_val:"Trigger value",complete_title:"Complete: ",checklist:"Checklist",require_on_completion:"Require on completion",checklist_steps_optional:"Checklist steps (optional)",checklist_placeholder:`Clean filter
Replace seal
Test pressure`,checklist_help:"One step per line. Max 100 items.",err_too_long:"{field}: too long (max {n} characters)",err_too_short:"{field}: too short (min {n} characters)",err_value_too_high:"{field}: too large (max {n})",err_value_too_low:"{field}: too small (min {n})",err_required:"{field}: required",err_wrong_type:"{field}: wrong type (expected: {type})",err_invalid_choice:"{field}: not an allowed value",err_invalid_value:"{field}: invalid value",feat_schedule_time:"Time-of-day scheduling",feat_schedule_time_desc:"Tasks become overdue at a specific time of day instead of midnight.",schedule_time_toggle:"Due at a specific time",schedule_time_help:"Empty = midnight (default). HA timezone.",at_time:"at",notes_optional:"Notes (optional)",notes_markdown_hint:"Markdown is supported \u2014 **bold**, lists, [links](\u2026)",cost_optional:"Cost (optional)",duration_minutes:"Duration in minutes (optional)",completed_at_optional:"Completed at (optional, empty = now)",completed_at_pick:"Set date & time",completed_at_future_error:"The completion date cannot be in the future.",days:"days",day:"day",today:"Today",d_overdue:"d overdue",no_tasks:"No maintenance tasks yet. Create an object to get started.",no_tasks_short:"No tasks",no_history:"No history entries yet.",show_all:"Show all",cost_duration_chart:"Cost & Duration",installed:"Installed",confirm_delete_object:"Delete this object and all its tasks?",confirm_delete_task:"Delete this task?",min:"Min",max:"Max",save:"Save",saving:"Saving\u2026",edit_task:"Edit Task",new_task:"New Maintenance Task",task_name:"Task name",maintenance_type:"Maintenance type",priority:"Priority",labels:"Labels",labels_placeholder:"e.g. safety, seasonal, tenant-visible",labels_help:"Comma-separated tags for filtering and reporting.",priority_low:"Low",priority_normal:"Normal",priority_high:"High",all_priorities:"All priorities",schedule_type:"Schedule type",interval_days:"Interval (days)",warning_days:"Warning days",earliest_completion_days:"Earliest completion (days before due)",earliest_completion_days_help:"Leave empty to allow completing any time. 0 = only on/after the due date.",last_performed_optional:"Last performed (optional)",interval_anchor:"Interval anchor",anchor_completion:"From completion date",anchor_planned:"From planned date (no drift)",edit_object:"Edit Object",name:"Name",manufacturer_optional:"Manufacturer (optional)",model_optional:"Model (optional)",serial_number_optional:"Serial number (optional)",serial_number_label:"S/N",documentation_url_label:"Manual",object_notes_label:"Notes",sort_due_date:"Due date",sort_object:"Object name",sort_type:"Type",sort_task_name:"Task name",all_objects:"All objects",all_parts:"All parts",tasks_lower:"tasks",no_tasks_yet:"No tasks yet",add_first_task:"Add first task",trigger_configuration:"Trigger Configuration",entity_id:"Entity ID",comma_separated:"comma-separated",entity_logic:"Entity logic",entity_logic_any:"Any entity triggers",entity_logic_all:"All entities must trigger",entities:"entities",attribute_optional:"Attribute (optional, blank = state)",use_entity_state:"Use entity state (no attribute)",trigger_above:"Trigger above",trigger_below:"Trigger below",trigger_equals:"Trigger when equal to (=)",trigger_not_equals:"Trigger when different from (\u2260)",for_at_least_minutes:"For at least (minutes)",safety_interval_days:"Safety interval (days, optional)",safety_interval:"Safety interval (optional)",trigger_combinator:"Combine trigger and interval",trigger_combinator_any:"Trigger or interval (whichever first)",trigger_combinator_all:"Trigger and interval (both required)",delta_mode:"Delta mode",from_state_optional:"From state (optional)",to_state_optional:"To state (optional)",documentation_url_optional:"Documentation URL (optional)",object_notes_optional:"Notes (optional)",nfc_tag_id_optional:"NFC Tag ID (optional)",nfc_tags_empty_help:"No NFC tags registered in Home Assistant yet.",nfc_tags_open_settings:"Open Tags settings",nfc_tags_refresh:"Refresh",environmental_entity_optional:"Environmental sensor (optional)",environmental_entity_helper:"e.g. sensor.outdoor_temperature \u2014 adjusts the interval based on environmental conditions",adaptive_prediction_enabled:"Enable sensor-driven predictions",adaptive_seasonal_enabled:"Enable seasonal awareness",adaptive_max_interval:"Maximum interval (days)",adaptive_min_interval:"Minimum interval (days)",adaptive_ewa_alpha:"Learning rate (alpha)",adaptive_enabled:"Enable adaptive scheduling",adaptive_section_title:"Adaptive Scheduling",environmental_attribute_optional:"Environmental attribute (optional)",nfc_tag_id:"NFC Tag ID",nfc_linked:"NFC tag linked",nfc_link_hint:"Click to link NFC tag",responsible_user:"Responsible User",shared_with:"Shared with (rotation)",shared_with_help:"Pick multiple people to share this task; the responsible person rotates on each completion.",rotation_strategy:"Rotation",rotation_none:"No rotation",rotation_round_robin:"Round-robin",rotation_least_completed:"Least completed",rotation_random:"Random",no_user_assigned:"(No user assigned)",all_users:"All Users",my_tasks:"My Tasks",tab_calendar:"Calendar",cal_no_events:"No maintenance",cal_window_7:"7 days",cal_window_14:"14 days",cal_window_30:"30 days",cal_window_365:"1 year",cal_every_n_days:"every {n} days",cal_source_time:"Time-based",cal_source_time_adaptive:"Time-based (adaptive)",cal_source_sensor:"Sensor-based",cal_predicted:"predicted",cal_confidence_high:"high confidence",cal_confidence_medium:"medium confidence",cal_confidence_low:"low confidence",budget_monthly:"Monthly budget",budget_yearly:"Yearly budget",groups:"Groups",new_group:"New group",edit_group:"Edit group",no_groups:"No groups yet",delete_group:"Delete group",delete_group_confirm:"Delete group '{name}'?",group_select_tasks:"Select tasks",group_name_required:"Name is required",description_optional:"Description (optional)",selected:"Selected",loading_chart:"Loading chart data...",hide_outliers:"Hide outliers (sensor glitches)",was_maintenance_needed:"Was this maintenance needed?",feedback_needed:"Needed",feedback_not_needed:"Not needed",feedback_not_sure:"Not sure",suggested_interval:"Suggested interval",apply_suggestion:"Apply",reanalyze:"Re-analyze",reanalyze_result:"New analysis",reanalyze_insufficient_data:"Not enough data to produce a recommendation",data_points:"data points",dismiss_suggestion:"Dismiss",confidence_low:"Low",confidence_medium:"Medium",confidence_high:"High",recommended:"recommended",seasonal_awareness:"Seasonal Awareness",edit_seasonal_overrides:"Edit seasonal factors",seasonal_overrides_title:"Seasonal factors (override)",seasonal_overrides_hint:"Factor per month (0.1\u20135.0). Empty = learned automatically.",seasonal_override_invalid:"Invalid value",seasonal_override_range:"Factor must be between 0.1 and 5.0",clear_all:"Clear all",clear:"Clear",date_type_toggle:"Type the date",date_type_invalid:"Not a valid date \u2014 try 1978-03-15, a year like 1978, or your own date format",seasonal_chart_title:"Seasonal Factors",seasonal_learned:"Learned",seasonal_manual:"Manual",month_jan:"Jan",month_feb:"Feb",month_mar:"Mar",month_apr:"Apr",month_may:"May",month_jun:"Jun",month_jul:"Jul",month_aug:"Aug",month_sep:"Sep",month_oct:"Oct",month_nov:"Nov",month_dec:"Dec",sensor_prediction:"Sensor Prediction",degradation_trend:"Trend",trend_rising:"Rising",trend_falling:"Falling",trend_stable:"Stable",trend_insufficient_data:"Insufficient data",days_until_threshold:"Days until threshold",threshold_exceeded:"Threshold exceeded",environmental_adjustment:"Environmental factor",sensor_prediction_urgency:"Sensor predicts threshold in ~{days} days",day_short:"day",weibull_reliability_curve:"Reliability Curve",weibull_failure_probability:"Failure Probability",weibull_r_squared:"Fit R\xB2",beta_early_failures:"Early Failures",beta_random_failures:"Random Failures",beta_wear_out:"Wear-out",beta_highly_predictable:"Highly Predictable",confidence_interval:"Confidence Interval",confidence_conservative:"Conservative",confidence_aggressive:"Optimistic",current_interval_marker:"Current interval",recommended_marker:"Recommended",characteristic_life:"Characteristic life",chart_mini_sparkline:"Trend sparkline",chart_history:"Cost and duration history",chart_seasonal:"Seasonal factors, 12 months",chart_weibull:"Weibull reliability curve",chart_sparkline:"Sensor trigger value chart",days_progress:"Days progress",qr_code:"QR Code",qr_generating:"Generating QR code\u2026",qr_error:"Failed to generate QR code.",qr_error_no_url:"No HA URL configured. Please set an external or internal URL in Settings \u2192 System \u2192 Network.",save_error:"Failed to save. Please try again.",qr_print:"Print",qr_download:"Download SVG",qr_action:"Action on scan",qr_action_view:"View maintenance info",qr_action_complete:"Mark maintenance as complete",qr_url_mode:"Link type",qr_mode_companion:"Companion App",qr_mode_local:"Local (mDNS)",qr_mode_server:"Server URL",overview:"Overview",analysis:"Analysis",recent_activities:"Recent Activities",search_notes:"Search notes",avg_cost:"Avg Cost",no_advanced_features:"No advanced features enabled",no_advanced_features_hint:"Enable \u201CAdaptive Intervals\u201D or \u201CSeasonal Patterns\u201D in the integration settings to see analysis data here.",analysis_not_enough_data:"Not enough data for analysis yet.",analysis_not_enough_data_hint:"Weibull analysis requires at least 5 completed maintenances; seasonal patterns become visible after 6+ data points per month.",analysis_manual_task_hint:"Manual tasks without an interval do not generate analysis data.",completions:"completions",current:"Current",shorter:"Shorter",longer:"Longer",normal:"Normal",disabled:"Disabled",compound_logic:"Compound logic",compound:"Compound (multiple conditions)",compound_logic_and:"AND \u2014 all conditions must trigger",compound_logic_or:"OR \u2014 any condition triggers",compound_help:"Combine several sensor conditions into one trigger.",compound_no_conditions:"No conditions yet \u2014 add at least one.",compound_add_condition:"Add condition",compound_condition:"Condition",compound_remove_condition:"Remove condition",card_title:"Title",card_show_header:"Show header with statistics",card_show_actions:"Show action buttons",card_action_style:"Complete button style",card_compact:"Compact mode",card_max_items:"Max items (0 = all)",card_filter_status:"Filter by status",card_filter_status_help:"Empty = show all statuses.",card_filter_objects:"Filter by objects",card_filter_objects_help:"Empty = show all objects.",card_filter_areas:"Filter by areas",card_filter_areas_help:"Empty = show all areas.",card_filter_priority_help:"Empty = show all priorities. Tasks without an explicit priority count as Normal.",card_filter_entities:"Filter by entities (entity_ids)",card_filter_entities_help:"Pick sensor / binary_sensor entities from this integration. Empty = all.",card_loading_objects:"Loading objects\u2026",card_load_error:"Could not load objects \u2014 check the WebSocket connection.",card_no_tasks_title:"No maintenance tasks yet",card_no_tasks_cta:"\u2192 Create one in the Maintenance panel",no_objects:"No objects yet.",action_error:"Action failed. Please try again.",area_id_optional:"Area (optional)",installation_date_optional:"Installation date (optional)",warranty_expiry_optional:"Warranty expiry (optional)",warranty:"Warranty",warranty_valid_until:"valid until {date}",warranty_expires_in:"expires in {days} days",warranty_expired:"expired",cal_past_windows:"Past windows",cal_forward_windows:"Forward windows",history_edit_title:"Edit history entry",history_edit_timestamp:"Timestamp",manufacturer:"Manufacturer",model:"Model",area:"Area",actions:"Actions",view_mode_label:"View",view_cards:"Card view",view_table:"Table view",objects_table_columns_label:"Objects table columns",objects_table_columns_hint:"Choose which columns appear in the objects table view.",custom_icon_optional:"Icon (optional, e.g. mdi:wrench)",task_enabled:"Task enabled",skip_reason_prompt:"Skip this task?",reason_optional:"Reason (optional)",reset_date_prompt:"Mark task as performed?",reset_date_optional:"Last performed date (optional, defaults to today)",notes_label:"Notes",documentation_label:"Documentation",no_nfc_tag:"\u2014 No tag \u2014",dashboard:"Dashboard",tab_today:"Today",palette_placeholder:"Search objects, tasks, spare parts, documents, notes\u2026",palette_no_results:"No matches",palette_hint:"\u2191\u2193 to navigate \xB7 Enter to open \xB7 Esc to close \xB7 / opens the search anywhere",search_open:"Search",search_group_parts:"Spare parts",search_group_content:"In documents",search_group_history:"History notes",search_page:"Page {page}",search_empty_hint:"Type to search objects, tasks, spare parts, documents and notes",search_searching:"Searching documents and notes\u2026",search_index_status:"Full-text search: {indexed} of {total} files indexed \xB7 {no_text} without text layer \xB7 {pending} pending",today_all_caught_up:"All caught up! Nothing due this week.",today_overdue:"Overdue",today_due_today:"Due today",today_this_week:"This week",settings:"Settings",settings_features:"Advanced Features",settings_features_desc:"Enable or disable advanced features. Disabling hides them from the UI but does not delete data.",feat_adaptive:"Adaptive Scheduling",feat_adaptive_desc:"Learn optimal intervals from maintenance history",feat_predictions:"Sensor Predictions",feat_predictions_desc:"Predict trigger dates from sensor degradation",feat_seasonal:"Seasonal Adjustments",feat_seasonal_desc:"Adjust intervals based on seasonal patterns",feat_environmental:"Environmental Correlation",feat_environmental_desc:"Correlate intervals with temperature/humidity",feat_budget:"Budget Tracking",feat_budget_desc:"Track monthly and yearly maintenance spending",feat_groups:"Task Groups",feat_groups_desc:"Organize tasks into logical groups",feat_checklists:"Checklists",feat_checklists_desc:"Multi-step procedures for task completion",settings_general:"General",settings_default_warning:"Default warning days",settings_consumable_threshold:"Consumable low threshold (%)",settings_battery_low_percent:"Battery low threshold (%)",settings_thresholds_hint:"Defaults for new Suggested setups (percent-remaining consumables) and for fleet batteries without their own Battery Notes threshold. Existing tasks keep their value.",settings_value_out_of_range:"Value must be between {min} and {max}",bn_summary:"{name}: {pct} % for {n} batteries",bn_floor_decides:"Your {floor} % floor decides for all of them; the higher of the two thresholds counts per battery.",bn_above_floor:"That is above your {floor} % floor, so {name} decides for all noted batteries.",bn_overrides:"{n} devices with their own threshold:",bn_more:"+ {n} more",settings_row_actions:"Task row actions",row_actions_buttons_compact:"Buttons (icons only on phones)",row_actions_buttons:"Buttons with text",row_actions_icons:"Icons (classic)",row_actions_follow:"Follow the household setting",settings_panel_enabled:"Sidebar panel",settings_panel_title:"Sidebar panel title",settings_notifications:"Notifications",settings_notify_service:"Notification service",settings_shopping_list:"Shopping list (buy tasks)",settings_shopping_list_help:"Low-part buy reminders appear in this to-do list; checking one off restocks the part.",shopping_list_none:"Off \u2014 no shopping list",settings_install_assist_sentences:"Install Assist sentences",settings_install_assist_sentences_hint:"Copies the voice sentences into your configuration so the classic Assist agent recognises them. A file you edited yourself is never overwritten.",test_notification:"Test notification",send_test:"Send test",testing:"Sending\u2026",test_notification_success:"Test notification sent",test_notification_failed:"Test notification failed",notify_per_person:"Per-person delivery",member_avatars:"Member avatars",member_avatars_hint:"Shown next to assigned tasks \u2014 initials in the member's colour. Defaults come from the name; set your own initials or pick a colour to tell members apart.",member_initials:"Initials",member_color:"Colour",member_avatar_reset:"Reset",notify_no_own_device:"No own device \u2014 uses the household service",settings_notify_due_soon:"Notify when due soon",settings_notify_overdue:"Notify when overdue",settings_notify_triggered:"Notify when triggered",settings_interval_hours:"Repeat interval (hours, 0 = once)",settings_quiet_hours:"Quiet hours",settings_quiet_start:"Start",settings_quiet_end:"End",settings_max_per_day:"Max notifications per day (0 = unlimited)",settings_bundling:"Bundle notifications",settings_bundle_threshold:"Bundle threshold",settings_reminder_leads:"Extra reminders (days before due)",settings_reminder_leads_hint:"Comma-separated lead times, e.g. 14, 3, 0 \u2014 one extra reminder fires on each matching day. Empty = off.",settings_actions:"Mobile Action Buttons",settings_action_complete:"Show 'Complete' button",settings_action_skip:"Show 'Skip' button",settings_action_snooze:"Show 'Snooze' button",settings_weekly_digest:"Weekly digest",settings_weekly_digest_hint:"A single summary notification on Monday morning when tasks are due.",settings_warranty_reminder:"Warranty expiry reminder",settings_warranty_reminder_days:"Days before expiry",settings_warranty_reminder_hint:"Notify once when an object's warranty is this many days from expiring.",settings_snooze_hours:"Snooze duration (hours)",settings_budget:"Budget",settings_currency:"Currency",settings_budget_monthly:"Monthly budget",settings_budget_yearly:"Yearly budget",settings_budget_alerts:"Budget alerts",settings_budget_threshold:"Alert threshold (%)",settings_import_export:"Import / Export",settings_export_json:"Export JSON",settings_export_yaml:"Export YAML",settings_export_csv:"Export CSV",settings_export_settings:"Export settings (JSON)",settings_import_csv:"Import CSV",settings_import_placeholder:"Paste JSON or CSV content here\u2026",settings_import_btn:"Import",settings_import_success:"{count} objects imported successfully.",settings_export_success:"Export downloaded.",settings_saved:"Setting saved.",settings_include_history:"Include history",settings_export_selection:"Limit to selected objects (optional)",settings_docs_archive:"Documents archive (with files)",settings_docs_archive_hint:"The JSON/YAML/CSV exports carry settings only. This ZIP includes the uploaded file contents so a restore is complete.",settings_docs_export_btn:"Download documents ZIP",settings_docs_import_btn:"Restore documents ZIP",settings_docs_import_success:"Restored: {blobs} files, {docs} documents",sort_alphabetical:"Alphabetical",sort_due_soonest:"Due soonest",sort_task_count:"Task count",sort_area:"Area",sort_assigned_user:"Assigned user",sort_group:"Group",groupby_none:"No grouping",groupby_area:"By area",groupby_group:"By group",groupby_user:"By user",groupby_object:"By object",filter_label:"Filter",user_label:"User",photo_label:"Photo",sort_label:"Sort",group_by_label:"Group by",state_value_help:'Use the HA state value (usually lowercase, e.g. "on"/"off"). Case is normalised on save.',target_changes_help:"Number of matching transitions before the trigger fires (default: 1).",state_latch_help:"With 1 transition the trigger is a latch: it recovers when the entity leaves the To-state \u2014 or, with only a From-state set, when it returns to that state.",for_minutes_state_help:"0 counts every change immediately. Set minutes and the new state must hold that long first \u2014 brief flickers then neither trigger nor count.",qr_print_title:"Print QR codes",qr_print_desc:"Generate a printable page of QR codes to cut out and stick on your equipment.",qr_print_load:"Load objects",qr_print_filter:"Filter",qr_print_objects:"Objects",qr_print_actions:"Actions",qr_print_url_mode:"Link type",qr_print_estimate:"Estimated QR codes",qr_print_over_limit:"cap is 200, narrow the filter",qr_print_generate:"Generate QR codes",qr_print_generating:"Generating\u2026",qr_print_ready:"QR codes ready",qr_print_print_button:"Print",qr_print_empty:"Nothing to generate",qr_action_skip:"Skip",vacation_title:"Vacation mode",vacation_active:"active",vacation_ended:"ended",vacation_desc:"Plan a vacation: notifications are paused during the period plus a buffer of days. You can opt specific tasks back in.",vacation_enable:"Enable vacation mode",vacation_start:"Start",vacation_end:"End",vacation_buffer:"Buffer (days)",vacation_exempt_title:"Notify anyway during vacation",vacation_exempt_desc:"Pick tasks that should still notify during vacation (e.g. critical pool chemistry).",vacation_load_tasks:"Load tasks",vacation_preview_btn:"Show preview",vacation_preview_affected:"tasks affected",vacation_event_due_soon:"becomes due soon",vacation_event_overdue:"becomes overdue",vacation_event_triggered_est:"sensor trigger possible",vacation_sensor_based:"(sensor-based)",vacation_action_notify:"Notify anyway",vacation_action_unsilence:"Silence again",vacation_marked_complete:"Marked complete",vacation_marked_skip:"Skipped",vacation_end_now:"End vacation now",add:"Add",show_stats:"Show stats + graphs",hide_stats:"Hide stats",adaptive_no_data:"Not enough completion history yet for adaptive analysis. Complete this task a few more times to unlock interval recommendations and reliability charts.",suggestion_applied:"Suggested interval applied",vacation_mode:"Vacation mode",vacation_status_active:"Active now",vacation_status_scheduled:"Scheduled",vacation_status_inactive:"Inactive",vacation_end_now_confirm:"End vacation immediately?",vacation_exempt_count:"exempt",vacation_advanced:"Advanced\u2026",vacation_open_panel:"Open in panel",enable:"Enable",saved:"Saved",budget_monthly_set:"Set monthly",budget_yearly_set:"Set yearly",budget_advanced:"Currency, alerts\u2026",budget_open_panel:"Open in panel",groups_empty:"No groups yet.",group_new_placeholder:"Add group\u2026",group_delete_confirm:'Delete group "{name}"?',groups_manage_tasks:"Manage task assignments\u2026",groups_open_panel:"Open in panel",unassigned:"Unassigned",no_area:"No area",has_overdue:"Has overdue tasks",object:"Object",settings_panel_access:"Panel access",settings_panel_access_desc:"Admins always have full access. To delegate create, edit and delete to specific non-admins, switch this on and pick them below \u2014 everyone else sees only Complete and Skip.",settings_operator_write:"Allow selected users to create, edit & delete",settings_operator_write_desc:"Off: only admins can change content. On: the selected users below get full access too.",no_non_admin_users:"No non-admin users found. Add some in Settings \u2192 People.",owner_label:"Owner",feat_completion_actions:"Completion actions",feat_completion_actions_desc:"Per-task HA action on complete + quick-complete QR with pre-set values.",on_complete_action_title:"On complete: trigger HA action (optional)",on_complete_action_desc:"Calls an HA service when the task is completed \u2014 e.g. reset a counter on the device.",on_complete_action_service:"Service",on_complete_action_target:"Target entity",on_complete_action_target_hint:"Note: the entity domain must match the service \u2014 e.g. 'button.press' only works on button.*, 'counter.increment' only on counter.*, 'input_button.press' only on input_button.* etc. On a mismatch the action will silently fail (HA logs 'Referenced entities ... missing or not currently available').",on_complete_action_data:"Data (JSON, optional)",on_complete_action_test:"Validate configuration",on_complete_action_test_success:"\u2713 Configuration valid (action will fire only on task completion)",on_complete_action_test_failed:"Failed",quick_complete_defaults_title:"Quick-complete defaults (for QR scans, optional)",quick_complete_defaults_desc:"Pre-set values for quick-complete QR scans. Without these, the QR opens the complete dialog.",quick_complete_defaults_notes:"Notes",quick_complete_defaults_cost:"Cost",quick_complete_defaults_duration:"Duration (minutes)",quick_complete_defaults_feedback_none:"No feedback",quick_complete_defaults_feedback_needed:"Was needed",quick_complete_defaults_feedback_not_needed:"Not needed",quick_complete_success:"Quickly marked complete",show_all_objects:"Show all objects",show_all_tasks:"Clear filter \u2014 show all tasks",filter_to_overdue:"Filter task list to overdue only",filter_to_due_soon:"Filter task list to due-soon only",filter_to_triggered:"Filter task list to triggered only",open_task:"Open task",show_details:"Show history + stats",hide_details:"Hide details",history_empty:"No history yet.",history_edit_button:"Edit entry",total_cost:"Total cost",times_performed:"Performed",older_entries:"older",open_in_panel:"Open in Maintenance panel",skip_reason:"Skip reason (optional)",reset_to_date:"Reset last_performed to",delete_task_confirm:"Delete this task and its history?",delete_object_confirm:"Delete this object and all its tasks?",loading:"Loading\u2026",archive:"Archive",undo:"Undo",task_archived:"Task archived",object_archived:"Object archived",unarchive:"Unarchive",archived:"Archived",show_archived:"Show archived",hide_archived:"Hide archived",confirm_archive_object:"Archive this object and its tasks? They keep their history and can be unarchived later.",settings_archive:"Archive & Retention",settings_archive_desc:"Retire completed one-off tasks without deleting them. Archived items are hidden and inert but keep their history and cost.",settings_archive_oneoff_days:"Auto-archive completed one-off tasks after (days, 0 = off)",settings_delete_archived_oneoff_days:"Auto-delete archived one-off tasks after (days, 0 = never)",archive_object:"Archive object",unarchive_object:"Unarchive object",documents:"Documents",documents_empty:"No documents yet.",doc_upload:"Upload file",doc_uploading:"Uploading\u2026",doc_add_link:"Add link",doc_link_url:"URL (https://\u2026)",doc_link_title:"Title (optional)",doc_open:"Open",doc_delete_confirm:'Delete "{name}"?',doc_too_large:"File is too large (max 25 MB).",doc_upload_failed:"Upload failed.",completion_photos_optional:"Completion photos (optional)",completion_photos:"Completion photos",choose_photos:"Choose photos",choose_photo:"Choose photo",photos_android_hint:"The Android app hands over one photo per pick \u2014 each pick is added.",add_photos:"Add photos",photos_limit:"Up to {max} photos per completion",history_edit_photos_hint:"Removing a photo here keeps the file in the object's documents.",uploading:"Uploading\u2026",remove:"Remove",doc_deduped:"Already stored elsewhere \u2014 shared, no extra space used.",doc_dup_in_object:"This file is already attached to this object.",doc_link_invalid:"Only http/https links are allowed.",doc_cat_manual:"Manual",doc_cat_warranty:"Warranty",doc_cat_invoice:"Invoice",doc_cat_spare_parts:"Spare parts",doc_cat_photo:"Photo",doc_cat_other:"Other",doc_link_badge:"Link",doc_storage_title:"Document storage",doc_storage_saved:"Saved via deduplication",doc_storage_refresh:"Refresh",doc_download:"Download",doc_close:"Close",doc_camera:"Take photo",doc_drop_hint:"Drop files here",doc_task_none:"No documents linked to this task.",doc_link_existing:"Link a document\u2026",doc_attach:"Link",doc_unlink:"Unlink",doc_page:"Page",chart_range_7d:"7d",chart_range_30d:"30d",chart_range_90d:"90d",chart_range_1y:"1y",chart_since_service:"since last service",chart_no_stats:"No long-term statistics for this entity \u2014 showing maintenance-event values only",auto_complete_on_recovery:"Auto-complete when the sensor recovers",auto_complete_on_recovery_help:"Records a completion (sets last performed) when the trigger clears itself \u2014 e.g. salt refilled, filter replaced.",doc_search:"Search documents\u2026",doc_search_none:"No matching documents",link_device_optional:"Link to existing device (optional)",parent_object_optional:"Parent object (optional)",parent_none:"(No parent)",paused:"Paused",pause_object:"Pause",resume_object:"Resume",pause_until_prompt:"Freeze this object's schedules \u2014 nothing becomes due and nothing notifies until it is resumed. Optionally set an auto-resume date.",pause_until_label:"Resume on (optional)",object_paused:"Object paused",object_resumed:"Object resumed \u2014 schedules restarted",object_paused_badge:"Paused",paused_until_label:"until",replace_object:"Replace\u2026",replace_object_prompt:"Retire this object and create a successor. History and costs stay archived on the old one; tasks and documents carry over to the new one, counters start fresh.",replace_name_label:"Successor name",object_replaced:"Object replaced \u2014 successor created",reading_unit_label:"Reading unit (e.g. kWh, m\xB3)",reading_unit_help:"Shown next to the recorded value when completing this task.",reading_value_label:"Reading value",reading_label:"Reading",readings_section:"Readings",readings_hint:"Several named values per completion \u2014 one row per meter. Leave empty to record a single value.",reading_name_label:"Reading name",reading_unit_short:"Unit",reading_add:"Add reading",reading_duplicate_name:"Name already used",reading_last:"last: {value}",reading_below_last:"Lower than the last reading ({value})",settings_templates_label:"Template gallery",settings_templates_hint:`Untick templates you'll never need \u2014 they disappear from the "From template" pickers (panel and config flow). Nothing else changes; you can re-enable them any time.`,worksheet:"Work sheet",worksheet_scan_view:"Scan to open the task",worksheet_scan_complete:"Scan to complete",worksheet_manual_excerpt:"Manual excerpt",worksheet_pages:"pages",worksheet_printed:"Printed",worksheet_never:"Never",card_all_caught_up:"All caught up \u2014 nothing needs attention",postpone:"Postpone",postpone_date_prompt:"Postpone this occurrence to which date?",postpone_date_label:"New due date",postponed:"Postponed",postponed_to:"Postponed to",season_window_label:"Seasonal window (months)",season_window_hint:"Only due in the selected months; off-season dates roll to the next active month. None = all year.",series_end_label:"Ends",series_end_never:"Never (repeats indefinitely)",series_end_after_count:"After a number of times",series_end_until:"On a date",series_end_count_label:"Number of times",series_end_until_label:"End date",parts_section:"Parts & consumables",parts_inventory_value:"Inventory value",part_add:"Add part",part_name:"Name",part_vendor:"Manufacturer",part_storage_location:"Storage location",part_product_url:"Product URL",part_unit:"Unit",part_cost:"Unit price",part_stock:"Stock",part_reorder_threshold:"Reorder at",part_restock_quantity:"Restock quantity",part_auto_buy:"Auto-create buy task when low",part_restock:"Adjust stock",parts_used_by:"Used by",restock_quantity_label:"Quantity bought",consumes_parts_label:"Consumes parts",shared_parts_other_objects:"Parts from other objects",shared_parts_help:"Several objects can share one stock. Completing this task takes from the owning object.",shared_part_unknown:"Unknown part",parts_load_failed:"Couldn't load this object's parts \u2014 the consumes-parts options are unavailable right now.",adopt_problem_button:"Adopt problem sensors",adopt_problem_title:"Adopt problem sensors",adopt_problem_hint:"Turn HA problem sensors (printer errors, filter warnings, low battery) into maintenance tasks that trigger while the problem is active and clear themselves when it resolves.",adopt_problem_none:"No problem sensors found that aren't already tracked.",adopt_problem_active:"active",adopt_problem_ok:"ok",adopt_problem_new_object:"(new)",adopt_problem_adopt:"Adopt selected",adopt_problem_done:"Adopted {tasks} problem sensor(s)",views_label:"Views",views_none:"\u2014 No view \u2014",views_manage:"Save / manage views",views_dialog_title:"Saved views",views_dialog_hint:"Save the current filters as a named view everyone can reuse.",views_name_placeholder:"View name",views_save_current:"Save current filters",views_none_yet:"No saved views yet.",close:"Close",trigger_hint_now:"The sensor reads {value} right now.",trigger_hint_above:"The task triggers once it rises above {target}.",trigger_hint_below:"It triggers once it falls below {target}.",trigger_hint_overlap:"These limits overlap: every reading triggers the task and it can never recover. Leave one of them empty.",trigger_hint_counter_delta:"Counts from the current reading ({value}): due at {due} (+{target}), and the count restarts after each completion.",trigger_hint_counter_delta_edit:"Counts usage since the last completion: due after +{target}; the count restarts after each completion.",trigger_hint_counter_abs:"The task becomes due once the sensor reaches {target}.",trigger_hint_runtime:"The task becomes due after {hours} h of accumulated on-time; the counter restarts after each completion.",trigger_hint_state_change:"The task becomes due after {count} state change(s).",trigger_hint_state_change_to:"The task becomes due after {count} change(s) to \u201C{state}\u201D.",trigger_hint_state_now:"Current state: {value}.",adopt_problem_part:"Uses part: {name}",label_filter:"Label",all_labels:"All labels",settings_notify_scope:"Notify only for view",settings_notify_scope_all:"All tasks",settings_notify_scope_hint:"Only tasks matching the selected saved view's label/user filters send reminders. Status, sorting and grouping of the view are ignored here.",settings_notify_rule:"Your own notification rule",settings_notify_rule_hint:"Every notification also fires the event maintenance_supporter_notification (kind, status, object, task, reference numbers, priority, deep link, the payload). Route it with an automation \u2014 e.g. into Ticker, Telegram or Pushover.",settings_notify_event_only:"Only fire the event, send nothing myself",settings_notify_event_only_hint:"Your automation is the whole delivery. Rate limits, quiet hours and the daily cap still apply to when the event fires.",settings_notify_extra_data:"Extra notification data (template)",settings_notify_extra_data_hint:"JSON or YAML, Jinja allowed; merged into the notify call's data (your keys win). Variables: kind, status, priority, object_name, task_name, object_ref, task_ref, days_until_due, next_due, responsible_user_id, url, target, title, message. Test it with the Send test button.",card_saved_view:"Saved view",card_saved_view_none:"None",card_saved_view_help:"Applies the view's status, user and label filters on top of the filters above. The view's sorting and grouping are panel display settings and are not applied on the card.",doc_part_none:"No documents linked to this part.",settings_templates_toggle_group:"Enable or disable all templates in this group",setups_button:"Suggested setups",setups_title:"Suggested setups (Beta)",setups_hint:"Devices of supported integrations whose consumable sensors can drive maintenance tasks. Adopting creates the object and wires each task to its sensor \u2014 it triggers when the consumable runs low and resolves itself after replacement.",setups_none:"No supported devices with unwired consumable sensors found.",setups_adopt:"Set up selected",setups_done:"{tasks} sensor-wired tasks created.",complete_parts_used:"Parts used this time",part_delete_confirm:"Delete part '{name}'? Its stock tracking, task links and any open buy reminder will be removed.",baseline_start_value:"Start reading (optional)",baseline_start_help:"Counting starts from this reading. Leave empty to count from the current value; enter the reading at the last service so usage since then already counts.",setups_baseline_hint:"reading at last service (optional)",baseline_start_help_edit:"Leave empty to keep the existing counting. Entering a value re-anchors the counting (e.g. the reading at the last service).",baseline_current_effective:"Currently effective start value: {value}",runtime_on_states:"Active states",runtime_on_states_help:"States that count as running \u2014 default: on. E.g. mowing, cleaning, printing. With an attribute selected, its values are matched instead.",runtime_max_session:"Max session runtime (seconds)",runtime_max_session_help:"A single run counts at most this many seconds \u2014 protects against a sensor stuck ON (lost connection, restart). Empty = no cap.",trend_approaching:"Heading toward the threshold",trend_easing:"Easing away from the threshold",split_select_hint:"Select a task to see its details here",setups_target_new:"Create new: {name}",schedule_preview_title:"Next dates",schedule_preview_ontime:"Assuming on-time completion.",schedule_preview_ends:"(series ends)",adopt_problem_responsible:"Responsible user for all adopted tasks (optional)",adopt_for_minutes_hint:"Only trigger once the problem has persisted this long \u2014 0 reacts to the first flicker.",adopt_problem_configure:"Configure",history_auto:"Automatic",battery_fleet_title:"Battery fleet",battery_fleet_none_low:"All batteries OK \u2014 nothing to replace.",battery_fleet_buy_now:"Buy now",battery_fleet_soon:"Needed soon",battery_fleet_soon_hint:"Predicted from the last replacement date \u2014 order ahead.",battery_fleet_mark_all:"Mark all replaced",battery_fleet_mark_one:"Mark this battery replaced",battery_fleet_offline:"offline",battery_fleet_no_sensor:"No sensor",battery_fleet_trigger_lost:"This task's sensor trigger was lost \u2014 it will not fire or auto-complete.",battery_fleet_repair:"Repair",battery_fleet_exclude:"Exclude from the fleet",battery_fleet_excluded:"Excluded",battery_fleet_include:"Track again",battery_fleet_all:"All tracked batteries",battery_fleet_all_hint:"Exclude a device here to drop it from the fleet before it ever reports low \u2014 a vacuum that recharges itself, or a phone that warns you on its own.",battery_fleet_add:"Add a battery",battery_fleet_add_hint:"Pick a battery sensor the automatic discovery missed \u2014 it joins the roster immediately.",battery_fleet_track_self:"Track self-charging batteries",battery_fleet_track_self_hint:"Phones, vacuums and other devices that recharge themselves appear as rechargeables \u2014 a low one asks for a charge, never for new cells.",battery_fleet_due_without_sensor:"Treat a passed forecast as due when a battery has no sensor",battery_fleet_due_without_sensor_hint:"Some devices report no battery level at all \u2014 Battery Notes only knows the type and the last replacement. Once the typical lifetime has passed, such a battery counts as low and the fleet task reminds you; marking it replaced resets the forecast.",battery_fleet_status_low:"Low",battery_fleet_status_soon:"Soon",battery_fleet_status_ok:"Healthy",battery_fleet_status_due:"Due",battery_fleet_predicted_on:"Expected around {date}",battery_fleet_predicted_trend:"Predicted from this battery's discharge trend: around {date} ({confidence})",battery_fleet_rechargeable:"Rechargeable: charge instead of replacing \u2014 never on the shopping list",battery_fleet_sort_name:"Sort by name",battery_fleet_sort_urgency:"Sort by urgency",battery_fleet_mark_recharged:"Mark as recharged",battery_fleet_sparkline_hint:"Battery level over the last 30 days \u2014 dotted: projected until the low threshold",battery_fleet_filter_type:"Show only this battery type",battery_fleet_record_replacement:"The level jumped around {date} \u2014 record this replacement in Battery Notes",battery_fleet_total:"{n} batteries tracked",battery_fleet_setup_button:"Battery fleet",battery_fleet_setup_done:"Battery fleet set up \u2014 one task tracks all your batteries.",update_banner:"A newer version of Maintenance Supporter is on the server \u2014 reload to update the panel.",update_reload:"Reload",row_actions_banner:"Complete and Skip in task rows are now buttons. Prefer the old icons?",row_actions_keep:"Keep buttons",row_actions_back:"Back to icons",battery_fleet_forecast_overdue:"Predicted date passed \u2014 the battery still reports healthy. If you swapped it, record the replacement; otherwise the forecast was off.",cost_from_parts:"Use \u2248 {amount} from parts",dismiss:"Dismiss",gs_label:"Getting started \u2014 these hints retire as your setup grows",gs_setups_chip:"Suggested setups found {n} devices with pre-wired triggers",gs_adopt_chip:"{n} problem sensors can become maintenance tasks",gs_fleet_chip:"One click sets up the battery fleet",cal_editor_window:"Default window",cal_editor_window_week:"Week (7 days)",cal_editor_window_fortnight:"Fortnight (14 days)",cal_editor_window_month:"Month (30 days, default)",cal_editor_window_year:"Year (365 days, empty days collapsed)",cal_editor_show_chips:"Show window chips inside the card",cal_editor_chips_hint:"Hide the chips when the card is embedded in a strategy view that already serves as the window selector.",cal_editor_show_user_filter:"Show user filter dropdown",cal_editor_default_user:"Default user filter",cal_editor_my_tasks:"My tasks (current user)",cal_editor_show_object_filter:"Show object filter dropdown",cal_editor_object_hint:'Pre-select one object via YAML: object_filter: "<object name>" \u2014 or a list of names to restrict the card to several objects.',object_history_section:"History (all tasks)",object_history_all_tasks:"All tasks",object_history_empty:"No entries in this range.",object_history_cap_note:"History keeps up to 500 entries per task \u2014 very old entries may be missing.",service_record_title:"Service record",service_record_print:"Service record (PDF)",date:"Date",service_record_entries:"entries",ref_number:"Reference number",print_options_title:"Print service record",print_layout:"Layout",print_layout_chronological:"Chronological",print_layout_by_task:"By task",print_include:"Include",print_inc_readings:"Readings",print_inc_parts:"Parts used",print_inc_photos:"Photos",print_inc_documents:"Linked documents",print_inc_checklist:"Checklist",print_inc_notes:"Notes",print_inc_costs:"Cost and duration",print_inc_person:"Completed by",print_inc_refs:"Reference numbers",print_inc_qr:"QR code per task",print_button:"Print",report_scan_hint:"Scan to open the task",completed_by:"Completed by",date_from:"From",date_to:"To",phases_section:"Cycle phases (optional)",phases_hint:"Different work on one shared schedule \u2014 each completion moves to the next step (e.g. small service, small service, big service).",phase_add:"Add phase",phase_name:"Phase name",phase_sequence_label:"Cycle order",phase_sequence_add_step:"Add step",phase_current:"Current phase",phase_set:"Set as current",chart_history_fallback:"No long-term statistics for this entity \u2014 showing recorder state history (typically the last ~10 days)",chart_history_alarm:"Trigger view from recorder state history: 1 = alert state held for the hold time, 0 = fine (typically the last ~10 days)",chart_history_count:"Change count rebuilt from recorder state history since the last service (typically the last ~10 days)",prediction_cycles:"Learned from cycles",phase_require_override:"Override \u201CRequire on completion\u201D for this phase",history_add_past:"Add past completion",require_tag_scan:"Only complete by scanning the tag",require_tag_scan_help:"Proof of presence: Done is blocked on every surface until the NFC tag or QR code on the thing itself is scanned. Automations can pass 'via_tag_scan' to the complete service.",disallow_skip:"Don't allow skipping",disallow_skip_help:"The Skip action disappears from every surface, and the server refuses a skip from automations and voice too.",no_notifications:"No notifications for this task",no_notifications_help:"No reminders for this task \u2014 no status notifications, repeats, lead-time reminders or bundles. It still shows on the dashboard and in its entities; the weekly digest still counts it.",require_tag_scan_hint:"This task completes only by scanning its NFC tag or QR code on the thing itself \u2014 saving here will be refused."};var go="\u20AC",ce="en",Ne=(()=>{let o=window;return o.__msLocales||(o.__msLocales={store:{},inflight:{}}),o.__msLocales})(),$=Ne.store;function Je(o){$.en=Object.assign({},o,$.en??{})}Je(Te);var Ze=new Set(["de","nl","fr","it","es","pt","pt-br","ru","uk","pl","cs","sv","zh","da","fi","nb","ja","hi","hu","ko","tr"]),Xe="/maintenance_supporter_locales",z=Ne.inflight;function M(o){let e=(o||ce).toLowerCase();return e.startsWith("pt")&&e.endsWith("br")?"pt-br":e.substring(0,2)}function h(o,e){let t=M(e);return $[t]?.[o]??$.en[o]??o}function mo(o,e){e.has("hass")&&rt(o.hass?.locale,o.hass?.config?.country);let t=o.hass?.language;t&&!et(t)&&tt(t).then(()=>o.requestUpdate())}function fo(o){return o?.language||"en"}function et(o){let e=M(o);return e===ce||e in $}function tt(o){let e=M(o);return e===ce||e in $||!Ze.has(e)?Promise.resolve():(e in z||(z[e]=fetch(`${Xe}/${e}.json?v=${ie}`).then(t=>t.ok?t.json():null).then(t=>{t?$[e]=t:delete z[e]}).catch(()=>{delete z[e]})),z[e])}function je(o){let e=M(o);return{de:"de-DE",en:"en-US",nl:"nl-NL",fr:"fr-FR",it:"it-IT",es:"es-ES",pt:"pt-PT",ru:"ru-RU",uk:"uk-UA",zh:"zh-CN",da:"da-DK",fi:"fi-FI",nb:"nb-NO",ja:"ja-JP",hi:"hi-IN",pl:"pl-PL",cs:"cs-CZ",sv:"sv-SE","pt-br":"pt-BR",hu:"hu-HU",ko:"ko-KR",tr:"tr-TR"}[e]??"en-US"}var ot=window,f=ot.__msDateTimePrefs??={};function rt(o,e){o&&(f.date=o.date_format,f.time=o.time_format,f.number=o.number_format,e!==void 0&&(f.country=e||void 0))}function at(o){switch(f.number){case"comma_decimal":return["en-US","en"];case"decimal_comma":return["de","es","it"];case"space_comma":return["fr","sv","cs"];case"system":return;default:return je(o)}}function nt(o,e,t){if(!Number.isFinite(o))return String(o);let r=typeof t=="number"?{minimumFractionDigits:t,maximumFractionDigits:t}:{maximumFractionDigits:2,...t};if(f.number==="none"){let a=Math.pow(10,r.maximumFractionDigits??2);return String(Math.round(o*a)/a)}try{return new Intl.NumberFormat(at(e),r).format(o)}catch{return new Intl.NumberFormat(void 0,r).format(o)}}function yo(o,e,t,r=2){let a=nt(o,t,r);return e?`${a} ${e}`:a}function A(o){let e=je(o),t=f.country;if(t&&/^[A-Za-z]{2}$/.test(t)){let r=`${M(o).split("-")[0]}-${t.toUpperCase()}`;try{return new Intl.DateTimeFormat(r),r}catch{}}return e}function Pe(o,e){let t=String(o.getDate()).padStart(2,"0"),r=String(o.getMonth()+1).padStart(2,"0"),a=String(o.getFullYear());switch(f.date){case"DMY":return`${t}/${r}/${a}`;case"MDY":return`${r}/${t}/${a}`;case"YMD":return`${a}-${r}-${t}`;case"system":return o.toLocaleDateString(void 0,{day:"2-digit",month:"2-digit",year:"numeric"});default:return o.toLocaleDateString(A(e),{day:"2-digit",month:"2-digit",year:"numeric"})}}function it(o,e){switch(f.time){case"12":return o.toLocaleTimeString(A(e),{hour:"2-digit",minute:"2-digit",hour12:!0});case"24":return o.toLocaleTimeString(A(e),{hour:"2-digit",minute:"2-digit",hour12:!1});case"system":return o.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"});default:return o.toLocaleTimeString(A(e),{hour:"2-digit",minute:"2-digit"})}}function Ee(o,e){if(!o)return"\u2014";try{let t=o.includes("T")?o:o+"T00:00:00";return Pe(new Date(t),e)}catch{return o}}function bo(o,e){if(!o)return"\u2014";try{let t=new Date(o);return Pe(t,e)+" "+it(t,e)}catch{return o}}function vo(o,e){if(o==null)return"\u2014";let t=e||"en";return o<0?`${Math.abs(o)} ${h("d_overdue",t)}`:o===0?h("today",t):`${o} ${h(o===1?"day":"days",t)}`}function se(o,e,t){return o==null?"\u2014":`${o} ${h("unit_"+(e||"days"),t)}`}function le(o,e,t="long"){return new Date(Date.UTC(2024,0,1+o)).toLocaleDateString(A(e),{weekday:t,timeZone:"UTC"})}function st(o,e,t="long"){return new Date(Date.UTC(2024,o,1)).toLocaleDateString(A(e),{month:t,timeZone:"UTC"})}function wo(o,e,t="long"){return le((o.getDay()+6)%7,e,t)}function xo(o,e,t="long"){return st(o.getMonth(),e,t)}function ko(o,e,t=!1){return o.toLocaleDateString(A(e),t?{month:"short",day:"numeric",year:"2-digit"}:{month:"short",day:"numeric"})}function So(o,e){let t=o.schedule;if(o.schedule_type==="sensor_based"){let a=h("sensor_based",e),n=t&&t.kind==="interval"&&t.every?t.every:o.interval_days;return n?`${a} \xB7 ${se(n,(t&&t.kind==="interval"?t.unit:o.interval_unit)||"days",e)}`:a}let r=t?.offset?` ${t.offset>0?"+":"\u2212"}${Math.abs(t.offset)}d`:"";switch(t?.kind){case"weekdays":return((t.weekdays||[]).map(a=>le(a,e,"short")).join(" & ")||"\u2014")+r;case"nth_weekday":return t.weekday==null||t.nth==null?"\u2014":`${t.nth===-1?h("ord_last",e):h("ord_"+t.nth,e)} ${le(t.weekday,e,"long")}${r}`;case"day_of_month":return t.day==null?"\u2014":(t.day===-1?h(t.business?"last_business_day_month":"last_day_month",e):`${h("day_word",e)} ${t.day}`)+r;case"one_time":return o.due_date?Ee(o.due_date,e):h("one_time",e);case"manual":return h("manual",e);case"interval":return se(t.every,t.unit,e)}return o.schedule_type==="one_time"?o.due_date?Ee(o.due_date,e):h("one_time",e):o.schedule_type==="manual"?h("manual",e):o.schedule_type==="sensor_based"?h("sensor_based",e):o.interval_days!=null?se(o.interval_days,o.interval_unit,e):"\u2014"}function Ao(o,e){o.currentTarget.dispatchEvent(new CustomEvent("hass-more-info",{detail:{entityId:e},bubbles:!0,composed:!0}))}var $o=C`
.field { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 12px; color: var(--secondary-text-color); }
.field-input {
padding: 8px 10px; font-size: 14px;
background: var(--secondary-background-color, rgba(0,0,0,0.06));
color: var(--primary-text-color);
border: 1px solid var(--divider-color); border-radius: 6px;
font-family: inherit; width: 100%; box-sizing: border-box;
}
.field-input:focus { outline: none; border-color: var(--primary-color); }
`,lt=C`
.person-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; vertical-align: middle; }
.person-avatar {
width: 22px; height: 22px; border-radius: 50%; flex: none;
display: inline-flex; align-items: center; justify-content: center;
background: var(--person-color, #546e7a); color: #fff;
font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1;
font-variant-numeric: tabular-nums;
}
.person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
`,ct=C`
.ref-chip {
display: inline-block; font-size: 11.5px; font-weight: 500; line-height: 1; padding: 3px 6px;
border-radius: 6px; border: 1px solid var(--divider-color); color: var(--secondary-text-color);
font-variant-numeric: tabular-nums; letter-spacing: .02em; vertical-align: middle; white-space: nowrap;
user-select: all;
}
`,Co=C`
${lt}
${ct}
:host {
--maint-ok-color: var(--success-color, #4caf50);
--maint-due-soon-color: var(--warning-color, #ff9800);
--maint-overdue-color: var(--error-color, #f44336);
/* Theme-token first so it follows dark/custom themes (was a bare #ff5722,
inconsistent with STATUS_COLORS.triggered which already tokenised it). */
--maint-triggered-color: var(--deep-orange-color, #ff5722);
}
.status-badge {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
padding: 2px 8px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
color: white;
white-space: nowrap;
/* Fixed minimum so OK / Due Soon / Overdue / Triggered pills are uniform
width in the task table — keeps the object-name column aligned. */
min-width: 70px;
box-sizing: border-box;
}
/* Shape icon so status is not conveyed by colour alone (accessibility). */
.status-badge ha-icon { --mdc-icon-size: 14px; margin-left: -1px; }
/* Light-background statuses (green/orange/grey) carry DARK text: white on
them fails even the 3:1 WCAG UI-contrast floor (2.2–2.8:1), while the
saturated statuses below keep white (≥3.1:1). Matches the calendar pills. */
.status-badge.ok { background-color: var(--maint-ok-color); color: #000; }
.status-badge.due_soon { background-color: var(--maint-due-soon-color); color: #000; }
.status-badge.overdue { background-color: var(--maint-overdue-color); }
.status-badge.triggered { background-color: var(--maint-triggered-color); }
/* Completed one-time task ("done") — muted blue-grey. */
.status-badge.done { background-color: var(--maint-done-color, #78909c); }
/* v2.10.0: archived (retire-but-retain) — neutral grey, clearly inert. */
.status-badge.archived { background-color: var(--disabled-color, #9e9e9e); color: #000; }
/* v2.20 (N3): paused — frozen but present, info blue. */
.status-badge.paused { background-color: var(--info-color, #2196f3); }
/* v1.4.7: 5-column grid so all 5 KPIs (Objects/Tasks/Overdue/Due Soon/
Triggered) always stay in one row. The previous flex-wrap layout was
wrapping the 5th item (Triggered, the widest label) onto its own row
on narrow viewports because the natural width of the items pushed past
the container width. Grid forces equal 1/5 distribution regardless of
label length. */
.stats-bar {
display: grid;
/* auto-fit instead of a fixed 5: with the budget feature on, two KPI
tiles join the strip (#125) — and on narrow screens the tiles wrap
instead of crushing. */
grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
gap: 16px;
padding: 16px;
}
.stat-item {
display: flex;
flex-direction: column;
align-items: center;
min-width: 0;
}
.stat-item .stat-label {
/* Allow long labels to ellipsis rather than overflow the grid cell. */
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.stat-item.clickable { cursor: pointer; border-radius: 8px; padding: 4px 8px; transition: background 0.15s, box-shadow 0.15s; }
.stat-item.clickable:hover { background: var(--secondary-background-color); }
/* v2.1.0 — KPIs that map to a status filter highlight when active so the
user can see at a glance which filter is on, even after scrolling away. */
.stat-item.clickable.active {
background: var(--secondary-background-color);
box-shadow: inset 0 -3px 0 var(--primary-color);
}
.objects-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 16px;
padding: 16px 0;
}
.object-card {
padding: 16px;
background: var(--card-background-color);
border-radius: 8px;
cursor: pointer;
border: 1px solid var(--divider-color);
transition: transform 0.15s, box-shadow 0.15s;
/* Large installs (100+ objects): skip rendering off-screen cards. The
intrinsic size keeps the scrollbar stable while they're skipped. */
content-visibility: auto;
contain-intrinsic-size: auto 120px;
}
.object-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.object-card-header { display: flex; justify-content: space-between; align-items: center; }
.object-card-name { font-weight: 500; font-size: 16px; }
.object-card-count { color: var(--secondary-text-color); font-size: 13px; }
.object-card-meta { color: var(--secondary-text-color); font-size: 13px; margin-top: 4px; }
.object-card-empty { color: var(--warning-color); font-size: 13px; margin-top: 8px; font-style: italic; }
/* Overdue indicator dot on object cards (#35) */
.object-card { position: relative; }
.object-card-overdue { border-left: 3px solid var(--error-color); }
.overdue-dot {
position: absolute;
top: 12px;
right: 12px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--error-color);
box-shadow: 0 0 0 2px var(--card-background-color);
}
/* Group-by collapsible sections (#35 + #36) */
.group-section {
margin: 12px 0;
border: 1px solid var(--divider-color);
border-radius: 8px;
background: var(--card-background-color);
}
.group-section[open] { padding-bottom: 8px; }
.group-section-header {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
cursor: pointer;
font-weight: 500;
list-style: none;
user-select: none;
}
.group-section-header::-webkit-details-marker { display: none; }
.group-section-header::before {
content: "▶";
font-size: 10px;
color: var(--secondary-text-color);
transition: transform 0.15s;
}
.group-section[open] .group-section-header::before { transform: rotate(90deg); }
.group-section-count {
color: var(--secondary-text-color);
font-size: 13px;
font-weight: 400;
}
.group-section .objects-grid,
.group-section .task-table {
padding: 0 12px;
}
.empty-state-centered { text-align: center; padding: 32px 16px; }
.empty-state-centered ha-button { margin-top: 16px; }
.stat-value {
font-size: 24px;
font-weight: bold;
color: var(--primary-text-color);
}
.stat-label {
font-size: 12px;
color: var(--secondary-text-color);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
}
.card-header h1 {
margin: 0;
font-size: 20px;
font-weight: 500;
}
.action-buttons {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.action-buttons ha-button {
--ha-button-font-size: 13px;
}
.history-timeline { padding: 0 16px 16px; }
.history-entry {
display: flex;
gap: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--divider-color);
/* Long histories: skip painting off-screen entries (flex, not subgrid, so
safe — subgrid task rows can't use this without breaking alignment). */
content-visibility: auto;
contain-intrinsic-size: auto 48px;
}
.history-entry:last-child { border-bottom: none; }
.history-icon {
flex-shrink: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: white;
}
.history-icon.completed { background: var(--maint-ok-color); }
.history-icon.skipped { background: var(--secondary-text-color); }
.history-icon.reset { background: var(--info-color, #2196f3); }
.history-icon.triggered { background: var(--maint-triggered-color); }
.history-content { flex: 1; min-width: 0; }
/* v2.2.0 — row holds the type label + the small Edit button */
.history-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
/* v2.37 — marks completions the system recorded itself (trigger recovered).
margin-right:auto keeps it left beside the type label while the edit
button stays pinned right by the row's space-between. */
.history-auto-badge {
margin-right: auto;
font-size: 11px;
padding: 1px 8px;
border-radius: 10px;
background: var(--secondary-background-color);
color: var(--secondary-text-color);
white-space: nowrap;
}
/* #139 — names the cycle phase a completion recorded. Shares the auto-badge
look; carries the left-pinning margin itself unless the auto badge (which
already has it) follows. */
.history-phase-badge {
margin-right: auto;
font-size: 11px;
padding: 1px 8px;
border-radius: 10px;
background: var(--secondary-background-color);
color: var(--secondary-text-color);
white-space: nowrap;
}
.history-phase-badge:has(+ .history-auto-badge) {
margin-right: 0;
}
/* #161 — a completion can carry several photos; thumbnails wrap. */
.history-photos {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
/* #161 phase 2 — named readings of a completion: a compact
name / value grid, wrapping into columns on wide screens. */
.history-readings {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 280px));
gap: 2px 24px;
margin: 4px 0;
font-size: 13px;
}
.history-reading {
display: flex;
justify-content: space-between;
gap: 8px;
min-width: 0;
}
.history-reading-name {
color: var(--secondary-text-color);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.history-reading-value {
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.history-edit-btn {
background: transparent;
color: var(--secondary-text-color);
border: none;
border-radius: 4px;
padding: 4px;
cursor: pointer;
display: inline-flex;
align-items: center;
transition: background 0.15s, color 0.15s;
}
.history-edit-btn:hover {
background: var(--secondary-background-color);
color: var(--primary-color);
}
.history-edit-btn ha-icon { --mdc-icon-size: 16px; }
.history-date {
font-size: 12px;
color: var(--secondary-text-color);
}
.history-details {
display: flex;
gap: 12px;
font-size: 13px;
color: var(--secondary-text-color);
margin-top: 4px;
}
/* History filter chips */
.history-filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.filter-chip {
display: inline-flex;
align-items: center;
padding: 4px 12px;
border-radius: 16px;
font-size: 12px;
cursor: pointer;
background: var(--secondary-background-color, #f5f5f5);
color: var(--primary-text-color);
border: 1px solid var(--divider-color);
transition: all 0.2s;
user-select: none;
}
.filter-chip:hover { background: var(--divider-color); }
.filter-chip.active {
background: var(--primary-color);
color: var(--text-primary-color, #fff);
border-color: var(--primary-color);
}
.filter-chip.clear {
font-style: italic;
opacity: 0.7;
}
/* Cost/Duration history chart */
.history-chart {
width: 100%;
height: 200px;
display: block;
}
.chart-legend {
display: flex;
justify-content: center;
gap: 16px;
margin-top: 4px;
font-size: 11px;
color: var(--secondary-text-color);
}
.legend-item {
display: inline-flex;
align-items: center;
gap: 4px;
}
.legend-swatch {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 2px;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 48px 16px;
color: var(--secondary-text-color);
}
.empty-state ha-svg-icon {
--mdc-icon-size: 48px;
margin-bottom: 16px;
}
/* Sparkline chart */
.sparkline-container { position: relative; margin: 8px 0; }
.sparkline-svg {
width: 100%;
height: 140px;
display: block;
}
/* Trigger info card */
.trigger-card {
background: var(--card-background-color, #fff);
border-radius: 12px;
padding: 12px 16px;
margin: 8px 0;
border: 1px solid var(--divider-color);
}
.trigger-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.trigger-entity-name { font-weight: 500; font-size: 14px; }
.trigger-entity-id { font-size: 11px; color: var(--secondary-text-color); font-family: monospace; }
.entity-link {
cursor: pointer;
text-decoration: underline dotted;
text-underline-offset: 2px;
}
.entity-link:hover {
color: var(--primary-color);
text-decoration: underline solid;
}
.trigger-value-row {
display: flex;
align-items: baseline;
gap: 6px;
margin: 4px 0;
}
.trigger-current { font-size: 28px; font-weight: 700; color: var(--primary-text-color); }
.trigger-current.active { color: var(--maint-triggered-color); }
.trigger-unit { font-size: 14px; color: var(--secondary-text-color); }
/* Counter progress ("8,507 / 15,000 km · 57 %" + bar) */
.counter-progress { margin: 6px 0 4px; }
.counter-progress-nums {
display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.counter-progress-main { font-size: 26px; font-weight: 700; color: var(--primary-text-color); }
.counter-progress-target { font-size: 15px; font-weight: 500; color: var(--secondary-text-color); }
.counter-progress-pct { font-size: 15px; font-weight: 700; }
.counter-progress-pct.ok { color: var(--success-color, #4caf50); }
.counter-progress-pct.near { color: var(--warning-color, #ff9800); }
.counter-progress-pct.over { color: var(--error-color, #f44336); }
.counter-progress-bar {
height: 8px; border-radius: 4px; margin: 6px 0 4px; overflow: hidden;
background: var(--secondary-background-color, rgba(0, 0, 0, 0.08));
}
.counter-progress-fill { height: 100%; border-radius: 4px; transition: width 0.3s ease; }
.counter-progress-fill.ok { background: var(--success-color, #4caf50); }
.counter-progress-fill.near { background: var(--warning-color, #ff9800); }
.counter-progress-fill.over { background: var(--error-color, #f44336); }
.counter-progress-caption { font-size: 12px; color: var(--secondary-text-color); }
/* Note under a chart that fell back to sparse maintenance-event values */
.chart-note {
display: flex; align-items: center; gap: 6px; margin-top: 2px;
font-size: 12px; color: var(--secondary-text-color);
}
.chart-note ha-icon { --mdc-icon-size: 15px; flex: none; }
.trigger-limits {
display: flex;
gap: 16px;
font-size: 13px;
color: var(--secondary-text-color);
margin: 6px 0;
flex-wrap: wrap;
}
.trigger-limit-item {
display: flex;
align-items: center;
gap: 4px;
}
.trigger-limit-item .dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.trigger-limit-item .dot.warn { background: var(--error-color, #f44336); }
.trigger-limit-item .dot.range { background: var(--secondary-text-color); }
.trigger-limit-item .dot.ok { background: var(--maint-ok-color); }
/* Row action buttons */
.row-actions {
display: flex;
gap: 0;
flex-shrink: 0;
margin-left: auto;
}
.row-actions mwc-icon-button {
--mdc-icon-button-size: 32px;
--mdc-icon-size: 18px;
}
.row-actions .btn-complete { color: var(--maint-ok-color); }
.row-actions .btn-skip { color: var(--secondary-text-color); }
/* Days bar for overview */
.due-cell {
display: flex;
flex-direction: column;
align-items: flex-end;
min-width: 90px;
gap: 2px;
}
.due-text { font-size: 13px; }
.days-bar {
width: 100%;
height: 3px;
background: var(--divider-color);
border-radius: 2px;
overflow: hidden;
}
.days-bar-fill {
height: 100%;
border-radius: 2px;
transition: width 0.3s;
}
/* Trigger progress bar (overview rows). width:100% — the due-cell doesn't
stretch its children (align-items: flex-end), so without it the bar
shrinks to its label and reads shorter than the days-bar in other rows. */
.trigger-progress {
display: flex;
flex-direction: column;
gap: 2px;
/* #150 follow-up (2026-08-31, maisun's mobile screenshot): the box used
to carry min-width: 90px — in the narrow grid the due column is
fit-content(100px) and right-aligned, so on cells narrower than 90px
the box overhung LEFT across the object name. It now tracks the cell
with no floor, and the label ellipsizes inside. */
align-self: stretch;
max-width: 100%;
min-width: 0;
width: 100%;
}
.trigger-progress-bar {
width: 100%;
height: 6px;
background: var(--divider-color);
border-radius: 3px;
overflow: hidden;
}
.trigger-progress-fill {
height: 100%;
border-radius: 2px;
transition: width 0.3s;
}
.trigger-progress-label {
font-size: 12px;
color: var(--secondary-text-color);
text-align: right;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* #150 follow-up: 3-state trend arrow — replaces the sparkline on
narrow/tight rows (panel-styles toggles visibility per regime). */
.trend-arrow {
display: none;
font-style: normal;
font-weight: 700;
margin-left: 2px;
}
.trend-approaching { color: var(--warning-color, #ff9800); }
.trend-stable { color: var(--secondary-text-color); }
.trend-easing { color: var(--success-color, #4caf50); }
/* Days progress bar (detail view) */
.days-progress {
margin: 8px 0 16px;
padding: 12px 16px;
background: var(--card-background-color, #fff);
border-radius: 12px;
border: 1px solid var(--divider-color);
}
.days-progress-labels {
display: flex;
justify-content: space-between;
font-size: 12px;
color: var(--secondary-text-color);
margin-bottom: 6px;
}
.days-progress-bar {
width: 100%;
height: 6px;
background: var(--divider-color);
border-radius: 3px;
overflow: hidden;
}
.days-progress-fill {
height: 100%;
border-radius: 3px;
transition: width 0.3s;
}
.days-progress-text {
font-size: 13px;
font-weight: 500;
text-align: center;
margin-top: 6px;
color: var(--primary-text-color);
}
/* Mini-sparkline in overview rows */
.mini-sparkline {
width: 60px;
/* Same class of bug as the trigger-progress floor (#150 follow-up): in
due cells narrower than the fixed width the right-aligned SVG used to
overhang LEFT (phone-360 sweep). preserveAspectRatio="none" lets it
just squeeze. */
max-width: 100%;
height: 20px;
display: block;
margin-top: 2px;
opacity: 0.7;
}
/* Overflow indicator for overdue progress bars */
.days-bar-fill.overflow,
.days-progress-fill.overflow,
.trigger-progress-fill.overflow {
background-image: repeating-linear-gradient(
-45deg,
transparent,
transparent 3px,
rgba(255,255,255,0.2) 3px,
rgba(255,255,255,0.2) 6px
);
animation: overflow-pulse 2s ease-in-out infinite;
}
@keyframes overflow-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
/* Budget KPI tiles in the stats strip (#125) — replaced the full-width
budget-bars row. The spent amount inherits .stat-value's full 24px bold
so the budget tiles read exactly like the other KPI chips (user report
2026-08-24: the old 15px override made them visibly smaller); only the
"/ max" suffix stays secondary. */
.stat-item.budget-tile .budget-tile-value {
white-space: nowrap;
}
/* The "/ max" ratio is its OWN small line between value and bar — inline
it overflowed the ~150px grid cell into the neighbouring tile once the
value took the full 24px. */
.budget-tile-max {
font-size: 11px;
line-height: 1.2;
color: var(--secondary-text-color);
white-space: nowrap;
}
.budget-tile-bar {
width: 100%;
max-width: 130px;
height: 4px;
border-radius: 2px;
background: var(--divider-color);
overflow: hidden;
margin-top: 5px;
}
.budget-tile-bar > div {
height: 100%;
border-radius: 2px;
transition: width 0.3s;
}
/* Groups section */
.groups-section {
padding: 8px 16px 16px;
}
.groups-section h3 {
font-size: 14px;
font-weight: 500;
color: var(--secondary-text-color);
margin: 0 0 8px;
}
.groups-grid {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.group-card {
background: var(--card-background-color, #fff);
border: 1px solid var(--divider-color);
border-radius: 12px;
padding: 12px 16px;
min-width: 180px;
flex: 1;
max-width: 300px;
cursor: default;
}
.group-card-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 8px;
}
.group-card-name {
font-weight: 500;
font-size: 14px;
margin-bottom: 4px;
}
.group-card-actions {
display: flex;
gap: 0;
}
.group-card-actions mwc-icon-button {
--mdc-icon-button-size: 28px;
--mdc-icon-size: 16px;
color: var(--secondary-text-color);
}
.groups-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.groups-header h3 { margin: 0; }
.seasonal-actions {
display: flex;
justify-content: flex-end;
padding: 4px 0;
}
.group-card-desc {
font-size: 12px;
color: var(--secondary-text-color);
margin-bottom: 8px;
}
.group-card-tasks {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.group-task-chip {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
padding: 2px 8px;
border-radius: 10px;
background: var(--secondary-background-color, #f5f5f5);
color: var(--primary-text-color);
}
/* Adaptive scheduling suggestion badge */
.suggestion-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 16px;
font-size: 12px;
font-weight: 500;
background: var(--info-color, #2196f3);
color: white;
margin-left: 8px;
}
.suggestion-actions {
display: flex;
gap: 8px;
margin-top: 8px;
}
.suggestion-actions ha-button {
--ha-button-font-size: 12px;
}
.confidence-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.confidence-dot.low { background: var(--secondary-text-color); }
.confidence-dot.medium { background: var(--warning-color, #ff9800); }
.confidence-dot.high { background: var(--success-color, #4caf50); }
/* (The complete-dialog's .feedback-* rules live in complete-dialog.ts —
this sheet carried a dead byte-identical copy until the 2026-08 drift
audit; complete-dialog never imports sharedStyles.) */
/* Seasonal chart */
.seasonal-chart {
padding: 12px 16px;
margin: 8px 0;
background: var(--card-background-color, #fff);
border-radius: 12px;
border: 1px solid var(--divider-color);
}
.seasonal-chart-title {
font-size: 13px;
font-weight: 500;
color: var(--secondary-text-color);
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 6px;
}
.seasonal-chart-title .source-tag {
font-size: 10px;
padding: 1px 6px;
border-radius: 8px;
background: var(--secondary-background-color, #f5f5f5);
color: var(--secondary-text-color);
font-weight: 400;
}
.seasonal-chart svg {
width: 100%;
height: 100px;
display: block;
}
.seasonal-labels {
display: flex;
justify-content: space-between;
padding: 0 2px;
margin-top: 4px;
}
.seasonal-label {
font-size: 10px;
color: var(--secondary-text-color);
text-align: center;
flex: 1;
}
.seasonal-label.active-month {
font-weight: 700;
color: var(--primary-color);
}
.seasonal-factor-tag {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 500;
background: var(--secondary-background-color, #f5f5f5);
color: var(--secondary-text-color);
margin-left: 6px;
}
.seasonal-factor-tag.short {
background: rgba(76, 175, 80, 0.15);
color: var(--success-color, #4caf50);
}
.seasonal-factor-tag.long {
background: rgba(255, 152, 0, 0.15);
color: var(--warning-color, #ff9800);
}
/* --- Sensor Prediction Section (Phase 3) --- */
.prediction-section {
margin: 16px 0;
padding: 12px 16px;
background: var(--card-background-color, #fff);
border-radius: 12px;
border: 1px solid var(--divider-color, #e0e0e0);
}
.prediction-urgency-banner {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
margin-bottom: 12px;
border-radius: 8px;
background: rgba(255, 152, 0, 0.15);
color: var(--warning-color, #ff9800);
font-size: 13px;
font-weight: 500;
}
.prediction-urgency-banner ha-svg-icon {
--mdc-icon-size: 18px;
flex-shrink: 0;
}
.prediction-title {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 600;
color: var(--primary-text-color);
margin-bottom: 10px;
}
.prediction-title ha-svg-icon {
--mdc-icon-size: 16px;
color: var(--primary-color);
}
.prediction-grid {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.prediction-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--secondary-text-color);
}
.prediction-item ha-svg-icon {
--mdc-icon-size: 14px;
color: var(--secondary-text-color);
flex-shrink: 0;
}
.prediction-label {
font-weight: 500;
}
.prediction-value {
font-weight: 600;
color: var(--primary-text-color);
}
.prediction-value.rising { color: var(--error-color, #f44336); }
.prediction-value.falling { color: var(--info-color, #2196f3); }
.prediction-value.stable { color: var(--success-color, #4caf50); }
.prediction-value.exceeded { color: var(--error-color, #f44336); font-weight: 700; }
.prediction-value.urgent { color: var(--warning-color, #ff9800); font-weight: 700; }
.prediction-rate {
font-size: 11px;
opacity: 0.7;
font-family: monospace;
}
.prediction-date {
font-size: 11px;
opacity: 0.7;
}
.prediction-cycles {
font-size: 11px;
opacity: 0.7;
}
.prediction-entity {
font-size: 10px;
opacity: 0.6;
font-family: monospace;
}
/* --- Weibull Reliability Section (Phase 4) --- */
.weibull-section {
margin: 16px 0;
padding: 12px 16px;
background: var(--card-background-color, #fff);
border-radius: 12px;
border: 1px solid var(--divider-color, #e0e0e0);
}
.weibull-title {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 600;
color: var(--primary-text-color);
margin-bottom: 10px;
}
.weibull-title ha-svg-icon {
--mdc-icon-size: 16px;
color: var(--primary-color);
}
.weibull-chart svg {
width: 100%;
height: 160px;
display: block;
}
.weibull-info-row {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin-top: 10px;
}
.weibull-info-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--secondary-text-color);
}
.weibull-info-value {
font-weight: 600;
color: var(--primary-text-color);
}
/* Beta interpretation badge */
.beta-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 10px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
}
.beta-badge ha-svg-icon {
--mdc-icon-size: 14px;
}
.beta-badge.early_failures {
background: rgba(244, 67, 54, 0.15);
color: var(--error-color, #f44336);
}
.beta-badge.random_failures {
background: var(--secondary-background-color, #f5f5f5);
color: var(--secondary-text-color);
}
.beta-badge.wear_out {
background: rgba(255, 152, 0, 0.15);
color: var(--warning-color, #ff9800);
}
.beta-badge.highly_predictable {
background: rgba(76, 175, 80, 0.15);
color: var(--success-color, #4caf50);
}
/* Confidence interval range bar */
.confidence-range {
margin-top: 12px;
}
.confidence-range-title {
font-size: 12px;
font-weight: 500;
color: var(--secondary-text-color);
margin-bottom: 6px;
}
.confidence-bar {
position: relative;
width: 100%;
height: 8px;
background: var(--divider-color, #e0e0e0);
border-radius: 4px;
overflow: visible;
}
.confidence-fill {
position: absolute;
height: 100%;
border-radius: 4px;
background: var(--primary-color, #03a9f4);
opacity: 0.25;
}
.confidence-marker {
position: absolute;
top: -4px;
width: 3px;
height: 16px;
border-radius: 1px;
transform: translateX(-50%);
}
.confidence-marker.recommended {
background: var(--success-color, #4caf50);
}
.confidence-marker.current {
background: var(--primary-color, #03a9f4);
}
.confidence-labels {
display: flex;
justify-content: space-between;
margin-top: 4px;
}
.confidence-text {
font-size: 10px;
color: var(--secondary-text-color);
}
.confidence-text.low {
text-align: left;
}
.confidence-text.high {
text-align: right;
}
.task-disabled { opacity: 0.5; }
.badge-disabled {
font-size: 10px;
padding: 1px 6px;
border-radius: 8px;
background: var(--disabled-color, #9e9e9e);
color: white;
}
/* ── Shared responsive styles (panel + card) ── */
@media (max-width: 600px) {
.row-actions mwc-icon-button {
--mdc-icon-button-size: 44px;
--mdc-icon-size: 22px;
}
.due-cell { min-width: 70px; }
.trigger-card { padding: 10px 12px; }
.trigger-current { font-size: 22px; }
.prediction-grid { flex-direction: column; gap: 8px; }
.weibull-info-row { flex-direction: column; gap: 8px; }
/* Budget tiles on narrow screens (#125): the spent amount keeps the
full chip size (consistency, user report 2026-08-24); the "/ max"
suffix is hidden instead — the bar and the title carry the ratio. */
.budget-tile-max { display: none; }
.group-card { min-width: 0; max-width: 100%; }
.filter-chip { padding: 6px 12px; font-size: 13px; }
.history-details { flex-wrap: wrap; gap: 6px; }
.sparkline-container { max-width: 100%; overflow: hidden; }
.sparkline-svg { height: 100px; }
/* #150 — phones get a FIXED 10-track grid instead of auto-fit: the five
KPI tiles span 2 tracks each (= one full row on any width ≥ 320 px),
the two budget tiles span 5 each (= a full second row). auto-fit with
a px floor rewrapped to 3-4 columns on 360-412 px phones and left one
or two tiles orphaned on their own row. */
.stats-bar { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; padding: 12px; }
/* min-width: 0 (NOT a fixed floor) — a fixed min-width re-enables the
grid's auto minimum, so the 5 KPI tracks couldn't shrink below their
label text and the last KPI clipped off-screen on phones (the header
only *looked* cut — .content scrolls sideways, but nothing hints so).
With 0 the tracks compress and the labels wrap to a second line. */
.stat-item { min-width: 0; grid-column: span 2; }
.stat-item.budget-tile { grid-column: span 5; }
.stat-item.clickable { padding: 4px 2px; }
/* ~60 px tracks: multi-word labels wrap at the space, single overlong
words (nl "Achterstallig") hyphenate where the browser can and hard-
break as the last resort — never clip. */
.stat-item .stat-label { font-size: 11px; white-space: normal; text-align: center; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.stat-value { font-size: 20px; }
}
`;export{dt as a,C as b,mt as c,ft as d,x as e,p as f,bt as g,E as h,ie as i,Pt as j,Dt as k,Ce as l,Ut as m,Ke as n,Qe as o,go as p,h as q,mo as r,fo as s,et as t,tt as u,rt as v,nt as w,yo as x,it as y,Ee as z,bo as A,vo as B,se as C,le as D,st as E,wo as F,xo as G,ko as H,So as I,Ao as J,$o as K,lt as L,Co as M};
/*! Bundled license information:
@lit/reactive-element/css-tag.js:
(**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/reactive-element.js:
lit-html/lit-html.js:
lit-element/lit-element.js:
@lit/reactive-element/decorators/custom-element.js:
@lit/reactive-element/decorators/property.js:
@lit/reactive-element/decorators/state.js:
@lit/reactive-element/decorators/event-options.js:
@lit/reactive-element/decorators/base.js:
@lit/reactive-element/decorators/query.js:
@lit/reactive-element/decorators/query-all.js:
@lit/reactive-element/decorators/query-async.js:
@lit/reactive-element/decorators/query-assigned-nodes.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-html/is-server.js:
(**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/query-assigned-elements.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/