PageSourceSearch

https://app.yourcoach.health/assets/chunk.4889.c2643273.js

js yourcoach.health collected 2026-09-24 23:10:08 UTC 3,662 bytes, 2 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[4889],{12097:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var a=r(74209),s=r(93285),n=r(69413),c=r(9651),i=r.n(c),o=r(89049),l=r(84056),d=r(42708),h=r(2995),p=r(72892),u=r(67879),w=r.n(u);let m=(0,s.memo)(e=>{let{backButtonText:t,children:r,className:c,contentClassName:u,onBackButtonClick:m,v2:x,withBackButton:g}=e,{t:v}=(0,o.s)(),y=(0,n.Zp)(),b=(0,s.useCallback)(()=>{m?m():y(-1)},[y,m]);return(0,a.jsxs)("section",{className:i()("LogoOnlyLayout",`${w().LogoOnlyLayout}`,x&&w().v2,c),children:[(0,a.jsxs)("div",{className:w().header,children:[(0,a.jsx)(n.N_,{className:w().logoContainer,to:p.h.$buildPath({}),children:(0,a.jsx)(d.g,{size:40})}),(0,a.jsx)("div",{className:w().headerRightPart,children:g?(0,a.jsxs)(h.A,{className:w().backButton,onClick:b,children:[(0,a.jsx)(l.A,{}),(0,a.jsx)("span",{children:t||v("shared:back")})]}):null})]}),(0,a.jsx)("section",{className:i()(w().content,u),children:r})]})})},67879:e=>{e.exports={LogoOnlyLayout:"vx10mZSj",header:"_Eiq84cS",logoContainer:"b1Fb1Raq",backButton:"zwoEnre_",v2:"ImFc8uwJ",content:"W0PvcgUh",headerRightPart:"Lav627L6"}},92905:(e,t,r)=>{"use strict";r.r(t),r.d(t,{connectStripe:()=>b,default:()=>f});var a=r(74209),s=r(93285),n=r(96025),c=r(69413),i=r(89049),o=r(70535),l=r(43495),d=r(5263),h=r(39642),p=r(57404),u=r(39584),w=r(47096),m=r(422),x=r(12097),g=r(72892);let v="connect_stripe",y=/redirect_uri=.*?&/g,b=e=>{let{fromScreen:t}=e;return new Promise(e=>{let r=async t=>{if(t.key===v){let t=await w.I.getItem(v);try{let{result:a}=JSON.parse(t);a&&(await o.Ew.localUpdate({is_provider:!0}),await o.Ew.fetch(),window.removeEventListener("storage",r)),e(a)}catch(t){e(!1)}}};window.addEventListener("storage",r);let a=(0,u.F)(g.h.connectStripe.$buildPath({searchParams:{from:t}}));a?.focus();let s=setInterval(()=>{try{a?.closed&&(clearInterval(s),window.removeEventListener("storage",r),e(!1))}catch(e){}},250)})},f=(0,s.memo)(()=>{let e=new URLSearchParams((0,c.zy)().search),t=e.get("code"),r=e.get("state"),u=e.get("error"),g=e.get("from")??"",[b,f]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{(async()=>{if(u)return l.xE.show({title:i.R.t("shared:message.error")});if(t&&r)try{let e=await w.I.getItem(v),{redirectUri:t}=e.startsWith("{")?JSON.parse(e):{};if(t){let e=`${decodeURIComponent(t)}${window.location.search}`;await fetch(e),f(!0)}w.I.setItem(v,JSON.stringify({result:!0}))}catch(e){l.xE.error(e),p.v.error(e)}else{let e=await l.xE.show({buttons:[{label:i.R.t("shared:no"),onAwaitableClick:e=>e("express")},{label:i.R.t("shared:yes"),onAwaitableClick:e=>e("standard")}],title:i.R.t("web-app:ConnectStripe.existing_stripe_account_question")});p.v.event("stripe_account_type_tap",{result:"express"===e?"no":"yes",screen:g});let t=await o.Ew.getProviderUrl({isExpress:"express"===e}),r=t.match(y),a="";r&&(a=r[0].replace("redirect_uri=","").replace("&","")),w.I.setItem(v,JSON.stringify({providerType:e,redirectUri:a,result:!1}));let s=`redirect_uri=${encodeURIComponent(`${window.location.protocol}//${window.location.host}${window.location.pathname}`)}&`,n=t.replace(y,s);window.location.replace(n)}})()},[]),(0,a.jsxs)(x.A,{v2:!0,children:[(0,a.jsx)(n.m,{title:i.R.t("web-app:ConnectStripe.title")}),(0,a.jsx)("div",{className:"ConnectStripePage",children:b?(0,a.jsxs)(h.S,{style:{alignItems:"center",flex:1,flexDirection:"column",justifyContent:"center"},children:[(0,a.jsx)(d.E,{variant:"h1",children:i.R.t("web-app:ConnectStripe.success_title")}),(0,a.jsx)(d.E,{color:"text3",variant:"h2",children:i.R.t("web-app:ConnectStripe.success_message")})]}):(0,a.jsx)(m.A,{})})]})})}}]);
2//# sourceMappingURL=chunk.4889.c2643273.js.map

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.