Plugin Directory

Changeset 3362112


Ignore:
Timestamp:
09/16/2025 12:37:19 AM (7 months ago)
Author:
mlmsoft
Message:

Version 3.9.9

Location:
mlm-soft-integration/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • mlm-soft-integration/trunk/CHANGELOG.md

    r3349254 r3362112  
    22
    33## Changelog ##
     4
     5## 2025-08-15 - version 3.9.9
     6* Updated `WCPaymentModule`, `MLMSoftEWalletBlockGateway` classes.
     7* Updated translations.
     8
     9## 2025-09-12 - version 3.9.8
     10* Override payment localizations from WP on the checkout page in the payment module.
    411
    512## 2025-08-12 - version 3.9.7
  • mlm-soft-integration/trunk/components/common/frontend/assets/entry/index.js

    r3213832 r3362112  
    1 var L=Object.defineProperty;var M=(e,t,a)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var l=(e,t,a)=>(M(e,typeof t!="symbol"?t+"":t,a),a);import{V as i,a as N,F as C,L as O,C as _,P as c,E as q,n as g,W as T,b as E,c as D,d as R,R as j,e as U,i as H,f as V,g as I,h as G}from"../chunks/c0f3c2e3.js";const k=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function a(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerpolicy&&(r.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?r.credentials="include":n.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=a(n);fetch(n.href,r)}};k();const z="Page not found",K="Balance",J="Payment from bonus wallet",Q="Please select the wallet",X="Maximum amount to be paid from the wallet",Y="Enter the amount",Z="Pay",ee="Field required",te="The amount must be greater than",ae="The amount must be less than",ne="Wallet balance exceeded",se="No wallets available for payment",re="required",le="optional";var oe={pageNotFound:z,walletBalance:K,paymentFromBonusWallet:J,selectWallet:Q,maxAmountToPayFromWallet:X,enterAmount:Y,payButton:Z,fieldRequired:ee,amountMustBeGreaterThan:te,amountMustBeLessThan:ae,walletBalanceExceeded:ne,noWalletsAvailable:se,required:re,optional:le};const ie="\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430",ce="\u0411\u0430\u043B\u0430\u043D\u0441",ue="\u041E\u043F\u043B\u0430\u0442\u0430 \u0441 \u0431\u043E\u043D\u0443\u0441\u043D\u043E\u0433\u043E \u0441\u0447\u0435\u0442\u0430",me="\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u043E\u0448\u0435\u043B\u0435\u043A",de="\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0441\u0443\u043C\u043C\u0430 \u0434\u043B\u044F \u043E\u043F\u043B\u0430\u0442\u044B \u0441 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430",pe="\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043C\u043C\u0443",he="\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C",ve="\u041F\u043E\u043B\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u043C",fe="\u0421\u0443\u043C\u043C\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435",_e="\u0421\u0443\u043C\u043C\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435",ge="\u0411\u0430\u043B\u0430\u043D\u0441 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430 \u043F\u0440\u0435\u0432\u044B\u0448\u0435\u043D",ye="\u041D\u0435\u0442 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u043E\u0432 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0434\u043B\u044F \u043E\u043F\u043B\u0430\u0442\u044B",we="\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E",xe="\u043D\u0435\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E";var be={pageNotFound:ie,walletBalance:ce,paymentFromBonusWallet:ue,selectWallet:me,maxAmountToPayFromWallet:de,enterAmount:pe,payButton:he,fieldRequired:ve,amountMustBeGreaterThan:fe,amountMustBeLessThan:_e,walletBalanceExceeded:ge,noWalletsAvailable:ye,required:we,optional:xe};i.use(N);const We={en_US:oe,ru_RU:be},$e=C.load(O),Se=new N({fallbackLocale:"en_US",messages:We,locale:$e.locale});class h{static machineFormat(t){return t?(t=this.cleanNumber(t),t=t.padStart(this.precision+1,"0"),t=t.substring(0,t.length-this.precision)+"."+t.substring(t.length-this.precision,t.length),isNaN(Number(t))&&(t="0")):t="0",this.precision===0&&(t=this.cleanNumber(t)),Number(t)}static cleanNumber(t){let a="";if(t){let s=!1;const n=t.toString().split("");for(let r=0;r<n.length;r++)this.isInteger(n[r])&&(s?a=a+n[r]:n[r]!=="0"&&(a=a+n[r],s=!0))}return a}static isInteger(t){let a=!1;return Number.isInteger(parseInt(t))&&(a=!0),a}static formatNumber(t){return Number(t).toLocaleString(this.locale,{maximumFractionDigits:this.precision,minimumFractionDigits:this.precision})}}l(h,"precision",2),l(h,"locale",navigator.language?navigator.language:"en-US");var Pe=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,y=(e,t,a,s)=>{for(var n=s>1?void 0:s?Ne(t,a):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(s?o(t,a,n):o(n))||n);return s&&n&&Pe(t,a,n),n};let d=class extends i{constructor(){super(...arguments);l(this,"wallet");l(this,"active");l(this,"locale",navigator.language?navigator.language:"en-US")}toggle(){}formatNumber(t){return h.formatNumber(t)}};y([c({required:!0})],d.prototype,"wallet",2);y([c({required:!1,default:!1})],d.prototype,"active",2);y([q("click")],d.prototype,"toggle",1);d=y([_({})],d);var Ce=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-card",{staticClass:"mx-auto",attrs:{outlined:"",color:e.active?"green accent-1":""},on:{click:e.toggle}},[a("v-list-item",{attrs:{"three-line":""}},[a("v-list-item-content",[a("v-list-item-title",{staticClass:"text-h5 mb-1"},[e._v(" "+e._s(e.wallet.title)+" ")]),a("v-list-item-subtitle",[a("div",{staticClass:"ml-6"},[a("div",{staticClass:"ml-auto text-right"},[a("div",{staticClass:"body-3 grey--text font-weight-light"},[e._v(e._s(e.$t("walletBalance")))]),a("h3",{staticClass:"display-2 font-weight-light text--primary"},[e._v(e._s(e.formatNumber(e.wallet.balance))+" "),a("small",[e._v(e._s(e.wallet.currency_id))])])])])])],1)],1)],1)},Ie=[];const W={};var Be=g(d,Ce,Ie,!1,Fe,null,null,null);function Fe(e){for(let t in W)this[t]=W[t]}var Ae=function(){return Be.exports}();class Le extends T{constructor(){super("e-wallet-api")}}const b=class extends Le{getPaymentInfo(){return this.callHandler("get-payment-info")}payWithBonuses(t,a){return this.callHandler("pay-with-bonuses",{amount:t,walletId:a})}};let p=b;l(p,"instance",new b);class Me extends E{constructor(){super(...arguments);l(this,"maxAmount")}}var Oe=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,B=(e,t,a,s)=>{for(var n=s>1?void 0:s?qe(t,a):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(s?o(t,a,n):o(n))||n);return s&&n&&Oe(t,a,n),n};let v=class extends i{constructor(){super(...arguments);l(this,"simpleNumberInput");l(this,"amount",0);l(this,"maxAmount",0);l(this,"currency","USD");l(this,"valid",!0);l(this,"locale",navigator.language?navigator.language:"en-US");l(this,"options",{locale:this.locale,prefix:"",suffix:"",length:11,precision:2});l(this,"error","");l(this,"wallets",[]);l(this,"selectedWalletIndex",0);l(this,"preloading",!1);l(this,"payLoading",!1);l(this,"rules",[t=>!!t||this.translate("fieldRequired").toString(),t=>this.machineFormat(t)>0||this.translate("amountMustBeGreaterThan")+" 0",t=>{const a=this.machineFormat(t);return a&&a<=this.getSelectedWallet().balance||this.translate("walletBalanceExceeded").toString()},t=>{this.simpleNumberInput&&(t+="00");const a=this.machineFormat(t),s=this.getMaxAmount();return s?a&&a<=s||this.translate("amountMustBeLessThan").toString()+" "+this.formatNumber(s):!0}])}async created(){this.simpleNumberInput&&(this.amount=""),this.preloading=!0;try{const t=await p.instance.getPaymentInfo();this.wallets=t.wallets||[],this.maxAmount=t.maxAmount,this.currency=t.currency}catch(t){console.error(t)}finally{this.preloading=!1}}selectWalletHandler(t,a){Number(this.amount)>a.balance&&(this.amount=a.balance||0),t()}async payHandler(){this.payLoading=!0;try{const t=this.getSelectedWallet();await p.instance.payWithBonuses(Number(this.amount),t.id)&&D.updateCheckout()}catch(t){this.error=t}this.payLoading=!1}getSelectedWallet(){return this.wallets[this.selectedWalletIndex]?this.wallets[this.selectedWalletIndex]:new Me}machineFormat(t){return h.machineFormat(t)}formatNumber(t){return h.formatNumber(t)}getMaxAmount(){const t=this.getSelectedWallet().maxAmount||0;return t>0?Math.min(t,this.maxAmount):this.maxAmount}translate(t){return this.$t(t).toString()}};B([c({})],v.prototype,"simpleNumberInput",2);v=B([_({components:{WalletCard:Ae}})],v);var Te=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-card",{attrs:{loading:e.preloading,outlined:""}},[a("v-card-title",[e._v(" "+e._s(e.$t("paymentFromBonusWallet"))+" ")]),a("v-card-subtitle",{directives:[{name:"show",rawName:"v-show",value:e.wallets.length>1,expression:"wallets.length > 1"}]},[e._v(" "+e._s(e.$t("selectWallet"))+" ")]),a("v-card-subtitle",[a("v-alert",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],attrs:{border:"top",color:"red",dark:"",transition:"scale-transition"}},[e._v(" "+e._s(e.error)+" ")])],1),a("v-card-text",[a("v-alert",{directives:[{name:"show",rawName:"v-show",value:!e.preloading&&e.wallets.length===0,expression:"!preloading && wallets.length === 0"}],attrs:{border:"top",color:"orange",dark:"",transition:"scale-transition"}},[e._v(" "+e._s(e.$t("noWalletsAvailable"))+" ")])],1),a("v-item-group",{attrs:{mandatory:""},model:{value:e.selectedWalletIndex,callback:function(s){e.selectedWalletIndex=s},expression:"selectedWalletIndex"}},[a("v-row",{staticStyle:{padding:"15px"}},e._l(e.wallets,function(s,n){return a("v-col",{key:n,attrs:{cols:"12",md:"12"}},[a("v-item",{scopedSlots:e._u([{key:"default",fn:function(r){var o=r.active,A=r.toggle;return[a("wallet-card",{attrs:{active:o,wallet:s},on:{click:function(nt){return e.selectWalletHandler(A,s)}}})]}}],null,!0)})],1)}),1)],1),e.getMaxAmount()?a("v-card-text",[e._v(" "+e._s(e.$t("maxAmountToPayFromWallet"))+": "+e._s(e.formatNumber(e.getMaxAmount()))+" "+e._s(e.currency)+" ")]):e._e(),a("v-form",{model:{value:e.valid,callback:function(s){e.valid=s},expression:"valid"}},[a("v-card-text",[a("div",[e.simpleNumberInput?a("v-text-field",{key:"amount-to-pay"+e.selectedWalletIndex,attrs:{disabled:e.preloading||e.wallets.length===0,label:e.$t("enterAmount"),rules:e.rules,type:"number"},model:{value:e.amount,callback:function(s){e.amount=s},expression:"amount"}}):a("vuetify-number",{key:"amount-to-pay"+e.selectedWalletIndex,attrs:{disabled:e.preloading||e.wallets.length===0,label:e.$t("enterAmount"),options:e.options,rules:e.rules,valueWhenIsEmpty:"0"},model:{value:e.amount,callback:function(s){e.amount=s},expression:"amount"}})],1)]),a("v-card-actions",[a("v-btn",{attrs:{disabled:!e.valid||e.preloading||e.wallets.length===0,loading:e.payLoading,color:"primary"},on:{click:e.payHandler}},[e._v(" "+e._s(e.$t("payButton"))+" ")])],1)],1)],1)},Ee=[];const $={};var De=g(v,Te,Ee,!1,Re,null,null,null);function Re(e){for(let t in $)this[t]=$[t]}var je=function(){return De.exports}(),Ue=Object.defineProperty,He=Object.getOwnPropertyDescriptor,F=(e,t,a,s)=>{for(var n=s>1?void 0:s?He(t,a):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(s?o(t,a,n):o(n))||n);return s&&n&&Ue(t,a,n),n};let f=class extends i{constructor(){super(...arguments);l(this,"simpleNumberInput")}};F([c({})],f.prototype,"simpleNumberInput",2);f=F([_({components:{PaymentFromWalletCard:je}})],f);var Ve=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-app",{attrs:{id:"e-wallet-payment-app"}},[a("v-main",{attrs:{app:""}},[a("v-container",{attrs:{fluid:""}},[a("payment-from-wallet-card",{attrs:{"simple-number-input":e.simpleNumberInput}})],1)],1)],1)},Ge=[];const S={};var ke=g(f,Ve,Ge,!1,ze,null,null,null);function ze(e){for(let t in S)this[t]=S[t]}var Ke=function(){return ke.exports}();class x{constructor(){l(this,"warehouses")}getAlias(){return"posWarehouses"}getDefaultValue(){const t=new x;t.warehouses=[];const a=new R;a.title="Russian federation",a.id="RU";const s=new j;s.title="\u041C\u043E\u0441\u043A\u0432\u0430",s.id=1;for(let n=0;n<10;n++){const r=new U;r.id=n+1,r.title="Warehouse "+(n+1),r.country=a,r.countryId=a.id,r.region=s,r.regionId=s.id,t.warehouses.push(r)}return t}}var Je=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,m=(e,t,a,s)=>{for(var n=s>1?void 0:s?Qe(t,a):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(s?o(t,a,n):o(n))||n);return s&&n&&Je(t,a,n),n};let u=class extends i{constructor(){super(...arguments);l(this,"componentLabel");l(this,"componentId");l(this,"componentClass");l(this,"componentCity");l(this,"inputName");l(this,"required");l(this,"warehouses",[]);l(this,"selectedWarehouse",0);l(this,"search","")}created(){this.warehouses=C.load(x).warehouses}itemText(t){let a=t.title;return t.country&&(a+=", "+t.country.title),t.region&&(a+=", "+t.region.title),a}get filteredWarehouses(){return this.warehouses.map(t=>{const a=t;return a.titleSearch=this.getSearchData(t.title),t.country&&(a.countrySearch=this.getSearchData(t.country.title),a.regionSearch=this.getSearchData(t.region.title)),a})}get lowerSearch(){return this.search?this.search.toLowerCase():""}getSearchData(t){const s=t.toLowerCase().indexOf(this.lowerSearch);return s==-1?{start:t,search:"",end:""}:{start:t.substring(0,s),search:t.substring(s,s+this.lowerSearch.length),end:t.substring(s+this.lowerSearch.length)}}};m([c({})],u.prototype,"componentLabel",2);m([c({})],u.prototype,"componentId",2);m([c({})],u.prototype,"componentClass",2);m([c({})],u.prototype,"componentCity",2);m([c({})],u.prototype,"inputName",2);m([c({default:!1})],u.prototype,"required",2);u=m([_({})],u);var Xe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-app",{attrs:{id:"pos-warehouse-select"}},[a("v-main",{attrs:{app:""}},[a("p",{class:"form-row "+e.componentClass,attrs:{id:e.componentId+"_field","data-priority":"80"}},[a("label",{attrs:{for:e.componentId+"_select"}},[e._v(" "+e._s(e.componentLabel)+"\xA0 "),e.required?a("abbr",{staticClass:"required",attrs:{title:e.$t("required")}},[e._v("*")]):a("span",{staticClass:"optional"},[e._v("("+e._s(e.$t("optional"))+")")])]),a("v-autocomplete",{attrs:{id:e.componentId+"_select",outlined:"","single-line":"","hide-no-data":"","hide-details":"","search-input":e.search,items:e.filteredWarehouses,"item-text":e.itemText,"item-value":"id"},on:{"update:searchInput":function(s){e.search=s},"update:search-input":function(s){e.search=s}},scopedSlots:e._u([{key:"item",fn:function(s){var n=s.item;return[a("v-list-item-content",[a("v-list-item-title",{attrs:{title:n.title}},[a("span",[e._v(e._s(n.titleSearch.start))]),a("span",{staticClass:"v-list-item__mask"},[e._v(e._s(n.titleSearch.search))]),a("span",[e._v(e._s(n.titleSearch.end))])]),n.country?a("v-list-item-subtitle",[a("span",[e._v(e._s(n.countrySearch.start))]),a("span",{staticClass:"v-list-item__mask"},[e._v(e._s(n.countrySearch.search))]),a("span",[e._v(e._s(n.countrySearch.end))]),n.region?a("span",[e._v(", "),a("span",[e._v(e._s(n.regionSearch.start))]),a("span",{staticClass:"v-list-item__mask"},[e._v(e._s(n.regionSearch.search))]),a("span",[e._v(e._s(n.regionSearch.end))])]):e._e()]):e._e()],1)]}}]),model:{value:e.selectedWarehouse,callback:function(s){e.selectedWarehouse=s},expression:"selectedWarehouse"}}),a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedWarehouse,expression:"selectedWarehouse"}],staticClass:"input-text",attrs:{name:e.inputName,id:e.componentId,type:"hidden"},domProps:{value:e.selectedWarehouse},on:{input:function(s){s.target.composing||(e.selectedWarehouse=s.target.value)}}})],1)])],1)},Ye=[];const P={};var Ze=g(u,Xe,Ye,!1,et,null,null,null);function et(e){for(let t in P)this[t]=P[t]}var tt=function(){return Ze.exports}();class w{}l(w,"Components",[{name:"e-wallet-payment",type:Ke,dependencies:[H]},{name:"pos-warehouse-select",type:tt}]);i.use(V);i.use(I);i.use(G);const at=new I({});for(let e=0;e<w.Components.length;e++){const t=w.Components[e];if(t.dependencies)for(let s=0;s<t.dependencies.length;s++)i.use(t.dependencies[s]);let a={};i.customElement(t.name,{props:t.type.options.props,i18n:Se,vuetify:at,setup(s){a=s},render:s=>s(t.type,{props:a})})}
     1var O=Object.defineProperty;var q=(e,t,a)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var l=(e,t,a)=>(q(e,typeof t!="symbol"?t+"":t,a),a);import{V as i,a as C,F as B,L as T,C as _,P as c,E,n as g,W as D,b as R,c as j,d as U,R as H,e as V,i as G,f as z,g as F,h as k}from"../chunks/c0f3c2e3.js";const K=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function a(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerpolicy&&(r.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?r.credentials="include":n.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=a(n);fetch(n.href,r)}};K();const J="Page not found",Q="Balance",X="Payment from bonus wallet",Y="Please select the wallet",Z="Maximum amount to be paid from the wallet",ee="Enter the amount",te="Pay",ae="Field required",ne="The amount must be greater than",se="The amount must be less than",re="Wallet balance exceeded",le="No wallets available for payment",oe="required",ie="optional";var ce={pageNotFound:J,walletBalance:Q,paymentFromBonusWallet:X,selectWallet:Y,maxAmountToPayFromWallet:Z,enterAmount:ee,payButton:te,fieldRequired:ae,amountMustBeGreaterThan:ne,amountMustBeLessThan:se,walletBalanceExceeded:re,noWalletsAvailable:le,required:oe,optional:ie};const ue="\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430",me="\u0411\u0430\u043B\u0430\u043D\u0441",de="\u041E\u043F\u043B\u0430\u0442\u0430 \u0441 \u0431\u043E\u043D\u0443\u0441\u043D\u043E\u0433\u043E \u0441\u0447\u0435\u0442\u0430",pe="\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u043E\u0448\u0435\u043B\u0435\u043A",he="\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0441\u0443\u043C\u043C\u0430 \u0434\u043B\u044F \u043E\u043F\u043B\u0430\u0442\u044B \u0441 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430",ve="\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043C\u043C\u0443",fe="\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C",_e="\u041F\u043E\u043B\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u043C",ge="\u0421\u0443\u043C\u043C\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435",ye="\u0421\u0443\u043C\u043C\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435",we="\u0411\u0430\u043B\u0430\u043D\u0441 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430 \u043F\u0440\u0435\u0432\u044B\u0448\u0435\u043D",xe="\u041D\u0435\u0442 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u043E\u0432 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0434\u043B\u044F \u043E\u043F\u043B\u0430\u0442\u044B",be="\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E",We="\u043D\u0435\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E";var $e={pageNotFound:ue,walletBalance:me,paymentFromBonusWallet:de,selectWallet:pe,maxAmountToPayFromWallet:he,enterAmount:ve,payButton:fe,fieldRequired:_e,amountMustBeGreaterThan:ge,amountMustBeLessThan:ye,walletBalanceExceeded:we,noWalletsAvailable:xe,required:be,optional:We};i.use(C);const w=window,$=w==null?void 0:w.MLMSIPaymentModuleL10n,Se={en_US:$||ce,ru_RU:$||$e},Pe=B.load(T),Ne=new C({fallbackLocale:"en_US",messages:Se,locale:Pe.locale});class h{static machineFormat(t){return t?(t=this.cleanNumber(t),t=t.padStart(this.precision+1,"0"),t=t.substring(0,t.length-this.precision)+"."+t.substring(t.length-this.precision,t.length),isNaN(Number(t))&&(t="0")):t="0",this.precision===0&&(t=this.cleanNumber(t)),Number(t)}static cleanNumber(t){let a="";if(t){let s=!1;const n=t.toString().split("");for(let r=0;r<n.length;r++)this.isInteger(n[r])&&(s?a=a+n[r]:n[r]!=="0"&&(a=a+n[r],s=!0))}return a}static isInteger(t){let a=!1;return Number.isInteger(parseInt(t))&&(a=!0),a}static formatNumber(t){return Number(t).toLocaleString(this.locale,{maximumFractionDigits:this.precision,minimumFractionDigits:this.precision})}}l(h,"precision",2),l(h,"locale",navigator.language?navigator.language:"en-US");var Ie=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,y=(e,t,a,s)=>{for(var n=s>1?void 0:s?Ce(t,a):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(s?o(t,a,n):o(n))||n);return s&&n&&Ie(t,a,n),n};let d=class extends i{constructor(){super(...arguments);l(this,"wallet");l(this,"active");l(this,"locale",navigator.language?navigator.language:"en-US")}toggle(){}formatNumber(t){return h.formatNumber(t)}};y([c({required:!0})],d.prototype,"wallet",2);y([c({required:!1,default:!1})],d.prototype,"active",2);y([E("click")],d.prototype,"toggle",1);d=y([_({})],d);var Be=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-card",{staticClass:"mx-auto",attrs:{outlined:"",color:e.active?"green accent-1":""},on:{click:e.toggle}},[a("v-list-item",{attrs:{"three-line":""}},[a("v-list-item-content",[a("v-list-item-title",{staticClass:"text-h5 mb-1"},[e._v(" "+e._s(e.wallet.title)+" ")]),a("v-list-item-subtitle",[a("div",{staticClass:"ml-6"},[a("div",{staticClass:"ml-auto text-right"},[a("div",{staticClass:"body-3 grey--text font-weight-light"},[e._v(e._s(e.$t("walletBalance")))]),a("h3",{staticClass:"display-2 font-weight-light text--primary"},[e._v(e._s(e.formatNumber(e.wallet.balance))+" "),a("small",[e._v(e._s(e.wallet.currency_id))])])])])])],1)],1)],1)},Fe=[];const S={};var Ae=g(d,Be,Fe,!1,Le,null,null,null);function Le(e){for(let t in S)this[t]=S[t]}var Me=function(){return Ae.exports}();class Oe extends D{constructor(){super("e-wallet-api")}}const W=class extends Oe{getPaymentInfo(){return this.callHandler("get-payment-info")}payWithBonuses(t,a){return this.callHandler("pay-with-bonuses",{amount:t,walletId:a})}};let p=W;l(p,"instance",new W);class qe extends R{constructor(){super(...arguments);l(this,"maxAmount")}}var Te=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,A=(e,t,a,s)=>{for(var n=s>1?void 0:s?Ee(t,a):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(s?o(t,a,n):o(n))||n);return s&&n&&Te(t,a,n),n};let v=class extends i{constructor(){super(...arguments);l(this,"simpleNumberInput");l(this,"amount",0);l(this,"maxAmount",0);l(this,"currency","USD");l(this,"valid",!0);l(this,"locale",navigator.language?navigator.language:"en-US");l(this,"options",{locale:this.locale,prefix:"",suffix:"",length:11,precision:2});l(this,"error","");l(this,"wallets",[]);l(this,"selectedWalletIndex",0);l(this,"preloading",!1);l(this,"payLoading",!1);l(this,"rules",[t=>!!t||this.translate("fieldRequired").toString(),t=>this.machineFormat(t)>0||this.translate("amountMustBeGreaterThan")+" 0",t=>{const a=this.machineFormat(t);return a&&a<=this.getSelectedWallet().balance||this.translate("walletBalanceExceeded").toString()},t=>{this.simpleNumberInput&&(t+="00");const a=this.machineFormat(t),s=this.getMaxAmount();return s?a&&a<=s||this.translate("amountMustBeLessThan").toString()+" "+this.formatNumber(s):!0}])}async created(){this.simpleNumberInput&&(this.amount=""),this.preloading=!0;try{const t=await p.instance.getPaymentInfo();this.wallets=t.wallets||[],this.maxAmount=t.maxAmount,this.currency=t.currency}catch(t){console.error(t)}finally{this.preloading=!1}}selectWalletHandler(t,a){Number(this.amount)>a.balance&&(this.amount=a.balance||0),t()}async payHandler(){this.payLoading=!0;try{const t=this.getSelectedWallet();await p.instance.payWithBonuses(Number(this.amount),t.id)&&j.updateCheckout()}catch(t){this.error=t}this.payLoading=!1}getSelectedWallet(){return this.wallets[this.selectedWalletIndex]?this.wallets[this.selectedWalletIndex]:new qe}machineFormat(t){return h.machineFormat(t)}formatNumber(t){return h.formatNumber(t)}getMaxAmount(){const t=this.getSelectedWallet().maxAmount||0;return t>0?Math.min(t,this.maxAmount):this.maxAmount}translate(t){return this.$t(t).toString()}};A([c({})],v.prototype,"simpleNumberInput",2);v=A([_({components:{WalletCard:Me}})],v);var De=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-card",{attrs:{loading:e.preloading,outlined:""}},[a("v-card-title",[e._v(" "+e._s(e.$t("paymentFromBonusWallet"))+" ")]),a("v-card-subtitle",{directives:[{name:"show",rawName:"v-show",value:e.wallets.length>1,expression:"wallets.length > 1"}]},[e._v(" "+e._s(e.$t("selectWallet"))+" ")]),a("v-card-subtitle",[a("v-alert",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],attrs:{border:"top",color:"red",dark:"",transition:"scale-transition"}},[e._v(" "+e._s(e.error)+" ")])],1),a("v-card-text",[a("v-alert",{directives:[{name:"show",rawName:"v-show",value:!e.preloading&&e.wallets.length===0,expression:"!preloading && wallets.length === 0"}],attrs:{border:"top",color:"orange",dark:"",transition:"scale-transition"}},[e._v(" "+e._s(e.$t("noWalletsAvailable"))+" ")])],1),a("v-item-group",{attrs:{mandatory:""},model:{value:e.selectedWalletIndex,callback:function(s){e.selectedWalletIndex=s},expression:"selectedWalletIndex"}},[a("v-row",{staticStyle:{padding:"15px"}},e._l(e.wallets,function(s,n){return a("v-col",{key:n,attrs:{cols:"12",md:"12"}},[a("v-item",{scopedSlots:e._u([{key:"default",fn:function(r){var o=r.active,M=r.toggle;return[a("wallet-card",{attrs:{active:o,wallet:s},on:{click:function(rt){return e.selectWalletHandler(M,s)}}})]}}],null,!0)})],1)}),1)],1),e.getMaxAmount()?a("v-card-text",[e._v(" "+e._s(e.$t("maxAmountToPayFromWallet"))+": "+e._s(e.formatNumber(e.getMaxAmount()))+" "+e._s(e.currency)+" ")]):e._e(),a("v-form",{model:{value:e.valid,callback:function(s){e.valid=s},expression:"valid"}},[a("v-card-text",[a("div",[e.simpleNumberInput?a("v-text-field",{key:"amount-to-pay"+e.selectedWalletIndex,attrs:{disabled:e.preloading||e.wallets.length===0,label:e.$t("enterAmount"),rules:e.rules,type:"number"},model:{value:e.amount,callback:function(s){e.amount=s},expression:"amount"}}):a("vuetify-number",{key:"amount-to-pay"+e.selectedWalletIndex,attrs:{disabled:e.preloading||e.wallets.length===0,label:e.$t("enterAmount"),options:e.options,rules:e.rules,valueWhenIsEmpty:"0"},model:{value:e.amount,callback:function(s){e.amount=s},expression:"amount"}})],1)]),a("v-card-actions",[a("v-btn",{attrs:{disabled:!e.valid||e.preloading||e.wallets.length===0,loading:e.payLoading,color:"primary"},on:{click:e.payHandler}},[e._v(" "+e._s(e.$t("payButton"))+" ")])],1)],1)],1)},Re=[];const P={};var je=g(v,De,Re,!1,Ue,null,null,null);function Ue(e){for(let t in P)this[t]=P[t]}var He=function(){return je.exports}(),Ve=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,L=(e,t,a,s)=>{for(var n=s>1?void 0:s?Ge(t,a):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(s?o(t,a,n):o(n))||n);return s&&n&&Ve(t,a,n),n};let f=class extends i{constructor(){super(...arguments);l(this,"simpleNumberInput")}};L([c({})],f.prototype,"simpleNumberInput",2);f=L([_({components:{PaymentFromWalletCard:He}})],f);var ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-app",{attrs:{id:"e-wallet-payment-app"}},[a("v-main",{attrs:{app:""}},[a("v-container",{attrs:{fluid:""}},[a("payment-from-wallet-card",{attrs:{"simple-number-input":e.simpleNumberInput}})],1)],1)],1)},ke=[];const N={};var Ke=g(f,ze,ke,!1,Je,null,null,null);function Je(e){for(let t in N)this[t]=N[t]}var Qe=function(){return Ke.exports}();class b{constructor(){l(this,"warehouses")}getAlias(){return"posWarehouses"}getDefaultValue(){const t=new b;t.warehouses=[];const a=new U;a.title="Russian federation",a.id="RU";const s=new H;s.title="\u041C\u043E\u0441\u043A\u0432\u0430",s.id=1;for(let n=0;n<10;n++){const r=new V;r.id=n+1,r.title="Warehouse "+(n+1),r.country=a,r.countryId=a.id,r.region=s,r.regionId=s.id,t.warehouses.push(r)}return t}}var Xe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,m=(e,t,a,s)=>{for(var n=s>1?void 0:s?Ye(t,a):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(s?o(t,a,n):o(n))||n);return s&&n&&Xe(t,a,n),n};let u=class extends i{constructor(){super(...arguments);l(this,"componentLabel");l(this,"componentId");l(this,"componentClass");l(this,"componentCity");l(this,"inputName");l(this,"required");l(this,"warehouses",[]);l(this,"selectedWarehouse",0);l(this,"search","")}created(){this.warehouses=B.load(b).warehouses}itemText(t){let a=t.title;return t.country&&(a+=", "+t.country.title),t.region&&(a+=", "+t.region.title),a}get filteredWarehouses(){return this.warehouses.map(t=>{const a=t;return a.titleSearch=this.getSearchData(t.title),t.country&&(a.countrySearch=this.getSearchData(t.country.title),a.regionSearch=this.getSearchData(t.region.title)),a})}get lowerSearch(){return this.search?this.search.toLowerCase():""}getSearchData(t){const s=t.toLowerCase().indexOf(this.lowerSearch);return s==-1?{start:t,search:"",end:""}:{start:t.substring(0,s),search:t.substring(s,s+this.lowerSearch.length),end:t.substring(s+this.lowerSearch.length)}}};m([c({})],u.prototype,"componentLabel",2);m([c({})],u.prototype,"componentId",2);m([c({})],u.prototype,"componentClass",2);m([c({})],u.prototype,"componentCity",2);m([c({})],u.prototype,"inputName",2);m([c({default:!1})],u.prototype,"required",2);u=m([_({})],u);var Ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-app",{attrs:{id:"pos-warehouse-select"}},[a("v-main",{attrs:{app:""}},[a("p",{class:"form-row "+e.componentClass,attrs:{id:e.componentId+"_field","data-priority":"80"}},[a("label",{attrs:{for:e.componentId+"_select"}},[e._v(" "+e._s(e.componentLabel)+"\xA0 "),e.required?a("abbr",{staticClass:"required",attrs:{title:e.$t("required")}},[e._v("*")]):a("span",{staticClass:"optional"},[e._v("("+e._s(e.$t("optional"))+")")])]),a("v-autocomplete",{attrs:{id:e.componentId+"_select",outlined:"","single-line":"","hide-no-data":"","hide-details":"","search-input":e.search,items:e.filteredWarehouses,"item-text":e.itemText,"item-value":"id"},on:{"update:searchInput":function(s){e.search=s},"update:search-input":function(s){e.search=s}},scopedSlots:e._u([{key:"item",fn:function(s){var n=s.item;return[a("v-list-item-content",[a("v-list-item-title",{attrs:{title:n.title}},[a("span",[e._v(e._s(n.titleSearch.start))]),a("span",{staticClass:"v-list-item__mask"},[e._v(e._s(n.titleSearch.search))]),a("span",[e._v(e._s(n.titleSearch.end))])]),n.country?a("v-list-item-subtitle",[a("span",[e._v(e._s(n.countrySearch.start))]),a("span",{staticClass:"v-list-item__mask"},[e._v(e._s(n.countrySearch.search))]),a("span",[e._v(e._s(n.countrySearch.end))]),n.region?a("span",[e._v(", "),a("span",[e._v(e._s(n.regionSearch.start))]),a("span",{staticClass:"v-list-item__mask"},[e._v(e._s(n.regionSearch.search))]),a("span",[e._v(e._s(n.regionSearch.end))])]):e._e()]):e._e()],1)]}}]),model:{value:e.selectedWarehouse,callback:function(s){e.selectedWarehouse=s},expression:"selectedWarehouse"}}),a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedWarehouse,expression:"selectedWarehouse"}],staticClass:"input-text",attrs:{name:e.inputName,id:e.componentId,type:"hidden"},domProps:{value:e.selectedWarehouse},on:{input:function(s){s.target.composing||(e.selectedWarehouse=s.target.value)}}})],1)])],1)},et=[];const I={};var tt=g(u,Ze,et,!1,at,null,null,null);function at(e){for(let t in I)this[t]=I[t]}var nt=function(){return tt.exports}();class x{}l(x,"Components",[{name:"e-wallet-payment",type:Qe,dependencies:[G]},{name:"pos-warehouse-select",type:nt}]);i.use(z);i.use(F);i.use(k);const st=new F({});for(let e=0;e<x.Components.length;e++){const t=x.Components[e];if(t.dependencies)for(let s=0;s<t.dependencies.length;s++)i.use(t.dependencies[s]);let a={};i.customElement(t.name,{props:t.type.options.props,i18n:Ne,vuetify:st,setup(s){a=s},render:s=>s(t.type,{props:a})})}
  • mlm-soft-integration/trunk/integrations/woocommerce/modules/WCPaymentModule.php

    r3308199 r3362112  
    88class WCPaymentModule
    99{
     10    /**
     11     *
     12     */
    1013    public function __construct()
    1114    {
     
    4952
    5053        /**
    51          * Filters the localization payment module.
     54         * @since 3.9.9
     55         */
     56        $blockEditor = false;
     57
     58        /**
     59         * Filters the localization payment module strings.
    5260         *
    5361         * @since 3.9.3
     62         * @since 3.9.9 Added $blockEditor param.
    5463         *
    55          * @param array  $l10n Localization array.
    56          * @param string $locale Current locale.
    57          */   
    58         $l10n = apply_filters('mlmsoft_integration_payment_module_l10n', $l10n, get_locale());       
     64         * @param array  $l10n        Localization array.
     65         * @param string $locale      Current locale.
     66         * @param bool   $blockEditor True if the string localization is intended for the block editor, false otherwise.
     67         */
     68        $l10n = apply_filters('mlmsoft_integration_payment_module_l10n', $l10n, get_locale(), $blockEditor);
    5969       
    6070        $content  = '<script type="text/javascript" id="'.MLMSoftPlugin::PLUGIN_PREFIX.'payment_module_l10n">'."\n";
     
    6676    }
    6777
     78    /**
     79     *
     80     */
    6881    public function registerPaymentGateways($methods)
    6982    {
    70         /**
    71         * @since 3.5.7
    72         */
    73         if ( is_admin() ) {
    74             $methods[] = MLMSoftEWalletGateway::class;
    75         } else {
    76             /**
    77             * Checking coupon activity.
    78             *
    79             * @scope front.
    80             */
    81             if ( wc_coupons_enabled() ) {
    82                 $methods[] = MLMSoftEWalletGateway::class;
    83             }
    84         }
     83        /**
     84        * @since 3.5.7
     85        */
     86        if ( is_admin() ) {
     87            $methods[] = MLMSoftEWalletGateway::class;
     88        } else {
     89            /**
     90            * Checking coupon activity.
     91            *
     92            * @scope front.
     93            */
     94            if ( wc_coupons_enabled() ) {
     95                $methods[] = MLMSoftEWalletGateway::class;
     96            }
     97        }
    8598       
    8699        return $methods;
    87100    }
    88101
     102    /**
     103     *
     104     */
    89105    private function initGateways()
    90106    {
  • mlm-soft-integration/trunk/integrations/woocommerce/paymentGateways/eWalletBlock/MLMSoftEWalletBlockGateway.php

    r3257446 r3362112  
    7070     * @return boolean
    7171     */
    72     public function is_active() {
     72    public function is_active()
     73    {
    7374        return filter_var( $this->get_setting( 'enabled', false ), FILTER_VALIDATE_BOOLEAN );
    7475    }
     
    7980     * @return array
    8081     */
    81     public function get_payment_method_script_handles() 
     82    public function get_payment_method_script_handles()
    8283    {
    8384        static $integrationID = null;
     
    9394        $locale = get_locale();
    9495        $i18n = [];
    95         // $i18n[$locale]['Payment from bonus wallet'] = __('Payment from bonus wallet', 'mlmsoft-integration'); // mlmsoft_v3_plugin
    96         // $i18n[$locale]['Please select the wallet']  = __('Please select the wallet', 'mlmsoft-integration');
    97         // $i18n[$locale]['Balance']  = __('Balance', 'mlmsoft-integration');
    98 
    9996        $i18n[$locale]['Payment from bonus wallet'] = MLMSoftPlugin::translate('Payment from bonus wallet');
    10097        $i18n[$locale]['Please select the wallet']  = MLMSoftPlugin::translate('Please select the wallet');
     
    112109        $i18n[$locale]['Account ID not found'] = MLMSoftPlugin::translate('Account ID not found');
    113110
    114         // $i18n['en_US'] = [
    115         //     'Payment from bonus wallet' => 'Payment from bonus wallet', // @added PREV: Payment from bonus account
    116         //     'Please select the wallet' => 'Please select the wallet', // @added PREV: Select wallet
    117         //     'Balance' => 'Balance', // @added
    118         //     'Maximum amount for payment from a wallet' => 'Maximum amount for payment from a wallet', // @added
    119         //     'Enter the amount' => 'Enter the amount', // @added
    120         //     'The amount must be less than or equal to' => 'The amount must be less than or equal to', // @added
    121         //     'Wallet balance exceeded' => 'Wallet balance exceeded',  // @added
    122         //     'Pay' => 'Pay',  // @added
    123         //     'No E-Wallets available' => 'No E-Wallets available', // @added
    124         //     'There is nothing to pay with' => 'There is nothing to pay with', // @added
    125         //     'Error loading payment info' => 'Error loading payment info', // @added
    126         //     'Amount must be less than' => 'Amount must be less than',    // @added
    127         //     'Discount' => 'E-Wallet',    // @added
    128         //     'Account ID not found' => 'Account ID not found', // @added
    129         // ];   
    130 
    131111        // $i18n['ru_RU'] = [
    132112        //     'Payment from bonus wallet' => 'Платёж с бонусного кошелька', // added
     
    157137                'handler' => 'get-payment-info'
    158138            ],
    159              admin_url('admin-ajax.php')
     139            admin_url('admin-ajax.php')
    160140        );
    161141
     
    165145                'handler' => 'pay-with-bonuses'
    166146            ],
    167              admin_url('admin-ajax.php')
     147            admin_url('admin-ajax.php')
    168148        );
    169149
     
    183163        ];
    184164
    185         $locale = get_locale();
    186 
    187165        if ( ! isset($i18n[$locale]) ) {
    188166            $locale = 'en_US';
    189167        }
     168
     169        /**
     170         * @since 3.9.9
     171         */
     172        $blockEditor = true;
     173
     174        /**
     175         * Filters the localization payment module strings.
     176         *
     177         * @since 3.9.9
     178         *
     179         * @param array  $l10n        Localization array.
     180         * @param string $locale      Current locale.
     181         * @param bool   $blockEditor True if the string localization is intended for the block editor, false otherwise.
     182         */
     183        $i18n[$locale] = apply_filters('mlmsoft_integration_payment_module_l10n', $i18n[$locale], $locale, $blockEditor);
    190184
    191185        $data = array(
     
    209203        $src = plugin_dir_url(MLMSOFT_V3_PLUGIN_FILE).'integrations/woocommerce/assets/eWalletBlock/mlmsoft-ewallet-block.min.js';
    210204        if ( defined('MLMSOFT_EXTERNAL_EWALLET_BLOCK_SCRIPT') ) {
     205            /** @disregard */
    211206            $src = home_url(MLMSOFT_EXTERNAL_EWALLET_BLOCK_SCRIPT.'mlmsoft-ewallet-block.min.js');
    212207            $version .= time();
     
    240235        $src = plugin_dir_url(MLMSOFT_V3_PLUGIN_FILE).'integrations/woocommerce/assets/eWalletBlock/mlmsoft-ewallet-block.min.css';
    241236        if ( defined('MLMSOFT_EXTERNAL_EWALLET_BLOCK_SCRIPT') ) {
     237            /** @disregard */
    242238            $src = home_url(MLMSOFT_EXTERNAL_EWALLET_BLOCK_SCRIPT.'mlmsoft-ewallet-block.min.css');
    243         }       
     239        }
    244240       
    245241        //
     
    259255     * Returns an array of key=>value pairs of data made available to the payment methods script.
    260256     */
    261     public function get_payment_method_data(): array 
     257    public function get_payment_method_data(): array
    262258    {
    263259        return [
  • mlm-soft-integration/trunk/languages/mlmsoft-integration-en_US.po

    r3349254 r3362112  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2022-05-28 10:52+0000\n"
    6 "PO-Revision-Date: 2025-06-05 19:49+0700\n"
     6"PO-Revision-Date: 2025-09-02 10:11+0700\n"
    77"Last-Translator: \n"
    88"Language-Team: English (United States)\n"
     
    217217msgid "Order loaded to NRM"
    218218msgstr "Order loaded to NRM"
     219
     220msgid "Page not found"
     221msgstr "Page not found"
     222
     223msgid "Maximum amount to be paid from the wallet"
     224msgstr "Maximum amount to be paid from the wallet"
     225
     226msgid "Field required"
     227msgstr "Field required"
     228
     229msgid "The amount must be greater than"
     230msgstr "The amount must be greater than"
     231
     232msgid "The amount must be less than"
     233msgstr "The amount must be less than"
     234
     235msgid "No wallets available for payment"
     236msgstr "No wallets available for payment"
     237
     238msgid "required"
     239msgstr "required"
     240
     241msgid "optional"
     242msgstr "optional"
  • mlm-soft-integration/trunk/languages/mlmsoft-integration-ru_RU.po

    r3349254 r3362112  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2022-05-28 10:52+0000\n"
    6 "PO-Revision-Date: 2025-06-05 19:50+0700\n"
     6"PO-Revision-Date: 2025-09-02 10:16+0700\n"
    77"Last-Translator: \n"
    88"Language-Team: Русский\n"
     
    217217msgid "Order loaded to NRM"
    218218msgstr "Заказ загружен в NRM"
     219
     220msgid "Page not found"
     221msgstr "Страница не найдена"
     222
     223msgid "Maximum amount to be paid from the wallet"
     224msgstr "Максимальная сумма для оплаты с кошелька"
     225
     226msgid "Field required"
     227msgstr "Поле является обязательным"
     228
     229msgid "The amount must be greater than"
     230msgstr "Сумма должна быть больше"
     231
     232msgid "The amount must be less than"
     233msgstr "Сумма должна быть меньше"
     234
     235msgid "No wallets available for payment"
     236msgstr "Нет кошельков доступных для оплаты"
     237
     238msgid "required"
     239msgstr "обязательно"
     240
     241msgid "optional"
     242msgstr "необязательно"
  • mlm-soft-integration/trunk/languages/mlmsoft-integration.pot

    r3308520 r3362112  
    210210msgid "Your account access is restricted. Please contact website administrator."
    211211msgstr ""
     212
     213msgid "Order loaded to NRM"
     214msgstr ""
     215
     216msgid "Page not found"
     217msgstr ""
     218
     219msgid "Maximum amount to be paid from the wallet"
     220msgstr ""
     221
     222msgid "Field required"
     223msgstr ""
     224
     225msgid "The amount must be greater than"
     226msgstr ""
     227
     228msgid "The amount must be less than"
     229msgstr ""
     230
     231msgid "No wallets available for payment"
     232msgstr ""
     233
     234msgid "required"
     235msgstr ""
     236
     237msgid "optional"
     238msgstr ""
  • mlm-soft-integration/trunk/mlm-soft-integration.php

    r3349254 r3362112  
    44Plugin Name: MLM Soft Integration
    55Description: WP integration with mlm-soft.com cloud platform
    6 Version: 3.9.7
     6Version: 3.9.9
    77Author: MLM Soft Ltd.
    88Author URI: https://mlm-soft.com
  • mlm-soft-integration/trunk/readme.txt

    r3349254 r3362112  
    44Requires at least: 4.7
    55Tested up to: 6.8
    6 Stable tag: 3.9.7
    7 Requires PHP: 8.0
     6Requires PHP: 5.6
    87License: GPLv2 or later
    98
Note: See TracChangeset for help on using the changeset viewer.