PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.0
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.0
1.7.0 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 All 50 releases
← All changes | assets/chunks/index5.js +1 -1 1.3.21 → 1.7.0 View file →
@@ -1 +1 @@
1 -var I={},$;function fe(){return $||($=1,function(e){(function(){var t={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function r(o){return i(a(o),arguments)}function n(o,d){return r.apply(null,[o].concat(d||[]))}function i(o,d){var l=1,g=o.length,c,v="",_,b,f,T,F,O,S,u;for(_=0;_<g;_++)if(typeof o[_]=="string")v+=o[_];else if(typeof o[_]=="object"){if(f=o[_],f.keys)for(c=d[l],b=0;b<f.keys.length;b++){if(c==null)throw new Error(r('[sprintf] Cannot access property "%s" of undefined value "%s"',f.keys[b],f.keys[b-1]));c=c[f.keys[b]]}else f.param_no?c=d[f.param_no]:c=d[l++];if(t.not_type.test(f.type)&&t.not_primitive.test(f.type)&&c instanceof Function&&(c=c()),t.numeric_arg.test(f.type)&&typeof c!="number"&&isNaN(c))throw new TypeError(r("[sprintf] expecting number but found %T",c));switch(t.number.test(f.type)&&(S=c>=0),f.type){case"b":c=parseInt(c,10).toString(2);break;case"c":c=String.fromCharCode(parseInt(c,10));break;case"d":case"i":c=parseInt(c,10);break;case"j":c=JSON.stringify(c,null,f.width?parseInt(f.width):0);break;case"e":c=f.precision?parseFloat(c).toExponential(f.precision):parseFloat(c).toExponential();break;case"f":c=f.precision?parseFloat(c).toFixed(f.precision):parseFloat(c);break;case"g":c=f.precision?String(Number(c.toPrecision(f.precision))):parseFloat(c);break;case"o":c=(parseInt(c,10)>>>0).toString(8);break;case"s":c=String(c),c=f.precision?c.substring(0,f.precision):c;break;case"t":c=String(!!c),c=f.precision?c.substring(0,f.precision):c;break;case"T":c=Object.prototype.toString.call(c).slice(8,-1).toLowerCase(),c=f.precision?c.substring(0,f.precision):c;break;case"u":c=parseInt(c,10)>>>0;break;case"v":c=c.valueOf(),c=f.precision?c.substring(0,f.precision):c;break;case"x":c=(parseInt(c,10)>>>0).toString(16);break;case"X":c=(parseInt(c,10)>>>0).toString(16).toUpperCase();break}t.json.test(f.type)?v+=c:(t.number.test(f.type)&&(!S||f.sign)?(u=S?"+":"-",c=c.toString().replace(t.sign,"")):u="",F=f.pad_char?f.pad_char==="0"?"0":f.pad_char.charAt(1):" ",O=f.width-(u+c).length,T=f.width&&O>0?F.repeat(O):"",v+=f.align?u+c+T:F==="0"?u+T+c:T+u+c)}return v}var s=Object.create(null);function a(o){if(s[o])return s[o];for(var d=o,l,g=[],c=0;d;){if((l=t.text.exec(d))!==null)g.push(l[0]);else if((l=t.modulo.exec(d))!==null)g.push("%");else if((l=t.placeholder.exec(d))!==null){if(l[2]){c|=1;var v=[],_=l[2],b=[];if((b=t.key.exec(_))!==null)for(v.push(b[1]);(_=_.substring(b[0].length))!=="";)if((b=t.key_access.exec(_))!==null)v.push(b[1]);else if((b=t.index_access.exec(_))!==null)v.push(b[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=v}else c|=2;if(c===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");g.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");d=d.substring(l[0].length)}return s[o]=g}e.sprintf=r,e.vsprintf=n,typeof window<"u"&&(window.sprintf=r,window.vsprintf=n)})()}(I)),I}fe();var D,te,R,re;D={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1};te=["(","?"];R={")":["("],":":["?","?:"]};re=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function pe(e){for(var t=[],r=[],n,i,s,a;n=e.match(re);){for(i=n[0],s=e.substr(0,n.index).trim(),s&&t.push(s);a=r.pop();){if(R[i]){if(R[i][0]===a){i=R[i][1]||i;break}}else if(te.indexOf(a)>=0||D[a]<D[i]){r.push(a);break}t.push(a)}R[i]||r.push(i),e=e.substr(n.index+i.length)}return e=e.trim(),e&&t.push(e),t.concat(r.reverse())}var he={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};function ge(e,t){var r=[],n,i,s,a,o,d;for(n=0;n<e.length;n++){if(o=e[n],a=he[o],a){for(i=a.length,s=Array(i);i--;)s[i]=r.pop();try{d=a.apply(null,s)}catch(l){return l}}else t.hasOwnProperty(o)?d=t[o]:d=+o;r.push(d)}return r[0]}function ye(e){var t=pe(e);return function(r){return ge(t,r)}}function _e(e){var t=ye(e);return function(r){return+t({n:r})}}var z={contextDelimiter:"",onMissingKey:null};function we(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(n=t[r].trim(),n.indexOf("plural=")===0)return n.substr(7)}function M(e,t){var r;this.data=e,this.pluralForms={},this.options={};for(r in z)this.options[r]=t!==void 0&&r in t?t[r]:z[r]}M.prototype.getPluralForm=function(e,t){var r=this.pluralForms[e],n,i,s;return r||(n=this.data[e][""],s=n["Plural-Forms"]||n["plural-forms"]||n.plural_forms,typeof s!="function"&&(i=we(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),s=_e(i)),r=this.pluralForms[e]=s),r(t)};M.prototype.dcnpgettext=function(e,t,r,n,i){var s,a,o;return i===void 0?s=0:s=this.getPluralForm(e,i),a=r,t&&(a=t+this.options.contextDelimiter+r),o=this.data[e][a],o&&o[s]?o[s]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),s===0?r:n)};const q={"":{plural_forms(e){return e===1?0:1}}},me=/^i18n\.(n?gettext|has_translation)(_|$)/,be=(e,t,r)=>{const n=new M({}),i=new Set,s=()=>{i.forEach(u=>u())},a=u=>(i.add(u),()=>i.delete(u)),o=(u="default")=>n.data[u],d=(u,p="default")=>{var h;n.data[p]={...n.data[p],...u},n.data[p][""]={...q[""],...(h=n.data[p])==null?void 0:h[""]},delete n.pluralForms[p]},l=(u,p)=>{d(u,p),s()},g=(u,p="default")=>{var h;n.data[p]={...n.data[p],...u,"":{...q[""],...(h=n.data[p])==null?void 0:h[""],...u==null?void 0:u[""]}},delete n.pluralForms[p],s()},c=(u,p)=>{n.data={},n.pluralForms={},l(u,p)},v=(u="default",p,h,w,m)=>(n.data[u]||d(void 0,u),n.dcnpgettext(u,p,h,w,m)),_=(u="default")=>u,b=(u,p)=>{let h=v(p,void 0,u);return r?(h=r.applyFilters("i18n.gettext",h,u,p),r.applyFilters("i18n.gettext_"+_(p),h,u,p)):h},f=(u,p,h)=>{let w=v(h,p,u);return r?(w=r.applyFilters("i18n.gettext_with_context",w,u,p,h),r.applyFilters("i18n.gettext_with_context_"+_(h),w,u,p,h)):w},T=(u,p,h,w)=>{let m=v(w,void 0,u,p,h);return r?(m=r.applyFilters("i18n.ngettext",m,u,p,h,w),r.applyFilters("i18n.ngettext_"+_(w),m,u,p,h,w)):m},F=(u,p,h,w,m)=>{let x=v(m,w,u,p,h);return r?(x=r.applyFilters("i18n.ngettext_with_context",x,u,p,h,w,m),r.applyFilters("i18n.ngettext_with_context_"+_(m),x,u,p,h,w,m)):x},O=()=>f("ltr","text direction")==="rtl",S=(u,p,h)=>{var x,C;const w=p?p+""+u:u;let m=!!((C=(x=n.data)==null?void 0:x[h??"default"])!=null&&C[w]);return r&&(m=r.applyFilters("i18n.has_translation",m,u,p,h),m=r.applyFilters("i18n.has_translation_"+_(h),m,u,p,h)),m};if(r){const u=p=>{me.test(p)&&s()};r.addAction("hookAdded","core/i18n",u),r.addAction("hookRemoved","core/i18n",u)}return{getLocaleData:o,setLocaleData:l,addLocaleData:g,resetLocaleData:c,subscribe:a,__:b,_x:f,_n:T,_nx:F,isRTL:O,hasTranslation:S}};function ne(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}function L(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}function Q(e,t){return function(n,i,s,a=10){const o=e[t];if(!L(n)||!ne(i))return;if(typeof s!="function"){console.error("The hook callback must be a function.");return}if(typeof a!="number"){console.error("If specified, the hook priority must be a number.");return}const d={callback:s,priority:a,namespace:i};if(o[n]){const l=o[n].handlers;let g;for(g=l.length;g>0&&!(a>=l[g-1].priority);g--);g===l.length?l[g]=d:l.splice(g,0,d),o.__current.forEach(c=>{c.name===n&&c.currentIndex>=g&&c.currentIndex++})}else o[n]={handlers:[d],runs:0};n!=="hookAdded"&&e.doAction("hookAdded",n,i,s,a)}}function P(e,t,r=!1){return function(i,s){const a=e[t];if(!L(i)||!r&&!ne(s))return;if(!a[i])return 0;let o=0;if(r)o=a[i].handlers.length,a[i]={runs:a[i].runs,handlers:[]};else{const d=a[i].handlers;for(let l=d.length-1;l>=0;l--)d[l].namespace===s&&(d.splice(l,1),o++,a.__current.forEach(g=>{g.name===i&&g.currentIndex>=l&&g.currentIndex--}))}return i!=="hookRemoved"&&e.doAction("hookRemoved",i,s),o}}function J(e,t){return function(n,i){const s=e[t];return typeof i<"u"?n in s&&s[n].handlers.some(a=>a.namespace===i):n in s}}function K(e,t,r=!1){return function(i,...s){const a=e[t];a[i]||(a[i]={handlers:[],runs:0}),a[i].runs++;const o=a[i].handlers;if(!o||!o.length)return r?s[0]:void 0;const d={name:i,currentIndex:0};for(a.__current.push(d);d.currentIndex<o.length;){const g=o[d.currentIndex].callback.apply(null,s);r&&(s[0]=g),d.currentIndex++}if(a.__current.pop(),r)return s[0]}}function X(e,t){return function(){var s;var n;const i=e[t];return(n=(s=i.__current[i.__current.length-1])==null?void 0:s.name)!==null&&n!==void 0?n:null}}function G(e,t){return function(n){const i=e[t];return typeof n>"u"?typeof i.__current[0]<"u":i.__current[0]?n===i.__current[0].name:!1}}function Z(e,t){return function(n){const i=e[t];if(L(n))return i[n]&&i[n].runs?i[n].runs:0}}class ve{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Q(this,"actions"),this.addFilter=Q(this,"filters"),this.removeAction=P(this,"actions"),this.removeFilter=P(this,"filters"),this.hasAction=J(this,"actions"),this.hasFilter=J(this,"filters"),this.removeAllActions=P(this,"actions",!0),this.removeAllFilters=P(this,"filters",!0),this.doAction=K(this,"actions"),this.applyFilters=K(this,"filters",!0),this.currentAction=X(this,"actions"),this.currentFilter=X(this,"filters"),this.doingAction=G(this,"actions"),this.doingFilter=G(this,"filters"),this.didAction=Z(this,"actions"),this.didFilter=Z(this,"filters")}}function Ae(){return new ve}const ie=Ae(),{addAction:Xe,addFilter:Ge,removeAction:Ze,removeFilter:Ne,hasAction:Ve,hasFilter:Be,removeAllActions:Ye,removeAllFilters:We,doAction:et,applyFilters:tt,currentAction:rt,currentFilter:nt,doingAction:it,doingFilter:st,didAction:at,didFilter:ct,actions:ot,filters:ut}=ie,y=be(void 0,void 0,ie);y.getLocaleData.bind(y);y.setLocaleData.bind(y);y.resetLocaleData.bind(y);y.subscribe.bind(y);const k=y.__.bind(y);y._x.bind(y);y._n.bind(y);y._nx.bind(y);y.isRTL.bind(y);y.hasTranslation.bind(y);function xe(e){const t=(r,n)=>{const{headers:i={}}=r;for(const s in i)if(s.toLowerCase()==="x-wp-nonce"&&i[s]===t.nonce)return n(r);return n({...r,headers:{...i,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t}const se=(e,t)=>{let r=e.path,n,i;return typeof e.namespace=="string"&&typeof e.endpoint=="string"&&(n=e.namespace.replace(/^\/|\/$/g,""),i=e.endpoint.replace(/^\//,""),i?r=n+"/"+i:r=n),delete e.namespace,delete e.endpoint,t({...e,path:r})},Ee=e=>(t,r)=>se(t,n=>{let i=n.url,s=n.path,a;return typeof s=="string"&&(a=e,e.indexOf("?")!==-1&&(s=s.replace("?","&")),s=s.replace(/^\//,""),typeof a=="string"&&a.indexOf("?")!==-1&&(s=s.replace("?","&")),i=a+s),r({...n,url:i})});function Te(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}function ae(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[i,s]=n;if(Array.isArray(s)||s&&s.constructor===Object){const o=Object.entries(s).reverse();for(const[d,l]of o)r.unshift([`${i}[${d}]`,l])}else s!==void 0&&(s===null&&(s=""),t+="&"+[i,s].map(encodeURIComponent).join("="))}return t.substr(1)}function Fe(e){try{return decodeURIComponent(e)}catch{return e}}function Oe(e,t,r){const n=t.length,i=n-1;for(let s=0;s<n;s++){let a=t[s];!a&&Array.isArray(e)&&(a=e.length.toString()),a=["__proto__","constructor","prototype"].includes(a)?a.toUpperCase():a;const o=!isNaN(Number(t[s+1]));e[a]=s===i?r:e[a]||(o?[]:{}),Array.isArray(e[a])&&!o&&(e[a]={...e[a]}),e=e[a]}}function H(e){return(Te(e)||"").replace(/\+/g,"%20").split("&").reduce((t,r)=>{const[n,i=""]=r.split("=").filter(Boolean).map(Fe);if(n){const s=n.replace(/\]/g,"").split("[");Oe(t,s,i)}return t},Object.create(null))}function E(e="",t){if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return n!==-1&&(t=Object.assign(H(e),t),r=r.substr(0,n)),r+"?"+ae(t)}function j(e,t){return H(e)[t]}function N(e,t){return j(e,t)!==void 0}function V(e,...t){const r=e.indexOf("?");if(r===-1)return e;const n=H(e),i=e.substr(0,r);t.forEach(a=>delete n[a]);const s=ae(n);return s?i+"?"+s:i}function B(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map(i=>i.split("=")).map(i=>i.map(decodeURIComponent)).sort((i,s)=>i[0].localeCompare(s[0])).map(i=>i.map(encodeURIComponent)).map(i=>i.join("=")).join("&"):n}function Se(e){const t=Object.fromEntries(Object.entries(e).map(([r,n])=>[B(r),n]));return(r,n)=>{const{parse:i=!0}=r;let s=r.path;if(!s&&r.url){const{rest_route:d,...l}=H(r.url);typeof d=="string"&&(s=E(d,l))}if(typeof s!="string")return n(r);const a=r.method||"GET",o=B(s);if(a==="GET"&&t[o]){const d=t[o];return delete t[o],Y(d,!!i)}else if(a==="OPTIONS"&&t[a]&&t[a][o]){const d=t[a][o];return delete t[a][o],Y(d,!!i)}return n(r)}}function Y(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const Re=({path:e,url:t,...r},n)=>({...r,url:t&&E(t,n),path:e&&E(e,n)}),W=e=>e.json?e.json():Promise.reject(e),Pe=e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}},ee=e=>{const{next:t}=Pe(e.headers.get("link"));return t},ke=e=>{const t=!!e.path&&e.path.indexOf("per_page=-1")!==-1,r=!!e.url&&e.url.indexOf("per_page=-1")!==-1;return t||r},ce=async(e,t)=>{if(e.parse===!1||!ke(e))return t(e);const r=await A({...Re(e,{per_page:100}),parse:!1}),n=await W(r);if(!Array.isArray(n))return n;let i=ee(r);if(!i)return n;let s=[].concat(n);for(;i;){const a=await A({...e,path:void 0,url:i,parse:!1}),o=await W(a);s=s.concat(o),i=ee(a)}return s},He=new Set(["PATCH","PUT","DELETE"]),Ie="GET",De=(e,t)=>{const{method:r=Ie}=e;return He.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},je=(e,t)=>(typeof e.url=="string"&&!N(e.url,"_locale")&&(e.url=E(e.url,{_locale:"user"})),typeof e.path=="string"&&!N(e.path,"_locale")&&(e.path=E(e.path,{_locale:"user"})),t(e)),Me=(e,t=!0)=>t?e.status===204?null:e.json?e.json():Promise.reject(e):e,Le=e=>{const t={code:"invalid_json",message:k("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(()=>{throw t})},oe=(e,t=!0)=>Promise.resolve(Me(e,t)).catch(r=>U(r,t));function U(e,t=!0){if(!t)throw e;return Le(e).then(r=>{const n={code:"unknown_error",message:k("An unknown error occurred.")};throw r||n})}function Ue(e){const t=!!e.method&&e.method==="POST";return(!!e.path&&e.path.indexOf("/wp/v2/media")!==-1||!!e.url&&e.url.indexOf("/wp/v2/media")!==-1)&&t}const Ce=(e,t)=>{if(!Ue(e))return t(e);let r=0;const n=5,i=s=>(r++,t({path:`/wp/v2/media/${s}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>r<n?i(s):(t({path:`/wp/v2/media/${s}?force=true`,method:"DELETE"}),Promise.reject())));return t({...e,parse:!1}).catch(s=>{const a=s.headers.get("x-wp-upload-attachment-id");return s.status>=500&&s.status<600&&a?i(a).catch(()=>e.parse!==!1?Promise.reject({code:"post_process",message:k("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(s)):U(s,e.parse)}).then(s=>oe(s,e.parse))},$e=e=>(t,r)=>{if(typeof t.url=="string"){const n=j(t.url,"wp_theme_preview");n===void 0?t.url=E(t.url,{wp_theme_preview:e}):n===""&&(t.url=V(t.url,"wp_theme_preview"))}if(typeof t.path=="string"){const n=j(t.path,"wp_theme_preview");n===void 0?t.path=E(t.path,{wp_theme_preview:e}):n===""&&(t.path=V(t.path,"wp_theme_preview"))}return r(t)},ze={Accept:"application/json, */*;q=0.1"},qe={credentials:"include"},ue=[je,se,De,ce];function Qe(e){ue.unshift(e)}const le=e=>{if(e.status>=200&&e.status<300)return e;throw e},Je=e=>{const{url:t,path:r,data:n,parse:i=!0,...s}=e;let{body:a,headers:o}=e;return o={...ze,...o},n&&(a=JSON.stringify(n),o["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,{...qe,...s,body:a,headers:o}).then(l=>Promise.resolve(l).then(le).catch(g=>U(g,i)).then(g=>oe(g,i)),l=>{throw l&&l.name==="AbortError"?l:{code:"fetch_error",message:k("You are probably offline.")}})};let de=Je;function Ke(e){de=e}function A(e){return ue.reduceRight((r,n)=>i=>n(i,r),de)(e).catch(r=>r.code!=="rest_cookie_invalid_nonce"?Promise.reject(r):window.fetch(A.nonceEndpoint).then(le).then(n=>n.text()).then(n=>(A.nonceMiddleware.nonce=n,A(e))))}A.use=Qe;A.setFetchHandler=Ke;A.createNonceMiddleware=xe;A.createPreloadingMiddleware=Se;A.createRootURLMiddleware=Ee;A.fetchAllMiddleware=ce;A.mediaUploadMiddleware=Ce;A.createThemePreviewMiddleware=$e;export{A as a};
1 +import{r}from"./jsx-runtime.js?ver=1.7.0";r();