"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[6652],{16652:(a,t,o)=>{o.r(t),o.d(t,{useHaohuolaStore:()=>d,widgetInfo:()=>r});var e=o(10435),h=o(84522),i=o(74003),c=o(79664);var s=o(94119),n=o(24581),l=o(57268),u=o(37587);const r=(0,l.Fl)((()=>(0,u.E)(n.R.haohuola))),d=(0,e.Q_)(h.BU.haohuola,{syncStorage:{watch:["commodityList"]},state:()=>({modalShow:!1,commodityList:[],cacheData:{}}),actions:{setModal(a){s.G.setStatus(n.R.haohuola,a),this.modalShow=a},async queryHaohuola(a){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;const o="haohuola_"+a,e=this.cacheData[o];if(e&&Date.now()-e.updatetime<3e5)return e.data;const[h,s={}]=await(async(a,t)=>{try{const o=await c.hj.get(`${i.H}haohuola/list`,{pageNum:a,pageSize:t},{_delay:0});if(0===o.code)return[null,o.data];throw o}catch(a){return["catch error"]}})(a,t);return h||!s?{}:(this.cacheData={...this.cacheData,[o]:{data:s,updatetime:Date.now()}},1===a&&(this.commodityList=s),s)}}})}}]);