1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7119],{87119:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var r=a(95155),l=a(12115),n=a(36489),o=a(90393),s=a(47789),i=a(98251);function c(e){var t;let{onComplete:a,onError:c}=e,{data:u}=(0,n.useSession)(),d=null==u||null==(t=u.user)?void 0:t.id,[S]=(0,l.useState)(()=>(0,s.eS)({publishableKey:"pk_live_51RlDHWJMzuIrLN6Wp7UfA9ozWz79X9ZHY3dG0jPwmdGO0wllk4ARsoB34uRVmI4SSzh5KMZA2E9OsoexokbSLuHv00komBSnL9",fetchClientSecret:async()=>{var e;let t=await (0,i._7)();if((null==t?void 0:t.status)!=="success"||!(null==(e=t.data)?void 0:e.clientSecret))throw Error("Failed to load Stripe onboarding");return t.data.clientSecret},fonts:[{cssSrc:"https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap"}],appearance:{overlays:"dialog",variables:{fontFamily:'"Instrument Sans", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif'}}}));return(0,r.jsx)(o.MT,{connectInstance:S,children:(0,r.jsx)(o.hw,{onExit:async()=>{try{var e;let t=await (0,i.j4)();(null==t||null==(e=t.data)?void 0:e.canReceivePayments)&&d&&localStorage.setItem("stripeConnected:".concat(d),"true")}catch(e){console.error("Failed to refresh Stripe status:",e)}a()},onLoadError:e=>{var t;let{error:a}=e,r=null!=(t=null==a?void 0:a.message)?t:"Failed to load Stripe onboarding";console.error("Stripe onboarding load error:",r),null==c||c(r)}})})}}}]);
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.