<wxs module="computed" src="./index.wxs"/>
<wxs module="utils" src="../wxs/utils.wxs"/>

<import src="./calendar.wxml"/>

<van-popup
        bind:after-enter="onOpened"
        bind:after-leave="onClosed"
        bind:close="onClose"
        bind:enter="onOpen"
        close-icon-class="van-calendar__close-icon"
        close-on-click-overlay="{{ closeOnClickOverlay }}"
        closeable="{{ showTitle || showSubtitle }}"
        custom-class="van-calendar__popup--{{ position }}"
        position="{{ position }}"
        root-portal="{{ rootPortal }}"
        round="{{ round }}"
        safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
        show="{{ show }}"
        wx:if="{{ poppable }}"
>
    <include src="./calendar.wxml"/>
</van-popup>

<include src="./calendar.wxml" wx:else/>

<van-toast id="van-toast"/>
