import{r as t,c as e,h as o}from"./p-890a2f7e.js";import{d as a}from"./p-9011280c.js";import"./p-112455b1.js";const s=class{constructor(o){t(this,o),this.valueChanged=e(this,"valueChanged",7)}onValue(t){this.valueChanged.emit(t)}onStartChanged(t){this.start=t.detail}onEndChanged(t){this.end=t.detail}render(){var t;return[o("section",null,o("smoothly-input",{onClick:()=>this.open=!this.open,type:"date",value:this.start,onSmoothlyChanged:t=>this.start=t.detail.value},"From"),o("smoothly-input",{onClick:()=>this.open=!this.open,type:"date",value:this.end,onSmoothlyChanged:t=>this.end=t.detail.value},"to")),this.open?o("div",{onClick:()=>this.open=!1}):[],this.open?o("nav",null,o("div",{class:"arrow"}),o("smoothly-calendar",{doubleInput:!0,value:null!==(t=this.value)&&void 0!==t?t:a.Date.now(),onValueChanged:t=>{this.value=t.detail,t.stopPropagation()}})):[]]}static get watchers(){return{value:["onValue"]}}};s.style=".sc-smoothly-input-date-range-h{position:relative;display:block}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--smoothly-default-shade));max-width:22em}.sc-smoothly-input-date-range-h>div.sc-smoothly-input-date-range{position:fixed;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>.arrow.sc-smoothly-input-date-range{position:absolute;z-index:9;-webkit-transform:translate(10em, -.55em) rotate(45deg);transform:translate(10em, -.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-default-shade))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.sc-smoothly-input-date-range-h>smoothly-input.sc-smoothly-input-date-range{padding:0}";export{s as smoothly_input_date_range}