PageSourceSearch

https://besthomepageever.com/assets/BriefingModal-huPQ7ula-v4.8.9.js

js besthomepageever.com collected 2026-09-24 12:07:28 UTC 76,749 bytes, 1 lines download raw bytes

1import{o as ia}from"./rolldown-runtime-BNNRdYrd-v4.8.9.js";import{A as s,D as r,Dt as $,E as p,Ft as u,Ht as v,I as Qe,K as Ct,N as f,O as P,P as o,Rt as Ze,St as la,Tt as At,V as Ge,Vt as Ce,_ as nt,a as Rt,at as Q,et as oa,gt as ut,ht as i,k as g,lt as na,m as dt,pt as xe,rt as e,s as ua,tt as Ht,x as T,xt as Re,y as zt,zt as ie}from"./vendor-vue-CzpiaCWp-v4.8.9.js";import{_ as da,s as ca,t as Wt}from"./useApi-DlGQ0fYA-v4.8.9.js";import{$ as Ne,B as Yt,D as Ft,F as Me,H as qt,J as yt,K as $t,M as Ae,P as va,St as O,U as jt,V as fa,W as ga,X,Y as ee,at as Oe,ct as qe,et as pa,ft as ma,ht as Qt,it as De,ot as Tt,q as Zt,rt as _a,tt as bt,xt as Jt,yt as j,z as Kt}from"./vendor-vuetify-Cre8B4kd-v4.8.9.js";import{t as ct}from"./user-BJKMrkNZ-v4.8.9.js";import{Dt as ha,Gt as St,Ji as ya,Kn as Xt,Mt as Ee,Ya as Lt,Zn as ba,dn as Pt,dr as wa,fc as ka,ha as Ca,ji as wt,js as $a,ks as Sa,ma as Ta,no as xa,oa as Da,un as je,va as Ia,wo as Va,xn as ea,ya as Ba,yc as Na}from"./vendor-ui-Cuxfda1c-v4.8.9.js";import{t as Je}from"./_plugin-vue_export-helper-K9rsuiWd-v4.8.9.js";import{J as ke,K as ta,b as Ut}from"./index-BrAO_bKX-v4.8.9.js";import{t as Aa}from"./bhe_logo_26-DEihhvbs-v4.8.9.js";import{t as Fa}from"./usePortfolioHoldings-DVjaMSW_-v4.8.9.js";import{t as La}from"./vuedraggable.umd-WUsagQ5C-v4.8.9.js";import{t as Pa}from"./country-flag.esm-CBzYyHft-v4.8.9.js";import{t as Ua}from"./GoProModal-LYf9qUOI-v4.8.9.js";var Ma="/daily_brief_preview_sm.webp",Ea="/daily_brief_preview.webp",Oa="/daily_brief_preview_sm.png",Ga="/daily_brief_preview.png";Re(),Ge();var vt=ua("briefing",()=>{const x=Wt(),m=ct(),_=$([]),G=$([]),d=$(""),N=$(15),C=$([]),A=$(!1),U=$(null),te=$(!1),I=$(!1),Z=p(()=>(m.user?.rank??Ut.Free)>=Ut.Owner),J=p(()=>m.settings?.briefingInterests??[]),q=async()=>{A.value=!0,U.value=null;try{const{data:c}=await x.get("/briefing");_.value=c.items??[],d.value=c.slotId??"",N.value=c.maxInterests??15,C.value=c.freeSet??[],te.value=!0}catch(c){U.value=c?.response?.data?.message??"Could not load your Daily Brief"}finally{A.value=!1}},L=async()=>{if(!I.value)try{const{data:c}=await x.get("/briefing/catalog");G.value=c.catalog??[],N.value=c.maxInterests??N.value,C.value=c.freeSet??C.value,I.value=!0}catch{}},R={CA:["EWC","SPY","QQQ"],GB:["EWU","SPY","QQQ"],AU:["EWA","SPY","QQQ"]},D=$([]);let F=0;const K=async()=>{if(D.value.length&&Date.now()-F<6e4)return;const c=m.user?.country?.alpha2?.toUpperCase()??"",E=R[c];try{const{data:se}=await x.get("/stocks/indices",{params:E?{symbols:E.join(",")}:{}}),we=(se.indices??[]).filter(ge=>!ge.error&&ge.price!=null);E&&we.sort((ge,ot)=>E.indexOf(ge.symbol)-E.indexOf(ot.symbol)),D.value=we,F=Date.now()}catch{}},de={US:"USD",CA:"CAD",GB:"GBP",AU:"AUD",NZ:"NZD",IE:"EUR"},V=$(null);let B=0;const H=p(()=>{const c=m.user?.country?.alpha2?.toUpperCase()??"";return de[c]??"USD"}),_e=async()=>{if(!(V.value&&Date.now()-B<6e4))try{const{data:c}=await x.get("/briefing/crypto-prices");c?.prices&&(V.value=c.prices,B=Date.now())}catch{}},me=$(null);let ce=0;const he=async()=>{if(!(me.value&&Date.now()-ce<3e5))try{const{data:c}=await x.get("/stocks/fear-greed-index");typeof c?.score=="number"&&(me.value={score:c.score,rating:c.rating,ratingFormatted:c.ratingFormatted,color:c.color,date:c.date},ce=Date.now())}catch{}},le=p(()=>{const c=m.settings?.stocks;return[...new Set([...c?.myStocks??[],...c?.watchlist??[]])]}),ue=$([]),re=$(!1);let oe=0;const z=async()=>{if(!(re.value&&Date.now()-oe<3e5)){if(!le.value.length){ue.value=[],re.value=!0;return}try{const{data:c}=await x.get("/briefing/portfolio-news",{params:{symbols:le.value.join(",")}});ue.value=c.items??[],re.value=!0,oe=Date.now()}catch{re.value=!0}}},ve=$([]),ye=$(!1),ne=$(!1);let $e=0;const be=async()=>{if(!(ne.value&&Date.now()-$e<3e5))try{const{data:c}=await x.get("/briefing/occasions");ve.value=c.items??[],ye.value=c.hasBoard===!0,ne.value=!0,$e=Date.now()}catch{ne.value=!0}},y=p(()=>{const c=m.user?.location;return c?.latitude&&c?.longitude?{name:c.name||"Home",latitude:c.latitude,longitude:c.longitude}:null}),h=p(()=>m.settings?.weather?.temperature==="celsius"),w=$(null),M=$([]),ae=$(!1);let Se=0,b="";const l=async()=>{const c=y.value;if(!c){ae.value=!0;return}const E=`${c.latitude},${c.longitude}`;if(!(ae.value&&b===E&&Date.now()-Se<9e5))try{const[se,we]=await Promise.all([x.get("/weather/current",{params:{lat:c.latitude,lon:c.longitude}}),x.get("/weather/forecast",{params:{lat:c.latitude,lon:c.longitude,days:4}})]);w.value=se.data??null,M.value=we.data?.days??[],ae.value=!0,b=E,Se=Date.now()}catch{ae.value=!0}},{holdings:k,optionHoldings:W}=Fa(),Y=p(()=>{const c=new Set([...Object.keys(k.value),...Object.values(W.value).map(se=>se.symbol)]),E=new Set(le.value);return[...c].filter(se=>se&&!E.has(se))}),Ke=async()=>{const c=m.settings?.stocks;!c||!Y.value.length||(c.myStocks=[...new Set([...c.myStocks??[],...Y.value])],await fe(),re.value=!1,oe=0,await z())},fe=async()=>{try{const c=(new Date(new Date().toUTCString()).getTime()/1e3).toString();localStorage.setItem("SYNC_DATE",c),await x.put("/settings",{settings:m.settings,syncDate:c})}catch{}},ft=async c=>{m.settings&&(m.settings.briefingOrder=c,await fe())},He=async c=>{m.settings&&(m.settings.briefingDensity=c,await fe())},ze=async c=>{m.settings&&(m.settings.briefingTheme=c,await fe())},We=p(()=>m.settings?.briefingZodiacSign??""),Xe=async c=>{m.settings&&(m.settings.briefingZodiacSign=c,await fe())},gt={US:"US",CA:"CA",GB:"GB",AU:"AU"},Te=p(()=>{const c=m.user?.country?.alpha2?.toUpperCase()??"";return gt[c]??"US"}),pt=p(()=>m.settings?.briefingStreamingServices??[]),mt=async c=>{m.settings&&(m.settings.briefingStreamingServices=c,await fe())},et=p(()=>m.settings?.briefingWatchCollapsed??[]),tt=async c=>{if(!m.settings)return;const E=m.settings.briefingWatchCollapsed??[];m.settings.briefingWatchCollapsed=E.includes(c)?E.filter(se=>se!==c):[...E,c],await fe()},at=new Map,Fe=async(c,E)=>{const se=`${E}:${c}`,we=at.get(se);if(we)return we;try{const{data:ge}=await x.get("/briefing/watch-detail",{params:{id:c,type:E}});return at.set(se,ge),ge}catch{return null}},rt=p(()=>m.settings?.briefingFilterViolence??!1),st=async c=>{m.settings&&(m.settings.briefingFilterViolence=c,await fe())},Ie=$({});let it=0;const Ye=p(()=>_.value.filter(c=>["mlb-statsapi","espn"].includes(c.card?.sourceType??"")).map(c=>c.topic.id)),Le=async()=>
1{if(!Ye.value.length){Ie.value={};return}if(!(Date.now()-it<3e4))try{const{data:c}=await x.get("/briefing/live-scores",{params:{topics:Ye.value.join(",")}});Ie.value=c.scores??{},it=Date.now()}catch{}},Pe=p(()=>m.settings?.briefingHideLiveScores??!1),Ve=async c=>{m.settings&&(m.settings.briefingHideLiveScores=c,await fe())},Ue=c=>m.settings?.dismissedHints?.includes(c)===!0;return{items:_,catalog:G,slotId:d,maxInterests:N,freeSet:C,loading:A,error:U,fetched:te,isPro:Z,interests:J,marketIndices:D,marketSentiment:me,cryptoPrices:V,cryptoCurrency:H,portfolioSymbols:le,portfolioNews:ue,portfolioNewsFetched:re,importablePositionSymbols:Y,importPositions:Ke,occasions:ve,occasionsHasBoard:ye,occasionsFetched:ne,fetchOccasions:be,weatherLocation:y,weatherCelsius:h,weatherCurrent:w,weatherForecast:M,weatherFetched:ae,fetchWeather:l,fetchBriefing:q,fetchCatalog:L,fetchMarketIndices:K,fetchMarketSentiment:he,fetchCryptoPrices:_e,fetchPortfolioNews:z,liveScores:Ie,fetchLiveScores:Le,hideLiveScores:Pe,saveHideLiveScores:Ve,zodiacSign:We,streamingRegion:Te,streamingServices:pt,watchCollapsed:et,filterViolence:rt,saveCardOrder:ft,saveDensity:He,saveTheme:ze,saveZodiacSign:Xe,saveStreamingServices:mt,toggleWatchSection:tt,fetchWatchDetail:Fe,saveFilterViolence:st,saveInterests:async c=>{if(m.settings){m.settings.briefingInterests=c.slice(0,N.value);try{const E=(new Date(new Date().toUTCString()).getTime()/1e3).toString();localStorage.setItem("SYNC_DATE",E),await x.put("/settings",{settings:m.settings,syncDate:E}),await da()}catch{U.value="Could not save your interests"}await q()}},isHintDismissed:Ue,dismissHint:async c=>{!m.settings||Ue(c)||(m.settings.dismissedHints=[...m.settings.dismissedHints??[],c],await fe())}}}),Ra=ia(La(),1);Ge();Re(),Ze();var Ha={class:"watch-detail"},za={class:"watch-detail__hero"},Wa={key:0,class:"watch-detail__trailer"},Ya=["src"],qa=["src","alt"],ja={key:0,class:"watch-detail__loading"},Qa={key:1,class:"watch-detail__body"},Za={class:"watch-detail__head"},Ja=["src","alt"],Ka={class:"watch-detail__headtext"},Xa={class:"watch-detail__title"},er={key:0,class:"watch-detail__tagline"},tr={class:"watch-detail__meta"},ar={key:0},rr={key:1},sr={key:2,class:"watch-detail__rating"},ir={key:1,class:"watch-detail__genres"},lr={key:0,class:"watch-detail__overview"},or={key:1,class:"watch-detail__cast"},nr=["src","alt"],ur={key:1,class:"watch-detail__cast-photo watch-detail__cast-photo--empty"},dr={class:"watch-detail__cast-name"},cr={key:2,class:"watch-detail__cast-char"},vr={key:2,class:"watch-detail__providers"},fr=["href"],gr={key:2,class:"watch-detail__error"},pr=Qe({__name:"BriefingWatchDialog",props:{modelValue:{type:Boolean},tile:{}},emits:["update:modelValue"],setup(x,{emit:m}){const _=x,G=m,{mobile:d}=Qt(),N=vt(),C=$(null),A=$(!1),U=$(!1),te=$(!1),I=()=>G("update:modelValue",!1),Z=p(()=>C.value?.backdrop??C.value?.poster??_.tile?.poster??null),J=p(()=>C.value?.poster??_.tile?.poster??null),q=R=>R.split(" ").map(D=>D[0]).slice(0,2).join("").toUpperCase(),L=R=>{R.target.style.visibility="hidden"};return xe(()=>[_.modelValue,_.tile?.id],async([R,D])=>{if(!R||!_.tile?.id)return;te.value=!1,C.value=null,U.value=!1,A.value=!0;const F=_.tile.mediaType,K=await N.fetchWatchDetail(_.tile.id,F);if(_.tile?.id===D){if(A.value=!1,!K){U.value=!0;return}C.value=K}}),(R,D)=>(e(),P(Ae,{"model-value":x.modelValue,fullscreen:u(d),"max-width":u(d)?void 0:660,transition:!1,scrim:"rgba(0, 0, 0, 0.72)","onUpdate:modelValue":D[1]||(D[1]=F=>G("update:modelValue",F))},{default:i(()=>[r("div",Ha,[r("button",{type:"button",class:"watch-detail__close","aria-label":"Close",onClick:I},[o(O,{icon:u(je)},null,8,["icon"])]),r("div",za,[te.value&&C.value?.trailerKey?(e(),s("div",Wa,[r("iframe",{src:`https://www.youtube-nocookie.com/embed/${C.value.trailerKey}?autoplay=1&rel=0`,title:"Trailer",frameborder:"0",allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowfullscreen:""},null,8,Ya)])):(e(),s(T,{key:1},[Z.value?(e(),s("img",{key:0,src:Z.value,alt:x.tile?.title??"",class:"watch-detail__hero-img"},null,8,qa)):g("",!0),D[3]||(D[3]=r("div",{class:"watch-detail__hero-scrim"},null,-1)),C.value?.trailerKey?(e(),s("button",{key:1,type:"button",class:"watch-detail__play",onClick:D[0]||(D[0]=F=>te.value=!0)},[o(O,{icon:u(Va)},null,8,["icon"]),D[2]||(D[2]=f(" Watch trailer ",-1))])):g("",!0)],64))]),A.value?(e(),s("div",ja,[o(Jt,{indeterminate:"",size:"28",width:"3",color:"white"})])):C.value?(e(),s("div",Qa,[r("div",Za,[J.value?(e(),s("img",{key:0,src:J.value,alt:C.value.title,class:"watch-detail__poster"}
1,null,8,Ja)):g("",!0),r("div",Ka,[r("h2",Xa,v(C.value.title),1),C.value.tagline?(e(),s("p",er,v(C.value.tagline),1)):g("",!0),r("div",tr,[C.value.year?(e(),s("span",ar,v(C.value.year),1)):g("",!0),C.value.runtime?(e(),s("span",rr,v(C.value.runtime),1)):g("",!0),C.value.rating?(e(),s("span",sr,[o(O,{icon:u(Sa),size:"14"},null,8,["icon"]),f(" "+v(C.value.rating.toFixed(1)),1)])):g("",!0)]),C.value.genres.length?(e(),s("div",ir,[(e(!0),s(T,null,Q(C.value.genres,F=>(e(),s("span",{key:F,class:"watch-detail__genre"},v(F),1))),128))])):g("",!0)])]),C.value.overview?(e(),s("p",lr,v(C.value.overview),1)):g("",!0),C.value.cast.length?(e(),s("div",or,[(e(!0),s(T,null,Q(C.value.cast,F=>(e(),s("div",{key:F.name+F.character,class:"watch-detail__cast-member"},[F.photo?(e(),s("img",{key:0,src:F.photo,alt:F.name,class:"watch-detail__cast-photo",loading:"lazy",onError:L},null,40,nr)):(e(),s("div",ur,v(q(F.name)),1)),r("span",dr,v(F.name),1),F.character?(e(),s("span",cr,v(F.character),1)):g("",!0)]))),128))])):g("",!0),C.value.providers.length?(e(),s("div",vr,[D[4]||(D[4]=r("span",{class:"watch-detail__providers-label"},"Streaming on",-1)),(e(!0),s(T,null,Q(C.value.providers,F=>(e(),s("span",{key:F,class:"watch-detail__provider-chip"},v(F),1))),128))])):g("",!0),C.value.homepage?(e(),s("a",{key:3,href:C.value.homepage,target:"_blank",rel:"noopener",class:"watch-detail__link"},[D[5]||(D[5]=f(" Official page ",-1)),o(O,{icon:u(xa),size:"14"},null,8,["icon"])],8,fr)):g("",!0)])):U.value?(e(),s("div",gr," Couldn’t load details right now. ")):g("",!0)])]),_:1},8,["model-value","fullscreen","max-width"]))}}),mr=Je(pr,[["__scopeId","data-v-6d4e79ce"]]);Ge();Re(),Ze(),dt();var _r={class:"briefing-card__head"},hr={key:0,class:"briefing-drag-handle",title:"Drag to rearrange"},yr={viewBox:"0 0 24 24"},br=["d"],wr={class:"briefing-card__chip"},kr=["disabled","title"],Cr={key:2,class:"briefing-card__season"},$r={class:"briefing-card__head-right"},Sr={key:0,class:"briefing-card__head-meta"},Tr={viewBox:"0 0 24 24"},xr=["d"],Dr=["src"],Ir={key:1,class:"briefing-card__filtered"},Vr=["src"],Br=["href"],Nr={key:0,class:"briefing-card__live-detail"},Ar=["href"],Fr={key:0,class:"briefing-card__live-detail"},Lr={key:3,class:"briefing-card__final-note"},Pr={key:4,class:"briefing-card__final-note"},Ur={key:5,class:"briefing-card__stats"},Mr={class:"briefing-card__stat-label"},Er={key:0,class:"briefing-card__stat-sub"},Or={key:6,class:"briefing-card__live-caption"},Gr={key:7,class:"briefing-card__mood"},Rr={class:"briefing-card__mood-head"},Hr={class:"briefing-card__mood-track"},zr={key:0,class:"briefing-card__signs"},Wr=["onClick"],Yr={class:"briefing-card__sign-name"},qr={class:"briefing-card__sign-dates"},jr={key:1,class:"briefing-card__horoscope"},Qr={class:"briefing-card__watch-body"},Zr={key:0,class:"briefing-card__services-pick"},Jr={class:"briefing-card__services-grid"},Kr=["onClick"],Xr=["src","alt"],es={class:"briefing-card__service-name"},ts=["src","alt"],as={class:"briefing-card__watch-name"},rs={key:1,class:"briefing-card__watch-count"},ss=["d"],is={class:"briefing-card__watch-strip"},ls=["disabled","onClick"],os=["src","alt"],ns={key:1,class:"briefing-card__watch-rating"},us={class:"briefing-card__watch-tile-title"},ds={key:0,class:"briefing-card__portfolio-empty"},cs={key:1,class:"briefing-card__portfolio"},vs={class:"briefing-card__portfolio-meta"},fs=["src"],gs={class:"briefing-card__portfolio-ticker"},ps=["href"],ms={key:2,class:"briefing-card__placeholder"},_s={key:0,class:"briefing-card__portfolio"},hs={class:"briefing-card__portfolio-title"},ys={key:1,class:"briefing-card__portfolio-empty"},bs={key:0},ws={key:1},ks={key:0,class:"briefing-card__portfolio-empty"},Cs={class:"briefing-card__weather-meta"},$s={key:0,class:"briefing-card__weather-days"},Ss={class:"briefing-card__weather-day-name"},Ts=["src","alt","title"],xs={class:"briefing-card__weather-day-temps"},Ds={class:"briefing-card__weather-day-low"},Is={class:"briefing-card__live-caption"},Vs={key:2,class:"briefing-card__placeholder"},Bs={key:13,class:"briefing-card__bullets"},Ns={key:14,class:"briefing-card__foot"},As={class:"briefing-card__srcs"},Fs=["href"],Ls=["href"],Ps={key:0,class:"briefing-card__tag"},Us={key:0,class:"briefing-card__tag-time"},Ms={key:3,class:"briefing-card__placeholder"},Es=["href"],Os={class:"briefing-card-dialog__source-headline"},Gs={key:0,class:"briefing-card-dialog__source-pub"},Rs={class:"briefing-card__chip mb-1"},Hs={class:"briefing-card-dialog__category mb-3"},zs={key:0,class:"mb-2"},Ws={key:1,class:"mb-2"},Ys={key:2,class:"mb-2"},qs={key:3,class:"mb-0 text-medium-emphasis"},Mt=570,js=70,Qs=Qe({__name:"BriefingCard",props:{item:{},showDragHandle:{type:Boolean},compact:{type:Boolean}},emits:["swap","hide"],setup(x,{emit:m}){const _=x,G=m,d=vt(),N=p(()=>_.item.topic.id==="stock-market"),C={bitcoin:"BTC",ethereum:"ETH"},A=p(()=>_.item.topic.id in C),U=p(()=>_.item.card?.sourceType==="portfolio-news"),te=p(()=>_.item.card?.sourceType==="occasions"),I=()=>{window.open("https://shop.besthomepageever.com/?tab=people","_blank","noopener")},Z=p(()=>_.item.card?.sourceType==="weather"),J=()=>{ta.value=!0},q=n=>d.weatherCelsius?`${Math.round((n-32)*5/9)}°`:`${Math.round(n)}°`,L=n=>n?`${n}
1.svg`:"https://maps.gstatic.com/weather/v1/partly_cloudy.svg",R=(n,t)=>t===0?"Today":new Date(`${n}T12:00:00`).toLocaleDateString("en-US",{weekday:"short"});let D=null;oa(()=>{N.value&&_.item.card&&(d.fetchMarketIndices(),d.fetchMarketSentiment(),D=setInterval(()=>d.fetchMarketIndices(),6e4)),A.value&&_.item.card&&(d.fetchCryptoPrices(),D=setInterval(()=>d.fetchCryptoPrices(),6e4)),U.value&&_.item.card&&d.fetchPortfolioNews(),te.value&&_.item.card&&d.fetchOccasions(),Z.value&&_.item.card&&d.fetchWeather()}),Ht(()=>{D&&clearInterval(D)});const F={SPY:"S&P 500",QQQ:"Nasdaq 100",IWM:"Russell 2000",EWC:"TSX 60",EWU:"FTSE 100",EWA:"ASX 200"},K=n=>n?n===new Intl.DateTimeFormat("en-CA",{timeZone:"America/New_York"}).format(new Date)?"today":`${new Date(`${n}T12:00:00`).toLocaleDateString("en-US",{weekday:"short"})} close`:"",de=p(()=>!N.value||!_.item.card?[]:d.marketIndices.filter(n=>!isNaN(parseFloat(n.changePercent))).map(n=>{const t=parseFloat(n.changePercent),a=n.change>=0,S=a?"win":"loss";return{label:F[n.symbol]??n.name,value:`${a?"+":""}${t.toFixed(2)}%`,sub:"",tone:S,boxTone:S}})),V=p(()=>{const n=d.marketIndices[0];return n?K(n.latestTradingDay):""}),B=n=>{const t=new Intl.DateTimeFormat("en-US",{timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(n),a=S=>t.find(pe=>pe.type===S)?.value??"0";return{date:`${a("year")}-${a("month")}-${a("day")}`,minutes:parseInt(a("hour"),10)%24*60+parseInt(a("minute"),10)}},H=p(()=>{if(!N.value||V.value!=="today")return"";const n=_.item.card?.generatedAt;if(!n)return"";const t=B(new Date);if(t.minutes<Mt)return"";const a=B(new Date(n));return a.date===t.date&&a.minutes>=Mt?"":"Yesterday’s market wrap · updates next edition"}),_e=p(()=>{if(!A.value||!_.item.card)return[];const n=d.cryptoPrices?.[_.item.topic.id]?.[d.cryptoCurrency];if(!n)return[];const t=(n.change??0)>=0,a=t?"win":"loss",S=new Intl.NumberFormat("en-US",{style:"currency",currency:d.cryptoCurrency,maximumFractionDigits:n.price>=1e3?0:2}).format(n.price);return[{label:C[_.item.topic.id],value:S,sub:n.change==null?"":`${t?"+":""}${n.change.toFixed(2)}% (24h)`,tone:a,boxTone:a,layout:"price"}]}),me={red:"#d32f2f",orange:"#ef6c00",yellow:"#f9a825","light-green":"#66bb6a",green:"#2e7d32"},ce=p(()=>{const n=d.marketSentiment;return!N.value||!n?null:{score:Math.max(0,Math.min(100,Math.round(n.score))),label:n.ratingFormatted,hex:me[n.color]??"#607d8b"}}),he=$(!1),le=$(!1),ue=p(()=>!N.value&&!he.value?_.item.card?.image??null:null),re={Tech:"#6d3beb",Companies:"#546e7a","Business & Finance":"#0e7c86",Crypto:"#ef6c00","Science & Health":"#3e63c7",Entertainment:"#c13a80",Gaming:"#5c6bc0",Lifestyle:"#00897b",Culture:"#b5641a","Daily Extras":"#a67c00","US News":"#8d6e63","Local News":"#d84315","World News":"#c1394a"},oe=p(()=>{const n=_.item.topic.category;return n.startsWith("Sports")?"#1e7a46":re[n]??"#607d8b"}),z=p(()=>["mlb-statsapi","espn"].includes(_.item.card?.sourceType??"")),ve=/\b(shot|shooting|shootout|gunman|gunfire|stabbed|stabbing|murder(?:ed|s)?|homicide|killed|kills|killing|massacre|genocide|beheaded|lynch(?:ed|ing)?|rape[ds]?|assault(?:ed)?|beaten|terror(?:ist)?\s+attack|bombing|kidnapp(?:ed|ing)|abduct(?:ed|ion)|found dead|dead body|slain|manslaughter|execution|executed|war crimes?)\b/i,ye=$(!1),ne=p(()=>d.filterViolence&&!ye.value&&!!_.item.card&&ve.test(_.item.card.headline)),$e=p(()=>{const n=_.item.card?.bullets??[];return d.filterViolence?n.filter(t=>!ve.test(t)):n}),be=p(()=>_.item.card?.sourceType==="horoscope"),y=[{id:"aries",name:"Aries",symbol:"♈",dates:"Mar 21 – Apr 19"},{id:"taurus",name:"Taurus",symbol:"♉",dates:"Apr 20 – May 20"},{id:"gemini",name:"Gemini",symbol:"♊",dates:"May 21 – Jun 20"},{id:"cancer",name:"Cancer",symbol:"♋",dates:"Jun 21 – Jul 22"},{id:"leo",name:"Leo",symbol:"♌",dates:"Jul 23 – Aug 22"},{id:"virgo",name:"Virgo",symbol:"♍",dates:"Aug 23 – Sep 22"},{id:"libra",name:"Libra",symbol:"♎",dates:"Sep 23 – Oct 22"},{id:"scorpio",name:"Scorpio",symbol:"♏",dates:"Oct 23 – Nov 21"},{id:"sagittarius",name:"Sagittarius",symbol:"♐",dates:"Nov 22 – Dec 21"},{id:"capricorn",name:"Capricorn",symbol:"♑",dates:"Dec 22 – Jan 19"},{id:"aquarius",name:"Aquarius",symbol:"♒",dates:"Jan 20 – Feb 18"},{id:"pisces",name:"Pisces",symbol:"♓",dates:"Feb 19 – Mar 20"}],h=p(()=>y.find(n=>n.id===d.zodiacSign)??null),w=p(()=>{const n=_.item.card?.facts,t=n?.horoscopesByDate;if(t&&Object.keys(t).length){const a=new Date().toLocaleDateString("en-CA");if(t[a])return t[a];const S=Object.keys(t).sort();return t[S[S.length-1]]??{}}return n?.horoscopes??{}}),M=p(()=>h.value?w.value[h.value.id]??"":""),ae=p(()=>_.item.card?.sourceType==="streaming"),Se=p(()=>{const n=_.item.card?.facts;return n?n.regions?.[d.streamingRegion]??n.regions?.US??{providers:n.providers??[],services:n.services??{}}:{providers:[],services:{}}}),b=p(()=>Se.value.providers),l=p(()=>{const n=_.item.card;if(!n)return[];const{services:t,providers:a}=Se.value,S=[];for(const _t of d.streamingServices){const ht=a.find(sa=>sa.slug===_t),Nt=t[_t]??[];ht&&Nt.length&&S.push({slug:_t,name:ht.name,logo:ht.logo,titles:Nt})}if(S.length)return S;const pe=n.facts?.streamingDefault??[];return pe.length?[{slug:"__default",name:"Popular this week",logo:null,titles:pe}]:[]}),k=p(()=>d.streamingServices.length>0),W=$(!1),Y=$([]),Ke=()=>{Y.value=[...d.streamingServices],W.value=!0},fe=n=>{Y.value=Y.value.includes(n)?Y.value.filter(t=>t!==n):[...Y.value,n]},ft=async()=>{W.value=!1,await d.saveStreamingServices(Y.value)},He=n=>{const t=n.target;t.style.display="none"},ze=n=>d.watchCollapsed.includes(n),We=$(!1),Xe=$(null),gt=n=>{n.id&&(Xe.value=n,We.value=!0)},Te=p(()=>
1{if(!_.item.card?.generatedAt)return"";const n=Date.now()-new Date(_.item.card.generatedAt).getTime(),t=Math.floor(n/6e4);if(t<1)return"just now";if(t<60)return`${t}m`;const a=Math.floor(t/60);return a<24?`${a}h`:`${Math.floor(a/24)}d`}),pt=n=>n.isSelf?`Your ${n.label}`:`${n.name}’s ${n.label}`,mt=n=>{const t=new Date(`${n.date}T12:00:00`).toLocaleDateString("en-US",{month:"short",day:"numeric"});return n.daysUntil===0?`${t} · today 🎉`:n.daysUntil===1?`${t} · tomorrow`:`${t} · in ${n.daysUntil} days`},et=n=>{if(!n)return"";const t=Math.floor((Date.now()-n)/6e4);if(t<60)return`${Math.max(t,1)}m`;const a=Math.floor(t/60);return a<24?`${a}h`:`${Math.floor(a/24)}d`},tt=n=>{const t=parseInt(n,10);return isNaN(t)?n:`${t}${t%100>10&&t%100<14?"th":["th","st","nd","rd"][t%10]||"th"}`},at=p(()=>_.item.topic.displayName),Fe=p(()=>{const n=_.item.topic.season;if(!n)return null;const t=Date.now(),a=new Date(`${n.start}T00:00:00`).getTime(),S=new Date(`${n.end}T23:59:59`).getTime();if(t>=a&&t<=S)return null;if(t<a){const pe=Math.ceil((a-t)/864e5);if(pe<=js)return{off:!1,text:`${n.label} in ${pe}d`}}return{off:!0,text:"Offseason"}}),rt=p(()=>{const n=_.item.card;if(!n)return"";if(z.value){const t=n.facts.standing;return t?.divisionRank?`${tt(t.divisionRank)}, ${t.divisionName}`:""}return Te.value?`${Te.value} ago`:""}),st=p(()=>{const n=_.item.card?.facts;if(!z.value||!n)return[];const t=[];if(n.lastGame){const a=n.lastGame;t.push({label:"Last",value:`${a.won?"W":"L"} ${a.teamScore}–${a.opponentScore}`,sub:`${a.home?"vs":"at"} ${a.opponent}`,tone:a.won?"win":"loss"})}if(n.nextGame&&!c.value){const a=n.nextGame,S=new Date(a.date).toLocaleString("en-US",{weekday:"short",hour:"numeric",minute:"2-digit"});t.push({label:"Next",value:S,sub:`${a.home?"vs":"at"} ${a.opponent}`})}if(n.standing){const a=n.standing,S=a.record??(a.wins!=null?`${a.wins}–${a.losses}`:"");if(S){let pe="";a.gamesBack!=null?pe=a.gamesBack==="-"||a.gamesBack==="leading"?"leading":`${a.gamesBack} GB`:a.divisionRank&&(pe=`${tt(a.divisionRank)} in division`),t.push({label:"Record",value:S,sub:pe})}}return t}),Ie=p(()=>st.value.length?st.value:de.value.length?de.value:_e.value),it=p(()=>_.item.card?be.value&&h.value?`${h.value.symbol} ${h.value.name}`:Z.value&&d.weatherCurrent?`${q(d.weatherCurrent.temperature)} · ${d.weatherCurrent.description}`:se.value?E.value:_.item.card.headline:_.item.topic.displayName),Ye=n=>n.replace(/^The\s+/i,""),Le=$(!1),Pe=$(!1),Ve=$(!1),Ue=p(()=>z.value?_.item.card?.sources?.[0]?.url??null:null),Be=p(()=>z.value?d.liveScores[_.item.topic.id]??null:null),lt=p(()=>!!Be.value&&Be.value.status!=="final"),c=p(()=>{const n=Be.value;if(!n||n.status!=="final")return!1;const t=_.item.card?.facts?.lastGame?.date;return!t||!n.date||new Date(n.date).getTime()>new Date(t).getTime()}),E=p(()=>{const n=Be.value;if(!n)return"";const t=n.opponent?`${n.home?"vs":"at"} ${n.opponent}`:"",a=[];return!d.hideLiveScores&&n.teamScore!=null&&n.opponentScore!=null?a.push(t?`${n.teamScore}–${n.opponentScore} ${t}`:`${n.teamScore}–${n.opponentScore}`):t&&a.push(t),n.detail&&!(n.status==="final"&&/^final$/i.test(n.detail.trim()))&&a.push(n.detail),a.join(" · ")}),se=p(()=>z.value&&!ne.value&&(lt.value||c.value)&&!!E.value),we=p(()=>{const n=Be.value;if(!n||!c.value)return"";const t=a=>new Intl.DateTimeFormat("en-CA",{timeZone:"America/New_York"}).format(a);return`${n.date&&t(new Date(n.date))===t(new Date)?"Today’s result":"Latest result"} · recap updates next edition`}),ge=p(()=>z.value?(lt.value||c.value?Be.value?.gameUrl:null)??_.item.card?.scoresUrl??Ue.value:null),ot=Rt(),xt=()=>{ke.value=!1,ot.push("/money")},Dt=p(()=>_.item.topic.id==="travel"),It=n=>{ke.value=!1,ot.push(n?{path:"/travel/",query:{tab:n}}:{path:"/travel/"})},Vt=async()=>{Ve.value||(Ve.value=!0,await d.saveInterests(d.interests.filter(n=>n!==_.item.topic.id)),Ve.value=!1)},aa=p(()=>(_.item.card?.slotId??d.slotId).endsWith("am")?"around 5 PM ET":"around 7 AM ET tomorrow"),ra={Tech:"Product launches, research breakthroughs, and the shifts shaping the tech industry.",Companies:"Announcements, earnings, and headlines from this company specifically.","Business & Finance":"The money picture — markets, rates, industries, and what it means for your wallet.",Crypto:"Price action, regulation, and ecosystem news from the crypto world.","Science & Health":"New research and discoveries, separated from the hype.",Entertainment:"What to watch, hear, and read — releases, reviews, and industry news.",Gaming:"Releases, updates, and news from across the gaming world.",Lifestyle:"Ideas, trends, and practical finds for this corner of everyday life.",Culture:"Stories and curiosities beyond the news cycle.","Daily Extras":"Quick daily rituals — a laugh, a quote, a look back — fresh every edition.","US News":"The biggest national stories, kept brief.","Local News":"Headlines from this city’s own outlets — the stories national feeds skip.","World News":"Coverage from local outlets in the region — not a US-lens rewrite.","Sports · League News":"League-wide headlines: results, trades, storylines, and what’s next."},Bt=p(()=>N.value?"Live index moves at a glance, plus a twice-daily summary of what’s driving the market.":A.value?"Live price with 24-hour change in your local currency, plus twice-daily news curated from crypto press.":be.value?"A daily reading for your zodiac sign. Pick your sign once and it sticks — change it anytime from this menu.":ae.value?"New and notable titles on your streaming services, refreshed twice a day — no AI involved. Pick the services you have and the card shows what’s worth watching on each. This product uses the TMDB API but is not endorsed or certified by TMDB.":z.value?`Live score, schedule, and standing for the ${_.item.topic.displayName}, straight from league data — no AI involved.`:U.value?"Headlines for the stocks and watchlist you track in the Financial Dashboard — pulled straight from news feeds, no AI involved.":te.value?"Upcoming birthdays and occasions for the people on your Gift Shop board — add or edit them at shop.besthomepageever.com. No AI involved.":Z.value?"Live c
1onditions and a short forecast for your saved location, fetched fresh every time you open your brief — no AI involved. Change your location in your Account Profile.":ra[_.item.topic.category]??"");return(n,t)=>(e(),P(De,{class:ie(["briefing-card",{"briefing-card--empty":!x.item.card,"briefing-card--compact":x.compact}]),variant:"elevated",style:Ce({"--cat":oe.value})},{default:i(()=>[r("div",_r,[x.showDragHandle?(e(),s("span",hr,[(e(),s("svg",yr,[r("path",{d:u(ba),fill:"currentColor"},null,8,br)]))])):g("",!0),r("span",wr,[t[22]||(t[22]=r("span",{class:"briefing-card__chip-dot"},null,-1)),f(" "+v(at.value),1)]),Fe.value?.off?(e(),s("button",{key:1,type:"button",class:"briefing-card__season briefing-card__season--off",disabled:Ve.value,title:u(d).isPro?"Remove this topic from your Daily Brief":"Swap this topic",onClick:t[0]||(t[0]=a=>u(d).isPro?Vt():G("swap"))},v(Fe.value.text)+" · "+v(u(d).isPro?"remove":"swap"),9,kr)):Fe.value?(e(),s("span",Cr,v(Fe.value.text),1)):g("",!0),r("span",$r,[rt.value?(e(),s("span",Sr,v(rt.value),1)):g("",!0),o($t,{location:"bottom end"},{activator:i(({props:a})=>[r("button",Ct(a,{type:"button",class:"briefing-card__menu-btn","aria-label":"Card options"}),[(e(),s("svg",Tr,[r("path",{d:u(Xt),fill:"currentColor"},null,8,xr)]))],16)]),default:i(()=>[o(Zt,{density:"compact"},{default:i(()=>[o(ee,{onClick:t[1]||(t[1]=a=>G("hide"))},{default:i(()=>[o(X,null,{default:i(()=>[...t[23]||(t[23]=[f("Hide until next edition",-1)])]),_:1})]),_:1}),u(d).isPro?(e(),P(ee,{key:0,disabled:Ve.value,onClick:Vt},{default:i(()=>[o(X,null,{default:i(()=>[...t[24]||(t[24]=[f("Remove from my Daily Brief",-1)])]),_:1})]),_:1},8,["disabled"])):(e(),P(ee,{key:1,onClick:t[2]||(t[2]=a=>G("swap"))},{default:i(()=>[o(X,null,{default:i(()=>[...t[25]||(t[25]=[f("Swap this topic…",-1)])]),_:1})]),_:1})),Ue.value?(e(),P(ee,{key:2,href:Ue.value,target:"_blank",rel:"noopener"},{default:i(()=>[o(X,null,{default:i(()=>[...t[26]||(t[26]=[f("Open team page",-1)])]),_:1})]),_:1},8,["href"])):g("",!0),te.value?(e(),P(ee,{key:3,onClick:I},{default:i(()=>[o(X,null,{default:i(()=>[...t[27]||(t[27]=[f("Manage people & occasions",-1)])]),_:1})]),_:1})):g("",!0),Z.value?(e(),P(ee,{key:4,onClick:J},{default:i(()=>[o(X,null,{default:i(()=>[...t[28]||(t[28]=[f("Change location…",-1)])]),_:1})]),_:1})):g("",!0),U.value&&u(d).importablePositionSymbols.length?(e(),P(ee,{key:5,onClick:t[3]||(t[3]=a=>u(d).importPositions())},{default:i(()=>[o(X,null,{default:i(()=>[f(" Import my positions ("+v(u(d).importablePositionSymbols.length)+") ",1)]),_:1})]),_:1})):g("",!0),N.value||U.value?(e(),P(ee,{key:6,onClick:xt},{default:i(()=>[o(X,null,{default:i(()=>[...t[29]||(t[29]=[f("Open Financial Dashboard",-1)])]),_:1})]),_:1})):g("",!0),Dt.value?(e(),P(ee,{key:7,onClick:t[4]||(t[4]=a=>It())},{default:i(()=>[o(X,null,{default:i(()=>[...t[30]||(t[30]=[f("Open Travel planner",-1)])]),_:1})]),_:1})):g("",!0),Dt.value?(e(),P(ee,{key:8,onClick:t[5]||(t[5]=a=>It("trips"))},{default:i(()=>[o(X,null,{default:i(()=>[...t[31]||(t[31]=[f("My Trips",-1)])]),_:1})]),_:1})):g("",!0),be.value&&h.value?(e(),P(ee,{key:9,onClick:t[6]||(t[6]=a=>u(d).saveZodiacSign(""))},{default:i(()=>[o(X,null,{default:i(()=>[...t[32]||(t[32]=[f("Change sign…",-1)])]),_:1})]),_:1})):g("",!0),ae.value?(e(),P(ee,{key:10,onClick:t[7]||(t[7]=a=>Ke())},{default:i(()=>[o(X,null,{default:i(()=>[f(v(k.value?"Edit services…":"Choose services…"),1)]),_:1})]),_:1})):g("",!0),!z.value&&x.item.card?.sources?.length?(e(),P(ee,{key:11,onClick:t[8]||(t[8]=a=>Le.value=!0)},{default:i(()=>[o(X,null,{default:i(()=>[...t[33]||(t[33]=[f("View sources",-1)])]),_:1})]),_:1})):g("",!0),o(ee,{onClick:t[9]||(t[9]=a=>Pe.value=!0)},{default:i(()=>[o(X,null,{default:i(()=>[...t[34]||(t[34]=[f("About",-1)])]),_:1})]),_:1})]),_:1})]),_:1})])]),ne.value?g("",!0):(e(),s("h3",{key:0,class:ie(["briefing-card__title",{"briefing-card__title--logo":x.item.card?.logo&&!le.value}])},[x.item.card?.logo&&!le.value?(e(),s("img",{key:0,src:x.item.card.logo,alt:"",class:"briefing-card__logo",onError:t[10]||(t[10]=a=>le.value=!0)},null,40,Dr)):g("",!0),f(" "+v(it.value),1)],2)),ne.value?(e(),s("p",Ir,[t[35]||(t[35]=f(" Hidden by your violence filter. ",-1)),r("button",{type:"button",class:"briefing-card__filtered-show",onClick:t[11]||(t[11]=a=>ye.value=!0)}," Show anyway ")])):x.item.card?(e(),s(T,{key:2},[ue.value?(e(),s("img",{key:0,src:ue.value,class:"briefing-card__banner",alt:"",loading:"lazy",onError:t[12]||(t[12]=a=>he.value=!0)},null,40,Vr)):g("",!0),lt.value?(e(),s("a",{key:1,href:ge.value??void 0,target:"_blank",rel:"noopener",class:"briefing-card__live-badge"},[t[36]||(t[36]=r("span",{class:"briefing-card__live-dot"},null,-1)),t[37]||(t[37]=r("span",{class:"briefing-card__live-word"},"LIVE",-1)),!se.value&&E.value?(e(),s("span",Nr,v(E.value),1)):g("",!0)],8,Br)):c.value?(e(),s("a",{key:2,href:ge.value??void 0,target:"_blank",rel:"noopener",class:"briefing-card__live-badge briefing-card__live-badge--final"},[t[38]||(t[38]=r("span",{class:"briefing-card__live-dot briefing-card__live-dot--final"},null,-1)),t[39]||(t[39]=r("span",{class:"briefing-card__live-word briefing-card__live-word--final"},"FINAL",-1)),!se.value&&E.value?(e(),s("span",Fr,v(E.value),1)):g("",!0)],8,Ar)):g("",!0),c.value&&we.value?(e(),s("p",Lr,v(we.value),1)):g("",!0),H.value?(e(),s("p",Pr,v(H.value),1)):g("",!0),Ie.value.length?(e(),s("div",Ur,[(e(!0),s(T,null,Q(Ie.value,a=>(e(),s("div",{key:a.label,class:ie(["briefing-card__stat",[a.boxTone&&`briefing-card__stat--${a.boxTone}`,a.layout&&`briefing-card__stat--${a.layout}`]])},[r("span",Mr,v(a.label),1),r("span",{class:ie(["briefing-card__stat-value",a.tone&&`briefing-card__stat-value--${a.tone}`])},v(a.value),3),a.sub?(e(),s("span",Er,v(a.sub),1)):g("",!0)],2))),128))])):g("",!0),N.value&&de.value.length||_e.value.length?(e(),s("div",Or,[t[40]||(t[40]=r("span",{class:"briefing-card__tag-sig"},null,-1)),f(" Live"+v(N.value&&V.value?` · ${V.value}`:""),1)])):g("",!0),ce.value?(e(),s("div",Gr,[r("div",Rr,[t[41]||(t[41]=r("span",{class:"briefing-card__mood-label"},"Market mood",-1)),r("span",{class:"briefing-card__mood-rating",style:Ce({color:ce.value.hex})},v(ce.value.label)+" · "+v(ce.value.score),5)]),r("div",Hr,[r("span",{class:"briefing-card__mood-marker",style:Ce({left:`${ce.value.score}%`})},null,4)])])):g("",!0),be.value?(e(),s(T,{key:8},[h.value?(e(),s("p",jr,v(M.value||"No reading available this edition — check back at the next one."),1)):(e(),s("div",zr,[(e(),s(T,null,Q(y,a=>r("button",{key:a.id,type:"button",class:"briefing-card__sign",onClick:S=>u(d).saveZodiacSign(a.id)},[r("span",Yr,v(a.symbol)+" "+v(a.name),1),r("span",qr,v(a.dates),1)],8,Wr)),64))]))],64)):g("",!0),ae.value?(e(),s(T,{key:9},[r("div",Qr,[W.value?(e(),s("div",Zr,[t[42]||(t[42]=r("p",{class:"briefing-card__services-hint"}," Which streaming services do you have? ",-1)),r("div",Jr,[(e(!0),s(T,null,Q(b.value,a=>(e(),s("button",{key:a.slug,type:"button",class:ie(["briefing-card__service",{"briefing-card__service--on":Y.value.includes(a.slug)}]),onClick:S=>fe(a.slug)},[a.logo?(e(),s("img",{key:0,src:a.logo,alt:a.name,class:"briefing-card__service-logo",loading:"lazy",onError:He},null,40,Xr)):g("",!0),r("span",es,v(a.name),1)],10,Kr))),128))]),r("button",{type:"button",class:"briefing-card__services-done",onClick:t[13]||(t[13]=a=>ft())}," Done ")])):(e(),s(T,{key:1},[(e(!0),s(T,null,Q(l.value,a=>(e(),s("div",{key:a.slug,class:"briefing-card__watch-section"},[(e(),P(na(a.slug==="__default"?"div":"button"),{type:a.slug==="__default"?void 0:"button",class:ie(["briefing-card__watch-head",{"briefing-card__watch-head--toggle":a.slug!=="__default"}]),onClick:S=>a.slug!=="__default"&&u(d).toggleWatchSection(a.slug)},{default:i(()=>[a.logo?(e(),s("img",{key:0,src:a.logo,alt:a.name,class:"briefing-card__watch-logo",loading:"lazy",onError:He},null,40,ts)):g("",!0),r("span",as,v(a.name),1),a.slug!=="__default"&&ze(a.slug)?(e(),s("span",rs,v(a.titles.length),1)):g("",!0),a.slug!=="__default"?(e(),s("svg",{key:2,class:ie(["briefing-card__watch-chevron",{"briefing-card__watch-chevron--collapsed":ze(a.slug)}]),viewBox:"0 0 24 24"},[r("path",{d:u(St),fill:"currentColor"},null,8,ss)],2)):g("",!0)]),_:2},1032,["type","class","onClick"])),ut(r("div",is,[(e(!0),s(T,null,Q(a.titles,S=>(e(),s("div",{key:S.title+S.year,class:"briefing-card__watch-tile"},[r("button",{type:"button",class:ie(["briefing-card__watch-poster-wrap",{"briefing-card__watch-poster-wrap--clickable":S.id}]),disabled:!S.id,onClick:pe=>gt(S)},[S.poster?(e(),s("img",{key:0,src:S.poster,alt:S.title,class:"briefing-card__watch-poster",loading:"lazy",onError:He},null,40,os)):g("",!0),S.rating?(e(),s("span",ns,"★ "+v(S.rating.toFixed(1)),1)):g("",!0)],10,ls),r("span",us,v(S.title),1)]))),128))],512),[[nt,!(a.slug!=="__default"&&ze(a.slug))]])]))),128)),k.value?g("",!0):(e(),s("button",{key:0,t
1ype:"button",class:"briefing-card__watch-cta",onClick:t[14]||(t[14]=a=>Ke())}," Choose my streaming services → ")),t[43]||(t[43]=r("a",{class:"briefing-card__watch-attrib",href:"https://www.themoviedb.org/",target:"_blank",rel:"noopener"},"Data from TMDB",-1))],64))]),o(mr,{modelValue:We.value,"onUpdate:modelValue":t[15]||(t[15]=a=>We.value=a),tile:Xe.value},null,8,["modelValue","tile"])],64)):g("",!0),U.value?(e(),s(T,{key:10},[u(d).portfolioSymbols.length?u(d).portfolioNews.length?(e(),s("ul",cs,[(e(!0),s(T,null,Q(u(d).portfolioNews,a=>(e(),s("li",{key:a.url},[r("span",vs,[a.logo?(e(),s("img",{key:0,src:a.logo,alt:"",class:"briefing-card__portfolio-logo",onError:t[17]||(t[17]=S=>S.target.style.display="none")},null,40,fs)):g("",!0),r("span",gs,v(a.ticker),1),f(" "+v(a.source)+v(et(a.published)?` · ${et(a.published)}`:""),1)]),r("a",{href:a.url,target:"_blank",rel:"noopener",class:"briefing-card__portfolio-title"},v(a.title),9,ps)]))),128))])):u(d).portfolioNewsFetched?(e(),s("p",ms," No fresh headlines for your stocks right now — check back next edition. ")):g("",!0):(e(),s("div",ds,[u(d).importablePositionSymbols.length?(e(),s(T,{key:0},[r("p",null," Found "+v(u(d).importablePositionSymbols.length)+" stock"+v(u(d).importablePositionSymbols.length>1?"s":"")+" with positions in your Financial Dashboard. ",1),r("button",{type:"button",class:"briefing-card__portfolio-cta",onClick:t[16]||(t[16]=a=>u(d).importPositions())}," Import my positions "),t[44]||(t[44]=r("p",{class:"briefing-card__portfolio-note"}," Tickers only — share counts and cost basis never leave this browser. ",-1))],64)):(e(),s(T,{key:1},[t[45]||(t[45]=r("p",null,"Track stocks in the Financial Dashboard and their latest headlines will show up here.",-1)),r("button",{type:"button",class:"briefing-card__portfolio-cta",onClick:xt}," Open Financial Dashboard ")],64))]))],64)):g("",!0),te.value?(e(),s(T,{key:11},[u(d).occasions.length?(e(),s("ul",_s,[(e(!0),s(T,null,Q(u(d).occasions,a=>(e(),s("li",{key:`${a.name}-${a.label}-${a.date}`},[r("span",{class:ie(["briefing-card__portfolio-meta",{"briefing-card__occasion-soon":a.daysUntil<=7}])},v(mt(a)),3),r("span",hs,v(pt(a)),1)]))),128))])):u(d).occasionsFetched?(e(),s("div",ys,[u(d).occasionsHasBoard?(e(),s("p",bs,"No upcoming occasions — add birthdays and dates to your people in the Gift Shop.")):(e(),s("p",ws," Add the people you shop for — birthdays, anniversaries, gift ideas — and their occasions will show up here so nothing sneaks up on you. ")),r("button",{type:"button",class:"briefing-card__portfolio-cta",onClick:I},v(u(d).occasionsHasBoard?"Open the Gift Shop":"Set up my people"),1)])):g("",!0)],64)):g("",!0),Z.value?(e(),s(T,{key:12},[u(d).weatherLocation?u(d).weatherCurrent?(e(),s(T,{key:1},[r("p",Cs,[f(" Feels like "+v(q(u(d).weatherCurrent.feelsLike))+" ",1),u(d).weatherForecast.length?(e(),s(T,{key:0},[f(" · H "+v(q(u(d).weatherForecast[0].maxTemperature))+" / L "+v(q(u(d).weatherForecast[0].minTemperature)),1)],64)):g("",!0),f(" · "+v(u(d).weatherCurrent.humidity)+"% humidity ",1)]),u(d).weatherForecast.length>1?(e(),s("div",$s,[(e(!0),s(T,null,Q(u(d).weatherForecast.slice(0,4),(a,S)=>(e(),s("div",{key:a.date,class:"briefing-card__weather-day"},[r("span",Ss,v(R(a.date,S)),1),r("img",{src:L(a.iconBaseUri),alt:a.description,title:a.description,class:"briefing-card__weather-day-icon"},null,8,Ts),r("span",xs,[f(v(q(a.maxTemperature))+" ",1),r("span",Ds,v(q(a.minTemperature)),1)])]))),128))])):g("",!0),r("div",Is,[t[47]||(t[47]=r("span",{class:"briefing-card__tag-sig"},null,-1)),f(" Live · "+v(u(d).weatherLocation.name),1)])],64)):u(d).weatherFetched?(e(),s("p",Vs," Couldn't load the weather right now — check back in a bit. ")):g("",!0):(e(),s("div",ks,[t[46]||(t[46]=r("p",null,"Set your home location and your local weather will be right here, live, every time you open your brief.",-1)),r("button",{type:"button",class:"briefing-card__portfolio-cta",onClick:J}," Set my location ")]))],64)):g("",!0),$e.value.length&&(N.value||A.value||!Ie.value.length)?(e(),s("ul",Bs,[(e(!0),s(T,null,Q($e.value,(a,S)=>(e(),s("li",{key:S},v(a),1))),128))])):g("",!0),x.item.card.sources.length||z.value?(e(),s("div",Ns,[r("div",As,[(e(!0),s(T,null,Q(x.item.card.sources,a=>(e(),s("a",{key:a.url,href:a.url,target:"_blank",rel:"noopener",class:"briefing-card__src"}
1,v(Ye(a.title)),9,Fs))),128)),z.value&&ge.value?(e(),s("a",{key:0,href:ge.value,target:"_blank",rel:"noopener",class:"briefing-card__src briefing-card__src--score"},"Go to Game ›",8,Ls)):g("",!0)]),z.value?(e(),s("span",Ps,[t[48]||(t[48]=r("span",{class:"briefing-card__tag-sig"},null,-1)),t[49]||(t[49]=f(" Live data ",-1)),Te.value?(e(),s("span",Us,"· "+v(Te.value),1)):g("",!0)])):g("",!0)])):g("",!0)],64)):(e(),s("p",Ms,v(x.item.topic.available?"No update yet — check back soon.":"Arriving soon — this topic is coming to the Daily Brief."),1)),o(Ae,{modelValue:Le.value,"onUpdate:modelValue":t[19]||(t[19]=a=>Le.value=a),"max-width":"480"},{default:i(()=>[o(De,{class:"briefing-card-dialog"},{default:i(()=>[o(Tt,null,{default:i(()=>[f("Sources — "+v(x.item.topic.displayName),1)]),_:1}),o(Oe,null,{default:i(()=>[(e(!0),s(T,null,Q(x.item.card?.sources??[],a=>(e(),s("a",{key:a.url,href:a.url,target:"_blank",rel:"noopener",class:"briefing-card-dialog__source"},[r("span",Os,v(a.headline||a.title),1),a.headline?(e(),s("span",Gs,v(Ye(a.title)),1)):g("",!0)],8,Es))),128))]),_:1}),o(qe,null,{default:i(()=>[o(Ne),o(j,{variant:"text",onClick:t[18]||(t[18]=a=>Le.value=!1)},{default:i(()=>[...t[50]||(t[50]=[f(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),o(Ae,{modelValue:Pe.value,"onUpdate:modelValue":t[21]||(t[21]=a=>Pe.value=a),"max-width":"440"},{default:i(()=>[o(De,{class:"briefing-card-dialog",style:Ce({"--cat":oe.value})},{default:i(()=>[o(Oe,{class:"pt-5"},{default:i(()=>[r("div",Rs,[t[51]||(t[51]=r("span",{class:"briefing-card__chip-dot"},null,-1)),f(" "+v(x.item.topic.displayName),1)]),r("p",Hs,v(x.item.topic.category),1),Bt.value?(e(),s("p",zs,v(Bt.value),1)):g("",!0),N.value?(e(),s("p",Ws,[...t[52]||(t[52]=[f(" The Market mood meter tracks ",-1),r("a",{href:"https://www.cnn.com/markets/fear-and-greed",target:"_blank",rel:"noopener",class:"briefing-card-dialog__link"},"CNN's Fear & Greed Index",-1),f(" (0–100) — a read on whether the market is being driven by fear or greed. ",-1)])])):g("",!0),!z.value&&x.item.card?.sources?.length?(e(),s("p",Ys," Summaries come from cited sources. ")):g("",!0),Te.value?(e(),s("p",qs," Generated "+v(Te.value)+" ago · next edition "+v(aa.value)+". ",1)):g("",!0)]),_:1}),o(qe,null,{default:i(()=>[o(Ne),o(j,{variant:"text",onClick:t[20]||(t[20]=a=>Pe.value=!1)},{default:i(()=>[...t[53]||(t[53]=[f(" Close ",-1)])]),_:1})]),_:1})]),_:1},8,["style"])]),_:1},8,["modelValue"])]),_:1},8,["class","style"]))}}),Zs=Je(Qs,[["__scopeId","data-v-d93bc11d"]]);Ge();Re(),Ze(),dt();var Js={class:"interest-picker__header-title"},Ks={key:0,class:"interest-picker__flag"},Xs={key:1,class:"interest-picker__count"},ei={key:0,class:"interest-picker__group"},ti={class:"interest-picker__group-heading"},ai={class:"interest-picker__chips"},ri={viewBox:"0 0 24 24"},si=["d"],ii={class:"interest-picker__pro-banner"},li={viewBox:"0 0 24 24"},oi=["d"],ni={class:"interest-picker__pro-banner-sub"},ui={viewBox:"0 0 24 24"},di=["d"],ci=["onClick"],vi={class:"interest-picker__group-meta"},fi={viewBox:"0 0 24 24"},gi=["d"],pi={class:"interest-picker__chips"},mi={viewBox:"0 0 24 24"},_i=["d"],hi={key:0,class:"text-center text-medium-emphasis my-6"},yi=["onClick"],bi={viewBox:"0 0 24 24"},wi=["d"],ki={class:"interest-picker__group-meta"},Ci={viewBox:"0 0 24 24"},$i=["d"],Si={class:"interest-picker__chips"},Ti={key:0,class:"text-center text-medium-emphasis my-6"},xi="Sports · ",Di="Sports · League News",Ii=Qe({__name:"BriefingInterestPicker",props:{modelValue:{type:Boolean}},emits:["update:modelValue","go-pro","suggest-topic"],setup(x,{emit:m}){const _=x,G=m,d=vt(),N=ct(),C=$(_.modelValue),A=$([]),U=$(""),te=$(!1),I=p(()=>(U.value??"").trim()),Z=y=>y.startsWith(xi)&&y!==Di,J=y=>Z(y)||y==="Local News",q=y=>Z(y)?"teams":"cities",L=$(new Set),R=y=>{const h=new Set(L.value);h.has(y)?h.delete(y):h.add(y),L.value=h},D=y=>!J(y)||!!I.value||L.value.has(y),F=y=>y.filter(h=>A.value.includes(h.id)).length;xe(()=>_.modelValue,y=>{C.value=y,y&&(A.value=[...d.interests],U.value="",d.fetchCatalog().then(()=>{L.value=new Set(d.catalog.filter(h=>J(h.category)&&A.value.includes(h.id)).map(h=>h.category))}))}),xe(C,y=>G("update:modelValue",y));const K={AU:["afl","nrl","cricket","rugby","tennis","formula-1","australia","australia-politics","new-zealand"],NZ:["cricket","rugby","nrl","afl","new-zealand","australia"],GB:["premier-league","champions-league","formula-1","cricket","rugby","golf","tennis","boxing","united-kingdom","uk-politics","ireland","european-union"],IE:["premier-league","champions-league","rugby","golf","ireland","united-kingdom","european-union"],CA:["nhl","cfl","nba","mlb-news","canada","canada-p
1olitics"]},de={CA:["Sports · NHL","Sports · CFL"],AU:["Sports · AFL","Sports · NRL"],NZ:["Sports · NRL"],GB:["Sports · Premier League"],IE:["Sports · Premier League"]},V=p(()=>{const y=N.user?.country?.alpha2?.toUpperCase()??"";return K[y]??[]}),B=p(()=>N.user?.country??null),H=p(()=>{const y=N.user?.country?.alpha2?.toUpperCase()||"US";return d.catalog.filter(h=>h.category!=="Local News"||h.country===y)}),_e=p(()=>{const y=H.value.length;return y?I.value?`${H.value.filter(he).length} of ${y} topics`:`${y} topics`:""}),me=p(()=>Math.max(0,H.value.length-d.freeSet.length)),ce=y=>{const h=V.value;if(!h.length)return y;const w=new Map(h.map((M,ae)=>[M,ae]));return[...y].sort((M,ae)=>(w.get(M.id)??1/0)-(w.get(ae.id)??1/0))},he=y=>{const h=I.value.toLowerCase();return h?y.displayName.toLowerCase().includes(h)||y.category.toLowerCase().includes(h):!0},le=y=>{const h=N.user?.country?.alpha2?.toUpperCase()??"",w=de[h]??[];if(!w.length)return y;const M=new Map(w.map((b,l)=>[b,l])),ae=[...y.filter(b=>Z(b.category))].sort((b,l)=>(M.get(b.category)??1/0)-(M.get(l.category)??1/0));let Se=0;return y.map(b=>Z(b.category)?ae[Se++]:b)},ue=y=>{const h=new Map;for(const w of y)h.has(w.category)||h.set(w.category,[]),h.get(w.category).push(w);return le([...h.entries()].map(([w,M])=>({category:w,topics:ce(M)})))},re=p(()=>ue(H.value.filter(he))),oe=p(()=>d.freeSet.filter(y=>y!=="world-cup").map(y=>H.value.find(h=>h.id===y)).filter(y=>!!y)),z=p(()=>ue(H.value.filter(y=>!d.freeSet.includes(y.id)).filter(he))),ve=y=>A.value.includes(y),ye=$(""),ne=$(!1),$e=y=>{if(!d.isPro){G("go-pro");return}if(ve(y))A.value=A.value.filter(h=>h!==y);else if(A.value.length>=d.maxInterests){const h=d.catalog.find(w=>w.id===A.value[0]);A.value=[...A.value.slice(1),y],ye.value=`${d.maxInterests} interests max — removed ${h?.displayName??"your oldest pick"} to make room`,ne.value=!0}else A.value=[...A.value,y]},be=async()=>{te.value=!0,await d.saveInterests(A.value),te.value=!1,C.value=!1};return(y,h)=>(e(),P(Ae,{modelValue:C.value,"onUpdate:modelValue":h[6]||(h[6]=w=>C.value=w),"max-width":"720",scrollable:""},{default:i(()=>[o(De,{class:"interest-picker"},{default:i(()=>[o(Tt,{class:"interest-picker__header"},{default:i(()=>[r("div",Js,[r("span",null,v(u(d).isPro?"Pick your interests":"Daily Brief topics"),1),B.value?(e(),s("span",Ks,[o(u(Pa),{country:B.value.alpha2,size:"small"},null,8,["country"]),o(Yt,{activator:"parent",location:"bottom"},{default:i(()=>[f(" Topics are ordered for "+v(B.value.name)+" — set in Account Profile ",1)]),_:1})])):g("",!0),_e.value?(e(),s("span",Xs,v(_e.value),1)):g("",!0)]),u(d).isPro?(e(),P(Me,{key:0,size:"small",color:A.value.length>=u(d).maxInterests?"warning":"primary",variant:"tonal"},{default:i(()=>[f(v(A.value.length)+" / "+v(u(d).maxInterests),1)]),_:1},8,["color"])):g("",!0)]),_:1}),o(Oe,{class:"interest-picker__body"},{default:i(()=>[u(d).isPro?g("",!0):(e(),s(T,{key:0},[oe.value.length?(e(),s("div",ei,[r("div",ti,[h[7]||(h[7]=r("div",{class:"interest-picker__group-title"}," Included with every account ",-1)),o(Me,{size:"x-small",color:"primary",variant:"tonal"},{default:i(()=>[f(v(oe.value.length)+" included free ",1)]),_:1})]),r("div",ai,[(e(!0),s(T,null,Q(oe.value,w=>(e(),P(Me,{key:w.id,variant:"flat",color:"primary",size:"small"},{default:i(()=>[o(O,{start:"",size:"14"},{default:i(()=>[(e(),s("svg",ri,[r("path",{d:u(Ee),fill:"currentColor"},null,8,si)]))]),_:1}),f(" "+v(w.displayName),1)]),_:2},1024))),128))])])):g("",!0),r("div",ii,[o(O,{size:"18"},{default:i(()=>[(e(),s("svg",li,[r("path",{d:u($a),fill:"currentColor"},null,8,oi)]))]),_:1}),r("div",null,[h[9]||(h[9]=r("strong",null,"Full catalog of interests",-1)),r("div",ni,[h[8]||(h[8]=f(" An additional ",-1)),me.value?(e(),s(T,{key:0},[f(v(me.value),1)],64)):g("",!0),f(" interests are available, but they cost me considerable money (especially for thousands of users). BUT, for you, it's cheap. For as low as $2.50/mo, you can upgrade to a PRO account, allowing you to swap out these "+v(oe.value.length)+" topics for your own interests: sports teams, local news, stock portfolio news, hobbies, and everything you see below. More topics on the way. ",1)])])])],64)),o(Kt,{modelValue:U.value,"onUpdate:modelValue":h[0]||(h[0]=w=>U.value=w),placeholder:"Search topics…",density:"compact",variant:"outlined","hide-details":"",clearable:"",class:"mb-4"},{"prepend-inner":i(()=>[o(O,{size:"20"},{default:i(()=>[(e(),s("svg",ui,[r("path",{d:u(Ia),fill:"currentColor"},null,8,di)]))]),_:1})]),_:1},8,["modelValue"]),u(d).isPro?(e(),s(T,{key:1},[(e(!0),s(T,null,Q(re.value,w=>(e(),s("div",{key:w.category,class:"interest-picker__group"},[r("div",{class:ie(["interest-picker__group-title",{"interest-picker__group-title--toggle":J(w.category)}]),onClick:M=>J(w.category)&&R(w.category)},[f(v(w.category)+" ",1),J(w.category)?(e(),s(T,{key:0},[r("span",vi,[f(v(w.topics.length)+" "+v(q(w.category)),1),F(w.topics)?(e(),s(T,{key:0},[f(" · "+v(F(w.topics))+" picked",1)],64)):g("",!0)]),o(O,{size:"16",class:ie(["interest-picker__chevron",{"interest-picker__chevron--open":D(w.category)}])},{default:i(()=>[(e(),s("svg",fi,[r("path",{d:u(St),fill:"currentColor"},null,8,gi)]))]),_:1},8,["class"])],64)):g("",!0)],10,ci),ut(r("div",pi,[(e(!0),s(T,null,Q(w.topics,M=>(e(),P(Me,{key:M.id,variant:ve(M.id)?"flat":"outlined",color:ve(M.id)?"primary":void 0,size:"small",class:"interest-picker__chip",onClick:ae=>$e(M.id)},{default:i(()=>[ve(M.id)?(e(),P(O,{key:0,start:"",size:"14"},{default:i(()=>[(e(),s("svg",mi,[r("path",{d:u(Ee),fill:"currentColor"},null,8,_i)]))]),_:1})):g("",!0),f(" "+v(M.displayName),1)]),_:2},1032,["variant","color","onClick"]))),128))],512),[[nt,D(w.category)]])]))),128)),re.value.length===0?(e(),s("p",hi," No topics match your search. ")):g("",!0)],64)):(e(),s(T,{key:2},[(e(!0),s(T,null,Q(z.value,w=>(e(),s("div",{key:w.category,class:"interest-picker__group"},[r("div",{class:ie(["interest-picker__group-title",{"interest-picker__group-title--toggle":J(w.category)}]),onClick:M=>J(w.category)&&R(w.category)},[f(v(w.category)+" ",1),o(O,{size:"12"},{default:i(()=>[(e(),s("svg",bi,[r("path",{d:u(Ca),fill:"currentColor"},null,8,wi)]))]),_:1}),J(w.category)?(e(),s(T,{key:0},[r("span",ki,v(w.topics.length)+" "+v(q(w.category)),1),o(O,{size:"16",class:ie(["interest-picker__chevron",{"interest-picker__chevron--open":D(w.category)}])},{default:i(()=>[(e(),s("svg",Ci,[r("path",{d:u(St),fill:"currentColor"},null,8,$i)]))]),_:1},8,["class"])],64)):g("",!0)],10,yi),ut(r("div",Si,[(e(!0),s(T,null,Q(w.topics,M=>(e(),P(Me,{key:M.id,variant:"outlined",size:"small",class:"interest-picker__chip interest-picker__chip--locked",onClick:h[1]||(h[1]=ae=>G("go-pro"))},{default:i(()=>[f(v(M.displayName),1)]),_:2},1024))),128))],512),[[nt,D(w.category)]])]))),128)),z.value.length===0?(e(),s("p",Ti," No topics match your search. ")):g("",!0)],64))]),_:1}),o(qe,{class:"interest-picker__actions"},{default:i(()=>[r("button",{type:"button",class:"interest-picker__suggest",onClick:h[2]||(h[2]=w=>G("suggest-topic"))}," Suggest a topic "),o(Ne),o(j,{variant:"text",onClick:h[3]||(h[3]=w=>C.value=!1)},{default:i(()=>[f(v(u(d).isPro?"Cancel":"Maybe later"),1)]),_:1}),u(d).isPro?(e(),P(j,{key:0,color:"primary",variant:"flat",loading:te.value,onClick:be},{default:i(()=>[...h[10]||(h[10]=[f(" Save ",-1)])]),_:1},8,["loading"])):(e(),P(j,{key:1,color:"deep-purple",variant:"flat",onClick:h[4]||(h[4]=w=>G("go-pro"))},{default:i(()=>[...h[11]||(h[11]=[f(" Upgrade to Pro ",-1)])]),_:1}))]),_:1})]),_:1}),o(ma,{modelValue:ne.value,"onUpdate:modelValue":h[5]||(h[5]=w=>ne.value=w),timeout:4e3,location:"bottom",color:"primary"},{default:i(()=>[f(v(ye.value),1)]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))}}),Vi=Je(Ii,[["__scopeId","data-v-192b4fd5"]]);Ge();Re(),Ze(),dt();var Bi={class:"d-flex align-center text-white"},Ni={class:"custom-loader"},Et="briefingSuggestTopicIntro",Ai=Qe({__name:"BriefingFeedbackModal",props:{modelValue:{type:Boolean},initialCategory:{}},emits:["update:modelValue","feedback-sent"],setup(x,{emit:m}){const _=x,G=m,{mobile:d}=Qt(),N=Wt(),C=ct(),A=p(()=>C.user),U=p({get:()=>_.modelValue,set:V=>G("update:modelValue",V)}),te=["Suggest a New Topic","Bug Report","Feature Request","Card Content Issue","UI/UX Improvement","General Feedback","Other"],I=At({topic:"",category:"General Feedback",message:""});xe(()=>_.modelValue,V=>{V&&_.initialCategory&&(I.category=_.initialCategory)});const Z=p(()=>I.category==="Suggest a New Topic"),J=p(()=>(C.settings?.dismissedHints??[]).includes(Et)),q=async()=>
1{if(C.settings){C.settings.dismissedHints=[...C.settings.dismissedHints??[],Et];try{const V=(new Date(new Date().toUTCString()).getTime()/1e3).toString();localStorage.setItem("SYNC_DATE",V),await N.put("/settings",{settings:C.settings,syncDate:V})}catch{}}},L=At({show:!1,type:"error",message:""}),R=$(!1),D={required:V=>!!V||"This field is required",minLength:V=>B=>B&&B.length>=V||`Must be at least ${V} characters`,maxLength:V=>B=>B&&B.length<=V||`Must be less than ${V} characters`},F=p(()=>I.topic.length>=3&&I.topic.length<=50&&I.category.length>0&&I.message.length>=20&&I.message.length<=700),K=()=>{U.value=!1,setTimeout(()=>{I.topic="",I.category="General Feedback",I.message="",L.show=!1},300)},de=async()=>{if(!(!A.value||!F.value)){R.value=!0,L.show=!1;try{const V=new FormData;V.append("author",`${A.value.firstName} ${A.value.lastName}`),V.append("topic",`[Daily Brief] ${I.topic}`),V.append("category",I.category),V.append("message",I.message),V.append("currentDate",Date.now().toString()),V.append("isUploadingFile","false"),await N.post("/tickets",V,{headers:{"content-type":"multipart/form-data"}}),L.show=!0,L.type="success",L.message="Thank you! Your feedback has been sent and will be reviewed shortly.",setTimeout(()=>{G("feedback-sent"),K()},2e3)}catch(V){L.show=!0,L.type="error",L.message=V.response?.data||"There was an error sending your feedback. Please try again."}finally{R.value=!1}}};return(V,B)=>(e(),P(Ae,{modelValue:U.value,"onUpdate:modelValue":B[4]||(B[4]=H=>U.value=H),persistent:"","max-width":"800",fullscreen:u(d)},{default:i(()=>[o(De,{theme:"light",class:"feedback-modal"},{default:i(()=>[o(qt,{"max-height":"64",class:"feedback-dialog-toolbar",density:"comfortable"},{default:i(()=>[o(jt,null,{default:i(()=>[r("div",Bi,[o(O,{icon:u(ea),class:"mr-2"},null,8,["icon"]),B[5]||(B[5]=f(" Daily Brief Feedback ",-1))])]),_:1}),o(Ne),o(fa,null,{default:i(()=>[o(j,{icon:u(je),color:"white",variant:"text",onClick:K},null,8,["icon"])]),_:1})]),_:1}),o(Oe,{class:"pa-6"},{default:i(()=>[ut(o(Ft,{class:"mb-4",density:"comfortable",type:L.type,variant:"tonal",icon:u(Pt),"close-icon":u(Pt),closable:"","onClick:close":B[0]||(B[0]=H=>L.show=!1)},{default:i(()=>[f(v(L.message),1)]),_:1},8,["type","icon","close-icon"]),[[nt,L.show]]),Z.value&&!J.value?(e(),P(Ft,{key:0,color:"primary",variant:"tonal",icon:u(ya),"close-icon":u(je),closable:"",density:"compact",class:"mb-4","onClick:close":q},{default:i(()=>[...B[6]||(B[6]=[f(" Missing a topic, team, or hobby? Tell me what you'd like in your Daily Brief — the most-requested topics get added to the catalog. ",-1)])]),_:1},8,["icon","close-icon"])):g("",!0),r("form",{onSubmit:zt(de,["prevent"])},[o(pa,null,{default:i(()=>[o(bt,{cols:"12"},{default:i(()=>[o(Kt,{modelValue:I.topic,"onUpdate:modelValue":B[1]||(B[1]=H=>I.topic=H),label:"Subject *",variant:"outlined",maxlength:"50",counter:"",rules:[D.required,D.minLength(3),D.maxLength(50)],disabled:R.value,hint:"Final topic will be: [Daily Brief] "+(I.topic||"Your subject..."),"persistent-hint":""},null,8,["modelValue","rules","disabled","hint"])]),_:1}),o(bt,{cols:"12"},{default:i(()=>[o(va,{modelValue:I.category,"onUpdate:modelValue":B[2]||(B[2]=H=>I.category=H),label:"Feedback Type *",variant:"outlined",items:te,rules:[D.required],disabled:R.value},null,8,["modelValue","rules","disabled"])]),_:1}),o(bt,{cols:"12"},{default:i(()=>[o(ga,{modelValue:I.message,"onUpdate:modelValue":B[3]||(B[3]=H=>I.message=H),label:"Your feedback *",variant:"outlined",maxlength:"700",counter:"",rows:u(d)?4:6,rules:[D.required,D.minLength(20),D.maxLength(700)],disabled:R.value},null,8,["modelValue","rows","rules","disabled"])]),_:1})]),_:1})],32)]),_:1}),o(qe,{class:"px-6 pb-4"},{default:i(()=>[o(Ne),o(j,{class:"mr-2",color:"grey",variant:"outlined",disabled:R.value,onClick:K},{default:i(()=>[...B[7]||(B[7]=[f(" Cancel ",-1)])]),_:1},8,["disabled"]),o(j,{loading:R.value,type:"submit",class:"mr-2 feedback-submit-btn",variant:"flat",disabled:R.value||!F.value,onClick:de},{loader:i(()=>[r("span",Ni,[o(O,null,{default:i(()=>[f(v(u(Ta)),1)]),_:1})])]),default:i(()=>[B[8]||(B[8]=f(" Send Feedback ",-1))]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue","fullscreen"]))}}),Fi=Je(Ai,[["__scopeId","data-v-65142c9e"]]);Ge();Re(),Ze(),dt();var Li=Ma+" 1716w, "+Ea+" 2574w",Pi=Oa+" 1716w, "+Ga+" 2574w",Ui={viewBox:"0 0 24 24"},Mi=["d"],Ei={viewBox:"0 0 24 24"},Oi=["d"],Gi={key:0,class:"briefing-slot-label d-none d-sm-inline mr-4"},Ri={viewBox:"0 0 24 24"},Hi=["d"],zi={viewBox:"0 0 24 24"},Wi=["d"],Yi={viewBox:"0 0 24 24"},qi=["d"],ji={viewBox:"0 0 24 24"},Qi=["d"],Zi={class:"briefing-theme-picker briefing-theme-picker--menu"},Ji=["onClick"],Ki={viewBox:"0 0 24 24"},Xi=["d"],el={viewBox:"0 0 24 24"},tl=["d"],al={viewBox:"0 0 24 24"},rl=["d"],sl={viewBox:"0 0 24 24"},il=["d"],ll={viewBox:"0 0 24 24"},ol=["d"],nl={class:"briefing-content"},ul={key:0,class:"briefing-preview"},dl={class:"briefing-preview__actions"},cl={key:1,class:"briefing-state"},vl={key:2,class:"briefing-state"},fl={key:3,class:"briefing-state"},gl={viewBox:"0 0 24 24"},pl=["d"],ml={class:"text-medium-emphasis"},_l={class:"briefing-masonry__item"},hl={key:0,class:"briefing-hidden-note"},yl={key:0,class:"briefing-footer"},bl={class:"pa-3"},wl={class:"d-flex align-center justify-space-between mb-2"},kl=["innerHTML"],Cl={class:"d-flex justify-center mt-1"},$l={viewBox:"0 0 24 24"},Sl=["d"],Ot="/?reopen=briefing",kt="BRIEFING_HIDDEN",Gt="briefingTips",Tl=Qe({__name:"BriefingModal",setup(x){const m=vt(),_=ct(),G=$(!1),d=$(!1),N=$(!1),C=$(!1),A=$("General Feedback"),U=(b="General Feedback")=>{A.value=b,N.value=!1,C.value=!0},te=()=>{N.value=!1,ta.value=!0};xe(ke,b=>{b&&!m.fetched&&_.isLoggedIn&&m.fetchBriefing()},{immediate:!0});const I=Rt(),Z=()=>I.push({path:"/create",query:{redirect:Ot}}),J=()=>I.push({path:"/login",query:{redirect:Ot}});xe(ke,b=>{const l=I.currentRoute.value;if(l.path!=="/"||b===(l.query.reopen==="briefing"))return;const k={...l.query};b?k.reopen="briefing":delete k.reopen,I.replace({query:k})},{immediate:!0});const q=$([]),L=$([]),R=()=>{try{const b=JSON.parse(localStorage.getItem(kt)||"null");L.value=b&&b.slotId===m.slotId&&Array.isArray(b.ids)?b.ids:[]}catch{L.value=[]}},D=b=>{const l=_.settings?.briefingOrder??[];if(!l.length)return[...b];const k=new Map(l.map((W,Y)=>[W,Y]));return[...b].sort((W,Y)=>(k.get(W.topic.id)??1/0)-(k.get(Y.topic.id)??1/0))},F=()=>{q.value=D(m.items).filter(b=>!L.value.includes(b.topic.id))};xe(()=>[m.items,m.slotId],()=>{R(),F(),m.fetchLiveScores()},{immediate:!0});let K=null;xe(ke,b=>{b?(m.fetchLiveScores(),K||(K=setInterval(()=>m.fetchLiveScores(),4e4))):K&&(clearInterval(K),K=null)},{immediate:!0}),Ht(()=>{K&&clearInterval(K)});const de=()=>{m.saveCardOrder(q.value.map(b=>b.topic.id))},V=b=>{L.value=[...L.value,b],localStorage.setItem(kt,JSON.stringify({slotId:m.slotId,ids:L.value})),F()},B=()=>{L.value=[],localStorage.removeItem(kt),F()},H=p(()=>{const b=_.user?.country?.alpha2?.toUpperCase()??"";return!b||b==="US"||b==="CA"}),_e=p(()=>{const b=m.items.map(Y=>Y.card?.generatedAt).filter(Y=>!!Y);if(!b.length)return"";const l=Math.max(...b.map(Y=>new Date(Y).getTime())),k=Math.floor((Date.now()-l)/6e4);if(k<1)return"just now";if(k<60)return`${k}m ago`;const W=Math.floor(k/60);return W<24?`${W}h ago`:`${Math.floor(W/24)}d ago`}),me=p(()=>
1{if(!m.slotId)return"";const b=`${m.slotId.slice(-2)==="am"?"Morning":"Evening"} edition`;return H.value?`${b} · ${new Date(`${m.slotId.slice(0,10)}T12:00:00`).toLocaleDateString("en-US",{month:"short",day:"numeric"})}`:_e.value?`${b} · updated ${_e.value}`:b}),ce=p(()=>!m.loading&&m.fetched&&m.items.length===0),he=()=>{G.value=!0},le={classic:{name:"Classic",swatch:"linear-gradient(135deg, #ffffff 55%, #607d8b 55%)"},sky:{name:"Sky Blue",bg:"#e8f3fc",toolbar:"linear-gradient(135deg, #e8f3fc 0%, #bcdcf5 100%)",swatch:"linear-gradient(135deg, #e8f3fc 55%, #11507e 55%)",scroll:"rgba(17, 80, 126, 0.5)"},mint:{name:"Mint Green",bg:"#e8f6ee",toolbar:"linear-gradient(135deg, #e8f6ee 0%, #bfe7cf 100%)",swatch:"linear-gradient(135deg, #e8f6ee 55%, #1e5e3e 55%)",scroll:"rgba(30, 94, 62, 0.5)"},lavender:{name:"Lavender",bg:"#f2edfa",toolbar:"linear-gradient(135deg, #f2edfa 0%, #d8c8f0 100%)",swatch:"linear-gradient(135deg, #f2edfa 55%, #4527a0 55%)",scroll:"rgba(69, 39, 160, 0.5)"},sand:{name:"Warm Sand",bg:"#fdf6ec",toolbar:"linear-gradient(135deg, #fdf6ec 0%, #f3ddba 100%)",swatch:"linear-gradient(135deg, #fdf6ec 55%, #8d6e63 55%)",scroll:"rgba(141, 110, 99, 0.55)"},photo:{name:"My Background"}},ue=p(()=>{const b=_.settings?.backgrounds;return b?.backgroundImage?ca(b.backgroundImage,{isVideoPoster:!!b.backgroundVideo,attachment:"scroll"}):""}),re=p(()=>{const b=_.settings?.briefingTheme;return b&&le[b]?b:"photo"}),oe=p(()=>re.value==="photo"&&!!ue.value),z=p(()=>re.value!=="classic"&&re.value!=="photo"),ve=p(()=>z.value||oe.value),ye=p(()=>{if(oe.value)return{"--briefing-photo":ue.value,"--briefing-scroll":"rgba(255, 255, 255, 0.55)"};if(!z.value)return{};const b=le[re.value];return{"--briefing-bg":b.bg,"--briefing-toolbar":b.toolbar,"--briefing-scroll":b.scroll}}),ne=b=>b==="photo"?ue.value:le[b].swatch,$e=b=>{m.saveTheme(b)},be=p(()=>_.settings?.briefingDensity??"comfortable"),y=p(()=>be.value==="compact"),h=b=>{m.saveDensity(b)},w=$(!1),M=p(()=>_.isLoggedIn&&!m.isHintDismissed(Gt)),ae=[{icon:Ba,color:"blue",text:"Before dragging cards to rearrange, <strong>zoom your browser out</strong> — it gives you the ability to drag the whole page."},{icon:ha,color:"green",text:"Add your holdings in the <strong>Financial Dashboard</strong> and they show up in your <strong>My Portfolio</strong> card."},{icon:wa,color:"red",text:"Watching a game on delay? Turn on <strong>Hide live scores</strong> in the ⋮ menu — you'll still see the LIVE badge, just no score."}],Se=()=>{w.value=!1,m.dismissHint(Gt)};return(b,l)=>(e(),P(Ae,{modelValue:u(ke),"onUpdate:modelValue":l[22]||(l[22]=k=>la(ke)?ke.value=k:null),fullscreen:"",transition:"dialog-bottom-transition"},{default:i(()=>[o(De,{class:ie(["briefing-modal",{"briefing-modal--themed":z.value,"briefing-modal--photo":oe.value}]),style:Ce(ye.value),theme:ve.value?"light":void 0},{default:i(()=>[o(qt,{class:"briefing-toolbar"},{default:i(()=>[o(jt,{class:"d-flex align-center"},{default:i(()=>[r("img",{class:"toolbar-logo",src:Aa,alt:"BHE",style:{cursor:"pointer"},onClick:l[0]||(l[0]=k=>ke.value=!1)}),o(O,{class:"mr-2"},{default:i(()=>[(e(),s("svg",Ui,[l[23]||(l[23]=r("defs",null,[r("linearGradient",{id:"briefingTitleGradient",x1:"0",y1:"0",x2:"1",y2:"0.25"},[r("stop",{offset:"0",style:{"stop-color":"var(--sunrise-1)"}}),r("stop",{offset:"0.55",style:{"stop-color":"var(--sunrise-2)"}}),r("stop",{offset:"1",style:{"stop-color":"var(--sunrise-3)"}})])],-1)),r("path",{d:u(Lt),fill:"url(#briefingTitleGradient)"},null,8,Mi)]))]),_:1}),l[24]||(l[24]=r("span",{class:"toolbar-title"},"Daily Brief",-1)),l[25]||(l[25]=r("span",{class:"briefing-new-badge"},"NEW",-1)),l[26]||(l[26]=r("span",{class:"briefing-tagline d-none d-sm-inline"},"Your interests, at a glance. Updated frequently. No ads. ",-1)),o(j,{icon:"",size:"x-small",variant:"text",class:"briefing-help-btn","aria-label":"About the Daily Brief",onClick:l[1]||(l[1]=k=>N.value=!0)},{default:i(()=>[o(O,{size:"20"},{default:i(()=>[(e(),s("svg",Ei,[r("path",{d:u(wt),fill:"currentColor"},null,8,Oi)]))]),_:1})]),_:1})]),_:1}),o(Ne),me.value?(e(),s("span",Gi,v(me.value),1)):g("",!0),u(_).isLoggedIn?g("",!0):(e(),P(j,{key:1,color:"primary",variant:"flat",rounded:"xl",class:"mr-2",onClick:Z},{default:i(()=>[...l[27]||(l[27]=[f(" Create free account ",-1)])]),_:1})),u(_).isLoggedIn?(e(),P(j,{key:2,color:"primary",variant:"flat",rounded:"xl",class:"mr-2",onClick:he},{default:i(()=>[o(O,{start:""},{default:i(()=>[(e(),s("svg",Ri,[r("path",{d:u(Na),fill:"currentColor"},null,8,Hi)]))]),_:1}),l[28]||(l[28]=f(" Interests ",-1))]),_:1})):g("",!0),u(_).isLoggedIn?(e(),P($t,{key:3,location:"bottom end"},{activator:i(({props:k})=>[o(j,Ct(k,{icon:"",variant:"text",class:"mr-1","aria-label":"Daily Brief options"}),{default:i(()=>[o(O,null,{default:i(()=>[(e(),s("svg",zi,[r("path",{d:u(Xt),fill:"currentColor"},null,8,Wi)]))]),_:1})]),_:1},16)]),default:i(()=>[o(Zt,{density:"compact"},{default:i(()=>[o(yt,null,{default:i(()=>[...l[29]||(l[29]=[f("Card size",-1)])]),_:1}),o(ee,{onClick:l[2]||(l[2]=k=>h("comfortable"))},{append:i(()=>[o(O,{size:"16",style:Ce({opacity:y.value?0:1})},{default:i(()=>[(e(),s("svg",Yi,[r("path",{d:u(Ee),fill:"currentColor"},null,8,qi)]))]),_:1},8,["style"])]),default:i(()=>[o(X,null,{default:i(()=>[...l[30]||(l[30]=[f("Comfortable",-1)])]),_:1})]),_:1}),o(ee,{onClick:l[3]||(l[3]=k=>h("compact"))},{append:i(()=>[o(O,{size:"16",style:Ce({opacity:y.value?1:0})},{default:i(()=>[(e(),s("svg",ji,[r("path",{d:u(Ee),fill:"currentColor"},null,8,Qi)]))]),_:1},8,["style"])]),default:i(()=>[o(X,null,{default:i(()=>[...l[31]||(l[31]=[f("Compact",-1)])]),_:1})]),_:1}),o(yt,null,{default:i(()=>[...l[32]||(l[32]=[f("Color scheme",-1)])]),_:1}),r("div",Zi,[(e(),s(T,null,Q(le,(k,W)=>r("button",{key:W,type:"button",class:ie(["briefing-swatch",{"briefing-swatch--active":re.value===W}]),style:Ce({background:ne(W)}),onClick:zt(Y=>$e(W),["stop"])},[o(Yt,{activator:"parent",location:"bottom"},{default:i(()=>[f(v(k.name),1)]),_:2},1024)],14,Ji)),64))]),o(yt,null,{default:i(()=>[...l[33]||(l[33]=[f("Content",-1)])]),_:1}),o(ee,{onClick:l[4]||(l[4]=k=>u(m).saveFilterViolence(!u(m).filterViolence))},{append:i(()=>[o(O,{size:"16",style:Ce({opacity:u(m).filterViolence?1:0})},{default:i(()=>[(e(),s("svg",Ki,[r("path",{d:u(Ee),fill:"currentColor"},null,8,Xi)]))]),_:1},8,["style"])]),default:i(()=>[o(X,null,{default:i(()=>[...l[34]||(l[34]=[f("Filter violent content",-1)])]),_:1})]),_:1}),o(ee,{onClick:l[5]||(l[5]=k=>u(m).saveHideLiveScores(!u(m).hideLiveScores))},{append:i(()=>[o(O,{size:"16",style:Ce({opacity:u(m).hideLiveScores?1:0})},{default:i(()=>[(e(),s("svg",el,[r("path",{d:u(Ee),fill:"currentColor"},null,8,tl)]))]),_:1},8,["style"])]),default:i(()=>[o(X,null,{default:i(()=>[...l[35]||(l[35]=[f("Hide live scores",-1)])]),_:1})]),_:1}),o(_a,{class:"my-1"}),o(ee,{onClick:l[6]||(l[6]=k=>N.value=!0)},{prepend:i(()=>[o(O,{size:"18"},{default:i(()=>[(e(),s("svg",al,[r("path",{d:u(wt),fill:"currentColor"},null,8,rl)]))]),_:1})]),default:i(()=>[o(X,null,{default:i(()=>[...l[36]||(l[36]=[f("About / Help",-1)])]),_:1})]),_:1}),o(ee,{onClick:l[7]||(l[7]=k=>U())},{prepend:i(()=>[o(O,{size:"18"},{default:i(()=>[(e(),s("svg",sl,[r("path",{d:u(ea),fill:"currentColor"},null,8,il)]))]),_:1})]),default:i(()=>[o(X,null,{default:i(()=>[...l[37]||(l[37]=[f("Send feedback",-1)])]),_:1})]),_:1})]),_:1})]),_:1})):g("",!0),o(j,{icon:"",variant:"text",onClick:l[8]||(l[8]=k=>ke.value=!1)},{default:i(()=>[o(O,null,{default:i(()=>[(e(),s("svg",ll,[r("path",{d:u(je),fill:"currentColor"},null,8,ol)]))]),_:1})]),_:1})]),_:1}),o(Oe,{class:"briefing-body"},{default:i(()=>[r("div",nl,[u(_).isLoggedIn?u(m).loading?(e(),s("div",cl,[o(Jt,{indeterminate:"",color:"primary",size:"40"})])):u(m).error?(e(),s("div",vl,[r("p",null,v(u(m).error),1),o(j,{color:"primary",variant:"tonal",onClick:u(m).fetchBriefing},{default:i(()=>[...l[45]||(l[45]=[f(" Try again ",-1)])]),_:1},8,["onClick"])])):ce.value?(e(),s("div",fl,[o(O,{size:"48",class:"mb-2"},{default:i(()=>[(e(),s("svg",gl,[r("path",{d:u(Lt),fill:"currentColor"},null,8,pl)]))]),_:1}),l[47]||(l[47]=r("h3",null,"Build your Daily Brief",-1)),r("p",ml," Pick up to "+v(u(m).maxInterests)+" interests that matter to you — teams, tech, markets, and more. ",1),o(j,{color:"primary",variant:"flat",onClick:l[9]||(l[9]=k=>G.value=!0)},{default:i(()=>[...l[46]||(l[46]=[f(" Pick your interests ",-1)])]),_:1})])):(e(),s(T,{key:4},[o(u(Ra.default),{modelValue:q.value,"onUpdate:modelValue":l[11]||(l[11]=k=>q.value=k),"item-key":"topic.id",class:ie(["briefing-masonry",{"briefing-masonry--compact":y.value}]),handle:".briefing-drag-handle",animation:200,"ghost-class":"briefing-card-ghost",onEnd:de},{item:i(({element:k})=>[r("div",_l,[o(Zs,{item:k,"show-drag-handle":"",compact:y.value,onSwap:l[10]||(l[10]=W=>G.value=!0),onHide:W=>V(k.topic.id)},null,8,["item","compact","onHide"])])]),_:1},8,["modelValue","class"]),L.value.length?(e(),s("div",hl,[f(v(L.value.length)+" card"+v(L.value.length>
11?"s":"")+" hidden until the next edition · ",1),r("button",{type:"button",onClick:B}," Show now ")])):g("",!0)],64)):(e(),s("div",ul,[l[40]||(l[40]=r("h2",{class:"briefing-preview__title"}," Your interests, made personal. ",-1)),l[41]||(l[41]=r("p",{class:"briefing-preview__sub"}," A custom briefing on the things you actually care about — your teams, your stocks, your city — written fresh twice a day and grounded in real, cited sources. No doomscrolling, no ads, no algorithm. ",-1)),l[42]||(l[42]=r("picture",null,[r("source",{type:"image/webp",srcset:Li,sizes:"(max-width: 900px) 100vw, 900px"}),r("img",{class:"briefing-preview__shot",src:"/daily_brief_preview_sm.png",srcset:Pi,sizes:"(max-width: 900px) 100vw, 900px",alt:"A Daily Brief with cards for technology, markets, sports, and more",width:"1716",height:"961",loading:"lazy",decoding:"async"})],-1)),l[43]||(l[43]=r("ul",{class:"briefing-preview__points"},[r("li",null,[r("strong",null,"9 popular topics free"),f(" — AI, tech, markets, travel, space, and more. ")]),r("li",null,[r("strong",null,"Hundreds more with Pro"),f(" — pick any 15: your team, your city, your portfolio. ")]),r("li",null,[r("strong",null,"Two editions a day"),f(" — morning and evening, always current. ")])],-1)),r("div",dl,[o(j,{color:"primary",variant:"flat",size:"large",rounded:"xl",onClick:Z},{default:i(()=>[...l[38]||(l[38]=[f(" Create a free account ",-1)])]),_:1}),o(j,{variant:"text",size:"large",rounded:"xl",onClick:J},{default:i(()=>[...l[39]||(l[39]=[f(" I already have one ",-1)])]),_:1})]),l[44]||(l[44]=r("p",{class:"briefing-preview__note"}," Free to create. The topics above are included — no card required. ",-1))]))])]),_:1}),M.value?(e(),s("div",yl,[o($t,{modelValue:w.value,"onUpdate:modelValue":l[13]||(l[13]=k=>w.value=k),location:"top start","close-on-content-click":!1},{activator:i(({props:k})=>[o(Me,Ct(k,{size:"small",variant:"flat",color:"primary",class:"briefing-tips-chip","prepend-icon":u(Da)}),{default:i(()=>[...l[48]||(l[48]=[f(" Tips ",-1)])]),_:1},16,["prepend-icon"])]),default:i(()=>[o(De,{class:"briefing-tips-card","min-width":"300","max-width":"340"},{default:i(()=>[r("div",bl,[r("div",wl,[l[49]||(l[49]=r("span",{class:"text-body-small font-weight-bold"},"Quick tips",-1)),o(j,{icon:u(je),variant:"text",size:"x-small","aria-label":"Close tips",onClick:l[12]||(l[12]=k=>w.value=!1)},null,8,["icon"])]),(e(),s(T,null,Q(ae,(k,W)=>r("div",{key:W,class:"briefing-tip"},[o(O,{icon:k.icon,color:k.color,size:"18",class:"briefing-tip__icon"},null,8,["icon","color"]),r("span",{class:"briefing-tip__text",innerHTML:k.text},null,8,kl)])),64)),r("div",Cl,[o(j,{size:"x-small",variant:"text",color:"grey","prepend-icon":u(ka),onClick:Se},{default:i(()=>[...l[50]||(l[50]=[f(" Don't show again ",-1)])]),_:1},8,["prepend-icon"])])])]),_:1})]),_:1},8,["modelValue"])])):g("",!0),o(Vi,{modelValue:G.value,"onUpdate:modelValue":l[14]||(l[14]=k=>G.value=k),onGoPro:l[15]||(l[15]=k=>{G.value=!1,d.value=!0}),onSuggestTopic:l[16]||(l[16]=k=>U("Suggest a New Topic"))},null,8,["modelValue"]),o(Ua,{modelValue:d.value,"onUpdate:modelValue":l[17]||(l[17]=k=>d.value=k),source:"daily-brief","return-to":"briefing"},null,8,["modelValue"]),o(Fi,{modelValue:C.value,"onUpdate:modelValue":l[18]||(l[18]=k=>C.value=k),"initial-category":A.value},null,8,["modelValue","initial-category"]),o(Ae,{modelValue:N.value,"onUpdate:modelValue":l[21]||(l[21]=k=>N.value=k),"max-width":"520"},{default:i(()=>[o(De,{class:"briefing-help"},{default:i(()=>[o(Tt,{class:"briefing-help__title"},{default:i(()=>[o(O,{size:"20",class:"mr-2"},{default:i(()=>[(e(),s("svg",$l,[r("path",{d:u(wt),fill:"currentColor"},null,8,Sl)]))]),_:1}),l[51]||(l[51]=f(" Daily Brief ",-1))]),_:1}),o(Oe,null,{default:i(()=>[r("ul",{class:"briefing-help__list"},[l[55]||(l[55]=r("li",null,[r("strong",null,"2x editions each day."),f(" Auto-refreshes around 7 AM and 5 PM Eastern — a morning read and an evening catch-up. The fast-moving cards — "),r("strong",null,"Markets"),f(", "),r("strong",null,"U.S. News"),f(", and "),r("strong",null,"Sports"),f(" — also get a third refresh around midday. ")],-1)),l[56]||
1(l[56]=r("li",null,[r("strong",null,"No paywalls, No ads."),f(" But, the Daily Brief will never have pop-ups, ads, or paywalls, regardless if the source requires a subscription. ")],-1)),l[57]||(l[57]=r("li",null,[r("strong",null,"Make it yours."),f(" Pick your interests with the "),r("em",null,"Interests"),f(" button. Drag cards with the handle (upper-left) to rearrange, and use each card's 3-dot menu (⋮) to hide or remove topics. ")],-1)),r("li",null,[l[52]||(l[52]=r("strong",null,"Tuned to your location.",-1)),l[53]||(l[53]=f(" Topics, teams, and market indexes are catered toward your country in your ",-1)),r("button",{type:"button",class:"briefing-help__link",onClick:te}," Account Profile "),l[54]||(l[54]=f(". Be sure your location has been added for best results. ",-1))])]),l[58]||(l[58]=r("p",{class:"briefing-help__more"},[f(" Still have questions? See the "),r("a",{class:"briefing-help__link",href:"https://besthomepageever.com/help/",target:"_blank",rel:"noopener"},"help page"),f(" for the full Daily Brief FAQ. ")],-1))]),_:1}),o(qe,{class:"px-4 pb-4"},{default:i(()=>[o(j,{variant:"text",color:"primary",size:"small",onClick:l[19]||(l[19]=k=>U("Suggest a New Topic"))},{default:i(()=>[...l[59]||(l[59]=[f(" Suggest a topic ",-1)])]),_:1}),o(Ne),o(j,{color:"primary",variant:"tonal",onClick:l[20]||(l[20]=k=>N.value=!1)},{default:i(()=>[...l[60]||(l[60]=[f(" Got it ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["class","style","theme"])]),_:1},8,["modelValue"]))}}),Ol=Je(Tl,[["__scopeId","data-v-4891613e"]]);export{Ol as default};

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.