homebridge-config-ui-x 5.10.1-alpha.0 → 5.10.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -15
- package/README.md +3 -3
- package/dist/core/auth/auth.controller.d.ts +4 -0
- package/dist/core/config/config.interfaces.d.ts +14 -0
- package/dist/core/config/config.service.d.ts +6 -0
- package/dist/core/config/config.service.js +8 -0
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/core/config/config.startup.js +48 -17
- package/dist/core/config/config.startup.js.map +1 -1
- package/dist/core/feature-flags/feature-flags.registry.js +5 -0
- package/dist/core/feature-flags/feature-flags.registry.js.map +1 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js +1 -0
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js.map +1 -1
- package/dist/core/spa/spa-html.service.d.ts +5 -0
- package/dist/core/spa/spa-html.service.js +32 -0
- package/dist/core/spa/spa-html.service.js.map +1 -0
- package/dist/core/spa/spa.filter.d.ts +3 -0
- package/dist/core/spa/spa.filter.js +22 -2
- package/dist/core/spa/spa.filter.js.map +1 -1
- package/dist/core/ssl/ssl-cert-generator.service.d.ts +15 -0
- package/dist/core/ssl/ssl-cert-generator.service.js +125 -0
- package/dist/core/ssl/ssl-cert-generator.service.js.map +1 -0
- package/dist/globalDefaults.js +3 -0
- package/dist/globalDefaults.js.map +1 -1
- package/dist/main.js +18 -4
- package/dist/main.js.map +1 -1
- package/dist/modules/accessories/accessories.controller.d.ts +1 -1
- package/dist/modules/accessories/accessories.interfaces.d.ts +94 -0
- package/dist/modules/accessories/accessories.interfaces.js +2 -0
- package/dist/modules/accessories/accessories.interfaces.js.map +1 -0
- package/dist/modules/accessories/accessories.module.js +2 -0
- package/dist/modules/accessories/accessories.module.js.map +1 -1
- package/dist/modules/accessories/accessories.service.d.ts +21 -3
- package/dist/modules/accessories/accessories.service.js +280 -17
- package/dist/modules/accessories/accessories.service.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.interfaces.d.ts +9 -0
- package/dist/modules/config-editor/config-editor.controller.d.ts +4 -0
- package/dist/modules/config-editor/config-editor.controller.js +64 -0
- package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
- package/dist/modules/config-editor/config-editor.service.d.ts +6 -1
- package/dist/modules/config-editor/config-editor.service.js +45 -1
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +0 -1
- package/dist/modules/plugins/plugins.service.js +18 -17
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.controller.d.ts +50 -0
- package/dist/modules/server/server.controller.js +201 -2
- package/dist/modules/server/server.controller.js.map +1 -1
- package/dist/modules/server/server.service.d.ts +48 -0
- package/dist/modules/server/server.service.js +502 -14
- package/dist/modules/server/server.service.js.map +1 -1
- package/dist/modules/status/status.gateway.d.ts +2 -0
- package/dist/modules/status/status.interfaces.d.ts +11 -0
- package/dist/modules/status/status.service.d.ts +4 -1
- package/dist/modules/status/status.service.js +21 -2
- package/dist/modules/status/status.service.js.map +1 -1
- package/docs/matter-todo.md +15 -0
- package/docs/ssl-upload-pr.md +103 -0
- package/package.json +8 -3
- package/public/3rdpartylicenses.txt +554 -606
- package/public/assets/matter.svg +8 -0
- package/public/assets/monaco/min/vs/assets/editor.worker-Be8ye1pW.js +26 -0
- package/public/assets/monaco/min/vs/assets/json.worker-DKiEKt88.js +58 -0
- package/public/assets/monaco/min/vs/basic-languages/monaco.contribution.js +1 -0
- package/public/assets/monaco/min/vs/editor/editor.main.css +1 -8
- package/public/assets/monaco/min/vs/editor/editor.main.js +4 -797
- package/public/assets/monaco/min/vs/editor.api-CalNCsUg.js +903 -0
- package/public/assets/monaco/min/vs/jsonMode-DULH5oaX.js +7 -0
- package/public/assets/monaco/min/vs/language/json/monaco.contribution.js +1 -0
- package/public/assets/monaco/min/vs/loader.js +1364 -7
- package/public/assets/monaco/min/vs/lspLanguageFeatures-kM9O9rjY.js +4 -0
- package/public/assets/monaco/min/vs/monaco.contribution-D2OdxNBt.js +1 -0
- package/public/assets/monaco/min/vs/monaco.contribution-DO3azKX8.js +1 -0
- package/public/assets/monaco/min/vs/monaco.contribution-EcChJV6a.js +1 -0
- package/public/assets/monaco/min/vs/monaco.contribution-qLAYrEOP.js +1 -0
- package/public/assets/monaco/min/vs/nls.messages-loader.js +1 -0
- package/public/assets/monaco/min/vs/workers-DcJshg-q.js +1 -0
- package/public/assets/plugin-ui-utils/ui.js +3 -0
- package/public/assets/plugin-ui-utils/ui.js.map +1 -1
- package/public/chunk-2D7CDA3H.js +1 -0
- package/public/chunk-2GBZLCJW.js +1 -0
- package/public/chunk-33YDZRAK.js +1 -0
- package/public/chunk-3DG6CT5D.js +2 -0
- package/public/chunk-3F75CKTQ.js +1 -0
- package/public/chunk-3OSRGC5M.js +1 -0
- package/public/chunk-3UTT42KH.js +1 -0
- package/public/chunk-442FBVB5.js +1 -0
- package/public/chunk-4PPFVY5K.js +1 -0
- package/public/chunk-4RWLV5CJ.js +1 -0
- package/public/chunk-4UDSSFBN.js +1 -0
- package/public/chunk-4XZK5MQY.js +1 -0
- package/public/chunk-5S4MIY7E.js +1 -0
- package/public/chunk-5X5S4L7Y.js +1 -0
- package/public/chunk-6ELMQIBK.js +1 -0
- package/public/chunk-6I27GJJF.js +1 -0
- package/public/{chunk-ACVPGZ3H.js → chunk-7CDYTG4I.js} +1 -1
- package/public/chunk-7DWXCRSP.js +1 -0
- package/public/chunk-7RJ5H5OP.js +1 -0
- package/public/chunk-ABQLMP2L.js +1 -0
- package/public/chunk-B4AJQJMI.js +1 -0
- package/public/chunk-BEI5QPKL.js +5 -0
- package/public/chunk-BEWAKOMK.js +1 -0
- package/public/{chunk-FHGIL4GK.js → chunk-BMOLDRJ3.js} +1 -1
- package/public/chunk-BOW5E4YK.js +50 -0
- package/public/chunk-BSST5MPT.js +1 -0
- package/public/chunk-BSXPNFI5.js +1 -0
- package/public/chunk-C4IIDRJP.js +1 -0
- package/public/chunk-CIWR3BDK.js +5 -0
- package/public/chunk-CMS4LVBG.js +1 -0
- package/public/chunk-CO3QJQRO.js +1 -0
- package/public/chunk-CS2WBXWW.js +1 -0
- package/public/chunk-CTWHZU36.js +1 -0
- package/public/chunk-DAMERMP3.js +1 -0
- package/public/chunk-DM74WNXP.js +1 -0
- package/public/chunk-DMKHEJF5.js +3 -0
- package/public/chunk-DTFJZNTX.js +1 -0
- package/public/chunk-DWU5C3KH.js +1 -0
- package/public/chunk-EBFB2GZT.js +1 -0
- package/public/chunk-EEA6UA46.js +2 -0
- package/public/chunk-EJACNX3Z.js +1 -0
- package/public/{chunk-U73PAFR5.js → chunk-FE43ULOM.js} +1 -1
- package/public/chunk-GPMU3WMO.js +68 -0
- package/public/chunk-GWHA2DEF.js +1 -0
- package/public/chunk-GXD2SS6L.js +1 -0
- package/public/chunk-H6QDC36H.js +1 -0
- package/public/{chunk-UPB765LT.js → chunk-H7F7H5MW.js} +1 -1
- package/public/chunk-HAJT335F.js +1 -0
- package/public/chunk-HK3N2YPM.js +1 -0
- package/public/chunk-HLNMCR4K.js +1 -0
- package/public/chunk-IC6BLNW5.js +1 -0
- package/public/chunk-IMRVMPXI.js +1 -0
- package/public/chunk-IPRQGPVV.js +1 -0
- package/public/chunk-IVZ5ER6L.js +1 -0
- package/public/chunk-JRQC3M7W.js +4 -0
- package/public/chunk-JT7TYR5C.js +1 -0
- package/public/chunk-KDXCBENV.js +2 -0
- package/public/chunk-KGOOP2T6.js +1 -0
- package/public/chunk-KMSHJTEM.js +1 -0
- package/public/chunk-L77RLTDM.js +1 -0
- package/public/chunk-LCGZABYG.js +1 -0
- package/public/chunk-LG53BDFP.js +1 -0
- package/public/chunk-LJMU7UD3.js +1 -0
- package/public/chunk-LKNJHPL6.js +1 -0
- package/public/chunk-LKODOMMX.js +1 -0
- package/public/chunk-LUUAC57N.js +1 -0
- package/public/chunk-MIWSF7W2.js +1 -0
- package/public/chunk-MQTRL6KN.js +1 -0
- package/public/{chunk-NLVJP2FS.js → chunk-MS6AXMT2.js} +52 -2
- package/public/chunk-NP23WSXR.js +1 -0
- package/public/chunk-O3SZVIF6.js +1 -0
- package/public/chunk-ODXGF3LF.js +1 -0
- package/public/chunk-OPDTKONB.js +1 -0
- package/public/chunk-ORK6IK47.js +4 -0
- package/public/chunk-OZI5E5HI.js +1 -0
- package/public/chunk-P4KZ2HSY.js +1 -0
- package/public/chunk-PI4V6TBF.js +1 -0
- package/public/chunk-PMN4OFOP.js +1 -0
- package/public/chunk-Q4WN5E2X.js +1 -0
- package/public/chunk-QA6IRNX4.js +1 -0
- package/public/chunk-QGV5S3KG.js +1 -0
- package/public/chunk-QKEI7JJT.js +1 -0
- package/public/chunk-QNQ4HXBD.js +1 -0
- package/public/chunk-QNQIBHMP.js +1 -0
- package/public/chunk-R4E7RV22.js +1 -0
- package/public/chunk-R5Q7W4AU.js +1 -0
- package/public/chunk-RQG4TZOZ.js +1 -0
- package/public/chunk-SN3EVQDP.js +1 -0
- package/public/chunk-T3526HQB.js +1 -0
- package/public/{chunk-J3GNTL4X.js → chunk-T4IEJNVJ.js} +1 -1
- package/public/chunk-TTPURYKZ.js +1 -0
- package/public/{chunk-ZAQCBQTS.js → chunk-U4YCHJUJ.js} +2 -2
- package/public/chunk-UAFCVKMR.js +1 -0
- package/public/chunk-UBCYUHPO.js +1 -0
- package/public/chunk-UJEB6C35.js +1 -0
- package/public/chunk-UQP4IIIX.js +1 -0
- package/public/chunk-URTTNRYM.js +1 -0
- package/public/chunk-USFURAEW.js +1 -0
- package/public/chunk-UVRDZGSU.js +1 -0
- package/public/chunk-VBTEO65F.js +1 -0
- package/public/chunk-WCRO6YQB.js +16 -0
- package/public/chunk-XL5BAQKW.js +8 -0
- package/public/chunk-XUAJJMQ4.js +1 -0
- package/public/chunk-Y67I4K2H.js +1 -0
- package/public/chunk-YHOHHKYL.js +1 -0
- package/public/chunk-ZABK6QJY.js +1 -0
- package/public/chunk-ZCGZM7LU.js +1 -0
- package/public/chunk-ZE7IZECI.js +19 -0
- package/public/chunk-ZGIR65XW.js +1 -0
- package/public/chunk-ZXID2WUA.js +1 -0
- package/public/index.html +2 -2
- package/public/main-VGG7NRKO.js +1 -0
- package/public/media/matter-P563JGDL.svg +8 -0
- package/public/styles-CT2LPGES.css +1 -0
- package/scripts/extract-plugin-alias.js +53 -2
- package/public/assets/monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/public/assets/monaco/min/vs/base/worker/workerMain.js +0 -31
- package/public/assets/monaco/min/vs/basic-languages/shell/shell.js +0 -10
- package/public/assets/monaco/min/vs/language/json/jsonMode.js +0 -19
- package/public/assets/monaco/min/vs/language/json/jsonWorker.js +0 -42
- package/public/chunk-22RLE62I.js +0 -1
- package/public/chunk-2A6XY76J.js +0 -1
- package/public/chunk-2AF3WD4J.js +0 -2
- package/public/chunk-3DBRQ7MK.js +0 -1
- package/public/chunk-4IR2BGMY.js +0 -2
- package/public/chunk-57IPNC7F.js +0 -1
- package/public/chunk-6QNJJYEZ.js +0 -4
- package/public/chunk-72KEQFMG.js +0 -1
- package/public/chunk-A5FPX3XJ.js +0 -1
- package/public/chunk-A6U6HYY3.js +0 -1
- package/public/chunk-APMBCXUH.js +0 -1
- package/public/chunk-AQFUOCN5.js +0 -1
- package/public/chunk-B4HZ3C7R.js +0 -1
- package/public/chunk-BJQY6ZPJ.js +0 -1
- package/public/chunk-BQRR3H5O.js +0 -1
- package/public/chunk-C534VT6D.js +0 -1
- package/public/chunk-C64SJK5O.js +0 -16
- package/public/chunk-CAYKYCA4.js +0 -1
- package/public/chunk-DEAIAR5T.js +0 -1
- package/public/chunk-E2BBQYGT.js +0 -8
- package/public/chunk-E2J5A7BL.js +0 -1
- package/public/chunk-EANCGCZ4.js +0 -1
- package/public/chunk-ELLOA7NV.js +0 -1
- package/public/chunk-F535KZNK.js +0 -1
- package/public/chunk-FBCPF7OW.js +0 -1
- package/public/chunk-FC5NA4YQ.js +0 -51
- package/public/chunk-FXPYZAMJ.js +0 -1
- package/public/chunk-FYY57EXZ.js +0 -5
- package/public/chunk-G2R4JMBA.js +0 -3
- package/public/chunk-H4NAW7LB.js +0 -1
- package/public/chunk-HGZUNSQU.js +0 -1
- package/public/chunk-HPNXSGCR.js +0 -1
- package/public/chunk-HW3LDSBY.js +0 -1
- package/public/chunk-IADCQFCV.js +0 -5
- package/public/chunk-ISM5U2ZP.js +0 -1
- package/public/chunk-IYQU2T5J.js +0 -19
- package/public/chunk-JICTKNBT.js +0 -1
- package/public/chunk-JVB5DKDR.js +0 -1
- package/public/chunk-KU7PGJPQ.js +0 -1
- package/public/chunk-L5OY5K3Z.js +0 -1
- package/public/chunk-NZHDV2UO.js +0 -1
- package/public/chunk-NZUGX67J.js +0 -1
- package/public/chunk-PHY7W3BQ.js +0 -1
- package/public/chunk-QRNZH52Q.js +0 -1
- package/public/chunk-RDXOP2RA.js +0 -1
- package/public/chunk-RQF25DTQ.js +0 -1
- package/public/chunk-RR2BOWSZ.js +0 -40
- package/public/chunk-SQSP77TI.js +0 -1
- package/public/chunk-TOWEYTJH.js +0 -1
- package/public/chunk-UHXVBJ2O.js +0 -1
- package/public/chunk-VLLREE2S.js +0 -1
- package/public/chunk-W5BUXVY6.js +0 -5
- package/public/chunk-WCOZQRWI.js +0 -1
- package/public/chunk-WDMQUU57.js +0 -1
- package/public/chunk-WOVMIXAU.js +0 -4
- package/public/chunk-XTLENV3O.js +0 -1
- package/public/chunk-YINTXBI6.js +0 -50
- package/public/chunk-YS7B334L.js +0 -1
- package/public/chunk-YYUGFDEY.js +0 -1
- package/public/chunk-ZB45BBXI.js +0 -1
- package/public/chunk-ZSZ4ITUC.js +0 -1
- package/public/main-QWNFO5VR.js +0 -1
- package/public/styles-7EFV5QBG.css +0 -1
- /package/public/{polyfills-5KWHJ7II.js → polyfills-NISNRVWY.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as ye,X as Me,Y as Ce,a as Q,d as Z,hb as te,nb as De,o as we,oa as Se,ob as ke,wa as xe,z as ee,za as Oe}from"./chunk-JRQC3M7W.js";import{e as $,g as yt}from"./chunk-B4AJQJMI.js";var $e=$((Jt,Ie)=>{Ie.exports=function(n,r){return Array.prototype.slice.call(n,r)}});var Ne=$((Qt,Re)=>{var St=typeof setImmediate=="function",re;St?re=function(t){setImmediate(t)}:re=function(t){setTimeout(t,0)};Re.exports=re});var Ye=$((Zt,Xe)=>{"use strict";var xt=Ne();Xe.exports=function(n,r,e){n&&xt(function(){n.apply(e||null,r||[])})}});var Be=$((er,je)=>{"use strict";var Fe=$e(),Ot=Ye();je.exports=function(n,r){var e=r||{},a={};return n===void 0&&(n={}),n.on=function(o,s){return a[o]?a[o].push(s):a[o]=[s],n},n.once=function(o,s){return s._once=!0,n.on(o,s),n},n.off=function(o,s){var l=arguments.length;if(l===1)delete a[o];else if(l===0)a={};else{var h=a[o];if(!h)return n;h.splice(h.indexOf(s),1)}return n},n.emit=function(){var o=Fe(arguments);return n.emitterSnapshot(o.shift()).apply(this,o)},n.emitterSnapshot=function(o){var s=(a[o]||[]).slice(0);return function(){var l=Fe(arguments),h=this||n;if(o==="error"&&e.throws!==!1&&!s.length)throw l.length===1?l[0]:l;return s.forEach(function(g){e.async?Ot(g,l,h):g.apply(h,l),g._once&&n.off(o,g)}),n}},n}});var _e=$((tr,Ae)=>{var Pe=global.CustomEvent;function Dt(){try{var t=new Pe("cat",{detail:{foo:"bar"}});return t.type==="cat"&&t.detail.foo==="bar"}catch{}return!1}Ae.exports=Dt()?Pe:typeof document<"u"&&typeof document.createEvent=="function"?function(n,r){var e=document.createEvent("CustomEvent");return r?e.initCustomEvent(n,r.bubbles,r.cancelable,r.detail):e.initCustomEvent(n,!1,!1,void 0),e}:function(n,r){var e=document.createEventObject();return e.type=n,r?(e.bubbles=!!r.bubbles,e.cancelable=!!r.cancelable,e.detail=r.detail):(e.bubbles=!1,e.cancelable=!1,e.detail=void 0),e}});var Ve=$((rr,Te)=>{"use strict";var qe=[],ne="",kt=/^on/;for(ne in global)kt.test(ne)&&qe.push(ne.slice(2));Te.exports=qe});var Ke=$((nr,ze)=>{"use strict";var It=_e(),$t=Ve(),G=global.document,Ge=Rt,He=Xt,_=[];global.addEventListener||(Ge=Nt,He=Yt);ze.exports={add:Ge,remove:He,fabricate:Ft};function Rt(t,n,r,e){return t.addEventListener(n,r,e)}function Nt(t,n,r){return t.attachEvent("on"+n,Bt(t,n,r))}function Xt(t,n,r,e){return t.removeEventListener(n,r,e)}function Yt(t,n,r){var e=Le(t,n,r);if(e)return t.detachEvent("on"+n,e)}function Ft(t,n,r){var e=$t.indexOf(n)===-1?o():a();t.dispatchEvent?t.dispatchEvent(e):t.fireEvent("on"+n,e);function a(){var s;return G.createEvent?(s=G.createEvent("Event"),s.initEvent(n,!0,!0)):G.createEventObject&&(s=G.createEventObject()),s}function o(){return new It(n,{detail:r})}}function jt(t,n,r){return function(a){var o=a||global.event;o.target=o.target||o.srcElement,o.preventDefault=o.preventDefault||function(){o.returnValue=!1},o.stopPropagation=o.stopPropagation||function(){o.cancelBubble=!0},o.which=o.which||o.keyCode,r.call(t,o)}}function Bt(t,n,r){var e=Le(t,n,r)||jt(t,n,r);return _.push({wrapper:e,element:t,type:n,fn:r}),e}function Le(t,n,r){var e=Pt(t,n,r);if(e){var a=_[e].wrapper;return _.splice(e,1),a}}function Pt(t,n,r){var e,a;for(e=0;e<_.length;e++)if(a=_[e],a.element===t&&a.type===n&&a.fn===r)return e}});var Qe=$((ir,Je)=>{"use strict";var Ue={},At="(?:^|\\s)",_t="(?:\\s|$)";function We(t){var n=Ue[t];return n?n.lastIndex=0:Ue[t]=n=new RegExp(At+t+_t,"g"),n}function qt(t,n){var r=t.className;r.length?We(n).test(r)||(t.className+=" "+n):t.className=n}function Tt(t,n){t.className=t.className.replace(We(n)," ").trim()}Je.exports={add:qt,rm:Tt}});var ut=$((or,st)=>{"use strict";var Vt=Be(),P=Ke(),X=Qe(),A=document,k=A.documentElement;function Gt(t,n){var r=arguments.length;r===1&&Array.isArray(t)===!1&&(n=t,t=[]);var e,a,o,s,l,h,b,g,w,f,D,M=null,I,c=n||{};c.moves===void 0&&(c.moves=rt),c.accepts===void 0&&(c.accepts=rt),c.invalid===void 0&&(c.invalid=ht),c.containers===void 0&&(c.containers=t||[]),c.isContainer===void 0&&(c.isContainer=Lt),c.copy===void 0&&(c.copy=!1),c.copySortSource===void 0&&(c.copySortSource=!1),c.revertOnSpill===void 0&&(c.revertOnSpill=!1),c.removeOnSpill===void 0&&(c.removeOnSpill=!1),c.direction===void 0&&(c.direction="vertical"),c.ignoreInputTextSelection===void 0&&(c.ignoreInputTextSelection=!0),c.mirrorContainer===void 0&&(c.mirrorContainer=A.body);var p=Vt({containers:c.containers,start:vt,end:fe,cancel:pe,remove:me,destroy:ct,canMove:ft,dragging:!1});return c.removeOnSpill===!0&&p.on("over",mt).on("out",pt),ue(),p;function H(i){return p.containers.indexOf(i)!==-1||c.isContainer(i)}function ue(i){var u=i?"remove":"add";q(k,u,"mousedown",lt),q(k,u,"mouseup",K)}function L(i){var u=i?"remove":"add";q(k,u,"mousemove",dt)}function ce(i){var u=i?"remove":"add";P[u](k,"selectstart",le),P[u](k,"click",le)}function ct(){ue(!0),K({})}function le(i){I&&i.preventDefault()}function lt(i){h=i.clientX,b=i.clientY;var u=Ze(i)!==1||i.metaKey||i.ctrlKey;if(!u){var d=i.target,m=z(d);m&&(I=m,L(),i.type==="mousedown"&&(ot(d)?d.focus():i.preventDefault()))}}function dt(i){if(I){if(Ze(i)===0){K({});return}if(!(i.clientX!==void 0&&Math.abs(i.clientX-h)<=(c.slideFactorX||0)&&i.clientY!==void 0&&Math.abs(i.clientY-b)<=(c.slideFactorY||0))){if(c.ignoreInputTextSelection){var u=Y("clientX",i)||0,d=Y("clientY",i)||0,m=A.elementFromPoint(u,d);if(ot(m))return}var y=I;L(!0),ce(),fe(),de(y);var E=Ht(o);s=Y("pageX",i)-E.left,l=Y("pageY",i)-E.top,X.add(f||o,"gu-transit"),gt(),J(i)}}}function z(i){if(!(p.dragging&&e)&&!H(i)){for(var u=i;S(i)&&H(S(i))===!1;)if(c.invalid(i,u)||(i=S(i),!i))return;var d=S(i);if(d&&!c.invalid(i,u)){var m=c.moves(i,d,u,T(i));if(m)return{item:i,source:d}}}}function ft(i){return!!z(i)}function vt(i){var u=z(i);u&&de(u)}function de(i){Et(i.item,i.source)&&(f=i.item.cloneNode(!0),p.emit("cloned",f,i.item,"copy")),a=i.source,o=i.item,g=w=T(i.item),p.dragging=!0,p.emit("drag",o,a)}function ht(){return!1}function fe(){if(p.dragging){var i=f||o;he(i,S(i))}}function ve(){I=!1,L(!0),ce(!0)}function K(i){if(ve(),!!p.dragging){var u=f||o,d=Y("clientX",i)||0,m=Y("clientY",i)||0,y=tt(e,d,m),E=ge(y,d,m);E&&(f&&c.copySortSource||!f||E!==a)?he(u,E):c.removeOnSpill?me():pe()}}function he(i,u){var d=S(i);f&&c.copySortSource&&u===a&&d.removeChild(o),W(u)?p.emit("cancel",i,a,a):p.emit("drop",i,u,a,w),U()}function me(){if(p.dragging){var i=f||o,u=S(i);u&&u.removeChild(i),p.emit(f?"cancel":"remove",i,u,a),U()}}function pe(i){if(p.dragging){var u=arguments.length>0?i:c.revertOnSpill,d=f||o,m=S(d),y=W(m);y===!1&&u&&(f?m&&m.removeChild(f):a.insertBefore(d,g)),y||u?p.emit("cancel",d,a,a):p.emit("drop",d,m,a,w),U()}}function U(){var i=f||o;ve(),bt(),i&&X.rm(i,"gu-transit"),D&&clearTimeout(D),p.dragging=!1,M&&p.emit("out",i,M,a),p.emit("dragend",i),a=o=f=g=w=D=M=null}function W(i,u){var d;return u!==void 0?d=u:e?d=w:d=T(f||o),i===a&&d===g}function ge(i,u,d){for(var m=i;m&&!y();)m=S(m);return m;function y(){var E=H(m);if(E===!1)return!1;var B=be(m,i),C=Ee(m,B,u,d),R=W(m,C);return R?!0:c.accepts(o,m,a,C)}}function J(i){if(!e)return;i.preventDefault();var u=Y("clientX",i)||0,d=Y("clientY",i)||0,m=u-s,y=d-l;e.style.left=m+"px",e.style.top=y+"px";var E=f||o,B=tt(e,u,d),C=ge(B,u,d),R=C!==null&&C!==M;(R||C===null)&&(Mt(),M=C,wt());var x=S(E);if(C===a&&f&&!c.copySortSource){x&&x.removeChild(E);return}var O,F=be(C,B);if(F!==null)O=Ee(C,F,u,d);else if(c.revertOnSpill===!0&&!f)O=g,C=a;else{f&&x&&x.removeChild(E);return}(O===null&&R||O!==E&&O!==T(E))&&(w=O,C.insertBefore(E,O),p.emit("shadow",E,C,a));function N(Ct){p.emit(Ct,E,M,a)}function wt(){R&&N("over")}function Mt(){M&&N("out")}}function mt(i){X.rm(i,"gu-hide")}function pt(i){p.dragging&&X.add(i,"gu-hide")}function gt(){if(!e){var i=o.getBoundingClientRect();e=o.cloneNode(!0),e.style.width=nt(i)+"px",e.style.height=it(i)+"px",X.rm(e,"gu-transit"),X.add(e,"gu-mirror"),c.mirrorContainer.appendChild(e),q(k,"add","mousemove",J),X.add(c.mirrorContainer,"gu-unselectable"),p.emit("cloned",e,o,"mirror")}}function bt(){e&&(X.rm(c.mirrorContainer,"gu-unselectable"),q(k,"remove","mousemove",J),S(e).removeChild(e),e=null)}function be(i,u){for(var d=u;d!==i&&S(d)!==i;)d=S(d);return d===k?null:d}function Ee(i,u,d,m){var y=c.direction==="horizontal",E=u!==i?C():B();return E;function B(){var x=i.children.length,O,F,N;for(O=0;O<x;O++)if(F=i.children[O],N=F.getBoundingClientRect(),y&&N.left+N.width/2>d||!y&&N.top+N.height/2>m)return F;return null}function C(){var x=u.getBoundingClientRect();return R(y?d>x.left+nt(x)/2:m>x.top+it(x)/2)}function R(x){return x?T(u):u}}function Et(i,u){return typeof c.copy=="boolean"?c.copy:c.copy(i,u)}}function q(t,n,r,e){var a={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},o={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},s={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};global.navigator.pointerEnabled?P[n](t,o[r],e):global.navigator.msPointerEnabled?P[n](t,s[r],e):(P[n](t,a[r],e),P[n](t,r,e))}function Ze(t){if(t.touches!==void 0)return t.touches.length;if(t.which!==void 0&&t.which!==0)return t.which;if(t.buttons!==void 0)return t.buttons;var n=t.button;if(n!==void 0)return n&1?1:n&2?3:n&4?2:0}function Ht(t){var n=t.getBoundingClientRect();return{left:n.left+et("scrollLeft","pageXOffset"),top:n.top+et("scrollTop","pageYOffset")}}function et(t,n){return typeof global[n]<"u"?global[n]:k.clientHeight?k[t]:A.body[t]}function tt(t,n,r){t=t||{};var e=t.className||"",a;return t.className+=" gu-hide",a=A.elementFromPoint(n,r),t.className=e,a}function Lt(){return!1}function rt(){return!0}function nt(t){return t.width||t.right-t.left}function it(t){return t.height||t.bottom-t.top}function S(t){return t.parentNode===A?null:t.parentNode}function ot(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"||at(t)}function at(t){return!t||t.contentEditable==="false"?!1:t.contentEditable==="true"?!0:at(S(t))}function T(t){return t.nextElementSibling||n();function n(){var r=t;do r=r.nextSibling;while(r&&r.nodeType!==1);return r}}function zt(t){return t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t}function Y(t,n){var r=zt(n),e={pageX:"clientX",pageY:"clientY"};return t in e&&!(t in r)&&e[t]in r&&(t=e[t]),r[t]}st.exports=Gt});var se=yt(ut(),1),ie=class{constructor(n,r,e){this.name=n,this.drake=r,this.options=e,this.initEvents=!1}},v=(function(t){return t.Cancel="cancel",t.Cloned="cloned",t.Drag="drag",t.DragEnd="dragend",t.Drop="drop",t.Out="out",t.Over="over",t.Remove="remove",t.Shadow="shadow",t.DropModel="dropModel",t.RemoveModel="removeModel",t})(v||{}),Kt=Object.keys(v).map(t=>v[t]),Ut=se.default||se,V=class{constructor(n=Ut){this.build=n}},j=(t,n,r)=>e=>e.pipe(ee(({event:a,name:o})=>a===t&&(n===void 0||o===n)),we(({name:a,args:o})=>r(a,o))),Wt=(t,[n,r,e])=>({name:t,el:n,container:r,source:e}),oe=(()=>{class t{constructor(r){this.drakeFactory=r,this.groups={},this.dispatch$=new Z,this.elContainerSource=e=>a=>this.dispatch$.pipe(j(e,a,Wt)),this.cancel=this.elContainerSource(v.Cancel),this.remove=this.elContainerSource(v.Remove),this.shadow=this.elContainerSource(v.Shadow),this.over=this.elContainerSource(v.Over),this.out=this.elContainerSource(v.Out),this.drag=e=>this.dispatch$.pipe(j(v.Drag,e,(a,[o,s])=>({name:a,el:o,source:s}))),this.dragend=e=>this.dispatch$.pipe(j(v.DragEnd,e,(a,[o])=>({name:a,el:o}))),this.drop=e=>this.dispatch$.pipe(j(v.Drop,e,(a,[o,s,l,h])=>({name:a,el:o,target:s,source:l,sibling:h}))),this.cloned=e=>this.dispatch$.pipe(j(v.Cloned,e,(a,[o,s,l])=>({name:a,clone:o,original:s,cloneType:l}))),this.dropModel=e=>this.dispatch$.pipe(j(v.DropModel,e,(a,[o,s,l,h,b,g,w,f,D])=>({name:a,el:o,target:s,source:l,sibling:h,item:b,sourceModel:g,targetModel:w,sourceIndex:f,targetIndex:D}))),this.removeModel=e=>this.dispatch$.pipe(j(v.RemoveModel,e,(a,[o,s,l,h,b,g])=>({name:a,el:o,container:s,source:l,item:h,sourceModel:b,sourceIndex:g}))),(this.drakeFactory===null||this.drakeFactory===void 0)&&(this.drakeFactory=new V)}add(r){if(this.find(r.name))throw new Error('Group named: "'+r.name+'" already exists.');return this.groups[r.name]=r,this.handleModels(r),this.setupEvents(r),r}find(r){return this.groups[r]}destroy(r){let e=this.find(r);e&&(e.drake&&e.drake.destroy(),delete this.groups[r])}createGroup(r,e){return this.add(new ie(r,this.drakeFactory.build([],e),e))}handleModels({name:r,drake:e,options:a}){let o,s,l;e.on("remove",(h,b,g)=>{if(!e.models)return;let w=e.models[e.containers.indexOf(g)];w=w.slice(0);let f=w.splice(s,1)[0];this.dispatch$.next({event:v.RemoveModel,name:r,args:[h,b,g,f,w,s]})}),e.on("drag",(h,b)=>{e.models&&(o=h,s=this.domIndexOf(h,b))}),e.on("drop",(h,b,g,w)=>{if(!e.models||!b)return;l=this.domIndexOf(h,b);let f=e.models[e.containers.indexOf(g)],D=e.models[e.containers.indexOf(b)],M;if(b===g)f=f.slice(0),M=f.splice(s,1)[0],f.splice(l,0,M),D=f;else{let I=o!==h;if(M=f[s],I){if(!a.copyItem)throw new Error("If you have enabled `copy` on a group, you must provide a `copyItem` function.");M=a.copyItem(M)}if(I||(f=f.slice(0),f.splice(s,1)),D=D.slice(0),D.splice(l,0,M),I)try{b.removeChild(h)}catch{}}this.dispatch$.next({event:v.DropModel,name:r,args:[h,b,g,w,M,f,D,s,l]})})}setupEvents(r){if(r.initEvents)return;r.initEvents=!0;let e=r.name,a=this,o=s=>{switch(s){case v.Drag:r.drake.on(s,(...l)=>{this.dispatch$.next({event:s,name:e,args:l})});break;case v.Drop:r.drake.on(s,(...l)=>{this.dispatch$.next({event:s,name:e,args:l})});break;case v.DragEnd:r.drake.on(s,(...l)=>{this.dispatch$.next({event:s,name:e,args:l})});break;case v.Cancel:case v.Remove:case v.Shadow:case v.Over:case v.Out:r.drake.on(s,(...l)=>{this.dispatch$.next({event:s,name:e,args:l})});break;case v.Cloned:r.drake.on(s,(...l)=>{this.dispatch$.next({event:s,name:e,args:l})});break;case v.DropModel:r.drake.on(s,(...l)=>{this.dispatch$.next({event:s,name:e,args:l})});break;case v.RemoveModel:r.drake.on(s,(...l)=>{this.dispatch$.next({event:s,name:e,args:l})});break;default:break}};Kt.forEach(o)}domIndexOf(r,e){if(e)return Array.prototype.indexOf.call(e.children,r)}static{this.\u0275fac=function(e){return new(e||t)(ye(V,8))}}static{this.\u0275prov=Me({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pr=(()=>{class t{get container(){return this.el&&this.el.nativeElement}constructor(r,e){this.el=r,this.dragulaService=e,this.dragulaModelChange=new Se}ngOnChanges(r){if(r&&r.dragula){let{previousValue:e,currentValue:a}=r.dragula,o=!!e,s=!!a;o&&this.teardown(e),s&&this.setup()}else if(r&&r.dragulaModel){let{previousValue:e,currentValue:a}=r.dragulaModel,o=this.group?.drake;if(this.dragula&&o){o.models=o.models||[];let s=o.models.indexOf(e);s!==-1?(o.models.splice(s,1),a&&o.models.splice(s,0,a)):a&&o.models.push(a)}}}setup(){let r=a=>{this.dragulaModel&&(a.drake?.models?a.drake?.models?.push(this.dragulaModel):a.drake&&(a.drake.models=[this.dragulaModel]))};if(!this.dragula)return;let e=this.dragulaService.find(this.dragula);if(!e){let a={};e=this.dragulaService.createGroup(this.dragula,a)}r(e),e.drake?.containers.push(this.container),this.subscribe(this.dragula),this.group=e}subscribe(r){this.subs=new Q,this.subs.add(this.dragulaService.dropModel(r).subscribe(({source:e,target:a,sourceModel:o,targetModel:s})=>{e===this.el.nativeElement?this.dragulaModelChange.emit(o):a===this.el.nativeElement&&this.dragulaModelChange.emit(s)})),this.subs.add(this.dragulaService.removeModel(r).subscribe(({source:e,sourceModel:a})=>{e===this.el.nativeElement&&this.dragulaModelChange.emit(a)}))}teardown(r){this.subs?.unsubscribe();let e=this.dragulaService.find(r);if(e){let a=e.drake?.containers.indexOf(this.el.nativeElement);if(a!==-1&&e.drake?.containers.splice(a,1),this.dragulaModel&&e.drake&&e.drake.models){let o=e.drake.models.indexOf(this.dragulaModel);o!==-1&&e.drake.models.splice(o,1)}}}ngOnDestroy(){this.dragula&&this.teardown(this.dragula)}static{this.\u0275fac=function(e){return new(e||t)(te(Oe),te(oe))}}static{this.\u0275dir=ke({type:t,selectors:[["","dragula",""]],inputs:{dragula:"dragula",dragulaModel:"dragulaModel"},outputs:{dragulaModelChange:"dragulaModelChange"},standalone:!1,features:[xe]})}}return t})(),gr=(()=>{class t{static forRoot(){return{ngModule:t,providers:[oe]}}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=De({type:t})}static{this.\u0275inj=Ce({providers:[oe]})}}return t})(),br=new V((t,n)=>new ae(t,n)),ae=class{constructor(n=[],r={},e){this.containers=n,this.options=r,this.models=e,this.emitter$=new Z,this.subs=new Q,this.dragging=!1}on(n,r){this.subs.add(this.emitter$.pipe(ee(({eventType:e})=>e===n)).subscribe(({eventType:e,args:a})=>{if(e===v.Drag){let o=Array.from(a),s=o[0],l=o[1];r(s,l);return}if(e===v.Drop){let o=Array.from(a),s=o[0],l=o[1],h=o[2],b=o[3];r(s,l,h,b);return}if(e===v.Remove){let o=Array.from(a),s=o[0],l=o[1],h=o[2];r(s,l,h);return}r(a)}))}start(n){this.dragging=!0}end(){this.dragging=!1}cancel(n){this.dragging=!1}canMove(n){return this.options.accepts?this.options.accepts(n):!1}remove(){this.dragging=!1}destroy(){this.subs.unsubscribe()}emit(n,...r){this.emitter$.next({eventType:n,args:r})}};export{oe as a,pr as b,gr as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as H}from"./chunk-BEI5QPKL.js";import{E as I}from"./chunk-KDXCBENV.js";import{Dc as b,Ec as _,Ib as o,Jb as a,Kb as m,Qb as B,Rb as f,Ta as r,Xb as u,Ya as i,Yb as s,aa as M,ga as y,ha as T,ic as v,jc as C,kc as k,lc as E,mb as L,uc as g,xb as p,yb as d,zb as c}from"./chunk-JRQC3M7W.js";function w(t,x){if(t&1&&m(0,"i",14),t&2){let e=s();v(g("fas ",e.faIconClass," mb-3"))}}function z(t,x){if(t&1&&m(0,"p",7),t&2){let e=s();f("innerHTML",e.message2,r)}}function h(t,x){if(t&1&&m(0,"p",7),t&2){let e=s();f("innerHTML",e.message3,r)}}function P(t,x){if(t&1){let e=B();o(0,"button",15),u("click",function(){y(e);let n=s();return T(n.closeModal())}),C(1),a()}if(t&2){let e=s();v(g("btn ",e.confirmButtonClass||"btn-primary")),i(),E(" ",e.confirmButtonLabel," ")}}var N=(()=>{class t{$activeModal=M(H);title;message;message2;message3;confirmButtonLabel;confirmButtonClass;faIconClass;dismissModal(){this.$activeModal.dismiss("Dismiss")}closeModal(){this.$activeModal.close()}static \u0275fac=function(l){return new(l||t)};static \u0275cmp=L({type:t,selectors:[["ng-component"]],inputs:{title:"title",message:"message",message2:"message2",message3:"message3",confirmButtonLabel:"confirmButtonLabel",confirmButtonClass:"confirmButtonClass",faIconClass:"faIconClass"},decls:20,vars:16,consts:[["role","dialog","aria-modal","true",1,"modal-content"],[1,"modal-header"],["id","confirm-modal-title",1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[2,"font-size","75px",3,"class"],[1,"mb-0","text-center",3,"innerHTML"],[1,"mt-2","mb-0","text-center",3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",3,"class"],[2,"font-size","75px"],["type","button","data-bs-dismiss","modal",3,"click"]],template:function(l,n){l&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),C(3),a(),o(4,"button",3),b(5,"translate"),u("click",function(){return n.dismissModal()}),a()(),o(6,"div",4),d(7,w,1,3,"i",5),m(8,"p",6),d(9,z,1,1,"p",7),d(10,h,1,1,"p",7),a(),o(11,"div",8)(12,"div",9)(13,"button",10),b(14,"translate"),u("click",function(){return n.dismissModal()}),C(15),b(16,"translate"),a()(),m(17,"div",11),o(18,"div",12),d(19,P,2,4,"button",13),a()()()),l&2&&(p("aria-labelledby","confirm-modal-title"),i(3),k(n.title),i(),p("aria-label",_(5,10,"form.button_close")),i(3),c(n.faIconClass?7:-1),i(),f("innerHTML",n.message,r),i(),c(n.message2?9:-1),i(),c(n.message3?10:-1),i(3),p("aria-label",_(14,12,"form.button_cancel")),i(2),E(" ",_(16,14,"form.button_cancel")," "),i(4),c(n.confirmButtonLabel?19:-1))},dependencies:[I],encapsulation:2})}return t})();export{N as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as me,c as _e}from"./chunk-GPMU3WMO.js";import"./chunk-3OSRGC5M.js";import{a as le}from"./chunk-T4IEJNVJ.js";import{a as ue}from"./chunk-HLNMCR4K.js";import{a as ge}from"./chunk-7CDYTG4I.js";import"./chunk-LUUAC57N.js";import{a as ce,b as de,c as pe}from"./chunk-Y67I4K2H.js";import{m as B,n as re,t as se}from"./chunk-BEI5QPKL.js";import"./chunk-UJEB6C35.js";import{a as J}from"./chunk-NP23WSXR.js";import{b as Y}from"./chunk-URTTNRYM.js";import{C as ae,c as Z,e as ee,f as te,i as ie,l as ne,m as oe}from"./chunk-QKEI7JJT.js";import{b as X}from"./chunk-RQG4TZOZ.js";import{D as K,E as S,J as Q}from"./chunk-KDXCBENV.js";import{Bb as D,Cb as P,Db as $,Dc as s,Eb as f,Ec as l,Fb as a,Fc as U,Gb as r,Hb as p,Ib as V,Jb as O,Kb as R,Qb as k,Ta as W,Wb as g,Ya as i,Yb as d,aa as b,ga as C,ha as x,hc as F,ic as j,jc as c,kc as m,lc as w,mb as M,n as H,qc as A,rc as T,sc as E,wc as z,xb as v,xc as q,yb as h,yc as G,zb as y}from"./chunk-JRQC3M7W.js";import{h as N}from"./chunk-B4AJQJMI.js";var be=(()=>{class t{$activeModal=b(B);dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["ng-component"]],decls:42,vars:30,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"ms-2"],[1,"mb-0"],[1,"ms-2","mt-2"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(n,o){n&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),c(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),g("click",function(){return o.dismissModal()}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"h5",7),c(12),s(13,"translate"),r(),a(14,"ul",8)(15,"li"),c(16),s(17,"translate"),r(),a(18,"li"),c(19),s(20,"translate"),r()(),a(21,"h5",9),c(22),s(23,"translate"),r(),a(24,"ul",8)(25,"li"),c(26),s(27,"translate"),r(),a(28,"li"),c(29),s(30,"translate"),r(),a(31,"li"),c(32),s(33,"translate"),r()(),p(34,"app-support-banner"),r(),a(35,"div",10),p(36,"div",11),a(37,"div",12)(38,"button",13),g("click",function(){return o.dismissModal()}),c(39),s(40,"translate"),r()(),p(41,"div",14),r()()()),n&2&&(i(4),m(l(5,10,"support.title")),i(2),v("aria-label",l(7,12,"form.button_close")),i(6),m(l(13,14,"menu.label_accessories")),i(4),m(l(17,16,"accessories.support.acc_1")),i(3),m(l(20,18,"accessories.support.acc_2")),i(3),m(l(23,20,"accessories.title_rooms")),i(4),m(l(27,22,"accessories.support.rooms_1")),i(3),m(l(30,24,"accessories.support.rooms_2")),i(3),m(l(33,26,"accessories.support.rooms_3")),i(7),w(" ",l(40,28,"form.button_close")," "))},dependencies:[ge,S],encapsulation:2})}return t})();var Ce=()=>({standalone:!0}),fe=(()=>{class t{$activeModal=b(B);roomName;dismissModal(){this.$activeModal.dismiss("Dismiss")}closeModal(e){this.$activeModal.close(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["ng-component"]],inputs:{roomName:"roomName"},decls:28,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-folder-plus","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["autocomplete","off","type","text","id","form-name","autofocus","",1,"form-control","custom-input",3,"ngModelChange","keyup.enter","ngModel","ngModelOptions"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"]],template:function(n,o){n&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),c(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),g("click",function(){return o.dismissModal()}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li",8)(13,"label",9),c(14),s(15,"translate"),r(),a(16,"div",10)(17,"input",11),E("ngModelChange",function(I){return T(o.roomName,I)||(o.roomName=I),I}),g("keyup.enter",function(){return o.closeModal(o.roomName)}),r()()()()(),a(18,"div",12)(19,"div",13)(20,"button",14),g("click",function(){return o.dismissModal()}),c(21),s(22,"translate"),r()(),p(23,"div",15),a(24,"div",16)(25,"button",17),g("click",function(){return o.closeModal(o.roomName)}),c(26),s(27,"translate"),r()()()()()),n&2&&(i(4),m(l(5,8,"accessories.button_add_room")),i(2),v("aria-label",l(7,10,"form.button_close")),i(8),m(l(15,12,"accessories.room_name")),i(3),A("ngModel",o.roomName),f("ngModelOptions",z(18,Ce)),i(4),w(" ",l(22,14,"form.button_close")," "),i(4),f("disabled",!o.roomName),i(),w(" ",l(27,16,"form.button_save")," "))},dependencies:[ae,oe,Z,ee,te,ne,ie,S],encapsulation:2})}return t})();var ve=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["app-drag-here-placeholder"]],decls:5,vars:3,consts:[[1,"accessory-box"],[1,"fas","fa-arrow-alt-circle-down","accessory-icon"],[1,"accessory-label"]],template:function(n,o){n&1&&(V(0,"div",0),R(1,"i",1),V(2,"div",2),c(3),s(4,"translate"),O()()),n&2&&(i(3),m(l(4,1,"accessories.control.drag_here")))},dependencies:[S],styles:[".accessory-box[_ngcontent-%COMP%]{opacity:.2}"]})}return t})();var xe=(t,u)=>({"fa-eye":t,"fa-eye-slash":u}),he=t=>({link:t});function ye(t,u){if(t&1){let e=k();a(0,"button",8),s(1,"translate"),s(2,"translate"),g("click",function(){C(e);let o=d(2);return x(o.addRoom())}),p(3,"i",9),r(),a(4,"button",8),s(5,"translate"),s(6,"translate"),s(7,"translate"),s(8,"translate"),g("click",function(){C(e);let o=d(2);return x(o.hideHidden=!o.hideHidden)}),p(9,"i",10),r(),a(10,"div",11)(11,"button",12),s(12,"translate"),s(13,"translate"),g("click",function(){C(e);let o=d(2);return x(o.toggleLayoutLock())}),p(14,"i",13),r(),a(15,"button",12),s(16,"translate"),s(17,"translate"),g("click",function(){C(e);let o=d(2);return x(o.toggleLayoutLock())}),p(18,"i",14),r()()}if(t&2){let e=d(2);f("hidden",e.isMobile)("openDelay",150)("ngbTooltip",l(1,18,"accessories.button_add_room")),v("aria-label",l(2,20,"accessories.button_add_room")),i(4),f("hidden",e.isMobile)("openDelay",150)("ngbTooltip",e.hideHidden?l(5,22,"accessories.button_hidden_show"):l(6,24,"accessories.button_hidden_hide")),v("aria-label",e.hideHidden?l(7,26,"accessories.button_hidden_show"):l(8,28,"accessories.button_hidden_hide")),i(5),j(G(38,xe,!e.hideHidden,e.hideHidden)),i(2),f("disabled",!e.isMobile)("openDelay",150)("ngbTooltip",l(12,30,"form.button_unlock")),v("aria-label",l(13,32,"form.button_unlock")),i(4),f("disabled",e.isMobile)("openDelay",150)("ngbTooltip",l(16,34,"form.button_lock")),v("aria-label",l(17,36,"form.button_lock"))}}function Me(t,u){t&1&&p(0,"app-spinner")}function Se(t,u){if(t&1&&(a(0,"div",0)(1,"div",21)(2,"h5",22),c(3),s(4,"translate"),r()()()),t&2){let e=d().$implicit,n=d(4);i(2),F("cursor-move",!n.isMobile),i(),w(" ",e.name==="Default Room"?l(4,3,"accessories.control.default_room"):e.name," ")}}function we(t,u){if(t&1&&(a(0,"div",25),p(1,"app-accessory-tile",26),r()),t&2){let e=d().$implicit;i(),f("service",e)}}function ke(t,u){if(t&1&&h(0,we,2,1,"div",25),t&2){let e=u.$implicit,n=d(6);y(!n.hideHidden||!e.hidden?0:-1)}}function Ae(t,u){if(t&1){let e=k();a(0,"div",23),E("dragulaModelChange",function(o){C(e);let _=d().$implicit;return T(_.services,o)||(_.services=o),x(o)}),P(1,ke,1,1,null,null,D),p(3,"div",24)(4,"div",24)(5,"div",24)(6,"div",24)(7,"div",24)(8,"div",24)(9,"div",24)(10,"div",24)(11,"div",24)(12,"div",24),r()}if(t&2){let e=d().$implicit,n=d(4);F("justify-content-between",n.isMobile),f("dragula","services-bag"),A("dragulaModel",e.services),i(),$(e.services)}}function Te(t,u){if(t&1){let e=k();a(0,"div",27),E("dragulaModelChange",function(o){C(e);let _=d().$implicit;return T(_.services,o)||(_.services=o),x(o)}),p(1,"app-drag-here-placeholder",28),r()}if(t&2){let e=d().$implicit;f("dragula","services-bag"),A("dragulaModel",e.services)}}function Ee(t,u){if(t&1&&(a(0,"div"),h(1,Se,5,5,"div",0),a(2,"div",18),h(3,Ae,13,4,"div",19),h(4,Te,2,2,"div",20),r()()),t&2){let e=u.$implicit,n=d(4);i(),y(!n.isMobile||e.services.length?1:-1),i(2),y(e.services.length?3:-1),i(),y(!e.services.length&&!n.isMobile?4:-1)}}function Be(t,u){if(t&1){let e=k();a(0,"div",17),E("dragulaModelChange",function(o){C(e);let _=d(3);return T(_.$accessories.rooms,o)||(_.$accessories.rooms=o),x(o)}),P(1,Ee,5,3,"div",null,D),r()}if(t&2){let e=d(3);f("dragula","rooms-bag"),A("dragulaModel",e.$accessories.rooms),i(),$(e.$accessories.rooms)}}function Ie(t,u){t&1&&(a(0,"div",16)(1,"div",29)(2,"div",30),p(3,"i",31),r(),a(4,"h5",32),c(5),s(6,"translate"),r(),a(7,"p",33),c(8),s(9,"translate"),r(),a(10,"p",34),c(11),s(12,"translate"),r()()()),t&2&&(i(5),m(l(6,3,"accessories.no_plugins.title")),i(3),m(l(9,5,"accessories.no_plugins.message_1")),i(3),m(l(12,7,"accessories.no_plugins.message_2")))}function De(t,u){if(t&1&&h(0,Be,3,2,"div",15)(1,Ie,13,9,"div",16),t&2){let e=d(2);y(e.hasPlugins?0:1)}}function Pe(t,u){if(t&1){let e=k();a(0,"div",1)(1,"div",2)(2,"h3",3),c(3),s(4,"translate"),r()(),a(5,"div",4)(6,"button",5),s(7,"translate"),g("click",function(){C(e);let o=d();return x(o.openSupport())}),p(8,"i",6),r()(),a(9,"div",7),h(10,ye,19,41),a(11,"button",5),s(12,"translate"),g("click",function(){C(e);let o=d();return x(o.openSupport())}),p(13,"i",6),r()()(),h(14,Me,1,0,"app-spinner")(15,De,2,1)}if(t&2){let e=d();i(3),m(l(4,5,"menu.label_accessories")),i(3),v("aria-label",l(7,7,"support.title")),i(4),y(e.hasPlugins?10:-1),i(),v("aria-label",l(12,9,"support.title")),i(3),y(e.loading?14:15)}}function $e(t,u){t&1&&(a(0,"p",40),c(1),s(2,"translate"),r()),t&2&&(i(),m(l(2,1,"accessories.settings_link")))}function Ve(t,u){if(t&1&&(a(0,"div",0)(1,"div",35)(2,"h3",36),c(3),s(4,"translate"),r()(),a(5,"div",16)(6,"div",37)(7,"div",30),p(8,"i",38),r(),a(9,"h5",32),c(10),s(11,"translate"),r(),p(12,"p",39),s(13,"translate"),h(14,$e,3,3,"p",40),r()()()),t&2){let e=d();i(3),m(l(4,4,"menu.label_accessories")),i(7),m(l(11,6,"accessories.control_disabled")),i(2),f("innerHTML",U(13,8,"accessories.message_must_use_insecure_mode",q(11,he,e.linkInsecure)),W),i(2),y(e.isAdmin?14:-1)}}var bt=(()=>{class t{$accessories=b(me);$api=b(Q);$auth=b(Y);dragulaService=b(ce);$modal=b(re);$settings=b(X);$md=b(ue);$translate=b(K);isAdmin=this.$auth.user.admin;enableAccessories=this.$settings.env.enableAccessories;isMobile=!1;hideHidden=!0;linkInsecure='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Enabling-Accessory-Control" target="_blank"><i class="fa fa-external-link-alt primary-text"></i></a>';hasPlugins=!1;loading=!0;constructor(){let e=this.dragulaService;this.isMobile=this.$md.detect.mobile(),e.createGroup("rooms-bag",{moves:(n,o,_)=>!this.isMobile&&_.classList.contains("drag-handle")}),e.createGroup("services-bag",{moves:n=>!this.isMobile&&!n.classList.contains("no-drag")}),e.drop().pipe(J()).subscribe(()=>{setTimeout(()=>{this.$accessories.saveLayout()})}),this.isMobile=!0}ngOnInit(){let e=this.$translate.instant("menu.label_accessories");this.$settings.setPageTitle(e),this.$accessories.start(),this.checkForPlugins()}addRoom(){this.$modal.open(fe,{size:"lg",backdrop:"static"}).result.then(e=>{!e||!e.length||this.$accessories.rooms.find(n=>n.name===e)||(this.$accessories.rooms.push({name:e,services:[]}),this.isMobile&&this.toggleLayoutLock())}).catch(()=>{})}toggleLayoutLock(){this.isMobile=!this.isMobile,this.isMobile?document.querySelectorAll(".services-bag").forEach(n=>{for(let o=0;o<10;o+=1){let _=document.createElement("div");_.className="accessory-box invisible py-0 my-0",_.style.height="0",n.appendChild(_)}}):document.querySelectorAll(".invisible").forEach(n=>n.remove())}openSupport(){this.$modal.open(be,{size:"lg",backdrop:"static"})}ngOnDestroy(){this.$accessories.stop(),this.dragulaService.destroy("rooms-bag"),this.dragulaService.destroy("services-bag")}checkForPlugins(){return N(this,null,function*(){try{let e=yield H(this.$api.get("/plugins"));this.hasPlugins=e.length>1}catch(e){console.error(e),this.hasPlugins=!0}finally{this.loading=!1}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["app-accessories"]],decls:2,vars:1,consts:[[1,"row"],[1,"row","mb-3"],[1,"col-9","col-sm-6"],[1,"primary-text","m-0"],[1,"col-3","col-sm-6","text-end","d-inline-block","d-sm-none"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-question-circle-o"],[1,"col-3","col-sm-6","text-end","d-none","d-sm-inline-block"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","hidden","openDelay","ngbTooltip"],[1,"fas","fa-folder-plus"],[1,"fas"],["role","group",1,"btn-group","me-2"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-unlock"],[1,"fas","fa-lock"],[3,"dragula","dragulaModel"],[1,"col-12","text-center"],[3,"dragulaModelChange","dragula","dragulaModel"],[1,"row","mb-4"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"justify-content-between","dragula","dragulaModel"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragula","dragulaModel"],[1,"col-md-12"],[1,"primary-text","drag-handle","room-title","m-0","mb-1","mb-sm-0"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"dragulaModelChange","dragula","dragulaModel"],[1,"accessory-box","invisible","py-0","my-0",2,"height","0"],[1,"accessory-item","accessory-tab"],[3,"service"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragulaModelChange","dragula","dragulaModel"],[1,"no-drag"],["role","alert",1,"alert","alert-warning","p-5"],[1,"text-center","mb-3"],[1,"fas","fa-plug","primary-text",2,"font-size","75px"],[1,"mb-3","mt-0"],[1,"mb-0","small"],[1,"mb-0","small","mt-2"],[1,"col-12"],[1,"primary-text","m-0","mb-3"],["role","alert",1,"alert","alert-warning","p-4"],[1,"fas","fa-lightbulb","primary-text",2,"font-size","75px"],[1,"mb-0","small",3,"innerHTML"],[1,"mt-2","mb-0","small"]],template:function(n,o){n&1&&h(0,Pe,16,11)(1,Ve,15,13,"div",0),n&2&&y(o.enableAccessories?0:1)},dependencies:[se,pe,de,_e,ve,le,S],styles:[".room-title[_ngcontent-%COMP%]{margin-left:10px}@media(max-width:575px){.room-title[_ngcontent-%COMP%]{margin-left:7px}}.services-bag[_ngcontent-%COMP%]{min-height:170px}@media(max-width:575px){.services-bag[_ngcontent-%COMP%]{min-height:initial}}.cursor-move[_ngcontent-%COMP%]{cursor:move}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return t})();export{bt as AccessoriesComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function ro(){this.__data__=[],this.size=0}var Kr=ro;function to(r,t){return r===t||r!==r&&t!==t}var w=to;function eo(r,t){for(var e=r.length;e--;)if(w(r[e][0],t))return e;return-1}var D=eo;var oo=Array.prototype,ao=oo.splice;function fo(r){var t=this.__data__,e=D(t,r);if(e<0)return!1;var o=t.length-1;return e==o?t.pop():ao.call(t,e,1),--this.size,!0}var qr=fo;function no(r){var t=this.__data__,e=D(t,r);return e<0?void 0:t[e][1]}var Hr=no;function io(r){return D(this.__data__,r)>-1}var zr=io;function po(r,t){var e=this.__data__,o=D(e,r);return o<0?(++this.size,e.push([r,t])):e[o][1]=t,this}var $r=po;function q(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}q.prototype.clear=Kr;q.prototype.delete=qr;q.prototype.get=Hr;q.prototype.has=zr;q.prototype.set=$r;var R=q;function so(){this.__data__=new R,this.size=0}var Vr=so;function uo(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var Yr=uo;function mo(r){return this.__data__.get(r)}var Jr=mo;function lo(r){return this.__data__.has(r)}var Xr=lo;var xo=typeof global=="object"&&global&&global.Object===Object&&global,lr=xo;var co=typeof self=="object"&&self&&self.Object===Object&&self,go=lr||co||Function("return this")(),c=go;var yo=c.Symbol,A=yo;var Zr=Object.prototype,bo=Zr.hasOwnProperty,ho=Zr.toString,ar=A?A.toStringTag:void 0;function vo(r){var t=bo.call(r,ar),e=r[ar];try{r[ar]=void 0;var o=!0}catch{}var f=ho.call(r);return o&&(t?r[ar]=e:delete r[ar]),f}var Qr=vo;var To=Object.prototype,Ao=To.toString;function _o(r){return Ao.call(r)}var kr=_o;var Oo="[object Null]",So="[object Undefined]",rt=A?A.toStringTag:void 0;function jo(r){return r==null?r===void 0?So:Oo:rt&&rt in Object(r)?Qr(r):kr(r)}var j=jo;function wo(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var v=wo;var Io="[object AsyncFunction]",Po="[object Function]",Co="[object GeneratorFunction]",Eo="[object Proxy]";function Lo(r){if(!v(r))return!1;var t=j(r);return t==Po||t==Co||t==Io||t==Eo}var H=Lo;var Mo=c["__core-js_shared__"],dr=Mo;var tt=(function(){var r=/[^.]+$/.exec(dr&&dr.keys&&dr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Bo(r){return!!tt&&tt in r}var et=Bo;var Do=Function.prototype,Ro=Do.toString;function Fo(r){if(r!=null){try{return Ro.call(r)}catch{}try{return r+""}catch{}}return""}var C=Fo;var No=/[\\^$.*+?()[\]{}|]/g,Go=/^\[object .+?Constructor\]$/,Uo=Function.prototype,Wo=Object.prototype,Ko=Uo.toString,qo=Wo.hasOwnProperty,Ho=RegExp("^"+Ko.call(qo).replace(No,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zo(r){if(!v(r)||et(r))return!1;var t=H(r)?Ho:Go;return t.test(C(r))}var ot=zo;function $o(r,t){return r?.[t]}var at=$o;function Vo(r,t){var e=at(r,t);return ot(e)?e:void 0}var O=Vo;var Yo=O(c,"Map"),F=Yo;var Jo=O(Object,"create"),E=Jo;function Xo(){this.__data__=E?E(null):{},this.size=0}var ft=Xo;function Zo(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var nt=Zo;var Qo="__lodash_hash_undefined__",ko=Object.prototype,ra=ko.hasOwnProperty;function ta(r){var t=this.__data__;if(E){var e=t[r];return e===Qo?void 0:e}return ra.call(t,r)?t[r]:void 0}var it=ta;var ea=Object.prototype,oa=ea.hasOwnProperty;function aa(r){var t=this.__data__;return E?t[r]!==void 0:oa.call(t,r)}var pt=aa;var fa="__lodash_hash_undefined__";function na(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=E&&t===void 0?fa:t,this}var st=na;function z(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}z.prototype.clear=ft;z.prototype.delete=nt;z.prototype.get=it;z.prototype.has=pt;z.prototype.set=st;var Fr=z;function ia(){this.size=0,this.__data__={hash:new Fr,map:new(F||R),string:new Fr}}var ut=ia;function pa(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var mt=pa;function sa(r,t){var e=r.__data__;return mt(t)?e[typeof t=="string"?"string":"hash"]:e.map}var N=sa;function ua(r){var t=N(this,r).delete(r);return this.size-=t?1:0,t}var lt=ua;function ma(r){return N(this,r).get(r)}var dt=ma;function la(r){return N(this,r).has(r)}var xt=la;function da(r,t){var e=N(this,r),o=e.size;return e.set(r,t),this.size+=e.size==o?0:1,this}var ct=da;function $(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}$.prototype.clear=ut;$.prototype.delete=lt;$.prototype.get=dt;$.prototype.has=xt;$.prototype.set=ct;var xr=$;var xa=200;function ca(r,t){var e=this.__data__;if(e instanceof R){var o=e.__data__;if(!F||o.length<xa-1)return o.push([r,t]),this.size=++e.size,this;e=this.__data__=new xr(o)}return e.set(r,t),this.size=e.size,this}var gt=ca;function V(r){var t=this.__data__=new R(r);this.size=t.size}V.prototype.clear=Vr;V.prototype.delete=Yr;V.prototype.get=Jr;V.prototype.has=Xr;V.prototype.set=gt;var G=V;var ga="__lodash_hash_undefined__";function ya(r){return this.__data__.set(r,ga),this}var yt=ya;function ba(r){return this.__data__.has(r)}var bt=ba;function cr(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new xr;++t<e;)this.add(r[t])}cr.prototype.add=cr.prototype.push=yt;cr.prototype.has=bt;var ht=cr;function ha(r,t){for(var e=-1,o=r==null?0:r.length;++e<o;)if(t(r[e],e,r))return!0;return!1}var vt=ha;function va(r,t){return r.has(t)}var Tt=va;var Ta=1,Aa=2;function _a(r,t,e,o,f,a){var n=e&Ta,i=r.length,p=t.length;if(i!=p&&!(n&&p>i))return!1;var s=a.get(r),u=a.get(t);if(s&&u)return s==t&&u==r;var l=-1,x=!0,h=e&Aa?new ht:void 0;for(a.set(r,t),a.set(t,r);++l<i;){var y=r[l],_=t[l];if(o)var b=n?o(_,y,l,t,r,a):o(y,_,l,r,t,a);if(b!==void 0){if(b)continue;x=!1;break}if(h){if(!vt(t,function(T,W){if(!Tt(h,W)&&(y===T||f(y,T,e,o,a)))return h.push(W)})){x=!1;break}}else if(!(y===_||f(y,_,e,o,a))){x=!1;break}}return a.delete(r),a.delete(t),x}var gr=_a;var Oa=c.Uint8Array,Y=Oa;function Sa(r){var t=-1,e=Array(r.size);return r.forEach(function(o,f){e[++t]=[f,o]}),e}var At=Sa;function ja(r){var t=-1,e=Array(r.size);return r.forEach(function(o){e[++t]=o}),e}var _t=ja;var wa=1,Ia=2,Pa="[object Boolean]",Ca="[object Date]",Ea="[object Error]",La="[object Map]",Ma="[object Number]",Ba="[object RegExp]",Da="[object Set]",Ra="[object String]",Fa="[object Symbol]",Na="[object ArrayBuffer]",Ga="[object DataView]",Ot=A?A.prototype:void 0,Nr=Ot?Ot.valueOf:void 0;function Ua(r,t,e,o,f,a,n){switch(e){case Ga:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Na:return!(r.byteLength!=t.byteLength||!a(new Y(r),new Y(t)));case Pa:case Ca:case Ma:return w(+r,+t);case Ea:return r.name==t.name&&r.message==t.message;case Ba:case Ra:return r==t+"";case La:var i=At;case Da:var p=o&wa;if(i||(i=_t),r.size!=t.size&&!p)return!1;var s=n.get(r);if(s)return s==t;o|=Ia,n.set(r,t);var u=gr(i(r),i(t),o,f,a,n);return n.delete(r),u;case Fa:if(Nr)return Nr.call(r)==Nr.call(t)}return!1}var St=Ua;function Wa(r,t){for(var e=-1,o=t.length,f=r.length;++e<o;)r[f+e]=t[e];return r}var yr=Wa;var Ka=Array.isArray,S=Ka;function qa(r,t,e){var o=t(r);return S(r)?o:yr(o,e(r))}var br=qa;function Ha(r,t){for(var e=-1,o=r==null?0:r.length,f=0,a=[];++e<o;){var n=r[e];t(n,e,r)&&(a[f++]=n)}return a}var jt=Ha;function za(){return[]}var hr=za;var $a=Object.prototype,Va=$a.propertyIsEnumerable,wt=Object.getOwnPropertySymbols,Ya=wt?function(r){return r==null?[]:(r=Object(r),jt(wt(r),function(t){return Va.call(r,t)}))}:hr,J=Ya;function Ja(r,t){for(var e=-1,o=Array(r);++e<r;)o[e]=t(e);return o}var It=Ja;function Xa(r){return r!=null&&typeof r=="object"}var g=Xa;var Za="[object Arguments]";function Qa(r){return g(r)&&j(r)==Za}var Gr=Qa;var Pt=Object.prototype,ka=Pt.hasOwnProperty,rf=Pt.propertyIsEnumerable,tf=Gr((function(){return arguments})())?Gr:function(r){return g(r)&&ka.call(r,"callee")&&!rf.call(r,"callee")},fr=tf;function ef(){return!1}var Ct=ef;var Mt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Et=Mt&&typeof module=="object"&&module&&!module.nodeType&&module,of=Et&&Et.exports===Mt,Lt=of?c.Buffer:void 0,af=Lt?Lt.isBuffer:void 0,ff=af||Ct,L=ff;var nf=9007199254740991,pf=/^(?:0|[1-9]\d*)$/;function sf(r,t){var e=typeof r;return t=t??nf,!!t&&(e=="number"||e!="symbol"&&pf.test(r))&&r>-1&&r%1==0&&r<t}var vr=sf;var uf=9007199254740991;function mf(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=uf}var Tr=mf;var lf="[object Arguments]",df="[object Array]",xf="[object Boolean]",cf="[object Date]",gf="[object Error]",yf="[object Function]",bf="[object Map]",hf="[object Number]",vf="[object Object]",Tf="[object RegExp]",Af="[object Set]",_f="[object String]",Of="[object WeakMap]",Sf="[object ArrayBuffer]",jf="[object DataView]",wf="[object Float32Array]",If="[object Float64Array]",Pf="[object Int8Array]",Cf="[object Int16Array]",Ef="[object Int32Array]",Lf="[object Uint8Array]",Mf="[object Uint8ClampedArray]",Bf="[object Uint16Array]",Df="[object Uint32Array]",d={};d[wf]=d[If]=d[Pf]=d[Cf]=d[Ef]=d[Lf]=d[Mf]=d[Bf]=d[Df]=!0;d[lf]=d[df]=d[Sf]=d[xf]=d[jf]=d[cf]=d[gf]=d[yf]=d[bf]=d[hf]=d[vf]=d[Tf]=d[Af]=d[_f]=d[Of]=!1;function Rf(r){return g(r)&&Tr(r.length)&&!!d[j(r)]}var Bt=Rf;function Ff(r){return function(t){return r(t)}}var X=Ff;var Dt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nr=Dt&&typeof module=="object"&&module&&!module.nodeType&&module,Nf=nr&&nr.exports===Dt,Ur=Nf&&lr.process,Gf=(function(){try{var r=nr&&nr.require&&nr.require("util").types;return r||Ur&&Ur.binding&&Ur.binding("util")}catch{}})(),M=Gf;var Rt=M&&M.isTypedArray,Uf=Rt?X(Rt):Bt,Z=Uf;var Wf=Object.prototype,Kf=Wf.hasOwnProperty;function qf(r,t){var e=S(r),o=!e&&fr(r),f=!e&&!o&&L(r),a=!e&&!o&&!f&&Z(r),n=e||o||f||a,i=n?It(r.length,String):[],p=i.length;for(var s in r)(t||Kf.call(r,s))&&!(n&&(s=="length"||f&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||vr(s,p)))&&i.push(s);return i}var Ar=qf;var Hf=Object.prototype;function zf(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Hf;return r===e}var Q=zf;function $f(r,t){return function(e){return r(t(e))}}var _r=$f;var Vf=_r(Object.keys,Object),Ft=Vf;var Yf=Object.prototype,Jf=Yf.hasOwnProperty;function Xf(r){if(!Q(r))return Ft(r);var t=[];for(var e in Object(r))Jf.call(r,e)&&e!="constructor"&&t.push(e);return t}var Nt=Xf;function Zf(r){return r!=null&&Tr(r.length)&&!H(r)}var U=Zf;function Qf(r){return U(r)?Ar(r):Nt(r)}var k=Qf;function kf(r){return br(r,k,J)}var ir=kf;var rn=1,tn=Object.prototype,en=tn.hasOwnProperty;function on(r,t,e,o,f,a){var n=e&rn,i=ir(r),p=i.length,s=ir(t),u=s.length;if(p!=u&&!n)return!1;for(var l=p;l--;){var x=i[l];if(!(n?x in t:en.call(t,x)))return!1}var h=a.get(r),y=a.get(t);if(h&&y)return h==t&&y==r;var _=!0;a.set(r,t),a.set(t,r);for(var b=n;++l<p;){x=i[l];var T=r[x],W=t[x];if(o)var Wr=n?o(W,T,x,t,r,a):o(T,W,x,r,t,a);if(!(Wr===void 0?T===W||f(T,W,e,o,a):Wr)){_=!1;break}b||(b=x=="constructor")}if(_&&!b){var ur=r.constructor,mr=t.constructor;ur!=mr&&"constructor"in r&&"constructor"in t&&!(typeof ur=="function"&&ur instanceof ur&&typeof mr=="function"&&mr instanceof mr)&&(_=!1)}return a.delete(r),a.delete(t),_}var Gt=on;var an=O(c,"DataView"),Or=an;var fn=O(c,"Promise"),Sr=fn;var nn=O(c,"Set"),jr=nn;var pn=O(c,"WeakMap"),wr=pn;var Ut="[object Map]",sn="[object Object]",Wt="[object Promise]",Kt="[object Set]",qt="[object WeakMap]",Ht="[object DataView]",un=C(Or),mn=C(F),ln=C(Sr),dn=C(jr),xn=C(wr),K=j;(Or&&K(new Or(new ArrayBuffer(1)))!=Ht||F&&K(new F)!=Ut||Sr&&K(Sr.resolve())!=Wt||jr&&K(new jr)!=Kt||wr&&K(new wr)!=qt)&&(K=function(r){var t=j(r),e=t==sn?r.constructor:void 0,o=e?C(e):"";if(o)switch(o){case un:return Ht;case mn:return Ut;case ln:return Wt;case dn:return Kt;case xn:return qt}return t});var B=K;var cn=1,zt="[object Arguments]",$t="[object Array]",Ir="[object Object]",gn=Object.prototype,Vt=gn.hasOwnProperty;function yn(r,t,e,o,f,a){var n=S(r),i=S(t),p=n?$t:B(r),s=i?$t:B(t);p=p==zt?Ir:p,s=s==zt?Ir:s;var u=p==Ir,l=s==Ir,x=p==s;if(x&&L(r)){if(!L(t))return!1;n=!0,u=!1}if(x&&!u)return a||(a=new G),n||Z(r)?gr(r,t,e,o,f,a):St(r,t,p,e,o,f,a);if(!(e&cn)){var h=u&&Vt.call(r,"__wrapped__"),y=l&&Vt.call(t,"__wrapped__");if(h||y){var _=h?r.value():r,b=y?t.value():t;return a||(a=new G),f(_,b,e,o,a)}}return x?(a||(a=new G),Gt(r,t,e,o,f,a)):!1}var Yt=yn;function Jt(r,t,e,o,f){return r===t?!0:r==null||t==null||!g(r)&&!g(t)?r!==r&&t!==t:Yt(r,t,e,o,Jt,f)}var Xt=Jt;function bn(r,t){return Xt(r,t)}var hn=bn;var vn="[object Symbol]";function Tn(r){return typeof r=="symbol"||g(r)&&j(r)==vn}var Zt=Tn;function An(r,t){for(var e=-1,o=r==null?0:r.length,f=Array(o);++e<o;)f[e]=t(r[e],e,r);return f}var Qt=An;var _n=1/0,kt=A?A.prototype:void 0,re=kt?kt.toString:void 0;function te(r){if(typeof r=="string")return r;if(S(r))return Qt(r,te)+"";if(Zt(r))return re?re.call(r):"";var t=r+"";return t=="0"&&1/r==-_n?"-0":t}var ee=te;function On(r){return r}var Pr=On;var oe=Object.create,Sn=(function(){function r(){}return function(t){if(!v(t))return{};if(oe)return oe(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})(),ae=Sn;function jn(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}var fe=jn;function wn(r,t){var e=-1,o=r.length;for(t||(t=Array(o));++e<o;)t[e]=r[e];return t}var Cr=wn;var In=800,Pn=16,Cn=Date.now;function En(r){var t=0,e=0;return function(){var o=Cn(),f=Pn-(o-e);if(e=o,f>0){if(++t>=In)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var ne=En;function Ln(r){return function(){return r}}var ie=Ln;var Mn=(function(){try{var r=O(Object,"defineProperty");return r({},"",{}),r}catch{}})(),rr=Mn;var Bn=rr?function(r,t){return rr(r,"toString",{configurable:!0,enumerable:!1,value:ie(t),writable:!0})}:Pr,pe=Bn;var Dn=ne(pe),se=Dn;function Rn(r,t){for(var e=-1,o=r==null?0:r.length;++e<o&&t(r[e],e,r)!==!1;);return r}var ue=Rn;function Fn(r,t,e){t=="__proto__"&&rr?rr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}var tr=Fn;var Nn=Object.prototype,Gn=Nn.hasOwnProperty;function Un(r,t,e){var o=r[t];(!(Gn.call(r,t)&&w(o,e))||e===void 0&&!(t in r))&&tr(r,t,e)}var Er=Un;function Wn(r,t,e,o){var f=!e;e||(e={});for(var a=-1,n=t.length;++a<n;){var i=t[a],p=o?o(e[i],r[i],i,e,r):void 0;p===void 0&&(p=r[i]),f?tr(e,i,p):Er(e,i,p)}return e}var I=Wn;var me=Math.max;function Kn(r,t,e){return t=me(t===void 0?r.length-1:t,0),function(){for(var o=arguments,f=-1,a=me(o.length-t,0),n=Array(a);++f<a;)n[f]=o[t+f];f=-1;for(var i=Array(t+1);++f<t;)i[f]=o[f];return i[t]=e(n),fe(r,this,i)}}var le=Kn;function qn(r,t){return se(le(r,t,Pr),r+"")}var de=qn;function Hn(r,t,e){if(!v(e))return!1;var o=typeof t;return(o=="number"?U(e)&&vr(t,e.length):o=="string"&&t in e)?w(e[t],r):!1}var xe=Hn;function zn(r){return de(function(t,e){var o=-1,f=e.length,a=f>1?e[f-1]:void 0,n=f>2?e[2]:void 0;for(a=r.length>3&&typeof a=="function"?(f--,a):void 0,n&&xe(e[0],e[1],n)&&(a=f<3?void 0:a,f=1),t=Object(t);++o<f;){var i=e[o];i&&r(t,i,o,a)}return t})}var ce=zn;function $n(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var ge=$n;var Vn=Object.prototype,Yn=Vn.hasOwnProperty;function Jn(r){if(!v(r))return ge(r);var t=Q(r),e=[];for(var o in r)o=="constructor"&&(t||!Yn.call(r,o))||e.push(o);return e}var ye=Jn;function Xn(r){return U(r)?Ar(r,!0):ye(r)}var P=Xn;function Zn(r){return r==null?"":ee(r)}var be=Zn;var Qn=_r(Object.getPrototypeOf,Object),er=Qn;var kn="[object Object]",ri=Function.prototype,ti=Object.prototype,he=ri.toString,ei=ti.hasOwnProperty,oi=he.call(Object);function ai(r){if(!g(r)||j(r)!=kn)return!1;var t=er(r);if(t===null)return!0;var e=ei.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&he.call(e)==oi}var ve=ai;function fi(r,t){return r&&I(t,k(t),r)}var Te=fi;function ni(r,t){return r&&I(t,P(t),r)}var Ae=ni;var je=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_e=je&&typeof module=="object"&&module&&!module.nodeType&&module,ii=_e&&_e.exports===je,Oe=ii?c.Buffer:void 0,Se=Oe?Oe.allocUnsafe:void 0;function pi(r,t){if(t)return r.slice();var e=r.length,o=Se?Se(e):new r.constructor(e);return r.copy(o),o}var Lr=pi;function si(r,t){return I(r,J(r),t)}var we=si;var ui=Object.getOwnPropertySymbols,mi=ui?function(r){for(var t=[];r;)yr(t,J(r)),r=er(r);return t}:hr,Mr=mi;function li(r,t){return I(r,Mr(r),t)}var Ie=li;function di(r){return br(r,P,Mr)}var Pe=di;var xi=Object.prototype,ci=xi.hasOwnProperty;function gi(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&ci.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var Ce=gi;function yi(r){var t=new r.constructor(r.byteLength);return new Y(t).set(new Y(r)),t}var or=yi;function bi(r,t){var e=t?or(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}var Ee=bi;var hi=/\w*$/;function vi(r){var t=new r.constructor(r.source,hi.exec(r));return t.lastIndex=r.lastIndex,t}var Le=vi;var Me=A?A.prototype:void 0,Be=Me?Me.valueOf:void 0;function Ti(r){return Be?Object(Be.call(r)):{}}var De=Ti;function Ai(r,t){var e=t?or(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var Br=Ai;var _i="[object Boolean]",Oi="[object Date]",Si="[object Map]",ji="[object Number]",wi="[object RegExp]",Ii="[object Set]",Pi="[object String]",Ci="[object Symbol]",Ei="[object ArrayBuffer]",Li="[object DataView]",Mi="[object Float32Array]",Bi="[object Float64Array]",Di="[object Int8Array]",Ri="[object Int16Array]",Fi="[object Int32Array]",Ni="[object Uint8Array]",Gi="[object Uint8ClampedArray]",Ui="[object Uint16Array]",Wi="[object Uint32Array]";function Ki(r,t,e){var o=r.constructor;switch(t){case Ei:return or(r);case _i:case Oi:return new o(+r);case Li:return Ee(r,e);case Mi:case Bi:case Di:case Ri:case Fi:case Ni:case Gi:case Ui:case Wi:return Br(r,e);case Si:return new o;case ji:case Pi:return new o(r);case wi:return Le(r);case Ii:return new o;case Ci:return De(r)}}var Re=Ki;function qi(r){return typeof r.constructor=="function"&&!Q(r)?ae(er(r)):{}}var Dr=qi;var Hi="[object Map]";function zi(r){return g(r)&&B(r)==Hi}var Fe=zi;var Ne=M&&M.isMap,$i=Ne?X(Ne):Fe,Ge=$i;var Vi="[object Set]";function Yi(r){return g(r)&&B(r)==Vi}var Ue=Yi;var We=M&&M.isSet,Ji=We?X(We):Ue,Ke=Ji;var Xi=1,Zi=2,Qi=4,qe="[object Arguments]",ki="[object Array]",rp="[object Boolean]",tp="[object Date]",ep="[object Error]",He="[object Function]",op="[object GeneratorFunction]",ap="[object Map]",fp="[object Number]",ze="[object Object]",np="[object RegExp]",ip="[object Set]",pp="[object String]",sp="[object Symbol]",up="[object WeakMap]",mp="[object ArrayBuffer]",lp="[object DataView]",dp="[object Float32Array]",xp="[object Float64Array]",cp="[object Int8Array]",gp="[object Int16Array]",yp="[object Int32Array]",bp="[object Uint8Array]",hp="[object Uint8ClampedArray]",vp="[object Uint16Array]",Tp="[object Uint32Array]",m={};m[qe]=m[ki]=m[mp]=m[lp]=m[rp]=m[tp]=m[dp]=m[xp]=m[cp]=m[gp]=m[yp]=m[ap]=m[fp]=m[ze]=m[np]=m[ip]=m[pp]=m[sp]=m[bp]=m[hp]=m[vp]=m[Tp]=!0;m[ep]=m[He]=m[up]=!1;function Rr(r,t,e,o,f,a){var n,i=t&Xi,p=t&Zi,s=t&Qi;if(e&&(n=f?e(r,o,f,a):e(r)),n!==void 0)return n;if(!v(r))return r;var u=S(r);if(u){if(n=Ce(r),!i)return Cr(r,n)}else{var l=B(r),x=l==He||l==op;if(L(r))return Lr(r,i);if(l==ze||l==qe||x&&!f){if(n=p||x?{}:Dr(r),!i)return p?Ie(r,Ae(n,r)):we(r,Te(n,r))}else{if(!m[l])return f?r:{};n=Re(r,l,i)}}a||(a=new G);var h=a.get(r);if(h)return h;a.set(r,n),Ke(r)?r.forEach(function(b){n.add(Rr(b,t,e,b,r,a))}):Ge(r)&&r.forEach(function(b,T){n.set(T,Rr(b,t,e,T,r,a))});var y=s?p?Pe:ir:p?P:k,_=u?void 0:y(r);return ue(_||r,function(b,T){_&&(T=b,b=r[T]),Er(n,T,Rr(b,t,e,T,r,a))}),n}var $e=Rr;var Ap=1,_p=4;function Op(r){return $e(r,Ap|_p)}var Sp=Op;function jp(r){return function(t,e,o){for(var f=-1,a=Object(t),n=o(t),i=n.length;i--;){var p=n[r?i:++f];if(e(a[p],p,a)===!1)break}return t}}var Ve=jp;var wp=Ve(),Ye=wp;function Ip(r,t,e){(e!==void 0&&!w(r[t],e)||e===void 0&&!(t in r))&&tr(r,t,e)}var pr=Ip;function Pp(r){return g(r)&&U(r)}var Je=Pp;function Cp(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var sr=Cp;function Ep(r){return I(r,P(r))}var Xe=Ep;function Lp(r,t,e,o,f,a,n){var i=sr(r,e),p=sr(t,e),s=n.get(p);if(s){pr(r,e,s);return}var u=a?a(i,p,e+"",r,t,n):void 0,l=u===void 0;if(l){var x=S(p),h=!x&&L(p),y=!x&&!h&&Z(p);u=p,x||h||y?S(i)?u=i:Je(i)?u=Cr(i):h?(l=!1,u=Lr(p,!0)):y?(l=!1,u=Br(p,!0)):u=[]:ve(p)||fr(p)?(u=i,fr(i)?u=Xe(i):(!v(i)||H(i))&&(u=Dr(p))):l=!1}l&&(n.set(p,u),f(u,p,o,a,n),n.delete(p)),pr(r,e,u)}var Ze=Lp;function Qe(r,t,e,o,f){r!==t&&Ye(t,function(a,n){if(f||(f=new G),v(a))Ze(r,t,n,e,Qe,o,f);else{var i=o?o(sr(r,n),a,n+"",r,t,f):void 0;i===void 0&&(i=a),pr(r,n,i)}},P)}var ke=Qe;var Mp=ce(function(r,t,e){ke(r,t,e)}),Bp=Mp;var Dp=0;function Rp(r){var t=++Dp;return be(r)+t}var Fp=Rp;export{Sp as a,hn as b,Bp as c,Fp as d};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{a as wt,b as Ct,c as It,d as kt}from"./chunk-WCRO6YQB.js";import{a as yt}from"./chunk-HLNMCR4K.js";import{a as Rt}from"./chunk-H7F7H5MW.js";import{a as xt}from"./chunk-DWU5C3KH.js";import{b as B}from"./chunk-ZCGZM7LU.js";import{a as vt,b as $t}from"./chunk-EEA6UA46.js";import{m as bt,n as _t,t as U}from"./chunk-BEI5QPKL.js";import{c as ct,e as I}from"./chunk-UJEB6C35.js";import"./chunk-NP23WSXR.js";import{C as ht,D as ut,c as gt,e as mt,l as ft}from"./chunk-QKEI7JJT.js";import{b as pt}from"./chunk-RQG4TZOZ.js";import{D as H,E as O,G as F,J as N,j as dt}from"./chunk-KDXCBENV.js";import{Bb as it,Cb as nt,Db as st,Dc as r,Eb as u,Ec as l,Fb as a,Fc as Y,Gb as d,Hb as g,Qb as S,Wb as b,Ya as o,Yb as p,aa as m,ga as f,gb as et,ha as h,hc as ot,ic as K,jc as y,kc as E,lc as R,mb as V,n as M,qc as rt,rc as at,sc as lt,xb as C,yb as k,yc as G,zb as x}from"./chunk-JRQC3M7W.js";import{a as j,b as W,d as Z,g as tt,h as $}from"./chunk-B4AJQJMI.js";var Tt=tt(It(),1);var St=tt(Rt(),1);var Et=(s,w)=>({"fa-trash":s,"fa-cog fa-spin":w});function Ot(s,w){s&1&&(a(0,"div",13),g(1,"i",20),d())}function Ft(s,w){if(s&1){let t=S();a(0,"li",9)(1,"span"),y(2),r(3,"date"),g(4,"br"),a(5,"span",21),y(6),r(7,"date"),d()(),a(8,"span",22)(9,"button",25),r(10,"translate"),r(11,"translate"),b("click",function(){let i=f(t).$implicit,n=p(2);return h(n.restore(i.id))}),g(12,"i",26),d(),a(13,"button",27),r(14,"translate"),r(15,"translate"),b("click",function(){let i=f(t).$implicit,n=p(2);return h(n.download(i.id))}),g(16,"i",28),d(),a(17,"button",23),r(18,"translate"),r(19,"translate"),b("click",function(){let i=f(t).$implicit,n=p(2);return h(n.delete(i.id))}),g(20,"i",24),d()()()}if(s&2){let t=w.$implicit,e=p(2);o(2),R(" ",Y(3,16,t.timestamp,"mediumDate")),o(4),E(Y(7,19,t.timestamp,"shortTime")),o(3),u("disabled",e.clicked||e.deleting)("ngbTooltip",l(10,22,"config.restore.copy_to_editor"))("openDelay",150),C("aria-label",l(11,24,"config.restore.copy_to_editor")),o(4),u("disabled",e.clicked||e.deleting)("ngbTooltip",l(14,26,"form.button_download"))("openDelay",150),C("aria-label",l(15,28,"form.button_download")),o(4),u("disabled",e.clicked||e.deleting)("ngbTooltip",l(18,30,"form.button_delete"))("openDelay",150),C("aria-label",l(19,32,"form.button_delete")),o(3),K(G(34,Et,t.id!==e.deleting,t.id===e.deleting))}}function Nt(s,w){if(s&1){let t=S();a(0,"ul",14),nt(1,Ft,21,37,"li",9,it),a(3,"li",9)(4,"span"),y(5),r(6,"translate"),g(7,"br"),a(8,"span",21),y(9),r(10,"translate"),d()(),a(11,"span",22)(12,"button",23),r(13,"translate"),r(14,"translate"),b("click",function(){f(t);let i=p();return h(i.deleteAllBackups())}),g(15,"i",24),d()()()()}if(s&2){let t=p();o(),st(t.backupList),o(4),R(" ",l(6,8,"form.button_delete_all")),o(4),E(l(10,10,"common.labels.no_confirmation")),o(3),u("disabled",t.clicked||t.deleting)("ngbTooltip",l(13,12,"form.button_delete_all"))("openDelay",150),C("aria-label",l(14,14,"form.button_delete")),o(3),K(G(16,Et,t.deleting!=="all",t.deleting==="all"))}}var Mt=(()=>{class s{$activeModal=m(bt);$api=m(N);$router=m(I);$toastr=m(F);$translate=m(H);currentConfig;fromSettings=!1;loading=!0;backupList=[];clicked=!1;deleting=null;ngOnInit(){this.getConfigBackups()}getConfigBackups(){return $(this,null,function*(){try{let t=yield M(this.$api.get("/config-editor/backups"));this.loading=!1,this.backupList=t}catch(t){this.loading=!1,console.error(t),this.$toastr.error(t.error?.message||t.message,this.$translate.instant("toast.title_error")),this.dismissModal()}})}restore(t){return this.$activeModal.close(t)}download(t){return $(this,null,function*(){this.clicked=!0;try{let e=yield M(this.$api.get(`/config-editor/backups/${t}`)),i=JSON.stringify(e,null,4),n=new Blob([i],{type:"application/json"}),v=`config-backup-${t}.json`;(0,St.saveAs)(n,v),this.clicked=!1}catch(e){this.clicked=!1,this.$toastr.error(e.error?.message||e.message,this.$translate.instant("toast.title_error")),console.error(e)}})}downloadCurrentConfig(){let t=`data:text/json;charset=utf-8,${encodeURIComponent(this.currentConfig)}`,e=document.createElement("a");e.setAttribute("href",t),e.setAttribute("download","config.json"),document.body.appendChild(e),e.click(),e.remove()}delete(t){return $(this,null,function*(){this.deleting=t;try{yield M(this.$api.delete(`/config-editor/backups/${t}`)),yield this.getConfigBackups(),this.deleting=null}catch(e){this.deleting=null,this.$toastr.error(e.error?.message||e.message,this.$translate.instant("toast.title_error")),console.error(e)}})}deleteAllBackups(){return $(this,null,function*(){this.deleting="all";try{yield M(this.$api.delete("/config-editor/backups")),this.$toastr.success(this.$translate.instant("config.restore.toast_backups_deleted"),this.$translate.instant("toast.title_success")),this.backupList=[],this.deleting=null}catch(t){this.$toastr.error(t.error?.message||t.message,this.$translate.instant("toast.title_error")),console.error(t),this.deleting=null}})}dismissModal(){this.fromSettings&&this.$router.navigate(["/settings"]),this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=V({type:s,selectors:[["ng-component"]],inputs:{currentConfig:"currentConfig",fromSettings:"fromSettings"},decls:40,vars:31,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-history","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"btn","btn-primary","m-0","ms-3","py-1",3,"click","disabled"],[1,"fas","fa-arrow-right"],[1,"text-center","primary-text"],[1,"list-group","list-group-box","mt-3"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-end"],[1,"fa","fa-cog","fa-spin","mt-3",2,"font-size","75px"],[1,"grey-text","small"],[2,"display","flex","flex-wrap","nowrap"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-danger","m-0","ms-2",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-primary","m-0","ms-3","py-1",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-history"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-primary","m-0","ms-2",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-download"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),y(3),r(4,"translate"),d(),a(5,"button",3),r(6,"translate"),b("click",function(){return i.dismissModal()}),d()(),a(7,"div",4)(8,"div",5),g(9,"i",6),d(),a(10,"ul",7)(11,"li"),y(12),r(13,"translate"),d(),a(14,"li"),y(15),r(16,"translate"),d()(),a(17,"ul",8)(18,"li",9)(19,"div")(20,"span"),y(21),r(22,"translate"),d(),g(23,"br"),a(24,"small",10),y(25),r(26,"translate"),d()(),a(27,"button",11),r(28,"translate"),b("click",function(){return i.downloadCurrentConfig()}),g(29,"i",12),d()()(),k(30,Ot,2,0,"div",13)(31,Nt,16,19,"ul",14),d(),a(32,"div",15),g(33,"div",16),a(34,"div",17)(35,"button",18),r(36,"translate"),b("click",function(){return i.dismissModal()}),y(37),r(38,"translate"),d()(),g(39,"div",19),d()()),e&2&&(o(3),E(l(4,13,"config.restore.title")),o(2),u("disabled",i.clicked||i.deleting),C("aria-label",l(6,15,"form.button_close")),o(7),E(l(13,17,"config.restore.help_1")),o(3),E(l(16,19,"config.restore.help_2")),o(6),E(l(22,21,"form.button_download")),o(4),E(l(26,23,"config.restore.download")),o(2),u("disabled",i.clicked||i.deleting),C("aria-label",l(28,25,"backup.backup_now")),o(3),x(i.loading?30:i.backupList.length?31:-1),o(5),u("disabled",i.clicked||i.deleting),C("aria-label",l(36,27,"form.button_close")),o(2),R(" ",l(38,29,"form.button_close")," "))},dependencies:[U,ut,dt,O],encapsulation:2})}return s})();function Ut(s,w){if(s&1){let t=S();a(0,"button",13),r(1,"translate"),r(2,"translate"),b("click",function(){f(t);let i=p();return h(i.onCancelRestore())}),g(3,"i",14),d()}if(s&2){let t=p();u("disabled",t.saveInProgress)("openDelay",150)("ngbTooltip",l(1,4,"form.button_cancel")),C("aria-label",l(2,6,"form.button_cancel"))}}function qt(s,w){if(s&1){let t=S();a(0,"button",15),r(1,"translate"),r(2,"translate"),b("click",function(){f(t);let i=p();return h(i.onRestore())}),g(3,"i",16),d()}s&2&&(u("openDelay",150)("ngbTooltip",l(1,3,"form.button_restore")),C("aria-label",l(2,5,"form.button_restore")))}function zt(s,w){if(s&1){let t=S();a(0,"button",15),r(1,"translate"),r(2,"translate"),b("click",function(){f(t);let i=p();return h(i.toggleSideBySide())}),g(3,"i",17),d()}if(s&2){let t=p();u("openDelay",150)("ngbTooltip",l(1,7,t.renderSideBySide?"config.restore.view_inline":"config.restore.view_side_by_side")),C("aria-label",l(2,9,t.renderSideBySide?"config.restore.view_inline":"config.restore.view_side_by_side")),o(3),ot("fa-columns",!t.renderSideBySide)("fa-bars",t.renderSideBySide)}}function Jt(s,w){s&1&&g(0,"i",8)}function Lt(s,w){s&1&&g(0,"i",9)}function Wt(s,w){if(s&1){let t=S();a(0,"ngx-monaco-editor",18),b("onInit",function(i){f(t);let n=p();return h(n.onEditorInit(i))})("keydown.control.s",function(i){f(t);let n=p();return i.preventDefault(),h(n.onSave())})("keydown.meta.s",function(i){f(t);let n=p();return i.preventDefault(),h(n.onSave())}),d()}if(s&2){let t=p();u("options",t.editorOptions)("model",t.monacoEditorModel)}}function Kt(s,w){if(s&1){let t=S();a(0,"ngx-monaco-diff-editor",19),b("onInit",function(i){f(t);let n=p();return h(n.onInitDiffEditor(i))})("keydown.control.s",function(i){f(t);let n=p();return i.preventDefault(),h(n.onSave())})("keydown.meta.s",function(i){f(t);let n=p();return i.preventDefault(),h(n.onSave())}),d()}if(s&2){let t=p();u("options",t.editorOptions)("originalModel",t.diffOriginalModel)("modifiedModel",t.diffModifiedModel)}}function Gt(s,w){if(s&1){let t=S();a(0,"textarea",20),lt("ngModelChange",function(i){f(t);let n=p();return at(n.homebridgeConfig,i)||(n.homebridgeConfig=i),h(i)}),y(1," "),d()}if(s&2){let t=p();rt("ngModel",t.homebridgeConfig)}}var Te=(()=>{class s{$api=m(N);$md=m(yt);$modal=m(_t);$monacoEditor=m(xt);$renderer=m(et);$route=m(ct);$router=m(I);$settings=m(pt);$toastr=m(F);$translate=m(H);editorDecorations=[];lastHeight;visualViewPortEventCallback;latestSavedConfig;childBridgesToRestart=[];hbPendingRestart=!1;isDebugModeEnabled=this.$settings.isFeatureEnabled("childBridgeDebugMode");isMatterSupported=this.$settings.isFeatureEnabled("matterSupport");homebridgeConfig;originalConfig;saveInProgress;isMobile=!1;monacoEditor;editorOptions;monacoEditorModel;diffOriginalModel;diffModifiedModel;renderSideBySide=!1;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){let t=this.$translate.instant("menu.config_json_editor");this.$settings.setPageTitle(t),this.editorOptions={language:"json",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",renderSideBySide:this.renderSideBySide,renderIndicators:!0,ignoreTrimWhitespace:!1,glyphMargin:!0};let e=document.querySelector(".content");this.$renderer.setStyle(e,"height","100%"),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(n=>{this.homebridgeConfig=n.config,this.latestSavedConfig=JSON.parse(n.config),this.diffModifiedModel&&this.updateDiffModels()}),this.monacoEditorModel={value:"{}",language:"json",uri:window.monaco?window.monaco.Uri.parse("a://homebridge/config.json"):void 0},this.diffOriginalModel={code:"",language:"json"},this.diffModifiedModel={code:this.homebridgeConfig||"{}",language:"json"},window.monaco?this.setMonacoEditorModel():this.$monacoEditor.readyEvent.subscribe({next:()=>this.setMonacoEditorModel()});let{action:i}=this.$router.parseUrl(this.$router.url).queryParams;if(i){switch(i){case"restore":{this.onRestore(!0);break}}this.$router.navigate([],{queryParams:{},replaceUrl:!0,queryParamsHandling:""})}}onEditorInit(t){window.editor=t,this.monacoEditor=t,this.monacoEditor.getModel().setValue(this.homebridgeConfig)}onInitDiffEditor(t){this.monacoEditor=t.getModifiedEditor(),this.updateDiffModels(),window.editor=t}updateDiffModels(){if(this.diffOriginalModel&&(this.diffOriginalModel.code=this.originalConfig||""),this.diffModifiedModel&&(this.diffModifiedModel.code=this.homebridgeConfig||"{}"),window.editor&&window.editor.getOriginalEditor){let t=window.editor.getOriginalEditor(),e=window.editor.getModifiedEditor();if(t&&e){let i=t.getModel(),n=e.getModel();i&&i.setValue(this.originalConfig||""),n&&n.setValue(this.homebridgeConfig||"{}")}}}onSave(){return $(this,null,function*(){if(!this.saveInProgress){this.monacoEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[])),this.saveInProgress=!0;try{if(!this.isMobile){yield this.monacoEditor.getAction("editor.action.formatDocument").run();let e=window.monaco.editor.getModelMarkers({owner:"json"});for(let i of e)if(i.message==="Duplicate object key"){this.saveInProgress=!1,this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"));return}this.homebridgeConfig=this.monacoEditor.getModel().getValue()}let t=this.parseConfigFromEditor();this.homebridgeConfig=JSON.stringify(t,null,4),typeof t.bridge!="object"?this.$toastr.error(this.$translate.instant("config.config_bridge_missing"),this.$translate.instant("toast.title_error")):/^(?:[0-9A-F]{2}:){5}[0-9A-F]{2}$/i.test(t.bridge.username)?t.accessories&&!Array.isArray(t.accessories)?this.$toastr.error(this.$translate.instant("config.config_accessory_must_be_array"),this.$translate.instant("toast.title_error")):t.platforms&&!Array.isArray(t.platforms)?this.$toastr.error(this.$translate.instant("config.config_platform_must_be_array"),this.$translate.instant("toast.title_error")):t.platforms&&Array.isArray(t.platforms)&&!this.validateSection(t.platforms,"platform")||t.accessories&&Array.isArray(t.accessories)&&!this.validateSection(t.accessories,"accessory")||t.plugins&&Array.isArray(t.plugins)&&!this.validatePlugins(t.plugins,"plugins")||t.disabledPlugins&&Array.isArray(t.disabledPlugins)&&!this.validatePlugins(t.disabledPlugins,"disabledPlugins")||(yield this.saveConfig(t),this.originalConfig=""):this.$toastr.error(this.$translate.instant("config.config_username_error"),this.$translate.instant("toast.title_error"))}catch(t){console.error(t),this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}onRestore(t=!1){let e=this.$modal.open(Mt,{size:"lg",backdrop:"static"});e.componentInstance.currentConfig=this.homebridgeConfig,e.componentInstance.fromSettings=t,e.result.then(i=>{this.originalConfig||(this.originalConfig=this.homebridgeConfig,this.updateDiffModels()),this.$api.get(`/config-editor/backups/${i}`).subscribe({next:n=>{this.$toastr.info(this.$translate.instant("config.restore.confirm"),this.$translate.instant("config.title_backup_loaded")),this.homebridgeConfig=JSON.stringify(n,null,4),this.updateDiffModels(),this.monacoEditor&&window.editor.modifiedEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[]),this.monacoEditor.executeEdits("beautifier",[{identifier:"delete",range:new monaco.Range(1,1,this.monacoEditor.getModel().getLineCount()+10,1),text:"",forceMoveMarkers:!0}]),this.monacoEditor.executeEdits("beautifier",[{identifier:"insert",range:new monaco.Range(1,1,1,1),text:this.homebridgeConfig,forceMoveMarkers:!0}]))},error:n=>{console.error(n),this.$toastr.error(n.error?.message||this.$translate.instant("backup.load_error"),this.$translate.instant("toast.title_error"))}})}).catch(()=>{})}onCancelRestore(){if(window.editor&&window.editor.dispose)try{window.editor.dispose(),window.editor=void 0}catch{}this.homebridgeConfig=this.originalConfig,this.originalConfig="",this.renderSideBySide&&this.toggleSideBySide(),this.updateDiffModels(),this.onRestore()}toggleSideBySide(){this.renderSideBySide=!this.renderSideBySide,this.editorOptions=W(j({},this.editorOptions),{renderSideBySide:this.renderSideBySide})}ngOnDestroy(){let t=document.querySelector(".content");this.$renderer.removeStyle(t,"height"),window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove());try{if(window.editor&&window.editor.dispose&&(window.editor.dispose(),window.editor=void 0),window.monaco){let e=window.monaco.Uri.parse("file:///original.json"),i=window.monaco.Uri.parse("file:///modified.json"),n=window.monaco.editor.getModel(e);n&&n.dispose();let v=window.monaco.editor.getModel(i);v&&v.dispose();let T=(window.monaco.languages.json.jsonDefaults.diagnosticsOptions.schemas||[]).filter(P=>P.uri!=="http://homebridge/config.json");window.monaco.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,allowComments:!1,schemas:T})}this.monacoEditor&&this.monacoEditor.dispose()}catch{}}validateSection(t,e){for(let i of t){if(typeof i!="object"||Array.isArray(i))return this.$toastr.error(this.$translate.instant("config.error_blocks_objects",{type:e}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1;if(!i[e])return this.$toastr.error(this.$translate.instant("config.error_blocks_type",{type:e}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1;if(typeof i[e]!="string")return this.$toastr.error(this.$translate.instant("config.error_string_type",{type:e}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1}return!0}validatePlugins(t,e){for(let i of t)if(typeof i!="string")return this.$toastr.error(this.$translate.instant("config.error_string_array",{key:e}),this.$translate.instant("toast.title_error")),!1;return!0}highlightOffendingArrayItem(t){this.monacoEditor&&(t=JSON.stringify(t,null,4).split(`
|
|
2
|
+
`).map(e=>` ${e}`).join(`
|
|
3
|
+
`),requestAnimationFrame(()=>{let e=this.monacoEditor.getModel().findMatches(t);if(e.length){let i=e[0].range,n=new monaco.Range(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn);this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[{range:n,options:{isWholeLine:!0,linesDecorationsClassName:"hb-monaco-editor-line-error"}}])}}))}setMonacoEditorModel(){if(window.monaco.languages.json.jsonDefaults.diagnosticsOptions.schemas.some(i=>i.uri==="http://homebridge/config.json"))return;let t=monaco.Uri.parse("a://homebridge/config.json"),e=kt(this.$translate,{isDebugModeEnabled:this.isDebugModeEnabled,isMatterSupported:this.isMatterSupported});window.monaco.languages.json.jsonDefaults.setDiagnosticsOptions({allowComments:!1,validate:!0,schemas:[{uri:"http://homebridge/config.json",fileMatch:[t.toString()],schema:{type:"object",additionalProperties:!1,required:["bridge"],properties:{bridge:{type:"object",additionalProperties:!1,required:["name","username","port","pin"],properties:j({name:{type:"string",title:this.$translate.instant("settings.name"),description:`The Homebridge instance name.
|
|
4
|
+
This should be unique if you are running multiple instances of Homebridge.`,default:"Homebridge"},username:{type:"string",title:this.$translate.instant("users.label_username"),description:`Homebridge username must be 6 pairs of colon-separated hexadecimal characters (A-F 0-9).
|
|
5
|
+
You should change this pin if you need to re-pair your instance with HomeKit.
|
|
6
|
+
Example: 0E:89:49:64:91:86.`,default:"0E:89:49:64:91:86",pattern:"^([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}$"},port:{type:"number",title:this.$translate.instant("settings.network.port_hb"),description:`The port Homebridge listens on.
|
|
7
|
+
If running more than one instance of Homebridge on the same server make sure each instance is given a unique port.`,default:51173,minimum:1025,maximum:65534},pin:{type:"string",description:`The Homebridge instance pin.
|
|
8
|
+
This is used when pairing Homebridge to HomeKit.
|
|
9
|
+
Example: 630-27-655.`,default:"630-27-655",pattern:"^([0-9]{3}-[0-9]{2}-[0-9]{3})$"},manufacturer:{type:"string",title:this.$translate.instant("child_bridge.config.manufacturer"),description:"The bridge manufacturer to be displayed in HomeKit."},firmwareRevision:{type:"string",title:this.$translate.instant("child_bridge.config.firmware"),description:"The bridge firmware version to be displayed in HomeKit."},model:{type:"string",title:this.$translate.instant("child_bridge.config.model"),description:"The bridge model to be displayed in HomeKit."},advertiser:{type:"string",title:this.$translate.instant("settings.mdns_advertiser"),description:this.$translate.instant("settings.mdns_advertiser_help"),oneOf:[{title:"Avahi",enum:["avahi"]},{title:"Bonjour HAP",enum:["bonjour-hap"]},{title:"Ciao",enum:["ciao"]},{title:"Resolved",enum:["resolved"]}]},bind:{title:this.$translate.instant("settings.network.title_network_interfaces"),description:`A string or an array of strings with the name(s) of the network interface(s) Homebridge should bind to.
|
|
10
|
+
Requires Homebridge v1.3 or later.`,type:["string","array"],items:{type:"string",description:this.$translate.instant("status.widget.network.network_interface")}}},this.isMatterSupported?{matter:{type:"object",additionalProperties:!1,title:this.$translate.instant("settings.matter.title"),description:"Matter-specific configuration for the main bridge.",properties:{port:{type:"number",title:this.$translate.instant("settings.matter.port"),description:this.$translate.instant("settings.matter.port_desc"),minimum:1025,maximum:65534}}}}:{}),default:{name:"Homebridge",username:"0E:89:49:64:91:86",port:51173,pin:"6302-7655"}},mdns:{type:"object",additionalProperties:!1,properties:{interface:{type:"string",title:this.$translate.instant("status.widget.network.network_interface"),description:`The interface or IP address of the interface you want Homebridge to listen on.
|
|
11
|
+
This is useful if your server has multiple interfaces.
|
|
12
|
+
Deprecated as of Homebridge v1.3.0 - use bridge.bind instead.`},legacyAdvertiser:{type:"boolean",title:"Legacy mDNS Advertiser",description:"Set to false to use the new mdns library, ciao."}},default:{legacyAdvertiser:!1}},ports:{type:"object",additionalProperties:!1,title:"Port Range",description:"The range of ports that should be used for external accessories like cameras and TVs.",required:["start","end"],properties:{start:{type:"number",default:52100,minimum:1025,maximum:65534,title:this.$translate.instant("settings.network.port_start"),description:this.$translate.instant("settings.network.port_start_desc")},end:{type:"number",default:52150,minimum:1025,maximum:65534,title:this.$translate.instant("settings.network.port_end"),description:this.$translate.instant("settings.network.port_end_desc")}},default:{start:52100,end:52150}},platforms:{type:"array",title:"Platforms",description:`Any plugin that exposes a platform should have its config entered in this array.
|
|
13
|
+
Separate each plugin config block using a comma.`,items:{type:"object",required:["platform"],anyOf:[{type:"object",required:["platform"],title:this.$translate.instant("plugins.button_settings"),properties:{platform:{type:"string",title:"Platform Name",description:"This is used by Homebridge to identify which plugin this platform belongs to.",not:{enum:["config"]}},name:{type:"string",title:this.$translate.instant("accessories.name"),description:"The name of the platform."},_bridge:e}},{type:"object",additionalProperties:!1,properties:W(j({platform:{type:"string",title:"Platform Name",description:`Homebridge UI platform name must be set to "config".
|
|
14
|
+
Do not change!`,const:"config"},name:{title:this.$translate.instant("accessories.name"),type:"string",default:"Homebridge UI",minLength:1,description:"The name of the Homebridge instance."},port:{title:this.$translate.instant("settings.network.port_ui"),type:"integer",default:8080,minimum:1025,maximum:65535,description:this.$translate.instant("settings.network.port_ui_desc")},auth:{type:"string",default:"form",title:this.$translate.instant("settings.security.auth"),description:this.$translate.instant("settings.security.auth_desc"),oneOf:[{title:"Require Authentication",enum:["form"]},{title:"None",enum:["none"]}]},theme:{title:this.$translate.instant("settings.display.theme"),description:"The theme used for the UI.",type:"string",default:"orange",oneOf:[{title:this.$translate.instant("settings.display.orange"),enum:["orange"]},{title:this.$translate.instant("settings.display.red"),enum:["red"]},{title:this.$translate.instant("settings.display.pink"),enum:["pink"]},{title:this.$translate.instant("settings.display.purple"),enum:["purple"]},{title:this.$translate.instant("settings.display.deep_purple"),enum:["deep-purple"]},{title:this.$translate.instant("settings.display.indigo"),enum:["indigo"]},{title:this.$translate.instant("settings.display.blue"),enum:["blue"]},{title:this.$translate.instant("settings.display.bluegrey"),enum:["blue-grey"]},{title:this.$translate.instant("settings.display.cyan"),enum:["cyan"]},{title:this.$translate.instant("settings.display.green"),enum:["green"]},{title:this.$translate.instant("settings.display.teal"),enum:["teal"]},{title:this.$translate.instant("settings.display.grey"),enum:["grey"]},{title:this.$translate.instant("settings.display.brown"),enum:["brown"]}]},lightingMode:{title:this.$translate.instant("settings.display.lighting_mode"),description:"The lighting mode used for the UI.",type:"string",default:"auto",oneOf:[{title:this.$translate.instant("accessories.control.auto"),enum:["auto"]},{title:this.$translate.instant("settings.display.light"),enum:["light"]},{title:this.$translate.instant("settings.display.dark"),enum:["dark"]}]},menuMode:{title:this.$translate.instant("settings.display.menu_mode"),description:"Modes for the UI side menu.",type:"string",default:"default",oneOf:[{title:this.$translate.instant("settings.display.menu_default"),enum:["default"]},{title:this.$translate.instant("settings.display.menu_freeze"),enum:["freeze"]}]},temp:{title:this.$translate.instant("settings.linux.temp"),type:"string",description:this.$translate.instant("settings.linux.temp_desc")},tempUnits:{title:this.$translate.instant("settings.display.temp_units"),description:"The units used to display the temperature.",type:"string",default:"c",oneOf:[{title:this.$translate.instant("settings.display.temp_units.c"),enum:["c"]},{title:this.$translate.instant("settings.display.temp_units.f"),enum:["f"]}]},lang:{title:this.$translate.instant("settings.display.lang"),type:"string",default:"auto",description:"The language used for the UI.",oneOf:[{title:this.$translate.instant("form.select.auto"),enum:["auto"]},{title:"Bulgarian (bg)",enum:["bg"]},{title:"Catalan (ca)",enum:["ca"]},{title:"Chinese - Simplified (zh-CN)",enum:["zh-CN"]},{title:"Chinese - Traditional (zh-TW)",enum:["zh-TW"]},{title:"Czech (cs)",enum:["cs"]},{title:"Dutch (nl)",enum:["nl"]},{title:"English (en)",enum:["en"]},{title:"Finnish (fi)",enum:["fi"]},{title:"French (fr)",enum:["fr"]},{title:"German (de)",enum:["de"]},{title:"Hebrew (he)",enum:["he"]},{title:"Hungarian (hu)",enum:["hu"]},{title:"Indonesian (id)",enum:["id"]},{title:"Italian (it)",enum:["it"]},{title:"Japanese (ja)",enum:["ja"]},{title:"Korean (ko)",enum:["ko"]},{title:"Macedonian (mk)",enum:["mk"]},{title:"Norwegian (no)",enum:["no"]},{title:"Polish (pl)",enum:["pl"]},{title:"Portuguese (Brazil)",enum:["pt-BR"]},{title:"Portuguese (Portugal)",enum:["pt"]},{title:"Russian (ru)",enum:["ru"]},{title:"Slovenian (sl)",enum:["sl"]},{title:"Spanish (es)",enum:["es"]},{title:"Swedish (sv)",enum:["sv"]},{title:"Thai (th)",enum:["th"]},{title:"Turkish (tr)",enum:["tr"]},{title:"Ukrainian (uk)",enum:["uk"]}]},wallpaper:{title:this.$translate.instant("settings.display.wallpaper"),description:"The full path to the .jpg file.",type:"string"},homebridgePackagePath:{title:this.$translate.instant("settings.network.hb_package"),type:"string",description:this.$translate.instant("settings.network.hb_package_desc")},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",title:this.$translate.instant("settings.network.host"),description:this.$translate.instant("settings.network.host_desc")},sessionTimeoutInactivityBased:{type:"boolean",title:this.$translate.instant("settings.startup.session_inactivity_based"),description:this.$translate.instant("settings.startup.session_inactivity_based_desc")},sessionTimeout:{type:"integer",minimum:600,maximum:864e5,title:this.$translate.instant("settings.startup.session"),description:this.$translate.instant("settings.startup.session_desc")},log:{type:"object",additionalProperties:!1,title:"Log Settings",description:"The log settings for the Homebridge UI.",properties:{maxSize:{type:"integer",title:this.$translate.instant("settings.terminal.log_max"),description:this.$translate.instant("settings.terminal.log_max_desc"),minimum:-1},truncateSize:{type:"integer",title:this.$translate.instant("settings.terminal.log_truncate"),description:this.$translate.instant("settings.terminal.log_truncate_desc"),minimum:0}}},ssl:{type:"object",additionalProperties:!1,title:this.$translate.instant("settings.security.https"),description:this.$translate.instant("settings.security.https_desc"),properties:{key:{type:"string",title:this.$translate.instant("settings.security.key"),description:"The full path to the private key file."},cert:{type:"string",title:this.$translate.instant("settings.security.cert"),description:"The full path to the certificate file."},pfx:{title:this.$translate.instant("settings.security.pfx"),type:"string",description:"The full path to the PKCS#12 certificate file."},passphrase:{title:this.$translate.instant("settings.security.pass"),type:"string",description:"The passphrase for the PKCS#12 certificate file."}}},accessoryControl:{title:"Accessory Control Setup",type:"object",additionalProperties:!1,description:"The accessory control settings for the Homebridge UI.",properties:{debug:{title:this.$translate.instant("settings.accessory.debug"),type:"boolean",description:this.$translate.instant("settings.accessory.debug_desc")},instanceBlacklist:{title:this.$translate.instant("settings.security.ui_control"),type:"array",description:this.$translate.instant("settings.security.ui_control_desc"),items:{title:this.$translate.instant("users.label_username"),type:"string",pattern:"^([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}$"}}}},linux:{title:"Linux Server Commands",type:"object",additionalProperties:!1,description:"The Linux server commands for the Homebridge UI.",properties:{shutdown:{title:this.$translate.instant("settings.linux.shutdown"),type:"string",description:this.$translate.instant("settings.linux.shutdown_desc")},restart:{title:this.$translate.instant("settings.linux.restart"),type:"string",description:this.$translate.instant("settings.linux.restart_desc")}}}},this.$settings.originalWebroot!==globalThis.webroot.errorCode?{webroot:{title:this.$translate.instant("settings.network.webroot"),type:"string",description:this.$translate.instant("settings.network.webroot_desc")}}:{}),{proxyHost:{title:this.$translate.instant("settings.network.proxy"),type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:this.$translate.instant("settings.network.proxy_desc")},scheduledBackupPath:{title:this.$translate.instant("backup.settings_path"),description:"The full path to where the service should save daily scheduled backups archives.",type:"string"},scheduledBackupDisable:{title:"Disable Scheduled Backups",type:"boolean",description:"When enabled, the Homebridge UI will not create daily scheduled backups."},scheduledRestartCron:{type:"string",title:this.$translate.instant("settings.startup.scheduled_restart"),description:this.$translate.instant("settings.startup.scheduled_restart_desc")},disableServerMetricsMonitoring:{title:"Disable Server Metrics Monitoring",type:"boolean",description:"When enabled, the Homebridge UI will not collect or report CPU or memory stats."},enableMdnsAdvertise:{title:this.$translate.instant("settings.network.mdns_advertise"),type:"boolean",description:this.$translate.instant("settings.network.mdns_advertise_help")},plugins:{title:this.$translate.instant("menu.label_plugins"),type:"object",additionalProperties:!1,description:"Settings surrounding plugins that are used by the Homebridge UI.",properties:{hideUpdatesFor:{type:"array",title:this.$translate.instant("config.hide_plugin_updates"),description:"A list of plugin names for which frontend update notifications will be hidden.",items:{type:"string",title:this.$translate.instant("accessories.plugin"),pattern:"^(?:@[\\w-]+(?:\\.[\\w-]+)*/)?homebridge-[\\w-]+$"}},alwaysShowBetas:{type:"boolean",title:this.$translate.instant("settings.display.show_betas"),description:"When enabled, beta releases will be shown as available for Homebridge, the UI and plugins."}}},bridges:{type:"array",title:this.$translate.instant("child_bridge.bridges"),description:"Settings surrounding bridges that are used by the Homebridge UI.",items:{type:"object",additionalProperties:!1,required:["username"],properties:{username:{type:"string",title:this.$translate.instant("users.label_username"),description:'The MAC address of the bridge (e.g., "0E:02:9A:9D:44:45").',pattern:"^[0-9A-F]{2}(?::[0-9A-F]{2}){5}$"},hideHapAlert:{type:"boolean",title:this.$translate.instant("config.hide_hap_pairing"),description:"Hide the HAP pairing alert for this bridge."},hideMatterAlert:{type:"boolean",title:this.$translate.instant("config.hide_matter_pairing"),description:"Hide the Matter pairing alert for this bridge."},scheduledRestartCron:{type:"string",title:this.$translate.instant("settings.startup.scheduled_restart"),description:this.$translate.instant("settings.startup.scheduled_restart_desc")}}}},terminal:{type:"object",additionalProperties:!1,title:"Terminal Settings",description:"The terminal settings for the Homebridge UI.",properties:{persistence:{title:this.$translate.instant("settings.terminal.persistence"),type:"boolean",description:this.$translate.instant("settings.terminal.persistence_help"),default:!1},hideWarning:{title:this.$translate.instant("settings.terminal.warning"),type:"boolean",description:this.$translate.instant("settings.terminal.warning_help"),default:!1},bufferSize:{title:this.$translate.instant("settings.terminal.buffer_size"),type:"integer",description:this.$translate.instant("settings.terminal.buffer_size_help"),default:5e4,minimum:0}}}})}]}},accessories:{type:"array",title:this.$translate.instant("menu.label_accessories"),description:`Any plugin that exposes an accessory should have its config entered in this array.
|
|
15
|
+
Separate each plugin config block using a comma.`,items:{type:"object",required:["accessory","name"],title:this.$translate.instant("plugins.button_settings"),properties:{accessory:{type:"string",title:this.$translate.instant("child_bridge.config.accessory"),description:"This is used by Homebridge to identify which plugin this accessory belongs to."},name:{type:"string",title:this.$translate.instant("accessories.name"),description:"The name of the accessory."},_bridge:e}}},plugins:{type:"array",title:this.$translate.instant("menu.label_plugins"),description:`An array of plugins that should be selectively enabled.
|
|
16
|
+
Remove this array to enable all plugins.`,items:{type:"string",title:this.$translate.instant("accessories.plugin"),description:`The full plugin npm package name.
|
|
17
|
+
Example: homebridge-dummy.`},default:["homebridge-config-ui-x"]},disabledPlugins:{type:"array",description:`An array of plugins that should be disabled.
|
|
18
|
+
Requires Homebridge v1.3 or later.`,items:{type:"string",title:this.$translate.instant("accessories.plugin"),description:`The full plugin npm package name.
|
|
19
|
+
Example: homebridge-dummy.`},default:[]}}}}]}),this.monacoEditorModel.uri=monaco.Uri.parse("a://homebridge/config.json")}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}saveConfig(t){return $(this,null,function*(){try{let e=yield M(this.$api.post("/config-editor",t));this.homebridgeConfig=JSON.stringify(e,null,4),yield this.detectSavesChangesForRestart()}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("config.failed_to_save_config"),this.$translate.instant("toast.title_error"))}})}validateArraysEqual(t,e){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((v,_)=>v===n[_])}removePlatformsAndAccessories(t){let v=t,{accessories:e,platforms:i}=v;return Z(v,["accessories","platforms"])}removeEmptyBridges(t){return t.filter(e=>e._bridge&&Object.keys(e._bridge).length>0).map(e=>e._bridge)}validateBridgesEqual(t,e){return t.length!==e.length?!1:t.every(i=>e.some(n=>B(i,n)))}detectConfigPlatformChanges(){try{let t=this.latestSavedConfig,e=JSON.parse(this.homebridgeConfig),i=(t.platforms||[]).find(T=>T.platform==="config"),n=(e.platforms||[]).find(T=>T.platform==="config"),v=i?.webroot||"",_=n?.webroot||"";return v!==_&&(_=_?`/${_}`.replace(/\/+/g,"/").replace(/\/$/,""):"",_==="/"&&(_=""),this.$settings.setItem("webroot",_),n&&(_&&this.$settings.originalWebroot!==globalThis.webroot.errorCode?n.webroot=_:delete n.webroot,this.homebridgeConfig=JSON.stringify(e,null,4),this.monacoEditor&&this.monacoEditor.getModel().setValue(this.homebridgeConfig))),!i&&n||i&&!n?!0:!i&&!n?!1:!B(i,n)}catch(t){return console.error("Error detecting config platform changes:",t),!1}}detectSavesChangesForRestart(){return $(this,null,function*(){let t=yield this.determineRestartType();if(t==="full"){let e=this.detectConfigPlatformChanges();yield this.performFullRestart(e)}else t==="child"&&(yield this.performChildBridgeRestart());this.latestSavedConfig=JSON.parse(this.homebridgeConfig)})}determineRestartType(){return $(this,null,function*(){if(this.hbPendingRestart)return"full";let t=this.latestSavedConfig,e=JSON.stringify(t,null,4),i=JSON.parse(this.homebridgeConfig),n=this.homebridgeConfig;if(e===n&&!this.childBridgesToRestart.length)return this.$toastr.info(this.$translate.instant("config.no_restart"),this.$translate.instant("config.config_saved")),"none";if(!this.validateArraysEqual(Object.keys(t),Object.keys(i))||[...i.platforms||[],...i.accessories||[]].every(c=>!c._bridge||!Object.keys(c._bridge).length))return"full";let _=this.removePlatformsAndAccessories(t),T=this.removePlatformsAndAccessories(i);if(!B(_,T))return"full";let P=t.platforms||[],q=i.platforms||[],Bt=P.map(c=>c.platform),Pt=q.map(c=>c.platform);if(!this.validateArraysEqual(Bt,Pt))return"full";let z=t.accessories||[],J=i.accessories||[],At=z.map(c=>c.accessory),Dt=J.map(c=>c.accessory);if(!this.validateArraysEqual(At,Dt)||!this.validateBridgesEqual(this.removeEmptyBridges(P),this.removeEmptyBridges(q))||!this.validateBridgesEqual(this.removeEmptyBridges(z),this.removeEmptyBridges(J)))return"full";let Q=P.filter(c=>!B(c,q.find(A=>A.platform===c.platform))),jt=z.filter(c=>!B(c,J.find(A=>A.accessory===c.accessory))),X=[...Q,...jt];if(Q.some(c=>c.platform==="config")||X.some(c=>c.platform==="config"?!1:!c._bridge||Object.keys(c._bridge).length===0))return"full";try{let c=yield M(this.$api.get("/status/homebridge/child-bridges"));return X.forEach(A=>{let Vt=A._bridge.username.toUpperCase(),D=c.find(({username:L})=>L===Vt);if(D)this.childBridgesToRestart.some(L=>L.username===D.username)||this.childBridgesToRestart.push({name:D.name,username:D.username,matterSerialNumber:D.matterSerialNumber});else return"full"}),"child"}catch(c){return console.error("Error fetching child bridges:",c),"full"}})}performChildBridgeRestart(){return $(this,null,function*(){if(!this.childBridgesToRestart.length){yield this.performFullRestart(!1);return}let t=this.$modal.open(Ct,{size:"lg",backdrop:"static"});t.componentInstance.bridges=this.childBridgesToRestart;try{yield t.result,this.childBridgesToRestart=[]}catch{}})}performFullRestart(t){return $(this,null,function*(){t&&(yield M(this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{})));let e=this.$modal.open(wt,{size:"lg",backdrop:"static"});try{yield e.result,this.hbPendingRestart=!1,this.childBridgesToRestart=[]}catch{this.hbPendingRestart=!0}})}parseConfigFromEditor(){try{return JSON.parse(this.homebridgeConfig)}catch{let e=Tt.default.parse(this.homebridgeConfig);return this.homebridgeConfig=JSON.stringify(e,null,4),this.monacoEditor&&this.monacoEditor.getModel().setValue(this.homebridgeConfig),e}}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=V({type:s,selectors:[["ng-component"]],decls:18,vars:19,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"disabled","openDelay","ngbTooltip"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"openDelay","ngbTooltip"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-0",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-floppy-disk"],[1,"fas","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModel"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-times"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-history"],[1,"fas"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),y(4),r(5,"translate"),d()(),a(6,"div",4),k(7,Ut,4,8,"button",5),k(8,qt,4,7,"button",6),k(9,zt,4,11,"button",6),a(10,"button",7),r(11,"translate"),r(12,"translate"),b("click",function(){return i.onSave()}),k(13,Jt,1,0,"i",8),k(14,Lt,1,0,"i",9),d()()(),k(15,Wt,1,2,"ngx-monaco-editor",10),k(16,Kt,1,3,"ngx-monaco-diff-editor",11),k(17,Gt,2,1,"textarea",12),d()),e&2&&(o(4),E(l(5,13,"menu.config_json_editor")),o(3),x(i.originalConfig?7:-1),o(),x(i.originalConfig?-1:8),o(),x(!i.isMobile&&i.originalConfig?9:-1),o(),u("disabled",i.saveInProgress)("openDelay",150)("ngbTooltip",l(11,15,"form.button_save")),C("aria-label",l(12,17,"form.button_save")),o(3),x(i.saveInProgress?-1:13),o(),x(i.saveInProgress?14:-1),o(),x(!i.isMobile&&!i.originalConfig?15:-1),o(),x(!i.isMobile&&i.originalConfig?16:-1),o(),x(i.isMobile?17:-1))},dependencies:[U,vt,$t,ht,gt,mt,ft,O],encapsulation:2})}return s})();export{Te as ConfigEditorComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e}from"./chunk-B4AJQJMI.js";var s=e((i,t)=>{t.exports={"accessories.accessory_info":"Accessory Information","accessories.bridge_ip":"Bridge IP","accessories.bridge_port":"Bridge Port","accessories.button_add_room":"Legg til rom","accessories.button_hidden_hide":"Hide Hidden","accessories.button_hidden_show":"Show Hidden","accessories.button_remove":"Remove From Cache","accessories.control.adaptive_lighting":"Adaptive Lighting","accessories.control.adaptive_lighting_note":"Some plugins may automatically re-enable Adaptive Lighting when changing this.","accessories.control.auto":"Automatisk","accessories.control.away":"Away","accessories.control.battery_charged":"Charged","accessories.control.battery_charging":"lading","accessories.control.battery_low":"Battery Low","accessories.control.battery_notchargeable":"Ikke belastbar","accessories.control.battery_notcharging":"Lader ikke","accessories.control.brightness":"lysstyrke","accessories.control.cleaning":"Cleaning","accessories.control.closed":"Stengt","accessories.control.closing":"Stenger","accessories.control.color_temperature":"Color Temperature","accessories.control.cool":"Kj\xF8ling","accessories.control.current":"Current","accessories.control.default_room":"Standardrom","accessories.control.dehumidify":"Dehumidify","accessories.control.detected":"Detected","accessories.control.direction_control":"Direction Control","accessories.control.drag_here":"Drag Here","accessories.control.filter_level":"Filter Life","accessories.control.heat":"Varme","accessories.control.home":"Home","accessories.control.hue":"Hue","accessories.control.humidify":"Humidify","accessories.control.idle":"Idle","accessories.control.input":"Input List","accessories.control.input_control":"Input Control","accessories.control.jammed":"fastl\xE5st","accessories.control.lock_auto":"Auto Lock Timer","accessories.control.locked":"l\xE5st","accessories.control.manual":"Manual","accessories.control.media_control":"Media Control","accessories.control.microphone":"Microphone","accessories.control.mode":"Mode","accessories.control.mode_control":"Mode Control","accessories.control.mute":"Mute","accessories.control.mute_control":"Mute Control","accessories.control.night":"Night","accessories.control.no_data":"No Data","accessories.control.not_detected":"Not Detected","accessories.control.not_mute":"Audible","accessories.control.obstructed":"Obstructed","accessories.control.off":"Av","accessories.control.on":"P\xE5","accessories.control.open":"\xC5pen","accessories.control.opening":"\xC5pner","accessories.control.pause":"Pause","accessories.control.paused":"Paused","accessories.control.play":"Play","accessories.control.replace":"Replace","accessories.control.rotation_c_clockwise":"Counter Clockwise","accessories.control.rotation_clockwise":"Clockwise","accessories.control.rotation_direction":"Rotation Direction","accessories.control.rotation_speed":"Rotasjonshastighet","accessories.control.running":"Running","accessories.control.saturation":"Saturation","accessories.control.set_duration":"Set Duration","accessories.control.speaker":"Speaker","accessories.control.speaker_volume":"Volum","accessories.control.state_control":"State Control","accessories.control.stateless":"Stateless","accessories.control.stop":"Stop","accessories.control.stopped":"stoppet","accessories.control.target":"M\xE5l","accessories.control.target_auto":"Auto Target","accessories.control.threshold_auto":"Auto Threshold","accessories.control.triggered":"utl\xF8st","accessories.control.unknown":"Ukjent","accessories.control.unlocked":"Ul\xE5st","accessories.control_disabled":"Homebridge Accessory Control deaktivert","accessories.core.air_purifier":"Air Purifier","accessories.core.air_quality_sensor":"Air Quality Sensor","accessories.core.battery":"Battery","accessories.core.carbon_dioxide_sensor":"Carbon Dioxide Sensor","accessories.core.carbon_monoxide_sensor":"Carbon Monoxide Sensor","accessories.core.contact_sensor":"Contact Sensor","accessories.core.cooler":"Cooler","accessories.core.dehumidifier":"Dehumidifier","accessories.core.door":"Door","accessories.core.doorbell":"Doorbell","accessories.core.fan":"Fan","accessories.core.faucet_valve":"Valve","accessories.core.filter_maintenance":"Filter Maintenance","accessories.core.garage_door_opener":"Garage Door Opener","accessories.core.generic_valve":"Valve","accessories.core.heater":"Heater","accessories.core.heater_cooler":"Heater Cooler","accessories.core.humidifier":"Humidifier","accessories.core.humidifier_dehumidifier":"Humidifier Dehumidifier","accessories.core.humidity_sensor":"Humidity Sensor","accessories.core.irrigation_system":"Irrigation System","accessories.core.irrigation_valve":"Valve","accessories.core.leak_sensor":"Leak Sensor","accessories.core.light_sensor":"Light Sensor","accessories.core.lightbulb":"Lightbulb","accessories.core.lock_mechanism":"Lock Mechanism","accessories.core.microphone":"Microphone","accessories.core.motion_sensor":"Motion Sensor","accessories.core.occupancy_sensor":"Occupancy Sensor","accessories.core.on_off_light":"Lightbulb","accessories.core.on_off_light_switch":"Switch","accessories.core.on_off_plug_in_unit":"Outlet","accessories.core.outlet":"Outlet","accessories.core.robot_vacuum":"Robot Vacuum","accessories.core.robotic_vacuum_cleaner":"Robot Vacuum","accessories.core.security_system":"Security System","accessories.core.shower_head_valve":"Valve","accessories.core.smoke_sensor":"Smoke Sensor","accessories.core.speaker":"Speaker","accessories.core.stateless_programmable_switch":"Stateless Programmable Switch","accessories.core.switch":"Switch","accessories.core.television":"Television","accessories.core.temperature_sensor":"Temperature Sensor","accessories.core.thermostat":"Thermostat","accessories.core.valve":"Valve","accessories.core.washing_machine":"Washing Machine","accessories.core.window":"Window","accessories.core.window_covering":"Window Covering","accessories.custom_name":"Custom Name","accessories.custom_type":"Custom Type","accessories.hide_this_accessory":"Skjul dette tilbeh\xF8ret","accessories.message_must_use_insecure_mode":"For \xE5 kontrollere dine tilbeh\xF8r m\xE5 du kj\xF8re Homebridge i usikker modus {{ link }}.","accessories.name":"navn","accessories.no_plugins.message_1":"Accessories are created and managed by Homebridge plugins.","accessories.no_plugins.message_2":"You can find and install plugins from the plugins page.","accessories.no_plugins.title":"No Plugins Installed","accessories.only_ui":"These settings are only for the Homebridge UI and <strong>will not be reflected in HomeKit</strong>.","accessories.only_ui_2":"These options are unique to your Homebridge UI account.","accessories.plugin":"Plugin","accessories.room_name":"Romnavn","accessories.service":"Service","accessories.service_info":"Service Information","accessories.settings_link":"You can access the Homebridge Settings at any time from the cog icon in the side menu.","accessories.show_on_dashboard":"Show in dashboard widget","accessories.support.acc_1":"Accessories may take a few minutes to appear on this screen after a Homebridge restart or after being added. If accessories are consistently missing, try changing the mDNS advertiser in the settings.","accessories.support.acc_2":"You can change the type of certain accessories in the UI (like showing a switch as a heater). You can do this by clicking on the three bars that appear in the top-right corner of the accessory tile as you hover over it. A 'Custom Type' option will appear if the accessory supports this. Note this will not change the accessory in HomeKit (only a plugin can do this).","accessories.support.rooms_1":"The rooms you create here will not appear in HomeKit, they are only for the organisation of accessories in the Homebridge UI.","accessories.support.rooms_2":"To rename an existing room, create a new room with the desired name and move the accessories to the new room.","accessories.support.rooms_3":"To delete an existing room, move all its accessories to another room and refresh the page.","accessories.title_rooms":"Rooms","backup.backup_delete_failed":"Backup deletion failed. See logs for details.","backup.backup_download_failed":"Backup download failed.","backup.backup_exceeds_max_size":"Backup ({{ backupSize }}) exceeds maximum restore file size of {{ maxBackupSizeText }}","backup.backup_help_one":"Download a backup archive of your entire Homebridge environment. This will backup the entire contents of your Homebridge storage directory which you can later restore on any platform capable of running Homebridge UI.","backup.backup_help_two":"Plugins not hosted on npm, or plugins installed directly from GitHub will not be backed up or restored.","backup.backup_now":"Backup Now","backup.backup_now_desc":"Generate and download an up-to-date backup file.","backup.backup_now_save_desc":"Generate an up-to-date backup file in your backup storage directory.","backup.backup_restored":"Backup Archive Restored","backup.backup_warning":"Backup archives contain sensitive information and should not be shared with others.","backup.files_auto":"Stored Backup Files","backup.label_extracting":"Extracting Archive","backup.label_uploading":"Uploading\u2026","backup.load_error":"Failed to load config backup.","backup.restore_failed":"Restore Failed","backup.restore_help_one":"Restore a backup archive you previously made using the Homebridge UI. Your Homebridge config, cached accessories, HomeKit pairings and Homebridge UI user accounts will be restored. Any Homebridge plugins you had installed will also be downloaded from the npm registry.","backup.restore_help_two":"You will need to login to the Homebridge UI after doing a restore using the credentials from the restored instance.","backup.restore_max_size":"You can restore a backup archive up to {{ maxBackupSizeText }} in size.","backup.restore_now":"Restore Now","backup.restore_now_desc":"Restore from a previously downloaded backup file.","backup.restore_warning":"Restoring from a backup will irreversibly overwrite the current Homebridge configuration.","backup.scheduled_backup_disabled":"Scheduled backups have been disabled via the configuration.","backup.scheduled_backup_time":"A full backup of the Homebridge instance is automatically created every day at {{ backupTime }} and kept for {{ dayCount }} days.","backup.settings_enable":"Enable Automated Backups","backup.settings_path":"Backup Storage Path","backup.settings_path_desc":"If you are changing this from the default, please ensure the directory exists and is writable by the Homebridge user.","backup.settings_title":"Backup Settings","backup.title_backup":"Backup & Restore","child_bridge.about":"Homebridge allows you to run your plugin's platform or accessory as an isolated child bridge {{ link }}. This can improve the general responsiveness and reliability of Homebridge.","child_bridge.bridge_connect":"Connect to HomeKit","child_bridge.bridge_settings":"Child Bridge Config","child_bridge.bridges":"Bridges","child_bridge.bridges_paired":"Each child bridge platform or accessory will need to be paired with HomeKit separately.","child_bridge.bridges_paired_2":"If you set up a child bridge now and later disable it, any accessories on this bridge will be removed and re-created on the main Homebridge bridge.","child_bridge.config.accessory":"Accessory","child_bridge.config.debug":"Debug Mode","child_bridge.config.enable_hap":"Enable HAP","child_bridge.config.firmware":"Firmware Version","child_bridge.config.hide_pairing_alert":"Hide Pairing Alert","child_bridge.config.manufacturer":"Manufacturer","child_bridge.config.matter_note_1":"Plugins must be updated by the developer to support Matter accessories. There is no use in enabling Matter here unless you definitely know the plugin supports it.","child_bridge.config.matter_note_2":"Matter accessories don't appear in the Homebridge UI accessories screen. They can be managed using the Home app or other Matter controllers.","child_bridge.config.model":"Model","child_bridge.config.name":"Name","child_bridge.config.or_link":"Link Existing Bridge","child_bridge.config.platform":"Platform","child_bridge.config.port":"Port","child_bridge.config.prevent":"Cannot disable a child bridge with linked accessories.","child_bridge.config.select_existing":"Select an existing bridge...","child_bridge.config.use":"Use Child Bridge","child_bridge.confirm_delete_1":"The following child bridges will be removed.","child_bridge.confirm_delete_2":"You will need to remove the paired bridges manually from the Home app. Any accessories will be removed and re-created on the main Homebridge bridge.","child_bridge.must_configure_plugin":"You need to configure this plugin before you can manage its bridge settings.","child_bridge.reset_accessories":"Reset Accessories","child_bridge.restart":"Restart Child Bridge","child_bridge.restart_plural":"Restart Child Bridges","child_bridge.return_to_pair":"Return to this screen after Homebridge has restarted to view the pairing QR code.","child_bridge.setup":"Set Up Child Bridge","child_bridge.start":"Start Child Bridge","child_bridge.start_plural":"Start Child Bridges","child_bridge.stop":"Stop Child Bridge","child_bridge.stop_plural":"Stop Child Bridges","common.labels.beta":"beta","common.labels.no_confirmation":"There is no confirmation when clicking the button, it will immediately perform the action.","common.phrases.are_you_sure":"Are you sure you want to continue anyway?","common.phrases.support":"Feel like there is something useful we could add here? Let us know on {{ github }} or {{ discord }}!","config.config_accessory_must_be_array":"Tilbeh\xF8r m\xE5 v\xE6re en matrise []","config.config_bridge_missing":"Bridge-innstillinger savnes","config.config_invalid_json":"Config inneholder ugyldig JSON","config.config_platform_must_be_array":"plattformer m\xE5 v\xE6re en matrise []","config.config_saved":"Configuration Saved","config.config_username_error":"Bridge-brukernavn m\xE5 v\xE6re 6 par kolonseparerte hexadesimal-tegn (A-F 0-9)","config.error_blocks_objects":"All {{ type }} blocks must be objects.","config.error_blocks_type":"All {{ type }} blocks must contain the {{ type }} attribute.","config.error_string_array":"Each item in the {{ key }} array must be a string.","config.error_string_type":"The {{ type }} attribute must be a string.","config.failed_to_save_config":"Kunne ikke lagre config","config.hide_hap_pairing":"Hide HAP Pairing Alert","config.hide_matter_pairing":"Hide Matter Pairing Alert","config.hide_plugin_updates":"Hide Plugin Updates For","config.no_restart":"A restart is not needed as no changes were made to the Homebridge configuration.","config.restore.confirm":"Trykk p\xE5 Lagre for \xE5 bekrefte at du vil tilbakestille denne sikkerhetskopien.","config.restore.copy_to_editor":"Kopier til redigerer","config.restore.download":"Download your current configuration as a JSON file.","config.restore.help_1":"A backup of your config file is created each time it is updated from actions you take in the Homebridge UI.","config.restore.help_2":"You can restore a previous version of your config file by selecting it from the list below. You will be able to compare this version with your current config before deciding whether to restore it.","config.restore.title":"Config File Backup & Restore","config.restore.toast_backups_deleted":"Alle sikkerhetskopier slettet","config.restore.view_inline":"Inline View","config.restore.view_side_by_side":"Side-By-Side View","config.title_backup_loaded":"Backup lastet","form.button_allow":"Allow","form.button_back":"Back","form.button_cancel":"Avbryt","form.button_close":"Lukk","form.button_continue":"Continue","form.button_delete":"Slett","form.button_delete_all":"Delete All","form.button_disable":"Disable","form.button_download":"Download","form.button_edit":"Rediger","form.button_enable":"Enable","form.button_lock":"Lock","form.button_more_info":"More Info","form.button_remove":"Remove","form.button_reset":"Reset","form.button_restore":"Tilbakestill","form.button_save":"Lagre","form.button_show":"Show","form.button_unlock":"Unlock","form.button_unpair":"Unpair","form.label.changes_kept":"Note that existing selections/changes are preserved when switching between items.","form.label_invalid":"Config validation failed - you can still save your changes.","form.label_invalid_strict":"Config validation failed - please review the form before saving.","form.label_valid":"Config validation passed.","form.optional":"Optional","form.search":"Search...","form.select.auto":"Automatic (Use Browser Settings)","login.invalid_code":"The code entered is incorrect or has expired","login.invalid_credentials":"Ugyldig brukernavn eller passord","login.invalid_credentials_2":"If you lose access, delete the <code>auth.json</code> file in your Homebridge storage directory and restart Homebridge. Then refresh this page to set up a new admin account. Your Homebridge/UI settings will remain unchanged, except for UI user accounts. The only user account will be the admin account that you are setting up now.","login.invalid_password":"Invalid Password","login.label_2fa_code":"Two Factor Authentication Code","logs.download.error":"Failed to download log file.","logs.download_warning":"Homebridge log files may contain personal information, passwords or access tokens. Please review the log file and remove any sensitive information before sharing with others.","logs.log_file_truncated":"Log file truncated.","logs.title_download_log_file":"Download Log File","logs.title_truncate_log_file":"Delete Logs","logs.truncate.error":"Failed to truncate log file.","logs.truncate_log_warning":"This action will irreversibly delete your existing Homebridge logs. Are you sure you want to continue?","matter_bridge.config.use":"Enable Matter","menu.config_json_editor":"JSON Config","menu.docker.restart_container":"Restart container","menu.docker.startup_script":"Startscript","menu.docker.terminal":"Terminal","menu.hbrestart.confirm_hb":"Restart Homebridge","menu.hbrestart.confirm_ui":"Restart HB Service & UI","menu.hbrestart.title":"Restart Homebridge","menu.label_accessories":"Tilbeh\xF8r","menu.label_plugins":"Plugins","menu.label_settings":"Settings","menu.label_status":"Status","menu.linux.label_logs":"Logs","menu.linux.label_restart_server":"Restart serveren","menu.linux.label_shutdown_modal":"Are you sure you want to shut down the operating system? You will need physical access to turn it back on.","menu.linux.label_shutdown_server":"Sl\xE5 av serveren","menu.linux.label_terminal":"Terminal","menu.reload":"Reload","menu.restart.title":"Power Options","menu.settings.title":"Settings","menu.tooltip_logout":"Logg ut","menu.tooltip_restart":"Omstart","menu.tooltip_user_accounts":"Brukerkontoer","menu.tooltip_view_logs":"Vis logger","platform.docker.container_restarted":"Dockercontaineren har startet p\xE5 nytt","platform.docker.must_use_hashbang":"Script m\xE5 inneholde #!/bin/sh hashbang.","platform.docker.restart_required":"Du m\xE5 restarte denne dockningsbeholderen for at endringene ska tre i kraft.","platform.docker.run_with_restart":"Pass p\xE5 at du kj\xF8rer dockercontaineren med {{ command }}","platform.docker.script_help":"Dette script kommer til \xE5 kj\xF8res hver gang dockercontaineren starter. Du kan bruke dette for \xE5 installere eventuelle ekstra pakker som dine plugins kan beh\xF8ve, for eksempel ffmpeg eller libpcap-dev.","platform.docker.script_saved":"Start-script lagret","platform.docker.server_long_time":"Omstart av serveren tar lang tid. Du kan m\xE5tte restarte dockercontaineren manuelt.","platform.docker.title_restarting":"Restarte dockercontainer","platform.linux.long_time":"Omstart av serveren tar lang tid. Du kan bli n\xF8dt til \xE5 finne fram serverens sikkerhetskopi manuelt.","platform.linux.restart":"Vente, du omdirigeres automatisk n\xE5r Homebridge er online igjen.","platform.linux.restarting_server":"Restart serveren","platform.linux.server_restart_error":"En feil oppsto med \xE5 sende restartkommandoen til serveren","platform.linux.server_restarted":"Serveren har startet p\xE5 nytt","platform.linux.server_taking_long_time":"Serveren bruker lang tid p\xE5 \xE5 komme tilbake online","platform.linux.server_will_power_down":"Serveren sl\xE5s av innen kort tid.","platform.linux.shutting_down_server":"Sl\xE5 av serveren","platform.terminal.terminate_message_1":"Navigating away from this page will terminate your current session, all foreground processes will be terminated.","platform.terminal.terminate_message_2":"To avoid this warning, enable <strong>Terminal Session Persistence</strong> from the settings page.","platform.terminal.terminate_title":"Session Termination","platform.terminal.terminate_unload":"Your terminal session will be terminated. Enable Terminal Session Persistence in Settings to prevent this.","platform.version.restart_required":"Homebridge UI v{{ uiVersion }} has been installed, but the server service is still running v{{ serverVersion }}.","platform.version.service_restart_required":"Restart Required","plugins.bridge.action_error":"Failed to {{ action }} child bridge(s).","plugins.bridge.name_error":"Bridge name must start and end with a letter or number, and can only contain letters, numbers, spaces, and apostrophes.","plugins.bridge.port_error":"{{ type }} port must be an integer between 1025 and 65533, excluding 5353, 8080, 8443 and any other already-configured port.","plugins.button_homepage":"Plugin Homepage","plugins.button_set_up":"Set Up","plugins.button_settings":"innstillinger","plugins.button_uninstall":"Avinstallere","plugins.button_update":"Oppdatering","plugins.compat.hb_node_too_low":"{{ packageName }} v{{ latestVersion }} requires Node.js v{{ minVersion }} or later. You are currently running Node.js {{ installedVersion }}.","plugins.compat.hb_too_low":"The {{ pluginName }} plugin recommends running on Homebridge v{{ minVersion }} or later. You are currently running Homebridge v{{ installedVersion }}.","plugins.compat.node_first":"Please update Node.js before updating {{ packageName }}.","plugins.compat.node_link":"How To Update Node.js","plugins.compat.node_too_low":"The {{ pluginName }} plugin recommends running on Node.js v{{ minVersion }} or later. You are currently running Node.js {{ installedVersion }}.","plugins.compat.title":"Compatibility Check","plugins.config.load_error":"Failed to load plugin config.","plugins.config.must_be_array":"Plugin config must be an array.","plugins.config.must_be_array_objects":"Plugin config must be an array of objects.","plugins.config.must_be_object":"Config block must be an object.","plugins.config.name_property":'Accessory must have a valid "name" attribute',"plugins.config.please_fix":"Please fix validation errors before adding a new block.","plugins.config.remove_error":"Failed to remove plugin config.","plugins.disable.error":"Failed to disable plugin.","plugins.donate.message_1":"As more users install their plugins through the Homebridge UI, they are less likely to visit the projects' GitHub page where the ways to support a developer would typically be displayed.","plugins.donate.message_2":"Adding donation links directly in the Homebridge UI ensures users know how to support Homebridge developers if they wish to do so.","plugins.donate.tile_donate_to":"Donate to {{ author }}","plugins.enable.error":"Failed to enable plugin.","plugins.manage.all_versions":"All versions","plugins.manage.backup":"Download a backup before updating?","plugins.manage.changelog":"Full Changelog","plugins.manage.changelog_none":"Could not retrieve changelog, perhaps this plugin does not provide a <code>CHANGELOG.md</code> file.","plugins.manage.child_bridge_restart":"Child bridge restarted successfully.","plugins.manage.child_bridge_restart_failed":"Plugin restart failed, please restart Homebridge manually.","plugins.manage.confirm_disable":"Are you sure you want to disable {{ pluginName }}?","plugins.manage.confirm_disable_accessory_1":"Any accessories exposed by this plugin will be removed from the Homebridge UI accessory screen and removed from HomeKit.","plugins.manage.confirm_disable_accessory_2":"When you re-enable the plugin, the accessories will reappear in the Homebridge UI and HomeKit. The accessories will lose their HomeKit data (like related scenes and automations).","plugins.manage.confirm_disable_platform_1":"Any accessories exposed by this plugin will be removed from the Homebridge UI accessory screen but remain in HomeKit with a 'No Response' label.","plugins.manage.confirm_disable_platform_2":"When you re-enable the plugin, the accessories will reappear in the Homebridge UI and become controllable again in HomeKit. The accessories will not lose their HomeKit data (like related scenes and automations).","plugins.manage.confirm_disable_setting":"Your setting for {{ setting }} is currently {{ value }}, therefore:","plugins.manage.confirm_enable":"Are you sure you want to enable {{ pluginName }}?","plugins.manage.disable":"Disable","plugins.manage.enable":"Enable","plugins.manage.github_support":"You can show your support by giving this plugin a {{ iconStar }} (or the release a {{ iconThumbsUp }}) on GitHub!","plugins.manage.hb_restart":"Homebridge and the UI will automatically restart after any version change.","plugins.manage.hide_updates":"Disable Update Notifications","plugins.manage.hide_updates_desc":"If you don't want to see update notifications for this plugin, you can turn them off here.","plugins.manage.information":"Plugin Information","plugins.manage.install":"Installere","plugins.manage.installed":"Installert","plugins.manage.json_config":"JSON Config","plugins.manage.manage_version":"Manage Version","plugins.manage.manual_update_command":"To upgrade the package, open a Node.js command prompt as an Administrator and run the following commands:","plugins.manage.more_info":"More information about scoped {{ scopedLink }} and verified {{ verifiedLink }} plugins.","plugins.manage.notes":"Release Notes","plugins.manage.notes_beta_1":"Thank you for helping improve {{ pluginName }} by testing a pre-release version.","plugins.manage.notes_beta_2":"You can use the Homebridge UI to revert back to the stable version at any time.","plugins.manage.notes_beta_3":"Please remember this is a pre-release version, and report any issues to the plugin's GitHub repository page.","plugins.manage.notes_latest":"Release notes are only shown when updating to the latest version.","plugins.manage.notes_none":"Could not retrieve release notes, perhaps this version does not have a GitHub release.","plugins.manage.online_updates":"Online updates are not supported on Windows. You will need to upgrade Homebridge UI manually after stopping the Homebridge service.","plugins.manage.plugin_logs":"Plugin Logs","plugins.manage.scoped.error":"An error occurred. You can download the logs below.","plugins.manage.scoped.info_1":"Homebridge scoped plugins have names beginning with {{ prefix }}.","plugins.manage.scoped.info_2":"For more information about scoped plugins and why to switch, see the wiki page {{ link }}.","plugins.manage.scoped.process":"This process will not affect your Homebridge/HomeKit accessories. You will not be able to cancel the process once it has started. It will:","plugins.manage.scoped.switch":"Switch To Scoped Plugin","plugins.manage.scoped.windows":'Online updates are not supported on Windows. You will need to install the new plugin and uninstall the old plugin manually. You should <span class="fw-bold">not</span> restart Homebridge until both steps are complete.',"plugins.manage.scoped_message":"Scoped plugins improve long-term reliability and ensure consistent maintenance by combining centralized oversight from the Homebridge team with continued involvement from the original maintainer.","plugins.manage.scoped_subtitle":"This plugin is scoped and verified.","plugins.manage.select_version":"Select the version to install","plugins.manage.uninstall":"Avinstallere","plugins.manage.uninstalled":"Avinstallert","plugins.manage.unverified_message":"Unverified Homebridge plugins indicate that they haven't undergone the review process by the Homebridge project team. Lack of verification does not necessarily imply inefficacy or safety concerns. Authors might have opted not to seek verification for various reasons.","plugins.manage.unverified_subtitle":"This plugin is not verified.","plugins.manage.update":"Oppdatering","plugins.manage.updated":"Oppdatert","plugins.manage.verified_message":"Homebridge plugins that are marked as verified have been reviewed by the Homebridge project team to ensure they meet various requirements that encourage best practices and a trouble-free user experience.","plugins.manage.verified_subtitle":"This plugin is verified.","plugins.placeholder_search_first":"Use the search bar above to find your first plugin","plugins.placeholder_search_none":"No results were found","plugins.placeholder_search_plugin":"S\xF8k etter plugins \xE5 installere\u2026","plugins.settings.custom.homebridge-gsh.label_account_linked":"Konto tilknyttet","plugins.settings.custom.homebridge-gsh.label_link_account":"Tilknytt konto","plugins.settings.custom.homebridge-gsh.message_about":"Med Homebridge Google Smart Home- plugin kan du kontrollere dine Homebridge-tilbeh\xF8r fra en Google Home-aktivert smarth\xF8ytaler eller Google Home-mobilappen.","plugins.settings.custom.homebridge-gsh.message_account_link_required":"For \xE5 aktivere denne funksjonen m\xE5 du logge inn med din Google- eller GitHub-konto; pass p\xE5 at du bruker samme konto n\xE5r du legger til Homebridge-infoen i mobilappen Google Home.","plugins.settings.custom.homebridge-gsh.message_homebridge_restart_required":"Homebridge krever omstart for at endringene skal tre i kraft.","plugins.settings.deconz.dump_no_exist":"Homebridge deCONZ dump file does not exist yet.","plugins.settings.hue.dump_no_exist":"Homebridge Hue dump file does not exist yet.","plugins.settings.label_open_config_editor":"Open Config Editor","plugins.settings.message_consult_documentation":"Please consult the plugin documentation for instructions on how to correctly configure this plugin.","plugins.settings.message_manual_config_required":"This plugin must be configured manually using the Homebridge UI Config Editor.","plugins.settings.plugin_config_saved":"Plugin Config lagret","plugins.settings.restart_required":"Start Homebridge p\xE5 nytt for \xE5 iverksette endringene.","plugins.stats":"Plugin Statistics","plugins.stats_note":"Plugins cannot be installed from this page, this is provided just for interest.","plugins.status_disabled":"Disabled","plugins.status_installed":"Installert","plugins.support.list_1":"Homebridge plugins are the building blocks of Homebridge, allowing you to add support for new accessories and platforms. Plugins add support for smart lights, cameras, TVs, etc, for brands that don't natively support HomeKit. For example, to bring your Ring doorbells and cameras into HomeKit, you can install the <code>homebridge-ring</code> plugin.","plugins.support.list_2":"Homebridge plugins are created by public contributors in the Homebridge community, and are not typically associated with the Homebridge maintainers, nor with the manufacturers of the accessories themselves. If you have a question about a specific plugin, you should let the plugin developer know via the plugin's GitHub page.","plugins.support.list_3":"There are currently over 4,700 plugins available for Homebridge, so you should be able to find plugins to suit your needs. If you are a Javascript/TypeScript developer (or want to take the opportunity to learn), you can also create your own plugin and share it with the Homebridge community. Check out the Support section for some handy links to get you started.","plugins.support.list_4":"Some plugins allow you to create 'virtual/dummy' accessories, which are accessories that do not have a physical counterpart. These can be used to create virtual accessories in HomeKit, such as virtual switches, lights, or sensors. Try searching for <code>dummy</code> or <code>virtual</code> in the search bar to find some examples.","plugins.toast_failed_to_load_plugin_schema":"Failed to load plugin config schema.","plugins.toast_failed_to_load_plugins":"Kunne ikke laste plugins","plugins.uninstall_bridge_error":"Failed to remove child bridge.","plugins.uninstall_remove_child_bridge":"Remove plugin child bridge?","plugins.uninstall_remove_child_bridges":"Remove {{ count }} plugin child bridges?","plugins.uninstall_remove_config_required":"If you are permanently removing this plugin, make sure you remove any config for this plugin in the config.json before restarting Homebridge.","plugins.uninstall_remove_confirmation":"Are you sure you want to uninstall {{ pluginName }}?","plugins.uninstall_remove_plugin_config":"Remove plugin config?","plugins.uninstall_warn_1":"When removing a child bridge, any accessories published by this bridge will be removed from the Homebridge cache.","plugins.uninstall_warn_2":"The accessories will become stale in HomeKit (showing no response). To remove them, you will need to manually remove this bridge from HomeKit. You can do this in the Home app from the Home Settings section.","reset.accessory_all.desc":"Remove all accessories from the cache.","reset.accessory_all.list_1":"When clicking on the remove button below, Homebridge will restart and all your existing accessories will be removed from Homebridge and HomeKit.","reset.accessory_all.list_2":"All associated HomeKit data will also be removed, this includes room associations, scenes and automations that this accessory uses.","reset.accessory_all.list_3":"After Homebridge restarts, your plugins will re-add any accessories as if the plugin was being installed for the first time.","reset.accessory_all.title":"Remove All Accessories","reset.accessory_ind.bridge":"Bridge","reset.accessory_ind.desc":"Remove individual accessories from the cache.","reset.accessory_ind.done":"Finished removing accessories from the cache, check the log for confirmation and/or errors.","reset.accessory_ind.fail":"Failed to remove accessories from cache, check the log for errors.","reset.accessory_ind.list_1":"Some plugins don't clean up after themselves properly. If you have stale accessories, you can remove them from the cache. This function can also be used to reset an existing accessory in HomeKit.","reset.accessory_ind.list_2":"The accessories will be removed from Homebridge and HomeKit, along with their related room associations, scenes and automations.","reset.accessory_ind.list_3":"After Homebridge restarts, your plugins will re-add any removed accessories as if the plugin was being installed for the first time.","reset.accessory_ind.title":"Remove Individual Accessories","reset.accessory_ind.unknown":"Unknown Name","reset.accessory_reset":"Homebridge tilbeh\xF8r nullstilling","reset.action_is_irreversible":"Denna handling kan ikke angres. Les n\xF8ye f\xF8r du fortsetter.","reset.bridge_accessories.desc":"Remove all accessories published by a child bridge from the cache.","reset.bridge_accessories.empty":"You have no bridges from which to remove accessories.","reset.bridge_accessories.list_1":"This function can be used to reset a plugin's existing accessories in HomeKit. They will be removed from Homebridge and HomeKit, and then re-added by the plugin as new accessories.","reset.bridge_accessories.list_2":"The child bridge's pairing details and status will remain the same.","reset.bridge_accessories.title":"Remove Bridge Accessories","reset.bridge_all.desc":"Reset all bridges by removing them from the cache. This includes the main Homebridge bridge, child bridges and bridges for external accessories.","reset.bridge_all.list_1":"This will reset the Homebridge bridge, all child bridges and bridges for external accessories from HomeKit.","reset.bridge_all.list_2":"Note that your accessories will continue to show in HomeKit as no response, until the bridges are manually removed from HomeKit. You can do this in the Home app, by accessing Home Settings \u2192 Home Hubs & Bridges \u2192 {Bridge} \u2192 Remove Bridge from Home.","reset.bridge_all.list_3":"All your Homebridge to HomeKit accessories, scenes and automations will need to be reconfigured after the unpairing.","reset.bridge_all.list_4":"The pin for pairing your Homebridge bridge to HomeKit will be changed. You can see the new values in your Homebridge config after the unpairing.","reset.bridge_all.title":"Reset All Bridges","reset.bridge_ind.desc":"Reset an individual bridge by removing it from the cache. This may be a child bridge or a bridge for an external accessory like a camera or TV.","reset.bridge_ind.desc_child_active":"Homebridge has detected that these child bridges are in-use. Once removed, their accessories will be removed from the Homebridge cache. If paired with HomeKit, the bridge's accessories will show as 'No Response', and the bridge will need to be removed via the Home app. The child bridge's pairing information will be changed. Once Homebridge has restarted, the plugin will create the new child bridge and accessories. The new bridge will need to be re-paired with HomeKit. You can view the new pairing information from the corresponding plugin's bridge settings page.","reset.bridge_ind.desc_child_stale":"Homebridge has detected that these bridges are not in-use, but double-check before deleting. They could be left-over from previously uninstalled plugins. If paired with HomeKit, the accessories will show as 'No Response', and the bridge will need to be removed via the Home app.","reset.bridge_ind.desc_non_child":"Homebridge has detected that these bridges are in-use. You can remove them from the cache, but they will likely be re-added by the plugin when Homebridge restarts. The pairing information will remain unchanged.","reset.bridge_ind.done":"Finished resetting bridges, check the log for confirmation and/or errors.","reset.bridge_ind.fail":"Failed to reset bridges, check the log for errors.","reset.bridge_ind.head_child_active":"Active Child Bridges","reset.bridge_ind.head_child_stale":"Stale Child Bridges","reset.bridge_ind.head_non_child":"Non Child Bridges","reset.bridge_ind.title":"Reset Individual Bridges","reset.bridges.desc":"If you are having trouble pairing Homebridge, an external accessory or a child bridge to HomeKit, you may need to unpair it from HomeKit to start again.","reset.bridges.empty":"You have no bridges to unpair from HomeKit.","reset.bridges.title":"Bridges","reset.clear_cache_single.list_3":"When removing an accessory from the cache, all its associated HomeKit data will be removed. This includes any associated scenes and automations that use this accessory.","reset.delete_success":"Restarting Homebridge and clearing accessory cache.","reset.error_message":"Accessory cache could not be loaded. You may not have any cached accessories.","reset.failed_to_reset":"Det gikk ikke \xE5 nullstille Homebridge. Se logger.","reset.force_restart_hb_help_text":"Use this action to force the hb-service service to do a full restart.","reset.no_accessories":"You have no cached accessories to remove.","restart.child_bridge_list":"Please restart these child bridges for the changes to apply:","restart.child_bridges":"Please restart the plugin's child bridges for the changes to apply.","restart.label_restart_command_executed":"Omstartskommandoen kj\xF8res","restart.please_wait_while_server_restarts":"Vent, denne siden omdirigeres automatisk n\xE5r serveren er online igjen.","restart.server_is_taking_long_time_to_restart":"Omstart av serveren tar lang tid. Du kan bli n\xF8dt til \xE5 hente opp Homebridge-tjenesten manuelt.","restart.service_ready":"Homebridge Server Ready","restart.title_restart":"Starte Homebridge p\xE5 nytt","restart.toast_server_restart_error":"En feil oppsto med \xE5 sende omstartkommandoen til serveren","restart.toast_server_restart_timeout":"Serveren bruker lang tid p\xE5 \xE5 komme tilbake online","restart.toast_server_restarted":"Serveren har startet p\xE5 nytt","restart.ui_online":"Homebridge UI Online","rpi.throttled.currently_message":"This Raspberry Pi is reporting it is currently under-voltage; please check it is connected to an appropriate power supply. Under-voltage can result in system instability and SD card corruption.","rpi.throttled.previously_message":"This Raspberry Pi has reported an under-voltage event since it was last rebooted; please check it is connected to an appropriate power supply.","rpi.throttled.undervoltage_title":"Under Voltage","settings.accessory.debug":"Accessory Debug Mode","settings.accessory.debug_desc":"If enabled, the Homebridge UI will log debug level messages to the console.","settings.cache.desc":"Homebridge maintains accessories in cache so they aren't removed and re-added to HomeKit each time Homebridge restarts. Sometimes this cache can become out of sync with the actual accessories in Homebridge.","settings.changes.saved":"Your changes have been saved and require a restart to take effect.","settings.datetime.incorrect":"The date and time on your Homebridge server seem to be incorrect. This may cause unexpected issues. Click here for more information.","settings.display.blue":"Blue","settings.display.bluegrey":"Blue Grey","settings.display.brown":"Brown","settings.display.cyan":"Cyan","settings.display.dark":"Dark","settings.display.deep_purple":"Deep Purple","settings.display.green":"Green","settings.display.grey":"Grey","settings.display.indigo":"Indigo","settings.display.lang":"Language","settings.display.light":"Light","settings.display.lighting_mode":"Lighting Mode","settings.display.menu_default":"Default","settings.display.menu_freeze":"Keep Closed (On Desktop)","settings.display.menu_mode":"Menu Mode","settings.display.orange":"Orange","settings.display.pink":"Pink","settings.display.purple":"Purple","settings.display.red":"Red","settings.display.show_betas":"Prefer Beta Versions","settings.display.teal":"Teal","settings.display.temp_units":"Temperature Units","settings.display.temp_units.c":"Celsius (\xB0C)","settings.display.temp_units.f":"Fahrenheit (\xB0F)","settings.display.theme":"Theme","settings.display.wallpaper":"Wallpaper","settings.display.wallpaper_intro":"Upload a wallpaper for your Homebridge UI. This is currently shown on the login screen.","settings.display.wallpaper_rule":"You can choose an image file which is up to {{ maxFileSizeText }}.","settings.display.wallpaper_rule2":"You will need to click Save to upload the wallpaper to your Homebridge storage directory.","settings.display.wallpaper_success":"Wallpaper was successfully updated.","settings.general.title_display":"Display","settings.general.title_general":"General","settings.linux.restart":"Restart Command","settings.linux.restart_desc":"If no restart command is set the process will terminate with a non-zero exit code.","settings.linux.shutdown":"Shutdown Command","settings.linux.shutdown_desc":"If no shutdown command is set the process will terminate with a non-zero exit code.","settings.linux.temp":"Temperature File Path","settings.linux.temp_desc":"If you are running Homebridge on a Raspberry Pi, you can enter the path to the OS temperature file here. This will display the current temperature on the UI status page.","settings.matter.desc":"Enables Matter accessories on the main bridge. If only using Matter with child bridges, this setting does not need to be enabled - child bridges have independent Matter settings in their plugin bridge settings.","settings.matter.enabled":"Enabled","settings.matter.enabled_desc":"Whether to start a Matter instance and allow plugins to expose Matter accessories.","settings.matter.port":"Port","settings.matter.port_desc":"This must be between 1025 and 65533, and unique to any other configured port.","settings.matter.title":"Matter Settings","settings.mdns_advertiser":"mDNS Advertiser","settings.mdns_advertiser_exp":"experimental","settings.mdns_advertiser_help":"If you have trouble connecting Homebridge to HomeKit (all accessories showing 'No Response' in the Home app), try using one of the alternate mDNS advertisers.","settings.mdns_advertiser_not_connected":"Not Connected","settings.mdns_advertiser_rec":"recommended","settings.name":"Homebridge Name","settings.network.hb_package":"Homebridge Module Path","settings.network.hb_package_desc":"If you have multiple versions of Homebridge installed, you can specify the path to the version you want to use here.","settings.network.host":"Host IP Address","settings.network.host_desc":"The host IP address to listen on. In most cases this will be <code>::</code> or <code>0.0.0.0</code>.","settings.network.mdns_advertise":"Advertise Via mDNS","settings.network.mdns_advertise_help":"Enable mDNS advertising (using Bonjour) for your Homebridge UI, making it discoverable as an HTTP service on your local network.","settings.network.message_network_interface":"If no network interfaces are selected, Homebridge will attempt to automatically determine which interfaces to advertise.","settings.network.port_end":"End Port","settings.network.port_end_desc":"Control the end of the range of ports that separate accessories (like camera or television) should run on. This must be between 1025 and 65533, and higher than the start port above.","settings.network.port_hb":"Homebridge Port","settings.network.port_hb_desc":"The port number to run the Homebridge bridge on. This must be between 1025 and 65533, and should not be the same as the Homebridge UI port.","settings.network.port_start":"Start Port","settings.network.port_start_desc":"Control the start of the range of ports that separate accessories (like camera or television) should run on. This must be between 1025 and 65533, and lower than the end port below.","settings.network.port_ui":"UI Port","settings.network.port_ui_desc":"The port number to run the Homebridge UI on.","settings.network.proxy":"Reverse Proxy Hostname","settings.network.proxy_desc":"When running behind a reverse proxy you may need to enter the hostname you use to access the UI.","settings.network.title_network":"Network","settings.network.title_network_interfaces":"Network Interfaces","settings.network.title_security":"Security","settings.network.title_terminal":"Logging & Terminal","settings.network.webroot":"Webroot Path","settings.network.webroot_desc":"This can be configured if you want to access the Homebridge UI under a specific URL path.","settings.reset_bridge.error":"Failed to reset bridge.","settings.security.auth":"Authentication","settings.security.auth_desc":"Whether to enable authentication for the Homebridge UI with a username and password.","settings.security.cert":"Certificate Path","settings.security.https":"Enable HTTPS","settings.security.https_desc":"Enable HTTPS using an auto-generated self-signed certificate or by providing your own certificate files.","settings.security.https_keycert":"Private Key + Certificate","settings.security.https_pfx":"PKCS#12 Certificate + Passphrase","settings.security.https_raspbian":"HTTPS is already enabled by default when running the Homebridge Raspbian image {{ link }}.","settings.security.https_selfsigned":"Self-Signed Certificate","settings.security.key":"Private Key Path","settings.security.pass":"PKCS#12 Certificate Passphrase","settings.security.pfx":"PKCS#12 Certificate Path","settings.security.selfsigned_generate_keycert":"Generate Self\u2011Signed & Use as Key + Cert","settings.security.selfsigned_generate_selfsigned":"Generate & Enable Self\u2011Signed Mode","settings.security.selfsigned_generate_success_keycert":"Generated self\u2011signed certificate and set as Key + Cert","settings.security.selfsigned_generate_success_selfsigned":"Generated self\u2011signed certificate and enabled Self\u2011signed mode","settings.security.selfsigned_hostnames":"Certificate Hostnames","settings.security.selfsigned_hostnames_desc":"Comma-separated list of hostnames or IP addresses to include in the certificate (e.g., localhost, 127.0.0.1, homebridge.local, 192.168.1.100)","settings.security.ssl_upload_keycert_aria":"Upload private key and certificate","settings.security.ssl_upload_pfx_aria":"Upload PKCS#12 certificate","settings.security.ssl_upload_success_keycert":"Certificate and private key uploaded","settings.security.ssl_upload_success_pfx":"PKCS#12 certificate uploaded","settings.security.ssl_validate":"Validate SSL","settings.security.ssl_validate_error":"SSL configuration is invalid.","settings.security.ssl_validate_success":"SSL configuration is valid.","settings.security.ui_control":"Accessory Control Lists","settings.security.ui_control_desc":"Define which bridges and bridged accessories can be controlled or blocked by the Homebridge UI.","settings.security.ui_control_desc_2":"Allow the UI to control the accessories on a bridge by toggling on the switch below.","settings.service.debug_tooltip":"Some plugins require you to set the DEBUG environment variable {{ link }} to enable debug level logging.","settings.service.node_tooltip":"Node.js runtime options for this process. This should be kept blank unless you know what you are doing.","settings.startup.debug":"Homebridge Debug Mode","settings.startup.debug_desc_v1":"Enable this if you need Homebridge to output more detailed logs. This setting applies to the main Homebridge bridge as well as all child bridges. Some plugins may also adhere to this setting and output more detailed logs.","settings.startup.debug_desc_v2":"Enable this if you need Homebridge to output more detailed logs. This setting applies to the main Homebridge bridge. The setting for child bridges can be found in the child bridge configuration from the plugins page. Some plugins may also adhere to this setting and output more detailed logs.","settings.startup.insecure":"Enable UI Accessory Control","settings.startup.insecure_desc":"To control your accessories via the Homebridge UI you must be running Homebridge in insecure mode.","settings.startup.keep_accessories":"Keep Accessories Of Uninstalled Plugins","settings.startup.keep_accessories_desc":"If enabled, accessories of platform plugins will remain in the cache even after the plugin is uninstalled. This can be useful if you plan to reinstall the plugin later.","settings.startup.metrics":"Enable Server Metric Monitoring","settings.startup.metrics_desc":"When enabled, the Homebridge UI will collect and show CPU and memory stats on the status page.","settings.startup.scheduled_restart":"Scheduled Restart Cron","settings.startup.scheduled_restart_desc":"Schedule automatic restarts relative to your timezone using a cron expression. Leave empty to disable. Create a cron expression {{ link }}.","settings.startup.scheduled_restart_desc_2":"You can apply this setting per child bridge from the plugin bridge configuration.","settings.startup.session":"Session Timeout","settings.startup.session_days":"days","settings.startup.session_desc":"The number of seconds before a user will be logged out of the UI. Defaults to 8 hours.","settings.startup.session_hours":"hours","settings.startup.session_inactivity_based":"Inactivity-Based Session Refresh","settings.startup.session_inactivity_based_desc":"When enabled, the session will automatically refresh on navigation to prevent logout during active use.","settings.startup.session_minutes":"minutes","settings.terminal.buffer_size":"Terminal Buffer Character Size","settings.terminal.buffer_size_help":"Amount of terminal output to preserve for persistent sessions. Larger values use more memory.","settings.terminal.log_max":"Log Max Size","settings.terminal.log_max_desc":"The max log size (bytes). Set to -1 to disable log truncation.","settings.terminal.log_truncate":"Log Truncate Size","settings.terminal.log_truncate_desc":"The size (bytes) to truncate the log to once it goes over the max size specified above.","settings.terminal.persistence":"Terminal Session Persistence","settings.terminal.persistence_confirm_message":"Disabling terminal session persistence will terminate your current terminal session.","settings.terminal.persistence_confirm_title":"Disable Terminal Session Persistence","settings.terminal.persistence_help":"When enabled, terminal sessions will persist when navigating away and can be resumed when returning to the terminal page (or status page widget). Terminal sessions are shared across Homebridge UI admin users.","settings.terminal.warning":"Hide Terminal Termination Warning","settings.terminal.warning_help":"When enabled, the warning dialog will not be shown before terminating non-persistent terminal sessions.","settings.title_startup_options":"Startup & Environment","settings.unpair_bridge.load_error":"Paired bridges could not be loaded.","settings.warning_pwa":"This setting cannot be changed when accessing the UI from a PWA, please use a regular browser.","settings.warning_webroot":"Homebridge does not have write access to the served <code>index.html</code> file. To set up a webroot, please fix this issue and restart the Homebridge service.","setup.button_get_started":"Get Started","setup.create_account":"Create Account","setup.intro":"If you are setting up for the first time, or if you just need to reset the password for your existing Homebridge setup, then choose <strong>Get Started</strong>.","setup.welcome_to_homebridge":"Welcome to Homebridge",setup_wizard_complete:"Restore Complete!",setup_wizard_complete_title:"Congratulations!",setup_wizard_completed:"The setup procedure is complete and you are now ready to start using Homebridge.",setup_wizard_create_info:"Once Homebridge is set up, you can set up 2FA on your account, or disable the need for authentication altogether.",setup_wizard_page_title:"Setup Homebridge",setup_wizard_restore:"Restore From Backup",setup_wizard_restoring:"Restoring Backup...",setup_wizard_starting:"Starting Homebridge...","status.code_scan":"Skann for \xE5 legge til HomeKit","status.cpu.load":"Bruk","status.cpu.temp":"Temp","status.cpu.title_cpu":"CPU","status.credits.plugins_thanks":"Homebridge plugins are created by awesome developers in the Homebridge community.","status.credits.supporters":"Supporters","status.credits.title":"Credits","status.credits.translations":"Translations","status.credits.translations_thanks":"Homebridge UI translations are provided by the community, with special thanks to:","status.homebridge.checking":"Ser etter oppdateringer\u2026","status.homebridge.up_to_date":"Oppdatert","status.memory.label_available":"Ledig","status.memory.label_total":"Totalt","status.memory.title_memory":"Minne","status.network.received_per_second":"Received","status.network.sent_per_second":"Sent","status.network.title_network":"Network Activity","status.readiness.node_no":"Your version of Node.js is not compatible with {{ app }}.","status.readiness.node_yes":"Your version of Node.js is compatible with {{ app }}.","status.readiness.title":"{{ app }} Readiness","status.services.label_loading":"Loading...","status.services.label_not_enabled":"Not Enabled","status.services.label_not_running":"Kj\xF8rer ikke","status.services.label_running":"Kj\xF8rer","status.services.updates":"Update Information","status.uptime.title_uptime":"Oppetid","status.widget.accessories.choose_accessories":"Choose the accessories to display in this widget from the Accessories page.","status.widget.account_1":"The widget layout is shared among all Homebridge UI users.","status.widget.account_2":"Admin users can modify the layout, while non-admin users cannot make changes.","status.widget.add.label_pairing_code":"Pairing Code","status.widget.add.matter_pairing_code":"Matter Pairing Code","status.widget.bridge.restart_error":"Failed to restart child bridge.","status.widget.clock":"Clock","status.widget.clock_dateformat":"Date Format","status.widget.clock_timeformat":"Time Format","status.widget.expand_docker":"Expand Docker Container Information","status.widget.font_size":"Font Size","status.widget.font_weight":"Font Weight","status.widget.hide_node_info":"Hide Node.js Updates","status.widget.hide_npm":"Show npm Version","status.widget.hide_on_mobile":"Hide in compact view (mobile displays)","status.widget.homebridge_logs":"Homebridge Logs","status.widget.info":"System Information","status.widget.info.arch":"Arch.","status.widget.info.config_path":"Config Path","status.widget.info.docker":"Docker","status.widget.info.docker_update_message":"Updating the Docker container requires manually pulling the latest image and restarting the container. Homebridge does not perform this automatically. Refer to your Docker image's documentation for update instructions.","status.widget.info.docker_update_title":"Docker Container Update","status.widget.info.hostname":"Hostname","status.widget.info.ipv4":"IPv4","status.widget.info.ipv6":"IPv6","status.widget.info.no":"No","status.widget.info.node_major":"Node.js Major Versions","status.widget.info.node_next_no":"Your current architecture ({{ architecture }}) is 32-bit, which is not supported. You will need to migrate to a 64-bit system. Please use Node.js v22 instead, which we will be supporting until April 2027.","status.widget.info.node_next_yes":"Your current architecture ({{ architecture }}) supports Node.js v24, so you can upgrade when you are ready.","status.widget.info.node_unsupp":"Unsupported","status.widget.info.node_unsupp_message":"You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.","status.widget.info.node_update_message":"Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.","status.widget.info.node_update_message_2":"For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.","status.widget.info.nodejs_path":"Node.js Path","status.widget.info.os":"OS","status.widget.info.plugin_path":"Plugin Path","status.widget.info.service_user":"User","status.widget.info.storage_path":"Storage Path","status.widget.info.synology_package":"Synology Package","status.widget.info.timezone":"Time Zone","status.widget.info.yes":"Yes","status.widget.network.history_items":"History Items","status.widget.network.items":"items","status.widget.network.network_interface":"Network Interface","status.widget.network.none_selected":"Using Default","status.widget.network.refresh_interval":"Refresh Interval","status.widget.network.seconds":"seconds","status.widget.qr_paired":"Paired","status.widget.qr_unpaired":"Not Paired","status.widget.show_hide":"Show/Hide Widgets","status.widget.title_manage_widget":"Manage Widget","status.widget.update_node_no":"{{ pluginName }} is not compatible with Node {{ nodeVersion }}.","status.widget.update_node_unknown":"The developer of {{ pluginName }} has not specified the Node version compatibility.","status.widget.update_node_yes":"{{ pluginName }} is compatible with Node {{ nodeVersion }}.","status.widget.uptime.label_process":"Process","status.widget.uptime.label_server":"Server","status.widget.weather.label_config_required_help":"Please select your city in the widget settings.","status.widget.weather.label_search_for_your_city":"Search for your city:","status.widget.weather.title_weather":"Weather","support.dev.api":"Homebridge API","support.dev.api_hap":"HAP-NodeJS API","support.dev.api_hap_sub":"HAP-NodeJS is an implementation of the HomeKit Accessory Server as specified in the HomeKit Accessory Protocol (HAP), which is defined by Apple as part of the HomeKit Framework.","support.dev.api_sub":"Homebridge is a lightweight Node.js server you can run on your home network to emulate the HomeKit Accessory Protocol (HAP).","support.dev.item_swagger":"Swagger Docs","support.dev.item_swagger_sub":"The Homebridge REST API allows you to interact with your Homebridge server using HTTP requests.","support.dev.template":"Plugin Template Repo","support.dev.template_sub":"A template Homebridge plugin that can be used as a base to help you get started developing your own plugin.","support.dev.title":"Developers","support.dev.verified":"Verified By Homebridge","support.dev.verified_sub":"The Verified By Homebridge program allows plugin developers to get their plugins reviewed and endorsed by the Homebridge project team.","support.links.discord":"Discord Server","support.links.discord_sub":"Join the Homebridge Discord chat server to chat with other users and developers.","support.links.documentation":"Documentation","support.links.documentation_sub":"The Homebridge documentation provides a wealth of information on how to get started with Homebridge and common issue resolutions.","support.links.issue":"Report An Issue","support.links.issue_sub":"If you are experiencing an issue with Homebridge, please open a new issue on GitHub. This should not be used for issues with specific plugins.","support.links.reddit":"Reddit Community","support.links.reddit_sub":"The Homebridge subreddit is a great place to share your Homebridge setup and ask for help.","support.links.title":"Useful Links","support.title":"Support","toast.no_auth":"Only administrators may access the requested page.","toast.title_error":"Feil","toast.title_success":"Suksess","toast.title_warning":"Advarsel","users.button_add_user":"Legg til bruker","users.label_admin_user":"Adminbruker?","users.label_confirm_password":"Bekreft passord","users.label_full_name":"Fullt navn","users.label_new_password":"Nytt passord","users.label_password":"Passord","users.label_username":"Brukernavn","users.setup_2fa":"Setup 2FA","users.setup_2fa_activate_error":"An error occurred activating 2FA","users.setup_2fa_cannot_setup_2fa":"Cannot Setup 2FA","users.setup_2fa_disable":"Disable 2FA","users.setup_2fa_disable_current_password":"Enter your current password to disable two factor authentication:","users.setup_2fa_disable_success":"Two factor authentication has been disabled.","users.setup_2fa_enable":"Enable 2FA","users.setup_2fa_enable_error":"An error occurred setting up 2FA","users.setup_2fa_enabled_success":"Two factor authentication has been enabled.","users.setup_2fa_enter_code":"Enter the code from your authenticator app:","users.setup_2fa_scan_qr_code":"Scan the QR code below with your authenticator app:","users.setup_2fa_scan_qr_manual":"If you cannot scan the QR code, you can enter the following secret key manually:","users.setup_2fa_server_time_out":"Your server's clock is out by {{ timeDiffError }} ms. The maximum allowed is +/-5000 ms.","users.setup_2fa_warning":"Two Factor Authentication requires your Homebridge server to have a very accurate date and time to login. If your server does not have the ability to keep time accurately you should not enable 2FA, otherwise you risk being locked out of the Homebridge UI.","users.support.acc_1":"There are two types of users that can access the Homebridge UI: admin and non-admin users. Admins can access and control everything available in the UI. Non-admin users have a read-only view of the following pages:","users.support.acc_2":"2FA can only be set up on admin accounts, and must do this via the users page logged in as themselves.","users.support.control":"can be controlled","users.title_add_user":"Legg til bruker","users.title_edit_user":"Rediger bruker","users.title_users":"Brukere","users.toast_added_new_user":"Lagt til ny bruker","users.toast_failed_to_add_user":"Kunne ikke legge til bruker","users.toast_failed_to_delete_user":"Kunne ikke slette brukeren","users.toast_updated_user":"Bruker oppdatert","users.toast_user_deleted":"Bruker slettet"}});export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-MQTRL6KN.js";import"./chunk-B4AJQJMI.js";export default a();
|
package/public/index.html
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
<link rel="manifest" href="/assets/manifest.webmanifest"/>
|
|
17
17
|
<meta name="theme-color" content="#140a33" media="(prefers-color-scheme: light)"/>
|
|
18
18
|
<meta name="theme-color" content="#0f0f0f" media="(prefers-color-scheme: dark)"/>
|
|
19
|
-
<link rel="stylesheet" href="styles-
|
|
19
|
+
<link rel="stylesheet" href="styles-CT2LPGES.css" crossorigin="use-credentials"></head>
|
|
20
20
|
|
|
21
21
|
<body>
|
|
22
22
|
<app-root></app-root>
|
|
23
|
-
<link rel="modulepreload" href="chunk-
|
|
23
|
+
<link rel="modulepreload" href="chunk-QGV5S3KG.js"><link rel="modulepreload" href="chunk-DMKHEJF5.js"><link rel="modulepreload" href="chunk-DWU5C3KH.js"><link rel="modulepreload" href="chunk-ZCGZM7LU.js"><link rel="modulepreload" href="chunk-EEA6UA46.js"><link rel="modulepreload" href="chunk-Y67I4K2H.js"><link rel="modulepreload" href="chunk-BEI5QPKL.js"><link rel="modulepreload" href="chunk-UJEB6C35.js"><link rel="modulepreload" href="chunk-NP23WSXR.js"><link rel="modulepreload" href="chunk-URTTNRYM.js"><script src="polyfills-NISNRVWY.js" type="module" crossorigin="use-credentials"></script><script src="main-VGG7NRKO.js" type="module" crossorigin="use-credentials"></script></body>
|
|
24
24
|
</html>
|