PageSourceSearch

https://www.boomshare.ai/_next/static/chunks/3938-02dddd88ff79611a.js

js boomshare.ai collected 2026-10-05 11:51:47 UTC 12,618 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3938],{11901:(e,t,i)=>{i.d(t,{i:()=>r});var r=function(e){return e.ACTIVE="ACTIVE",e.CANCELED="CANCELED",e.TERMINATED="TERMINATED",e}({})},29087:(e,t,i)=>{i.d(t,{W:()=>c});var r=i(4785),n=i(5432),a=i(80403),s=i(80233),l=i(85384);let o={isOpen:!1,featureKey:null,entitlement:null,message:null,source:"button"},d=async e=>{var t,i,s;e({status:"loading",error:null});try{let i=await n.A.request({url:r.JZ.entitlements.me.path,method:r.JZ.entitlements.me.method});e({entitlements:null!=(t=i.data)?t:{},status:"ready",error:null,lastFetchedAt:Date.now()})}catch(t){e({status:"error",error:t instanceof a.pe?(null==(s=t.response)||null==(i=s.data)?void 0:i.message)||t.message:"Failed to load entitlements"})}},c=(0,s.v)()((0,l.lt)((e,t)=>({entitlements:{},status:"idle",error:null,lastFetchedAt:null,modal:o,fetchEntitlements:async()=>{let{status:i,lastFetchedAt:r}=t();"loading"===i||"ready"===i&&r||await d(e)},refreshEntitlements:async()=>{"loading"!==t().status&&await d(e)},resetEntitlements:()=>e({entitlements:{},status:"idle",error:null,lastFetchedAt:null,modal:o}),hasFeature:e=>{var i;return(null==(i=t().entitlements[e])?void 0:i.allowed)===!0},showPremiumBadgeFor:e=>{let{status:i}=t();return"ready"===i&&!t().hasFeature(e)},getEntitlement:e=>t().entitlements[e],openUpgradeModal:(i,r)=>{var n,a,s,l,o;let d=null!=(a=null!=(n=null==r?void 0:r.entitlement)?n:t().entitlements[i])?a:null,c=t().modal;c.isOpen&&c.featureKey===i&&c.source===(null!=(s=null==r?void 0:r.source)?s:"button")||e({modal:{isOpen:!0,featureKey:i,entitlement:d,message:null!=(l=null==r?void 0:r.message)?l:null,source:null!=(o=null==r?void 0:r.source)?o:"button"}})},openUpgradeModalFromDenial:function(e){var i,r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api_403",a=null==(i=e.entitlement)?void 0:i.featureKey;a&&t().openUpgradeModal(a,{entitlement:e.entitlement,message:null!=(r=e.message)?r:null,source:n})},closeUpgradeModal:()=>e({modal:o})}),{name:"entitlement-store"}))},52388:(e,t,i)=>{i.r(t),i.d(t,{default:()=>s,resetChatwoot:()=>a,setChatwootUser:()=>n});var r=i(77592);let n=(e,t)=>{if(window.$chatwoot)window.$chatwoot.setUser(e,t);else{let i=()=>{var r;null==(r=window.$chatwoot)||r.setUser(e,t),window.removeEventListener("chatwoot:ready",i)};window.addEventListener("chatwoot:ready",i)}},a=()=>{var e;null==(e=window.$chatwoot)||e.reset()},s=()=>((0,r.useEffect)(()=>{let e="8GeUaJGRYnCYDptLv9dtyyoG",t="https://app.chatwoot.com";if(!e||!t)return void console.warn("Missing NEXT_PUBLIC_CHATWOOT_WEBSITE_TOKEN or NEXT_PUBLIC_CHATWOOT_BASE_URL");try{new URL(t)}catch(e){console.warn("Invalid NEXT_PUBLIC_CHATWOOT_BASE_URL:",t);return}if(document.querySelector('script[src="'.concat(t,'/packs/js/sdk.js"]')))return;window.chatwootSettings={position:"right",locale:"en"};let i=document.createElement("script");i.src="".concat(t,"/packs/js/sdk.js"),i.defer=!0,i.async=!0,i.onload=()=>{window.chatwootSDK.run({websiteToken:e,baseUrl:t})},i.onerror=()=>{console.warn("Failed to load Chatwoot SDK from",t)},document.head.appendChild(i)},[]),null)},53938:(e,t,i)=>{i.d(t,{T:()=>v,n:()=>p});var r=i(80233),n=i(4785),a=i(90960),s=i(7604),l=i(85384),o=i(36222),d=i(5432),c=i(80403),u=i(58637),m=i(96584),h=i(52388),f=i(41880),g=i(85080),E=i(78707),y=i(45292),w=i(79168),v=function(e){return e.INITIAL="initial",e.VERIFYING="verifying",e.AUTHENTICATED="authenticated",e.UNAUTHENTICATED="unauthenticated",e.ERROR="error",e}({});let p=(0,r.v)((0,l.lt)((e,t)=>{var i;let r=(0,o.ZP)(),l=!!(0,s.gf)(a.JC),v=async t=>{try{let e=await d.h.post(n.JZ.auth.refreshToken.path,{refreshToken:t});return(0,s.WG)(e.data.access.token,a.JC),(0,s.WG)(e.data.refresh.token,a.US),!0}catch(t){return e({status:"error",error:t instanceof c.pe?null==t?void 0:t.message:"Failed to refresh tokens",isAuthenticated:!1,isVerifying:!1,isUnauthenticated:!0,hasError:!0,isEmailVerified:!1,needsEmailVerification:!1}),(0,s.RV)(),(0,o.a1)(),!1}},p=async()=>{let t=(await d.A.get(n.JZ.auth.verify.path)).data;e({user:t,status:"authenticated",error:null,isInitialized:!0,isAuthenticated:!0,isVerifying:!1,isUnauthenticated:!1,hasError:!1,isEmailVerified:t.isEmailVerified,needsEmailVerification:!t.isEmailVerified}),(0,o.gV)(t),(0,u.do)(t.id),f.Ay.identify(String(t.id),{email:t.email,name:t.name});try{if(null==t?void 0:t.email){var i;(0,h.setChatwootUser)(String(t.id),{email:t.email,name:null!=(i=t.name)?i:void 0})}}catch(e){console.warn("Failed to set Chatwoot user details:",e)}},V=async()=>{try{let e=(0,s.gf)(a.US);e&&(await d.A.post(n.JZ.auth.logout.path,{refreshToken:e}),window.postMessage("BOOM_LOGOUT"))}catch(e){}try{(0,h.resetChatwoot)()}catch(e){console.warn("Failed to reset Chatwoot session:",e)}(0,s.RV)(),(0,o.a1)(),(0,u.do)(null),f.Ay.reset(),g.ER.clearMetrics(),E.S.getState().reset(),e(()=>({user:null,status:"unauthenticated",error:null,isInitialized:!0,isAuthenticated:!1,isVerifying:!1,isUnauthenticated:!0,hasError:!1,isEmailVerified:!1,needsEmailVerification:!1}))};return{user:r,status:l?"initial":"unauthenticated",error:null,isInitialized:!l,isAuthenticated:!!l&&!!r,isVerifying:l&&!r,isUnauthenticated:!l,hasError:!1,isEmailVerified:null!=(i=null==r?void 0:r.isEmailVerified)&&i,needsEmailVerification:!!(l&&r&&!r.isEmailVerified),handleAuthSuccess:t=>{let{tokens:i,user:r}=t;t.isNewUser&&(0,w.c5)(),(0,s.WG)(i.access.token,a.JC),(0,s.WG)(i.refresh.token,a.US),(0,o.gV)(r),e({user:r,status:"authenticated",error:null,isInitialized:!0,isAuthenticated:!0,isVerifying:!1,isUnauthenticated:!1,hasError:!1,isEmailVerified:r.isEmailVerified,needsEmailVerification:!r.isEmailVerified}),(0,u.do)(r.id),t.isNewUser||(0,u.O$)(r.id),(0,u.Rh)(),(0,m.JC)({userId:r.id,email:r.email}),f.Ay.identify(String(r.id),{email:r.email,name:r.name}),(0,y.F3)();try{if(null==r?void 0:r.email){var n;(0,h.setChatwootUser)(String(r.id),{email:r.email,name:null!=(n=r.name)?n:void 0})}}catch(e){console.warn("Failed to set Chatwoot user details:",e)}},verify:async()=>{let i=t();if("authenticated"===i.status||"verifying"===i.status)return;e({status:"verifying",error:null,isAuthenticated:!1,isVerifying:!0,isUnauthenticated:!1,hasError:!1,isEmailVerified:!1,needsEmailVerification:!1});let r=(0,s.gf)(a.JC),n=(0,s.gf)(a.US);if(!r&&!n)return void e({status:"unauthenticated",isInitialized:!0,isAuthenticated:!1,isVerifying:!1,isUnauthenticated:!0,hasError:!1,isEmailVerified:!1,needsEmailVerification:!1});if(!r&&!await v(n)){e({status:"unauthenticated",isInitialized:!0,isAuthenticated:!1,isVerifying:!1,isUnauthenticated:!0,hasError:!1,isEmailVerified:!1,needsEmailVerification:!1}),(0,u.do)(null);return}try{await p()}catch(i){var l;if(i instanceof c.pe&&(null==i||null==(l=i.response)?void 0:l.status)===403)return void e({status:"error",error:"Please verify your email to access this resource.",isInitialized:!0,isAuthenticated:!1,isVerifying:!1,isUnauthenticated:!1,hasError:!0,isEmailVerified:!1,needsEmailVerification:!0}
1);if(await v(n))try{await p();return}catch(e){}e({status:"error",error:"Your session has expired. Please sign in again.",isInitialized:!0,isAuthenticated:!1,isVerifying:!1,isUnauthenticated:!1,hasError:!0,isEmailVerified:!1,needsEmailVerification:!1}),await t().signOut()}},signOut:async()=>{await V()},updateUserDetails:async t=>{(0,o.gV)(t),e(e=>({user:{...e.user,...t},status:"authenticated",isAuthenticated:!0,isVerifying:!1,isUnauthenticated:!1,hasError:!1,isEmailVerified:t.isEmailVerified,needsEmailVerification:!t.isEmailVerified}))},sendVerificationEmail:async()=>{try{await d.A.post(n.JZ.auth.sendVerificationEmail.path)}catch(i){var e,t;throw Error(i instanceof c.pe?(null==(t=i.response)||null==(e=t.data)?void 0:e.message)||i.message:"Failed to send verification email")}},refreshUserData:async()=>{try{let t=(await d.A.get(n.JZ.auth.verify.path)).data;return e(e=>({...e,user:t,isEmailVerified:t.isEmailVerified,needsEmailVerification:!t.isEmailVerified})),(0,o.gV)(t),(0,u.do)(t.id),t}catch(e){throw e}}}}))},62127:(e,t,i)=>{i.d(t,{CW:()=>a,Hl:()=>n,bq:()=>r,bv:()=>l,k8:()=>s});var r=function(e){return e.MOBILE="MOBILE",e.DESKTOP="DESKTOP",e}({}),n=function(e){return e.MP4="mp4",e.WEBM="webm",e.MP3="mp3",e.TS="ts",e.HLS="hls",e.DASH="dash",e}({}),a=function(e){return e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS",e.PENDING="PENDING",e}({}),s=function(e){return e.UPLOADING="UPLOADING",e.PROCESSING="PROCESSING",e.READY="READY",e.FAILED="FAILED",e}({}),l=function(e){return e.PUBLIC="PUBLIC",e.PRIVATE="PRIVATE",e.UNLISTED="UNLISTED",e}({})},78707:(e,t,i)=>{i.d(t,{S:()=>u});var r=i(80233),n=i(85384),a=i(99129),s=i(4785),l=i(11901),o=i(29087);let d=()=>{o.W.getState().refreshEntitlements()},c=async(e,t,i)=>{var r,n;let l=(null==i?void 0:i.background)===!0&&null!==t().summary,o=null==(r=t().summary)?void 0:r.isPaid;e(l?{isRefreshing:!0,error:null}:{isLoading:!0,error:null});try{let t=await (0,a.G)(s.JZ.billing.getSubscription);e({summary:t.data,isLoading:!1,isRefreshing:!1}),void 0!==o&&(null==(n=t.data)?void 0:n.isPaid)!==o&&d()}catch(t){e({error:"Failed to load subscription data",isLoading:!1,isRefreshing:!1})}},u=(0,r.v)()((0,n.lt)((e,t)=>({summary:null,isLoading:!1,isRefreshing:!1,error:null,fetch:async()=>{null!==t().summary||t().isLoading||t().isRefreshing||await c(e,t)},refetch:async()=>{t().isLoading||t().isRefreshing||await c(e,t,{background:!0})},applyGoodwillClaim:i=>{let r=t().summary;r&&e({summary:{...r,isPaid:!0,isPaymentPending:!1,isPaymentFailed:!1,isUpgradeProcessing:!1,processingPlanCode:null,nextPlanCode:null,downgradePlanDate:null,subscription:{...r.subscription,planCode:i,status:l.i.ACTIVE}}}),d(),c(e,t,{background:!0})},reset:()=>e({summary:null,isLoading:!1,isRefreshing:!1,error:null})}),{name:"subscription-store"}))},79168:(e,t,i)=>{i.d(t,{Fd:()=>d,Jt:()=>l,_0:()=>n,c5:()=>o,tP:()=>s});let r="boom_ref",n="ref",a=/^[A-Za-z0-9_-]{1,64}$/,s=e=>"string"==typeof e&&a.test(e),l=e=>{var t;let i=null!=(t=null==e?void 0:e.get(n))?t:null==e?void 0:e.get("refToken");if(s(i))return i;let a=(e=>{if("undefined"==typeof document)return null;let t=document.cookie.match(new RegExp("(?:^|;\\s*)".concat(e,"=([^;]*)")));return t?decodeURIComponent(t[1]):null})(r);return s(a)?a:null},o=()=>{"undefined"!=typeof document&&(document.cookie="".concat(r,"=; Max-Age=0; path=/"))},d=(e,t)=>{let i=l(t);if(!i)return e;let r=e.includes("?")?"&":"?";return"".concat(e).concat(r,"refToken=").concat(encodeURIComponent(i))}},85080:(e,t,i)=>{i.d(t,{ER:()=>u,rt:()=>c});var r=i(80233),n=i(85384),a=i(4785),s=i(99129),l=i(62127),o=i(80403);function d(e,t){return e instanceof o.pe?e.message:t}let c=(0,r.v)((0,n.lt)((e,t)=>({metrics:null,recentRecordings:null,isLoadingCounts:!1,isLoadingMetrics:!1,error:null,lastFetched:null,actions:{fetchRecordingCounts:async()=>{try{e({isLoadingCounts:!0,error:null});let t=(await (0,s.G)(a.JZ.recording.getRecordingCount)).data;e(e=>({metrics:e.metrics?{...e.metrics,...t}:{...t},isLoadingCounts:!1,lastFetched:new Date}))}catch(t){e({error:d(t,"Failed to fetch recording counts"),isLoadingCounts:!1})}},fetchRecordingMetrics:async()=>{try{e({isLoadingMetrics:!0,error:null});let t=(await (0,s.G)(a.JZ.recording.getRecordingMetrics)).data;e(e=>({metrics:e.metrics?{...e.metrics,...t}:{...t},isLoadingMetrics:!1,lastFetched:new Date}))}catch(t){e({error:d(t,"Failed to fetch recording metrics"),isLoadingMetrics:!1})}},fetchAllMetrics:async()=>{t().metrics||e({isLoadingCounts:!0,isLoadingMetrics:!0,error:null});let[i,r,n]=await Promise.allSettled([(0,s.G)(a.JZ.recording.getRecordingCount),(0,s.G)(a.JZ.recording.getRecordingMetrics),(0,s.G)(a.JZ.recording.getRecordings,{},void 0,{status:l.k8.READY,page:1,limit:3})]),o=t(),c=o.metrics,u=o.error;if("fulfilled"===i.status){let e=i.value.data;c=c?{...c,...e}:{...e}}else i.reason&&(u=d(i.reason,"Failed to fetch recording counts"));if("fulfilled"===r.status){let e=r.value.data;c=c?{...c,...e}:{...e}}else r.reason&&(u=d(r.reason,"Failed to fetch recording metrics"));e({metrics:c,recentRecordings:"fulfilled"===n.status?n.value.data:o.recentRecordings,isLoadingCounts:!1,isLoadingMetrics:!1,error:u,lastFetched:new Date})},refetchRecentRecordings:async()=>{try{let t=await (0,s.G)(a.JZ.recording.getRecordings,{},void 0,{status:l.k8.READY,page:1,limit:3});e({recentRecordings:t.data})}catch(e){}},removeRecentRecording:t=>{e(e=>{var i,r;return{recentRecordings:null!=(r=null==(i=e.recentRecordings)?void 0:i.filter(e=>e.id!==t))?r:null}})},clearMetrics:()=>{e({metrics:null,recentRecordings:null,error:null,lastFetched:null})},clearError:()=>{e({error:null})}}}))),u=c.getState().actions}}]);

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.