/*! * MIT License * * Copyright (c) 2021 DIGITAL RETAIL TECHNOLOGIES SL * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author DIGITAL RETAIL TECHNOLOGIES SL * @copyright 2021 DIGITAL RETAIL TECHNOLOGIES SL * @license https://opensource.org/licenses/MIT The MIT License * * Don\'t forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. * */ (function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["retailcrm-prestashop"]=n():t["retailcrm-prestashop"]=n()})("undefined"!==typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fae3")}({"00ee":function(t,n,e){var r=e("b622"),o=r("toStringTag"),c={};c[o]="z",t.exports="[object z]"===String(c)},"0366":function(t,n,e){var r=e("1c0b");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"06cf":function(t,n,e){var r=e("83ab"),o=e("d1e7"),c=e("5c6c"),i=e("fc6a"),u=e("a04b"),f=e("5135"),a=e("0cfb"),s=Object.getOwnPropertyDescriptor;n.f=r?s:function(t,n){if(t=i(t),n=u(n),a)try{return s(t,n)}catch(e){}if(f(t,n))return c(!o.f.call(t,n),t[n])}},"0cfb":function(t,n,e){var r=e("83ab"),o=e("d039"),c=e("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},"19aa":function(t,n){t.exports=function(t,n,e){if(!(t instanceof n))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation");return t}},"1be4":function(t,n,e){var r=e("d066");t.exports=r("document","documentElement")},"1c0b":function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,n,e){var r=e("b622"),o=r("iterator"),c=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){c=!0}};u[o]=function(){return this},Array.from(u,(function(){throw 2}))}catch(f){}t.exports=function(t,n){if(!n&&!c)return!1;var e=!1;try{var r={};r[o]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(f){}return e}},"1cdc":function(t,n,e){var r=e("342f");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d80":function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},2266:function(t,n,e){var r=e("825a"),o=e("e95a"),c=e("50c4"),i=e("0366"),u=e("35a1"),f=e("2a62"),a=function(t,n){this.stopped=t,this.result=n};t.exports=function(t,n,e){var s,l,p,d,v,h,b,y=e&&e.that,m=!(!e||!e.AS_ENTRIES),g=!(!e||!e.IS_ITERATOR),x=!(!e||!e.INTERRUPTED),w=i(n,y,1+m+x),j=function(t){return s&&f(s),new a(!0,t)},S=function(t){return m?(r(t),x?w(t[0],t[1],j):w(t[0],t[1])):x?w(t,j):w(t)};if(g)s=t;else{if(l=u(t),"function"!=typeof l)throw TypeError("Target is not iterable");if(o(l)){for(p=0,d=c(t.length);d>p;p++)if(v=S(t[p]),v&&v instanceof a)return v;return new a(!1)}s=l.call(t)}h=s.next;while(!(b=h.call(s)).done){try{v=S(b.value)}catch(O){throw f(s),O}if("object"==typeof v&&v&&v instanceof a)return v}return new a(!1)}},"23cb":function(t,n,e){var r=e("a691"),o=Math.max,c=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):c(e,n)}},"23e7":function(t,n,e){var r=e("da84"),o=e("06cf").f,c=e("9112"),i=e("6eeb"),u=e("ce4e"),f=e("e893"),a=e("94ca");t.exports=function(t,n){var e,s,l,p,d,v,h=t.target,b=t.global,y=t.stat;if(s=b?r:y?r[h]||u(h,{}):(r[h]||{}).prototype,s)for(l in n){if(d=n[l],t.noTargetGet?(v=o(s,l),p=v&&v.value):p=s[l],e=a(b?l:h+(y?".":"#")+l,t.forced),!e&&void 0!==p){if(typeof d===typeof p)continue;f(d,p)}(t.sham||p&&p.sham)&&c(d,"sham",!0),i(s,l,d,t)}}},"241c":function(t,n,e){var r=e("ca84"),o=e("7839"),c=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,c)}},2626:function(t,n,e){"use strict";var r=e("d066"),o=e("9bf2"),c=e("b622"),i=e("83ab"),u=c("species");t.exports=function(t){var n=r(t),e=o.f;i&&n&&!n[u]&&e(n,u,{configurable:!0,get:function(){return this}})}},"2a62":function(t,n,e){var r=e("825a");t.exports=function(t){var n=t["return"];if(void 0!==n)return r(n.call(t)).value}},"2cf4":function(t,n,e){var r,o,c,i,u=e("da84"),f=e("d039"),a=e("0366"),s=e("1be4"),l=e("cc12"),p=e("1cdc"),d=e("605d"),v=u.setImmediate,h=u.clearImmediate,b=u.process,y=u.MessageChannel,m=u.Dispatch,g=0,x={},w="onreadystatechange";try{r=u.location}catch(T){}var j=function(t){if(x.hasOwnProperty(t)){var n=x[t];delete x[t],n()}},S=function(t){return function(){j(t)}},O=function(t){j(t.data)},E=function(t){u.postMessage(String(t),r.protocol+"//"+r.host)};v&&h||(v=function(t){var n=[],e=arguments.length,r=1;while(e>r)n.push(arguments[r++]);return x[++g]=function(){("function"==typeof t?t:Function(t)).apply(void 0,n)},o(g),g},h=function(t){delete x[t]},d?o=function(t){b.nextTick(S(t))}:m&&m.now?o=function(t){m.now(S(t))}:y&&!p?(c=new y,i=c.port2,c.port1.onmessage=O,o=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts&&r&&"file:"!==r.protocol&&!f(E)?(o=E,u.addEventListener("message",O,!1)):o=w in l("script")?function(t){s.appendChild(l("script"))[w]=function(){s.removeChild(this),j(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:v,clear:h}},"2d00":function(t,n,e){var r,o,c=e("da84"),i=e("342f"),u=c.process,f=c.Deno,a=u&&u.versions||f&&f.version,s=a&&a.v8;s?(r=s.split("."),o=r[0]<4?1:r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},"342f":function(t,n,e){var r=e("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,n,e){var r=e("f5df"),o=e("3f8c"),c=e("b622"),i=c("iterator");t.exports=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"3bbe":function(t,n,e){var r=e("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3f8c":function(t,n){t.exports={}},"44ad":function(t,n,e){var r=e("d039"),o=e("c6b6"),c="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?c.call(t,""):Object(t)}:Object},"44de":function(t,n,e){var r=e("da84");t.exports=function(t,n){var e=r.console;e&&e.error&&(1===arguments.length?e.error(t):e.error(t,n))}},"47bc":function(t,n,e){var r=e("970b").default,o=e("9523").default;(function(){var t=function t(){"use strict";var n=this;r(this,t),o(this,"init",(function(){n.executeJobs()})),o(this,"executeJobs",(function(){var t=new XMLHttpRequest;t.open("GET","/index.php?fc=module&module=retailcrm&controller=Jobs",!0),t.timeout=0,t.send(null)}))};(new t).init()})()},4840:function(t,n,e){var r=e("825a"),o=e("1c0b"),c=e("b622"),i=c("species");t.exports=function(t,n){var e,c=r(t).constructor;return void 0===c||void 0==(e=r(c)[i])?n:o(e)}},"485a":function(t,n,e){var r=e("861d");t.exports=function(t,n){var e,o;if("string"===n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if("string"!==n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},4930:function(t,n,e){var r=e("2d00"),o=e("d039");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"4d64":function(t,n,e){var r=e("fc6a"),o=e("50c4"),c=e("23cb"),i=function(t){return function(n,e,i){var u,f=r(n),a=o(f.length),s=c(i,a);if(t&&e!=e){while(a>s)if(u=f[s++],u!=u)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},"50c4":function(t,n,e){var r=e("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,n,e){var r=e("7b0b"),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,n){return o.call(r(t),n)}},5692:function(t,n,e){var r=e("c430"),o=e("c6cd");(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.16.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,n,e){var r=e("d066"),o=e("241c"),c=e("7418"),i=e("825a");t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(i(t)),e=c.f;return e?n.concat(e(t)):n}},"5c6c":function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"605d":function(t,n,e){var r=e("c6b6"),o=e("da84");t.exports="process"==r(o.process)},6069:function(t,n){t.exports="object"==typeof window},"69f3":function(t,n,e){var r,o,c,i=e("7f9a"),u=e("da84"),f=e("861d"),a=e("9112"),s=e("5135"),l=e("c6cd"),p=e("f772"),d=e("d012"),v="Object already initialized",h=u.WeakMap,b=function(t){return c(t)?o(t):r(t,{})},y=function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}};if(i||l.state){var m=l.state||(l.state=new h),g=m.get,x=m.has,w=m.set;r=function(t,n){if(x.call(m,t))throw new TypeError(v);return n.facade=t,w.call(m,t,n),n},o=function(t){return g.call(m,t)||{}},c=function(t){return x.call(m,t)}}else{var j=p("state");d[j]=!0,r=function(t,n){if(s(t,j))throw new TypeError(v);return n.facade=t,a(t,j,n),n},o=function(t){return s(t,j)?t[j]:{}},c=function(t){return s(t,j)}}t.exports={set:r,get:o,has:c,enforce:b,getterFor:y}},"6eeb":function(t,n,e){var r=e("da84"),o=e("9112"),c=e("5135"),i=e("ce4e"),u=e("8925"),f=e("69f3"),a=f.get,s=f.enforce,l=String(String).split("String");(t.exports=function(t,n,e,u){var f,a=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||c(e,"name")||o(e,"name",n),f=s(e),f.source||(f.source=l.join("string"==typeof n?n:""))),t!==r?(a?!d&&t[n]&&(p=!0):delete t[n],p?t[n]=e:o(t,n,e)):p?t[n]=e:i(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||u(this)}))},7418:function(t,n){n.f=Object.getOwnPropertySymbols},7839:function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,n,e){var r=e("1d80");t.exports=function(t){return Object(r(t))}},"7f9a":function(t,n,e){var r=e("da84"),o=e("8925"),c=r.WeakMap;t.exports="function"===typeof c&&/native code/.test(o(c))},"825a":function(t,n,e){var r=e("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,n,e){var r=e("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,n,e){var r,o,c;(function(e,i){o=[],r=i,c="function"===typeof r?r.apply(n,o):r,void 0===c||(t.exports=c)})("undefined"!==typeof self&&self,(function(){function t(){var n=Object.getOwnPropertyDescriptor(document,"currentScript");if(!n&&"currentScript"in document&&document.currentScript)return document.currentScript;if(n&&n.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var e,r,o,c=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,u=c.exec(d.stack)||i.exec(d.stack),f=u&&u[1]||!1,a=u&&u[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");f===s&&(e=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*