(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{183:function(e,t,l){"use strict";l.d(t,"a",(function(){return r}));var a=l(15),n=l(0);function r(){var e=Object(a.useLocation)().pathname;return Object(n.useEffect)((function(){window.scrollTo({top:0,left:0,behavior:"instant"})}),[e]),null}},58:function(e,t,l){"use strict";l.r(t);var a=l(0),n=l.n(a),r=l(158),i=l(15),c=function(){var e,t=(Object(i.useMatch)("/:workspaceId/feed/:highlightId")||Object(i.useMatch)("/:workspaceId/feed/:highlightId/index.html")||{}).highlightId,l=Object(a.useContext)(r.a),n=l.feed,c=l.workspace,o=l.state,s=o.selectedHighlight,m=o.setSelectedHighlight,d=o.isLoading,u=(null==n||null===(e=n.highlights)||void 0===e?void 0:e.reduce((function(e,t){var l=(t||{}).hidden;return void 0!==l&&l?e:e.concat(t)}),[]))||[],g=u[0],h=u.find((function(e){return e.highlightId===t}));Object(a.useEffect)((function(){s||m(h||g)}),[s,m,g,h]);var p=null==s?void 0:s.highlightId,f=null==c?void 0:c.workspaceId;return Object(a.useEffect)((function(){p&&f&&function(e){var t=e.workspaceId,l=e.currentHighlightId;Object(i.navigate)("/".concat(t,"/feed/").concat(l))}({workspaceId:f,currentHighlightId:p})}),[p,f]),{workspace:c,selectedHighlight:s,setSelectedHighlight:m,allHighlights:u,isLoading:d}},o=l(171),s=l.n(o),m=l(148),d=l.n(m),u=l(18),g=l(138),h=l(155),p=l(169),f=l(157),v=l(183),E=n.a.memo((function(e){var t=e.children;return n.a.createElement("div",{className:"min-h-full pb:4 lg:pb-8"},t)})),x=(Object(g.a)("logo_text.png"),Object(g.a)("missingHighlights.gif")),b=Object(g.a)("missingHighlightsVideoToolbar.svg"),w=function(){return n.a.createElement("div",{className:"bg-[#f4f5f7] rounded-xl overflow-hidden flex flex-col aspect-video"},n.a.createElement("div",{className:"flex-[10_0_0] flex items-center justify-center"},n.a.createElement("img",{src:x,className:"w-1/2 h-[75%] object-contain",alt:"animation suggesting missing highlights"})),n.a.createElement("div",{className:"flex-[1_0_0%]"},n.a.createElement("img",{src:b,alt:"animation suggesting missing highlights",className:"w-full relative bottom-2"})))},N=function(e){var t=e.children;return n.a.createElement("div",{className:"flex flex-col px-6 lg:px-16 lg:flex-row gap-11 min-h-[75vh] justify-center mt-[30px]"},t)},k=function(e){var t=e.message||{},l=t.userName,a=t.text;return n.a.createElement("div",{className:"text-black font-inter text-lg"},l&&n.a.createElement("span",{className:"font-bold"},l,":")," ",a)},H=function(){var e=c(),t=e.selectedHighlight,l=e.workspace;return n.a.createElement(n.a.Fragment,null,n.a.createElement(v.a,null),n.a.createElement("div",{className:"flex-[915_0_0%] h-full max-w-[915px]"},t&&l&&n.a.createElement("div",{key:null==t?void 0:t.highlightId},n.a.createElement("div",{className:"rounded-[20px] overflow-hidden"},n.a.createElement(s.a,{className:"react-player aspect-video",width:"100%",height:"auto",url:t.HIGHLIGHT_EDITED_LANDSCAPE?t.HIGHLIGHT_EDITED_LANDSCAPE.playbackUrl:t.HIGHLIGHT_RAW_LANDSCAPE.playbackUrl,playing:!0,controls:!0,light:t.HIGHLIGHT_THUMBNAIL.imageUrl,loop:!1,volume:1,muted:!1,pip:!1})),n.a.createElement("div",{className:"pl-2"},n.a.createElement("h1",{className:"text-xl md:text-[24px] font-semibold mt-4 mb-0 text-[#101840]"},t.title),n.a.createElement(i.Link,{to:"/".concat(t.meetingSeriesId,"/episode")},n.a.createElement("h2",{className:"text-base font-medium text-[#101840]"},l.name,t.episodeTitle?" | ".concat(t.episodeTitle):""))),n.a.createElement("div",{className:"flex flex-col gap-4 pl-2 mt-[34px]"},((null==t?void 0:t.transcript)||[]).map((function(e,t){return n.a.createElement(k,{key:t,message:e})}))))))},I=function(e){var t=e.children;return n.a.createElement("div",{className:"md:flex px-6 pb:4 lg:px-16 lg:pb-8 gap-4 md:gap-20 max-w-[1300px] mx-auto"},t)},y=function(){var e=c(),t=e.allHighlights,l=e.workspace,a=e.isLoading;return a||l?a||null!=t&&t.length?null:n.a.createElement("div",{className:"absolute inset-0 min-h-full bg-white scroll-auto"},n.a.createElement(p.a,{workspace:l}),n.a.createElement(I,null,n.a.createElement("div",{className:"flex-[980_0_0%]"},n.a.createElement("h2",{className:"text-blue-dark text-xl font-semibold text-center mb-3"},"You do not have any highlights generated."),n.a.createElement("h3",{className:"text-blue-dark text-sm text-center mb-6"},"Once you run your first episode you’ll see bite-sized video clips here")),n.a.createElement("div",{className:"flex-[380_0_0%] flex flex-col gap-10"})),n.a.createElement(I,null,n.a.createElement("div",{className:"flex-[980_0_0%]"},n.a.createElement("div",{className:"relative group mb-4"},n.a.createElement("div",{className:"group absolute inset-0 hover:backdrop-blur-sm grid place-content-center transition-all"},n.a.createElement("a",{className:"md:opacity-0 group-hover:opacity-100 bg-purple px-8 py-4 text-white text-sm rounded-md font-medium transition-opacity",href:"https://app.zync.ai/1L96N2BS/feed/cSXMjf",target:"_blank",rel:"noreferrer"},"See sample highlight reel")),n.a.createElement(w,null))),n.a.createElement("div",{className:"flex-[380_0_0%] hidden md:flex flex-col gap-4 md:gap-10"},n.a.createElement(w,null),n.a.createElement(w,null),n.a.createElement(w,null),n.a.createElement(w,null),n.a.createElement(w,null)))):n.a.createElement("div",{className:"fixed top-[70px] right-0 bottom-0 left-0 grid place-content-center text-orange-light text-xl"},n.a.createElement("p",null,"This workspace was not found or not loaded correctly."),n.a.createElement("p",null,"Please refresh the page and try again."))},_=function(e){var t=e.borderColor,l=e.thumbnailUrl,a=e.title,r=e.onClick,i=e.isSelected;return n.a.createElement("button",{className:d()("block md:flex gap-4 items-center border-2 hover:bg-white/10 py-3 px-2 rounded-lg w-full",i?"selected":""),style:{backgroundColor:i?"rgba(255,255,255,0.1)":void 0,borderColor:i?t:"transparent"},onClick:r},n.a.createElement("div",{className:"w-full md:w-[130px] md:shrink-0 mb-2 md:mb-0"},n.a.createElement("img",{src:l,alt:"thumbnail",width:130,className:"rounded-lg w-full"})),n.a.createElement("h3",{className:"text-[#101840] font-semibold text-xl md:text-base line-clamp-2 text-left"},a))},T=function(){var e=c(),t=e.allHighlights,l=e.selectedHighlight,r=e.setSelectedHighlight,i=e.isLoading,o=e.workspace,s=Object(a.useRef)(null),m=null==l?void 0:l.highlightId;return Object(a.useEffect)((function(){if(m&&s.current){var e=document.querySelector(".selected");e&&setTimeout((function(){s.current.scrollTo({top:e.offsetTop-s.current.offsetTop,behavior:"smooth"})}),300)}}),[m]),i?null:n.a.createElement("div",null,n.a.createElement("button",{onClick:function(){s.current&&s.current.scrollTo({top:0,behavior:"smooth"})},className:"cursor-pointer text-[#101840] font-semibold md:font-medium text-xl md:text-base ml-2 uppercase"},"More Video"),n.a.createElement("ul",{className:"flex-[415_0_0%] h-full md:max-w-[415px] space-y-3 max-h-[425px] overflow-auto transparent-scrollbar",ref:s},t.map((function(e){return n.a.createElement("li",{key:null==e?void 0:e.highlightId},n.a.createElement(_,{title:e.title,thumbnailUrl:e.HIGHLIGHT_THUMBNAIL.imageUrl,onClick:function(){return r(e)},isSelected:(null==l?void 0:l.highlightId)===(null==e?void 0:e.highlightId),borderColor:null==o?void 0:o.brandKit.accentColor}))}))))};t.default=function(){var e,t,l=Object(u.useRouteData)(),a=l.feed,i=l.workspace,c=l.currentHighlight,o=i||{},s=o.brandKit,m=o.integrations,d=o.workspaceId,g=o.settings,v=(m||{}).customDomain,x=(g||{}).domain,b=(v||{}).faviconUrl;Object(h.a)(b||(null==s?void 0:s.logoUrl));var w=Object(f.b)(x,d,null==c?void 0:c.highlightId);return n.a.createElement(n.a.Fragment,null,n.a.createElement(u.Head,null,n.a.createElement("title",null,null==c?void 0:c.title),n.a.createElement("meta",{name:"description",content:null==c?void 0:c.episodeTitle}),n.a.createElement("meta",{property:"og:title",content:null==c?void 0:c.title}),n.a.createElement("meta",{property:"og:description",content:null==c?void 0:c.episodeTitle}),n.a.createElement("meta",{property:"og:image",content:null==c||null===(e=c.HIGHLIGHT_THUMBNAIL)||void 0===e?void 0:e.imageUrl}),n.a.createElement("link",{rel:"apple-touch-icon",href:null==i||null===(t=i.brandKit)||void 0===t?void 0:t.logoUrl}),n.a.createElement("link",{rel:"canonical",href:w})),n.a.createElement(r.b,{workspace:i,feed:a},n.a.createElement(E,null,n.a.createElement(p.a,{workspace:i}),n.a.createElement(N,null,n.a.createElement(y,null),n.a.createElement(H,null),n.a.createElement(T,null)))))}}}]);