@file:Suppress("UNCHECKED_CAST", "USELESS_CAST", "INAPPLICABLE_JVM_NAME", "UNUSED_ANONYMOUS_PARAMETER", "NAME_SHADOWING", "UNNECESSARY_NOT_NULL_ASSERTION")
package uni.UNIuniappx
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 io.dcloud.uniapp.extapi.chooseImage as uni_chooseImage
import io.dcloud.uniapp.extapi.closeBLEConnection as uni_closeBLEConnection
import io.dcloud.uniapp.extapi.createBLEConnection as uni_createBLEConnection
import io.dcloud.uniapp.extapi.getBLEDeviceCharacteristics as uni_getBLEDeviceCharacteristics
import io.dcloud.uniapp.extapi.getBLEDeviceServices as uni_getBLEDeviceServices
import io.dcloud.uniapp.extapi.getFileSystemManager as uni_getFileSystemManager
import io.dcloud.uniapp.extapi.getStorageSync as uni_getStorageSync
import io.dcloud.uniapp.extapi.openBluetoothAdapter as uni_openBluetoothAdapter
import io.dcloud.uniapp.extapi.setBLEMTU as uni_setBLEMTU
import io.dcloud.uniapp.extapi.setStorageSync as uni_setStorageSync
import io.dcloud.uniapp.extapi.showToast as uni_showToast
open class GenPagesConnectConnect : BasePage {
    constructor(__ins: ComponentInternalInstance, __renderer: String?) : super(__ins, __renderer) {
        onLoad(fun(options: OnLoadOptions) {
            this.deviceId = options.deviceId
            this.initImageDir()
            this.loadSavedImages()
            this.setBleMtu()
        }
        , __ins)
        onUnload(fun() {
            this.stopDataSimulation()
            if (this.isConnected) {
                this.disconnectDevice()
            }
        }
        , __ins)
    }
    @Suppress("UNUSED_PARAMETER", "UNUSED_VARIABLE")
    override fun `$render`(): Any? {
        val _ctx = this
        val _cache = this.`$`.renderCache
        val _component_uni_icons = resolveComponent("uni-icons")
        return _cE("view", _uM("class" to "container"), _uA(
            _cE("view", _uM("class" to "nav-bar"), _uA(
                _cE("text", _uM("class" to "nav-title"), "表盘管理器")
            )),
            _cE("view", _uM("class" to "content"), _uA(
                _cE("view", _uM("class" to "preview-container"), _uA(
                    _cE("view", _uM("class" to "preview-frame"), _uA(
                        if (isTrue(_ctx.currentImageUrl)) {
                            _cE("image", _uM("key" to 0, "src" to _ctx.currentImageUrl, "class" to "preview-image", "mode" to "aspectFill"), null, 8, _uA(
                                "src"
                            ))
                        } else {
                            _cE("view", _uM("key" to 1, "class" to "empty-preview"), _uA(
                                _cV(_component_uni_icons, _uM("type" to "image", "size" to "60", "color" to "#ccc")),
                                _cE("text", null, "请选择表盘图片")
                            ))
                        }
                    )),
                    if (isTrue(_ctx.currentImageUrl)) {
                        _cE("button", _uM("key" to 0, "class" to "set-btn", "onClick" to _ctx.setAsCurrentFace), " 设置为当前表盘 ", 8, _uA(
                            "onClick"
                        ))
                    } else {
                        _cC("v-if", true)
                    }
                    ,
                    _cE("button", _uM("class" to "upload-btn", "onClick" to _ctx.chooseImage), _uA(
                        _cV(_component_uni_icons, _uM("type" to "camera", "size" to "24", "color" to "#fff")),
                        _cE("text", null, "上传图片")
                    ), 8, _uA(
                        "onClick"
                    ))
                )),
                _cE("view", _uM("class" to "carousel-section"), _uA(
                    _cE("text", _uM("class" to "section-title"), "已上传表盘"),
                    _cE("view", _uM("class" to "carousel-container"), _uA(
                        _cE("swiper", _uM("class" to "card-swiper", "circular" to "", "previous-margin" to "200rpx", "next-margin" to "200rpx", "onChange" to _ctx.handleCarouselChange), _uA(
                            _cE(Fragment, null, RenderHelpers.renderList(_ctx.uploadedImages, fun(img, index, __index, _cached): Any {
                                return _cE("swiper-item", _uM("key" to index), _uA(
                                    _cE("view", _uM("class" to "card-item", "onClick" to fun(){
                                        _ctx.selectImage(index)
                                    }
                                    ), _uA(
                                        _cE("view", _uM("class" to "card-frame"), _uA(
                                            _cE("image", _uM("src" to img.url, "class" to "card-image", "mode" to "aspectFill"), null, 8, _uA(
                                                "src"
                                            )),
                                            if (_ctx.currentImageIndex === index) {
                                                _cE("view", _uM("key" to 0, "class" to "card-overlay"), _uA(
                                                    _cV(_component_uni_icons, _uM("type" to "checkmark", "size" to "30", "color" to "#007aff"))
                                                ))
                                            } else {
                                                _cC("v-if", true)
                                            }
                                        ))
                                    ), 8, _uA(
                                        "onClick"
                                    ))
                                ))
                            }
                            ), 128)
                        ), 40, _uA(
                            "onChange"
                        )),
                        if (_ctx.uploadedImages.length === 0) {
                            _cE("view", _uM("key" to 0, "class" to "carousel-hint"), _uA(
                                _cE("text", null, "暂无上传图片，请点击上方上传按钮添加")
                            ))
                        } else {
                            _cC("v-if", true)
                        }
                    ))
                )),
                _cE("view", _uM("class" to "data-section"), _uA(
                    _cE("text", _uM("class" to "section-title"), "设备状态"),
                    _cE("view", _uM("class" to "data-grid"), _uA(
                        _cE("view", _uM("class" to "data-card"), _uA(
                            _cE("view", _uM("class" to "data-icon battery-icon"), _uA(
                                _cV(_component_uni_icons, _uM("type" to "battery", "size" to "36", "color" to _ctx.batteryColor), null, 8, _uA(
                                    "color"
                                ))
                            )),
                            _cE("view", _uM("class" to "data-info"), _uA(
                                _cE("text", _uM("class" to "data-value"), _tD(_ctx.batteryLevel) + "%", 1),
                                _cE("text", _uM("class" to "data-label"), "电量")
                            ))
                        )),
                        _cE("view", _uM("class" to "data-card"), _uA(
                            _cE("view", _uM("class" to "data-icon temp-icon"), _uA(
                                _cV(_component_uni_icons, _uM("type" to "thermometer", "size" to "36", "color" to "#ff7a45"))
                            )),
                            _cE("view", _uM("class" to "data-info"), _uA(
                                _cE("text", _uM("class" to "data-value"), _tD(_ctx.temperature) + "°C", 1),
                                _cE("text", _uM("class" to "data-label"), "温度")
                            ))
                        )),
                        _cE("view", _uM("class" to "data-card"), _uA(
                            _cE("view", _uM("class" to "data-icon humidity-icon"), _uA(
                                _cV(_component_uni_icons, _uM("type" to "water", "size" to "36", "color" to "#40a9ff"))
                            )),
                            _cE("view", _uM("class" to "data-info"), _uA(
                                _cE("text", _uM("class" to "data-value"), _tD(_ctx.humidity) + "%", 1),
                                _cE("text", _uM("class" to "data-label"), "湿度")
                            ))
                        )),
                        _cE("view", _uM("class" to "data-card"), _uA(
                            _cE("view", _uM("class" to "data-icon status-icon"), _uA(
                                _cV(_component_uni_icons, _uM("type" to "watch", "size" to "36", "color" to "#52c41a"))
                            )),
                            _cE("view", _uM("class" to "data-info"), _uA(
                                _cE("text", _uM("class" to "data-value"), _tD(_ctx.faceStatusText), 1),
                                _cE("text", _uM("class" to "data-label"), "表盘状态")
                            ))
                        ))
                    )),
                    _cE("view", _uM("class" to "connection-status"), _uA(
                        _cV(_component_uni_icons, _uM("type" to "bluetooth", "size" to "24", "color" to if (_ctx.isConnected) {
                            "#52c41a"
                        } else {
                            "#ff4d4f"
                        }
                        , "animation" to if (_ctx.isScanning) {
                            "spin"
                        } else {
                            ""
                        }
                        ), null, 8, _uA(
                            "color",
                            "animation"
                        )),
                        _cE("view", _uM("class" to "status-pot", "style" to _nS(_uM("backgroundColor" to if (_ctx.isConnected) {
                            "Green"
                        } else {
                            "red"
                        }
                        ))), null, 4),
                        _cE("text", _uM("class" to "status-text"), _tD(if (_ctx.isConnected) {
                            "已连接设备"
                        } else {
                            if (_ctx.isScanning) {
                                "正在搜索设备..."
                            } else {
                                "未连接设备"
                            }
                        }
                        ), 1),
                        _cE("button", _uM("class" to "connect-btn", "onClick" to _ctx.toggleConnection, "disabled" to _ctx.isScanning), _tD(if (_ctx.isConnected) {
                            "断开连接"
                        } else {
                            "连接设备"
                        }
                        ), 9, _uA(
                            "onClick",
                            "disabled"
                        ))
                    ))
                ))
            ))
        ))
    }
    open var uploadedImages: UTSArray<Any?> by `$data`
    open var currentImageUrl: String by `$data`
    open var currentImageIndex: Number by `$data`
    open var imageDir: String by `$data`
    open var isConnected: Boolean by `$data`
    open var isScanning: Boolean by `$data`
    open var batteryLevel: Number by `$data`
    open var temperature: Number by `$data`
    open var humidity: Number by `$data`
    open var faceStatus: Number by `$data`
    open var deviceId: String by `$data`
    open var imageServiceuuid: String by `$data`
    open var imageWriteuuid: String by `$data`
    open var dataTimer: Any? by `$data`
    open var faceStatusText: String by `$data`
    open var batteryColor: String by `$data`
    @Suppress("USELESS_CAST")
    override fun data(): Map<String, Any?> {
        return _uM("uploadedImages" to _uA(), "currentImageUrl" to "", "currentImageIndex" to -1, "imageDir" to "", "isConnected" to true, "isScanning" to false, "batteryLevel" to 0, "temperature" to 0, "humidity" to 0, "faceStatus" to 0, "deviceId" to "", "imageServiceuuid" to "", "imageWriteuuid" to "", "dataTimer" to null, "faceStatusText" to computed<String>(fun(): String {
            when (this.faceStatus) {
                0 -> 
                    return "正常"
                1 -> 
                    return "更新中"
                2 -> 
                    return "异常"
                else -> 
                    return "未知"
            }
        }
        ), "batteryColor" to computed<String>(fun(): String {
            if (this.batteryLevel > 70) {
                return "#52c41a"
            }
            if (this.batteryLevel > 30) {
                return "#faad14"
            }
            return "#ff4d4f"
        }
        ))
    }
    open var writeBleImage = ::gen_writeBleImage_fn
    open fun gen_writeBleImage_fn() {}
    open var getBleService = ::gen_getBleService_fn
    open fun gen_getBleService_fn() {
        var that = this
        uni_getBLEDeviceServices(GetBLEDeviceServicesOptions(deviceId = that.deviceId, success = fun(services) {
            that.imageServiceuuid = services.services[2].uuid
            that.getBleChar()
        }
        , fail = fun(_) {
            console.log("获取服务Id失败", " at pages/connect/connect.uvue:224")
        }
        ))
    }
    open var getBleChar = ::gen_getBleChar_fn
    open fun gen_getBleChar_fn() {
        var that = this
        uni_getBLEDeviceCharacteristics(GetBLEDeviceCharacteristicsOptions(deviceId = that.deviceId, serviceId = that.imageServiceuuid, success = fun(res) {
            that.imageWriteuuid = res.characteristics[0].uuid
        }
        , fail = fun(_) {
            console.log("获取特征Id失败", " at pages/connect/connect.uvue:237")
        }
        ))
    }
    open var setBleMtu = ::gen_setBleMtu_fn
    open fun gen_setBleMtu_fn() {
        var that = this
        uni_setBLEMTU(SetBLEMTUOptions(deviceId = that.deviceId, mtu = 512, success = fun(_) {
            that.isConnected = true
            console.log("MTU设置成功", " at pages/connect/connect.uvue:249")
            that.getBleService()
        }
        , fail = fun(_) {
            console.log("MTU设置失败", " at pages/connect/connect.uvue:253")
        }
        ))
    }
    open var initImageDir = ::gen_initImageDir_fn
    open fun gen_initImageDir_fn() {
        this.imageDir = "watch_faces/"
    }
    open var loadSavedImages = ::gen_loadSavedImages_fn
    open fun gen_loadSavedImages_fn() {
        val savedImages = uni_getStorageSync("watch_face_images") || _uA()
        this.uploadedImages = savedImages
        if (savedImages.length > 0) {
            this.currentImageUrl = savedImages[0].url
            this.currentImageIndex = 0
        }
    }
    open var isImageFile = ::gen_isImageFile_fn
    open fun gen_isImageFile_fn(filename): Boolean {
        val ext = filename.toLowerCase().split(".").pop()
        return _uA(
            "jpg",
            "jpeg",
            "png",
            "gif",
            "bmp"
        ).includes(ext)
    }
    open var chooseImage = ::gen_chooseImage_fn
    open fun gen_chooseImage_fn() {
        uni_chooseImage(ChooseImageOptions(count = 1, sizeType = _uA(
            "compressed"
        ), sourceType = _uA(
            "album",
            "camera"
        ), success = fun(res){
            console.log(res, " at pages/connect/connect.uvue:329")
            val tempFilePath = res.tempFilePaths[0]
            val fs = uni_getFileSystemManager()
            fs.readFile(ReadFileOptions(filePath = tempFilePath, encoding = "binary", success = fun(res){
                this.imageBuffer = res.data
                this.log = "图片读取成功，大小：" + this.imageBuffer.byteLength + "字节"
            }
            ))
            this.saveImageToLocal(tempFilePath)
        }
        , fail = fun(err){
            console.error("选择图片失败:", err, " at pages/connect/connect.uvue:343")
            uni_showToast(ShowToastOptions(title = "选择图片失败", icon = "none"))
        }
        ))
    }
    open var saveImageToLocal = ::gen_saveImageToLocal_fn
    open fun gen_saveImageToLocal_fn(tempPath) {
        val fileName = "face_" + Date.now() + ".png"
        this.uploadedImages.push(object : UTSJSONObject() {
            var name = fileName
            var url = tempPath
        })
        uni_setStorageSync("watch_face_images", this.uploadedImages)
        this.currentImageIndex = this.uploadedImages.length - 1
        this.currentImageUrl = tempPath
        uni_showToast(ShowToastOptions(title = "图片保存成功", icon = "success"))
    }
    open var selectImage = ::gen_selectImage_fn
    open fun gen_selectImage_fn(index) {
        this.currentImageIndex = index
        this.currentImageUrl = this.uploadedImages[index].url
    }
    open var handleCarouselChange = ::gen_handleCarouselChange_fn
    open fun gen_handleCarouselChange_fn(e) {
        val index = e.detail.current
        this.currentImageIndex = index
        this.currentImageUrl = this.uploadedImages[index].url
    }
    open var setAsCurrentFace = ::gen_setAsCurrentFace_fn
    open fun gen_setAsCurrentFace_fn() {
        this.faceStatus = 1
        setTimeout(fun(){
            this.faceStatus = 0
            uni_showToast(ShowToastOptions(title = "表盘已更新", icon = "success"))
            uni_setStorageSync("current_watch_face", this.currentImageUrl)
        }
        , 1500)
    }
    open var toggleConnection = ::gen_toggleConnection_fn
    open fun gen_toggleConnection_fn() {
        if (this.isConnected) {
            this.disconnectDevice()
        } else {
            this.connectDevice()
        }
    }
    open var connectDevice = ::gen_connectDevice_fn
    open fun gen_connectDevice_fn() {
        var that = this
        this.isScanning = true
        uni_showToast(ShowToastOptions(title = "正在连接设备...", icon = "none"))
        uni_createBLEConnection(CreateBLEConnectionOptions(deviceId = that.deviceId, success = fun(_) {
            that.isScanning = false
            that.isConnected = true
            uni_showToast(ShowToastOptions(title = "设备连接成功", icon = "success"))
            that.setBleMtu()
            that.startDataSimulation()
        }
        ))
    }
    open var disconnectDevice = ::gen_disconnectDevice_fn
    open fun gen_disconnectDevice_fn() {
        var that = this
        uni_closeBLEConnection(CloseBLEConnectionOptions(deviceId = that.deviceId, success = fun(_) {
            that.isConnected = false
            that.statusPotColor = "red"
            uni_showToast(ShowToastOptions(title = "已断开连接", icon = "none"))
            that.stopDataSimulation()
        }
        , fail = fun(res) {
            if (res == 10000) {
                uni_openBluetoothAdapter(OpenBluetoothAdapterOptions(success = fun(_) {
                    that.isConnected = false
                }
                , fail = fun(_) {
                    console.log("初始化失败", " at pages/connect/connect.uvue:464")
                }
                ))
            }
        }
        ))
    }
    open var startDataSimulation = ::gen_startDataSimulation_fn
    open fun gen_startDataSimulation_fn() {
        if (this.dataTimer) {
            clearInterval(this.dataTimer!!)
        }
        this.batteryLevel = Math.floor(Math.random() * 30) + 70
        this.temperature = Math.floor(Math.random() * 10) + 20
        this.humidity = Math.floor(Math.random() * 30) + 40
        this.dataTimer = setInterval(fun(){
            if (this.batteryLevel > 1) {
                this.batteryLevel = Math.max(1, this.batteryLevel - Math.random() * 2)
            }
            this.temperature = Math.max(15, Math.min(35, this.temperature + (Math.random() * 2 - 1)))
            this.humidity = Math.max(30, Math.min(80, this.humidity + (Math.random() * 4 - 2)))
        }
        , 5000)
    }
    open var stopDataSimulation = ::gen_stopDataSimulation_fn
    open fun gen_stopDataSimulation_fn() {
        if (this.dataTimer) {
            clearInterval(this.dataTimer!!)
            this.dataTimer = null
        }
    }
    companion object {
        val styles: Map<String, Map<String, Map<String, Any>>> by lazy {
            _nCS(_uA(
                styles0
            ), _uA(
                GenApp.styles
            ))
        }
        val styles0: Map<String, Map<String, Map<String, Any>>>
            get() {
                return _uM("status-pot" to _pS(_uM("width" to 16, "height" to 16)), "container" to _pS(_uM("backgroundColor" to "#f5f5f7")), "nav-bar" to _pS(_uM("display" to "flex", "justifyContent" to "space-between", "alignItems" to "center", "paddingTop" to "20rpx", "paddingRight" to "30rpx", "paddingBottom" to "20rpx", "paddingLeft" to "30rpx", "backgroundColor" to "#ffffff")), "nav-title" to _pS(_uM("color" to "#FFFFFF", "fontSize" to "36rpx")), "upload-btn" to _pS(_uM("alignItems" to "center", "gap" to "8rpx", "backgroundColor" to "#28d50e", "color" to "#FFFFFF", "width" to "35%", "marginTop" to 10, "paddingTop" to "14rpx", "paddingRight" to "0rpx", "paddingBottom" to "14rpx", "paddingLeft" to "0rpx", "borderTopLeftRadius" to "8rpx", "borderTopRightRadius" to "8rpx", "borderBottomRightRadius" to "8rpx", "borderBottomLeftRadius" to "8rpx", "fontSize" to "26rpx")), "content" to _pS(_uM("paddingTop" to "30rpx", "paddingRight" to "30rpx", "paddingBottom" to "30rpx", "paddingLeft" to "30rpx")), "section-title" to _pS(_uM("fontSize" to "32rpx", "color" to "#333333", "marginTop" to "30rpx", "marginRight" to 0, "marginBottom" to "20rpx", "marginLeft" to 0)), "preview-container" to _pS(_uM("display" to "flex", "flexDirection" to "column", "alignItems" to "center", "marginBottom" to "20rpx")), "preview-frame" to _pS(_uM("width" to "480rpx", "height" to "480rpx", "backgroundColor" to "#ffffff", "boxShadow" to "0 4rpx 12rpx rgba(0, 0, 0, 0.1)", "display" to "flex", "justifyContent" to "center", "alignItems" to "center", "overflow" to "hidden", "position" to "relative")), "preview-image" to _pS(_uM("width" to "100%", "height" to "100%")), "empty-preview" to _pS(_uM("display" to "flex", "flexDirection" to "column", "alignItems" to "center", "color" to "#cccccc")), "set-btn" to _pS(_uM("marginTop" to "20rpx", "backgroundColor" to "#3cbb19", "color" to "#FFFFFF", "width" to "35%", "paddingTop" to "15rpx", "paddingRight" to "0rpx", "paddingBottom" to "15rpx", "paddingLeft" to "0rpx", "borderTopLeftRadius" to "8rpx", "borderTopRightRadius" to "8rpx", "borderBottomRightRadius" to "8rpx", "borderBottomLeftRadius" to "8rpx", "fontSize" to "28rpx")), "carousel-section" to _pS(_uM("marginBottom" to "30rpx")), "carousel-container" to _pS(_uM("backgroundColor" to "#FFFFFF", "borderTopLeftRadius" to "16rpx", "borderTopRightRadius" to "16rpx", "borderBottomRightRadius" to "16rpx", "borderBottomLeftRadius" to "16rpx", "paddingTop" to "20rpx", "paddingRight" to 0, "paddingBottom" to "20rpx", "paddingLeft" to 0, "boxShadow" to "0 2rpx 8rpx rgba(0, 0, 0, 0.05)", "overflow" to "hidden")), "card-swiper" to _pS(_uM("width" to "100%", "height" to "240rpx")), "swiper-item" to _uM(".card-swiper " to _uM("display" to "flex", "justifyContent" to "center", "alignItems" to "center", "transitionProperty" to "all", "transitionDuration" to "0.3s", "transitionTimingFunction" to "ease")), "card-item" to _pS(_uM("width" to "240rpx", "height" to "240rpx")), "card-frame" to _pS(_uM("width" to "240rpx", "height" to "100%", "overflow" to "hidden", "boxShadow" to "0 6rpx 16rpx rgba(0, 0, 0, 0.15)", "position" to "relative")), "card-image" to _pS(_uM("width" to "240rpx", "height" to "100%")), "card-overlay" to _pS(_uM("position" to "absolute", "top" to 0, "left" to 0, "width" to "240rpx", "height" to "100%", "backgroundColor" to "rgba(0,0,0,0.3)", "display" to "flex", "justifyContent" to "center", "alignItems" to "center")), "swiper-item-active" to _uM(".card-swiper " to _uM("transform" to "scale(1)", "zIndex" to 2)), "carousel-hint" to _pS(_uM("height" to "200rpx", "display" to "flex", "justifyContent" to "center", "alignItems" to "center", "color" to "#999999", "fontSize" to "26rpx", "textAlign" to "center")), "data-section" to _pS(_uM("backgroundColor" to "#FFFFFF", "borderTopLeftRadius" to "16rpx", "borderTopRightRadius" to "16rpx", "borderBottomRightRadius" to "16rpx", "borderBottomLeftRadius" to "16rpx", "paddingTop" to "20rpx", "paddingRight" to "30rpx", "paddingBottom" to "20rpx", "paddingLeft" to "30rpx", "boxShadow" to "0 2rpx 8rpx rgba(0, 0, 0, 0.05)")), "data-grid" to _pS(_uM("gridTemplateColumns" to "1fr 1fr", "gap" to "20rpx", "marginBottom" to "30rpx")), "data-card" to _pS(_uM("backgroundColor" to "#f9f9f9", "borderTopLeftRadius" to "12rpx", "borderTopRightRadius" to "12rpx", "borderBottomRightRadius" to "12rpx", "borderBottomLeftRadius" to "12rpx", "paddingTop" to "20rpx", "paddingRight" to "20rpx", "paddingBottom" to "20rpx", "paddingLeft" to "20rpx", "display" to "flex", "alignItems" to "center", "gap" to "20rpx")), "data-icon" to _pS(_uM("width" to "60rpx", "height" to "60rpx", "borderTopLeftRadius" to "12rpx", "borderTopRightRadius" to "12rpx", "borderBottomRightRadius" to "12rpx", "borderBottomLeftRadius" to "12rpx", "display" to "flex", "justifyContent" to "center", "alignItems" to "center")), "battery-icon" to _pS(_uM("backgroundColor" to "#f6ffed")), "temp-icon" to _pS(_uM("backgroundColor" to "#fff7e6")), "humidity-icon" to _pS(_uM("backgroundColor" to "#e6f7ff")), "status-icon" to _pS(_uM("backgroundColor" to "#f0f9ff")), "data-info" to _pS(_uM("flex" to 1)), "data-value" to _pS(_uM("fontSize" to "32rpx", "fontWeight" to "bold", "color" to "#333333")), "data-label" to _pS(_uM("fontSize" to "24rpx", "color" to "#666666")), "connection-status" to _pS(_uM("display" to "flex", "justifyContent" to "space-between", "alignItems" to "center", "paddingTop" to "15rpx", "paddingRight" to 0, "paddingBottom" to "15rpx", "paddingLeft" to 0, "borderTopWidth" to "1rpx", "borderTopStyle" to "solid", "borderTopColor" to "#f0f0f0")), "status-text" to _pS(_uM("flex" to 1, "marginTop" to 0, "marginRight" to "15rpx", "marginBottom" to 0, "marginLeft" to "15rpx", "fontSize" to "28rpx", "color" to "#333333")), "connect-btn" to _pS(_uM("paddingTop" to "12rpx", "paddingRight" to "24rpx", "paddingBottom" to "12rpx", "paddingLeft" to "24rpx", "borderTopLeftRadius" to "8rpx", "borderTopRightRadius" to "8rpx", "borderBottomRightRadius" to "8rpx", "borderBottomLeftRadius" to "8rpx", "fontSize" to "26rpx", "backgroundColor" to "#007aff", "color" to "#FFFFFF", "backgroundColor:disabled" to "#cccccc")), "@TRANSITION" to _uM("swiper-item" to _uM("property" to "all", "duration" to "0.3s", "timingFunction" to "ease")))
            }
        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()
    }
}
