diff --git a/WalleePaymentSdk.xcframework/ios-arm64/WalleePaymentSdk.framework/WalleePaymentSdk b/WalleePaymentSdk.xcframework/ios-arm64/WalleePaymentSdk.framework/WalleePaymentSdk index d45f45f..bea0048 100755 Binary files a/WalleePaymentSdk.xcframework/ios-arm64/WalleePaymentSdk.framework/WalleePaymentSdk and b/WalleePaymentSdk.xcframework/ios-arm64/WalleePaymentSdk.framework/WalleePaymentSdk differ diff --git a/WalleePaymentSdk.xcframework/ios-arm64/WalleePaymentSdk.framework/main.jsbundle b/WalleePaymentSdk.xcframework/ios-arm64/WalleePaymentSdk.framework/main.jsbundle index 29bfd20..5ce89bb 100644 --- a/WalleePaymentSdk.xcframework/ios-arm64/WalleePaymentSdk.framework/main.jsbundle +++ b/WalleePaymentSdk.xcframework/ios-arm64/WalleePaymentSdk.framework/main.jsbundle @@ -396,7 +396,7 @@ __d(function(g,r,_i,a,m,e,d){var t=this||{};try{!(function(n,i){if("+"!==new n(' __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.AppContextProvider=e.AppContext=void 0;var n=t(r(d[1])),l=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=o(n);if(l&&l.has(t))return l.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=c?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(u,f,s):u[f]=t[f]}u.default=t,l&&l.set(t,u);return u})(r(d[2])),u=r(d[3]);function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(o=function(t){return t?l:n})(t)}var c=(0,l.createContext)({token:void 0,result:void 0,activeToken:void 0,paymentToken:void 0,activeCardBrand:void 0,processUrl:void 0,cancelUrl:void 0,onHandleActiveCardBrand:function(){return null},onHandleToken:function(){return null},onHandleSchema:function(){return null},listOfElementsName:[],listOfElementsType:[],listOfElementsVisibility:[],onHandleElementsName:function(){return null},onHandleSubmitData:function(){return null},isTriggeringDataSend:!1,shouldShowFullScreenLoading:!1,onHandleFullScreenLoading:function(){return null},changeVisibility:function(){return null}});e.AppContext=c;e.AppContextProvider=function(t){var o=t.children,f=c.Provider,s=(0,l.useState)(),p=(0,n.default)(s,2),v=p[0],S=p[1],y=(0,l.useState)(),O=(0,n.default)(y,2),b=O[0],h=O[1],k=(0,l.useState)(),H=(0,n.default)(k,2),T=H[0],C=H[1],E=(0,l.useState)(),P=(0,n.default)(E,2),j=P[0],U=P[1],w=(0,l.useState)(),x=(0,n.default)(w,2),A=x[0],D=x[1],M=(0,l.useState)(),_=(0,n.default)(M,2),F=_[0],B=_[1],L=(0,l.useState)(),N=(0,n.default)(L,2),V=N[0],W=N[1],R=(0,l.useState)(),q=(0,n.default)(R,2),z=q[0],G=q[1],I=(0,l.useState)([]),J=(0,n.default)(I,2),K=J[0],Q=J[1],X=(0,l.useState)([]),Y=(0,n.default)(X,2),Z=Y[0],$=Y[1],ee=(0,l.useState)([]),te=(0,n.default)(ee,2),ne=te[0],re=te[1],ae=(0,l.useState)(!1),le=(0,n.default)(ae,2),ue=le[0],ie=le[1],oe=function(t){return S(t)},ce=function(t){if('Result'===t.type&&C(t),'ActiveToken'===t.type){var n=t;U(n),W(n.processingUrl),G(n.cancelUrl)}if('Form'===t.type){var l=t;D(l),W(l.processingUrl),G(l.cancelUrl)}},de=function(t){return B(t)},fe=function(t,n,l){Q(t),$(n),re(l)},se=(0,l.useCallback)(function(t,n){t.forEach(function(t){ne[K.indexOf(t)]=n})},[K,ne]),pe=(0,l.useMemo)(function(){return{token:v,result:T,activeToken:j,paymentToken:A,activeCardBrand:F,processUrl:V,cancelUrl:z,listOfElementsName:K,listOfElementsType:Z,listOfElementsVisibility:ne,isTriggeringDataSend:b,shouldShowFullScreenLoading:ue,onHandleToken:oe,onHandleSchema:ce,onHandleActiveCardBrand:de,onHandleElementsName:fe,onHandleSubmitData:h,onHandleFullScreenLoading:ie,changeVisibility:se}},[v,T,j,A,F,V,z,K,Z,ne,b,ue,se]);return(0,u.jsx)(f,{value:pe,children:o})}},390,[1,40,163,183]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PluginsContextProvider=e.PluginsContext=void 0;var n=t(r(d[1])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=c(n);if(o&&o.has(t))return o.get(t);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var s=f?Object.getOwnPropertyDescriptor(t,l):null;s&&(s.get||s.set)?Object.defineProperty(u,l,s):u[l]=t[l]}u.default=t,o&&o.set(t,u);return u})(r(d[2])),u=r(d[3]);function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(c=function(t){return t?o:n})(t)}var f=(0,o.createContext)({isWebViewOpen:void 0,sourceUrlWebView:void 0,showBackButtonWebView:void 0,onHandleWebViewOpen:function(){},onHandleSourceUrl:function(){},onShowBackButton:function(){}});e.PluginsContext=f;e.PluginsContextProvider=function(t){var c=t.children,l=f.Provider,s=(0,o.useState)(!1),p=(0,n.default)(s,2),v=p[0],w=p[1],b=(0,o.useState)(!1),O=(0,n.default)(b,2),P=O[0],W=O[1],y=(0,o.useState)(''),h=(0,n.default)(y,2),j=h[0],B=h[1],V=function(t){return w(t)},k=function(t){return B(t)},S=function(t){return W(t)},x=(0,o.useMemo)(function(){return{isWebViewOpen:v,sourceUrlWebView:j,onHandleWebViewOpen:V,onHandleSourceUrl:k,onShowBackButton:S,showBackButtonWebView:P}},[v,j,P]);return(0,u.jsx)(l,{value:x,children:c})}},391,[1,40,163,183]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=f?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(u,c,s):u[c]=t[c]}u.default=t,o&&o.set(t,u);return u})(r(d[1])),o=r(d[2]),u=r(d[3]),f=r(d[4]),c=t(r(d[5])),s=r(d[6]);function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}var p=function(t){var l=t.children,p=t.token,v=(0,n.useContext)(o.AppContext),y=v.onHandleToken,O=v.onHandleSchema,j=(0,f.useSchemaJsonQuery)(p),b=j.isLoading,P=j.data,_=j.isError,h=(0,u.useRequestResponseHandler)().onHandleErrorResponse;return(0,n.useEffect)(function(){y(p)},[]),(0,n.useEffect)(function(){P&&O(P)},[P]),(0,n.useEffect)(function(){_&&h()},[_]),b?(0,s.jsx)(c.default,{}):l};e.default=p},392,[1,163,390,393,426,463,183]); -__d(function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useRequestResponseHandler=void 0;var o=s(r(d[1])),n=r(d[2]),t=r(d[3]),c=s(r(d[4])),u=r(d[5]),E=s(r(d[6]));e.useRequestResponseHandler=function(){var s=(0,u.usePageNavigation)(),l=s.closeApp,f=s.navigateToHomeScreen,R=(0,n.useState)(!1),L=(0,o.default)(R,2),p=L[0],C=L[1],D=(0,n.useState)(void 0),S=(0,o.default)(D,2),I=S[0],v=S[1],A=(0,E.default)().sendPaymentResult,b=(0,t.useWebViewManager)(!1),P=b.onOpenOnUrl,O=b.onOpenCloseWebView,T=b.isWebViewOpen;return(0,n.useEffect)(function(){if(p&&T){var s=setTimeout(function(){l()},300);return function(){clearTimeout(s)}}p&&l()},[p,T]),{onHandleProcessSuccessResponse:function(s){T&&O();var o=s.type,n=s.redirectionUrl,t=s.errors;switch(o){case'REDIRECT':case'PLUGIN':n&&P(n);break;case'RETRY':t&&c.default.show({type:'customToastError',text1:t.join('\n')}),f();break;case'FAILED_VALIDATION':v(t);break;case'SUCCESS':A({code:'COMPLETED'}),C(!0);break;case'FAILURE':default:A({code:'FAILED'}),C(!0)}},onHandleResultSuccessResponse:function(s){var o=s.state,n=s.errorMessage;switch(o){case'CANCELED':A({code:'CANCELED'}),C(!0);break;case'SUCCESSFUL':A({code:'COMPLETED'}),C(!0);break;case'FAILED':case'PENDING':case'PROCESSING':default:A({code:'FAILED',message:n}),C(!0)}},onHandleErrorResponse:function(){A({code:'FAILED'}),C(!0)},requestErrorMessages:I,onProcessWebViewResponse:function(s){var o=s.isFail;s.isSuccess&&(O(),A({code:'COMPLETED'}),C(!0)),o&&(O(),A({code:'FAILED'}),C(!0))}}}},393,[1,40,163,394,395,422,425]); +__d(function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useRequestResponseHandler=void 0;var o=s(r(d[1])),n=r(d[2]),t=r(d[3]),c=s(r(d[4])),u=r(d[5]),E=s(r(d[6]));e.useRequestResponseHandler=function(){var s=(0,u.usePageNavigation)(),l=s.closeApp,f=s.navigateToHomeScreen,R=(0,n.useState)(!1),L=(0,o.default)(R,2),p=L[0],C=L[1],D=(0,n.useState)(void 0),S=(0,o.default)(D,2),I=S[0],v=S[1],A=(0,E.default)().sendPaymentResult,b=(0,t.useWebViewManager)(!1),P=b.onOpenOnUrl,O=b.onOpenCloseWebView,T=b.isWebViewOpen;return(0,n.useEffect)(function(){if(p){var s=setTimeout(function(){l()},100);return function(){clearTimeout(s)}}},[p]),{onHandleProcessSuccessResponse:function(s){T&&O();var o=s.type,n=s.redirectionUrl,t=s.errors;switch(o){case'REDIRECT':case'PLUGIN':n&&P(n);break;case'RETRY':t&&c.default.show({type:'customToastError',text1:t.join('\n')}),f();break;case'FAILED_VALIDATION':v(t);break;case'SUCCESS':A({code:'COMPLETED'}),C(!0);break;case'FAILURE':default:A({code:'FAILED'}),C(!0)}},onHandleResultSuccessResponse:function(s){var o=s.state,n=s.errorMessage;switch(o){case'CANCELED':A({code:'CANCELED'}),C(!0);break;case'SUCCESSFUL':A({code:'COMPLETED'}),C(!0);break;case'FAILED':case'PENDING':case'PROCESSING':default:A({code:'FAILED',message:n}),C(!0)}},onHandleErrorResponse:function(){A({code:'FAILED'}),C(!0)},requestErrorMessages:I,onProcessWebViewResponse:function(s){var o=s.isFail;s.isSuccess&&(O(),A({code:'COMPLETED'}),C(!0)),o&&(O(),A({code:'FAILED'}),C(!0))}}}},393,[1,40,163,394,395,422,425]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useWebViewManager=void 0;var t=n(r(d[1])),u=r(d[2]),o=r(d[3]);e.useWebViewManager=function(n){var s=(0,u.useContext)(o.PluginsContext),l=s.onHandleWebViewOpen,w=s.isWebViewOpen,c=s.sourceUrlWebView,b=s.onHandleSourceUrl,V=s.onShowBackButton,W=s.showBackButtonWebView,f=(0,u.useState)(!1),O=(0,t.default)(f,2),p=O[0],B=O[1],v=(0,u.useState)(''),P=(0,t.default)(v,2),S=P[0],U=P[1];(0,u.useEffect)(function(){B(w||!1),U(c||''),V(n||!1)},[w,c,,n]);return{isWebViewPluginOpen:p,sourceUrlWebViewPlugin:S,onOpenOnUrl:function(n){b(n),l(!0)},onOpenCloseWebView:function(){return l(!p)},showBackButtonWebView:W,isWebViewOpen:w}}},394,[1,40,163,391]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={BaseToast:!0,SuccessToast:!0,ErrorToast:!0,InfoToast:!0};Object.defineProperty(e,"BaseToast",{enumerable:!0,get:function(){return o.BaseToast}}),Object.defineProperty(e,"ErrorToast",{enumerable:!0,get:function(){return s.ErrorToast}}),Object.defineProperty(e,"InfoToast",{enumerable:!0,get:function(){return c.InfoToast}}),Object.defineProperty(e,"SuccessToast",{enumerable:!0,get:function(){return u.SuccessToast}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.Toast}});var n=r(d[0]),o=r(d[1]),u=r(d[2]),s=r(d[3]),c=r(d[4]),f=r(d[5]);Object.keys(f).forEach(function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===f[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return f[n]}}))})},395,[396,414,418,413,417,421]); __d(function(g,_r,i,a,m,e,d){var n=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Toast=b;var r=n(_r(d[1])),u=n(_r(d[2])),t=n(_r(d[3])),o=_r(d[4]),l=_r(d[5]),s=_r(d[6]),f=_r(d[7]),c=["config"],v=t.default.forwardRef(function(n,r){var o=n.config,v=(0,u.default)(n,c),h=(0,s.useToast)({defaultOptions:v}),b=h.show,p=h.hide,w=h.isVisible,j=h.options,_=h.data;return t.default.useImperativeHandle(r,t.default.useCallback(function(){return{show:b,hide:p}},[p,b])),(0,f.jsx)(l.ToastUI,{isVisible:w,options:j,data:_,hide:p,show:b,config:o})}),h=[];function b(n){var r=t.default.useRef(null),u=t.default.useCallback(function(n){var u,t;n?(r.current=n,t=n,h.push({current:t})):(u=r.current,h=h.filter(function(n){return n.current!==u}))},[]);return(0,f.jsx)(o.LoggerProvider,{enableLogs:!1,children:(0,f.jsx)(v,Object.assign({ref:u},n))})}function p(){var n=(0,r.default)(h).reverse().find(function(n){return null!==(null==n?void 0:n.current)});return n?n.current:null}b.show=function(n){var r;null==(r=p())||r.show(n)},b.hide=function(n){var r;null==(r=p())||r.hide(n)}},396,[1,48,94,163,397,400,419,183]); diff --git a/WalleePaymentSdk.xcframework/ios-arm64_x86_64-simulator/WalleePaymentSdk.framework/WalleePaymentSdk b/WalleePaymentSdk.xcframework/ios-arm64_x86_64-simulator/WalleePaymentSdk.framework/WalleePaymentSdk index a4ba3cf..6cedec5 100755 Binary files a/WalleePaymentSdk.xcframework/ios-arm64_x86_64-simulator/WalleePaymentSdk.framework/WalleePaymentSdk and b/WalleePaymentSdk.xcframework/ios-arm64_x86_64-simulator/WalleePaymentSdk.framework/WalleePaymentSdk differ diff --git a/WalleePaymentSdk.xcframework/ios-arm64_x86_64-simulator/WalleePaymentSdk.framework/main.jsbundle b/WalleePaymentSdk.xcframework/ios-arm64_x86_64-simulator/WalleePaymentSdk.framework/main.jsbundle index 29bfd20..5ce89bb 100644 --- a/WalleePaymentSdk.xcframework/ios-arm64_x86_64-simulator/WalleePaymentSdk.framework/main.jsbundle +++ b/WalleePaymentSdk.xcframework/ios-arm64_x86_64-simulator/WalleePaymentSdk.framework/main.jsbundle @@ -396,7 +396,7 @@ __d(function(g,r,_i,a,m,e,d){var t=this||{};try{!(function(n,i){if("+"!==new n(' __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.AppContextProvider=e.AppContext=void 0;var n=t(r(d[1])),l=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=o(n);if(l&&l.has(t))return l.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=c?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(u,f,s):u[f]=t[f]}u.default=t,l&&l.set(t,u);return u})(r(d[2])),u=r(d[3]);function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(o=function(t){return t?l:n})(t)}var c=(0,l.createContext)({token:void 0,result:void 0,activeToken:void 0,paymentToken:void 0,activeCardBrand:void 0,processUrl:void 0,cancelUrl:void 0,onHandleActiveCardBrand:function(){return null},onHandleToken:function(){return null},onHandleSchema:function(){return null},listOfElementsName:[],listOfElementsType:[],listOfElementsVisibility:[],onHandleElementsName:function(){return null},onHandleSubmitData:function(){return null},isTriggeringDataSend:!1,shouldShowFullScreenLoading:!1,onHandleFullScreenLoading:function(){return null},changeVisibility:function(){return null}});e.AppContext=c;e.AppContextProvider=function(t){var o=t.children,f=c.Provider,s=(0,l.useState)(),p=(0,n.default)(s,2),v=p[0],S=p[1],y=(0,l.useState)(),O=(0,n.default)(y,2),b=O[0],h=O[1],k=(0,l.useState)(),H=(0,n.default)(k,2),T=H[0],C=H[1],E=(0,l.useState)(),P=(0,n.default)(E,2),j=P[0],U=P[1],w=(0,l.useState)(),x=(0,n.default)(w,2),A=x[0],D=x[1],M=(0,l.useState)(),_=(0,n.default)(M,2),F=_[0],B=_[1],L=(0,l.useState)(),N=(0,n.default)(L,2),V=N[0],W=N[1],R=(0,l.useState)(),q=(0,n.default)(R,2),z=q[0],G=q[1],I=(0,l.useState)([]),J=(0,n.default)(I,2),K=J[0],Q=J[1],X=(0,l.useState)([]),Y=(0,n.default)(X,2),Z=Y[0],$=Y[1],ee=(0,l.useState)([]),te=(0,n.default)(ee,2),ne=te[0],re=te[1],ae=(0,l.useState)(!1),le=(0,n.default)(ae,2),ue=le[0],ie=le[1],oe=function(t){return S(t)},ce=function(t){if('Result'===t.type&&C(t),'ActiveToken'===t.type){var n=t;U(n),W(n.processingUrl),G(n.cancelUrl)}if('Form'===t.type){var l=t;D(l),W(l.processingUrl),G(l.cancelUrl)}},de=function(t){return B(t)},fe=function(t,n,l){Q(t),$(n),re(l)},se=(0,l.useCallback)(function(t,n){t.forEach(function(t){ne[K.indexOf(t)]=n})},[K,ne]),pe=(0,l.useMemo)(function(){return{token:v,result:T,activeToken:j,paymentToken:A,activeCardBrand:F,processUrl:V,cancelUrl:z,listOfElementsName:K,listOfElementsType:Z,listOfElementsVisibility:ne,isTriggeringDataSend:b,shouldShowFullScreenLoading:ue,onHandleToken:oe,onHandleSchema:ce,onHandleActiveCardBrand:de,onHandleElementsName:fe,onHandleSubmitData:h,onHandleFullScreenLoading:ie,changeVisibility:se}},[v,T,j,A,F,V,z,K,Z,ne,b,ue,se]);return(0,u.jsx)(f,{value:pe,children:o})}},390,[1,40,163,183]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PluginsContextProvider=e.PluginsContext=void 0;var n=t(r(d[1])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=c(n);if(o&&o.has(t))return o.get(t);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var s=f?Object.getOwnPropertyDescriptor(t,l):null;s&&(s.get||s.set)?Object.defineProperty(u,l,s):u[l]=t[l]}u.default=t,o&&o.set(t,u);return u})(r(d[2])),u=r(d[3]);function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(c=function(t){return t?o:n})(t)}var f=(0,o.createContext)({isWebViewOpen:void 0,sourceUrlWebView:void 0,showBackButtonWebView:void 0,onHandleWebViewOpen:function(){},onHandleSourceUrl:function(){},onShowBackButton:function(){}});e.PluginsContext=f;e.PluginsContextProvider=function(t){var c=t.children,l=f.Provider,s=(0,o.useState)(!1),p=(0,n.default)(s,2),v=p[0],w=p[1],b=(0,o.useState)(!1),O=(0,n.default)(b,2),P=O[0],W=O[1],y=(0,o.useState)(''),h=(0,n.default)(y,2),j=h[0],B=h[1],V=function(t){return w(t)},k=function(t){return B(t)},S=function(t){return W(t)},x=(0,o.useMemo)(function(){return{isWebViewOpen:v,sourceUrlWebView:j,onHandleWebViewOpen:V,onHandleSourceUrl:k,onShowBackButton:S,showBackButtonWebView:P}},[v,j,P]);return(0,u.jsx)(l,{value:x,children:c})}},391,[1,40,163,183]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=f?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(u,c,s):u[c]=t[c]}u.default=t,o&&o.set(t,u);return u})(r(d[1])),o=r(d[2]),u=r(d[3]),f=r(d[4]),c=t(r(d[5])),s=r(d[6]);function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}var p=function(t){var l=t.children,p=t.token,v=(0,n.useContext)(o.AppContext),y=v.onHandleToken,O=v.onHandleSchema,j=(0,f.useSchemaJsonQuery)(p),b=j.isLoading,P=j.data,_=j.isError,h=(0,u.useRequestResponseHandler)().onHandleErrorResponse;return(0,n.useEffect)(function(){y(p)},[]),(0,n.useEffect)(function(){P&&O(P)},[P]),(0,n.useEffect)(function(){_&&h()},[_]),b?(0,s.jsx)(c.default,{}):l};e.default=p},392,[1,163,390,393,426,463,183]); -__d(function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useRequestResponseHandler=void 0;var o=s(r(d[1])),n=r(d[2]),t=r(d[3]),c=s(r(d[4])),u=r(d[5]),E=s(r(d[6]));e.useRequestResponseHandler=function(){var s=(0,u.usePageNavigation)(),l=s.closeApp,f=s.navigateToHomeScreen,R=(0,n.useState)(!1),L=(0,o.default)(R,2),p=L[0],C=L[1],D=(0,n.useState)(void 0),S=(0,o.default)(D,2),I=S[0],v=S[1],A=(0,E.default)().sendPaymentResult,b=(0,t.useWebViewManager)(!1),P=b.onOpenOnUrl,O=b.onOpenCloseWebView,T=b.isWebViewOpen;return(0,n.useEffect)(function(){if(p&&T){var s=setTimeout(function(){l()},300);return function(){clearTimeout(s)}}p&&l()},[p,T]),{onHandleProcessSuccessResponse:function(s){T&&O();var o=s.type,n=s.redirectionUrl,t=s.errors;switch(o){case'REDIRECT':case'PLUGIN':n&&P(n);break;case'RETRY':t&&c.default.show({type:'customToastError',text1:t.join('\n')}),f();break;case'FAILED_VALIDATION':v(t);break;case'SUCCESS':A({code:'COMPLETED'}),C(!0);break;case'FAILURE':default:A({code:'FAILED'}),C(!0)}},onHandleResultSuccessResponse:function(s){var o=s.state,n=s.errorMessage;switch(o){case'CANCELED':A({code:'CANCELED'}),C(!0);break;case'SUCCESSFUL':A({code:'COMPLETED'}),C(!0);break;case'FAILED':case'PENDING':case'PROCESSING':default:A({code:'FAILED',message:n}),C(!0)}},onHandleErrorResponse:function(){A({code:'FAILED'}),C(!0)},requestErrorMessages:I,onProcessWebViewResponse:function(s){var o=s.isFail;s.isSuccess&&(O(),A({code:'COMPLETED'}),C(!0)),o&&(O(),A({code:'FAILED'}),C(!0))}}}},393,[1,40,163,394,395,422,425]); +__d(function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useRequestResponseHandler=void 0;var o=s(r(d[1])),n=r(d[2]),t=r(d[3]),c=s(r(d[4])),u=r(d[5]),E=s(r(d[6]));e.useRequestResponseHandler=function(){var s=(0,u.usePageNavigation)(),l=s.closeApp,f=s.navigateToHomeScreen,R=(0,n.useState)(!1),L=(0,o.default)(R,2),p=L[0],C=L[1],D=(0,n.useState)(void 0),S=(0,o.default)(D,2),I=S[0],v=S[1],A=(0,E.default)().sendPaymentResult,b=(0,t.useWebViewManager)(!1),P=b.onOpenOnUrl,O=b.onOpenCloseWebView,T=b.isWebViewOpen;return(0,n.useEffect)(function(){if(p){var s=setTimeout(function(){l()},100);return function(){clearTimeout(s)}}},[p]),{onHandleProcessSuccessResponse:function(s){T&&O();var o=s.type,n=s.redirectionUrl,t=s.errors;switch(o){case'REDIRECT':case'PLUGIN':n&&P(n);break;case'RETRY':t&&c.default.show({type:'customToastError',text1:t.join('\n')}),f();break;case'FAILED_VALIDATION':v(t);break;case'SUCCESS':A({code:'COMPLETED'}),C(!0);break;case'FAILURE':default:A({code:'FAILED'}),C(!0)}},onHandleResultSuccessResponse:function(s){var o=s.state,n=s.errorMessage;switch(o){case'CANCELED':A({code:'CANCELED'}),C(!0);break;case'SUCCESSFUL':A({code:'COMPLETED'}),C(!0);break;case'FAILED':case'PENDING':case'PROCESSING':default:A({code:'FAILED',message:n}),C(!0)}},onHandleErrorResponse:function(){A({code:'FAILED'}),C(!0)},requestErrorMessages:I,onProcessWebViewResponse:function(s){var o=s.isFail;s.isSuccess&&(O(),A({code:'COMPLETED'}),C(!0)),o&&(O(),A({code:'FAILED'}),C(!0))}}}},393,[1,40,163,394,395,422,425]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useWebViewManager=void 0;var t=n(r(d[1])),u=r(d[2]),o=r(d[3]);e.useWebViewManager=function(n){var s=(0,u.useContext)(o.PluginsContext),l=s.onHandleWebViewOpen,w=s.isWebViewOpen,c=s.sourceUrlWebView,b=s.onHandleSourceUrl,V=s.onShowBackButton,W=s.showBackButtonWebView,f=(0,u.useState)(!1),O=(0,t.default)(f,2),p=O[0],B=O[1],v=(0,u.useState)(''),P=(0,t.default)(v,2),S=P[0],U=P[1];(0,u.useEffect)(function(){B(w||!1),U(c||''),V(n||!1)},[w,c,,n]);return{isWebViewPluginOpen:p,sourceUrlWebViewPlugin:S,onOpenOnUrl:function(n){b(n),l(!0)},onOpenCloseWebView:function(){return l(!p)},showBackButtonWebView:W,isWebViewOpen:w}}},394,[1,40,163,391]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={BaseToast:!0,SuccessToast:!0,ErrorToast:!0,InfoToast:!0};Object.defineProperty(e,"BaseToast",{enumerable:!0,get:function(){return o.BaseToast}}),Object.defineProperty(e,"ErrorToast",{enumerable:!0,get:function(){return s.ErrorToast}}),Object.defineProperty(e,"InfoToast",{enumerable:!0,get:function(){return c.InfoToast}}),Object.defineProperty(e,"SuccessToast",{enumerable:!0,get:function(){return u.SuccessToast}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.Toast}});var n=r(d[0]),o=r(d[1]),u=r(d[2]),s=r(d[3]),c=r(d[4]),f=r(d[5]);Object.keys(f).forEach(function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===f[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return f[n]}}))})},395,[396,414,418,413,417,421]); __d(function(g,_r,i,a,m,e,d){var n=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Toast=b;var r=n(_r(d[1])),u=n(_r(d[2])),t=n(_r(d[3])),o=_r(d[4]),l=_r(d[5]),s=_r(d[6]),f=_r(d[7]),c=["config"],v=t.default.forwardRef(function(n,r){var o=n.config,v=(0,u.default)(n,c),h=(0,s.useToast)({defaultOptions:v}),b=h.show,p=h.hide,w=h.isVisible,j=h.options,_=h.data;return t.default.useImperativeHandle(r,t.default.useCallback(function(){return{show:b,hide:p}},[p,b])),(0,f.jsx)(l.ToastUI,{isVisible:w,options:j,data:_,hide:p,show:b,config:o})}),h=[];function b(n){var r=t.default.useRef(null),u=t.default.useCallback(function(n){var u,t;n?(r.current=n,t=n,h.push({current:t})):(u=r.current,h=h.filter(function(n){return n.current!==u}))},[]);return(0,f.jsx)(o.LoggerProvider,{enableLogs:!1,children:(0,f.jsx)(v,Object.assign({ref:u},n))})}function p(){var n=(0,r.default)(h).reverse().find(function(n){return null!==(null==n?void 0:n.current)});return n?n.current:null}b.show=function(n){var r;null==(r=p())||r.show(n)},b.hide=function(n){var r;null==(r=p())||r.hide(n)}},396,[1,48,94,163,397,400,419,183]); diff --git a/walleepaymentsdkbundle.jsbundle b/walleepaymentsdkbundle.jsbundle index 42cba52..18f3942 100644 Binary files a/walleepaymentsdkbundle.jsbundle and b/walleepaymentsdkbundle.jsbundle differ