{"version":3,"file":"te-connect-js.js","sources":["webpack://te-connect-js/te-connect-js.js"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports[\"te-connect-js\"]=e():t[\"te-connect-js\"]=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p=\"\",r(r.s=7)}([function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){function r(e){return\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},r(e)}t.exports=r},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}},function(t,e,r){t.exports=r(6)},function(t,e){function r(t,e){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion;if(\"root\"===i.tryLoc)return n(\"end\");if(i.tryLoc<=this.prev){var c=r.call(i,\"catchLoc\"),u=r.call(i,\"finallyLoc\");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;S(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},\"next\"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(n)}},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"TeConnectJs\",(function(){return j}));var n=r(2),o=r.n(n),i=r(3),a=r.n(i),c=r(5),u=r.n(c),s=r(1),f=r.n(s),l=r(4),h=r.n(l),p=r(0),d=r.n(p),y=\"\".concat(\"https://svc4.magensa.net\",\"/TEConnect\"),m=[\"instanceId\",\"pubKey\",\"requestOrigin\"],v=\"This usually means TEConnect was not loaded properly - or is unable to resolve the TEConnect URL.\",g=\"Reference to Card Entry element was not found. \".concat(v,\".\"),w=\"Id for TEConnect inputs was not found. \".concat(v,\".\"),b=\"__te-connect-secure-window\",E={passive:!0},S={border:\"none !important\",margin:\"0px !important\",padding:\"0px !important\",width:\"1px !important\",minWidth:\"100% !important\",overflow:\"hidden !important\",display:\"block !important\",userSelect:\"none !important\",transform:\"translateZ(0px) !important\",height:\"100%\"};function x(t,e){var r;if(\"undefined\"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if(\"string\"==typeof t)return L(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(t,e)}(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var i,a=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r5&&(this.formId=e)}}},{key:\"attachTeFormListener\",value:function(){window.addEventListener(\"message\",this.formIdListener,!this.listenerOptionsSupported||E),window.addEventListener(\"unload\",(function(){window.removeEventListener(\"message\",this.formIdListener,!this.listenerOptionsSupported||E)}),!this.listenerOptionsSupported||E)}}]),t}(),j=function t(e){o()(this,t);var r=new _(e);this.createPayment=r.createPayment,this.setStyles=r.setStyles,this.mountCardEntry=r.mountCardEntry}}])}));"],"mappings":"AAAA","sourceRoot":""}