@file:Suppress("UNCHECKED_CAST", "USELESS_CAST", "INAPPLICABLE_JVM_NAME", "UNUSED_ANONYMOUS_PARAMETER", "SENSELESS_COMPARISON", "NAME_SHADOWING", "UNNECESSARY_NOT_NULL_ASSERTION")
package uni.UNIHelloUniAppX
import io.dcloud.uniapp.*
import io.dcloud.uniapp.extapi.*
import io.dcloud.uniapp.framework.*
import io.dcloud.uniapp.runtime.*
import io.dcloud.uniapp.vue.*
import io.dcloud.uniapp.vue.shared.*
import io.dcloud.unicloud.*
import io.dcloud.uts.*
import io.dcloud.uts.Map
import io.dcloud.uts.Set
import io.dcloud.uts.UTSAndroid
import kotlin.properties.Delegates
import io.dcloud.uniapp.extapi.addPhoneCalendar as uni_addPhoneCalendar
import io.dcloud.uniapp.extapi.addPhoneRepeatCalendar as uni_addPhoneRepeatCalendar
open class GenPagesAPICalendarCalendar : BasePage {
    constructor(__ins: ComponentInternalInstance, __renderer: String?) : super(__ins, __renderer) {
        onLoad(fun(_: OnLoadOptions) {
            stat_instance.onLoad(this)
        }
        , __ins)
        onPageShow(fun() {
            stat_instance.onShow(this)
        }
        , __ins)
        onPageHide(fun() {
            stat_instance.onHide(this)
        }
        , __ins)
        onUnload(fun() {
            stat_instance.onUnload(this)
        }
        , __ins)
    }
    companion object {
        @Suppress("UNUSED_PARAMETER", "UNUSED_VARIABLE")
        var setup: (__props: GenPagesAPICalendarCalendar) -> Any? = fun(__props): Any? {
            val __ins = getCurrentInstance()!!
            val _ctx = __ins.proxy as GenPagesAPICalendarCalendar
            val _cache = __ins.renderCache
            val lastAction = ref<String>("等待调用")
            val lastStatus = ref<String>("未执行")
            val lastPayload = ref<String>("点击下方按钮开始体验")
            val logItems = ref(_uA<String>())
            val title = ref<String>("uni-calendar 表单示例")
            val allDay = ref<Boolean>(false)
            val notesText = ref<String>("通过单个表单覆盖日历 API 全量可填参数。")
            val location = ref<String>("会议室 A")
            val alarm = ref<Boolean>(true)
            val alarmOffsetSeconds = ref<String>("900")
            val path = ref<String>("https://uniappx.dcloud.net.cn/ulink")
            val signature = ref<String>("")
            val repeatIntervalLabels = _uA(
                "不重复",
                "每天",
                "每周",
                "每月",
                "每年"
            ) as UTSArray<String>
            val repeatIntervalValues = _uA(
                "none",
                "day",
                "week",
                "month",
                "year"
            ) as UTSArray<RepeatOptionValue>
            val repeatIntervalIndex = ref<Number>(0)
            val dateRangeStart = ref<String>("")
            val dateRangeEnd = ref<String>("")
            val startDate = ref<String>("")
            val startClock = ref<String>("")
            val endDate = ref<String>("")
            val endClock = ref<String>("")
            val repeatEndDate = ref<String>("")
            val repeatEndClock = ref<String>("")
            fun gen_pad2_fn(value: Number): String {
                return if (value > 9) {
                    value.toString(10)
                } else {
                    "0" + value
                }
            }
            val pad2 = ::gen_pad2_fn
            fun gen_formatDateValue_fn(timestamp: Number): String {
                val date = Date(timestamp)
                return "" + date.getFullYear() + "-" + pad2(date.getMonth() + 1) + "-" + pad2(date.getDate())
            }
            val formatDateValue = ::gen_formatDateValue_fn
            fun gen_formatTimeValue_fn(timestamp: Number): String {
                val date = Date(timestamp)
                return "" + pad2(date.getHours()) + ":" + pad2(date.getMinutes())
            }
            val formatTimeValue = ::gen_formatTimeValue_fn
            fun gen_createNextHourTimestamp_fn(): Number {
                val date = Date()
                date.setMinutes(0)
                date.setSeconds(0)
                date.setMilliseconds(0)
                date.setHours(date.getHours() + 1)
                return date.getTime()
            }
            val createNextHourTimestamp = ::gen_createNextHourTimestamp_fn
            fun gen_createTimestampAfterDays_fn(baseTimestamp: Number, dayOffset: Number): Number {
                val date = Date(baseTimestamp)
                date.setDate(date.getDate() + dayOffset)
                return date.getTime()
            }
            val createTimestampAfterDays = ::gen_createTimestampAfterDays_fn
            fun gen_buildTimestamp_fn(dateValue: String, timeValue: String): Number {
                val dateParts = dateValue.split("-")
                val timeParts = timeValue.split(":")
                if (dateParts.length != 3 || timeParts.length != 2) {
                    return 0
                }
                val year = parseInt(dateParts[0])
                val month = parseInt(dateParts[1]) - 1
                val day = parseInt(dateParts[2])
                val hour = parseInt(timeParts[0])
                val minute = parseInt(timeParts[1])
                val date = Date()
                date.setFullYear(year)
                date.setMonth(month)
                date.setDate(day)
                date.setHours(hour)
                date.setMinutes(minute)
                date.setSeconds(0)
                date.setMilliseconds(0)
                return date.getTime()
            }
            val buildTimestamp = ::gen_buildTimestamp_fn
            fun gen_buildDateTimestamp_fn(dateValue: String): Number {
                val dateParts = dateValue.split("-")
                if (dateParts.length != 3) {
                    return 0
                }
                val year = parseInt(dateParts[0])
                val month = parseInt(dateParts[1]) - 1
                val day = parseInt(dateParts[2])
                val date = Date()
                date.setFullYear(year)
                date.setMonth(month)
                date.setDate(day)
                date.setHours(0)
                date.setMinutes(0)
                date.setSeconds(0)
                date.setMilliseconds(0)
                return date.getTime()
            }
            val buildDateTimestamp = ::gen_buildDateTimestamp_fn
            fun gen_parseOffsetSeconds_fn(value: String): Number? {
                if (value.length == 0) {
                    return null
                }
                val seconds = parseInt(value)
                if (seconds <= 0) {
                    return 0
                }
                return seconds
            }
            val parseOffsetSeconds = ::gen_parseOffsetSeconds_fn
            fun gen_describeCalendarError_fn(errCode: Number): String {
                when (errCode) {
                    601 -> 
                        return "标题不能为空"
                    602 -> 
                        return "开始时间无效"
                    603 -> 
                        return "结束时间不能早于开始时间"
                    604 -> 
                        return "设置提醒提前量前需要先开启提醒"
                    606 -> 
                        return "重复规则无效"
                    607 -> 
                        return "当前设备的日历服务不可用"
                    608 -> 
                        return "写入日历失败"
                    609 -> 
                        return "用户取消了系统日历创建"
                    else -> 
                        return "未知错误"
                }
            }
            val describeCalendarError = ::gen_describeCalendarError_fn
            fun gen_pushLog_fn(line: String): Unit {
                logItems.value.unshift(line)
                if (logItems.value.length > 8) {
                    logItems.value.splice(8)
                }
            }
            val pushLog = ::gen_pushLog_fn
            fun gen_updateResult_fn(action: String, status: String, payload: String): Unit {
                lastAction.value = action
                lastStatus.value = status
                lastPayload.value = payload
                pushLog("" + action + " -> " + status)
            }
            val updateResult = ::gen_updateResult_fn
            fun gen_handleCalendarSuccessResult_fn(action: String, errMsg: String?): Unit {
                val resultMessage = if (errMsg != null) {
                    errMsg
                } else {
                    "" + action + ":ok"
                }
                updateResult(action, "成功", resultMessage)
            }
            val handleCalendarSuccessResult = ::gen_handleCalendarSuccessResult_fn
            fun gen_handleAddPhoneCalendarSuccess_fn(action: String, res: AddPhoneCalendarSuccess): Unit {
                handleCalendarSuccessResult(action, res.errMsg)
            }
            val handleAddPhoneCalendarSuccess = ::gen_handleAddPhoneCalendarSuccess_fn
            fun gen_handleAddPhoneRepeatCalendarSuccess_fn(action: String, res: AddPhoneRepeatCalendarSuccess): Unit {
                handleCalendarSuccessResult(action, res.errMsg)
            }
            val handleAddPhoneRepeatCalendarSuccess = ::gen_handleAddPhoneRepeatCalendarSuccess_fn
            fun gen_handleCalendarFailResult_fn(action: String, errSubject: String?, errCode: Number, errMsg: String?): Unit {
                val subject = if (errSubject != null) {
                    errSubject
                } else {
                    "uni-calendar"
                }
                val message = if (errMsg != null) {
                    errMsg
                } else {
                    ""
                }
                val errorDescription = describeCalendarError(errCode)
                updateResult(action, "失败 (" + errCode + ")", "" + errorDescription + "; errSubject=" + subject + "; errCode=" + errCode + "; errMsg=" + message)
            }
            val handleCalendarFailResult = ::gen_handleCalendarFailResult_fn
            fun gen_handleAddPhoneCalendarFail_fn(action: String, error: AddPhoneCalendarFail): Unit {
                handleCalendarFailResult(action, error.errSubject, error.errCode, error.errMsg)
            }
            val handleAddPhoneCalendarFail = ::gen_handleAddPhoneCalendarFail_fn
            fun gen_handleAddPhoneRepeatCalendarFail_fn(action: String, error: AddPhoneRepeatCalendarFail): Unit {
                handleCalendarFailResult(action, error.errSubject, error.errCode, error.errMsg)
            }
            val handleAddPhoneRepeatCalendarFail = ::gen_handleAddPhoneRepeatCalendarFail_fn
            fun gen_fillDefaultForm_fn(): Unit {
                val startTimestamp = createNextHourTimestamp()
                val endTimestamp = startTimestamp + 3600000
                val repeatEndTimestamp = createTimestampAfterDays(startTimestamp, 30)
                val rangeStartTimestamp = createTimestampAfterDays(startTimestamp, -365)
                val rangeEndTimestamp = createTimestampAfterDays(startTimestamp, 1825)
                dateRangeStart.value = formatDateValue(rangeStartTimestamp)
                dateRangeEnd.value = formatDateValue(rangeEndTimestamp)
                startDate.value = formatDateValue(startTimestamp)
                startClock.value = formatTimeValue(startTimestamp)
                endDate.value = formatDateValue(endTimestamp)
                endClock.value = formatTimeValue(endTimestamp)
                repeatEndDate.value = formatDateValue(repeatEndTimestamp)
                repeatEndClock.value = formatTimeValue(startTimestamp)
            }
            val fillDefaultForm = ::gen_fillDefaultForm_fn
            fun gen_handleStartDateChange_fn(event: UniPickerChangeEvent): Unit {
                startDate.value = event.detail.value as String
            }
            val handleStartDateChange = ::gen_handleStartDateChange_fn
            fun gen_handleStartClockChange_fn(event: UniPickerChangeEvent): Unit {
                startClock.value = event.detail.value as String
            }
            val handleStartClockChange = ::gen_handleStartClockChange_fn
            fun gen_handleEndDateChange_fn(event: UniPickerChangeEvent): Unit {
                endDate.value = event.detail.value as String
            }
            val handleEndDateChange = ::gen_handleEndDateChange_fn
            fun gen_handleEndClockChange_fn(event: UniPickerChangeEvent): Unit {
                endClock.value = event.detail.value as String
            }
            val handleEndClockChange = ::gen_handleEndClockChange_fn
            fun gen_handleRepeatEndDateChange_fn(event: UniPickerChangeEvent): Unit {
                repeatEndDate.value = event.detail.value as String
            }
            val handleRepeatEndDateChange = ::gen_handleRepeatEndDateChange_fn
            fun gen_handleRepeatEndClockChange_fn(event: UniPickerChangeEvent): Unit {
                repeatEndClock.value = event.detail.value as String
            }
            val handleRepeatEndClockChange = ::gen_handleRepeatEndClockChange_fn
            fun gen_handleRepeatIntervalChange_fn(event: UniPickerChangeEvent): Unit {
                repeatIntervalIndex.value = event.detail.value as Number
            }
            val handleRepeatIntervalChange = ::gen_handleRepeatIntervalChange_fn
            fun gen_handleAllDayChange_fn(event: UniSwitchChangeEvent): Unit {
                allDay.value = event.detail.value
            }
            val handleAllDayChange = ::gen_handleAllDayChange_fn
            fun gen_handleAlarmChange_fn(event: UniSwitchChangeEvent): Unit {
                alarm.value = event.detail.value
            }
            val handleAlarmChange = ::gen_handleAlarmChange_fn
            val repeatIntervalText = computed(fun(): String {
                return repeatIntervalLabels[repeatIntervalIndex.value]
            }
            )
            val isRepeatEndDisabled = computed(fun(): Boolean {
                return repeatIntervalValues[repeatIntervalIndex.value] == "none"
            }
            )
            fun gen_buildStartTimeForSubmit_fn(): Number {
                if (allDay.value) {
                    return buildDateTimestamp(startDate.value)
                }
                return buildTimestamp(startDate.value, startClock.value)
            }
            val buildStartTimeForSubmit = ::gen_buildStartTimeForSubmit_fn
            fun gen_buildEndTimeForSubmit_fn(): Number {
                if (allDay.value) {
                    val endDateTimestamp = buildDateTimestamp(endDate.value)
                    if (endDateTimestamp <= 0) {
                        return 0
                    }
                    return createTimestampAfterDays(endDateTimestamp, 1)
                }
                return buildTimestamp(endDate.value, endClock.value)
            }
            val buildEndTimeForSubmit = ::gen_buildEndTimeForSubmit_fn
            fun gen_buildRepeatEndTimeForSubmit_fn(): Number {
                if (allDay.value) {
                    val repeatEndDateTimestamp = buildDateTimestamp(repeatEndDate.value)
                    if (repeatEndDateTimestamp <= 0) {
                        return 0
                    }
                    return createTimestampAfterDays(repeatEndDateTimestamp, 1)
                }
                return buildTimestamp(repeatEndDate.value, repeatEndClock.value)
            }
            val buildRepeatEndTimeForSubmit = ::gen_buildRepeatEndTimeForSubmit_fn
            fun gen_submitCalendar_fn(): Unit {
                val startTime = buildStartTimeForSubmit()
                val endTime = buildEndTimeForSubmit()
                val alarmOffset = parseOffsetSeconds(alarmOffsetSeconds.value)
                val repeatValue = repeatIntervalValues[repeatIntervalIndex.value]
                val baseOptions = AddPhoneCalendarOptions(title = title.value, startTime = startTime, allDay = allDay.value, notes = notesText.value, location = location.value, endTime = endTime, alarm = alarm.value, alarmOffset = alarmOffset, path = path.value, signature = signature.value, success = fun(res){
                    handleAddPhoneCalendarSuccess("addPhoneCalendar", res)
                }
                , fail = fun(error){
                    handleAddPhoneCalendarFail("addPhoneCalendar", error)
                }
                )
                if (repeatValue == "none") {
                    uni_addPhoneCalendar(baseOptions)
                    return
                }
                val repeatCalendarValue = repeatValue as CalendarRepeatInterval
                val repeatEndTime = buildRepeatEndTimeForSubmit()
                val repeatOptions = AddPhoneRepeatCalendarOptions(title = baseOptions.title, startTime = baseOptions.startTime, allDay = baseOptions.allDay, notes = baseOptions.notes, location = baseOptions.location, endTime = baseOptions.endTime, alarm = baseOptions.alarm, alarmOffset = baseOptions.alarmOffset, path = baseOptions.path, signature = baseOptions.signature, repeatInterval = repeatCalendarValue, repeatEndTime = repeatEndTime, success = fun(res){
                    handleAddPhoneRepeatCalendarSuccess("addPhoneRepeatCalendar", res)
                }
                , fail = fun(error){
                    handleAddPhoneRepeatCalendarFail("addPhoneRepeatCalendar", error)
                }
                )
                uni_addPhoneRepeatCalendar(repeatOptions)
            }
            val submitCalendar = ::gen_submitCalendar_fn
            fillDefaultForm()
            return fun(): Any? {
                val _component_picker = resolveComponent("picker")
                val _component_switch = resolveComponent("switch")
                return _cE("scroll-view", _uM("style" to _nS(_uM("flex" to "1", "padding" to "6px"))), _uA(
                    _cE("text", _uM("class" to "uni-h2"), "日历 API"),
                    _cE("text", _uM("class" to "notice"), "本页将 `uni.addPhoneCalendar` 和 `uni.addPhoneRepeatCalendar` 合并为一个可直接提交的表单，覆盖 API 的全部可填参数。在有权限的情况下可直接写入系统日历，在无权限的情况下会打开系统的日历新建页面"),
                    _cE("text", _uM("class" to "margin-v"), "开始时间默认是当前时间的下一个整点，结束时间默认顺延一小时；保留预填数据即可直接添加日历。"),
                    _cE("text", _uM("class" to "uni-h3"), "当前结果"),
                    _cE("view", _uM("class" to "log-list"), _uA(
                        _cE("text", _uM("class" to "log-item"), "最近动作：" + _tD(unref(lastAction)), 1),
                        _cE("text", _uM("class" to "log-item"), "执行状态：" + _tD(unref(lastStatus)), 1),
                        _cE("text", _uM("class" to "log-item"), "返回信息：" + _tD(unref(lastPayload)), 1)
                    )),
                    _cE("text", _uM("class" to "uni-h3"), "添加日历"),
                    _cE("text", _uM("class" to "margin-v"), "`repeatInterval` 选为“不重复”时调用单次事件 API，其余选项调用重复事件 API。"),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "标题 title"),
                        _cE("input", _uM("class" to "field-input", "modelValue" to unref(title), "onInput" to fun(`$event`: UniInputEvent){
                            trySetRefValue(title, `$event`.detail.value)
                        }
                        , "placeholder" to "请输入日历标题"), null, 40, _uA(
                            "modelValue"
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "开始时间 startTime"),
                        _cE("view", _uM("class" to "picker-row"), _uA(
                            _cV(_component_picker, _uM("class" to "picker-field", "mode" to "date", "value" to unref(startDate), "start" to unref(dateRangeStart), "end" to unref(dateRangeEnd), "onChange" to handleStartDateChange), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                return _uA(
                                    _cE("view", _uM("class" to "picker-box"), _uA(
                                        _cE("text", _uM("class" to "picker-text"), _tD(unref(startDate)), 1)
                                    ))
                                )
                            }
                            ), "_" to 1), 8, _uA(
                                "value",
                                "start",
                                "end"
                            )),
                            if (isTrue(!unref(allDay))) {
                                _cV(_component_picker, _uM("key" to 0, "class" to "picker-field picker-field-space", "mode" to "time", "value" to unref(startClock), "onChange" to handleStartClockChange), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                    return _uA(
                                        _cE("view", _uM("class" to "picker-box"), _uA(
                                            _cE("text", _uM("class" to "picker-text"), _tD(unref(startClock)), 1)
                                        ))
                                    )
                                }), "_" to 1), 8, _uA(
                                    "value"
                                ))
                            } else {
                                _cC("v-if", true)
                            }
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("view", _uM("class" to "switch-row"), _uA(
                            _cE("text", _uM("class" to "field-label"), "全天 allDay"),
                            _cV(_component_switch, _uM("checked" to unref(allDay), "onChange" to handleAllDayChange), null, 8, _uA(
                                "checked"
                            ))
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "备注 notes"),
                        _cE("textarea", _uM("class" to "field-textarea", "modelValue" to unref(notesText), "onInput" to fun(`$event`: UniInputEvent){
                            trySetRefValue(notesText, `$event`.detail.value)
                        }
                        , "placeholder" to "请输入事件备注", "maxlength" to -1), null, 40, _uA(
                            "modelValue"
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "地点 location"),
                        _cE("input", _uM("class" to "field-input", "modelValue" to unref(location), "onInput" to fun(`$event`: UniInputEvent){
                            trySetRefValue(location, `$event`.detail.value)
                        }
                        , "placeholder" to "请输入地点"), null, 40, _uA(
                            "modelValue"
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "结束时间 endTime"),
                        _cE("view", _uM("class" to "picker-row"), _uA(
                            _cV(_component_picker, _uM("class" to "picker-field", "mode" to "date", "value" to unref(endDate), "start" to unref(dateRangeStart), "end" to unref(dateRangeEnd), "onChange" to handleEndDateChange), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                return _uA(
                                    _cE("view", _uM("class" to "picker-box"), _uA(
                                        _cE("text", _uM("class" to "picker-text"), _tD(unref(endDate)), 1)
                                    ))
                                )
                            }
                            ), "_" to 1), 8, _uA(
                                "value",
                                "start",
                                "end"
                            )),
                            if (isTrue(!unref(allDay))) {
                                _cV(_component_picker, _uM("key" to 0, "class" to "picker-field picker-field-space", "mode" to "time", "value" to unref(endClock), "onChange" to handleEndClockChange), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                    return _uA(
                                        _cE("view", _uM("class" to "picker-box"), _uA(
                                            _cE("text", _uM("class" to "picker-text"), _tD(unref(endClock)), 1)
                                        ))
                                    )
                                }), "_" to 1), 8, _uA(
                                    "value"
                                ))
                            } else {
                                _cC("v-if", true)
                            }
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("view", _uM("class" to "switch-row"), _uA(
                            _cE("text", _uM("class" to "field-label"), "提醒 alarm"),
                            _cV(_component_switch, _uM("checked" to unref(alarm), "onChange" to handleAlarmChange), null, 8, _uA(
                                "checked"
                            ))
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "提醒提前量 alarmOffset（秒）"),
                        _cE("input", _uM("class" to "field-input", "modelValue" to unref(alarmOffsetSeconds), "onInput" to fun(`$event`: UniInputEvent){
                            trySetRefValue(alarmOffsetSeconds, `$event`.detail.value)
                        }
                        , "type" to "number", "placeholder" to "例如 900", "disabled" to !unref(alarm)), null, 40, _uA(
                            "modelValue",
                            "disabled"
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "点击日程的激活URL path（微信小程序下填path时必须填signature）"),
                        _cE("input", _uM("class" to "field-input", "modelValue" to unref(path), "onInput" to fun(`$event`: UniInputEvent){
                            trySetRefValue(path, `$event`.detail.value)
                        }
                        , "placeholder" to "请输入页面路径"), null, 40, _uA(
                            "modelValue"
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "签名 signature（仅微信小程序生效）"),
                        _cE("input", _uM("class" to "field-input", "modelValue" to unref(signature), "onInput" to fun(`$event`: UniInputEvent){
                            trySetRefValue(signature, `$event`.detail.value)
                        }
                        , "placeholder" to "请输入签名"), null, 40, _uA(
                            "modelValue"
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "重复周期 repeatInterval"),
                        _cV(_component_picker, _uM("class" to "picker-field picker-full", "value" to unref(repeatIntervalIndex), "range" to repeatIntervalLabels, "onChange" to handleRepeatIntervalChange), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                            return _uA(
                                _cE("view", _uM("class" to "picker-box"), _uA(
                                    _cE("text", _uM("class" to "picker-text"), _tD(unref(repeatIntervalText)), 1)
                                ))
                            )
                        }
                        ), "_" to 1), 8, _uA(
                            "value"
                        ))
                    )),
                    _cE("view", _uM("class" to "field-group"), _uA(
                        _cE("text", _uM("class" to "field-label"), "重复截止时间 repeatEndTime"),
                        _cE("view", _uM("class" to "picker-row"), _uA(
                            _cV(_component_picker, _uM("class" to "picker-field", "mode" to "date", "value" to unref(repeatEndDate), "start" to unref(dateRangeStart), "end" to unref(dateRangeEnd), "disabled" to unref(isRepeatEndDisabled), "onChange" to handleRepeatEndDateChange), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                return _uA(
                                    _cE("view", _uM("class" to "picker-box"), _uA(
                                        _cE("text", _uM("class" to "picker-text"), _tD(unref(repeatEndDate)), 1)
                                    ))
                                )
                            }
                            ), "_" to 1), 8, _uA(
                                "value",
                                "start",
                                "end",
                                "disabled"
                            )),
                            if (isTrue(!unref(allDay))) {
                                _cV(_component_picker, _uM("key" to 0, "class" to "picker-field picker-field-space", "mode" to "time", "value" to unref(repeatEndClock), "disabled" to unref(isRepeatEndDisabled), "onChange" to handleRepeatEndClockChange), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                                    return _uA(
                                        _cE("view", _uM("class" to "picker-box"), _uA(
                                            _cE("text", _uM("class" to "picker-text"), _tD(unref(repeatEndClock)), 1)
                                        ))
                                    )
                                }), "_" to 1), 8, _uA(
                                    "value",
                                    "disabled"
                                ))
                            } else {
                                _cC("v-if", true)
                            }
                        ))
                    )),
                    _cE("button", _uM("class" to "submit-button", "type" to "primary", "onClick" to submitCalendar), "添加日历"),
                    _cE("text", _uM("class" to "uni-h3"), "调用日志"),
                    _cE("view", _uM("class" to "log-list"), _uA(
                        _cE(Fragment, null, RenderHelpers.renderList(unref(logItems), fun(item, __key, __index, _cached): Any {
                            return _cE("text", _uM("class" to "log-item", "key" to item), _tD(item), 1)
                        }
                        ), 128)
                    ))
                ), 4)
            }
        }
        val styles: Map<String, Map<String, Map<String, Any>>> by lazy {
            _nCS(_uA(
                styles0
            ))
        }
        val styles0: Map<String, Map<String, Map<String, Any>>>
            get() {
                return _uM("margin-v" to _pS(_uM("marginTop" to 5, "marginRight" to 0, "marginBottom" to 5, "marginLeft" to 0)), "notice" to _pS(_uM("color" to "#550000", "fontSize" to 14, "fontStyle" to "italic")), "field-group" to _pS(_uM("marginTop" to 8, "marginRight" to 0, "marginBottom" to 8, "marginLeft" to 0, "display" to "flex", "flexDirection" to "column")), "field-label" to _pS(_uM("fontSize" to 14)), "field-input" to _pS(_uM("height" to 42, "marginTop" to 5, "paddingLeft" to 12, "paddingRight" to 12, "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopStyle" to "solid", "borderRightStyle" to "solid", "borderBottomStyle" to "solid", "borderLeftStyle" to "solid", "borderTopColor" to "#cccccc", "borderRightColor" to "#cccccc", "borderBottomColor" to "#cccccc", "borderLeftColor" to "#cccccc")), "field-textarea" to _pS(_uM("minHeight" to 96, "marginTop" to 5, "paddingTop" to 12, "paddingRight" to 12, "paddingBottom" to 12, "paddingLeft" to 12, "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopStyle" to "solid", "borderRightStyle" to "solid", "borderBottomStyle" to "solid", "borderLeftStyle" to "solid", "borderTopColor" to "#cccccc", "borderRightColor" to "#cccccc", "borderBottomColor" to "#cccccc", "borderLeftColor" to "#cccccc")), "picker-row" to _pS(_uM("marginTop" to 5, "display" to "flex", "flexDirection" to "row")), "picker-field" to _pS(_uM("flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%")), "picker-field-space" to _pS(_uM("marginLeft" to 10)), "picker-full" to _pS(_uM("marginTop" to 8)), "picker-box" to _pS(_uM("minHeight" to 42, "paddingLeft" to 12, "paddingRight" to 12, "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopStyle" to "solid", "borderRightStyle" to "solid", "borderBottomStyle" to "solid", "borderLeftStyle" to "solid", "borderTopColor" to "#cccccc", "borderRightColor" to "#cccccc", "borderBottomColor" to "#cccccc", "borderLeftColor" to "#cccccc", "display" to "flex", "flexDirection" to "row", "alignItems" to "center")), "picker-text" to _pS(_uM("fontSize" to 14)), "switch-row" to _pS(_uM("display" to "flex", "flexDirection" to "row", "alignItems" to "center", "justifyContent" to "space-between")), "submit-button" to _pS(_uM("marginTop" to 10, "marginRight" to 0, "marginBottom" to 10, "marginLeft" to 0)), "log-list" to _pS(_uM("marginTop" to 5, "marginRight" to 0, "marginBottom" to 5, "marginLeft" to 0, "paddingTop" to 10, "paddingRight" to 10, "paddingBottom" to 10, "paddingLeft" to 10, "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopStyle" to "solid", "borderRightStyle" to "solid", "borderBottomStyle" to "solid", "borderLeftStyle" to "solid", "borderTopColor" to "#cccccc", "borderRightColor" to "#cccccc", "borderBottomColor" to "#cccccc", "borderLeftColor" to "#cccccc", "display" to "flex", "flexDirection" to "column")), "log-item" to _pS(_uM("fontSize" to 14, "marginTop" to 4, "marginRight" to 0, "marginBottom" to 4, "marginLeft" to 0)))
            }
        var inheritAttrs = true
        var inject: Map<String, Map<String, Any?>> = _uM()
        var emits: Map<String, Any?> = _uM()
        var props = _nP(_uM())
        var propsNeedCastKeys: UTSArray<String> = _uA()
        var components: Map<String, CreateVueComponent> = _uM()
    }
}
