var g=Object.defineProperty;var d=(e,t,r)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var u=(e,t,r)=>d(e,typeof t!="symbol"?t+"":t,r);import"./vue.esm-bundler-DZdE0M9V.js";import{A as p}from"./Arr-MwYQQ3qa.js";class o{constructor(){u(this,"_data",{})}static form(t){const r=new this;return r._data=t,r}get(t=null,r=""){return t===null?this._data:p.get(this._data,t,r)}}const a=class a{static setConfig(t){a._data=t}static mergeConfig(t){a._data={...a._data,...t}}static get(t=null,r=null){return t===null?a._data:o.form(a._data).get(t)}static assetUrl(t=""){return a.get("asset_url")+t}static get shop(){return o.form(a.get("shop"))}static get config(){return o.form(a.get("app_config"))}};u(a,"_data",window.fluentCartAdminApp);let l=a;function c(e){l.get("app_config.env")==="dev"&&l.get("trans")[e],e=l.get("trans")[e]||e;const t=Array.prototype.slice.call(arguments,1);if(t.length===0)return e;const r=/%(\d*\$?)s|%d/g;let n=0;return e=e.replace(r,(s,i)=>{if(i){const f=parseInt(i,10)-1;return f<t.length?t[f]:s}else return n<t.length?t[n++]:s}),e}function A(e,t,r,n=null){let s=parseInt(r.toString().replace(/,/g,""),10);return s>1?c(t,r):c(s===0?n??e:e,r)}function x(e){const t=l.get("datei18");e=e.toString();const n=(t.numericSystem||"0_1_2_3_4_5_6_7_8_9").split("_");return e.split("").map(i=>n[i]||i).join("")}export{l as A,x as a,A as p,c as t};
