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