"use strict";const e=require("../../../common/vendor.js"),r=require("../../index.js"),i=require("../../hooks/useModal.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("../../helper/throttle.js"),require("../../platform/pay.js"),require("../../helper/index.js"),require("../../helper/test.js"),require("../../helper/digit.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"),require("../../api/member/signin.js"),!Array){e.resolveComponent("su-popup")()}Math;const s={__name:"s-popup-image",props:{data:{type:Object,default(){}}},setup(s){const o=s,u=JSON.parse(e.index.getStorageSync("modal-store")||"{}");console.log(u);const t=u.advHistory||[],a=e.ref(0),p=e.computed((()=>{const e=o.data.list||[],r=[];return e.length>0&&e.forEach((e=>{"once"===e.showType&&t.includes(e.imgUrl)?e.isShow=!1:(e.isShow=!0,r.push(e)),i.saveAdvHistory(e)})),r}));return(i,s)=>({a:e.f(p.value,((i,s,o)=>e.e({a:s===a.value},s===a.value?{b:e.unref(r.sheep).$url.cdn(i.imgUrl),c:e.o((e=>{return s=i.url,void r.sheep.$router.go(s);var s}),s),d:e.o((e=>function(e){a.value=e+1,p.value[e].isShow=!1}(s)),s),e:"e1c1d1c2-0-"+o,f:e.p({show:i.isShow,type:"center",backgroundColor:"none",round:"0",showClose:!0,isMaskClick:!1})}:{},{g:s})))})}},o=e._export_sfc(s,[["__scopeId","data-v-e1c1d1c2"]]);wx.createComponent(o);
