1import{al as v,am as g,an as f,r as s,ap as h,ao as o,W as y}from"./aJtTF-_E.js";import{l as _}from"./B1WODrm1.js";const R=v("points",()=>{const r=h(),{fetchHeaders:p}=g(r),{get:l}=g(r),{getCachingProxyRoute:m}=f();r.public.baseUrl;const u=s(null),n=s(!0),i=s(null),c=s([]),a=s({per_page:8,current_page:1});return{points:u,hasAtLeastOnePoint:n,pointsHistory:i,tiers:c,pagination:a,getCustomerPoints:async()=>{try{const e=await l(o.CUSTOMER_POINTS);u.value={...e}}catch(e){throw new Error(`customer points: ${e.message}`)}},getCustomerPointsHistory:async(e={})=>{try{const t=await l(`${o.POINTS_HISTORY}?${_.stringify(e)}`);i.value=[...t.data],a.value.current_page=t.current_page,a.value.last_page=t.last_page,a.value.links=t.links.slice(1,-1),a.value.per_page=t.per_page,a.value.total=t.total,t.current_page===1&&i.value.length===0&&e.filter&&Object.keys(e.filter).length===0?n.value=!1:n.value=!0}catch(t){throw new Error(`customer points: ${t.message}`)}},getAllTiers:async()=>{const{data:e,error:t}=await y(`${m(o.TIERS,o.TIERS_PROXY)}`,{method:"GET",key:"get-all-tiers",...p()},"$R6zOiyi49u");e.value!==null&&(c.value=e.value.data),t.value&&console.log(t.value)}}});export{R as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.