landingpage/rootfs/usr/share/www/frontend_es5/303.9waH5J8Bceo.js

2 lines
7.3 KiB
JavaScript

(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[303],{3276:function(e,t,i){"use strict";i.d(t,{l:function(){return k}});var o,a,n,r=i(35806),l=i(71008),d=i(62193),s=i(2816),c=i(34441),p=i(35890),g=i(64599),u=(i(49141),i(81027),i(79243),i(54653)),h=i(34599),v=i(70663),f=i(15224),m=i(9600),b=(i(4169),["button","ha-list-item"]),k=function(e,t){var i;return(0,v.qy)(o||(o=(0,g.A)([' <div class="header_title"> <span>','</span> <ha-icon-button .label="','" .path="','" dialogAction="close" class="header_button"></ha-icon-button> </div> '])),t,null!==(i=null==e?void 0:e.localize("ui.dialogs.generic.close"))&&void 0!==i?i:"Close","M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z")};(0,c.A)([(0,f.EM)("ha-dialog")],(function(e,t){var i=function(t){function i(){var t;(0,l.A)(this,i);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=(0,d.A)(this,i,[].concat(a)),e(t),t}return(0,s.A)(i,t),(0,r.A)(i)}(t);return{F:i,d:[{kind:"field",key:m.Xr,value:void 0},{kind:"method",key:"scrollToPos",value:function(e,t){var i;null===(i=this.contentElement)||void 0===i||i.scrollTo(e,t)}},{kind:"method",key:"renderHeading",value:function(){return(0,v.qy)(a||(a=(0,g.A)(['<slot name="heading"> '," </slot>"])),(0,p.A)(i,"renderHeading",this,3)([]))}},{kind:"method",key:"firstUpdated",value:function(){var e;(0,p.A)(i,"firstUpdated",this,3)([]),this.suppressDefaultPressSelector=[this.suppressDefaultPressSelector,b].join(", "),this._updateScrolledAttribute(),null===(e=this.contentElement)||void 0===e||e.addEventListener("scroll",this._onScroll,{passive:!0})}},{kind:"method",key:"disconnectedCallback",value:function(){(0,p.A)(i,"disconnectedCallback",this,3)([]),this.contentElement.removeEventListener("scroll",this._onScroll)}},{kind:"field",key:"_onScroll",value:function(){var e=this;return function(){e._updateScrolledAttribute()}}},{kind:"method",key:"_updateScrolledAttribute",value:function(){this.contentElement&&this.toggleAttribute("scrolled",0!==this.contentElement.scrollTop)}},{kind:"field",static:!0,key:"styles",value:function(){return[h.R,(0,v.AH)(n||(n=(0,g.A)([":host([scrolled]) ::slotted(ha-dialog-header){border-bottom:1px solid var(--mdc-dialog-scroll-divider-color,rgba(0,0,0,.12))}.mdc-dialog{--mdc-dialog-scroll-divider-color:var(\n --dialog-scroll-divider-color,\n var(--divider-color)\n );z-index:var(--dialog-z-index,8);-webkit-backdrop-filter:var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none));backdrop-filter:var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none));--mdc-dialog-box-shadow:var(--dialog-box-shadow, none);--mdc-typography-headline6-font-weight:400;--mdc-typography-headline6-font-size:1.574rem}.mdc-dialog__actions{justify-content:var(--justify-action-buttons,flex-end);padding-bottom:max(env(safe-area-inset-bottom),24px)}.mdc-dialog__actions span:first-child{flex:var(--secondary-action-button-flex,unset)}.mdc-dialog__actions span:nth-child(2){flex:var(--primary-action-button-flex,unset)}.mdc-dialog__container{align-items:var(--vertical-align-dialog,center)}.mdc-dialog__title{padding:24px 24px 0 24px}.mdc-dialog__actions{padding:12px 24px 12px 24px}.mdc-dialog__title::before{content:unset}.mdc-dialog .mdc-dialog__content{position:var(--dialog-content-position,relative);padding:var(--dialog-content-padding,24px)}:host([hideactions]) .mdc-dialog .mdc-dialog__content{padding-bottom:max(var(--dialog-content-padding,24px),env(safe-area-inset-bottom))}.mdc-dialog .mdc-dialog__surface{position:var(--dialog-surface-position,relative);top:var(--dialog-surface-top);margin-top:var(--dialog-surface-margin-top);min-height:var(--mdc-dialog-min-height,auto);border-radius:var(--ha-dialog-border-radius,28px);-webkit-backdrop-filter:var(--ha-dialog-surface-backdrop-filter,none);backdrop-filter:var(--ha-dialog-surface-backdrop-filter,none);background:var(--ha-dialog-surface-background,var(--mdc-theme-surface,#fff))}:host([flexContent]) .mdc-dialog .mdc-dialog__content{display:flex;flex-direction:column}.header_title{position:relative;padding-right:40px;padding-inline-end:40px;padding-inline-start:initial;direction:var(--direction)}.header_title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.header_button{position:absolute;right:-12px;top:-12px;text-decoration:none;color:inherit;inset-inline-start:initial;inset-inline-end:-12px;direction:var(--direction)}.dialog-actions{inset-inline-start:initial!important;inset-inline-end:0px!important;direction:var(--direction)}"])))]}}]}}),u.u)},95303:function(e,t,i){"use strict";i.r(t);var o,a,n=i(64599),r=i(33994),l=i(22858),d=i(35806),s=i(71008),c=i(62193),p=i(2816),g=i(34441),u=(i(81027),i(70663)),h=i(15224),v=i(34897),f=i(3276);(0,g.A)([(0,h.EM)("app-dialog")],(function(e,t){var i,g,m=function(t){function i(){var t;(0,s.A)(this,i);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=(0,c.A)(this,i,[].concat(a)),e(t),t}return(0,p.A)(i,t),(0,d.A)(i)}(t);return{F:m,d:[{kind:"field",decorators:[(0,h.MZ)({attribute:!1})],key:"localize",value:void 0},{kind:"method",key:"showDialog",value:(g=(0,l.A)((0,r.A)().mark((function e(t){return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.localize=t.localize;case 1:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{kind:"method",key:"closeDialog",value:(i=(0,l.A)((0,r.A)().mark((function e(){return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.localize=void 0,(0,v.r)(this,"dialog-closed",{dialog:this.localName});case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{kind:"method",key:"render",value:function(){return this.localize?(0,u.qy)(o||(o=(0,n.A)(['<ha-dialog open hideActions @closed="','" .heading="','"> <div> <div class="app-qr"> <a target="_blank" rel="noreferrer noopener" href="https://apps.apple.com/app/home-assistant/id1099568401?mt=8"> <img loading="lazy" src="/static/images/appstore.svg" alt="','" class="icon"> <img loading="lazy" src="/static/images/qr-appstore.svg" alt="','"> </a> <a target="_blank" rel="noreferrer noopener" href="https://play.google.com/store/apps/details?id=io.homeassistant.companion.android"> <img loading="lazy" src="/static/images/playstore.svg" alt="','" class="icon"> <img loading="lazy" src="/static/images/qr-playstore.svg" alt="','"> </a> </div> </div> </ha-dialog>'])),this.closeDialog,(0,f.l)(void 0,this.localize("ui.panel.page-onboarding.welcome.download_app")||"Click here to download the app"),this.localize("ui.panel.page-onboarding.welcome.appstore"),this.localize("ui.panel.page-onboarding.welcome.appstore"),this.localize("ui.panel.page-onboarding.welcome.playstore"),this.localize("ui.panel.page-onboarding.welcome.playstore")):u.s6}},{kind:"field",static:!0,key:"styles",value:function(){return(0,u.AH)(a||(a=(0,n.A)(["ha-dialog{--mdc-dialog-min-width:min(500px, 90vw)}.app-qr{display:flex;justify-content:space-between;box-sizing:border-box;gap:32px;width:100%}.app-qr a,.app-qr img{flex:1;max-width:180px}"])))}}]}}),u.WF)},49141:function(){Element.prototype.toggleAttribute||(Element.prototype.toggleAttribute=function(e,t){return void 0!==t&&(t=!!t),this.hasAttribute(e)?!!t||(this.removeAttribute(e),!1):!1!==t&&(this.setAttribute(e,""),!0)})}}]);
//# sourceMappingURL=303.9waH5J8Bceo.js.map