@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
open class GenPagesTemplateInterstitialPosterInterstitialPoster : 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: GenPagesTemplateInterstitialPosterInterstitialPoster) -> Any? = fun(__props): Any? {
            val __ins = getCurrentInstance()!!
            val _ctx = __ins.proxy as GenPagesTemplateInterstitialPosterInterstitialPoster
            val _cache = __ins.renderCache
            val showPoster = ref<Boolean>(false)
            val alignContainerStyle = ref("display: flex; justify-content: center; background-color: transparent;")
            fun gen_openPoster_fn() {
                showPoster.value = true
            }
            val openPoster = ::gen_openPoster_fn
            fun gen_closePoster_fn() {
                showPoster.value = false
            }
            val closePoster = ::gen_closePoster_fn
            fun gen_onPosterAfterLeave_fn() {
                showPoster.value = false
            }
            val onPosterAfterLeave = ::gen_onPosterAfterLeave_fn
            return fun(): Any? {
                val _component_page_container = resolveComponent("page-container")
                return _cE("scroll-view", _uM("class" to "page-scroll"), _uA(
                    _cE("view", _uM("class" to "page"), _uA(
                        _cE("view", _uM("class" to "hero-panel"), _uA(
                            _cE("text", _uM("class" to "hero-title"), "插屏海报示例"),
                            _cE("text", _uM("class" to "hero-desc"), "使用 page-container 实现一个居中的插屏海报。"),
                            _cE("button", _uM("class" to "hero-button", "type" to "primary", "onClick" to openPoster), "打开插屏海报")
                        )),
                        _cV(_component_page_container, _uM("show" to unref(showPoster), "position" to "center", "overlay" to true, "overlay-style" to "background-color: rgba(14, 20, 34, 0.68);", "custom-style" to unref(alignContainerStyle), "onClickoverlay" to closePoster, "onAfterleave" to onPosterAfterLeave), _uM("default" to withSlotCtx(fun(): UTSArray<Any> {
                            return _uA(
                                _cE("view", _uM("class" to "poster-dialog"), _uA(
                                    _cE("view", _uM("class" to "poster-card"), _uA(
                                        _cE("view", _uM("class" to "poster-top-strip")),
                                        _cE("view", _uM("class" to "poster-head"), _uA(
                                            _cE("text", _uM("class" to "poster-badge"), "活动海报"),
                                            _cE("text", _uM("class" to "poster-tag"), "INTERSTITIAL")
                                        )),
                                        _cE("view", _uM("class" to "poster-body"), _uA(
                                            _cE("text", _uM("class" to "poster-title"), "插屏海报"),
                                            _cE("text", _uM("class" to "poster-subtitle"), "海报主体和底部关闭按钮都由多个 view 组合而成，其中关闭按钮的 X 使用两条旋转的 view 实现。"),
                                            _cE("view", _uM("class" to "poster-highlight"), _uA(
                                                _cE("text", _uM("class" to "poster-highlight-label"), "示例内容"),
                                                _cE("text", _uM("class" to "poster-highlight-main"), "新人立减 X 元"),
                                                _cE("text", _uM("class" to "poster-highlight-note"), "支持标题、说明、主按钮与关闭交互组合展示")
                                            )),
                                            _cE("view", _uM("class" to "poster-mock-art"), _uA(
                                                _cE("view", _uM("class" to "mock-card mock-card-main"), _uA(
                                                    _cE("text", _uM("class" to "mock-card-title"), "POSTER")
                                                )),
                                                _cE("view", _uM("class" to "mock-card mock-card-side")),
                                                _cE("view", _uM("class" to "mock-line"))
                                            )),
                                            _cE("view", _uM("class" to "poster-footer"), _uA(
                                                _cE("button", _uM("class" to "poster-action", "type" to "primary", "onClick" to closePoster), "立即查看"),
                                                _cE("text", _uM("class" to "poster-footnote"), "活动说明：示例仅用于演示插屏布局与关闭交互")
                                            ))
                                        ))
                                    )),
                                    _cE("view", _uM("class" to "poster-close-wrap", "onClick" to closePoster), _uA(
                                        _cE("view", _uM("class" to "poster-close-circle"), _uA(
                                            _cE("view", _uM("class" to "poster-close-line poster-close-line-a")),
                                            _cE("view", _uM("class" to "poster-close-line poster-close-line-b"))
                                        ))
                                    ))
                                ))
                            )
                        }
                        ), "_" to 1), 8, _uA(
                            "show",
                            "custom-style"
                        ))
                    ))
                ))
            }
        }
        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("page-scroll" to _pS(_uM("flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%")), "page" to _pS(_uM("paddingTop" to 24, "paddingRight" to 24, "paddingBottom" to 24, "paddingLeft" to 24, "backgroundColor" to "#f8f8f8")), "hero-panel" to _pS(_uM("display" to "flex", "flexDirection" to "column", "paddingTop" to 24, "paddingRight" to 24, "paddingBottom" to 24, "paddingLeft" to 24, "borderTopLeftRadius" to 12, "borderTopRightRadius" to 12, "borderBottomRightRadius" to 12, "borderBottomLeftRadius" to 12, "backgroundColor" to "#ffffff")), "hero-title" to _pS(_uM("color" to "#333333", "fontSize" to 24, "fontWeight" to 700)), "hero-desc" to _pS(_uM("marginTop" to 12, "color" to "#666666", "fontSize" to 14, "lineHeight" to "20px")), "hero-button" to _pS(_uM("marginTop" to 20)), "poster-dialog" to _pS(_uM("display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "center")), "poster-card" to _pS(_uM("position" to "relative", "width" to 320, "paddingTop" to 18, "paddingRight" to 18, "paddingBottom" to 18, "paddingLeft" to 18, "borderTopLeftRadius" to 20, "borderTopRightRadius" to 20, "borderBottomRightRadius" to 20, "borderBottomLeftRadius" to 20, "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 "#e5e5e5", "borderRightColor" to "#e5e5e5", "borderBottomColor" to "#e5e5e5", "borderLeftColor" to "#e5e5e5", "backgroundColor" to "#ffffff", "overflow" to "hidden")), "poster-top-strip" to _pS(_uM("position" to "absolute", "top" to 0, "left" to 0, "right" to 0, "height" to 6, "backgroundColor" to "#007aff")), "poster-head" to _pS(_uM("display" to "flex", "flexDirection" to "row", "alignItems" to "center", "justifyContent" to "space-between")), "poster-badge" to _pS(_uM("marginTop" to 6, "paddingTop" to 6, "paddingRight" to 12, "paddingBottom" to 6, "paddingLeft" to 12, "borderTopLeftRadius" to 999, "borderTopRightRadius" to 999, "borderBottomRightRadius" to 999, "borderBottomLeftRadius" to 999, "backgroundColor" to "#eef5ff", "color" to "#007aff", "fontSize" to 12, "fontWeight" to 700)), "poster-tag" to _pS(_uM("marginTop" to 6, "color" to "#999999", "fontSize" to 11, "letterSpacing" to 1)), "poster-body" to _pS(_uM("display" to "flex", "flexDirection" to "column", "marginTop" to 14)), "poster-title" to _pS(_uM("color" to "#333333", "fontSize" to 26, "fontWeight" to 700, "lineHeight" to "34px")), "poster-subtitle" to _pS(_uM("marginTop" to 10, "color" to "#666666", "fontSize" to 14, "lineHeight" to "20px")), "poster-highlight" to _pS(_uM("display" to "flex", "flexDirection" to "column", "marginTop" to 14, "paddingTop" to 14, "paddingRight" to 14, "paddingBottom" to 14, "paddingLeft" to 14, "borderTopLeftRadius" to 12, "borderTopRightRadius" to 12, "borderBottomRightRadius" to 12, "borderBottomLeftRadius" to 12, "backgroundColor" to "#f8f8f8")), "poster-highlight-label" to _pS(_uM("color" to "#007aff", "fontSize" to 12)), "poster-highlight-main" to _pS(_uM("marginTop" to 6, "color" to "#333333", "fontSize" to 22, "fontWeight" to 700, "lineHeight" to "30px")), "poster-highlight-note" to _pS(_uM("marginTop" to 6, "color" to "#666666", "fontSize" to 13, "lineHeight" to "18px")), "poster-mock-art" to _pS(_uM("position" to "relative", "height" to 126, "marginTop" to 16, "borderTopLeftRadius" to 12, "borderTopRightRadius" to 12, "borderBottomRightRadius" to 12, "borderBottomLeftRadius" to 12, "backgroundColor" to "#f3f7ff", "overflow" to "hidden")), "mock-card" to _pS(_uM("position" to "absolute", "borderTopLeftRadius" to 12, "borderTopRightRadius" to 12, "borderBottomRightRadius" to 12, "borderBottomLeftRadius" to 12)), "mock-card-main" to _pS(_uM("top" to 20, "left" to 20, "width" to 150, "height" to 82, "paddingTop" to 50, "paddingLeft" to 14, "backgroundColor" to "#007aff")), "mock-card-title" to _pS(_uM("color" to "#ffffff", "fontSize" to 15, "fontWeight" to 700)), "mock-card-side" to _pS(_uM("top" to 28, "right" to 20, "width" to 60, "height" to 60, "backgroundColor" to "#dceaff")), "mock-line" to _pS(_uM("position" to "absolute", "left" to 20, "right" to 20, "bottom" to 18, "height" to 8, "borderTopLeftRadius" to 10, "borderTopRightRadius" to 10, "borderBottomRightRadius" to 10, "borderBottomLeftRadius" to 10, "backgroundColor" to "#dceaff")), "poster-footer" to _pS(_uM("display" to "flex", "flexDirection" to "column", "marginTop" to 16)), "poster-action" to _pS(_uM("backgroundColor" to "#007aff", "borderTopColor" to "#007aff", "borderRightColor" to "#007aff", "borderBottomColor" to "#007aff", "borderLeftColor" to "#007aff", "color" to "#ffffff")), "poster-footnote" to _pS(_uM("marginTop" to 10, "color" to "#999999", "fontSize" to 12, "textAlign" to "center")), "poster-close-wrap" to _pS(_uM("display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "center", "width" to "100%", "marginTop" to 18)), "poster-close-circle" to _pS(_uM("position" to "relative", "width" to 42, "height" to 42, "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 "rgba(255,255,255,0.9)", "borderRightColor" to "rgba(255,255,255,0.9)", "borderBottomColor" to "rgba(255,255,255,0.9)", "borderLeftColor" to "rgba(255,255,255,0.9)", "borderTopLeftRadius" to 42, "borderTopRightRadius" to 42, "borderBottomRightRadius" to 42, "borderBottomLeftRadius" to 42, "backgroundColor" to "rgba(255,255,255,0.18)")), "poster-close-line" to _pS(_uM("position" to "absolute", "top" to 20, "left" to 11, "width" to 20, "height" to 2, "borderTopLeftRadius" to 2, "borderTopRightRadius" to 2, "borderBottomRightRadius" to 2, "borderBottomLeftRadius" to 2, "backgroundColor" to "#ffffff")), "poster-close-line-a" to _pS(_uM("transform" to "rotate(45deg)")), "poster-close-line-b" to _pS(_uM("transform" to "rotate(-45deg)")))
            }
        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()
    }
}
