import{t as e}from"./background-LUqerC6l.js";var t=()=>({"content-type":`application/json`}),n=async(t,n)=>{let r=await e(`product`),i=e=>e.query&&e.query.item_id&&Number(e.query.item_id)===Number(t)&&Number(e.query.shop_id)===Number(n),a=r.filter(e=>i(e));return a&&a.length?{active:!0,listPayload:a}:{active:!1,listPayload:[]}},r=e=>(e&&e[3]&&(e.error=e[3]),!!(e&&e.error&&[90309999].includes(e.error)));export{t as n,n as r,r as t};