import{Z as n}from"./chunk-CKLXM6EG.js";var a=class t{currencyKeys=new Set(["sub_total_after","sub_total","price_after_negotiated","total_after_negotiated","price_invoice","supply-orders.sub_total_after","supply-orders.sub_total","supply-orders.price_after_negotiated","supply-orders.price_invoice","form.price_invoice","enter_remaining_amount","form.enter_remaining_amount","form.enter_base_amount","enter_base_amount","form.price_egp","price","currencies_and_taxes.currency_warning","total","reports_and_statistics.total","vendor_shipment_cost","total_before","total_discount","remaining_credit","paid_amount"]);constructor(){}getStoredCurrency(){let r=localStorage.getItem("current_currency");return r?JSON.parse(r):null}getCurrentLang(){return localStorage.getItem("lang")||"ar"}getCurrencyLabel(){let r=this.getStoredCurrency(),e=this.getCurrentLang();return r?e==="ar"?r.currency_ar:r.currency_en.toUpperCase():""}getCurrencySymbol(){return this.getStoredCurrency()?.currency_symbol||""}getTranslateParams(r){let e=r.toLowerCase();return this.currencyKeys.has(e)?{currency:this.getCurrencyLabel()}:{}}getCountry(){let r=this.getStoredCurrency(),e=this.getCurrentLang();return r?e==="ar"?r.country_name_ar:r.country_name_en:""}static \u0275fac=function(e){return new(e||t)};static \u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})};export{a};
