import{a as u,u as s,r as n}from"./index.ad3efb29.js";import{ay as o}from"./vue.adf17aba.js";const d=u(),{dateRange:a}=o(d),l=s(),{profile:m}=o(l),r="/api/ad_manage/portfolios/";function c(t){const e={...t,startDate:a.value[0],endDate:a.value[1],name:t.name};return n({url:r,method:"get",params:e})}function f(){return n({url:r+"select_list",method:"get",params:{limit:999}})}function D(t){const e={...t,profileId:m.value.profile_id};return n({url:r+"create/",method:"post",data:e})}function h(t){return n({url:r+t.id+"/",method:"put",data:t})}function v(t){return n({url:r+t+"/",method:"delete",data:{id:t}})}function g(t){const e={...t,startDate:a.value[0],endDate:a.value[1],name:t.name};return n({url:r+"report/amount",method:"GET",params:e})}function G(t){const e={...t,startDate:a.value[0],endDate:a.value[1],name:t.name};return n({url:r+"report/trend/daily",method:"GET",params:e})}function b(t){const e={...t,startDate:a.value[0],endDate:a.value[1],name:t.name};return n({url:r+"report/trend/weekly",method:"GET",params:e})}function Q(t){const e={...t,startDate:a.value[0],endDate:a.value[1],name:t.name};return n({url:r+"report/trend/monthly",method:"GET",params:e})}export{D as A,v as D,c as G,h as U,f as a,G as b,Q as c,b as d,g};
