1import{K as e}from"./vendor-firebase-BoNTAgzP.js";import{K as r}from"./core-base-C6U1gwfh.js";import"./vendor-core-PeJPZ6eL.js";function o(){if(!r)return n({prices:{gold_monthly:.99,diamond_monthly:1.99},fees:{fixed:.3,percentage:.029},infra:{casual:.0025,gold:.011,diamond:.08}});try{const o=JSON.parse(e(r,"subscription_prices").asString()),i=JSON.parse(e(r,"stripe_fees").asString());return n({prices:o,fees:i,infra:JSON.parse(e(r,"estimated_monthly_infra_costs").asString())})}catch(o){return console.error("[getSubscriptionEconomics] Failed to parse Remote Config:",o),n({prices:{gold_monthly:.99,diamond_monthly:1.99},fees:{fixed:.3,percentage:.029},infra:{casual:.0025,gold:.011,diamond:.08}})}}function n(e){return{...e,calculateNetMargin:r=>{const o="diamond"===r?e.prices.diamond_monthly:e.prices.gold_monthly,n="diamond"===r?e.infra.diamond:e.infra.gold,{fixed:i,percentage:t}=e.fees;return parseFloat((o-(o*t+i)-n).toFixed(4))}}}export{o as getSubscriptionEconomics};
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.