diff --git a/build/assets/index-96d85cfd.js b/build/assets/index-02bc9458.js similarity index 99% rename from build/assets/index-96d85cfd.js rename to build/assets/index-02bc9458.js index e3de3229c..dd8aeb606 100644 --- a/build/assets/index-96d85cfd.js +++ b/build/assets/index-02bc9458.js @@ -4678,7 +4678,7 @@ outputColor=vec4(color,inputColor.a);}`,VignetteEffect=class extends Effect$1{co `,EpisodeTypeImages={podcast:{img:"audio_badge.svg",label:"podcast"},clip:{img:"audio_badge.svg",label:"clip"},show:{img:"show_badge.svg",label:"show"},tweet:{img:"twitter_badge.svg",label:"tweet"},twitter_space:{img:"audio_badge.svg",label:"clip"},youtube:{img:"video_badge.svg",label:"clip"},episode:{img:"video_badge.svg",label:"episode"},document:{img:"notes_badge.svg",label:"text"}},TypeBadge=({type:tt})=>{var et,nt,rt;return jsxRuntimeExports.jsxs(EpisodeWrapper$3,{children:[jsxRuntimeExports.jsx("img",{alt:((et=EpisodeTypeImages[tt])==null?void 0:et.label)||tt,src:((nt=EpisodeTypeImages[tt])==null?void 0:nt.img)||""}),jsxRuntimeExports.jsx("div",{className:"label",children:((rt=EpisodeTypeImages[tt])==null?void 0:rt.label)||tt})]})},EpisodeWrapper$3=styled$4(Flex).attrs({direction:"row"})` cursor: pointer; background: ${colors.white}; - border-radius: 1px; + border-radius: 3px; overflow: hidden; img { @@ -5104,7 +5104,7 @@ __p += '`),Vo&&(Br+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Br+`return __p -}`;var Do=hw(function(){return $o(Un,co+"return "+Br).apply(nt,Kn)});if(Do.source=Br,r1(Do))throw Do;return Do}function i4(Mt){return Zo(Mt).toLowerCase()}function o4(Mt){return Zo(Mt).toUpperCase()}function a4(Mt,Vt,qt){if(Mt=Zo(Mt),Mt&&(qt||Vt===nt))return bm(Mt);if(!Mt||!(Vt=Os(Vt)))return Mt;var gn=os(Mt),Rn=os(Vt),Un=ba(gn,Rn),Kn=lp(gn,Rn)+1;return Fu(gn,Un,Kn).join("")}function s4(Mt,Vt,qt){if(Mt=Zo(Mt),Mt&&(qt||Vt===nt))return Mt.slice(0,dp(Mt)+1);if(!Mt||!(Vt=Os(Vt)))return Mt;var gn=os(Mt),Rn=lp(gn,os(Vt))+1;return Fu(gn,0,Rn).join("")}function l4(Mt,Vt,qt){if(Mt=Zo(Mt),Mt&&(qt||Vt===nt))return Mt.replace(_n,"");if(!Mt||!(Vt=Os(Vt)))return Mt;var gn=os(Mt),Rn=ba(gn,os(Vt));return Fu(gn,Rn).join("")}function c4(Mt,Vt){var qt=Lt,gn=jt;if(hs(Vt)){var Rn="separator"in Vt?Vt.separator:Rn;qt="length"in Vt?jo(Vt.length):qt,gn="omission"in Vt?Os(Vt.omission):gn}Mt=Zo(Mt);var Un=Mt.length;if(Gu(Mt)){var Kn=os(Mt);Un=Kn.length}if(qt>=Un)return Mt;var Zn=qt-nu(gn);if(Zn<1)return gn;var or=Kn?Fu(Kn,0,Zn).join(""):Mt.slice(0,Zn);if(Rn===nt)return or+gn;if(Kn&&(Zn+=or.length-Zn),i1(Rn)){if(Mt.slice(Zn).search(Rn)){var Tr,Ar=or;for(Rn.global||(Rn=Ss(Rn.source,Zo(ar.exec(Rn))+"g")),Rn.lastIndex=0;Tr=Rn.exec(Ar);)var Br=Tr.index;or=or.slice(0,Br===nt?Zn:Br)}}else if(Mt.indexOf(Os(Rn),Zn)!=Zn){var Qr=or.lastIndexOf(Rn);Qr>-1&&(or=or.slice(0,Qr))}return or+gn}function u4(Mt){return Mt=Zo(Mt),Mt&&Xr.test(Mt)?Mt.replace(ur,fp):Mt}var h4=Bt(function(Mt,Vt,qt){return Mt+(qt?" ":"")+Vt.toUpperCase()}),s1=S0("toUpperCase");function uw(Mt,Vt,qt){return Mt=Zo(Mt),Vt=qt?nt:Vt,Vt===nt?Fp(Mt)?pp(Mt):Oy(Mt):Mt.match(Vt)||[]}var hw=po(function(Mt,Vt){try{return Wo(Mt,nt,Vt)}catch(qt){return r1(qt)?qt:new Eo(qt)}}),d4=Oo(function(Mt,Vt){return bs(Vt,function(qt){qt=zu(qt),su(Mt,qt,e1(Mt[qt],Mt))}),Mt});function f4(Mt){var Vt=Mt==null?0:Mt.length,qt=bo();return Mt=Vt?ga(Mt,function(gn){if(typeof gn[1]!="function")throw new Hs(at);return[qt(gn[0]),gn[1]]}):[],po(function(gn){for(var Rn=-1;++Rnzt)return[];var qt=Ut,gn=Ps(Mt,Ut);Vt=bo(Vt),Mt-=Ut;for(var Rn=bu(gn,Vt);++qt0||Vt<0)?new go(qt):(Mt<0?qt=qt.takeRight(-Mt):Mt&&(qt=qt.drop(Mt)),Vt!==nt&&(Vt=jo(Vt),qt=Vt<0?qt.dropRight(-Vt):qt.take(Vt-Mt)),qt)},go.prototype.takeRightWhile=function(Mt){return this.reverse().takeWhile(Mt).reverse()},go.prototype.toArray=function(){return this.take(Ut)},_l(go.prototype,function(Mt,Vt){var qt=/^(?:filter|find|map|reject)|While$/.test(Vt),gn=/^(?:head|last)$/.test(Vt),Rn=Ln[gn?"take"+(Vt=="last"?"Right":""):Vt],Un=gn||/^find/.test(Vt);Rn&&(Ln.prototype[Vt]=function(){var Kn=this.__wrapped__,Zn=gn?[1]:arguments,or=Kn instanceof go,Tr=Zn[0],Ar=or||Po(Kn),Br=function(Fo){var Vo=Rn.apply(Ln,Dl([Fo],Zn));return gn&&Qr?Vo[0]:Vo};Ar&&qt&&typeof Tr=="function"&&Tr.length!=1&&(or=Ar=!1);var Qr=this.__chain__,co=!!this.__actions__.length,ko=Un&&!Qr,Do=or&&!co;if(!Un&&Ar){Kn=Do?Kn:new go(this);var So=Mt.apply(Kn,Zn);return So.__actions__.push({func:I0,args:[Br],thisArg:nt}),new Ms(So,Qr)}return ko&&Do?Mt.apply(this,Zn):(So=this.thru(Br),ko?gn?So.value()[0]:So.value():So)})}),bs(["pop","push","shift","sort","splice","unshift"],function(Mt){var Vt=$u[Mt],qt=/^(?:push|sort|unshift)$/.test(Mt)?"tap":"thru",gn=/^(?:pop|shift)$/.test(Mt);Ln.prototype[Mt]=function(){var Rn=arguments;if(gn&&!this.__chain__){var Un=this.value();return Vt.apply(Po(Un)?Un:[],Rn)}return this[qt](function(Kn){return Vt.apply(Po(Kn)?Kn:[],Rn)})}}),_l(go.prototype,function(Mt,Vt){var qt=Ln[Vt];if(qt){var gn=qt.name+"";Go.call(Xu,gn)||(Xu[gn]=[]),Xu[gn].push({name:Vt,func:qt})}}),Xu[An(nt,bt).name]=[{name:"wrapper",func:nt}],go.prototype.clone=N0,go.prototype.reverse=D0,go.prototype.value=Qs,Ln.prototype.at=Lv,Ln.prototype.chain=Fv,Ln.prototype.commit=Uv,Ln.prototype.next=zv,Ln.prototype.plant=Vv,Ln.prototype.reverse=Hv,Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=Gv,Ln.prototype.first=Ln.prototype.head,Pu&&(Ln.prototype[Pu]=Wv),Ln},Au=Uy();ss?((ss.exports=Au)._=Au,mu._=Au):ts._=Au}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const videoTimetoSeconds=tt=>{const[et,nt,rt]=tt.split(":"),it=parseInt(et,10),ot=parseInt(nt,10),at=parseInt(rt,10);return it*3600+ot*60+at},getSelectedNodeTimestamps=(tt,et)=>{if(!et)return null;const nt=tt.filter(ot=>ot.show_title&&ot.link&&ot.show_title===et.show_title&&ot.episode_title===et.episode_title),rt=lodashExports.groupBy(nt,ot=>ot.timestamp),it=lodashExports.values(rt).reduce((ot,at)=>(at[0]&&ot.push(at[0]),ot),[]);return it.sort((ot,at)=>{var ht,dt;const[st]=((ht=ot.timestamp)==null?void 0:ht.split("-"))||[""],[lt]=((dt=at.timestamp)==null?void 0:dt.split("-"))||[""],ct=videoTimetoSeconds(st),ut=videoTimetoSeconds(lt);return ct-ut}),it},styles="",getElementsMemoized=()=>{const tt={};return()=>{if(tt.inner&&tt.body)return tt;const et=document.querySelector("body"),nt=document.createElement("div"),rt=document.createElement("div"),it=document.createElement("div"),ot=document.createElement("div"),at=()=>{nt.classList.toggle("hide")};return it.addEventListener("click",at),ot.addEventListener("click",at),nt.classList.add("loggerWrapper"),nt.classList.add("hide"),rt.classList.add("loggerInner"),it.classList.add("close"),ot.classList.add("open"),it.textContent="X",ot.textContent="OPEN LOG",et==null||et.appendChild(nt),et==null||et.appendChild(ot),nt.appendChild(it),nt.appendChild(rt),tt.body=et,tt.inner=rt,{body:et,inner:rt}}},getElements=getElementsMemoized(),variants=["log","info","warn","error"],logMessage=(tt,et)=>{const{inner:nt}=getElements(),rt=document.createElement("span");rt.textContent=tt,rt.classList.add("message"),rt.classList.add(et),nt.appendChild(rt)},overrideConsole=()=>{if(!window.location.hostname.includes("local"))return;const tt=function(et){const nt=variants.reduce((rt,it)=>({...rt,[it](...ot){et[it](...ot),logMessage(JSON.stringify(ot,null," "),it)}}),{});return{...et,...nt}}(window.console);window.console=tt},convertToChatMessage=tt=>{const et=/((http|https):\/\/[^\s]+)/g,nt=/@(\w+)/g;let rt=tt.replace(/\\/g,"");return rt=rt.replace(/'/g,"’"),rt=rt.replace(/\n/g,"
"),rt=rt.replace(et,'$1'),rt=rt.replace(nt,'@$1'),rt},useIsMatchBreakpoint=(tt,et="down")=>{const nt=useTheme(),[rt,it]=reactExports.useState(!1),ot=nt.breakpoints[et](tt).split("@media")[1].trim();return reactExports.useEffect(()=>{const at=()=>{const{matches:st}=window.matchMedia(ot);it(st)};return at(),window.addEventListener("resize",at),()=>window.removeEventListener("resize",at)},[ot]),rt},CheckIcon=tt=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),BudgetStep=({onClick:tt,loading:et})=>{const[nt]=useUserStore(rt=>[rt.budget]);return jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Flex,{align:"center",direction:"row",justify:"space-between",mb:20,children:jsxRuntimeExports.jsx(Flex,{align:"center",direction:"row",children:jsxRuntimeExports.jsx(StyledText$9,{children:"Approve Cost"})})}),jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",justify:"space-between",mb:20,children:[jsxRuntimeExports.jsxs(Cost,{children:[jsxRuntimeExports.jsx("div",{className:"title",children:"COST"}),jsxRuntimeExports.jsx("div",{className:"value",children:"10 sats"})]}),jsxRuntimeExports.jsxs(Budget$1,{children:[jsxRuntimeExports.jsx("div",{className:"title",children:"BUDGET"}),jsxRuntimeExports.jsxs("div",{className:"value",children:[formatBudget(nt)," sats"]})]})]}),jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Button$2,{color:"secondary",disabled:et,onClick:tt,size:"large",startIcon:jsxRuntimeExports.jsx(CheckIcon,{}),type:"submit",variant:"contained",children:"Approve"})})]})},Cost=styled$4(Flex).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +}`;var Do=hw(function(){return $o(Un,co+"return "+Br).apply(nt,Kn)});if(Do.source=Br,r1(Do))throw Do;return Do}function i4(Mt){return Zo(Mt).toLowerCase()}function o4(Mt){return Zo(Mt).toUpperCase()}function a4(Mt,Vt,qt){if(Mt=Zo(Mt),Mt&&(qt||Vt===nt))return bm(Mt);if(!Mt||!(Vt=Os(Vt)))return Mt;var gn=os(Mt),Rn=os(Vt),Un=ba(gn,Rn),Kn=lp(gn,Rn)+1;return Fu(gn,Un,Kn).join("")}function s4(Mt,Vt,qt){if(Mt=Zo(Mt),Mt&&(qt||Vt===nt))return Mt.slice(0,dp(Mt)+1);if(!Mt||!(Vt=Os(Vt)))return Mt;var gn=os(Mt),Rn=lp(gn,os(Vt))+1;return Fu(gn,0,Rn).join("")}function l4(Mt,Vt,qt){if(Mt=Zo(Mt),Mt&&(qt||Vt===nt))return Mt.replace(_n,"");if(!Mt||!(Vt=Os(Vt)))return Mt;var gn=os(Mt),Rn=ba(gn,os(Vt));return Fu(gn,Rn).join("")}function c4(Mt,Vt){var qt=Lt,gn=jt;if(hs(Vt)){var Rn="separator"in Vt?Vt.separator:Rn;qt="length"in Vt?jo(Vt.length):qt,gn="omission"in Vt?Os(Vt.omission):gn}Mt=Zo(Mt);var Un=Mt.length;if(Gu(Mt)){var Kn=os(Mt);Un=Kn.length}if(qt>=Un)return Mt;var Zn=qt-nu(gn);if(Zn<1)return gn;var or=Kn?Fu(Kn,0,Zn).join(""):Mt.slice(0,Zn);if(Rn===nt)return or+gn;if(Kn&&(Zn+=or.length-Zn),i1(Rn)){if(Mt.slice(Zn).search(Rn)){var Tr,Ar=or;for(Rn.global||(Rn=Ss(Rn.source,Zo(ar.exec(Rn))+"g")),Rn.lastIndex=0;Tr=Rn.exec(Ar);)var Br=Tr.index;or=or.slice(0,Br===nt?Zn:Br)}}else if(Mt.indexOf(Os(Rn),Zn)!=Zn){var Qr=or.lastIndexOf(Rn);Qr>-1&&(or=or.slice(0,Qr))}return or+gn}function u4(Mt){return Mt=Zo(Mt),Mt&&Xr.test(Mt)?Mt.replace(ur,fp):Mt}var h4=Bt(function(Mt,Vt,qt){return Mt+(qt?" ":"")+Vt.toUpperCase()}),s1=S0("toUpperCase");function uw(Mt,Vt,qt){return Mt=Zo(Mt),Vt=qt?nt:Vt,Vt===nt?Fp(Mt)?pp(Mt):Oy(Mt):Mt.match(Vt)||[]}var hw=po(function(Mt,Vt){try{return Wo(Mt,nt,Vt)}catch(qt){return r1(qt)?qt:new Eo(qt)}}),d4=Oo(function(Mt,Vt){return bs(Vt,function(qt){qt=zu(qt),su(Mt,qt,e1(Mt[qt],Mt))}),Mt});function f4(Mt){var Vt=Mt==null?0:Mt.length,qt=bo();return Mt=Vt?ga(Mt,function(gn){if(typeof gn[1]!="function")throw new Hs(at);return[qt(gn[0]),gn[1]]}):[],po(function(gn){for(var Rn=-1;++Rnzt)return[];var qt=Ut,gn=Ps(Mt,Ut);Vt=bo(Vt),Mt-=Ut;for(var Rn=bu(gn,Vt);++qt0||Vt<0)?new go(qt):(Mt<0?qt=qt.takeRight(-Mt):Mt&&(qt=qt.drop(Mt)),Vt!==nt&&(Vt=jo(Vt),qt=Vt<0?qt.dropRight(-Vt):qt.take(Vt-Mt)),qt)},go.prototype.takeRightWhile=function(Mt){return this.reverse().takeWhile(Mt).reverse()},go.prototype.toArray=function(){return this.take(Ut)},_l(go.prototype,function(Mt,Vt){var qt=/^(?:filter|find|map|reject)|While$/.test(Vt),gn=/^(?:head|last)$/.test(Vt),Rn=Ln[gn?"take"+(Vt=="last"?"Right":""):Vt],Un=gn||/^find/.test(Vt);Rn&&(Ln.prototype[Vt]=function(){var Kn=this.__wrapped__,Zn=gn?[1]:arguments,or=Kn instanceof go,Tr=Zn[0],Ar=or||Po(Kn),Br=function(Fo){var Vo=Rn.apply(Ln,Dl([Fo],Zn));return gn&&Qr?Vo[0]:Vo};Ar&&qt&&typeof Tr=="function"&&Tr.length!=1&&(or=Ar=!1);var Qr=this.__chain__,co=!!this.__actions__.length,ko=Un&&!Qr,Do=or&&!co;if(!Un&&Ar){Kn=Do?Kn:new go(this);var So=Mt.apply(Kn,Zn);return So.__actions__.push({func:I0,args:[Br],thisArg:nt}),new Ms(So,Qr)}return ko&&Do?Mt.apply(this,Zn):(So=this.thru(Br),ko?gn?So.value()[0]:So.value():So)})}),bs(["pop","push","shift","sort","splice","unshift"],function(Mt){var Vt=$u[Mt],qt=/^(?:push|sort|unshift)$/.test(Mt)?"tap":"thru",gn=/^(?:pop|shift)$/.test(Mt);Ln.prototype[Mt]=function(){var Rn=arguments;if(gn&&!this.__chain__){var Un=this.value();return Vt.apply(Po(Un)?Un:[],Rn)}return this[qt](function(Kn){return Vt.apply(Po(Kn)?Kn:[],Rn)})}}),_l(go.prototype,function(Mt,Vt){var qt=Ln[Vt];if(qt){var gn=qt.name+"";Go.call(Xu,gn)||(Xu[gn]=[]),Xu[gn].push({name:Vt,func:qt})}}),Xu[An(nt,bt).name]=[{name:"wrapper",func:nt}],go.prototype.clone=N0,go.prototype.reverse=D0,go.prototype.value=Qs,Ln.prototype.at=Lv,Ln.prototype.chain=Fv,Ln.prototype.commit=Uv,Ln.prototype.next=zv,Ln.prototype.plant=Vv,Ln.prototype.reverse=Hv,Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=Gv,Ln.prototype.first=Ln.prototype.head,Pu&&(Ln.prototype[Pu]=Wv),Ln},Au=Uy();ss?((ss.exports=Au)._=Au,mu._=Au):ts._=Au}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const videoTimetoSeconds=tt=>{const[et,nt,rt]=tt.split(":"),it=parseInt(et,10),ot=parseInt(nt,10),at=parseInt(rt,10);return it*3600+ot*60+at},getSelectedNodeTimestamps=(tt,et)=>{if(!et)return null;const nt=tt.filter(ot=>ot.show_title&&ot.link&&ot.show_title===et.show_title||ot.show_title&&ot.link&&ot.show_title===et.show_title&&ot.episode_title===et.episode_title),rt=lodashExports.groupBy(nt,ot=>ot.timestamp),it=lodashExports.values(rt).reduce((ot,at)=>(at[0]&&ot.push(at[0]),ot),[]);return it.sort((ot,at)=>{var ht,dt;const[st]=((ht=ot.timestamp)==null?void 0:ht.split("-"))||[""],[lt]=((dt=at.timestamp)==null?void 0:dt.split("-"))||[""],ct=videoTimetoSeconds(st),ut=videoTimetoSeconds(lt);return ct-ut}),it},styles="",getElementsMemoized=()=>{const tt={};return()=>{if(tt.inner&&tt.body)return tt;const et=document.querySelector("body"),nt=document.createElement("div"),rt=document.createElement("div"),it=document.createElement("div"),ot=document.createElement("div"),at=()=>{nt.classList.toggle("hide")};return it.addEventListener("click",at),ot.addEventListener("click",at),nt.classList.add("loggerWrapper"),nt.classList.add("hide"),rt.classList.add("loggerInner"),it.classList.add("close"),ot.classList.add("open"),it.textContent="X",ot.textContent="OPEN LOG",et==null||et.appendChild(nt),et==null||et.appendChild(ot),nt.appendChild(it),nt.appendChild(rt),tt.body=et,tt.inner=rt,{body:et,inner:rt}}},getElements=getElementsMemoized(),variants=["log","info","warn","error"],logMessage=(tt,et)=>{const{inner:nt}=getElements(),rt=document.createElement("span");rt.textContent=tt,rt.classList.add("message"),rt.classList.add(et),nt.appendChild(rt)},overrideConsole=()=>{if(!window.location.hostname.includes("local"))return;const tt=function(et){const nt=variants.reduce((rt,it)=>({...rt,[it](...ot){et[it](...ot),logMessage(JSON.stringify(ot,null," "),it)}}),{});return{...et,...nt}}(window.console);window.console=tt},convertToChatMessage=tt=>{const et=/((http|https):\/\/[^\s]+)/g,nt=/@(\w+)/g;let rt=tt.replace(/\\/g,"");return rt=rt.replace(/'/g,"’"),rt=rt.replace(/\n/g,"
"),rt=rt.replace(et,'$1'),rt=rt.replace(nt,'@$1'),rt},useIsMatchBreakpoint=(tt,et="down")=>{const nt=useTheme(),[rt,it]=reactExports.useState(!1),ot=nt.breakpoints[et](tt).split("@media")[1].trim();return reactExports.useEffect(()=>{const at=()=>{const{matches:st}=window.matchMedia(ot);it(st)};return at(),window.addEventListener("resize",at),()=>window.removeEventListener("resize",at)},[ot]),rt},CheckIcon=tt=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),BudgetStep=({onClick:tt,loading:et})=>{const[nt]=useUserStore(rt=>[rt.budget]);return jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Flex,{align:"center",direction:"row",justify:"space-between",mb:20,children:jsxRuntimeExports.jsx(Flex,{align:"center",direction:"row",children:jsxRuntimeExports.jsx(StyledText$9,{children:"Approve Cost"})})}),jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",justify:"space-between",mb:20,children:[jsxRuntimeExports.jsxs(Cost,{children:[jsxRuntimeExports.jsx("div",{className:"title",children:"COST"}),jsxRuntimeExports.jsx("div",{className:"value",children:"10 sats"})]}),jsxRuntimeExports.jsxs(Budget$1,{children:[jsxRuntimeExports.jsx("div",{className:"title",children:"BUDGET"}),jsxRuntimeExports.jsxs("div",{className:"value",children:[formatBudget(nt)," sats"]})]})]}),jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Button$2,{color:"secondary",disabled:et,onClick:tt,size:"large",startIcon:jsxRuntimeExports.jsx(CheckIcon,{}),type:"submit",variant:"contained",children:"Approve"})})]})},Cost=styled$4(Flex).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${colors.GRAY7}; @@ -5994,7 +5994,7 @@ function print() { __p += __j.call(arguments, '') } align-items: center; justify-content: center; } -`,defaultData$2={description:"",mission_statement:"",search_term:"",title:""},AppBar=()=>{const[tt,et]=reactExports.useState(defaultData$2);return reactExports.useEffect(()=>{(async()=>{try{const rt=await getAboutData();et(rt)}catch(rt){console.warn(rt)}})()},[]),jsxRuntimeExports.jsxs(Header$2,{children:[jsxRuntimeExports.jsxs(TitleWrapper,{children:[jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:tt.title&&jsxRuntimeExports.jsx(Text$1,{className:"title",color:"white",children:tt.title})}),jsxRuntimeExports.jsx(Text$1,{className:"subtitle",children:" Second Brain"})]}),jsxRuntimeExports.jsx(Stats,{})]})},Header$2=styled$4(Flex).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,defaultData$2={description:"",mission_statement:"",search_term:"",title:""},AppBar=()=>{const[tt,et]=reactExports.useState(defaultData$2);return reactExports.useEffect(()=>{(async()=>{try{const rt=await getAboutData();et(rt)}catch(rt){console.warn(rt)}})()},[]),jsxRuntimeExports.jsxs(Header$3,{children:[jsxRuntimeExports.jsxs(TitleWrapper,{children:[jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:tt.title&&jsxRuntimeExports.jsx(Text$1,{className:"title",color:"white",children:tt.title})}),jsxRuntimeExports.jsx(Text$1,{className:"subtitle",children:" Second Brain"})]}),jsxRuntimeExports.jsx(Stats,{})]})},Header$3=styled$4(Flex).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; position: absolute; top: 0px; @@ -6758,7 +6758,7 @@ ${({disabled:tt})=>tt&&Ae` background: ${({selected:tt})=>tt?colors.gray300:colors.gray200}; } } -`,notify=tt=>{toast(jsxRuntimeExports.jsx(ToastMessage,{message:tt}),{icon:!1,position:toast.POSITION.BOTTOM_CENTER,type:tt===BOOST_SUCCESS?"success":"error"})},Booster=({count:tt=0,updateCount:et,content:nt,readOnly:rt,refId:it})=>{const[ot,at]=reactExports.useState(!1),[st,lt]=reactExports.useState(!1),[ct]=useUserStore(pt=>[pt.setBudget]);reactExports.useEffect(()=>{lt(!1),at(!1)},[it]);let{image_url:ut}=nt||{};ut&&(ut=ut.replace(".jpg","_l.jpg"));const ht=5;async function dt(){if(!(ot||!it)){at(!0);try{const pt=await boost(it,ht);lt(!0),notify(BOOST_SUCCESS),et&&et(tt+ht),pt.budget&&ct(pt.budget)}catch{notify(BOOST_ERROR_BUDGET)}at(!1)}}return rt?tt?jsxRuntimeExports.jsx(Pill,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",justify:"center",children:[jsxRuntimeExports.jsx(MdBolt,{fontSize:12}),jsxRuntimeExports.jsx("div",{style:{fontSize:10},children:tt||0})]})}):null:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Pill,{disabled:ot,onClick:async()=>{st||ot||await dt()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:ot?jsxRuntimeExports.jsx(_default,{color:"#fff",loading:!0,size:10}):jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",justify:"space-around",children:[jsxRuntimeExports.jsx(BoostIcon,{style:{color:colors.white}}),jsxRuntimeExports.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},defaultData={isPlaying:!1},usePlayerStore=react(tt=>({...defaultData,setIsPlaying:et=>tt({isPlaying:et})})),NotesIcon=tt=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"notes",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_1473_73722)",children:jsxRuntimeExports.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),Description=({stateless:tt,node:et})=>jsxRuntimeExports.jsxs(Flex,{grow:1,shrink:1,children:[jsxRuntimeExports.jsx(Header$1,{children:tt&&jsxRuntimeExports.jsxs(Heading$2,{children:[jsxRuntimeExports.jsx("div",{className:"icon",children:jsxRuntimeExports.jsx(NotesIcon,{})}),jsxRuntimeExports.jsx("div",{className:"title",children:"Description"})]})}),jsxRuntimeExports.jsx(Box$1,{children:et!=null&&et.description?`"${et==null?void 0:et.description}"`:"..."})]}),Heading$2=styled$4(Flex).attrs({direction:"row",align:"center"})` +`,notify=tt=>{toast(jsxRuntimeExports.jsx(ToastMessage,{message:tt}),{icon:!1,position:toast.POSITION.BOTTOM_CENTER,type:tt===BOOST_SUCCESS?"success":"error"})},Booster=({count:tt=0,updateCount:et,content:nt,readOnly:rt,refId:it})=>{const[ot,at]=reactExports.useState(!1),[st,lt]=reactExports.useState(!1),[ct]=useUserStore(pt=>[pt.setBudget]);reactExports.useEffect(()=>{lt(!1),at(!1)},[it]);let{image_url:ut}=nt||{};ut&&(ut=ut.replace(".jpg","_l.jpg"));const ht=5;async function dt(){if(!(ot||!it)){at(!0);try{const pt=await boost(it,ht);lt(!0),notify(BOOST_SUCCESS),et&&et(tt+ht),pt.budget&&ct(pt.budget)}catch{notify(BOOST_ERROR_BUDGET)}at(!1)}}return rt?tt?jsxRuntimeExports.jsx(Pill,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",justify:"center",children:[jsxRuntimeExports.jsx(MdBolt,{fontSize:12}),jsxRuntimeExports.jsx("div",{style:{fontSize:10},children:tt||0})]})}):null:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Pill,{disabled:ot,onClick:async()=>{st||ot||await dt()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:ot?jsxRuntimeExports.jsx(_default,{color:"#fff",loading:!0,size:10}):jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",justify:"space-around",children:[jsxRuntimeExports.jsx(BoostIcon,{style:{color:colors.white}}),jsxRuntimeExports.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},defaultData={isPlaying:!1},usePlayerStore=react(tt=>({...defaultData,setIsPlaying:et=>tt({isPlaying:et})})),NotesIcon=tt=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"notes",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_1473_73722)",children:jsxRuntimeExports.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),Description=({stateless:tt,node:et})=>jsxRuntimeExports.jsxs(Flex,{grow:1,shrink:1,children:[jsxRuntimeExports.jsx(Header$2,{children:tt&&jsxRuntimeExports.jsxs(Heading$2,{children:[jsxRuntimeExports.jsx("div",{className:"icon",children:jsxRuntimeExports.jsx(NotesIcon,{})}),jsxRuntimeExports.jsx("div",{className:"title",children:"Description"})]})}),jsxRuntimeExports.jsx(Box$1,{children:et!=null&&et.description?`"${et==null?void 0:et.description}"`:"..."})]}),Heading$2=styled$4(Flex).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${colors.GRAY3}; @@ -6775,7 +6775,7 @@ ${({disabled:tt})=>tt&&Ae` letter-spacing: 1px; text-transform: uppercase; } -`,Header$1=styled$4(Flex).attrs({direction:"row",align:"center",justify:"space-between"})` +`,Header$2=styled$4(Flex).attrs({direction:"row",align:"center",justify:"space-between"})` margin-bottom: 18px; `,Box$1=styled$4(Flex)` color: ${colors.white}; @@ -6786,7 +6786,7 @@ ${({disabled:tt})=>tt&&Ae` font-style: normal; font-weight: 400; line-height: 18px; -`,CopyIcon=tt=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"content_copy",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_1489_75628)",children:jsxRuntimeExports.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),Transcript=({stateless:tt,node:et})=>{const[nt,rt]=useAppStore(st=>[st.transcriptIsOpen,st.setTranscriptOpen]),[it,ot]=reactExports.useState(!1);if(!tt&&!nt)return null;const at=st=>{st!==void 0&&(navigator.clipboard.writeText(st),ot(!0))};return jsxRuntimeExports.jsxs(Flex,{grow:1,shrink:1,children:[jsxRuntimeExports.jsxs(Header,{children:[tt&&jsxRuntimeExports.jsxs(Heading$1,{children:[jsxRuntimeExports.jsx("div",{className:"icon",children:jsxRuntimeExports.jsx(NotesIcon,{})}),jsxRuntimeExports.jsx("div",{className:"title",children:"Transcript"})]}),et!=null&&et.text?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:it?jsxRuntimeExports.jsxs(CopiedButton,{align:"center",direction:"row",justify:"flex-start",children:[jsxRuntimeExports.jsx("div",{className:"icon",children:jsxRuntimeExports.jsx(CheckIcon,{})}),jsxRuntimeExports.jsx("div",{className:"text",children:"Copied"})]}):jsxRuntimeExports.jsx(Button$2,{endIcon:jsxRuntimeExports.jsx(CopyIcon,{}),onPointerDown:()=>at(et==null?void 0:et.text),size:"small",variant:"outlined",children:"Copy"})}):jsxRuntimeExports.jsx("div",{}),!tt&&jsxRuntimeExports.jsx(CloseButton$1,{onClick:()=>{rt(!1)},children:jsxRuntimeExports.jsx(MdClose,{fontSize:35})})]}),jsxRuntimeExports.jsx(Box,{children:et!=null&&et.text?`"${et==null?void 0:et.text}"`:"..."})]})},Heading$1=styled$4(Flex).attrs({direction:"row",align:"center"})` +`,CopyIcon=tt=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"content_copy",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_1489_75628)",children:jsxRuntimeExports.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),Transcript=({stateless:tt,node:et})=>{const[nt,rt]=useAppStore(st=>[st.transcriptIsOpen,st.setTranscriptOpen]),[it,ot]=reactExports.useState(!1);if(!tt&&!nt)return null;const at=st=>{st!==void 0&&(navigator.clipboard.writeText(st),ot(!0))};return jsxRuntimeExports.jsxs(Flex,{grow:1,shrink:1,children:[jsxRuntimeExports.jsxs(Header$1,{children:[tt&&jsxRuntimeExports.jsxs(Heading$1,{children:[jsxRuntimeExports.jsx("div",{className:"icon",children:jsxRuntimeExports.jsx(NotesIcon,{})}),jsxRuntimeExports.jsx("div",{className:"title",children:"Transcript"})]}),et!=null&&et.text?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:it?jsxRuntimeExports.jsxs(CopiedButton,{align:"center",direction:"row",justify:"flex-start",children:[jsxRuntimeExports.jsx("div",{className:"icon",children:jsxRuntimeExports.jsx(CheckIcon,{})}),jsxRuntimeExports.jsx("div",{className:"text",children:"Copied"})]}):jsxRuntimeExports.jsx(Button$2,{endIcon:jsxRuntimeExports.jsx(CopyIcon,{}),onPointerDown:()=>at(et==null?void 0:et.text),size:"small",variant:"outlined",children:"Copy"})}):jsxRuntimeExports.jsx("div",{}),!tt&&jsxRuntimeExports.jsx(CloseButton$1,{onClick:()=>{rt(!1)},children:jsxRuntimeExports.jsx(MdClose,{fontSize:35})})]}),jsxRuntimeExports.jsx(Box,{children:et!=null&&et.text?`"${et==null?void 0:et.text}"`:"..."})]})},Heading$1=styled$4(Flex).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${colors.GRAY3}; @@ -6803,7 +6803,7 @@ ${({disabled:tt})=>tt&&Ae` letter-spacing: 1px; text-transform: uppercase; } -`,Header=styled$4(Flex).attrs({direction:"row",align:"center",justify:"space-between"})` +`,Header$1=styled$4(Flex).attrs({direction:"row",align:"center",justify:"space-between"})` margin-bottom: 18px; `,CloseButton$1=styled$4(Flex).attrs({})` color: ${colors.mainBottomIcons}; @@ -6959,17 +6959,65 @@ ${({disabled:tt})=>tt&&Ae` height: 40px; border-radius: 50%; background: green; -`,Person=()=>{const tt=useSelectedNode(),et=(tt==null?void 0:tt.name)||(tt==null?void 0:tt.label);return jsxRuntimeExports.jsxs(Flex,{direction:"row",px:24,py:16,children:[jsxRuntimeExports.jsx(Avatar$1,{size:80,src:(tt==null?void 0:tt.image_url)||"person_placeholder_img.png",type:"person"}),jsxRuntimeExports.jsx(Flex,{p:20,children:jsxRuntimeExports.jsx(Text$1,{color:"primaryText1",kind:"bigHeading",children:et})})]})},Wrapper$5=styled$4(Flex)` +`,Person=()=>{const tt=useSelectedNode(),et=(tt==null?void 0:tt.name)||(tt==null?void 0:tt.label);return jsxRuntimeExports.jsxs(Flex,{direction:"row",px:24,py:16,children:[jsxRuntimeExports.jsx(Avatar$1,{size:80,src:(tt==null?void 0:tt.image_url)||"person_placeholder_img.png",type:"person"}),jsxRuntimeExports.jsx(Flex,{p:20,children:jsxRuntimeExports.jsx(Text$1,{color:"primaryText1",kind:"bigHeading",children:et})})]})},PlaylistPlayIcon=tt=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 16",fill:"none",children:jsxRuntimeExports.jsx("g",{children:jsxRuntimeExports.jsx("path",{d:"M3.54126 13.2369C3.36418 13.2369 3.21574 13.177 3.09595 13.0572C2.97616 12.9373 2.91626 12.7888 2.91626 12.6117C2.91626 12.4345 2.97616 12.2861 3.09595 12.1665C3.21574 12.0468 3.36418 11.987 3.54126 11.987H8.54926C8.72634 11.987 8.87478 12.0469 8.99457 12.1667C9.11436 12.2866 9.17426 12.4351 9.17426 12.6122C9.17426 12.7894 9.11436 12.9378 8.99457 13.0575C8.87478 13.1771 8.72634 13.2369 8.54926 13.2369H3.54126ZM3.54126 9.9036C3.36418 9.9036 3.21574 9.84369 3.09595 9.72385C2.97616 9.60401 2.91626 9.45551 2.91626 9.27835C2.91626 9.10119 2.97616 8.95278 3.09595 8.83312C3.21574 8.71347 3.36418 8.65365 3.54126 8.65365H11.8586C12.0356 8.65365 12.1841 8.71356 12.3039 8.8334C12.4237 8.95324 12.4836 9.10174 12.4836 9.2789C12.4836 9.45606 12.4237 9.60447 12.3039 9.72413C12.1841 9.84378 12.0356 9.9036 11.8586 9.9036H3.54126ZM3.54126 6.57027C3.36418 6.57027 3.21574 6.51035 3.09595 6.39052C2.97616 6.27067 2.91626 6.12217 2.91626 5.94502C2.91626 5.76785 2.97616 5.61944 3.09595 5.49979C3.21574 5.38014 3.36418 5.32031 3.54126 5.32031H11.8586C12.0356 5.32031 12.1841 5.38023 12.3039 5.50006C12.4237 5.61991 12.4836 5.76841 12.4836 5.94556C12.4836 6.12273 12.4237 6.27114 12.3039 6.39079C12.1841 6.51044 12.0356 6.57027 11.8586 6.57027H3.54126ZM14.0989 16.6936C14.0348 16.73 13.9721 16.7495 13.9106 16.7521C13.8492 16.7548 13.7864 16.7423 13.7223 16.7145C13.6582 16.6867 13.608 16.6456 13.5717 16.5911C13.5354 16.5366 13.5172 16.4704 13.5172 16.3924V11.9726C13.5172 11.8956 13.5354 11.8283 13.5717 11.7706C13.608 11.7129 13.6582 11.6702 13.7223 11.6424C13.7864 11.6147 13.8492 11.6021 13.9106 11.6048C13.9721 11.6074 14.0348 11.6269 14.0989 11.6633L17.4434 13.8604C17.507 13.8984 17.5514 13.9459 17.5768 14.0029C17.6022 14.06 17.6149 14.1202 17.6149 14.1836C17.6149 14.2469 17.6022 14.3069 17.5768 14.3634C17.5514 14.4198 17.507 14.4669 17.4434 14.5046L14.0989 16.6936Z",fill:"#909BAA"})})}),Wrapper$5=styled$4(Flex)` flex: 1; min-height: 100%; flex-direction: column; border-bottom: 1px solid #101317; box-shadow: 0px 5px 6px rgba(0, 0, 0, 0.5); z-index: 0; -`,EpisodeWrapper=styled$4(Flex).attrs(()=>({direction:"row"}))` + + .subtitle { + font-size: 0.75rem; + font-weight: 400; + color: ${colors.GRAY6}; + margin-left: 8px; + max-width: 160px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } +`,EpisodeWrapper=styled$4(Flex).attrs({})` + direction: row; cursor: pointer; color: ${colors.primaryText1}; -`,EpisodePanel=({node:tt,onClick:et})=>{var nt;return jsxRuntimeExports.jsx(EpisodeWrapper,{onClick:et,py:12,children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Flex,{align:"center",direction:"row",children:jsxRuntimeExports.jsx(Text$1,{color:"primaryText1",kind:"regular",children:tt.episode_title})}),jsxRuntimeExports.jsx(Flex,{pt:4,children:jsxRuntimeExports.jsxs(Text$1,{color:"mainBottomIcons",kind:"regular",children:[((nt=tt==null?void 0:tt.children)==null?void 0:nt.length)||0," clips"]})})]})})},Show=()=>{const[tt,et]=useDataStore(it=>[it.selectedNode,it.setSelectedNode]),nt=useGraphData(),rt=reactExports.useMemo(()=>{var ot;const it={};return(ot=tt==null?void 0:tt.children)!=null&&ot.length&&tt.children.forEach(at=>{const st=nt.nodes.find(lt=>lt.ref_id===at);st&&(it[at]=st)}),Object.values(it).filter(at=>at.node_type==="episode").sort((at,st)=>(st.weight||0)-(at.weight||0))},[nt.nodes,tt]);return jsxRuntimeExports.jsxs(Wrapper$5,{p:20,children:[jsxRuntimeExports.jsxs(Flex,{direction:"row",children:[jsxRuntimeExports.jsx(Flex,{pr:24,children:jsxRuntimeExports.jsx(Avatar$1,{size:80,src:(tt==null?void 0:tt.image_url)||"audio_default.svg",type:"audio"})}),jsxRuntimeExports.jsxs(Flex,{grow:1,shrink:1,children:[jsxRuntimeExports.jsx(Text$1,{kind:"bigHeading",children:(tt==null?void 0:tt.show_title)||"Unknown"}),jsxRuntimeExports.jsx(Flex,{py:16,children:jsxRuntimeExports.jsx(Actions,{})})]})]}),jsxRuntimeExports.jsxs(Flex,{direction:"column",pt:40,children:[jsxRuntimeExports.jsx(Flex,{pb:20,children:jsxRuntimeExports.jsx(Text$1,{kind:"mediumBold",children:"Related Episodes"})}),rt.map(it=>jsxRuntimeExports.jsx(EpisodePanel,{node:it,onClick:()=>et(it)},it.ref_id))]})]})},Topic=()=>{const tt=useSelectedNode();return jsxRuntimeExports.jsx(Flex,{align:"center",justify:"center",children:jsxRuntimeExports.jsx(Text$1,{color:"primaryText1",kind:"hugeHeading",children:tt==null?void 0:tt.label})})},TwitData=()=>{const tt=useSelectedNode(),{date:et,boost:nt,text:rt,name:it,verified:ot,profile_picture:at,twitter_handle:st,ref_id:lt}=tt||{},ct=(tt==null?void 0:tt.tweet_id)||"",[ut,ht]=reactExports.useState(nt||0);return tt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",p:24,children:[jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",pr:16,children:[jsxRuntimeExports.jsx(PictureWrapper,{children:jsxRuntimeExports.jsx(Avatar$1,{rounded:!0,size:58,src:at||"",type:"person"})}),jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsxs(Name,{align:"center",direction:"row",children:[it,ot&&jsxRuntimeExports.jsx("div",{className:"verification",children:jsxRuntimeExports.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),st&&jsxRuntimeExports.jsxs(TwitterHandle,{children:["@",st]})]})]}),jsxRuntimeExports.jsxs(Flex,{grow:1,shrink:1,children:[jsxRuntimeExports.jsx(TwitText,{"data-testid":"episode-description",children:rt}),jsxRuntimeExports.jsx(Flex,{direction:"row",justify:"flex-start",children:!!et&&jsxRuntimeExports.jsx(Date$2,{children:hooks.unix(et).format("ll")})})]}),jsxRuntimeExports.jsx(Flex,{align:"stretch",mt:22,children:jsxRuntimeExports.jsx("a",{href:`https://twitter.com/Interior/status/${ct}?open=system`,children:jsxRuntimeExports.jsx(StyledButton,{endIcon:jsxRuntimeExports.jsx(LinkIcon,{}),children:"View Tweet "})})})]}),jsxRuntimeExports.jsx(StyledDivider$1,{}),jsxRuntimeExports.jsxs(Flex,{direction:"row",justify:"space-between",pt:14,px:24,children:[jsxRuntimeExports.jsx(BoostAmt,{amt:ut}),jsxRuntimeExports.jsx(Booster,{content:tt,count:ut,refId:lt,updateCount:ht})]})]})},PictureWrapper=styled$4(Flex)` + + .content { + margin-left: 16px; + align-self: stretch; + justify-content: space-between; + display: flex; + flex-direction: column; + width: 100%; + } + + .title { + margin-top: 16px; + display: block; + } + + .clipText { + font-size: 12px; + margin-right: 6px; + } +`,Header=styled$4(Flex)` + flex-direction: column; + border-bottom: 1px solid #101317; + z-index: 0; + padding: 42px 20px; + background-color: #1c1e26; +`,EpisodeHeaderText=styled$4(Text$1)` + font-size: 22px; + font-weight: 700; + max-width: 250px; + -webkit-box-orient: vertical; + max-height: calc(2 * 1.5em); + line-height: 1.5em; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; +`,EpisodePanel=({node:tt,onClick:et})=>{var it,ot;const nt=videoTimetoSeconds(tt.timestamp||""),rt=Math.ceil(nt/60);return jsxRuntimeExports.jsx(EpisodeWrapper,{onClick:et,py:12,children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(Flex,{align:"flex-start",direction:"row",justify:"flex-start",children:[jsxRuntimeExports.jsx(Avatar$1,{size:64,src:(tt==null?void 0:tt.image_url)||"audio_default.svg",type:"show"}),jsxRuntimeExports.jsxs("div",{className:"content",children:[jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",children:[jsxRuntimeExports.jsx(TypeBadge,{type:"episode"}),rt>0&&jsxRuntimeExports.jsxs("div",{className:"subtitle",children:[rt," ",rt===1?"min":"mins"]})]}),jsxRuntimeExports.jsx(Text$1,{className:"title",color:"primaryText1",kind:"regular",children:tt.episode_title})]})]}),jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",justify:"flex-end",pt:4,children:[jsxRuntimeExports.jsxs(Text$1,{className:"clipText",color:"mainBottomIcons",kind:"regular",children:[((it=tt==null?void 0:tt.children)==null?void 0:it.length)||0," ",((ot=tt==null?void 0:tt.children)==null?void 0:ot.length)===1?"Clip":"Clips"]}),jsxRuntimeExports.jsx(PlaylistPlayIcon,{style:{color:colors.white}})]})]})})},Show=()=>{const[tt,et]=useDataStore(at=>[at.selectedNode,at.setSelectedNode]),nt=useGraphData(),[rt,it]=reactExports.useState([]),ot=reactExports.useMemo(()=>{var lt;const at=new Set,st={};if((lt=tt==null?void 0:tt.children)!=null&<.length){tt.children.forEach((ut,ht)=>{var mt,gt,yt,bt;const dt=getSelectedNodeTimestamps((nt==null?void 0:nt.nodes)||[],tt)||[],pt=nt.nodes.find(wt=>wt.ref_id===ut);if(pt){pt.timestamp=(mt=dt[0])==null?void 0:mt.timestamp;const wt=(bt=(yt=(gt=dt[ht])==null?void 0:gt.hosts)==null?void 0:yt[0])==null?void 0:bt.name;wt&&at.add(wt),st[ut]=pt,st[ut]=pt}});const ct=Array.from(at);it(ct)}return Object.values(st).filter(ct=>ct.node_type==="episode").sort((ct,ut)=>(ut.weight||0)-(ct.weight||0))},[nt.nodes,tt]);return jsxRuntimeExports.jsxs(Wrapper$5,{children:[jsxRuntimeExports.jsx(Header,{children:jsxRuntimeExports.jsxs(Flex,{direction:"row",children:[jsxRuntimeExports.jsx(Flex,{pr:24,children:jsxRuntimeExports.jsx(Avatar$1,{size:80,src:(tt==null?void 0:tt.image_url)||"audio_default.svg",type:"show"})}),jsxRuntimeExports.jsx(Flex,{direction:"column",children:jsxRuntimeExports.jsxs(Flex,{direction:"column",grow:1,justify:"space-between",children:[jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",justify:"flex-start",mb:16,children:[jsxRuntimeExports.jsx(TypeBadge,{type:"show"})," ",jsxRuntimeExports.jsxs("div",{className:"subtitle",children:["by ",rt.join(", ")||(tt==null?void 0:tt.show_title)]})]}),jsxRuntimeExports.jsx(EpisodeHeaderText,{kind:"bigHeading",title:(tt==null?void 0:tt.show_title)||"Unknown",children:(tt==null?void 0:tt.show_title)||"Unknown"})]})})]})}),jsxRuntimeExports.jsxs(Flex,{direction:"column",pl:20,pr:20,pt:24,children:[jsxRuntimeExports.jsx(Flex,{pb:20,children:jsxRuntimeExports.jsx(Text$1,{className:"relatedHeader",kind:"medium",children:"Related Episodes"})}),ot.map(at=>jsxRuntimeExports.jsx(EpisodePanel,{node:at,onClick:()=>et(at)},at.ref_id))]})]})},Topic=()=>{const tt=useSelectedNode();return jsxRuntimeExports.jsx(Flex,{align:"center",justify:"center",children:jsxRuntimeExports.jsx(Text$1,{color:"primaryText1",kind:"hugeHeading",children:tt==null?void 0:tt.label})})},TwitData=()=>{const tt=useSelectedNode(),{date:et,boost:nt,text:rt,name:it,verified:ot,profile_picture:at,twitter_handle:st,ref_id:lt}=tt||{},ct=(tt==null?void 0:tt.tweet_id)||"",[ut,ht]=reactExports.useState(nt||0);return tt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",p:24,children:[jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",pr:16,children:[jsxRuntimeExports.jsx(PictureWrapper,{children:jsxRuntimeExports.jsx(Avatar$1,{rounded:!0,size:58,src:at||"",type:"person"})}),jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsxs(Name,{align:"center",direction:"row",children:[it,ot&&jsxRuntimeExports.jsx("div",{className:"verification",children:jsxRuntimeExports.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),st&&jsxRuntimeExports.jsxs(TwitterHandle,{children:["@",st]})]})]}),jsxRuntimeExports.jsxs(Flex,{grow:1,shrink:1,children:[jsxRuntimeExports.jsx(TwitText,{"data-testid":"episode-description",children:rt}),jsxRuntimeExports.jsx(Flex,{direction:"row",justify:"flex-start",children:!!et&&jsxRuntimeExports.jsx(Date$2,{children:hooks.unix(et).format("ll")})})]}),jsxRuntimeExports.jsx(Flex,{align:"stretch",mt:22,children:jsxRuntimeExports.jsx("a",{href:`https://twitter.com/Interior/status/${ct}?open=system`,children:jsxRuntimeExports.jsx(StyledButton,{endIcon:jsxRuntimeExports.jsx(LinkIcon,{}),children:"View Tweet "})})})]}),jsxRuntimeExports.jsx(StyledDivider$1,{}),jsxRuntimeExports.jsxs(Flex,{direction:"row",justify:"space-between",pt:14,px:24,children:[jsxRuntimeExports.jsx(BoostAmt,{amt:ut}),jsxRuntimeExports.jsx(Booster,{content:tt,count:ut,refId:lt,updateCount:ht})]})]})},PictureWrapper=styled$4(Flex)` img { width: 64px; height: 64px diff --git a/build/index.html b/build/index.html index cdb928097..161845542 100644 --- a/build/index.html +++ b/build/index.html @@ -22,7 +22,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Second Brain - +