1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0})}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5040],{35040:(e,t,n)=>{n.d(t,{JV:()=>h,ag:()=>O});var r,o,a,i=n(53239);!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=function(){return(c=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}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function u(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"==typeof SuppressedError&&SuppressedError;var l="data-react-paypal-script-id",d={DATA_JS_SDK_LIBRARY:"dataJsSdkLibrary",DATA_LIBRARY_VALUE:"react-paypal-js",DATA_NAMESPACE:"dataNamespace",DATA_SDK_INTEGRATION_SOURCE:"dataSdkIntegrationSource"},f="paypal";function p(e){return void 0===e&&(e=f),window[e]}function A(e){var t=e.reactComponentName,n=e.sdkComponentKey,r=e.sdkRequestedComponents,o=void 0===r?"":r,a=e.sdkDataNamespace,i=n.charAt(0).toUpperCase().concat(n.substring(1)),c="Unable to render <".concat(t," /> because window.").concat(void 0===a?f:a,".").concat(i," is undefined."),s="string"==typeof o?o:o.join(",");if(!s.includes(n)){var u=[s,n].filter(Boolean).join();c+="\nTo fix the issue, add '".concat(n,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`<PayPalScriptProvider options={{ components: '".concat(u,"'}}>`.")}return c}function E(e){e[l];var t=s(e,[l+""]);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(t)))}function y(e,t){var n,a,i,s;switch(t.type){case o.LOADING_STATUS:if("object"==typeof t.value)return c(c({},e),{loadingStatus:t.value.state,loadingStatusErrorMessage:t.value.message});return c(c({},e),{loadingStatus:t.value});case o.RESET_OPTIONS:return i=e.options[l],(null==(s=self.document.querySelector("script[".concat(l,'="').concat(i,'"]')))?void 0:s.parentNode)&&s.parentNode.removeChild(s),c(c({},e),{loadingStatus:r.PENDING,options:c(c(((n={})[d.DATA_SDK_INTEGRATION_SOURCE]=d.DATA_LIBRARY_VALUE,n),t.value),((a={})[l]="".concat(E(t.value)),a))});case o.SET_BRAINTREE_INSTANCE:return c(c({},e),{braintreePayPalCheckoutInstance:t.value});default:return e}}var v=(0,i.createContext)(null);function m(){var e=function(e){if("function"==typeof(null==e?void 0:e.dispatch)&&0!==e.dispatch.length)return e;throw Error("usePayPalScriptReducer must be used within a PayPalScriptProvider")}((0,i.useContext)(v));return[c(c({},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 h=function(e){var t,n,r=e.className,o=e.disabled,a=void 0!==o&&o,l=e.children,f=e.forceReRender,E=s(e,["className","disabled","children","forceReRender"]),y="".concat(void 0===r?"":r," ").concat(a?"paypal-buttons-disabled":"").trim(),v=(0,i.useRef)(null),S=(0,i.useRef)(null),N=((t=(0,i.useRef)(new Proxy({},{get:function(e,t,n){return"function"==typeof e[t]?function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e[t].apply(e,n)}:Reflect.get(e,t,n)}}))).current=Object.assign(t.current,E),t.current),P=m()[0],b=P.isResolved,O=P.options,T=(0,i.useState)(null),g=T[0],I=T[1],R=(0,i.useState)(!0),C=R[0],_=R[1],w=(0,i.useState)(null)[1];function D(){null!==S.current&&S.current.close().catch(function(){})}return(null==(n=S.current)?void 0:n.updateProps)&&S.current.updateProps({message:E.message}),(0,i.useEffect)(function(){if(!1===b)return D;var e=p(O.dataNamespace);if(void 0===e||void 0===e.Buttons)return w(function(){throw Error(A({reactComponentName:h.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:O.components,sdkDataNamespace:O[d.DATA_NAMESPACE]}))}),D;try{S.current=e.Buttons(c(c({},N),{onInit:function(e,t){I(t),"function"==typeof E.onInit&&E.onInit(e,t)}}))}catch(e){return w(function(){throw Error("Failed to render <PayPalButtons /> component. Failed to initialize: ".concat(e))})}
1return!1===S.current.isEligible()?_(!1):v.current&&S.current.render(v.current).catch(function(e){null!==v.current&&0!==v.current.children.length&&w(function(){throw Error("Failed to render <PayPalButtons /> component. ".concat(e))})}),D},u(u([b],void 0===f?[]:f,!0),[E.fundingSource],!1)),(0,i.useEffect)(function(){null!==g&&(!0===a?g.disable().catch(function(){}):g.enable().catch(function(){}))},[a,g]),i.createElement(i.Fragment,null,C?i.createElement("div",{ref:v,style:a?{opacity:.38}:{},className:y}):l)};function S(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}h.displayName="PayPalButtons","function"==typeof SuppressedError&&SuppressedError;function N(e,t){if("object"!=typeof e||null===e)throw Error("Expected an options object.");var n=e.environment;if(n&&"production"!==n&&"sandbox"!==n)throw Error('The `environment` option must be either "production" or "sandbox".');if(void 0!==t&&"function"!=typeof t)throw Error("Expected PromisePonyfill to be a function.")}var P=function(e){var t=e.className,n=e.children,r=s(e,["className","children"]),o=m()[0],a=o.isResolved,u=o.options,l=(0,i.useRef)(null),f=(0,i.useState)(!0),E=f[0],y=f[1],v=(0,i.useState)(null)[1],h=function(e){var t=l.current;if(!t||!e.isEligible())return y(!1);t.firstChild&&t.removeChild(t.firstChild),e.render(t).catch(function(e){null!==t&&0!==t.children.length&&v(function(){throw Error("Failed to render <PayPalMarks /> component. ".concat(e))})})};return(0,i.useEffect)(function(){if(!1!==a){var e=p(u[d.DATA_NAMESPACE]);if(void 0===e||void 0===e.Marks)return v(function(){throw Error(A({reactComponentName:P.displayName,sdkComponentKey:"marks",sdkRequestedComponents:u.components,sdkDataNamespace:u[d.DATA_NAMESPACE]}))});h(e.Marks(c({},r)))}},[a,r.fundingSource]),i.createElement(i.Fragment,null,E?i.createElement("div",{ref:l,className:void 0===t?"":t}):n)};P.displayName="PayPalMarks";var b=function(e){var t=e.className,n=e.forceReRender,r=s(e,["className","forceReRender"]),o=m()[0],a=o.isResolved,l=o.options,f=(0,i.useRef)(null),E=(0,i.useRef)(null),y=(0,i.useState)(null)[1];return(0,i.useEffect)(function(){if(!1!==a){var e=p(l[d.DATA_NAMESPACE]);if(void 0===e||void 0===e.Messages)return y(function(){throw Error(A({reactComponentName:b.displayName,sdkComponentKey:"messages",sdkRequestedComponents:l.components,sdkDataNamespace:l[d.DATA_NAMESPACE]}))});E.current=e.Messages(c({},r)),E.current.render(f.current).catch(function(e){null!==f.current&&0!==f.current.children.length&&y(function(){throw Error("Failed to render <PayPalMessages /> component. ".concat(e))})})}},u([a],void 0===n?[]:n,!0)),i.createElement("div",{ref:f,className:void 0===t?"":t})};b.displayName="PayPalMessages";var O=function(e){var t,n=e.options,a=void 0===n?{clientId:"test"}:n,s=e.children,u=e.deferLoading,f=void 0!==u&&u,p=(0,i.useReducer)(y,{options:c(c({},a),((t={})[d.DATA_JS_SDK_LIBRARY]=d.DATA_LIBRARY_VALUE,t[d.DATA_SDK_INTEGRATION_SOURCE]=d.DATA_LIBRARY_VALUE,t[l]="".concat(E(a)),t)),loadingStatus:f?r.INITIAL:r.PENDING}),A=p[0],m=p[1];return(0,i.useEffect)(function(){if(!1===f&&A.loadingStatus===r.INITIAL)return m({type:o.LOADING_STATUS,value:r.PENDING});if(A.loadingStatus===r.PENDING){var e=!0;return(function(e,t){if(void 0===t&&(t=Promise),N(e,t),"undefined"==typeof document)return t.resolve(null);var n,r,o,a,i,c,s,u,l,d,f=(a=e.sdkBaseUrl,i=e.environment,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(e,["sdkBaseUrl","environment"]),s=a||("sandbox"===i?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"),l=(u=Object.keys(c).filter(function(e){return void 0!==c[e]&&null!==c[e]&&""!==c[e]}).reduce(function(e,t){var n=c[t].toString();return"data"===(t=t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()})).substring(0,4)||"crossorigin"===t?e.attributes[t]=n:e.queryParams[t]=n,e},{queryParams:{},attributes:{}})).queryParams,d=u.attributes,l["merchant-id"]&&-1!==l["merchant-id"].indexOf(",")&&(d["data-merchant-id"]=l["merchant-id"],l["merchant-id"]="*"),{url:"".concat(s,"?").concat((r="",Object.keys(n=l).forEach(function(e){0!==r.length&&(r+="&"),r+=e+"="+n[e]}),r)),attributes:d}),p=f.url,A=f.attributes,E=A["data-namespace"]||"paypal",y=(o=E,window[o]);return(A["data-js-sdk-library"]||(A["data-js-sdk-library"]="paypal-js"),function(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(null===n)return null;var r=S(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}(p,A)&&y)?t.resolve(y):(function(e,t){void 0===t&&(t=Promise),N(e,t);var n=e.url,r=e.attributes;if("string"!=typeof n||0===n.length)throw Error("Invalid url.");if(void 0!==r&&"object"!=typeof r)throw Error("Expected attributes to be an object.");return new t(function(e,t){var o,a,i,c,s,u;if("undefined"==typeof document)return e();a=(o={url:n,attributes:r,onSuccess:function(){return e()},onError:function(){return t(Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.')))}}).url,i=o.attributes,c=o.onSuccess,s=o.onError,(u=S(a,i)).onerror=s,u.onload=c,document.head.insertBefore(u,document.head.firstElementChild)})})({url:p,attributes:A},t).then(function(){var e,t=(e=E,window[e]);if(t)return t;throw Error("The window.".concat(E," global variable is not available."))})})(A.options).then(function(){e&&m({type:o.LOADING_STATUS,value:r.RESOLVED})}).catch(function(t){console.error("".concat("Failed to load the PayPal JS SDK script."," ").concat(t)),e&&m({type:o.LOADING_STATUS,value:{state:r.REJECTED,message:String(t)}})}),function(){e=!1}}},[A.options,f,A.loadingStatus]),i.createElement(v.Provider,{value:c(c({},A),{dispatch:m})},s)};function T(){}(0,i.createContext)({cardFieldsForm:null,fields:{},registerField:T,unregisterField:T});var g={IDEAL:"ideal",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"};g.IDEAL,g.BANCONTACT,g.GIROPAY,g.SOFORT,g.EPS,g.MYBANK,g.P24,g.PAYU,g.BLIK,g.TRUSTLY,g.OXXO,g.BOLETO,g.BOLETOBANCARIO,g.WECHATPAY,g.MERCADOPAGO,g.MULTIBANCO,g.SATISPAY,g.PAIDY,g.MAXIMA,g.ZIMPLER}}]);
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.