@medipass/checkout-sdk 2.0.1 → 3.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -3
- package/dist/cjs/index.js +9 -0
- package/package.json +35 -9
- package/es/constants.js +0 -16
- package/es/index.js +0 -272
- package/es/overlay.js +0 -184
- package/es/style.css +0 -1
- package/es/utils/object-to-css.js +0 -3
- package/lib/constants.js +0 -25
- package/lib/index.js +0 -284
- package/lib/overlay.js +0 -196
- package/lib/style.css +0 -1
- package/lib/utils/object-to-css.js +0 -11
- package/umd/checkout-sdk.js +0 -2193
- package/umd/checkout-sdk.min.js +0 -3
- package/umd/checkout-sdk.min.js.map +0 -1
- package/umd/main.3a4213e0.css +0 -2
- package/umd/main.3a4213e0.css.map +0 -1
package/umd/checkout-sdk.min.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! @medipass/checkout-sdk v2.0.1 */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.MedipassCheckoutSDK=e():t.MedipassCheckoutSDK=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(t,e,n){var o=n(12);t.exports=function(t,e,n){var r=null==t?void 0:o(t,e);return void 0===r?n:r}},function(t,e,n){var o=n(9)(Object,"create");t.exports=o},function(t,e,n){var o=n(40);t.exports=function(t,e){for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1}},function(t,e,n){var o=n(46);t.exports=function(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var o=n(8),r=n(19);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==o(t)}},function(t,e,n){var o=n(7).Symbol;t.exports=o},function(t,e,n){var o=n(15),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,e,n){var o=n(6),r=n(17),i=n(18),c=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?r(t):i(t)}},function(t,e,n){var o=n(27),r=n(32);t.exports=function(t,e){var n=r(t,e);return o(n)?n:void 0}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){t.exports=n(55)},function(t,e,n){var o=n(13),r=n(53);t.exports=function(t,e){for(var n=0,i=(e=o(e,t)).length;null!=t&&n<i;)t=t[r(e[n++])];return n&&n==i?t:void 0}},function(t,e,n){var o=n(4),r=n(14),i=n(20),c=n(50);t.exports=function(t,e){return o(t)?t:r(t,e)?[t]:i(c(t))}},function(t,e,n){var o=n(4),r=n(5),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;t.exports=function(t,e){if(o(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!r(t))||(c.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(16))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var o=n(6),r=Object.prototype,i=r.hasOwnProperty,c=r.toString,a=o?o.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var o=!0}catch(t){}var r=c.call(t);return o&&(e?t[a]=n:delete t[a]),r}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var o=n(21),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,c=o((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,o,r){e.push(o?r.replace(i,"$1"):n||t)})),e}));t.exports=c},function(t,e,n){var o=n(22);t.exports=function(t){var e=o(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var o=n(23);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var c=t.apply(this,o);return n.cache=i.set(r,c)||i,c};return n.cache=new(r.Cache||o),n}r.Cache=o,t.exports=r},function(t,e,n){var o=n(24),r=n(45),i=n(47),c=n(48),a=n(49);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=r,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},function(t,e,n){var o=n(25),r=n(37),i=n(44);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(i||r),string:new o}}},function(t,e,n){var o=n(26),r=n(33),i=n(34),c=n(35),a=n(36);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=r,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},function(t,e,n){var o=n(1);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},function(t,e,n){var o=n(28),r=n(29),i=n(10),c=n(31),a=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,p=s.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||r(t))&&(o(t)?f:a).test(c(t))}},function(t,e,n){var o=n(8),r=n(10);t.exports=function(t){if(!r(t))return!1;var e=o(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var o,r=n(30),i=(o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var o=n(7)["__core-js_shared__"];t.exports=o},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var o=n(1),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(o){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},function(t,e,n){var o=n(1),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return o?void 0!==e[t]:r.call(e,t)}},function(t,e,n){var o=n(1);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=o&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var o=n(38),r=n(39),i=n(41),c=n(42),a=n(43);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=r,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var o=n(2),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=o(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var o=n(2);t.exports=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var o=n(2);t.exports=function(t){return o(this.__data__,t)>-1}},function(t,e,n){var o=n(2);t.exports=function(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var o=n(9)(n(7),"Map");t.exports=o},function(t,e,n){var o=n(3);t.exports=function(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var o=n(3);t.exports=function(t){return o(this,t).get(t)}},function(t,e,n){var o=n(3);t.exports=function(t){return o(this,t).has(t)}},function(t,e,n){var o=n(3);t.exports=function(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},function(t,e,n){var o=n(51);t.exports=function(t){return null==t?"":o(t)}},function(t,e,n){var o=n(6),r=n(52),i=n(4),c=n(5),a=o?o.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return r(e,t)+"";if(c(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e){t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r}},function(t,e,n){var o=n(5);t.exports=function(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){},function(t,e,n){"use strict";n.r(e);var o,r=n(0),i=n.n(r),c={LOCAL:"local",DEV:"dev",STG:"stg",PROD_BLUE:"prod-blue",PROD:"prod"},a=((o={})[c.LOCAL]="http://localhost:3001",o[c.DEV]="https://dev-my.medipass.io",o[c.STG]="https://stg-my.medipass.io",o[c.PROD_BLUE]="https://my-blue.medipass.io",o[c.PROD]="https://my.medipass.io",o),u="success",s="failure",l="cancel";function p(t){var e=t.window,n=t.element,o=t.text,r=t.id,c=t.styles,a=t.onClick;if(e){var u=e.document.createElement(n);return o&&(u.innerHTML=o),r&&(u.id=r),c&&(u.style.cssText=function(t){return JSON.stringify(t,null,"\t").replace(/"/g,"").replace(/,\n/g,";").replace(/\}/g,"").replace(/\{/g,"")}(c)),i()(u,"addEventListener")&&a&&u.addEventListener("click",(function(){a()})),u}}var f={contentElement:null,removeOverlay:function(){var t=document.getElementById("medipass-checkout-sdk-root");t&&t.remove()},createOverlay:function(t){var e=t.window,n=t.onClickRelaunch,o=t.onClickCancel;if(e){var r=p({window:e,element:"div",id:"medipass-checkout-sdk-root",styles:{"z-index":"2147483100",position:"fixed",top:"0",left:"0",width:"100%",height:"100%","background-color":"rgba(0, 0, 0, 0.8)","font-family":"Lato",color:"white",display:"flex"}}),i=p({window:e,element:"div",styles:{"max-width":"360px","margin-left":"auto","margin-right":"auto","margin-top":"auto","margin-bottom":"auto","text-align":"center"}});this.contentElement=i;var c=p({window:e,element:"div",text:"Secure Medipass payment in progress",styles:{color:"white","font-size":"35px","font-weight":"600","margin-bottom":"30px"}}),a=this.createSubHeading({window:e,onClickRelaunch:n,onClickCancel:o});i.appendChild(c),i.appendChild(a),r.appendChild(i),e.document.body.appendChild(r)}},createSubHeading:function(t){var e=t.window,n=t.onClickRelaunch,o=t.onClickCancel;if(e){var r=p({window:e,id:"medipass-checkout-sdk-subheading",element:"div"}),i=p({window:e,element:"div",text:"Don't see the payment window?"}),c=p({window:e,element:"a",text:"Click here",onClick:n,styles:{"text-decoration":"underline",cursor:"pointer","font-weight":"600"}}),a=p({window:e,element:"span",text:" to relaunch and complete your payment."}),u=p({window:e,element:"div",text:"OR",styles:{"margin-top":"20px","margin-bottom":"20px"}}),s=p({window:e,element:"a",text:"Click here to cancel the payment.",onClick:o,styles:{"text-decoration":"underline",cursor:"pointer","font-weight":"600"}});return r.appendChild(i),r.appendChild(c),r.appendChild(a),r.appendChild(u),r.appendChild(s),r}},updateSubheading:function(t){var e=t.window,n=t.onClickRelaunch,o=t.onClickCancel;if(e){var r=document.getElementById("medipass-checkout-sdk-subheading");r&&r.remove();var c=this.createSubHeading({window:e,onClickRelaunch:n,onClickCancel:o});this.contentElement&&i()(this.contentElement,"appendChild")&&this.contentElement.appendChild(c)}}};n(54);function d(t){var e=t.url;if(window){var n,o=i()(window,"outerHeight")||i()(window,"innerHeight"),r=i()(window,"outerWidth")||i()(window,"innerWidth"),c=.8*o,a=r>450?450:.25*r,u=r/2-a/2,s=o/2-c/2;return window.open(e,"Medipass Checkout","menubar=no, location=no, resizable=no, scrollbars=yes, status=no, height="+(n={height:c,width:a,left:u,top:s}).height+", width="+n.width+", left="+n.left+", top="+n.top)}}var h=null,v={ENVS:c,isCheckoutInitiated:!1,isCheckoutComplete:null,env:null,onSuccess:null,onFailure:null,onCancel:null,onCose:null,init:function(t){var e=this,n=t.env,o=t.onSuccess,r=t.onFailure,c=t.onCancel,a=t.onClose;if(n){this.env=n,this.onSuccess=o,this.onFailure=r,this.onCancel=c,this.onClose=a,h=d({url:""});f.createOverlay({window:window,onClickRelaunch:function(){h?h.focus():h=d({url:""})},onClickCancel:function(){f.removeOverlay(),h&&h.close(),clearInterval(u),a&&a()}});var u=setInterval((function(){e.isCheckoutInitiated?clearInterval(u):i()(h,"closed")&&(clearInterval(u),f.removeOverlay(),a&&a(),h&&h.close())}),500)}},createCheckout:function(t){var e=this,n=t.paymentRequestUrl;if(n&&window){var o=this.env,r=this.onSuccess,c=this.onFailure,p=this.onCancel,v=this.onClose,y=setInterval((function(){i()(h,"closed")&&(clearInterval(y),w())}),500);this.isCheckoutInitiated=!0;var x=function(){if(h?h.location.replace(n):h=d({url:n}),h){window.addEventListener("message",(function(e){return t(e)}));var t=function(t){t&&(f(t)&&(e.isCheckoutComplete=!0))},f=function(t){var e=a[o];if(t&&e&&i()(t,"origin")===e){var n=i()(t,"data.event"),f=i()(t,"data.transactionId"),d=i()(t,"data.receiptAutoSent");if(n&&f)return n===u?(d?setTimeout((function(){r&&r({transactionId:f}),h.close()}),1500):r&&r({transactionId:f}),f):n===s?(c&&c({transactionId:f}),f):n===l?(setTimeout((function(){p&&p({transactionId:f}),h.close()}),1500),f):void 0}};return h}};x();var w=function(){f.removeOverlay(),e.isCheckoutComplete||v&&v(),h&&h.close()};f.updateSubheading({window:window,onClickRelaunch:function(){h?h.focus():h=x()},onClickCancel:function(){h?h.close():clearInterval(y),f.removeOverlay(),v&&v()}})}}};e.default=v}]).default}));
|
|
3
|
-
//# sourceMappingURL=checkout-sdk.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://MedipassCheckoutSDK/webpack/universalModuleDefinition","webpack://MedipassCheckoutSDK/webpack/bootstrap","webpack://MedipassCheckoutSDK/./node_modules/lodash/get.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_nativeCreate.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_assocIndexOf.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_getMapData.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/isArray.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/isSymbol.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_Symbol.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_root.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_baseGetTag.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_getNative.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/isObject.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_baseGet.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_castPath.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_isKey.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_freeGlobal.js","webpack://MedipassCheckoutSDK/(webpack)/buildin/global.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_getRawTag.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_objectToString.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/isObjectLike.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_stringToPath.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_memoizeCapped.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/memoize.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_MapCache.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_mapCacheClear.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_Hash.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_hashClear.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_baseIsNative.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/isFunction.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_isMasked.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_coreJsData.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_toSource.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_getValue.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_hashDelete.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_hashGet.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_hashHas.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_hashSet.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_ListCache.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_listCacheClear.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_listCacheDelete.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/eq.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_listCacheGet.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_listCacheHas.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_listCacheSet.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_Map.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_mapCacheDelete.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_isKeyable.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_mapCacheGet.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_mapCacheHas.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_mapCacheSet.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/toString.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_baseToString.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_arrayMap.js","webpack://MedipassCheckoutSDK/./node_modules/lodash/_toKey.js","webpack://MedipassCheckoutSDK/./src/constants.js","webpack://MedipassCheckoutSDK/./src/overlay.js","webpack://MedipassCheckoutSDK/./src/utils/object-to-css.js","webpack://MedipassCheckoutSDK/./src/index.js"],"names":["root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","baseGet","path","defaultValue","result","undefined","nativeCreate","getNative","eq","array","length","isKeyable","map","data","__data__","isArray","Array","baseGetTag","isObjectLike","freeGlobal","freeSelf","self","Function","getRawTag","objectToString","symToStringTag","baseIsNative","getValue","type","castPath","toKey","index","isKey","stringToPath","toString","isSymbol","reIsDeepProp","reIsPlainProp","test","global","g","this","e","objectProto","nativeObjectToString","isOwn","tag","unmasked","memoizeCapped","rePropName","reEscapeChar","string","charCodeAt","push","replace","match","number","quote","subString","memoize","func","cache","size","clear","MapCache","resolver","TypeError","memoized","args","arguments","apply","has","set","Cache","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","entries","entry","Hash","ListCache","Map","hashClear","hashDelete","hashGet","hashHas","hashSet","isFunction","isMasked","isObject","toSource","reIsHostCtor","funcProto","funcToString","reIsNative","RegExp","uid","coreJsData","maskSrcKey","exec","keys","IE_PROTO","listCacheClear","listCacheDelete","listCacheGet","listCacheHas","listCacheSet","assocIndexOf","splice","pop","other","getMapData","baseToString","arrayMap","symbolProto","symbolToString","iteratee","ENVS","LOCAL","DEV","STG","PROD_BLUE","PROD","ORIGINS","EVENTS","createElement","element","text","id","styles","onClick","newElement","document","innerHTML","style","cssText","JSON","stringify","toCss","_get","addEventListener","overlay","contentElement","removeOverlay","containerDiv","getElementById","remove","createOverlay","onClickRelaunch","onClickCancel","position","top","left","width","height","color","display","content","heading","subHeading","createSubHeading","appendChild","body","subHeadingContainer","subHeading1","link1","cursor","subHeading2","subHeading3","link2","updateSubheading","subheaderElement","newSubheading","initialiseWindow","url","windowHeight","windowWidth","popupHeight","popupWidth","xPosition","yPosition","open","_windowReferenceObject","checkoutSDK","isCheckoutInitiated","isCheckoutComplete","env","onSuccess","onFailure","onCancel","onCose","init","onClose","focus","close","clearInterval","timer","setInterval","createCheckout","paymentRequestUrl","handleClose","openWindow","location","onReceiveMessage","getMessage","origin","event","transactionId","receiptAutoSent","setTimeout"],"mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAA6B,oBAAID,IAEjCD,EAA0B,oBAAIC,IARhC,CASGK,QAAQ,WACX,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAA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AAQ+D,GAEvB,GAAIlJ,GAAMqK,GAGPlE,IAAKnG,EAAG,YAAcqK,EAAzB,CAEA,IAAMC,EAAQnE,IAAKnG,EAAG,cAChBuK,EAAgBpE,IAAKnG,EAAG,sBACxBwK,EAAkBrE,IAAKnG,EAAG,wBAEhC,GAAIsK,GAAUC,EAEd,OAAGD,IAAUlF,GACRoF,EAEDC,YAAW,WACTtB,GAAaA,EAAU,CAAEoB,kBACzBzB,EAAuBY,UACtB,MAGHP,GAAaA,EAAU,CAAEoB,kBAEpBA,GAEND,IAAUlF,GACXgE,GAAaA,EAAU,CAAEmB,kBAClBA,GAEND,IAAUlF,GAEXqF,YAAW,WACTpB,GAAYA,EAAS,CAAEkB,kBACvBzB,EAAuBY,UACtB,MACIa,QANT,IAUF,OAAOzB,IAMTmB,IAIA,IAAMD,EAAc,WAElB3D,EAAQE,gBAGJ,EAAK0C,oBACPO,GAAWA,IAETV,GACJA,EAAuBY,SA0BzBrD,EAAQ6B,iBAAiB,CAAE/M,cAAQyL,gBArBX,WAClBkC,EAIJA,EAAuBW,QAHrBX,EAAyBmB,KAmBuBpD,cAb9B,WAEjBiC,EACDA,EAAuBY,QAEvBC,cAAcC,GAGhBvD,EAAQE,gBACRiD,GAAWA,UAUFT,e","file":"checkout-sdk.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"MedipassCheckoutSDK\"] = factory();\n\telse\n\t\troot[\"MedipassCheckoutSDK\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 11);\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","export const ENVS = {\n LOCAL: 'local',\n DEV: 'dev',\n STG: 'stg',\n PROD_BLUE: 'prod-blue',\n PROD: 'prod'\n};\n\nexport const ORIGINS = {\n [ENVS.LOCAL]: 'http://localhost:3001',\n [ENVS.DEV]: 'https://dev-my.medipass.io',\n [ENVS.STG]: 'https://stg-my.medipass.io',\n [ENVS.PROD_BLUE]: 'https://my-blue.medipass.io',\n [ENVS.PROD]: 'https://my.medipass.io'\n};\n\nexport const EVENTS = {\n SUCCESS: 'success',\n fAILURE: 'failure',\n CANCEL: 'cancel'\n};\n\nexport const ROOT_ELEMENT_ID = 'medipass-checkout-sdk-root';\n","import { ROOT_ELEMENT_ID } from './constants';\nimport toCss from './utils/object-to-css';\nimport _get from 'lodash/get';\n\nconst SUBHEADING_ELEMENT_ID = 'medipass-checkout-sdk-subheading';\n\nfunction createElement({ window, element, text, id, styles, onClick }) {\n\n if(!window) return;\n\n const newElement = window.document.createElement(element);\n\n if(text) {\n newElement.innerHTML = text;\n }\n if(id) {\n newElement.id = id;\n }\n if(styles) {\n newElement.style.cssText = toCss(styles);\n }\n if(_get(newElement, 'addEventListener') && onClick) {\n newElement.addEventListener('click', () => {\n onClick();\n });\n }\n\n return newElement;\n}\n\nconst overlay = {\n\n contentElement: null,\n\n removeOverlay() {\n const containerDiv = document.getElementById(ROOT_ELEMENT_ID);\n if(!containerDiv) return;\n containerDiv.remove();\n },\n\n createOverlay({ window, onClickRelaunch, onClickCancel }) {\n\n if(!window) return;\n \n const containerDiv = createElement({\n window,\n element: 'div',\n id: ROOT_ELEMENT_ID,\n styles: {\n 'z-index': '2147483100',\n position: 'fixed',\n top: '0',\n left: '0',\n width: '100%',\n height: '100%',\n 'background-color': 'rgba(0, 0, 0, 0.8)',\n 'font-family': 'Lato',\n color: 'white',\n display: 'flex'\n }\n });\n \n const content = createElement({\n window,\n element: 'div',\n styles: {\n 'max-width': '360px',\n 'margin-left': 'auto',\n 'margin-right': 'auto',\n 'margin-top': 'auto',\n 'margin-bottom': 'auto',\n 'text-align': 'center'\n }\n });\n\n this.contentElement = content;\n \n //////////////////////////////////////////////////////////// \n \n const heading = createElement({\n window,\n element: 'div',\n text: 'Secure Medipass payment in progress',\n styles: {\n color: 'white',\n 'font-size': '35px',\n 'font-weight': '600',\n 'margin-bottom': '30px'\n }\n });\n \n ////////////////////////////////////////////////////////////\n \n const subHeading = this.createSubHeading({ window, onClickRelaunch, onClickCancel });\n \n ////////////////////////////////////////////////////////////\n \n content.appendChild(heading);\n content.appendChild(subHeading);\n containerDiv.appendChild(content);\n \n ////////////////////////////////////////////////////////////\n \n window.document.body.appendChild(containerDiv);\n \n },\n\n createSubHeading({ window, onClickRelaunch, onClickCancel }) {\n \n if(!window) return;\n \n const subHeadingContainer = createElement({\n window,\n id: SUBHEADING_ELEMENT_ID,\n element: 'div',\n });\n \n const subHeading1 = createElement({\n window,\n element: 'div',\n text: 'Don\\'t see the payment window?'\n });\n \n const link1 = createElement({\n window,\n element: 'a',\n text: 'Click here',\n onClick: onClickRelaunch,\n styles: {\n 'text-decoration': 'underline',\n cursor: 'pointer',\n 'font-weight': '600'\n }\n }); \n const subHeading2 = createElement({\n window,\n element: 'span',\n text: ' to relaunch and complete your payment.'\n });\n\n const subHeading3 = createElement({\n window,\n element: 'div',\n text: 'OR',\n styles: {\n 'margin-top': '20px',\n 'margin-bottom': '20px'\n }\n });\n \n const link2 = createElement({\n window,\n element: 'a',\n text: 'Click here to cancel the payment.',\n onClick: onClickCancel,\n styles: {\n 'text-decoration': 'underline',\n cursor: 'pointer',\n 'font-weight': '600'\n }\n });\n \n subHeadingContainer.appendChild(subHeading1);\n subHeadingContainer.appendChild(link1);\n subHeadingContainer.appendChild(subHeading2);\n subHeadingContainer.appendChild(subHeading3);\n subHeadingContainer.appendChild(link2);\n \n return subHeadingContainer;\n },\n\n updateSubheading({ window, onClickRelaunch, onClickCancel }) {\n if(!window) return;\n\n const subheaderElement = document.getElementById(SUBHEADING_ELEMENT_ID);\n if(subheaderElement) {\n subheaderElement.remove();\n }\n\n const newSubheading = this.createSubHeading({window, onClickRelaunch, onClickCancel});\n if(this.contentElement && _get(this.contentElement, 'appendChild')) {\n this.contentElement.appendChild(newSubheading); \n }\n }\n\n};\n\nexport default overlay;\n","export default (style) => {\n return JSON.stringify(style,null,'\\t')\n .replace(/\"/g,'')\n .replace(/,\\n/g,';')\n .replace(/\\}/g, '')\n .replace(/\\{/g, '');\n};","import _get from 'lodash/get';\nimport overlay from './overlay';\nimport { ORIGINS, ENVS, EVENTS } from './constants';\nimport './style.css';\n\nconst POPUP_WIDTH = 450;\n\nconst getWindowFeatures = ({ height, width, left, top }) => `menubar=no, location=no, resizable=no, scrollbars=yes, status=no, height=${height}, width=${width}, left=${left}, top=${top}`;\n\nfunction initialiseWindow({ url }) {\n\n if(!window) return;\n\n // The target window could either be in an iframe, or just a normal standalone window.\n // We need to grab the correct window height and width for calculating dimensions.\n const windowHeight = _get(window, 'outerHeight') || _get(window, 'innerHeight');\n const windowWidth = _get(window, 'outerWidth') || _get(window, 'innerWidth');\n\n const popupHeight = windowHeight * 0.80;\n const popupWidth = windowWidth > POPUP_WIDTH ? POPUP_WIDTH : windowWidth * 0.25;\n\n const xPosition = (windowWidth / 2) - (popupWidth / 2);\n const yPosition = (windowHeight / 2) - (popupHeight / 2);\n\n const windowRef = window.open(\n url,\n 'Medipass Checkout',\n getWindowFeatures({\n height: popupHeight,\n width: popupWidth,\n left: xPosition,\n top: yPosition\n })\n );\n\n return windowRef;\n}\n\n////////////////////////////////////////////////////////////\n\nlet _windowReferenceObject = null;\n\n////////////////////////////////////////////////////////////\n\nconst checkoutSDK = {\n\n ENVS,\n isCheckoutInitiated: false,\n isCheckoutComplete: null,\n env: null,\n onSuccess: null,\n onFailure: null,\n onCancel: null,\n onCose: null,\n\n init({ env, onSuccess, onFailure, onCancel, onClose }) {\n if(!env) return;\n\n this.env = env;\n this.onSuccess = onSuccess;\n this.onFailure = onFailure;\n this.onCancel = onCancel;\n this.onClose = onClose;\n\n // Open a blank window\n _windowReferenceObject = initialiseWindow({ url: '' });\n\n const handleClose = () => {\n overlay.removeOverlay();\n onClose && onClose(); \n if(!_windowReferenceObject) return;\n _windowReferenceObject.close();\n };\n \n const onClickRelaunch = () => {\n if(!_windowReferenceObject) {\n _windowReferenceObject = initialiseWindow({ url: '' });\n return;\n }\n _windowReferenceObject.focus();\n };\n\n const checkWindowClosed = () => {\n if(this.isCheckoutInitiated) {\n clearInterval(timer);\n return;\n }\n if(_get(_windowReferenceObject, 'closed')) {\n clearInterval(timer);\n handleClose();\n }\n };\n\n const onClickCancel = () => {\n overlay.removeOverlay();\n if(_windowReferenceObject) {\n _windowReferenceObject.close();\n }\n clearInterval(timer);\n onClose && onClose();\n };\n\n // This creates the gray overlay covering the client's screen while payment is in progress.\n overlay.createOverlay({ window, onClickRelaunch, onClickCancel });\n\n // Check the window every 0.5 seconds to see if it has been closed.\n const timer = setInterval(checkWindowClosed, 500);\n },\n\n createCheckout({ paymentRequestUrl }) {\n\n if(!paymentRequestUrl || !window) return;\n\n const env = this.env;\n const onSuccess = this.onSuccess;\n const onFailure = this.onFailure;\n const onCancel = this.onCancel;\n const onClose = this.onClose;\n\n ////////////////////////////////////////////////////////////\n\n const checkWindowClosed = () => {\n if(_get(_windowReferenceObject, 'closed')) {\n clearInterval(timer);\n handleClose();\n }\n };\n\n // Check the window every 0.5 seconds to see if it has been closed.\n const timer = setInterval(checkWindowClosed, 500);\n this.isCheckoutInitiated = true;\n\n ////////////////////////////////////////////////////////////\n\n const openWindow = () => {\n\n // windowReferenceObject may not be defined if browser blocks the pop-up.\n if(!_windowReferenceObject) {\n _windowReferenceObject = initialiseWindow({ url: paymentRequestUrl });\n }\n else {\n _windowReferenceObject.location.replace(paymentRequestUrl);\n }\n\n if(!_windowReferenceObject) {\n return;\n }\n\n // Start listening for incoming messages \n window.addEventListener('message', (e) => onReceiveMessage(e));\n\n const onReceiveMessage = (e) => {\n if(!e) return;\n const transactionId = getMessage(e);\n if(transactionId) {\n this.isCheckoutComplete = true;\n }\n };\n\n const getMessage = (e) => {\n\n const origin = ORIGINS[env];\n\n if(!e || !origin) return;\n\n // Ensure the message is coming from the correct origin.\n if(_get(e, 'origin') !== origin) return;\n\n const event = _get(e, 'data.event');\n const transactionId = _get(e, 'data.transactionId');\n const receiptAutoSent = _get(e, 'data.receiptAutoSent');\n\n if(!event || !transactionId) return;\n \n if(event === EVENTS.SUCCESS) {\n if(receiptAutoSent) {\n // Give 1.5 seconds for the user to see the success page before auto-closing the pop-up.\n setTimeout(() => {\n onSuccess && onSuccess({ transactionId });\n _windowReferenceObject.close();\n }, 1500);\n }\n else {\n onSuccess && onSuccess({ transactionId });\n }\n return transactionId;\n }\n if(event === EVENTS.fAILURE) {\n onFailure && onFailure({ transactionId });\n return transactionId;\n }\n if(event === EVENTS.CANCEL) {\n // Give 1.5 seconds for the user to see the reject page before auto-closing the pop-up.\n setTimeout(() => {\n onCancel && onCancel({ transactionId });\n _windowReferenceObject.close();\n }, 1500);\n return transactionId;\n }\n };\n\n return _windowReferenceObject;\n };\n\n ////////////////////////////////////////////////////////////\n\n // open the pop-up\n openWindow();\n\n ////////////////////////////////////////////////////////////\n\n const handleClose = () => {\n // We need to remove the gray overlay covering the client's screen.\n overlay.removeOverlay();\n // If the pop-up has been closed before a payment action has been taken out, then we\n // need to invoke the onClose callback.\n if(!this.isCheckoutComplete) {\n onClose && onClose();\n }\n if(!_windowReferenceObject) return;\n _windowReferenceObject.close();\n }; \n\n ////////////////////////////////////////////////////////////\n\n const onClickRelaunch = () => {\n if(!_windowReferenceObject) {\n _windowReferenceObject = openWindow();\n return;\n }\n _windowReferenceObject.focus();\n };\n\n const onClickCancel = () => {\n \n if(_windowReferenceObject) {\n _windowReferenceObject.close();\n } else {\n clearInterval(timer);\n }\n \n overlay.removeOverlay();\n onClose && onClose();\n };\n\n // Reset the relaunch and cancel functions on the subheading\n overlay.updateSubheading({ window, onClickRelaunch, onClickCancel });\n\n ////////////////////////////////////////////////////////////\n },\n};\n\nexport default checkoutSDK;\n\n"],"sourceRoot":""}
|
package/umd/main.3a4213e0.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["main.3a4213e0.css"],"names":[],"mappings":"AAAA,mCAAmC,CACnC,iEAAiE","file":"main.3a4213e0.css","sourcesContent":["/*! @medipass/checkout-sdk v2.0.1 */\n@import url(https://fonts.googleapis.com/css?family=Lato:400,700);\n\n\n"]}
|