export const ids=["5687"];export const modules={84632:function(r,e,t){t.d(e,{Q2:function(){return n},ou:function(){return i}});t(39527),t(41360),t(75656),t(50100),t(18084);var o=t(13089);const n=()=>{const r={},e=new URLSearchParams(o.E.location.search);for(const[t,o]of e.entries())r[t]=o;return r},i=r=>{const e=new URLSearchParams;return Object.entries(r).forEach((([r,t])=>{e.append(r,t)})),e.toString()}},60901:function(r,e,t){t.r(e),t.d(e,{REDIRECTS:function(){return c}});var o=t(44249),n=t(57243),i=t(50778),s=t(64364),a=t(84632);t(3035);const c={hacs_repository:{redirect:"/hacs/repository",params:{owner:"string",repository:"string",category:"string?"}}};(0,o.Z)([(0,i.Mo)("hacs-my-redirect")],(function(r,e){return{F:class extends e{constructor(...e){super(...e),r(this)}},d:[{kind:"field",decorators:[(0,i.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,i.Cb)({attribute:!1})],key:"hacs",value:void 0},{kind:"field",decorators:[(0,i.Cb)({attribute:!1})],key:"route",value:void 0},{kind:"field",decorators:[(0,i.SB)()],key:"_error",value:void 0},{kind:"method",key:"firstUpdated",value:function(r){const e=this.route.path.indexOf("/",1),t=this.route.path.substr(e+1),o=c[t];if(!o)return void(this._error=this.hacs.localize("my.not_supported",{link:n.dy`<a target="_blank" rel="noreferrer noopener" href="https://my.home-assistant.io/faq.html#supported-pages"> ${this.hacs.localize("my.faq_link")} </a>`}));let i;try{i=this._createRedirectUrl(o)}catch(r){return void(this._error=this.hacs.localize("my.error"))}(0,s.c)(i,{replace:!0})}},{kind:"method",key:"render",value:function(){return this._error?n.dy`<hass-error-screen .error="${this._error}"></hass-error-screen>`:n.Ld}},{kind:"method",key:"_createRedirectUrl",value:function(r){const e=this._createRedirectParams(r);return`${r.redirect}${e}`}},{kind:"method",key:"_createRedirectParams",value:function(r){const e=(0,a.Q2)();if(!r.params&&!Object.keys(e).length)return"";const t={};for(const[o,n]of Object.entries(r.params||{}))if(e[o]||!n.endsWith("?")){if(!e[o]||!this._checkParamType(n,e[o]))throw Error();t[o]=e[o]}return`?${(0,a.ou)(t)}`}},{kind:"method",key:"_checkParamType",value:function(r,e){return"string"===r||"string?"===r}}]}}),n.oi)}};
//# sourceMappingURL=5687.8750a824789170b6.js.map