PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | assets/chunks/Translator.js +1 -1 1.5.3 → 1.6.5 View file →
@@ -1 +1 @@
1 -var x=Object.defineProperty;var O=n=>{throw TypeError(n)};var J=(n,t,e)=>t in n?x(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var m=(n,t,e)=>J(n,typeof t!="symbol"?t+"":t,e),w=(n,t,e)=>t.has(n)||O("Cannot "+e);var l=(n,t,e)=>(w(n,t,"read from private field"),e?e.call(n):t.get(n)),y=(n,t,e)=>t.has(n)?O("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),j=(n,t,e,s)=>(w(n,t,"write to private field"),s?s.call(n,e):t.set(n,e),e),u=(n,t,e)=>(w(n,t,"access private method"),e);import{J as M}from"./vue.esm-bundler.js?ver=1.5.3";import{A as N}from"./Arr.js?ver=1.5.3";class b{constructor(){m(this,"_data",{})}static form(t){const e=new this;return e._data=t,e}get(t=null,e=""){return t===null?this._data:N.get(this._data,t,e)}}var t,i,h,a,S,f;const r=class r{static onShopUpdate(t){l(r,h).push(t)}static setConfig(t){var e;if(u(e=r,a,f).call(e,t),Object.keys(r._data).forEach(s=>delete r._data[s]),Object.assign(r._data,t),l(r,i))try{l(r,i).postMessage({type:"set",config:JSON.parse(JSON.stringify(t))})}catch{}}static mergeConfig(t){var e;if(u(e=r,a,f).call(e,t),Object.assign(r._data,t),l(r,i))try{l(r,i).postMessage({type:"merge",config:JSON.parse(JSON.stringify(t))})}catch{}}static get(t=null,e=null){return t===null?r._data:b.form(r._data).get(t,e)}static assetUrl(t=""){return r.get("asset_url")+t}static get shop(){return b.form(r.get("shop"))}static get config(){return b.form(r.get("app_config"))}};i=new WeakMap,h=new WeakMap,a=new WeakSet,S=function(){l(r,h).forEach(t=>t())},f=function(t){if(!t||typeof t!="object")return;const e=document.createElement("textarea");t.shop&&t.shop.currency_sign&&(e.innerHTML=t.shop.currency_sign,t.shop.currency_sign=e.value),t.currency_signs&&typeof t.currency_signs=="object"&&Object.keys(t.currency_signs).forEach(function(s){e.innerHTML=t.currency_signs[s],t.currency_signs[s]=e.value})},y(r,a),m(r,"_data",M(window.fluentCartAdminApp||{})),y(r,i,null),y(r,h,[]),u(t=r,a,f).call(t,r._data),typeof BroadcastChannel<"u"&&(j(r,i,new BroadcastChannel("fluent-cart-config:"+window.location.origin)),l(r,i).onmessage=function(e){var c,o,p,d;const s=e.data;if(s){if(s.type==="merge"&&s.config)u(c=r,a,f).call(c,s.config),Object.assign(r._data,s.config),s.config.shop&&(u(o=r,a,S).call(o),window.dispatchEvent(new CustomEvent("fluentCartCurrencyChange")));else if(s.type==="set"&&s.config){u(p=r,a,f).call(p,s.config);const v=r._data.shop&&r._data.shop.currency_sign;Object.keys(r._data).forEach(_=>delete r._data[_]),Object.assign(r._data,s.config);const E=r._data.shop&&r._data.shop.currency_sign;v!==E&&(u(d=r,a,S).call(d),window.dispatchEvent(new CustomEvent("fluentCartCurrencyChange")))}}});let g=r;window.fluentCartAdminApp=g._data;function C(n){const t=g.get("trans")||{};g.get("app_config.env")==="dev"&&!t[n]&&window.console.warn("Missing translation:",n),n=t[n]||n;const e=Array.prototype.slice.call(arguments,1);if(e.length===0)return n;const s=/%(\d*\$?)s|%d/g;let c=0;return n=n.replace(s,(o,p)=>{if(p){const d=parseInt(p,10)-1;return d<e.length?e[d]:o}else return c<e.length?e[c++]:o}),n}function T(n,t,e,s=null){let c=parseInt(e.toString().replace(/,/g,""),10);return c>1?C(t,e):C(c===0?s??n:n,e)}function B(n){const t=g.get("datei18");n=n.toString();const s=(t.numericSystem||"0_1_2_3_4_5_6_7_8_9").split("_");return n.split("").map(o=>s[o]||o).join("")}export{g as A,B as a,T as p,C as t};
1 +var D=Object.defineProperty;var S=e=>{throw TypeError(e)};var J=(e,t,n)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var w=(e,t,n)=>J(e,typeof t!="symbol"?t+"":t,n),O=(e,t,n)=>t.has(e)||S("Cannot "+n);var l=(e,t,n)=>(O(e,t,"read from private field"),n?n.call(e):t.get(e)),h=(e,t,n)=>t.has(e)?S("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,s)=>(O(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),u=(e,t,n)=>(O(e,t,"access private method"),n);import{L as U}from"./vue.esm-bundler.js?ver=1.6.5";import{A as B}from"./Arr.js?ver=1.6.5";class _{constructor(){w(this,"_data",{})}static form(t){const n=new this;return n._data=t,n}get(t=null,n=""){return t===null?this._data:B.get(this._data,t,n)}}var t,o,d,i,E,p;const r=class r{static onShopUpdate(t){l(r,d).push(t)}static setConfig(t){var n;if(u(n=r,i,p).call(n,t),Object.keys(r._data).forEach(s=>delete r._data[s]),Object.assign(r._data,t),l(r,o))try{l(r,o).postMessage({type:"set",config:JSON.parse(JSON.stringify(t))})}catch{}}static mergeConfig(t){var n;if(u(n=r,i,p).call(n,t),Object.assign(r._data,t),l(r,o))try{l(r,o).postMessage({type:"merge",config:JSON.parse(JSON.stringify(t))})}catch{}}static get(t=null,n=null){return t===null?r._data:_.form(r._data).get(t,n)}static assetUrl(t=""){return r.get("asset_url")+t}static get shop(){return _.form(r.get("shop"))}static get config(){return _.form(r.get("app_config"))}};o=new WeakMap,d=new WeakMap,i=new WeakSet,E=function(){l(r,d).forEach(t=>t())},p=function(t){if(!t||typeof t!="object")return;const n=document.createElement("textarea");t.shop&&t.shop.currency_sign&&(n.innerHTML=t.shop.currency_sign,t.shop.currency_sign=n.value),t.currency_signs&&typeof t.currency_signs=="object"&&Object.keys(t.currency_signs).forEach(function(s){n.innerHTML=t.currency_signs[s],t.currency_signs[s]=n.value})},h(r,i),w(r,"_data",U(window.fluentCartAdminApp||{})),h(r,o,null),h(r,d,[]),u(t=r,i,p).call(t,r._data),typeof BroadcastChannel<"u"&&(j(r,o,new BroadcastChannel("fluent-cart-config:"+window.location.origin)),l(r,o).onmessage=function(n){var a,c,g,C;const s=n.data;if(s){if(s.type==="merge"&&s.config)u(a=r,i,p).call(a,s.config),Object.assign(r._data,s.config),s.config.shop&&(u(c=r,i,E).call(c),window.dispatchEvent(new CustomEvent("fluentCartCurrencyChange")));else if(s.type==="set"&&s.config){u(g=r,i,p).call(g,s.config);const A=r._data.shop&&r._data.shop.currency_sign;Object.keys(r._data).forEach(N=>delete r._data[N]),Object.assign(r._data,s.config);const L=r._data.shop&&r._data.shop.currency_sign;A!==L&&(u(C=r,i,E).call(C),window.dispatchEvent(new CustomEvent("fluentCartCurrencyChange")))}}});let f=r;window.fluentCartAdminApp=f._data;const y="fluent-cart",v="";let I=null;function H(){return window.wp&&window.wp.i18n||null}function m(){return f.get("trans")||{}}function T(){const e=H();if(!e)return null;const t=m();if(t===I)return e;I=t;const n={"":{domain:y,lang:f.get("wp_locale")||""}};return Object.keys(t).forEach(s=>{const a=t[s];if(typeof a!="string")return;const c=s.indexOf(v);(c===-1?s:s.slice(c+1))!==a&&(n[s]=[a])}),e.setLocaleData(n,y),e}function x(e,t){if(t.length===0)return e;const n=/%(\d*\$?)s|%d/g;let s=0;return e.replace(n,(a,c)=>{if(c){const g=parseInt(c,10)-1;return g<t.length?t[g]:a}else return s<t.length?t[s++]:a})}function M(e){f.get("app_config.env")==="dev"&&(m()[e]||window.console.warn("Missing translation:",e))}function b(e){M(e);const t=T(),n=t?t.__(e,y):m()[e]||e;return x(n,Array.prototype.slice.call(arguments,1))}function P(e,t){const n=t+v+e;M(n);const s=T(),a=m();let c=s?s._x(e,t,y):a[n]||e;return c===e&&(c=a[e]||e),x(c,Array.prototype.slice.call(arguments,2))}function R(e,t,n,s=null){let a=parseInt(n.toString().replace(/,/g,""),10);return a>1?b(t,n):b(a===0?s??e:e,n)}function W(e){const t=f.get("datei18");e=e.toString();const s=(t.numericSystem||"0_1_2_3_4_5_6_7_8_9").split("_");return e.split("").map(c=>s[c]||c).join("")}export{f as A,P as _,W as a,R as p,b as t};