Files
prestashop/modules/psxmarketingwithgoogle/views/js/fetchWarningMessage.js

2 lines
603 KiB
JavaScript
Raw Normal View History

/*! For license information please see fetchWarningMessage.js.LICENSE.txt */
(()=>{var e={410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(561),s=n(481);const i=[];i[0]={w:[0],i:[3,0],"[":[4],o:[7]},i[1]={w:[1],".":[2],"[":[4],o:[7]},i[2]={w:[2],i:[3,0],0:[3,0]},i[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},i[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},i[5]={"'":[4,0],o:8,l:[5,0]},i[6]={'"':[4,0],o:8,l:[6,0]};const a=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function c(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function l(e){const t=[];let n,r,o,s,l,u,d,p=-1,h=0,f=0;const m=[];function g(){const t=e[p+1];if(5===h&&"'"===t||6===h&&'"'===t)return p++,o="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=o:r+=o},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,h=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,a.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(r),!1===r)return!1;m[1]()}};null!==h;)if(p++,n=e[p],"\\"!==n||!g()){if(s=c(n),d=i[h],l=d[s]||d.l||8,8===l)return;if(h=l[0],void 0!==l[1]&&(u=m[l[1]],u&&(o=n,!1===u())))return;if(7===h)return t}}const u=new Map;function d(e,t){return o.isObject(e)?e[t]:null}const p=e=>e,h=e=>"",f="text",m=e=>0===e.length?"":e.join(""),g=o.toDisplayString;function _(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function y(e={}){const t=e.locale,n=function(e){const t=o.isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o.isNumber(e.named.count)||o.isNumber(e.named.n))?o.isNumber(e.named.count)?e.named.count:o.isNumber(e.named.n)?e.named.n:t:t}(e),r=o.isObject(e.pluralRules)&&o.isString(t)&&o.isFunction(e.pluralRules[t])?e.pluralRules[t]:_,s=o.isObject(e.pluralRules)&&o.isString(t)&&o.isFunction(e.pluralRules[t])?_:void 0,i=e.list||[],a=e.named||{};function c(t){return(o.isFunction(e.messages)?e.messages(t):!!o.isObject(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):h)}o.isNumber(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);const l=o.isPlainObject(e.processor)&&o.isFunction(e.processor.normalize)?e.processor.normalize:m,u=o.isPlainObject(e.processor)&&o.isFunction(e.processor.interpolate)?e.processor.interpolate:g,d={list:e=>i[e],named:e=>a[e],plural:e=>e[r(n,e.length,s)],linked:(t,...n)=>{const[r,s]=n;let i="text",a="";1===n.length?o.isObject(r)?(a=r.modifier||a,i=r.type||i):o.isString(r)&&(a=r||a):2===n.length&&(o.isString(r)&&(a=r||a),o.isString(s)&&(i=s||i));let l=c(t)(d);return"vnode"===i&&o.isArray(l)&&a&&(l=l[0]),a?(u=a,e.modifiers?e.modifiers[u]:p)(l,i):l;var u},message:c,type:o.isPlainObject(e.processor)&&o.isString(e.processor.type)?e.processor.type:f,interpolate:u,normalize:l};return d}let v=null;const b=S(s.IntlifyDevToolsHooks.FunctionTranslate);function S(e){return t=>v&&v.emit(e,t)}const E={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},T={[E.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[E.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[E.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[E.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[E.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[E.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function C(e,t,n){return[...new Set([n,...o.isArray(t)?t:o.isObject(t)?Object.keys(t):o.isString(t)?[t]:[n]])]}function k(e,t,n){let r=!0;for(let s=0;s<t.length&&o.isBoolean(r);s++){const i=t[s];o.isString(i)&&(r=w(e,t[s],n))}return r}function w(e,t,n){let r;const o=t.split("-");do{r=O(