import{t as e}from"./init-vTxIv4PY.js";var t=async(t=[5,4],n=20,r=1)=>{let i={rating_star:t.join(`,`),page_number:r,page_size:n,cursor:0,from_page_number:0,reply_status:1,language:`vi`};r>1&&(i.from_page_number=r-1);try{return(await e.get(`/api/v3/settings/search_shop_rating_comments_new/`,{params:i})).data.list||[]}catch{return[]}},n=async(t={},n=20,r=1,i=0)=>{let a={...t,page_number:r,page_size:n,from_page_number:0,language:`vi`};r>1&&(a.from_page_number=r-1),i&&(a.cursor=i);try{return(await e.get(`/api/v3/settings/search_shop_rating_comments_new/`,{params:a})).data.list||[]}catch{return[]}},r=async(t=[5,4])=>{let n={rating_star:t.join(`,`),page_number:1,page_size:1,cursor:0,from_page_number:0,reply_status:1,language:`vi`};try{return(await e.get(`/api/v3/settings/search_shop_rating_comments_new/`,{params:n})).data.counts}catch{return null}},i=async(t,n,r)=>{let i={order_id:t,comment_id:n,comment:r};return await e.post(`/api/v3/settings/reply_shop_rating/`,i)};export{i,t as n,r,n as t};