PageSourceSearch

https://talkhouse.com/_next/static/chunks/8528-80a344383435a637.js

js talkhouse.com collected 2026-09-24 17:10:02 UTC 17,509 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8528],{4241:(e,t,n)=>{"use strict";n.d(t,{c:()=>m});var r,o="https://js.stripe.com/v3",c=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,u=function(){for(var e=document.querySelectorAll('script[src^="'.concat(o,'"]')),t=0;t<e.length;t++){var n=e[t];if(c.test(n.src))return n}return null},i=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(o).concat(t);var r=document.head||document.body;if(!r)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},a=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"5.2.0",startTime:t})},s=null,l=null,p=null,f=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return a(r,n),r},d=!1,h=function(){return r?r:r=(null!==s?s:(s=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document)return void e(null);if(window.Stripe,window.Stripe)return void e(window.Stripe);try{var n,r=u();r?r&&null!==p&&null!==l&&(r.removeEventListener("load",p),r.removeEventListener("error",l),null==(n=r.parentNode)||n.removeChild(r),r=i(null)):r=i(null),p=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},l=function(){t(Error("Failed to load Stripe.js"))},r.addEventListener("load",p),r.addEventListener("error",l)}catch(e){t(e);return}})).catch(function(e){return s=null,Promise.reject(e)})).catch(function(e){return r=null,Promise.reject(e)})};Promise.resolve().then(function(){return h()}).catch(function(e){d||console.warn(e)});var m=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];d=!0;var r=Date.now();return h().then(function(e){return f(e,t,r)})}},61902:function(e,t,n){(function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=o){var c=[],u=!0,i=!1;try{for(o=o.call(e);!(u=(n=o.next()).done)&&(c.push(n.value),!t||c.length!==t);u=!0);}catch(e){i=!0,r=e}finally{try{u||null==o.return||o.return()}finally{if(i)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a,s,l,p,f,d={exports:{}};d.exports=(function(){if(f)return p;f=1;var e=l?s:(l=1,s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,p=function(){function r(t,n,r,o,c,u){if(u!==e){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function o(){return r}r.isRequired=r;var c={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return c.PropTypes=c,c}})()();
1var h=(a=d.exports)&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a,m=function(e,n,r){var o=!!r,c=t.useRef(r);t.useEffect(function(){c.current=r},[r]),t.useEffect(function(){if(!o||!e)return function(){};var t=function(){c.current&&c.current.apply(c,arguments)};return e.on(n,t),function(){e.off(n,t)}},[o,n,e,c])},y=function(e){var n=t.useRef(e);return t.useEffect(function(){n.current=e},[e]),n.current},v=function(e){return null!==e&&"object"===o(e)},g="[object Object]",C=function e(t,n){if(!v(t)||!v(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===g;if(o!==(Object.prototype.toString.call(n)===g))return!1;if(!o&&!r)return t===n;var c=Object.keys(t),u=Object.keys(n);if(c.length!==u.length)return!1;for(var i={},a=0;a<c.length;a+=1)i[c[a]]=!0;for(var s=0;s<u.length;s+=1)i[u[s]]=!0;var l=Object.keys(i);return l.length===c.length&&l.every(function(r){return e(t[r],n[r])})},E=function(e,t,n){return v(e)?Object.keys(e).reduce(function(o,u){var i=!v(t)||!C(e[u],t[u]);
1return n.includes(u)?(i&&console.warn("Unsupported prop change: options.".concat(u," is not a mutable property.")),o):i?r(r({},o||{}),{},c({},u,e[u])):o},null):null},b="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;if(null===e||v(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;if(v(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return k(e,t)})};var n=k(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},w=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.1.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.1.0",url:"https://stripe.com/docs/stripe-js/react"}))},P=t.createContext(null);P.displayName="ElementsContext";var j=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},O=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo(function(){return S(n)},[n]),i=u(t.useState(function(){return{stripe:"sync"===c.tag?c.stripe:null,elements:"sync"===c.tag?c.stripe.elements(r):null}}),2),a=i[0],s=i[1];t.useEffect(function(){var e=!0,t=function(e){s(function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}})};return"async"!==c.tag||a.stripe?"sync"!==c.tag||a.stripe||t(c.stripe):c.stripePromise.then(function(n){n&&e&&t(n)}),function(){e=!1}},[c,a,r]);var l=y(n);t.useEffect(function(){null!==l&&l!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[l,n]);var p=y(r);return t.useEffect(function(){if(a.elements){var e=E(r,p,["clientSecret","fonts"]);e&&a.elements.update(e)}},[r,p,a.elements]),t.useEffect(function(){w(a.stripe)},[a.stripe]),t.createElement(P.Provider,{value:a},o)};O.propTypes={stripe:h.any,options:h.object};var x=function(e){return j(t.useContext(P),e)},A=function(e){return(0,e.children)(x("mounts <ElementsConsumer>"))};A.propTypes={children:h.func.isRequired};var R=["on","session"],N=t.createContext(null);N.displayName="CheckoutSdkContext";var _=function(e,t){if(!e)throw Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},I=t.createContext(null);I.displayName="CheckoutContext";var L=function(e,t){if(!e)return null;e.on,e.session;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,R);return t?r(r({},n),t):r(r({},n),e.session())},T=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo(function(){return S(n,"Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},[n]),i=u(t.useState(null),2),a=i[0],s=i[1],l=u(t.useState(function(){return{stripe:"sync"===c.tag?c.stripe:null,checkoutSdk:null}}),2),p=l[0],f=l[1],d=function(e,t){f(function(n){return n.stripe&&n.checkoutSdk?n:{stripe:e,checkoutSdk:t}})},h=t.useRef(!1);t.useEffect(function(){var e=!0;return"async"!==c.tag||p.stripe?"sync"===c.tag&&c.stripe&&!h.current&&(h.current=!0,c.str
1ipe.initCheckout(r).then(function(e){e&&(d(c.stripe,e),e.on("change",s))})):c.stripePromise.then(function(t){t&&e&&!h.current&&(h.current=!0,t.initCheckout(r).then(function(e){e&&(d(t,e),e.on("change",s))}))}),function(){e=!1}},[c,p,r,s]);var m=y(n);t.useEffect(function(){null!==m&&m!==n&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")},[m,n]);var g=y(r);t.useEffect(function(){if(p.checkoutSdk){!r.clientSecret||v(g)||C(r.clientSecret,g.clientSecret)||console.warn("Unsupported prop change: options.clientSecret is not a mutable property.");var e,t,n=null==g||null==(e=g.elementsOptions)?void 0:e.appearance,o=null==r||null==(t=r.elementsOptions)?void 0:t.appearance;o&&!C(o,n)&&p.checkoutSdk.changeAppearance(o)}},[r,g,p.checkoutSdk]),t.useEffect(function(){w(p.stripe)},[p.stripe]);var E=t.useMemo(function(){return L(p.checkoutSdk,a)},[p.checkoutSdk,a]);return p.checkoutSdk?t.createElement(N.Provider,{value:p},t.createElement(I.Provider,{value:E},o)):null};T.propTypes={stripe:h.any,options:h.shape({clientSecret:h.string.isRequired,elementsOptions:h.object}).isRequired};var U=function(e){var n=t.useContext(N),r=t.useContext(P);if(n&&r)throw Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return n?_(n,e):j(r,e)},B=function(e,n){var r="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),o=n?function(e){U("mounts <".concat(r,">"));var n=e.id,o=e.className;return t.createElement("div",{id:n,className:o})}:function(n){var o,c=n.id,i=n.className,a=n.options,s=void 0===a?{}:a,l=n.onBlur,p=n.onFocus,f=n.onReady,d=n.onChange,h=n.onEscape,v=n.onClick,g=n.onLoadError,C=n.onLoaderStart,b=n.onNetworksChange,k=n.onConfirm,S=n.onCancel,w=n.onShippingAddressChange,P=n.onShippingRateChange,j=U("mounts <".concat(r,">")),O="elements"in j?j.elements:null,x="checkoutSdk"in j?j.checkoutSdk:null,A=u(t.useState(null),2),R=A[0],N=A[1],_=t.useRef(null),I=t.useRef(null);m(R,"blur",l),m(R,"focus",p),m(R,"escape",h),m(R,"click",v),m(R,"loaderror",g),m(R,"loaderstart",C),m(R,"networkschange",b),m(R,"confirm",k),m(R,"cancel",S),m(R,"shippingaddresschange",w),m(R,"shippingratechange",P),m(R,"change",d),f&&(o="expressCheckout"===e?f:function(){f(R)}),m(R,"ready",o),t.useLayoutEffect(function(){if(null===_.current&&null!==I.current&&(O||x)){var t=null;x?t=x.createElement(e,s):O&&(t=O.create(e,s)),_.current=t,N(t),t&&t.mount(I.current)}},[O,x,s]);var L=y(s);return t.useEffect(function(){if(_.current){var e=E(s,L,["paymentRequest"]);e&&"update"in _.current&&_.current.update(e)}},[s,L]),t.useLayoutEffect(function(){return function(){if(_.current&&"function"==typeof _.current.destroy)try{_.current.destroy(),_.current=null}catch(e){}}},[]),t.createElement("div",{id:c,className:i,ref:I})};return o.propTypes={id:h.string,className:h.string,onChange:h.func,onBlur:h.func,onFocus:h.func,onReady:h.func,onEscape:h.func,onClick:h.func,onLoadError:h.func,onLoaderStart:h.func,onNetworksChange:h.func,onConfirm:h.func,onCancel:h.func,onShippingAddressChange:h.func,onShippingRateChange:h.func,options:h.object},o.displayName=r,o.__elementType=e,o},M="undefined"==typeof window,Y=t.createContext(null);Y.displayName="EmbeddedCheckoutProviderContext";var D=function(){var e=t.useContext(Y);if(!e)throw Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},W=M?function(e){var n=e.id,r=e.className;return D(),t.createElement("div",{id:n,className:r})}:function(e){var n=e.id,r=e.className,o=D().embeddedCheckout,c=t.useRef(!1),u=t.useRef(null);return t.useLayoutEffect(function(){return!c.current&&o&&null!==u.current&&(o.mount(u.current),c.current=!0),function(){if(c.current&&o)try{o.unmount(),c.current=!1}catch(e){}}},[o]),t.createElement("div",{ref:u,id:n,className:r})},q=B("auBankAccount",M),F=B("card",M),$=B("cardNumber",M),H=B("cardExpiry",M),V=B("cardCvc",M),z=B("fpxBank",M),G=B("iban",M),J=B("idealBank",M),K=B("p24Bank",M),Q=B("epsBank",M),X=B("payment",M),Z=B("expressCheckout",M),ee=B("currencySelector",M),et=B("paymentRequestButton",M),en=B("linkAuthentication",M),er=B("address",M),eo=B("shippingAddress",M),ec=B("paymentMethodMessaging",M),eu=B("affirmMessage",M),ei=B("afterpayClearpayMessage",M);e.AddressElement=er,e.AffirmMessageElement=eu,e.AfterpayClearpayMessageElement=ei,e.AuBankAccountElement=q,e.CardCvcElement=V,e.CardElement=F,e.CardExpiryElement=H,e.CardNumberElement=$,e.CheckoutProvider=T,e.CurrencySelectorElement=ee,e.Elements=O,e.ElementsConsumer=A,e.EmbeddedCheckout=W,e.EmbeddedCheckoutProvider=function(e){var n=e.stripe,r=e.options,o=e.children,c=t.useMemo(function(){return S(n,"Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},[n]),i=t.useRef(null),a=t.useRef(null),s=u(t.useState({embeddedCheckout:null}),2),l=s[0],p=s[1];t.useEffect(function(){if(!a.current&&!i.current){var e=function(e){a.current||i.current||(a.current=e,i.current=a.current.initEmbeddedCheckout(r).then(function(e){p({embeddedCheckout:e})}))};"async"===c.tag&&!a.current&&(r.clientSecret||r.fetchClientSecret)?c.stripePromise.then(function(t){t&&e(t)}):"sync"===c.tag&&!a.current&&(r.clientSecret||r.fetchClientSecret)&&e(c.stripe)}},[c,r,l,a]),t.useEffect(function(){return function(){l.embeddedCheckout?(i.current=null,l.embeddedCheckout.destroy()):i.current&&i.current.then(function(){i.current=null,l.embeddedCheckout&&l.embeddedCheckout.destroy()})}},[l.embeddedCheckout]),t.useEffect(function(){w(a)},[a]);var f=y(n);t.useEffect(function(){null!==f&&f!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[f,n]);var d=y(r);return t.useEffect(function(){if(null!=d){if(null==r)return void console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.");void 0===r.clientSecret&&void 0===r.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=d.clientSecret&&r.clientSecret!==d.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=d.fetchClientSecret&&r.fetchClientSecret!==d.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=d.onComplete&&r.onComplete!==d.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=d.onShippingDetailsChange&&r.onShippingDetailsChange!==d.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=d.onLineItemsChange&&r.onLineItemsChange!==d.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")}},[d,r]),t.createElement(Y.Provider,{value:l},o)},e.EpsBankElement=Q,e.ExpressCheckoutElement=Z,e.FpxBankElement=z,e.IbanElement=G,e.IdealBankElement=J,e.LinkAuthenticationElement=en,e.P24BankElement=K,e.PaymentElement=X,e.PaymentMethodMessagingElement=ec,e.PaymentRequestButtonElement=et,e.ShippingAddressElement=eo,e.useCheckout=function(){_(t.useContext(N),"calls useCheckout()");var e=t.useContext(I);if(!e)throw Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider.");return e},e.useElements=function(){return x("calls useElements()").elements},e.useStripe=function(){return U("calls useStripe()").stripe}})(t,n(14232))}}]);

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.