export const __rspack_esm_id="11546";export const __rspack_esm_ids=["11546"];export const __webpack_modules__={56833(i,e,t){t.a(i,async function(i,n){try{t.r(e),t.d(e,{HuiClockCard:()=>h});var o=t(62826),s=t(96196),c=t(97735),a=t(94333),r=t(38962),l=(t(76776),i([r]));r=(l.then?(await l)():l)[0];class h extends s.WF{static async getConfigElement(){return await t.e("38611").then(t.bind(t,22686)),document.createElement("hui-clock-card-editor")}static getStubConfig(){return{type:"clock"}}setConfig(i){this._config=i,"analog"===i.clock_style?t.e("79192").then(t.bind(t,54603)):t.e("43388").then(t.bind(t,41367))}getCardSize(){return"small"===this._config?.clock_size?1:2}getGridOptions(){if("analog"===this._config?.clock_style)switch(this._config?.clock_size){case"medium":return{min_rows:this._config?.title?4:3,rows:3,min_columns:5,columns:6};case"large":return{min_rows:this._config?.title?5:4,rows:4,min_columns:6,columns:6};default:return{min_rows:this._config?.title?3:2,rows:2,min_columns:2,columns:6}}switch(this._config?.clock_size){case"medium":return{min_rows:this._config?.title?2:1,rows:2,max_rows:4,min_columns:4,columns:6};case"large":return{min_rows:2,rows:2,max_rows:4,min_columns:6,columns:6};default:return{min_rows:1,rows:1,max_rows:4,min_columns:3,columns:6}}}render(){return this._config?s.qy` <ha-card class="${(0,a.H)({"no-background":this._config.no_background??!1})}"> <div class="time-wrapper ${this._config.clock_size?`size-${this._config.clock_size}`:""}"> ${void 0!==this._config.title?s.qy`<div class="time-title">${this._config.title}</div>`:s.s6} ${"analog"===this._config.clock_style?s.qy` <hui-clock-card-analog .hass="${this.hass}" .config="${this._config}"></hui-clock-card-analog> `:s.qy` <hui-clock-card-digital .hass="${this.hass}" .config="${this._config}"></hui-clock-card-digital> `} </div> </ha-card> `:s.s6}}h.styles=s.AH`ha-card{height:100%}.no-background{background:0 0;box-shadow:none;border:none}.time-wrapper{display:flex;height:calc(100% - 12px);align-items:center;flex-direction:column;justify-content:center;padding:6px 8px;row-gap:6px}.time-wrapper.size-large,.time-wrapper.size-medium{height:calc(100% - 32px);padding:16px;row-gap:var(--ha-space-3)}.time-title{color:var(--primary-text-color);font-size:var(--ha-font-size-m);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed);overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.time-wrapper.size-medium .time-title{font-size:var(--ha-font-size-l);line-height:var(--ha-line-height-condensed)}.time-wrapper.size-large .time-title{font-size:var(--ha-font-size-2xl);line-height:var(--ha-line-height-condensed)}`,(0,o.Cg)([(0,c.MZ)({attribute:!1})],h.prototype,"hass",void 0),(0,o.Cg)([(0,c.wk)()],h.prototype,"_config",void 0),h=(0,o.Cg)([(0,c.EM)("hui-clock-card")],h),n()}catch(i){n(i)}})}};
//# sourceMappingURL=11546.435142b32c0f43fb.js.map