import{o as e}from"./chunk-mlkTr37E.js";import"./query-string-RcCSSKcJ.js";import{t}from"./lodash-BtwhQj49.js";import{a as n,n as r,r as i}from"./axios-fetch-adapter-C745mZql.js";var a=e(t()),o=e=>e?Number(e.toString().replace(/\.00$/,``)):0,s=e=>e?e.replace(`${n.image}/`,``).replace(`_tn`,``):``,c=(e,t=!1)=>e?e.includes(n.image)?e:[`${n.image}/${e}`,t?`_tn`:``].join(``):``,l=e=>`${n.video}/${e}`,u=e=>`${i}/portal/product/${e}`,d=e=>`${i}/portal/marketing/shop-flash-sale/${e}`,f=(e,t)=>`${r}/product/${t}/${e}`,p=e=>`${r}/shop/${e}`,m=e=>{let t=a.default.get(e,`[0].video_id`,``);return{id:t,version:a.default.get(e,`[0].version`,``),urlRaw:t?`${n.video}/${t}`:``,listUrl:(a.default.get(e,`[0].formats`,[])||[]).map(e=>`${n.videoPlay}/${e.path}`),urlDefault:a.default.get(e,`[0].default_format.url`,``)}},h=`${i}/account/signin`;`${r}`;export{u as a,p as c,c as i,m as l,d as n,f as o,s as r,h as s,o as t,l as u};