UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

2 lines 21.1 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["97305"],{46355:function(e,n,o){o.d(n,{D:()=>v,S:()=>b});o(9359),o(56475),o(40251);var t=o(57243),r=o(75101),i=o(57816),a=o(91715),s=o(38572),c=o(76131),l=o(72548),d=o(91395),p=o(73192),g=o(72344),f=o(83523);let _,h,u,m=e=>e;const b=["zha","zwave_js","matter"],v=async(e,n,o,b)=>{if(null!=b&&b.domain){const e=await n.loadBackendTranslation("title",b.domain);b.domain=(0,i.Lh)(e,b.domain)}if(null!=b&&b.brand){var v;const e=await(0,a.G)(n);b.brand=(null===(v=e.core.integration[b.brand])||void 0===v?void 0:v.name)||b.brand}if("zwave_js"===o){const i=null!=b&&b.config_entry?void 0:(await(0,r.pB)(n,{domain:o})).filter((e=>!e.disabled_by));if(!((0,g.p)(n,"zwave_js")&&(null!=b&&b.config_entry||null!=i&&i.length)))return void(0,c.showConfirmationDialog)(e,{title:n.localize("ui.panel.config.integrations.config_flow.missing_zwave_zigbee_title",{integration:"Z-Wave"}),text:n.localize("ui.panel.config.integrations.config_flow.missing_zwave_zigbee",{integration:"Z-Wave",brand:(null==b?void 0:b.brand)||(null==b?void 0:b.domain)||"Z-Wave",supported_hardware_link:(0,t.dy)(_||(_=m`<a href="${0}" target="_blank" rel="noreferrer">${0}</a>`),(0,p.R)(n,"/docs/z-wave/controllers"),n.localize("ui.panel.config.integrations.config_flow.supported_hardware"))}),confirmText:n.localize("ui.panel.config.integrations.config_flow.proceed"),confirm:()=>{(0,s.t)(e,{startFlowHandler:"zwave_js"})}});(0,d.B)(e,{entry_id:(null==b?void 0:b.config_entry)||i[0].entry_id})}else if("zha"===o){const i=null!=b&&b.config_entry?void 0:(await(0,r.pB)(n,{domain:o})).filter((e=>!e.disabled_by));if(!((0,g.p)(n,"zha")&&(null!=b&&b.config_entry||null!=i&&i.length)))return void(0,c.showConfirmationDialog)(e,{title:n.localize("ui.panel.config.integrations.config_flow.missing_zwave_zigbee_title",{integration:"Zigbee"}),text:n.localize("ui.panel.config.integrations.config_flow.missing_zwave_zigbee",{integration:"Zigbee",brand:(null==b?void 0:b.brand)||(null==b?void 0:b.domain)||"Zigbee",supported_hardware_link:(0,t.dy)(h||(h=m`<a href="${0}" target="_blank" rel="noreferrer">${0}</a>`),(0,p.R)(n,"/integrations/zha/#known-working-zigbee-radio-modules"),n.localize("ui.panel.config.integrations.config_flow.supported_hardware"))}),confirmText:n.localize("ui.panel.config.integrations.config_flow.proceed"),confirm:()=>{(0,s.t)(e,{startFlowHandler:"zha"})}});(0,f.c)("/config/zha/add")}else if("matter"===o){const i=null!=b&&b.config_entry?void 0:(await(0,r.pB)(n,{domain:o})).filter((e=>!e.disabled_by));if(!((0,g.p)(n,o)&&(null!=b&&b.config_entry||null!=i&&i.length)))return void(0,c.showConfirmationDialog)(e,{title:n.localize("ui.panel.config.integrations.config_flow.missing_zwave_zigbee_title",{integration:"Matter"}),text:n.localize("ui.panel.config.integrations.config_flow.missing_matter",{integration:"Matter",brand:(null==b?void 0:b.brand)||(null==b?void 0:b.domain)||"Matter",supported_hardware_link:(0,t.dy)(u||(u=m`<a href="${0}" target="_blank" rel="noreferrer">${0}</a>`),(0,p.R)(n,"/integrations/matter"),n.localize("ui.panel.config.integrations.config_flow.supported_hardware"))}),confirmText:n.localize("ui.panel.config.integrations.config_flow.proceed"),confirm:()=>{(0,s.t)(e,{startFlowHandler:"matter"})}});(0,l.H)(e)}}},75101:function(e,n,o){o.d(n,{$H:()=>t,DJ:()=>s,LZ:()=>i,Nn:()=>g,Ny:()=>f,Pk:()=>h,Q4:()=>a,RQ:()=>l,SO:()=>d,T0:()=>_,aR:()=>r,iJ:()=>p,pB:()=>c});o(71695),o(9359),o(56475),o(1331),o(19423),o(47021);const t=(e,n)=>e.callWS({type:"config_entries/subentries/list",entry_id:n}),r=(e,n,o)=>e.callWS({type:"config_entries/subentries/delete",entry_id:n,subentry_id:o}),i=["migration_error","setup_error","setup_retry"],a=["not_loaded","loaded","setup_error","setup_retry"],s=(e,n,o)=>{const t={type:"config_entries/subscribe"};return o&&o.type&&(t.type_filter=o.type),e.connection.subscribeMessage((e=>n(e)),t)},c=(e,n)=>{const o={};return n&&(n.type&&(o.type_filter=n.type),n.domain&&(o.domain=n.domain)),e.callWS(Object.assign({type:"config_entries/get"},o))},l=(e,n)=>e.callWS({type:"config_entries/get_single",entry_id:n}),d=(e,n,o)=>e.callWS(Object.assign({type:"config_entries/update",entry_id:n},o)),p=(e,n)=>e.callApi("DELETE",`config/config_entries/entry/${n}`),g=(e,n)=>e.callApi("POST",`config/config_entries/entry/${n}/reload`),f=(e,n)=>e.callWS({type:"config_entries/disable",entry_id:n,disabled_by:"user"}),_=(e,n)=>e.callWS({type:"config_entries/disable",entry_id:n,disabled_by:null}),h=(e,n)=>{if(!n)return e;const o=e.find((e=>e.entry_id===n));if(!o)return e;return[o,...e.filter((e=>e.entry_id!==n))]}},15681:function(e,n,o){o.d(n,{D4:()=>d,D7:()=>h,Ky:()=>l,P3:()=>s,V3:()=>b,WW:()=>v,XO:()=>p,ZJ:()=>m,d4:()=>_,oi:()=>f,pV:()=>a,zO:()=>g});var t=o(62212),r=o(22381),i=o(57816);const a=["bluetooth","dhcp","discovery","hardware","hassio","homekit","integration_discovery","mqtt","ssdp","unignore","usb","zeroconf"],s=["reauth"],c={"HA-Frontend-Base":`${location.protocol}//${location.host}`},l=(e,n,o)=>{var t;return e.callApi("POST","config/config_entries/flow",{handler:n,show_advanced_options:Boolean(null===(t=e.userData)||void 0===t?void 0:t.showAdvanced),entry_id:o},c)},d=(e,n)=>e.callApi("GET",`config/config_entries/flow/${n}`,void 0,c),p=(e,n,o)=>e.callApi("POST",`config/config_entries/flow/${n}`,o,c),g=(e,n,o)=>e.callWS({type:"config_entries/ignore_flow",flow_id:n,title:o}),f=(e,n)=>e.callApi("DELETE",`config/config_entries/flow/${n}`),_=(e,n)=>e.callApi("GET","config/config_entries/flow_handlers"+(n?`?type=${n}`:"")),h=e=>e.sendMessagePromise({type:"config_entries/flow/progress"}),u=(e,n)=>e.subscribeEvents((0,r.D)((()=>h(e).then((e=>n.setState(e,!0)))),500,!0),"config_entry_discovered"),m=e=>(0,t._)(e,"_configFlowProgress",h,u),b=(e,n)=>m(e.connection).subscribe(n),v=(e,n)=>n.context.title_placeholders&&0!==Object.keys(n.context.title_placeholders).length?e(`component.${n.handler}.config.flow_title`,n.context.title_placeholders)||("name"in n.context.title_placeholders?n.context.title_placeholders.name:(0,i.Lh)(e,n.handler)):(0,i.Lh)(e,n.handler)},91715:function(e,n,o){o.d(n,{G:()=>t,p:()=>r});o(71695),o(47021);const t=e=>e.callWS({type:"integration/descriptions"}),r=(e,n)=>{if(e){if(n in e){const o=e[n];if("integration_type"in o)return o}for(const o of Object.values(e))if("integrations"in o&&o.integrations&&n in o.integrations)return o.integrations[n]}}},38572:function(e,n,o){o.d(n,{t:()=>m});o(63721),o(71695),o(40251),o(47021);var t=o(57243),r=o(15681),i=o(57816),a=o(7956);let s,c,l,d,p,g,f,_,h,u=e=>e;const m=(e,n)=>(0,a.w)(e,n,{flowType:"config_flow",showDevices:!0,createFlow:async(e,o)=>{const[t]=await Promise.all([(0,r.Ky)(e,o,n.entryId),e.loadFragmentTranslation("config"),e.loadBackendTranslation("config",o),e.loadBackendTranslation("selector",o),e.loadBackendTranslation("title",o)]);return t},fetchFlow:async(e,n)=>{const o=await(0,r.D4)(e,n);return await e.loadFragmentTranslation("config"),await e.loadBackendTranslation("config",o.handler),await e.loadBackendTranslation("selector",o.handler),o},handleFlowStep:r.XO,deleteFlow:r.oi,renderAbortDescription(e,n){const o=e.localize(`component.${n.translation_domain||n.handler}.config.abort.${n.reason}`,n.description_placeholders);return o?(0,t.dy)(s||(s=u` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),o):n.reason},renderShowFormStepHeader(e,n){return e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.title`,n.description_placeholders)||e.localize(`component.${n.handler}.title`)},renderShowFormStepDescription(e,n){const o=e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.description`,n.description_placeholders);return o?(0,t.dy)(c||(c=u` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),o):""},renderShowFormStepFieldLabel(e,n,o,t){var r;if("expandable"===o.type)return e.localize(`component.${n.handler}.config.step.${n.step_id}.sections.${o.name}.name`);const i=null!=t&&null!==(r=t.path)&&void 0!==r&&r[0]?`sections.${t.path[0]}.`:"";return e.localize(`component.${n.handler}.config.step.${n.step_id}.${i}data.${o.name}`)||o.name},renderShowFormStepFieldHelper(e,n,o,r){var i;if("expandable"===o.type)return e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.sections.${o.name}.description`);const a=null!=r&&null!==(i=r.path)&&void 0!==i&&i[0]?`sections.${r.path[0]}.`:"",s=e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.${a}data_description.${o.name}`,n.description_placeholders);return s?(0,t.dy)(l||(l=u`<ha-markdown breaks .content="${0}"></ha-markdown>`),s):""},renderShowFormStepFieldError(e,n,o){return e.localize(`component.${n.translation_domain||n.translation_domain||n.handler}.config.error.${o}`,n.description_placeholders)||o},renderShowFormStepFieldLocalizeValue(e,n,o){return e.localize(`component.${n.handler}.selector.${o}`)},renderShowFormStepSubmitButton(e,n){return e.localize(`component.${n.handler}.config.step.${n.step_id}.submit`)||e.localize("ui.panel.config.integrations.config_flow."+(!1===n.last_step?"next":"submit"))},renderExternalStepHeader(e,n){return e.localize(`component.${n.handler}.config.step.${n.step_id}.title`)||e.localize("ui.panel.config.integrations.config_flow.external_step.open_site")},renderExternalStepDescription(e,n){const o=e.localize(`component.${n.translation_domain||n.handler}.config.${n.step_id}.description`,n.description_placeholders);return(0,t.dy)(d||(d=u` <p> ${0} </p> ${0} `),e.localize("ui.panel.config.integrations.config_flow.external_step.description"),o?(0,t.dy)(p||(p=u` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),o):"")},renderCreateEntryDescription(e,n){const o=e.localize(`component.${n.translation_domain||n.handler}.config.create_entry.${n.description||"default"}`,n.description_placeholders);return(0,t.dy)(g||(g=u` ${0} <p> ${0} </p> `),o?(0,t.dy)(f||(f=u` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),o):"",e.localize("ui.panel.config.integrations.config_flow.created_config",{name:n.title}))},renderShowFormProgressHeader(e,n){return e.localize(`component.${n.handler}.config.step.${n.step_id}.title`)||e.localize(`component.${n.handler}.title`)},renderShowFormProgressDescription(e,n){const o=e.localize(`component.${n.translation_domain||n.handler}.config.progress.${n.progress_action}`,n.description_placeholders);return o?(0,t.dy)(_||(_=u` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),o):""},renderMenuHeader(e,n){return e.localize(`component.${n.handler}.config.step.${n.step_id}.title`)||e.localize(`component.${n.handler}.title`)},renderMenuDescription(e,n){const o=e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.description`,n.description_placeholders);return o?(0,t.dy)(h||(h=u` <ha-markdown allow-svg breaks .content="${0}"></ha-markdown> `),o):""},renderMenuOption(e,n,o){return e.localize(`component.${n.translation_domain||n.handler}.config.step.${n.step_id}.menu_options.${o}`,n.description_placeholders)},renderLoadingDescription(e,n,o,t){if("loading_flow"!==n&&"loading_step"!==n)return"";const r=(null==t?void 0:t.handler)||o;return e.localize(`ui.panel.config.integrations.config_flow.loading.${n}`,{integration:r?(0,i.Lh)(e.localize,r):e.localize("ui.panel.config.integrations.config_flow.loading.fallback_title")})}})},7956:function(e,n,o){o.d(n,{w:()=>i});o(71695),o(19423),o(40251),o(47021);var t=o(36522);const r=()=>Promise.all([o.e("46379"),o.e("66031"),o.e("72206"),o.e("97983"),o.e("24199"),o.e("78943"),o.e("2142"),o.e("58640"),o.e("52430"),o.e("4697"),o.e("43429"),o.e("27090"),o.e("8949")]).then(o.bind(o,12656)),i=(e,n,o)=>{(0,t.B)(e,"show-dialog",{dialogTag:"dialog-data-entry-flow",dialogImport:r,dialogParams:Object.assign(Object.assign({},n),{},{flowConfig:o,dialogParentElement:e})})}},72548:function(e,n,o){o.d(n,{H:()=>i});o(71695),o(40251),o(47021);var t=o(36522);const r=()=>Promise.all([o.e("46379"),o.e("66031"),o.e("72206"),o.e("97983"),o.e("25618"),o.e("42950"),o.e("65505"),o.e("5080"),o.e("70317"),o.e("86626"),o.e("40410")]).then(o.bind(o,25679)),i=e=>{(0,t.B)(e,"show-dialog",{dialogTag:"dialog-matter-add-device",dialogImport:r,dialogParams:{}})}},91395:function(e,n,o){o.d(n,{B:()=>i});o(71695),o(40251),o(47021);var t=o(36522);const r=()=>Promise.all([o.e("46379"),o.e("66031"),o.e("72206"),o.e("91552"),o.e("97983"),o.e("25618"),o.e("78456"),o.e("56898"),o.e("2142"),o.e("29570"),o.e("71588"),o.e("7010"),o.e("60443"),o.e("87810")]).then(o.bind(o,10772)),i=(e,n)=>{(0,t.B)(e,"show-dialog",{dialogTag:"dialog-zwave_js-add-node",dialogImport:r,dialogParams:n})}},54876:function(e,n,o){o.r(n),o.d(n,{getMyRedirects:()=>w});var t=o(61701),r=o(72621),i=(o(52247),o(19083),o(71695),o(19134),o(97499),o(61006),o(47706),o(88044),o(47021),o(68203)),a=o(57243),s=o(50778),c=o(72344),l=o(46355),d=o(83523),p=o(58776),g=o(57816),f=(o(34515),o(73192));let _,h,u,m,b,v=e=>e;const w=()=>({application_credentials:{redirect:"/config/application_credentials"},developer_assist:{redirect:"/developer-tools/assist"},developer_states:{redirect:"/developer-tools/state"},developer_services:{redirect:"/developer-tools/action"},developer_call_service:{redirect:"/developer-tools/action",params:{service:"string"}},developer_template:{redirect:"/developer-tools/template"},developer_events:{redirect:"/developer-tools/event"},developer_statistics:{redirect:"/developer-tools/statistics"},server_controls:{redirect:"/developer-tools/yaml"},calendar:{component:"calendar",redirect:"/calendar"},companion_app:{redirect:"#external-app-configuration"},config:{redirect:"/config/dashboard"},cloud:{component:"cloud",redirect:"/config/cloud"},config_flow_start:{redirect:"/config/integrations/dashboard/add",params:{domain:"string"}},brand:{redirect:"/config/integrations/dashboard/add",params:{brand:"string"}},integrations:{redirect:"/config/integrations"},integration:{redirect:"/config/integrations/integration",params:{domain:"string"}},config_mqtt:{component:"mqtt",redirect:"/config/mqtt"},config_zha:{component:"zha",redirect:"/config/zha/dashboard"},config_zwave_js:{component:"zwave_js",redirect:"/config/zwave_js/dashboard"},add_zigbee_device:{component:"zha",redirect:"/config/zha/add"},add_zwave_device:{component:"zwave_js",redirect:"/config/zwave_js/add"},add_matter_device:{component:"matter",redirect:"/config/matter/add"},config_bluetooth:{component:"bluetooth",redirect:"/config/bluetooth"},config_energy:{component:"energy",redirect:"/config/energy/dashboard"},devices:{redirect:"/config/devices/dashboard"},entities:{redirect:"/config/entities"},labels:{redirect:"/config/labels"},energy:{component:"energy",redirect:"/energy"},areas:{redirect:"/config/areas/dashboard"},blueprint_import:{component:"blueprint",redirect:"/config/blueprint/dashboard/import",params:{blueprint_url:"url"}},blueprints:{component:"blueprint",redirect:"/config/blueprint/dashboard"},automations:{component:"automation",redirect:"/config/automation/dashboard"},scenes:{component:"scene",redirect:"/config/scene/dashboard"},scripts:{component:"script",redirect:"/config/script/dashboard"},helpers:{redirect:"/config/helpers"},tags:{component:"tag",redirect:"/config/tags"},voice_assistants:{redirect:"/config/voice-assistants"},lovelace_dashboards:{component:"lovelace",redirect:"/config/lovelace/dashboards"},lovelace_resources:{component:"lovelace",redirect:"/config/lovelace/resources"},oauth:{redirect:"/auth/external/callback",navigate_outside_spa:!0,params:{error:"string?",code:"string?",state:"string"}},people:{component:"person",redirect:"/config/person"},zones:{component:"zone",redirect:"/config/zone"},users:{redirect:"/config/users"},general:{redirect:"/config/general"},logs:{redirect:"/config/logs",params:{provider:"string?"}},repairs:{component:"repairs",redirect:"/config/repairs"},info:{redirect:"/config/info"},system_health:{redirect:"/config/repairs?dialog=system-health"},hardware:{redirect:"/config/hardware"},storage:{redirect:"/config/storage"},network:{redirect:"/config/network"},analytics:{redirect:"/config/analytics"},updates:{redirect:"/config/updates"},system_dashboard:{redirect:"/config/system"},customize:{redirect:"/config/dashboard"},profile:{redirect:"/profile"},logbook:{component:"logbook",redirect:"/logbook"},history:{component:"history",redirect:"/history"},media_browser:{component:"media_source",redirect:"/media-browser"},backup:{component:"backup",redirect:"/config/backup"},backup_list:{component:"backup",redirect:"/config/backup/backups"},backup_config:{component:"backup",redirect:"/config/backup/settings"},supervisor_snapshots:{component:"backup",redirect:"/config/backup"},supervisor_backups:{component:"backup",redirect:"/config/backup"},supervisor_system:{redirect:"/config/system"},supervisor_logs:{redirect:"/config/logs?provider=supervisor"},supervisor_info:{redirect:"/config/info"},hacs_repository:{component:"hacs",redirect:"/hacs/_my_redirect/hacs_repository",params:{owner:"string",repository:"string",category:"string?"}}});(0,t.Z)([(0,s.Mo)("ha-panel-my")],(function(e,n){class o extends n{constructor(...n){super(...n),e(this)}}return{F:o,d:[{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,s.Cb)({attribute:!1})],key:"route",value:void 0},{kind:"field",decorators:[(0,s.SB)()],key:"_error",value:void 0},{kind:"field",key:"_redirect",value:void 0},{kind:"method",key:"connectedCallback",value:function(){(0,r.Z)(o,"connectedCallback",this,3)([]);const e=this.route.path.substring(1),n=(0,c.p)(this.hass,"hassio");if(this._redirect=(e=>{var n;return null===(n=w())||void 0===n?void 0:n[e]})(e),e.startsWith("supervisor")&&void 0===this._redirect)return n?void(0,d.c)(`/hassio/_my_redirect/${e}${window.location.search}`,{replace:!0}):void(this._error="no_supervisor");if(!this._redirect)return void(this._error="not_supported");var t;if("#external-app-configuration"===this._redirect.redirect)return null!==(t=this.hass.auth.external)&&void 0!==t&&t.config.hasSettingsScreen?void this.hass.auth.external.fireMessage({type:"config_screen/show"}):void(this._error="not_app");if(this._redirect.component&&!(0,c.p)(this.hass,this._redirect.component)){this.hass.loadBackendTranslation("title",this._redirect.component),this._error="no_component";const e=this._redirect.component;if(l.S.includes(e)){const n=(0,p.Q2)();this.hass.loadFragmentTranslation("config").then().then((()=>{(0,l.D)(this,this.hass,e,{domain:n.domain,brand:n.brand})}))}return}let i;try{i=this._createRedirectUrl()}catch(a){return void(this._error="url_error")}this._redirect.navigate_outside_spa?location.assign(i):(0,d.c)(i,{replace:!0})}},{kind:"method",key:"render",value:function(){if(this._error){let e;switch(this._error){case"not_supported":e=this.hass.localize("ui.panel.my.not_supported",{link:(0,a.dy)(_||(_=v`<a target="_blank" rel="noreferrer noopener" href="https://my.home-assistant.io/faq.html#supported-pages">${0}</a>`),this.hass.localize("ui.panel.my.faq_link"))})||"This redirect is not supported.";break;case"no_component":e=this.hass.localize("ui.panel.my.component_not_loaded",{integration:(0,a.dy)(h||(h=v`<a target="_blank" rel="noreferrer noopener" href="${0}">${0}</a>`),(0,f.R)(this.hass,`/integrations/${this._redirect.component}`),(0,g.Lh)(this.hass.localize,this._redirect.component))})||"This redirect is not supported.";break;case"no_supervisor":e=this.hass.localize("ui.panel.my.no_supervisor",{docs_link:(0,a.dy)(u||(u=v`<a target="_blank" rel="noreferrer noopener" href="${0}">${0}</a>`),(0,f.R)(this.hass,"/installation"),this.hass.localize("ui.panel.my.documentation"))});break;case"not_app":e=this.hass.localize("ui.panel.my.not_app",{link:(0,a.dy)(m||(m=v`<a target="_blank" rel="noreferrer noopener" href="https://companion.home-assistant.io/download">${0}</a>`),this.hass.localize("ui.panel.my.download_app"))});break;case"url_error":e=this.hass.localize("ui.panel.my.url_error");break;default:e=this.hass.localize("ui.panel.my.error")||"Unknown error"}return(0,a.dy)(b||(b=v`<hass-error-screen .error="${0}" .hass="${0}"></hass-error-screen>`),e,this.hass)}return a.Ld}},{kind:"method",key:"_createRedirectUrl",value:function(){const e=this._createRedirectParams();return`${this._redirect.redirect}${e}`}},{kind:"method",key:"_createRedirectParams",value:function(){const e=(0,p.Q2)();if(!this._redirect.params&&!Object.keys(e).length)return"";const n={};for(const[o,t]of Object.entries(this._redirect.params||{}))if(e[o]||!t.endsWith("?")){if(!e[o]||!this._checkParamType(t,e[o]))throw Error();n[o]=e[o]}return`?${(0,p.ou)(n)}`}},{kind:"method",key:"_checkParamType",value:function(e,n){return"string"===e||"string?"===e||"url"===e&&(n&&n===(0,i.sanitizeUrl)(n))}}]}}),a.oi)},73192:function(e,n,o){o.d(n,{R:()=>t});const t=(e,n)=>`https://www.iobroker.net/#${e.language&&e.language.split("-")[0]||"en"}/adapters/adapterref/iobroker.lovelace/README.md#`}}]); //# sourceMappingURL=97305.138020fd61bf67e1.js.map