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.6 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 All 49 releases
← All changes | assets/chunks/Notify.js +1 -1 1.4.2 → 1.6.5 View file →
@@ -1 +1 @@
1 -var u=Object.defineProperty;var c=(e,t,s)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var n=(e,t,s)=>c(e,typeof t!="symbol"?t+"":t,s);import{S as l}from"./Str.js?ver=1.4.2";import{t as y}from"./Translator.js?ver=1.4.2";import{B as g}from"./index.js?ver=1.4.2";class m{constructor(){n(this,"$notify",g);n(this,"duration",1500);n(this,"offset",30)}success(t,s="Success"){this.notify(t,s,"success")}error(t,s="Error",i=null){this.notify(t,s,"error",null,i??2e3)}info(t,s="Information"){this.notify(t,s,"info")}notify(t,s="Success",i="success",o=null,r=null){t=this.parseMessage(t),this.$notify({type:i,title:s,offset:o??this.offset,message:t,dangerouslyUseHTMLString:!0,duration:r??this.duration})}parseMessage(t){return t?typeof t=="string"?t:t&&t.message?t.message:l.objectToString(t):y("Something went wrong!")}validationErrors(t){var s,i;if(t){if(t&&((s=t.data)!=null&&s.message))return this.error((i=t.data)==null?void 0:i.message);if(t.data&&typeof t.data=="object"){let o="";for(const r in t.data){const f=t.data[r],a=Object.values(f);o+=a+" </br>"}this.error(o)}}}}const b=new m;export{b as n};
1 +var u=Object.defineProperty;var c=(e,t,s)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var n=(e,t,s)=>c(e,typeof t!="symbol"?t+"":t,s);import{S as l}from"./Str.js?ver=1.6.5";import{t as y}from"./Translator.js?ver=1.6.5";import{A as g}from"./index.js?ver=1.6.5";class m{constructor(){n(this,"$notify",g);n(this,"duration",1500);n(this,"offset",30)}success(t,s="Success"){this.notify(t,s,"success")}error(t,s="Error",i=null){this.notify(t,s,"error",null,i??2e3)}info(t,s="Information"){this.notify(t,s,"info")}notify(t,s="Success",i="success",o=null,r=null){t=this.parseMessage(t),this.$notify({type:i,title:s,offset:o??this.offset,message:t,dangerouslyUseHTMLString:!0,duration:r??this.duration})}parseMessage(t){return t?typeof t=="string"?t:t&&t.message?t.message:l.objectToString(t):y("Something went wrong!")}validationErrors(t){var s,i;if(t){if(t&&((s=t.data)!=null&&s.message))return this.error((i=t.data)==null?void 0:i.message);if(t.data&&typeof t.data=="object"){let o="";for(const r in t.data){const f=t.data[r],a=Object.values(f);o+=a+" </br>"}this.error(o)}}}}const b=new m;export{b as n};