PageSourceSearch

https://zencastr.com/_next/static/chunks/pages/chat/[sessionSlug]-e577d9a65de2b474.js

js zencastr.com collected 2026-09-24 15:16:05 UTC 7,415 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5169],{12840:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat/[sessionSlug]",function(){return t(84936)}])},1784:function(e,r,t){"use strict";t.d(r,{m:function(){return q}});var n=t(23842),i=t(59312),a=t(5341),o=t(3204),s=t(28159),u="__Host-zc-shell-snapshot",l=new Set(["all","active","archived"]),c=new Set(["createdAt","name"]),d=new Set(["ascending","descending"]),f=function(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)},p=function(e){return"string"===typeof e?e:void 0},y=function(e){return"boolean"===typeof e?e:void 0};function h(e){if(f(e)&&Array.isArray(e.sessions)&&!(e.sessions.length>60)){var r=[],t=!0,n=!1,i=void 0;try{for(var a,o=e.sessions[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var s=a.value;if(!f(s)||"string"!==typeof s.name||"string"!==typeof s.slug||!s.slug)return;r.push({name:s.name,slug:s.slug})}}catch(h){n=!0,i=h}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}var u=Array.isArray(e.teamRoles)?e.teamRoles.filter((function(e){return"string"===typeof e})):void 0;return w({sessions:r,currentShowSlug:p(e.currentShowSlug),currentShowTitle:p(e.currentShowTitle),userDisplayName:p(e.userDisplayName),userAvatarUrl:p(e.userAvatarUrl),teamRoles:u,walletBalance:"number"===typeof e.walletBalance&&Number.isFinite(e.walletBalance)?e.walletBalance:void 0,sessionFilter:l.has(e.sessionFilter)?e.sessionFilter:void 0,sessionSort:c.has(e.sessionSort)?e.sessionSort:"createdAt",sessionSortOrder:d.has(e.sessionSortOrder)?e.sessionSortOrder:"descending",preferredSidebarCollapsed:y(e.preferredSidebarCollapsed),welcomeRead:y(e.welcomeRead)})}}function v(e,r){if(e){var t=!0,n=!1,i=void 0;try{for(var a,o=e.split(";")[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var s=a.value.trim();if(s.startsWith("".concat(r,"=")))return s.slice(r.length+1)}}catch(u){n=!0,i=u}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}}}function g(e,r){return m.apply(this,arguments)}function m(){return(m=(0,n.Z)((function(e,r){var t,n,a,o,s,u,l,c,d,f,p,y,h,v,g;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:t=new ReadableStream({start:function(r){r.enqueue(e),r.close()}}),n=t.pipeThrough(new DecompressionStream("deflate-raw")).getReader(),a=[],o=0,i.label=1;case 1:return[4,n.read()];case 2:return s=i.sent(),u=s.done,l=s.value,u?[3,6]:(o+=l.byteLength)>r?[4,n.cancel()]:[3,4];case 3:return i.sent(),[2,void 0];case 4:a.push(l),i.label=5;case 5:return[3,1];case 6:c=new Uint8Array(o),d=0,f=!0,p=!1,y=void 0;try{for(h=a[Symbol.iterator]();!(f=(v=h.next()).done);f=!0)g=v.value,c.set(g,d),d+=g.byteLength}catch(m){p=!0,y=m}finally{try{f||null==h.return||h.return()}finally{if(p)throw y}}return[2,c]}}))}))).apply(this,arguments)}function S(e){return b.apply(this,arguments)}function b(){return(b=(0,n.Z)((function(e){var r,t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:if(!e||!/^[A-Za-z0-9_-]+$/.test(e))return[2,void 0];n.label=1;case 1:return n.trys.push([1,3,,4]),r=atob(e.replace(/-/g,"+").replace(/_/g,"/")),[4,g(Uint8Array.from(r,(function(e){return e.charCodeAt(0)})),65536)];case 2:return(t=n.sent())?[2,h(JSON.parse((new TextDecoder).decode(t)))]:[2,void 0];case 3:return n.sent(),[2,void 0];case 4:return[2]}}
1))}))).apply(this,arguments)}function w(e){var r={},t=!0,n=!1,i=void 0;try{for(var o,s=Object.entries(e)[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var u=(0,a.Z)(o.value,2),l=u[0],c=u[1];void 0!==c&&(r[l]=c)}}catch(d){n=!0,i=d}finally{try{t||null==s.return||s.return()}finally{if(n)throw i}}return r}function I(e){var r=e.getHeader("Set-Cookie"),t=Array.isArray(r)?r:void 0===r?[]:[String(r)];e.setHeader("Set-Cookie",(0,o.Z)(t).concat(["".concat(u,"=; Path=/; Max-Age=0; Secure; SameSite=Lax")]))}function _(e){return A.apply(this,arguments)}function A(){return(A=(0,n.Z)((function(e){var r,t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return e.req?void 0===(r=v(e.req.headers.cookie,u))?[2,void 0]:[4,S(r)]:[2,void 0];case 1:if(t=n.sent(),e.res)try{I(e.res)}catch(i){}return t?[2,w({snapshot:t,activeSessionSlug:(0,s.nS)(e.query.sessionSlug)})]:[2,void 0]}}))}))).apply(this,arguments)}var q=function(){var e=(0,n.Z)((function(e){var r;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return[4,_(e)];case 1:return[2,(r=t.sent())?{bootShellData:r}:{}]}}))}));return function(r){return e.apply(this,arguments)}}()},84936:function(e,r,t){"use strict";t.r(r);var n=t(23842),i=t(85034),a=t(59312),o=t(24246),s=t(25229),u=t(65218),l=t.n(u),c=t(86677),d=t(27378),f=t(99520),p=t(1784),y=t(64711),h=t(6633),v=t(78953),g=["recordingId","postproductionId","uploadId","episodeId","clipId"];function m(){return(m=(0,n.Z)((function(e){var r,t,n,i,o,s,u,l,c,d,p;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return r=e.recordingId,t=e.postproductionId,n=e.uploadId,i=e.episodeId,o=e.clipId,r?[4,f.api.recordingsService.getRecordingById(r)]:[3,2];case 1:return[2,{kind:"recording",id:(s=a.sent())._id,name:null!==(u=s.name)&&void 0!==u?u:"Recording",thumbnailUrl:s.thumbnailImageUrl}];case 2:return t?[4,f.api.postproductionsService.getById(t)]:[3,4];case 3:return[2,{kind:"postproduction",id:(l=a.sent())._id,name:l.name,thumbnailUrl:l.thumbnailImageUrl}];case 4:return n?[4,f.api.sessionCustomMediaService.getSessionCustomMedia(n)]:[3,6];case 5:return[2,{kind:"upload",id:(c=a.sent())._id,name:c.name,thumbnailUrl:c.thumbnailImageUrl}];case 6:return i?[4,f.api.episodesService.getEpisode(i)]:[3,8];case 7:return[2,{kind:"episode",id:(d=a.sent())._id,name:d.title,thumbnailUrl:d.imageUrl}];case 8:return o?[4,f.api.episodesService.getEpisode(o)]:[3,10];case 9:return[2,{kind:"clip",id:(p=a.sent())._id,name:p.title,thumbnailUrl:p.imageUrl}];case 10:return[2,null]}}))}))).apply(this,arguments)}var S=(0,s.Pi)((function(){var e=(0,c.useRouter)(),r=(0,v.a)().setPillContext,t="string"===typeof e.query.recordingId?e.query.recordingId:void 0,n="string"===typeof e.query.postproductionId?e.query.postproductionId:void 0,a="string"===typeof e.query.uploadId?e.query.uploadId:void 0,s="string"===typeof e.query.episodeId?e.query.episodeId:void 0,u="string"===typeof e.query.clipId?e.query.clipId:void 0,l=(0,d.useState)(null),f=l[0],p=l[1];(0,d.useEffect)((function(){var e=!1;return function(e){return m.apply(this,arguments)}({recordingId:t,postproductionId:n,uploadId:a,episodeId:s,clipId:u}).then((function(r){return!e&&p(r)})).catch((function(){return!e&&p(null)})),function(){e=!0}}),[t,n,a,s,u]);var y=(0,d.useCallback)((function(){p(null);var r=(0,i.Z)({},e.query),t=!0,n=!1,a=void 0;try{for(var o,s=g[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){delete r[o.value]}}catch(u){n=!0,a=u}finally{try{t||null==s.return||s.return()}finally{if(n)throw a}}e.replace({pathname:e.pathname,query:r},void 0,{shallow:!0})}),[e]);return(0,d.useEffect)((function(){if(f)return r({pill:f,dismissible:!0,onDismiss:y}),function(){return r(null)};r(null)}),[f,y,r]),(0,o.jsx)(o.Fragment,{})})),b=l()((function(){return Promise.resolve(S)}),{ssr:!1});b.getLayout=function(e){return(0,o.jsx)(y.D,{children:(0,o.jsx)(h.R,{chatVariant:"centered",children:e})})},b.isLovablePage=!0,b.getInitialProps=p.m,r.default=b}},function(e){e.O(0,[3162,2412,1244,7186,6198,9774,2888,179],(function(){return r=12840,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
2//# sourceMappingURL=[sessionSlug]-e577d9a65de2b474.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.