import{o as e}from"./chunk-mlkTr37E.js";import{t}from"./lodash-BtwhQj49.js";import{u as n}from"./cache-BCH2kRNz.js";import{t as r}from"./init-vTxIv4PY.js";import"./get-ztzP-Ywo.js";import"./video-Dq9FpTcF.js";var i=e(t()),a=async()=>await r.post(`/webchat/api/coreapi/v1.2/mini/login/sc`),o=async e=>{let t=new n([`logistic`,e].join(`-`));{let e=await t.get();if(e)return e}let a=await r.get(`/api/v3/logistics/get_channel_list/`),o=i.default.get(a,`data.list`,[]);return await t.set(o,30),o},s=async e=>{let t=new n([`warehouse`,e].join(`-`));{let e=await t.get();if(e)return e}try{let e=await r.get(`/api/v3/product/get_shop_warehouse/`),n=i.default.get(e,`data.warehouse_list`,[]);return await t.set(n,30),n}catch{return[]}};export{s as n,a as r,o as t};