"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("uni-fab")()}Math;const i={__name:"s-float-menu",props:{data:{type:Object,default(){}}},setup(i){var t;const o=i,s=e.reactive({pattern:[],content:[],direction:""}),a=e.ref(null);function u(e){r.sheep.$router.go(e.item.url)}function n(){var r,i;(null==(r=e.unref(a))?void 0:r.isShow)&&(null==(i=e.unref(a))||i.close())}return s.direction=o.data.direction,null==(t=o.data)||t.list.forEach((e=>{var i;const t=(null==(i=o.data)?void 0:i.showText)?e.text:"";s.content.push({iconPath:r.sheep.$url.cdn(e.imgUrl),url:e.url,text:t}),s.pattern.push({color:e.textColor})})),e.onBackPress((()=>{var r,i;return!!(null==(r=e.unref(a))?void 0:r.isShow)&&(null==(i=e.unref(a))||i.close(),!0)})),(r,i)=>{var t,o;return e.e({a:null==(t=a.value)?void 0:t.isShow},(null==(o=a.value)?void 0:o.isShow)?{b:e.o(n)}:{},{c:e.sr(a,"5bf5ab3a-0",{k:"fabRef"}),d:e.o(u),e:e.p({horizontal:"right",vertical:"bottom",direction:s.direction,pattern:s.pattern,content:s.content})})}}},t=e._export_sfc(i,[["__scopeId","data-v-5bf5ab3a"]]);wx.createComponent(t);
