@dropins/adyen-checkout-extension
Advanced tools
Comparing version 0.1.0-beta2 to 0.1.0-beta3
@@ -1,1 +0,1 @@ | ||
import*as e from"@dropins/tools/event-bus.js";import*as t from"@dropins/tools/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={972:(e,t,s)=>{s.d(t,{Qj:()=>r.Qj,vc:()=>r.vc,gX:()=>a.gX,iE:()=>a.iE,P_:()=>n.P,Q8:()=>o.Q,j2:()=>r.j2,XV:()=>a.XV,gO:()=>a.gO,mv:()=>a.mv,yg:()=>a.yg,$P:()=>i.$});var r=s(397),a=s(322),o=s(633),i=s(230),n=s(795)},214:(t,s,r)=>{t.exports=(e=>{var t={};return r.d(t,e),t})({events:()=>e.events})},752:(e,s,r)=>{e.exports=(e=>{var t={};return r.d(t,e),t})({FetchGraphQL:()=>t.FetchGraphQL})}};import s from"./runtime.js";import*as r from"./31.js";s.C(r);import*as a from"./api.js";s.C(a);var o,i=(o=972,s(s.s=o)),n=i.Qj,p=i.vc,m=i.gX,g=i.iE,h=i.P_,v=i.Q8,c=i.j2,d=i.XV,Q=i.gO,j=i.mv,f=i.yg,l=i.$P;export{n as EnvironmentType,p as config,m as fetchGraphQl,g as getConfig,h as getConfiguration,v as getPaymentMethods,c as initialize,d as removeFetchGraphQlHeader,Q as setEndpoint,j as setFetchGraphQlHeader,f as setFetchGraphQlHeaders,l as setPaymentMethod}; | ||
import*as e from"@dropins/tools/event-bus.js";import*as t from"@dropins/tools/fetch-graphql.js";export const id=335;export const ids=[335];export const modules={972:(e,t,r)=>{r.d(t,{Qj:()=>s.Qj,vc:()=>s.vc,gX:()=>a.gX,iE:()=>a.iE,P_:()=>n.P,Q8:()=>o.Q,ec:()=>i.e,j2:()=>s.j2,XV:()=>a.XV,gO:()=>a.gO,mv:()=>a.mv,yg:()=>a.yg,$P:()=>i.$});var s=r(397),a=r(322),o=r(633),i=r(926),n=r(795)},214:(t,r,s)=>{t.exports=(e=>{var t={};return s.d(t,e),t})({events:()=>e.events})},752:(e,r,s)=>{e.exports=(e=>{var t={};return s.d(t,e),t})({FetchGraphQL:()=>t.FetchGraphQL})}};import r from"./runtime.js";import*as s from"./491.js";r.C(s);import*as a from"./api.js";r.C(a);var o,i=(o=972,r(r.s=o)),n=i.Qj,p=i.vc,m=i.gX,h=i.iE,c=i.P_,g=i.Q8,d=i.ec,v=i.j2,Q=i.XV,j=i.gO,f=i.mv,l=i.yg,P=i.$P;export{n as EnvironmentType,p as config,m as fetchGraphQl,h as getConfig,c as getConfiguration,g as getPaymentMethods,d as handleNetworkError,v as initialize,Q as removeFetchGraphQlHeader,j as setEndpoint,f as setFetchGraphQlHeader,l as setFetchGraphQlHeaders,P as setPaymentMethod}; |
/*! For license information please see AdyenPaymentMethod.js.LICENSE.txt */ | ||
import*as t from"@dropins/tools/event-bus.js";import*as e from"@dropins/tools/fetch-graphql.js";import*as r from"@dropins/tools/preact-compat.js";import*as n from"@dropins/tools/preact-hooks.js";import*as o from"@dropins/tools/preact-jsx-runtime.js";import*as a from"@dropins/tools/preact.js";export const id=265;export const ids=[265];export const modules={189:(t,e,r)=>{r.d(e,{_:()=>j,Z:()=>j});var n=r(419),o=r(397),a=r(795),i=r(633),u=r(230),c=r(454);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||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)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var f=function(t){return t.idle="idle",t.loading="loading",t.ready="ready",t.error="error",t}({});function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return y(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 y(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h=function(t){return t.idle="idle",t.loading="loading",t.ready="ready",t.error="error",t}({}),p=r(517),v=r(724),m=r(188);function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function b(){b=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),u=new O(o||[]);return n(i,"_invoke",{value:E(t,r,u)}),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function d(){}function y(){}function h(){}var p={};c(p,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(C([])));m&&m!==e&&r.call(m,a)&&(p=m);var w=h.prototype=d.prototype=Object.create(p);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(n,a,i,u){var c=l(t[n],t,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==g(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,u)}),(function(t){o("throw",t,i,u)})):e.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return o("throw",t,i,u)}))}u(c.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=j(i,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function j(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function C(t){if(t||""===t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(g(t)+" is not iterable")}return y.prototype=h,n(w,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:y,configurable:!0}),y.displayName=c(h,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,c(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(S.prototype),c(S.prototype,i,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(w),c(w,u,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function w(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){w(a,n,o,i,u,"next",t)}function u(t){w(a,n,o,i,u,"throw",t)}i(void 0)}))}}function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return E(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 E(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var j=(0,v.zB)({LoadingString:"adyen.status.loading",NoClientKeyString:"adyen.error.noClientKey",NoPaymenthMethodsResponseString:"adyen.error.noPaymentMethodsResponse",NoCartIdString:"adyen.error.noCartId",ProcessingErrorString:"adyen.error.processingError"})((function(t){var e=t.cartId,r=void 0===e?"":e,l=t.onPlaceOrder,y=t.handleServerError,v=t.LoadingString,g=t.NoClientKeyString,w=t.NoPaymenthMethodsResponseString,E=t.NoCartIdString,j=t.ProcessingErrorString,L=o.vc.getConfig().environment,A=(0,p.b)(),O=S((0,n.useState)(!1),2),C=O[0],P=O[1],_=S((0,n.useState)(),2),k=_[0],N=_[1],I=S((0,n.useState)(!0),2),M=I[0],T=I[1],F=S((0,n.useState)(),2),G=F[0],K=F[1],q=S((0,n.useState)(),2),U=q[0],R=q[1],B=function(t){var e=t.src,r=t.crossorigin,n=t.integrity,o=s((0,c.useState)(e?f.loading:f.idle),2),a=o[0],i=o[1];return(0,c.useEffect)((function(){if(e){var t=document.querySelector('script[src="'.concat(e,'"]'));if(t)i(t.getAttribute("data-status"));else{(t=document.createElement("script")).src=e,t.async=!0,r&&(t.crossOrigin=r),n&&(t.integrity=n),t.setAttribute("data-status","loading"),document.body.appendChild(t);var o=function(e){t&&t.setAttribute("data-status","load"===e.type?"ready":"error")};t.addEventListener("load",o),t.addEventListener("error",o)}var a=function(t){i("load"===t.type?f.ready:f.error)};return t.addEventListener("load",a),t.addEventListener("error",a),function(){t&&t.removeEventListener("load",a),t&&t.removeEventListener("error",a)}}i(f.idle)}),[e,r,n]),a}({src:"https://checkoutshopper-live.adyen.com/checkoutshopper/sdk/5.49.0/adyen.js",integrity:"sha384-j985BuUlWlw+qDuxum1jpGVb4PVCKUdYIsqncdJn9/BbL9947Foo3/A3fXzKtXKd",crossorigin:"anonymous"}),z=function(t){var e=t.href,r=t.rel,n=t.integrity,o=t.crossorigin,a=d((0,c.useState)(e?h.loading:h.idle),2),i=a[0],u=a[1];return(0,c.useEffect)((function(){if(e){var t=document.querySelector('link[href="'.concat(e,'"]'));if(t)u(t.getAttribute("data-status"));else{(t=document.createElement("link")).href=e,t.rel=r||"stylesheet",n&&(t.integrity=n),o&&(t.crossOrigin=o),t.setAttribute("data-status","loading"),document.head.appendChild(t);var a=function(e){t&&t.setAttribute("data-status","load"===e.type?"ready":"error")};t.addEventListener("load",a),t.addEventListener("error",a)}var i=function(t){u("load"===t.type?h.ready:h.error)};return t.addEventListener("load",i),t.addEventListener("error",i),function(){t&&t.removeEventListener("load",i),t&&t.removeEventListener("error",i)}}u(h.idle)}),[e,r,n,o]),i}({rel:"stylesheet",href:"https://checkoutshopper-live.adyen.com/checkoutshopper/sdk/5.49.0/adyen.css",integrity:"sha384-qnBE7PYKjoczkCnsKztuq5/oFKUqP98X25aVmTb5YpMCci4yqktWu7PTu0pdcW2G",crossorigin:"anonymous"});(0,n.useEffect)((function(){C||(0,a.P)(L).then((function(t){var e=t.clientKey;e?(N(e),P(!0)):R(g)}))}),[g,L,C]),(0,n.useEffect)((function(){r?(0,i.Q)(r).then((function(t){var e;null!==(e=t.data)&&void 0!==e&&e.adyenPaymentMethods.paymentMethodsResponse?K(t.data.adyenPaymentMethods.paymentMethodsResponse):R(w)})):R(E)}),[w,E,r]);var Y=(0,n.useMemo)((function(){return{paymentMethodsResponse:G,clientKey:k,locale:A,environment:L,paymentMethodsConfiguration:{card:{hasHolderName:!0,holderNameRequired:!0}},onSubmit:(t=x(b().mark((function t(e,n){var o,a;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={stateData:JSON.stringify(e.data)},a=e.data.paymentMethod.type,t.prev=2,t.next=5,(0,u.$)(r,a,o);case 5:t.next=11;break;case 7:t.prev=7,t.t0=t.catch(2),y&&y(t.t0),n.setStatus("ready");case 11:case"end":return t.stop()}}),t,null,[[2,7]])}))),function(e,r){return t.apply(this,arguments)})};var t}),[y,j,k,L,A,G,r]);return(0,n.useEffect)((function(){B===f.ready&&z===h.ready&&C&&null!=G&&T(!1)}),[B,G,z,C]),(0,n.useEffect)((function(){var t;if(!M){var e=function(){var e=x(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.AdyenCheckout(Y).then((function(e){t=e.create("dropin",{showPayButton:!1}),l&&l((function(){t.submit()})),0!==document.getElementsByClassName("adyen-container__content").length&&t.mount(".adyen-container__content")}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}return function(){t&&t.unmount()}}),[G,Y,M,l]),(0,m.jsxs)("div",{id:"adyen-container",children:[M&&(0,m.jsx)("div",{class:"adyen-container__loading",children:v}),U&&(0,m.jsx)("div",{class:"adyen-container__errors",children:(0,m.jsx)("div",{class:"adyen-container__error",children:U})}),(0,m.jsx)("div",{class:"adyen-container__content"})]})}))},517:(t,e,r)=>{r.d(e,{b:()=>y,z:()=>d});var n=r(770),o=r(454),a=r(276),i=r(214),u=r(188);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(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 s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i.events.enableLogger(!0);var l={default:r(526)},f=(0,n.createContext)("en_US"),d=function(t){var e=t.children,r=c((0,o.useState)("en_US"),2),n=r[0],s=r[1];return(0,o.useEffect)((function(){var t=i.events.on("locale",(function(t){s(t)}),{eager:!0});return function(){t.off()}}),[]),(0,u.jsx)(a.J,{lang:n,langDefinitions:l,children:(0,u.jsx)(f.Provider,{value:n,children:e})})},y=function(){return(0,o.useContext)(f)}},214:(e,r,n)=>{e.exports=(t=>{var e={};return n.d(e,t),e})({events:()=>t.events})},752:(t,r,n)=>{t.exports=(t=>{var e={};return n.d(e,t),e})({FetchGraphQL:()=>e.FetchGraphQL})},419:(t,e,n)=>{t.exports=(t=>{var e={};return n.d(e,t),e})({createContext:()=>r.createContext,useEffect:()=>r.useEffect,useMemo:()=>r.useMemo,useState:()=>r.useState})},454:(t,e,r)=>{t.exports=(t=>{var e={};return r.d(e,t),e})({useContext:()=>n.useContext,useEffect:()=>n.useEffect,useState:()=>n.useState})},174:(t,e,r)=>{t.exports=(t=>{var e={};return r.d(e,t),e})({Fragment:()=>o.Fragment,jsx:()=>o.jsx,jsxs:()=>o.jsxs})},770:(t,e,r)=>{t.exports=(t=>{var e={};return r.d(e,t),e})({Component:()=>a.Component,Fragment:()=>a.Fragment,cloneElement:()=>a.cloneElement,createContext:()=>a.createContext,h:()=>a.h,options:()=>a.options,render:()=>a.render})},526:t=>{t.exports=JSON.parse('{"adyen":{"status":{"loading":"Loading..."},"error":{"noClientKey":"No client key found. Payment will not load correctly.","noPaymentMethodsResponse":"No payment methods response found. Payment will not load correctly.","noCartId":"No cart id found. Payment will not load correctly.","processingError":"There was a problem processing your payment. Please try again later."}},"testing":{"test":"Test value"}}')}};import i from"../runtime.js";import*as u from"../276.js";i.C(u);import*as c from"../31.js";i.C(c);import*as s from"./AdyenPaymentMethod.js";i.C(s);var l,f=(l=189,i(i.s=l)),d=f._,y=f.Z;export{d as AdyenPaymentMethod,y as default}; | ||
import*as t from"@dropins/tools/event-bus.js";import*as e from"@dropins/tools/fetch-graphql.js";import*as r from"@dropins/tools/preact-compat.js";import*as n from"@dropins/tools/preact-hooks.js";import*as o from"@dropins/tools/preact-jsx-runtime.js";import*as a from"@dropins/tools/preact.js";export const id=265;export const ids=[265];export const modules={189:(t,e,r)=>{r.d(e,{_:()=>j,Z:()=>j});var n=r(419),o=r(397),a=r(795),i=r(633),u=r(926),c=r(454);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||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)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var f=function(t){return t.idle="idle",t.loading="loading",t.ready="ready",t.error="error",t}({});function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return y(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 y(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h=function(t){return t.idle="idle",t.loading="loading",t.ready="ready",t.error="error",t}({}),p=r(517),v=r(724),m=r(188);function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function b(){b=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),u=new O(o||[]);return n(i,"_invoke",{value:E(t,r,u)}),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function d(){}function y(){}function h(){}var p={};c(p,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(C([])));m&&m!==e&&r.call(m,a)&&(p=m);var w=h.prototype=d.prototype=Object.create(p);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(n,a,i,u){var c=l(t[n],t,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==g(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,u)}),(function(t){o("throw",t,i,u)})):e.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return o("throw",t,i,u)}))}u(c.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=j(i,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function j(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function C(t){if(t||""===t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(g(t)+" is not iterable")}return y.prototype=h,n(w,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:y,configurable:!0}),y.displayName=c(h,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,c(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(S.prototype),c(S.prototype,i,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new S(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(w),c(w,u,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function w(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){w(a,n,o,i,u,"next",t)}function u(t){w(a,n,o,i,u,"throw",t)}i(void 0)}))}}function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return E(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 E(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var j=(0,v.zB)({LoadingString:"adyen.status.loading",NoClientKeyString:"adyen.error.noClientKey",NoPaymenthMethodsResponseString:"adyen.error.noPaymentMethodsResponse",NoCartIdString:"adyen.error.noCartId",ProcessingErrorString:"adyen.error.processingError"})((function(t){var e=t.cartId,r=void 0===e?"":e,l=t.onPlaceOrder,y=t.handleServerError,v=t.LoadingString,g=t.NoClientKeyString,w=t.NoPaymenthMethodsResponseString,E=t.NoCartIdString,j=o.vc.getConfig().environment,L=(0,p.b)(),A=S((0,n.useState)(!1),2),O=A[0],C=A[1],_=S((0,n.useState)(),2),P=_[0],k=_[1],N=S((0,n.useState)(!0),2),I=N[0],M=N[1],T=S((0,n.useState)(),2),F=T[0],G=T[1],K=S((0,n.useState)(),2),q=K[0],U=K[1],R=function(t){var e=t.src,r=t.crossorigin,n=t.integrity,o=d((0,c.useState)(e?h.loading:h.idle),2),a=o[0],i=o[1];return(0,c.useEffect)((function(){if(e){var t=document.querySelector('script[src="'.concat(e,'"]'));if(t)i(t.getAttribute("data-status"));else{(t=document.createElement("script")).src=e,t.async=!0,r&&(t.crossOrigin=r),n&&(t.integrity=n),t.setAttribute("data-status","loading"),document.body.appendChild(t);var o=function(e){t&&t.setAttribute("data-status","load"===e.type?"ready":"error")};t.addEventListener("load",o),t.addEventListener("error",o)}var a=function(t){i("load"===t.type?h.ready:h.error)};return t.addEventListener("load",a),t.addEventListener("error",a),function(){t&&t.removeEventListener("load",a),t&&t.removeEventListener("error",a)}}i(h.idle)}),[e,r,n]),a}({src:"https://checkoutshopper-live.adyen.com/checkoutshopper/sdk/5.49.0/adyen.js",integrity:"sha384-j985BuUlWlw+qDuxum1jpGVb4PVCKUdYIsqncdJn9/BbL9947Foo3/A3fXzKtXKd",crossorigin:"anonymous"}),B=function(t){var e=t.href,r=t.rel,n=t.integrity,o=t.crossorigin,a=s((0,c.useState)(e?f.loading:f.idle),2),i=a[0],u=a[1];return(0,c.useEffect)((function(){if(e){var t=document.querySelector('link[href="'.concat(e,'"]'));if(t)u(t.getAttribute("data-status"));else{(t=document.createElement("link")).href=e,t.rel=r||"stylesheet",n&&(t.integrity=n),o&&(t.crossOrigin=o),t.setAttribute("data-status","loading"),document.head.appendChild(t);var a=function(e){t&&t.setAttribute("data-status","load"===e.type?"ready":"error")};t.addEventListener("load",a),t.addEventListener("error",a)}var i=function(t){u("load"===t.type?f.ready:f.error)};return t.addEventListener("load",i),t.addEventListener("error",i),function(){t&&t.removeEventListener("load",i),t&&t.removeEventListener("error",i)}}u(f.idle)}),[e,r,n,o]),i}({rel:"stylesheet",href:"https://checkoutshopper-live.adyen.com/checkoutshopper/sdk/5.49.0/adyen.css",integrity:"sha384-qnBE7PYKjoczkCnsKztuq5/oFKUqP98X25aVmTb5YpMCci4yqktWu7PTu0pdcW2G",crossorigin:"anonymous"});(0,n.useEffect)((function(){O||(0,a.P)(j).then((function(t){var e=t.clientKey;e?(k(e),C(!0)):U(g)}))}),[g,j,O]),(0,n.useEffect)((function(){r?(0,i.Q)(r).then((function(t){var e;null!==(e=t.data)&&void 0!==e&&e.adyenPaymentMethods.paymentMethodsResponse?G(t.data.adyenPaymentMethods.paymentMethodsResponse):U(w)})):U(E)}),[w,E,r]);var z=(0,n.useMemo)((function(){return{paymentMethodsResponse:F,clientKey:P,locale:L,environment:j,paymentMethodsConfiguration:{card:{hasHolderName:!0,holderNameRequired:!0}},onSubmit:(t=x(b().mark((function t(e,n){var o,a;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o={stateData:JSON.stringify(e.data)},a=e.data.paymentMethod.type,t.prev=2,t.next=5,(0,u.$)(r,a,o);case 5:t.next=11;break;case 7:t.prev=7,t.t0=t.catch(2),y&&y(t.t0),n.setStatus("ready");case 11:case"end":return t.stop()}}),t,null,[[2,7]])}))),function(e,r){return t.apply(this,arguments)})};var t}),[y,P,j,L,F,r]);return(0,n.useEffect)((function(){R===h.ready&&B===f.ready&&O&&null!=F&&M(!1)}),[R,F,B,O]),(0,n.useEffect)((function(){var t;if(!I){var e=function(){var e=x(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.AdyenCheckout(z).then((function(e){t=e.create("dropin",{showPayButton:!1}),l&&l((function(){t.submit()})),0!==document.getElementsByClassName("adyen-container__content").length&&t.mount(".adyen-container__content")}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}return function(){t&&t.unmount()}}),[F,z,I,l]),(0,m.jsxs)("div",{id:"adyen-container",children:[I&&(0,m.jsx)("div",{class:"adyen-container__loading",children:v}),q&&(0,m.jsx)("div",{class:"adyen-container__errors",children:(0,m.jsx)("div",{class:"adyen-container__error",children:q})}),(0,m.jsx)("div",{class:"adyen-container__content"})]})}))},517:(t,e,r)=>{r.d(e,{b:()=>y,z:()=>d});var n=r(770),o=r(454),a=r(276),i=r(214),u=r(188);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(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 s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i.events.enableLogger(!0);var l={default:r(526)},f=(0,n.createContext)("en_US"),d=function(t){var e=t.children,r=c((0,o.useState)("en_US"),2),n=r[0],s=r[1];return(0,o.useEffect)((function(){var t=i.events.on("locale",(function(t){s(t)}),{eager:!0});return function(){t.off()}}),[]),(0,u.jsx)(a.J,{lang:n,langDefinitions:l,children:(0,u.jsx)(f.Provider,{value:n,children:e})})},y=function(){return(0,o.useContext)(f)}},214:(e,r,n)=>{e.exports=(t=>{var e={};return n.d(e,t),e})({events:()=>t.events})},752:(t,r,n)=>{t.exports=(t=>{var e={};return n.d(e,t),e})({FetchGraphQL:()=>e.FetchGraphQL})},419:(t,e,n)=>{t.exports=(t=>{var e={};return n.d(e,t),e})({createContext:()=>r.createContext,useEffect:()=>r.useEffect,useMemo:()=>r.useMemo,useState:()=>r.useState})},454:(t,e,r)=>{t.exports=(t=>{var e={};return r.d(e,t),e})({useContext:()=>n.useContext,useEffect:()=>n.useEffect,useState:()=>n.useState})},174:(t,e,r)=>{t.exports=(t=>{var e={};return r.d(e,t),e})({Fragment:()=>o.Fragment,jsx:()=>o.jsx,jsxs:()=>o.jsxs})},770:(t,e,r)=>{t.exports=(t=>{var e={};return r.d(e,t),e})({Component:()=>a.Component,Fragment:()=>a.Fragment,cloneElement:()=>a.cloneElement,createContext:()=>a.createContext,h:()=>a.h,options:()=>a.options,render:()=>a.render})},526:t=>{t.exports=JSON.parse('{"adyen":{"status":{"loading":"Loading..."},"error":{"noClientKey":"No client key found. Payment will not load correctly.","noPaymentMethodsResponse":"No payment methods response found. Payment will not load correctly.","noCartId":"No cart id found. Payment will not load correctly.","processingError":"There was a problem processing your payment. Please try again later."}},"testing":{"test":"Test value"}}')}};import i from"../runtime.js";import*as u from"../276.js";i.C(u);import*as c from"../491.js";i.C(c);import*as s from"./AdyenPaymentMethod.js";i.C(s);var l,f=(l=189,i(i.s=l)),d=f._,y=f.Z;export{d as AdyenPaymentMethod,y as default}; |
@@ -1,1 +0,1 @@ | ||
{"name": "@dropins/adyen-checkout-extension", "version": "0.1.0-beta2", "dependencies": { "@dropins/tools": "0.17.0" } } | ||
{"name": "@dropins/adyen-checkout-extension", "version": "0.1.0-beta3", "dependencies": { "@dropins/tools": "0.17.0" } } |
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
112670
1
2