1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4094],{24094:(e,t,n)=>{n.r(t),n.d(t,{ConnectElementCommonMethodConfig:()=>s,ConnectElementCustomMethodConfig:()=>i,connectElementTagNames:()=>o,loadConnectAndInitialize:()=>h});let o=["account-onboarding","disputes-list","payments","payment-details","payment-disputes","payouts","payouts-list","payout-details","balances","account-management","notification-banner","instant-payouts-promotion","issuing-card","issuing-cards-list","financial-account","financial-account-transactions","documents","tax-registrations","tax-settings","balance-report","payout-reconciliation-report"],s={setOnLoadError:e=>{},setOnLoaderStart:e=>{}},i={"account-onboarding":{setFullTermsOfServiceUrl:e=>{},setRecipientTermsOfServiceUrl:e=>{},setPrivacyPolicyUrl:e=>{},setSkipTermsOfServiceCollection:e=>{},setCollectionOptions:e=>{},setOnExit:e=>{},setOnStepChange:e=>{}},"account-management":{setCollectionOptions:e=>{},setOnSectionOpen:e=>{}},"notification-banner":{setCollectionOptions:e=>{},setOnNotificationsChange:e=>{}},"instant-payouts-promotion":{setOnInstantPayoutsPromotionLoaded:e=>{},setOnInstantPayoutCreated:e=>{}},"issuing-card":{setDefaultCard:e=>{},setCardSwitching:e=>{},setFetchEphemeralKey:e=>{},setShowSpendControls:e=>{}},"issuing-cards-list":{setFetchEphemeralKey:e=>{},setShowSpendControls:e=>{},setIssuingProgram:e=>{}},"financial-account":{setFinancialAccount:e=>{}},"financial-account-transactions":{setFinancialAccount:e=>{}},payments:{setDefaultFilters:e=>{}},"payment-details":{setPayment:e=>{},setOnClose:e=>{}},"payment-disputes":{setPayment:e=>{},setOnDisputesLoaded:e=>{}},"tax-settings":{setHideProductTaxCodeSelector:e=>{},setDisplayHeadOfficeCountries:e=>{},setOnTaxSettingsUpdated:e=>{}},"tax-registrations":{setOnAfterTaxRegistrationAdded:e=>{},setDisplayCountries:e=>{},setOnAfterTaxRegistrationExpired:e=>{}},"payout-details":{setPayout:e=>{},setOnClose:e=>{}},"payout-reconciliation-report":{setOnReportAvailabilityLoaded:e=>{}}},a="loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used",r="https://connect-js.stripe.com/v1.0/connect.js",c=o.reduce((e,t)=>(e[t]=`stripe-connect-${t}`,e),{}),l=null,d=e=>!!(e&&"object"==typeof e&&"init"in e&&"function"==typeof e.init),p=e=>(window.StripeConnect=window.StripeConnect||{},window.StripeConnect.optimizedLoading=!0,{initialize:t=>{var n;let o=null!=(n=t.metaOptions)?n:{};return e.init(Object.assign(Object.assign({},t),{metaOptions:Object.assign(Object.assign({},o),{sdk:!0,sdkOptions:{sdkVersion:"3.4.6"}})}))}}),u=Promise.resolve().then(()=>null!==l?l:l=new Promise((e,t)=>{if("u"<typeof window)return void t("ConnectJS won't load when rendering code in the server - it can only be loaded on a browser. This error is expected when loading ConnectJS in SSR environments, like NextJS. It will have no impact in the UI, however if you wish to avoid it, you can switch to the `pure` version of the connect.js loader: https://github.com/stripe/connect-js#importing-loadconnect-without-side-effects.");if(d(window.StripeConnect)){console.warn(a),e(p(window.StripeConnect));return}try{let n=document.querySelectorAll(`script[src="${r}"]`)[0]||document.querySelectorAll('script[src="https://connect-js.stripe.com/v0.1/connect.js"]')[0]||null;n?console.warn(a):n||(n=(()=>{let e=document.createElement("script");if(e.src=r,!document.head)throw Error("Expected document.head not to be null. Connect.js requires a <head> element.");return document.head.appendChild(e),e})()),n.addEventListener("load",()=>{if(d(window.StripeConnect)){let t=p(window.StripeConnect);e(t)}else t(Error("Connect.js did not load the necessary objects"))}),n.addEventListener("error",()=>{t(Error("Failed to load Connect.js"))})}catch(e){t(e)}})),m=!1;u.catch(e=>{m||console.warn(e)});let h=e=>{var t;let n,o,a;return m=!0,n=(()=>{try{return e.fetchClientSecret()}catch(e){return Promise.reject(e)}})(),o=null!=(t=e.metaOptions)?t:{},a=u.then(t=>t.initialize(Object.assign(Object.assign({},e),{metaOptions:Object.assign(Object.assign({},o),{eagerClientSecretPromise:n})}))),{create:e=>{let t=c[e];t||(t=e);let n=document.createElement(t),o=Object.assign(Object.assign({},e in i?i[e]:{}),s);for(let t in o)n[t]=function(n){a.then(()=>
1{if(!this[`${t}InternalOnly`])throw Error(`Method ${t} is not available in the ${e} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.4.6`);this[`${t}InternalOnly`](n)})};return a.then(t=>{if(!n.isConnected&&!n.setConnector){let e=n.style.display;n.style.display="none",document.body.appendChild(n),document.body.removeChild(n),n.style.display=e}if(!n||!n.setConnector)throw Error(`Element ${e} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`);n.setConnector(t.connect)}),n},update:e=>{a.then(t=>{t.update(e)})},debugInstance:()=>a,logout:()=>a.then(e=>e.logout())}}}}]);
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.