1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[696],{5021:function(e,t,n){n.d(t,{Up:function(){return P},Vv:function(){return L},ch:function(){return N}});var r,o,a,i=n(7294);!function(e){e.INITIAL="initial",e.PENDING="pending",e.REJECTED="rejected",e.RESOLVED="resolved"}(r||(r={})),function(e){e.LOADING_STATUS="setLoadingStatus",e.RESET_OPTIONS="resetOptions",e.SET_BRAINTREE_INSTANCE="braintreeInstance"}(o||(o={})),function(e){e.NUMBER="number",e.CVV="cvv",e.EXPIRATION_DATE="expirationDate",e.EXPIRATION_MONTH="expirationMonth",e.EXPIRATION_YEAR="expirationYear",e.POSTAL_CODE="postalCode"}(a||(a={}));var c="data-react-paypal-script-id",u="data-sdk-integration-source",s="react-paypal-js",l="data-namespace",d="Failed to load the PayPal JS SDK script.",f="3.84.0",p=("https://js.braintreegateway.com/web/".concat(f,"/js/client.min.js"),"https://js.braintreegateway.com/web/".concat(f,"/js/paypal-checkout.min.js"),"paypal"),v=function(){return v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)};function h(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function m(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function y(e){return void 0===e&&(e=p),window[e]}function b(e){var t=e.reactComponentName,n=e.sdkComponentKey,r=e.sdkRequestedComponents,o=void 0===r?"":r,a=e.sdkDataNamespace,i=void 0===a?p:a,c=n.charAt(0).toUpperCase().concat(n.substring(1)),u="Unable to render <".concat(t," /> because window.").concat(i,".").concat(c," is undefined.");if(!o.includes(n)){var s=[o,n].filter(Boolean).join();u+="\nTo fix the issue, add '".concat(n,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`<PayPalScriptProvider options={{ components: '".concat(s,"'}}>`.")}return u}function w(e){return"react-paypal-js-".concat(function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].charCodeAt(0)*n;e[n+1]&&(r+=e[n+1].charCodeAt(0)*(n-1)),t+=String.fromCharCode(97+Math.abs(r)%26)}return t}(JSON.stringify(e)))}function E(e,t){var n;switch(t.type){case o.LOADING_STATUS:return v(v({},e),{loadingStatus:t.value});case o.RESET_OPTIONS:return function(e){var t=self.document.querySelector("script[".concat(c,'="').concat(e,'"]'));(null===t||void 0===t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}(e.options[c]),delete t.value[c],v(v({},e),{loadingStatus:r.PENDING,options:v(v({},t.value),(n={},n[c]="".concat(w(t.value)),n[u]=s,n))});case o.SET_BRAINTREE_INSTANCE:return v(v({},e),{braintreePayPalCheckoutInstance:t.value});default:return e}}var g=(0,i.createContext)(null);function S(e){if("function"===typeof(null===e||void 0===e?void 0:e.dispatch)&&0!==e.dispatch.length)return e;throw new Error("usePayPalScriptReducer must be used within a PayPalScriptProvider")}function P(){var e=S((0,i.useContext)(g));return[v(v({},e),{isInitial:e.loadingStatus===r.INITIAL,isPending:e.loadingStatus===r.PENDING,isResolved:e.loadingStatus===r.RESOLVED,isRejected:e.loadingStatus===r.REJECTED}),e.dispatch]}(0,i.createContext)({});var N=function(e){var t=e.className,n=void 0===t?"":t,r=e.disabled,o=void 0!==r&&r,a=e.children,c=e.forceReRender,u=void 0===c?[]:c,s=h(e,["className","disabled","children","forceReRender"]),d=o?{opacity:.38}:{},f="".concat(n," ").concat(o?"paypal-buttons-disabled":"").trim(),p=(0,i.useRef)(null),w=(0,i.useRef)(null),E=P()[0],g=E.isResolved,S=E.options,C=(0,i.useState)(null),k=C[0],O=C[1],I=(0,i.useState)(!0),R=I[0],A=I[1],j=(0,i.useState)(null)[1];function T(){null!==w.current&&w.current.close().catch((function(){}))}return(0,i.useEffect)((function(){if(!1===g)return T;var e=y(S[l]);if(void 0===e||void 0===e.Buttons)return j((function(){throw new Error(b({reactComponentName:N.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:S.components,sdkDataNamespace:S[l]}))})),T;try{w.current=e.Buttons(v(v({},s),{onInit:function(e,t){O(t),"function"===typeof s.onInit&&s.onInit(e,t)}}))}catch(t){return j((function(){throw new Error("Failed to render <PayPalButtons /> component. Failed to initialize: ".concat(t))}))}return!1===w.current.isEligible()?(A(!1),T):p.current?(w.current.render(p.current).catch((function(e){null!==p.current&&0!==p.current.children.length&&j((function(){throw new Error("Failed to render <PayPalButtons /> component. ".concat(e))}))})),T):T}),m(m([g],u,!0),[s.fundingSource],!1)),(0,i.useEffect)((function(){null!==k&&(!0===o?k.disable().catch((function(){})):k.enable().catch((function(){})))}),[o,k]),i.createElement(i.Fragment,null,R?i.createElement("div",{ref:p,style:d,className:f}):a)};function C(e){var t="https://www.paypal.com/sdk/js";e.sdkBaseURL&&(t=e.sdkBaseURL,delete e.sdkBaseURL),function(e){var t=e["merchant-id"],n=e["data-merchant-id"],r="",o="";Array.isArray(t)?t.length>1?(r="*",o=t.toString()):r=t.toString():"string"===typeof t&&t.length>0?r=t:"string"===typeof n&&n.length>0&&(r="*",o=n);e["merchant-id"]=r,e["data-merchant-id"]=o}(e);var n=Object.keys(e).filter((function(t){return"undefined"!==typeof e[t]&&null!==e[t]&&""!==e[t]})).reduce((function(t,n){var r=e[n].toString();return"data-"===n.substring(0,5)?t.dataAttributes[n]=r:t.queryParams[n]=r,t}),{queryParams:{},dataAttributes:{}}),r=n.queryParams,o=n.dataAttributes;return{url:"".concat(t,"?").concat(k(r)),dataAttributes:o}}function k(e){var t="";return Object.keys(e).forEach((function(n){0!==t.length&&(t+="&"),t+=n+"="+e[n]})),t}function O(e,t){void 0===t&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach((function(e){n.setAttribute(e,t[e]),"data-csp-nonce"===e&&n.setAttribute("nonce",t["data-csp-nonce"])})),n}function I(e,t){if(void 0===t&&(t=A()),T(e,t),"undefined"===typeof window)return t.resolve(null);var n=C(e),r=n.url,o=n.dataAttributes,a=o["data-namespace"]||"paypal",i=j(a);return function(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(null===n)return null;var r=O(e,t),o=n.cloneNode();if(delete o.dataset.uidAuto,Object.keys(o.dataset).length!==Object.keys(r.dataset).length)return null;var a=!0;return Object.keys(o.dataset).forEach((function(e){o.dataset[e]!==r.dataset[e]&&(a=!1)})),a?n:null}(r,o)&&i?t.resolve(i):R({url:r,attributes:o},t).then((function(){var e=j(a);if(e)return e;throw new Error("The window.".concat(a," global variable is not available."))}))}function R(e,t){void 0===t&&(t=A()),T(e,t);var n=e.url,r=e.attributes;if("string"!==typeof n||0===n.length)throw new Error("Invalid url.");if("undefined"!==typeof r&&"object"!==typeof r)throw new Error("Expected attributes to be an object.");return new t((function(e,t){if("undefined"===typeof window)return e();!function(e){var t=e.url,n=e.attributes,r=e.onSuccess,o=e.onError,a=O
1(t,n);a.onerror=o,a.onload=r,document.head.insertBefore(a,document.head.firstElementChild)}({url:n,attributes:r,onSuccess:function(){return e()},onError:function(){var e=new Error('The script "'.concat(n,'" failed to load.'));return window.fetch?fetch(n).then((function(n){return 200===n.status&&t(e),n.text()})).then((function(e){var n=function(e){var t=e.split("/* Original Error:")[1];return t?t.replace(/\n/g,"").replace("*/","").trim():e}(e);t(new Error(n))})).catch((function(e){t(e)})):t(e)}})}))}function A(){if("undefined"===typeof Promise)throw new Error("Promise is undefined. To resolve the issue, use a Promise polyfill.");return Promise}function j(e){return window[e]}function T(e,t){if("object"!==typeof e||null===e)throw new Error("Expected an options object.");if("undefined"!==typeof t&&"function"!==typeof t)throw new Error("Expected PromisePonyfill to be a function.")}N.displayName="PayPalButtons";var x=function(e){var t=e.className,n=void 0===t?"":t,r=e.children,o=h(e,["className","children"]),a=P()[0],c=a.isResolved,u=a.options,s=(0,i.useRef)(null),d=(0,i.useState)(!0),f=d[0],p=d[1],m=(0,i.useState)(null)[1];return(0,i.useEffect)((function(){if(!1!==c){var e=y(u[l]);if(void 0===e||void 0===e.Marks)return m((function(){throw new Error(b({reactComponentName:x.displayName,sdkComponentKey:"marks",sdkRequestedComponents:u.components,sdkDataNamespace:u[l]}))}));!function(e){var t=s.current;if(!t||!e.isEligible())return p(!1);t.firstChild&&t.removeChild(t.firstChild),e.render(t).catch((function(e){null!==t&&0!==t.children.length&&m((function(){throw new Error("Failed to render <PayPalMarks /> component. ".concat(e))}))}))}(e.Marks(v({},o)))}}),[c,o.fundingSource]),i.createElement(i.Fragment,null,f?i.createElement("div",{ref:s,className:n}):r)};x.displayName="PayPalMarks";var _=function(e){var t=e.className,n=void 0===t?"":t,r=e.forceReRender,o=void 0===r?[]:r,a=h(e,["className","forceReRender"]),c=P()[0],u=c.isResolved,s=c.options,d=(0,i.useRef)(null),f=(0,i.useRef)(null),p=(0,i.useState)(null)[1];return(0,i.useEffect)((function(){if(!1!==u){var e=y(s[l]);if(void 0===e||void 0===e.Messages)return p((function(){throw new Error(b({reactComponentName:_.displayName,sdkComponentKey:"messages",sdkRequestedComponents:s.components,sdkDataNamespace:s[l]}))}));f.current=e.Messages(v({},a)),f.current.render(d.current).catch((function(e){null!==d.current&&0!==d.current.children.length&&p((function(){throw new Error("Failed to render <PayPalMessages /> component. ".concat(e))}))}))}}),m([u],o,!0)),i.createElement("div",{ref:d,className:n})};_.displayName="PayPalMessages";var L=function(e){var t,n=e.options,a=void 0===n?{"client-id":"test"}:n,l=e.children,f=e.deferLoading,p=void 0!==f&&f,h=(0,i.useReducer)(E,{options:v(v({},a),(t={},t[c]="".concat(w(a)),t[u]=s,t)),loadingStatus:p?r.INITIAL:r.PENDING}),m=h[0],y=h[1];return(0,i.useEffect)((function(){if(!1===p&&m.loadingStatus===r.INITIAL)return y({type:o.LOADING_STATUS,value:r.PENDING});if(m.loadingStatus===r.PENDING){var e=!0;return I(m.options).then((function(){e&&y({type:o.LOADING_STATUS,value:r.RESOLVED})})).catch((function(t){console.error("".concat(d," ").concat(t)),e&&y({type:o.LOADING_STATUS,value:r.REJECTED})})),function(){e=!1}}}),[m.options,p,m.loadingStatus]),i.createElement(g.Provider,{value:v(v({},m),{dispatch:y})},l)}},7237:function(e,t,n){n.d(t,{Zv:function(){return d},iA:function(){return l}});n(7294);var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(t){a(t)}}function c(e){try{u(r.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}u((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(u){c=[6,u],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}var i=1;function c(e){return"number"===typeof e}function u(e){var t=e.maxAttempt,n=void 0===t?3:t,r=e.interval,s=void 0===r?1:r;return o(this,void 0,void 0,(function(){return a(this,(function(e){return n=c(n)?Math.max(1,n):3,s=c(s)?Math.max(1,s):1,[2,new Promise((function(e,t){var r=document.createElement("script");
1r.src="https://checkout.flutterwave.com/v3.js",r.async=!0;var o=function(){r.removeEventListener("load",o),r.removeEventListener("error",a),e()},a=function(){document.body.removeChild(r),console.log("Flutterwave script download failed. Attempt: "+i),i<n?(++i,setTimeout((function(){return u({maxAttempt:n,interval:s}).then(e).catch(t)}),1e3*s)):t(new Error("Failed to load payment modal. Check your internet connection and retry later."))};r.addEventListener("load",o),r.addEventListener("error",a),document.body.appendChild(r)}))]}))}))}var s=!1;function l(e){return function(t){var n,i,c=t.callback,l=t.onClose;return o(this,void 0,void 0,(function(){var t,d=this;return a(this,(function(f){switch(f.label){case 0:return s?[2]:window.FlutterwaveCheckout?[3,2]:(s=!0,[4,u(r({},e.retry))]);case 1:f.sent(),s=!1,f.label=2;case 2:return t=r(r({},e),{amount:null!==(n=e.amount)&&void 0!==n?n:0,callback:function(t){return o(d,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return"successful"!==t.status?[3,2]:(c(t),[4,fetch("https://cors-anywhere.herokuapp.com/https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({publicKey:e.public_key,language:"Flutterwave-React-v3",version:"1.0.7",title:(null===e||void 0===e?void 0:e.payment_options.split(",").length)>1?"Initiate-Charge-Multiple":"Initiate-Charge-"+(null===e||void 0===e?void 0:e.payment_options),message:"15s"})})]);case 1:return r.sent(),[3,4];case 2:return c(t),[4,fetch("https://cors-anywhere.herokuapp.com/https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({publicKey:null!==(n=e.public_key)&&void 0!==n?n:"",language:"Flutterwave-React-v3",version:"1.0.7",title:(null===e||void 0===e?void 0:e.payment_options.split(",").length)>1?"Initiate-Charge-Multiple-error":"Initiate-Charge-"+(null===e||void 0===e?void 0:e.payment_options)+"-error",message:"15s"})})];case 3:r.sent(),r.label=4;case 4:return[2]}}
1))}))},onclose:l,payment_options:null!==(i=null===e||void 0===e?void 0:e.payment_options)&&void 0!==i?i:"card, ussd, mobilemoney"}),window.FlutterwaveCheckout(t),[2]}}))}))}}function d(){document.getElementsByName("checkout").forEach((function(e){e.setAttribute("style","position:fixed;top:0;left:0;z-index:-1;border:none;opacity:0;pointer-events:none;width:100%;height:100%;"),e.setAttribute("id","flwpugpaidid"),e.setAttribute("src","https://checkout.flutterwave.com/?"),document.body.style.overflow=""}))}},591:function(e,t,n){n.d(t,{NL:function(){return a}});var r=n(7294),o=[];function a(e){var t=function(){var e="https://js.paystack.co/v1/inline.js",t=(0,r.useState)({loaded:!1,error:!1}),n=t[0],a=t[1];return(0,r.useEffect)((function(){if(!o.includes(e)){o.push(e);var t=document.createElement("script");t.src=e,t.async=!0;var n=function(){a({loaded:!0,error:!1})},r=function(){var n=o.indexOf(e);n>=0&&o.splice(n,1),t.remove(),a({loaded:!0,error:!0})};return t.addEventListener("load",n),t.addEventListener("complete",n),t.addEventListener("error",r),document.body.appendChild(t),function(){t.removeEventListener("load",n),t.removeEventListener("error",r)}}a({loaded:!0,error:!1})}),[e]),[n.loaded,n.error]}(),n=t[0],a=t[1],i=e.publicKey,c=e.firstname,u=e.lastname,s=e.phone,l=e.email,d=e.amount,f=e.reference,p=e.metadata,v=void 0===p?{}:p,h=e.currency,m=void 0===h?"NGN":h,y=e.channels,b=e.label,w=void 0===b?"":b,E=e.plan,g=void 0===E?"":E,S=e.quantity,P=void 0===S?"":S,N=e.subaccount,C=void 0===N?"":N,k=e.transaction_charge,O=void 0===k?0:k,I=e.bearer,R=void 0===I?"account":I,A=e.split,j=e.split_code;return(0,r.useEffect)((function(){if(a)throw new Error("Unable to load paystack inline script")}),[a]),function(t,r){if(a)throw new Error("Unable to load paystack inline script");n&&function(e){var t=window.PaystackPop&&window.PaystackPop.setup(e);t&&t.openIframe()}({callback:t||function(){return null},onClose:r||function(){return null},key:i,ref:f,email:l,firstname:c,lastname:u,phone:s,amount:d,currency:m,plan:g,quantity:P,"data-custom-button":e["data-custom-button"]||"",channels:y,subaccount:C,transaction_charge:O,bearer:R,label:w,metadata:v,split:A,split_code:j})}}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var u=(0,r.createContext)({initializePayment:function(){return null},onSuccess:function(){return null},onClose:function(){return null}}),s=function(e){var t=e.children,n=e.onSuccess,o=e.onClose,i=a(c(e,["children","onSuccess","onClose"]));return r.createElement(u.Provider,{value:{initializePayment:i,onSuccess:n,onClose:o}},t)},l=function(e){var t=e.children,n=e.ref,o=(0,r.useContext)(u),a=o.initializePayment,i=o.onSuccess,c=o.onClose;return t({initializePayment:function(){return a(i,c)},ref:n})};(0,r.forwardRef)((function(e,t){var n=e.children,o=e.onSuccess,a=e.onClose,u=c(e,["children","onSuccess","onClose"]),d=o||function(){return null},f=a||function(){return null};return r.createElement(s,i({},u,{onSuccess:d,onClose:f}),r.createElement(l,{ref:t},n))}))},9637:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(9474),o=n(3375),a=n(3128),c=n(1566);function u(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,c.Z)(e,i)||(0,a.Z)()}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.