1import{ak as i}from"./index-DvZYQDkB.js";const c={full_name:"Jeffy Bloggs",display_name:"Jeffy Bloggs",avatar_color:"#e7983d",profile_image:null,display_density:"default",marketplace:"us",dark_mode:!1,analytics_enabled:!1,notifications:{},saved_filters:[],recent_activity:{}},l={preferences:c},p=!1,d="FREE",u="none",f=null,m=null,y=null,_=null,w=null,g=null,k=!1,v=!1,b="No subscription",h={hasAccess:p,plan:d,status:u,subscriptionId:f,productId:m,currentPeriodEnd:y,daysUntilRenewal:_,trialEndsAt:w,trialDaysRemaining:g,isNewUser:k,hasUsedTrial:v,message:b},E={"subscription-status":"/api/subscription/status",preferences:"/api/preferences","product-analysis":"/api/amazon/product/analysis","product-reviews":"/api/amazon/product/reviews","product-history":"/api/amazon/product/history","review-intelligence":"/api/amazon/product/review-intelligence","keyword-metrics":"/api/amazon/keywords/metrics","reverse-asin":"/api/amazon/keywords/reverse-asin","discovery-opportunities":"/api/discovery/opportunities","brand-check":"/api/brand/check"},D=Object.assign({"../data/demoSnapshot/preferences.json":l,"../data/demoSnapshot/subscription-status.json":h}),a=new Map;for(const[e,s]of Object.entries(D)){const o=e.split("/").pop().replace(/\.json$/,""),t=E[o];t&&a.set(t,s)}function S(){return a.get("/api/subscription/status")}function R(e,s){if(e==="/api/amazon/keywords/metrics"&&s?.keyword){const t=String(s.keyword).toLowerCase(),n=i.find(r=>r.keyword.toLowerCase()===t);if(n)return{ok:!0,data:{keyword:n.keyword,search_volume:n.searchVolume,cpc:n.cpc}}}if(a.has(e))return a.get(e);console.info(`[PublicDemo] No snapshot for ${e}; returning demo error (no network call made).`);const o=new Error("This data is not part of the demo. Create a free account to see it live.");throw o.name="DemoSnapshotMiss",o}export{S as getDemoSubscriptionStatus,R as resolveDemoResponse};
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.