"use strict";const e=require("../../../common/vendor.js"),r=require("../../index.js");if(require("../../url/index.js"),require("../../store/index.js"),require("../../store/app.js"),require("../../api/promotion/diy.js"),require("../../request/index.js"),require("../../config/index.js"),require("../../platform/index.js"),require("../../platform/provider/wechat/index.js"),require("../../platform/provider/wechat/miniProgram.js"),require("../../api/member/auth.js"),require("../../api/member/social.js"),require("../../api/member/user.js"),require("../../platform/provider/apple/index.js"),require("../../platform/share.js"),require("../../router/index.js"),require("../../hooks/useModal.js"),require("../../helper/index.js"),require("../../helper/test.js"),require("../../helper/digit.js"),require("../../api/member/signin.js"),require("../../helper/throttle.js"),require("../../platform/pay.js"),require("../../api/pay/order.js"),require("../../store/user.js"),require("../../store/cart.js"),require("../../api/trade/cart.js"),require("../../api/pay/wallet.js"),require("../../api/trade/order.js"),require("../../api/promotion/coupon.js"),require("../../store/sys.js"),require("../../store/modal.js"),require("../../config/zIndex.js"),!Array){(e.resolveComponent("su-navbar")+e.resolveComponent("s-custom-navbar")+e.resolveComponent("su-inner-navbar")+e.resolveComponent("s-tabbar")+e.resolveComponent("s-wallet-modal")+e.resolveComponent("s-signup-modal")+e.resolveComponent("s-auth-modal")+e.resolveComponent("s-share-modal")+e.resolveComponent("s-menu-tools"))()}Math||((()=>"../../ui/su-navbar/su-navbar.js")+(()=>"../s-custom-navbar/s-custom-navbar.js")+(()=>"../../ui/su-inner-navbar/su-inner-navbar.js")+(()=>"../s-tabbar/s-tabbar.js")+(()=>"../s-wallet-modal/s-wallet-modal.js")+(()=>"../s-signup-modal/s-signup-modal.js")+(()=>"../s-auth-modal/s-auth-modal.js")+(()=>"../s-share-modal/s-share-modal.js")+(()=>"../s-menu-tools/s-menu-tools.js"))();const a={__name:"s-layout",props:{title:{type:String,default:""},navbar:{type:String,default:"normal"},opacityBgUi:{type:String,default:"bg-white"},color:{type:String,default:""},tools:{type:String,default:"title"},keyword:{type:String,default:""},navbarStyle:{type:Object,default:()=>({mode:"",type:"",color:"",src:"",list:[],alwaysShow:0})},bgStyle:{type:Object,default:()=>({src:"",color:"var(--ui-BG-1)"})},tabbar:{type:[String,Boolean],default:""},onShareAppMessage:{type:[Boolean,Object],default:!0},leftWidth:{type:[Number,String],default:100},rightWidth:{type:[Number,String],default:100},defaultSearch:{type:String,default:""},showLeftButton:{type:Boolean,default:!1}},emits:["search"],setup(a,{emit:t}){const o=a,s=t,n=r.sheep.$store("sys");r.sheep.$store("user"),r.sheep.$store("app"),r.sheep.$store("modal");const l=e.computed((()=>n)),u=e.computed((()=>"normal"===o.navbar||"normal"===o.navbarStyle.mode?"normal":"inner")),i=e.computed((()=>"inner"===u.value?{background:`${o.bgStyle.backgroundColor} url(${r.sheep.$url.cdn(o.bgStyle.backgroundImage)}) no-repeat top center / 100% auto`}:{})),p=e.computed((()=>"normal"===u.value?{background:`${o.bgStyle.backgroundColor} url(${r.sheep.$url.cdn(o.bgStyle.backgroundImage)}) no-repeat top center / 100% auto`}:{})),m=e.computed((()=>!0===o.onShareAppMessage?r.sheep.$platform.share.getShareInfo():e.lodashExports.isEmpty(o.onShareAppMessage)?{}:(r.sheep.$platform.share.updateShareInfo(o.onShareAppMessage),o.onShareAppMessage)));return e.onShareAppMessage((()=>({title:m.value.title,path:m.value.path,imageUrl:m.value.image}))),e.onShow((()=>{e.lodashExports.isEmpty(m.value)||r.sheep.$platform.share.updateShareInfo(m.value)})),(t,o)=>e.e({a:"normal"===a.navbar},"normal"===a.navbar?{b:e.o((e=>s("search",e))),c:e.p({title:a.title,statusBar:!0,color:a.color,tools:a.tools,opacityBgUi:a.opacityBgUi,defaultSearch:a.defaultSearch})}:"custom"===a.navbar&&"normal"===u.value?{e:e.p({data:a.navbarStyle,showLeftButton:a.showLeftButton})}:{},{d:"custom"===a.navbar&&"normal"===u.value,f:"inner"===a.navbar},"inner"===a.navbar?{g:e.p({title:a.title})}:{},{h:"inner"===a.navbar},"inner"===a.navbar?{i:e.s({paddingTop:e.unref(r.sheep).$platform.navbar+"px"})}:{},{j:""!==a.tabbar},""!==a.tabbar?{k:e.p({path:a.tabbar})}:{},{l:e.s(p.value),m:e.s(i.value),n:e.p({shareInfo:m.value}),o:e.n("theme-"+l.value.mode),p:e.n("main-"+l.value.theme),q:e.n("font-"+l.value.fontSize)})}},t=e._export_sfc(a,[["__scopeId","data-v-fe863200"]]);wx.createComponent(t);
