PageSourceSearch

https://www.etecplus.ai/_next/static/chunks/8478-fb2522d30f5f3b09.js

js etecplus.ai collected 2026-10-05 14:25:40 UTC 8,858 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8478],{48478:(e,r,t)=>{t.d(r,{ConnectAttentionBanner:()=>C,ConnectEmbedded:()=>w,dC:()=>S,e0:()=>j,c0:()=>x});var o=t(95155),a=t(12115),n=t(7370),s=t(84980),d=t(13545),i=t(89239),l=t(86846),c=t(27529),u=t(40980),m=t(10241);let f={card:"--card",foreground:"--foreground",mutedForeground:"--muted-foreground",muted:"--muted",border:"--border",primary:"--primary",primaryForeground:"--primary-foreground",secondary:"--secondary",secondaryForeground:"--secondary-foreground",destructive:"--destructive",ring:"--ring"},p={card:"#ffffff",foreground:"#09090b",mutedForeground:"#71717b",muted:"#f4f4f5",border:"#e4e4e7",primary:"#18181b",primaryForeground:"#fafafa",secondary:"#f4f4f5",secondaryForeground:"#18181b",destructive:"#e7000b",ring:"#9f9fa9"},g={card:"#161618",foreground:"#f3f3f4",mutedForeground:"#96969c",muted:"#212124",border:"#29292b",primary:"#f3f3f4",primaryForeground:"#0e0e10",secondary:"#212124",secondaryForeground:"#f3f3f4",destructive:"#ef4444",ring:"#f97316"},y="#010203",h=[51,102,153];function b(){let e=function(){let e=document.documentElement.classList.contains("dark")?g:p;try{let r=document.createElement("canvas");r.width=1,r.height=1;let t=r.getContext("2d",{willReadFrequently:!0});if(!t)return e;let o=e=>(t.fillStyle=y,t.fillStyle=e,t.fillStyle!==y&&(t.fillRect(0,0,1,1),!0)),a=()=>Array.from(t.getImageData(0,0,1,1).data.slice(0,3));if(!o("#336699")||a().some((e,r)=>Math.abs(e-h[r])>2))return e;let n=getComputedStyle(document.documentElement),s=n.getPropertyValue(f.card).trim(),d={...e};for(let e of Object.keys(f)){let r=n.getPropertyValue(f[e]).trim();r&&s&&(t.clearRect(0,0,1,1),o(s)&&o(r)&&(d[e]=`#${a().map(e=>e.toString(16).padStart(2,"0")).join("")}`))}return d}catch{return e}}();return{overlays:"dialog",variables:{fontFamily:getComputedStyle(document.body).fontFamily,borderRadius:"10px",buttonBorderRadius:"8px",formBorderRadius:"8px",overlayBorderRadius:"10px",colorPrimary:e.primary,colorBackground:e.card,colorText:e.foreground,colorSecondaryText:e.mutedForeground,colorBorder:e.border,colorDanger:e.destructive,buttonPrimaryColorBackground:e.primary,buttonPrimaryColorBorder:e.primary,buttonPrimaryColorText:e.primaryForeground,buttonSecondaryColorBackground:e.secondary,buttonSecondaryColorBorder:e.border,buttonSecondaryColorText:e.secondaryForeground,actionPrimaryColorText:e.foreground,actionPrimaryTextDecorationLine:"underline",actionSecondaryColorText:e.mutedForeground,formBackgroundColor:e.card,formHighlightColorBorder:e.ring,formAccentColor:e.primary,formPlaceholderTextColor:e.mutedForeground,offsetBackgroundColor:e.muted,overlayBackdropColor:"rgba(0, 0, 0, 0.5)"}}}function x(e,r,o){let[n,s]=(0,a.useState)(null),[d,i]=(0,a.useState)(!1),l=(0,a.useRef)(!1),[u,f]=(0,a.useState)(null),[p,g]=(0,a.useState)(!1),[y,h]=(0,a.useState)(!1),x=r.join(","),j=(0,a.useRef)(o);(0,a.useEffect)(()=>{j.current=o});let S=`${o.subject} didn't load from Stripe. Reload the page to try again.`,v=(0,a.useCallback)(async()=>{try{let{client_secret:e}=await (0,m.gg)("/api/partner/stripe/account-session",{method:"POST",body:JSON.stringify({components:x.split(",")})});return h(!1),e}catch(e){throw l.current?h(!0):f(function(e,r){if(e instanceof c.E6)switch(e.code){case"partner_not_approved":return`${r.subject} opens once your application is approved.`;case"stripe_unavailable":return`${r.subject} isn't available right now. Please try again in a few minutes.`;case"migration_required":return`${r.subject} isn't open yet. We'll email you when it is.`;case"unauthorized":return`You've been signed out. Sign in again to carry on with ${r.object}.`;case"not_found":return"We couldn't find your partner account. Sign in again, and email us if this keeps happening."}return`We couldn't reach the server to start ${r.object}. Check your connection, then reload the page.`}(e,j.current)),e}},[x]);return(0,a.useEffect)(()=>{if(!e)return;let r=!1;return t.e(4094).then(t.bind(t,24094)).then(({loadConnectAndInitialize:t})=>{r||s(t({publishableKey:e,fetchClientSecret:v,appearance:b()}))}).catch(()=>{r||f(`${j.current.subject} didn't load from Stripe. Reload the page to try again.`)}),()=>{r=!0}},[e,v]),(0,a.useEffect)(()=>
1{if(!n)return;let e=new MutationObserver(()=>n.update({appearance:b()}));return e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>e.disconnect()},[n]),(0,a.useEffect)(()=>{if(d||u)return;let e=setTimeout(()=>g(!0),12e3);return()=>clearTimeout(e)},[d,u]),{instance:n,loaded:d,failure:u,slow:p,sessionLost:y,markLoaded:(0,a.useCallback)(()=>{l.current=!0,i(!0)},[]),failLoad:(0,a.useCallback)(({error:e})=>{console.error("[partners] a Stripe Connect component failed to load:",e.type,e.message),f(e=>e??S)},[S])}}function j(){return(0,o.jsxs)("p",{className:"mt-6 flex items-start gap-2 text-sm leading-relaxed text-muted-foreground",children:[(0,o.jsx)(s.A,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0"}),(0,o.jsxs)("span",{children:["This is taking longer than usual. A content blocker can stop Stripe from loading: allow it for this site, then"," ",(0,o.jsx)("button",{type:"button",onClick:()=>window.location.reload(),className:"font-medium text-foreground underline underline-offset-4",children:"reload the page"}),"."]})]})}function S(){return(0,o.jsx)("p",{role:"status",className:"rounded-lg border border-warning-border bg-warning-surface p-3.5 text-sm leading-relaxed",children:"We couldn't refresh your secure session with Stripe. If this stops responding, reload the page: Stripe keeps what you have already finished."})}let v={payouts:{copy:{subject:"Your payouts",object:"your payouts"},loading:"Loading your payouts from Stripe",failed:"Your payouts couldn't load"},account_management:{copy:{subject:"Your payout details",object:"your payout details"},loading:"Loading your payout details from Stripe",failed:"Your payout details couldn't load"}};function w({component:e,className:r}){let t="pk_live_51TqPSHCblDKDNfDAndkZYtZOAsOW8PuLzGmmWPKlm03W1a1I3aIJgW70pwYlZIMOYqzmI4vcwE1LgxGUIRMZALtb00fAP3yvmD",a=v[e],s=x(t,[e],a.copy);return t?s.failure?(0,o.jsx)("section",{role:"alert",className:(0,u.cn)("rounded-xl border bg-card p-5 sm:p-6",r),children:(0,o.jsxs)("div",{className:"flex items-start gap-3",children:[(0,o.jsx)(d.A,{"aria-hidden":!0,className:"mt-0.5 size-5 shrink-0 text-destructive"}),(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsx)("h2",{className:"text-sm font-semibold",children:a.failed}),(0,o.jsx)("p",{className:"mt-1 text-sm leading-relaxed text-muted-foreground",children:s.failure}),(0,o.jsx)(i.$,{type:"button",className:"mt-4",onClick:()=>window.location.reload(),children:"Reload the page"})]})]})}):(0,o.jsxs)("div",{className:(0,u.cn)("space-y-4",r),children:[s.sessionLost&&(0,o.jsx)(S,{}),(0,o.jsxs)("section",{"aria-busy":!s.loaded,className:"rounded-xl border bg-card p-4 sm:p-6",children:[!s.loaded&&(0,o.jsxs)("div",{role:"status","aria-label":a.loading,children:[(0,o.jsx)(l.E,{className:"h-6 w-2/5"}),(0,o.jsx)(l.E,{className:"mt-3 h-4 w-3/5"}),(0,o.jsx)(l.E,{className:"mt-6 h-10 w-full"}),(0,o.jsx)(l.E,{className:"mt-3 h-10 w-full"}),(0,o.jsx)(l.E,{className:"mt-3 h-10 w-full"}),s.slow&&(0,o.jsx)(j,{})]}),s.instance&&(0,o.jsx)(n.MT,{connectInstance:s.instance,children:"payouts"===e?(0,o.jsx)(n.SO,{onLoaderStart:s.markLoaded,onLoadError:s.failLoad}):(0,o.jsx)(n.LM,{onLoaderStart:s.markLoaded,onLoadError:s.failLoad})})]}),(0,o.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:"This comes straight from Stripe. ETEC+ never sees or stores your bank or identity details."})]}):(0,o.jsxs)("section",{className:(0,u.cn)("rounded-xl border bg-card p-5 sm:p-6",r),children:[(0,o.jsx)("h2",{className:"text-sm font-semibold",children:"This isn't switched on yet"}),(0,o.jsx)("p",{className:"mt-1.5 max-w-prose text-sm leading-relaxed text-muted-foreground",children:"We're still connecting the partner program to Stripe. Nothing is needed from you."})]})}let k={subject:"Stripe's notice",object:"Stripe's notice"};function C({className:e}){let r="pk_live_51TqPSHCblDKDNfDAndkZYtZOAsOW8PuLzGmmWPKlm03W1a1I3aIJgW70pwYlZIMOYqzmI4vcwE1LgxGUIRMZALtb00fAP3yvmD",t=x(r,["notification_banner"],k),[s,d]=(0,a.useState)(0);return r&&!t.failure&&t.instance?(0,o.jsx)("section",{"aria-label":"Stripe needs something from you","aria-hidden":0===s,className:s>0?(0,u.cn)("overflow-hidden rounded-xl border bg-card p-2 sm:p-3",e):"h-0 overflow-hidden",children:(0,o.jsx)(n.MT,{connectInstance:t.instance,children:(0,o.jsx)(n.Ex,{onNotificationsChange:({total:e})=>
1d(e),onLoaderStart:t.markLoaded,onLoadError:t.failLoad})})}):null}},86846:(e,r,t)=>{t.d(r,{E:()=>n});var o=t(95155),a=t(40980);function n({className:e,...r}){return(0,o.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-muted",e),...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.