1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9309],{287:e=>{e.exports={clearfix:"styles_clearfix__V2hAN","v-center":"styles_v-center__yS2Ec","h-center":"styles_h-center__38JxG","vh-center":"styles_vh-center__YYWye","css-reset-btn":"styles_css-reset-btn__GYR44","fade-out":"styles_fade-out__R9rX5","fade-in":"styles_fade-in__7RcKB","color-inherit":"styles_color-inherit__jrfLW",verticalScrollDisabled:"styles_verticalScrollDisabled___jF3E","pointer-events-initial":"styles_pointer-events-initial__XYLBv","sr-only":"styles_sr-only__tWmA0",msnbc:"styles_msnbc____Cci","layout-rightRail":"styles_layout-rightRail__e5kLA",rail:"styles_rail__eiY3N",teaseList:"styles_teaseList__I6DWk","ad-container":"styles_ad-container__BMC0r","layout-rightRailTabbed":"styles_layout-rightRailTabbed__SK6HI",news:"styles_news__C98lJ","pkg-ad":"styles_pkg-ad__A6DoX","mps-slot":"styles_mps-slot__klUhw","mps-gpt-hidden":"styles_mps-gpt-hidden__yhghQ",pkg:"styles_pkg__eQXlV","layout-grid-container":"styles_layout-grid-container__DZTrM",lead:"styles_lead__KRlrN","pkg-bottom-border":"styles_pkg-bottom-border__fKi4p","no-margin":"styles_no-margin__PO2Md",today:"styles_today__ZPkL6",rail__container:"styles_rail__container__6lGcw","layout-grid-container-s":"styles_layout-grid-container-s__bTb0L","gutter-collapse":"styles_gutter-collapse__E0Gog","layout-grid-item":"styles_layout-grid-item__3np0W","teaserow-border-right-adjacent":"styles_teaserow-border-right-adjacent__JSHeT","teaserow-border-left-rail":"styles_teaserow-border-left-rail__aqrA3","teaserow-border-right-rail":"styles_teaserow-border-right-rail__qg7_f","layout-subgrid-container":"styles_layout-subgrid-container__wuaMm","layout-subgrid-item":"styles_layout-subgrid-item__AOFHB","grid-col-12":"styles_grid-col-12__wX1uE","grid-fr-whole":"styles_grid-fr-whole__UCHz2","grid-col-6":"styles_grid-col-6__T_A5o","grid-fr-half":"styles_grid-fr-half__mIBmb","grid-fr-third":"styles_grid-fr-third__dSLWV","grid-fr-quarter":"styles_grid-fr-quarter___LA7A","grid-col-push-0":"styles_grid-col-push-0__CBO5a","grid-col-push-1":"styles_grid-col-push-1__h996s","grid-col-push-2":"styles_grid-col-push-2__I_GS1","layout-grid-item--with-gutter-s-only":"styles_layout-grid-item--with-gutter-s-only__1wZ4_","gutter-collapse-m":"styles_gutter-collapse-m__BjVdO","grid-col-1-m":"styles_grid-col-1-m__eJpUm","grid-col-2-m":"styles_grid-col-2-m__tTSNq","grid-col-3-m":"styles_grid-col-3-m__Si4Bc","grid-col-4-m":"styles_grid-col-4-m__FQgUL","grid-col-5-m":"styles_grid-col-5-m__KPVs6","grid-col-6-m":"styles_grid-col-6-m__1KfPT","grid-col-7-m":"styles_grid-col-7-m__iwbfZ","grid-col-8-m":"styles_grid-col-8-m__4iDDJ","grid-col-9-m":"styles_grid-col-9-m__5trdO","grid-col-10-m":"styles_grid-col-10-m__DMGMV","grid-col-11-m":"styles_grid-col-11-m__RwETK","grid-col-12-m":"styles_grid-col-12-m__L5wUu","grid-fr-half-m":"styles_grid-fr-half-m__GZMcy","grid-fr-third-m":"styles_grid-fr-third-m__uxnKV","grid-fr-quarter-m":"styles_grid-fr-quarter-m__Q_QDa","grid-col-push-0-m":"styles_grid-col-push-0-m__TishX","grid-col-push-1-m":"styles_grid-col-push-1-m__PaZRb","grid-col-push-2-m":"styles_grid-col-push-2-m__A5ufB","grid-col-push-3-m":"styles_grid-col-push-3-m__qhq2s","grid-col-push-4-m":"styles_grid-col-push-4-m__zXj8A","grid-col-push-5-m":"styles_grid-col-push-5-m__Vzz0p","grid-col-push-6-m":"styles_grid-col-push-6-m__qKrok","grid-col-push-7-m":"styles_grid-col-push-7-m__pdD7y","grid-col-push-8-m":"styles_grid-col-push-8-m___BnHA","grid-col-push-9-m":"styles_grid-col-push-9-m__PiY1L","grid-col-push-10-m":"styles_grid-col-push-10-m__7ze03","grid-col-push-11-m":"styles_grid-col-push-11-m__ZKv61","is-gapless":"styles_is-gapless__DtAoV","grid-col-1-l":"styles_grid-col-1-l__s7AKE","grid-col-2-l":"styles_grid-col-2-l__vdRQP","grid-col-3-l":"styles_grid-col-3-l__DYmsN","grid-col-3_5-l":"styles_grid-col-3_5-l__uhNe1","grid-col-4-l":"styles_grid-col-4-l__oQocJ","grid-col-4_5-l":"styles_grid-col-4_5-l__a5tWi","grid-col-5-l":"styles_grid-col-5-l__kn9hK","grid-col-6-l":"styles_grid-col-6-l__KeWjw","grid-col-7-l":"styles_grid-col-7-l__yuBUd","grid-col-7_5-l":"styles_grid-col-7_5-l__sSwO9","grid-col-8-l":"styles_grid-col-8-l__AGgxL","grid-col-9-l":"styles_grid-col-9-l__vc_Vk","grid-col-10-l":"styles_grid-col-10-l__xKuGJ","grid-col-11-l":"styles_grid-col-11-l__WikVW","grid-col-12-l":"styles_grid-col-12-l__J98mx","grid-fr-half-l":"styles_grid-fr-half-l__X9RI1","grid-fr-third-l":"styles_grid-fr-third-l__BHAhN","grid-fr-quarter-l":"styles_grid-fr-quarter-l__D8cEN","grid-col-push-0-l"
1:"styles_grid-col-push-0-l__vX5aF","grid-col-push-1-l":"styles_grid-col-push-1-l__Vxgqq","grid-col-push-2-l":"styles_grid-col-push-2-l__GyRQA","grid-col-push-3-1":"styles_grid-col-push-3-1__GdqCQ","grid-col-push-4-1":"styles_grid-col-push-4-1__gSFlq","grid-col-push-5-1":"styles_grid-col-push-5-1__g8wUG","grid-col-push-6-1":"styles_grid-col-push-6-1__1IOOS","grid-col-push-7-1":"styles_grid-col-push-7-1__ZboHI","grid-col-push-8-1":"styles_grid-col-push-8-1__8cFKG","grid-col-push-9-1":"styles_grid-col-push-9-1__upAWk","grid-col-push-10-1":"styles_grid-col-push-10-1__g9GFL","grid-col-push-11-1":"styles_grid-col-push-11-1__p8XX9","grid-col-1-xl":"styles_grid-col-1-xl__CvQel","grid-col-2-xl":"styles_grid-col-2-xl__mWMxO","grid-col-3-xl":"styles_grid-col-3-xl__223D9","grid-col-3_5-xl":"styles_grid-col-3_5-xl__EyIbI","grid-col-4-xl":"styles_grid-col-4-xl__c_fHZ","grid-col-5-xl":"styles_grid-col-5-xl__7XCwp","grid-col-6-xl":"styles_grid-col-6-xl__fVAxB","grid-col-7-xl":"styles_grid-col-7-xl__CmrWI","grid-col-8-xl":"styles_grid-col-8-xl___sJ2Q","grid-col-9-xl":"styles_grid-col-9-xl__WHDq0","grid-col-10-xl":"styles_grid-col-10-xl__wdCyb","grid-col-11-xl":"styles_grid-col-11-xl__GllwB","grid-col-12-xl":"styles_grid-col-12-xl__cWGLB","grid-fr-half-xl":"styles_grid-fr-half-xl__AT0YL","grid-fr-third-xl":"styles_grid-fr-third-xl__7t9sS","grid-fr-quarter-xl":"styles_grid-fr-quarter-xl__MhO0g","grid-col-push-0-xl":"styles_grid-col-push-0-xl__HOAV5","grid-col-push-half-xl":"styles_grid-col-push-half-xl___cv0l","grid-col-push-1-xl":"styles_grid-col-push-1-xl___4U6Q","grid-col-push-2-xl":"styles_grid-col-push-2-xl__OPjcp","grid-col-push-3-xl":"styles_grid-col-push-3-xl__R4KWz","grid-col-push-4-xl":"styles_grid-col-push-4-xl__ouj0O","grid-col-push-5-xl":"styles_grid-col-push-5-xl__VvKQF","grid-col-push-6-xl":"styles_grid-col-push-6-xl__CiqWN","grid-col-push-7-xl":"styles_grid-col-push-7-xl__4Uyct","grid-col-push-8-xl":"styles_grid-col-push-8-xl__ijvx_","grid-col-push-9-xl":"styles_grid-col-push-9-xl__iIMPs","grid-col-push-10-xl":"styles_grid-col-push-10-xl__zhdoE","grid-col-push-11-xl":"styles_grid-col-push-11-xl__jeRNH",boxinlineAd:"styles_boxinlineAd__YgBmS",boxflexAd:"styles_boxflexAd__DVq4w","db-print":"styles_db-print__q0te5","di-print":"styles_di-print__Fq05t","dn-print":"styles_dn-print__rN_ba","dg-print":"styles_dg-print___NAOY","f4-print":"styles_f4-print___GjC7","mh0-print":"styles_mh0-print__6TeC0","ml0-print":"styles_ml0-print__uQpHQ","mr0-print":"styles_mr0-print__tRl_c","mb0-print":"styles_mb0-print__vhFHk","pl0-print":"styles_pl0-print__7Ce_T","pt0-print":"styles_pt0-print__SgzoU","pb0-print":"styles_pb0-print__tv1Mq","black-print":"styles_black-print___O9AC","no-underline-print":"styles_no-underline-print__Daw58","w3-print":"styles_w3-print__LZALC","lh-none-print":"styles_lh-none-print__TdTbW","b-none-print":"styles_b-none-print__sTtyQ","bg-none-print":"styles_bg-none-print__S2qIT","navbar__logo--print":"styles_navbar__logo--print__FWh6A",updateSuccess:"styles_updateSuccess__stqJo",bare:"styles_bare__XdMtm",rightIcon:"styles_rightIcon__nhE42",trash:"styles_trash__JFgbu",resetButton:"styles_resetButton__jb166",h2:"styles_h2__fMEg7",h3:"styles_h3__8zmx8",profileContainer:"styles_profileContainer__5gJ_b",contactContainer:"styles_contactContainer__9_v1_",resetPasswordContainer:"styles_resetPasswordContainer__3gtl7",updateEmailContainer:"styles_updateEmailContainer__58maC",hr:"styles_hr__n7P3F",link:"styles_link__pJxRV",p:"styles_p___i_kc","live-dot-blink":"styles_live-dot-blink__L_zZV","expand-in":"styles_expand-in__jTPDx","chatblog-expand-in":"styles_chatblog-expand-in__bn9yK"}},867:(e,t,s)=>{"use strict";s.d(t,{z:()=>i});let i=()=>{let e,t=new URLSearchParams(window.location?.search).get("from");if(!t)return null;try{e=new URL(t)}catch(e){return null}return("http:"===e.protocol||"https:"===e.protocol)&&/(^|\.)(nbcnews|today)\.com$/.test(e.hostname)?e:null}},2841:e=>{e.exports={container:"styles_container__3FcPo",title:"styles_title__SYCTN",message:"styles_message__9F9iR",messagePadded:"styles_messagePadded__sES7q",link:"styles_link__Lh7oD"}},3114:e=>{e.exports={editButton:"styles_editButton__Q4bZd",content:"styles_content__ExqCB",loader:"styles_loader__bCwWX","live-dot-blink":"styles_live-dot-blink__wpU_G","fade-in":"styles_fade-in__7kMWc","expand-in":"styles_expand-in__8VCTG","chatblog-expand-in":"styles_chatblog-expand-in__gmQL8"}},8380:e=>{e.exports="/_next/static/images/fallback-image-for-saved-05fc813a18347a8a09d670d0acab2224.jpg"},8556:e=>{e.exports={tabs:"styles_tabs__HI_Jo",tab:"styles_tab__J_2vJ",active:"styles_active__itNdx","live-dot-blink":"styles_live-dot-blink__dDr4V","fade-in":"styles_fade-in__fYJ5H","expand-in":"styles_expand-in__nnBjz","chatblog-expand-in":"styles_chatblog-expand-in__MWeif"}}
1,17287:e=>{e.exports={myAccount:"styles_myAccount__99DG4",container:"styles_container__YKC50",appSubscriber:"styles_appSubscriber__1Mqr0",support:"styles_support__TTJ_S",supportLink:"styles_supportLink__Zj17g","live-dot-blink":"styles_live-dot-blink___akLc","fade-in":"styles_fade-in__LIh4Y","expand-in":"styles_expand-in__EPZqO","chatblog-expand-in":"styles_chatblog-expand-in__5jUjU"}},20259:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIyIiBoZWlnaHQ9IjEzNSIgdmlld0JveD0iMCAwIDIyMiAxMzUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxzdHlsZT4Kc3ZnIHsgb3ZlcmZsb3c6IHZpc2libGU7IH0KQGtleWZyYW1lcyBrZl9WZWN0b3Jfb3BhY2l0eV8wIHsKICAwJSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDc0LjA3JSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBlYXNlLW91dDsKICAgIG9wYWNpdHk6IDAuMjsKICB9CiAgODUuMTklIHsKICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICAgIG9wYWNpdHk6IDE7CiAgfQogIDg4Ljg5JSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBjdWJpYy1iZXppZXIoMC41LCAwLCAwLjUsIDEpOwogICAgb3BhY2l0eTogMTsKICB9CiAgODguOTMlIHsKICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICAgIG9wYWNpdHk6IDAuMjsKICB9CiAgMTAwJSB7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQp9CiNWZWN0b3IgewogIGFuaW1hdGlvbjoga2ZfVmVjdG9yX29wYWNpdHlfMCAyLjdzIGxpbmVhciBpbmZpbml0ZTsKfQpAa2V5ZnJhbWVzIGtmX1ZlY3Rvcl8yX29wYWNpdHlfMCB7CiAgMCUgewogICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyOwogICAgb3BhY2l0eTogMC4yOwogIH0KICA1OS4yNiUgewogICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogZWFzZS1vdXQ7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDcwLjM3JSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7CiAgICBvcGFjaXR5OiAxOwogIH0KICA4OC44OSUgewogICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogY3ViaWMtYmV6aWVyKDAuNSwgMCwgMC41LCAxKTsKICAgIG9wYWNpdHk6IDE7CiAgfQogIDg4LjkzJSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDEwMCUgewogICAgb3BhY2l0eTogMC4yOwogIH0KfQojVmVjdG9yXzIgewogIGFuaW1hdGlvbjoga2ZfVmVjdG9yXzJfb3BhY2l0eV8wIDIuN3MgbGluZWFyIGluZmluaXRlOwp9CkBrZXlmcmFtZXMga2ZfVmVjdG9yXzNfb3BhY2l0eV8wIHsKICAwJSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDQ0LjQ0JSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBlYXNlLW91dDsKICAgIG9wYWNpdHk6IDAuMjsKICB9CiAgNTUuNTYlIHsKICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICAgIG9wYWNpdHk6IDE7CiAgfQogIDg4Ljg5JSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBjdWJpYy1iZXppZXIoMC41LCAwLCAwLjUsIDEpOwogICAgb3BhY2l0eTogMTsKICB9CiAgODguOTMlIHsKICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICAgIG9wYWNpdHk6IDAuMjsKICB9CiAgMTAwJSB7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQp9CiNWZWN0b3JfMyB7CiAgYW5pbWF0aW9uOiBrZl9WZWN0b3JfM19vcGFjaXR5XzAgMi43cyBsaW5lYXIgaW5maW5pdGU7Cn0KQGtleWZyYW1lcyBrZl9WZWN0b3JfNF9vcGFjaXR5XzAgewogIDAlIHsKICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICAgIG9wYWNpdHk6IDAuMjsKICB9CiAgMjkuNjMlIHsKICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGVhc2Utb3V0OwogICAgb3BhY2l0eTogMC4yOwogIH0KICA0MC43NCUgewogICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyOwogICAgb3BhY2l0eTogMTsKICB9CiAgODguODklIHsKICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjUsIDAsIDAuNSwgMSk7CiAgICBvcGFjaXR5OiAxOwogIH0KICA4OC45MyUgewogICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyOwogICAgb3BhY2l0eTogMC4yOwogIH0KICAxMDAlIHsKICAgIG9wYWNpdHk6IDAuMjsKICB9Cn0KI1ZlY3Rvcl80IHsKICBhbmltYXRpb246IGtmX1ZlY3Rvcl80X29wYWNpdHlfMCAyLjdzIGxpbmVhciBpbmZpbml0ZTsKfQpAa2V5ZnJhbWVzIGtmX1ZlY3Rvcl81X29wYWNpdHlfMCB7CiAgMCUgewogICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyOwogICAgb3BhY2l0eTogMC4yOwogIH0KICAxNC44MSUgewogICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogZWFzZS1vdXQ7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDI1LjkzJSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7CiAgICBvcGFjaXR5OiAxOwogIH0KICA4OC44OSUgewogICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogY3ViaWMtYmV6aWVyKDAuNSwgMCwgMC41LCAxKTsKICAgIG9wYWNpdHk6IDE7CiAgfQogIDg4LjkzJSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQogIDEwMCUgewogICAgb3BhY2l0eTogMC4yOwogIH0KfQojVmVjdG9yXzUgewogIGFuaW1hdGlvbjoga2ZfVmVjdG9yXzVfb3BhY2l0eV8wIDIuN3MgbGluZWFyIGluZmluaXRlOwp9CkBrZXlmcmFtZXMga2ZfVmVjdG9yXzZfb3BhY2l0eV8wIHsKICAwJSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBlYXNlLW91dDsKICAgIG9wYWNpdHk6IDAuMjsKICB9CiAgMTEuMTElIHsKICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICAgIG9wYWNpdHk6IDE7CiAgfQogIDg4Ljg5JSB7CiAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBjdWJpYy1iZXppZXIoMC41LCAwLCAwLjUsIDEpOwogICAgb3BhY2l0eTogMTsKICB9CiAgODguOTMlIHsKICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjsKICAgIG9wYWNpdHk6IDAuMjsKICB9CiAgMTAwJSB7CiAgICBvcGFjaXR5OiAwLjI7CiAgfQp9CiNWZWN0b3JfNiB7CiAgYW5pbWF0aW9uOiBrZl9WZWN0b3JfNl9vcGFjaXR5XzAgMi43cyBsaW5lYXIgaW5maW5pdGU7Cn0KPC9zdHlsZT4KPGcgaWQ9InBlYWNvY2tfbG9hZGluZ19hbmltYXRpb24iPgo8cGF0aCBpZD0iVmVjdG9yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMjMuMTQ0IDg2LjY1NzMpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTAgNDguMzQyN0w2Mi42Mjk2IDQuNTY2OEM3OC41NjM3IC02LjU5ODI3IDk0LjMyOTcgNC43Nzc1NSA5Ny42NzkyIDE2LjU0NjZDMTAyLjU5OCAzMy44OTExIDkxLjU4MzEgNDguMzQyNyA3NC4yNDc0IDQ4LjM0MjdIMFoiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGlkPSJWZWN0b3JfMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTI4Ljk2NCAzMy43OTI3KSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wIDg4LjkyODRMMzAuODMxMyAxNS4yMTAzQzM4LjA0ODcgLTEuODgxNDQgNTcuMTY0IC00LjAwMiA2Ny43MzA3IDYuMDExNTNDNzUuMTU4NCAxMy4wNzU3IDgwLjkzMjIgMzIuMzE2MiA2NC4zMTEzIDQzLjk3M0wwLjAxNDA4NiA4OC45Mjg0SDBaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBpZD0iVmVjdG9yXzMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDExNC42ODcpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI4LjE0OTIgMC42NjI3NTlDMTIuNzc1NiAtMy4wMDI5IC0xLjQ2MjY2IDguOTkxMDEgMC4xMjA3NTggMjUuNDM2OEgxMC4wOTkxQzEwLjA5OTEgMjUuNDM2OCAxNC43NTE4IDI1LjM4MDYgMTYuMDk3IDI4LjUyNjNDMTYuMDk3IDI4LjUyNjMgMS4zNTQwMSAzNC4xMzAxIDIuNTE3NDggNDMuMjE2NkwxMS42OTY2IDExMC4xMDlMNDMuODMxMyAzMy4xMzI4QzQ4LjczNjIgMjEuNDQ4MSA0My4yNTY4IDQuMjAxNzMgMjguMTM1NCAwLjY3NjU1OEwyOC4xNDkyIDAuNjYyNzU5WiIgZmlsbD0iYmxhY2siLz4KPHBhdGggaWQ9IlZlY3Rvcl80IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg2MS43MDY3KSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00NS4zNTk2IDI2LjUwMTlDNDcuNjcyMSA5LjUwODI5IDMzLjE2NzIgLTMuMDc1MTggMTcuNDQzNSAwLjY2MDQxM0MyLjMyMjEzIDQuMTg1NTgg
1LTMuMTU3NTggMjEuNDMyIDEuNzQ3NTkgMzMuMTE2N0wzMy44ODIgMTEwLjA5M0w0NS4zNTk2IDI2LjQ4NzhWMjYuNTAxOVoiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGlkPSJWZWN0b3JfNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTcuOTcyNSAzMy43OTI3KSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03NS4wNjA0IDg4LjkyODRMNDQuMjI5MSAxNS4yMTAzQzM3LjAxMiAtMS44ODE0NCAxNy44OTY0IC00LjAwMiA3LjMyOTcxIDYuMDExNTNDLTAuMDk3ODE3MiAxMy4wNzU3IC01Ljg3MTY0IDMyLjMxNjIgMTAuNzQ5MiA0My45NzNMNzUuMDQ2MyA4OC45Mjg0SDc1LjA2MDRaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBpZD0iVmVjdG9yXzYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgODYuNjU3MykiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguODU0OSA0OC4zNDI3TDM2LjIyNTYgNC41NjY4QzIwLjI5MTQgLTYuNTk4MjcgNC41MjU0NiA0Ljc3NzU1IDEuMTc2MDUgMTYuNTQ2NkMtMy43NDI5NCAzMy44OTExIDcuMjg2MjQgNDguMzQyNyAyNC42MDc4IDQ4LjM0MjdIOTguODU0OVoiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPC9zdmc+Cg=="},23817:(e,t,s)=>{"use strict";s.d(t,{v:()=>a});var i=s(19081),l=s(88051);let a=async e=>{try{let t=(()=>{let{serverRuntimeConfig:e,publicRuntimeConfig:t}=(0,i.Ay)();return e.API_URL_SERVICES_SERVER||t.API_URL_SERVICES_PUBLIC||(0,l.H)()})().replace(/\/$/,""),s=await fetch(`${t}/topic-taxonomy`);if(!s.ok)throw Error(`Topic taxonomy request failed: ${s.status}`);let a=await s.json(),n=a?.data?.data?.length??0;return e?.info("Follow Topics CMS taxonomy fetched",{feature:"follow-topics-cms",categoryCount:n}),a?.data??null}catch(t){return e?.warn("Follow Topics CMS taxonomy fetch failed",{feature:"follow-topics-cms",message:t instanceof Error?t.message:String(t)}),null}}},25420:(e,t,s)=>{"use strict";s.d(t,{y:()=>h});var i=s(37876),l=s(14232),a=s(98477),n=s(15039),r=s.n(n),o=s(60129),c=s(51757),d=s.n(c);let u=0,p=()=>{let e="object"==typeof document?document.querySelector("#hfs-header > .hfsh"):null;return e?.getBoundingClientRect?Math.max(0,Math.round(e.getBoundingClientRect().bottom)):null},_={"bottom-center":d().bottomCenter,"top-right":d().topRight,responsive:d().responsive};function h({trigger:e,href:t,children:s,icon:n=null,duration:c=4e3,stack:y=!1,maxStack:m=3,position:g="bottom-center"}){let[f,b]=(0,l.useState)([]),x=(0,l.useRef)(new Map),v=(0,l.useRef)(!0),[w,j]=(0,l.useState)(null),C=f.length>0;(0,l.useEffect)(()=>{if(!C)return;j(p());let e=null,t=()=>{null===e&&(e=window.requestAnimationFrame(()=>{e=null,j(e=>{let t=p();return t===e?e:t})}))};return window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",t),window.removeEventListener("resize",t),null!==e&&window.cancelAnimationFrame(e)}},[C]);let N=(0,l.useCallback)(e=>{let t=x.current.get(e);t&&(t.enterFrame&&cancelAnimationFrame(t.enterFrame),t.hideTimeout&&clearTimeout(t.hideTimeout),t.removeTimeout&&clearTimeout(t.removeTimeout),x.current.delete(e))},[]),I=(0,l.useCallback)(e=>{N(e),b(t=>t.filter(t=>t.id!==e))},[N]),S=(0,l.useCallback)(e=>{b(t=>t.map(t=>t.id===e?{...t,visible:!1}:t));let t=setTimeout(()=>I(e),300),s=x.current.get(e)??{};x.current.set(e,{...s,removeTimeout:t})},[I]),A=(0,l.useCallback)((e,t)=>{let s=setTimeout(()=>S(e),t);x.current.set(e,{...x.current.get(e),hideTimeout:s,hideStartedAt:Date.now(),remainingMs:t})},[S]),k=(0,l.useCallback)((e,t)=>{let s={...x.current.get(e),...t};if(x.current.set(e,s),s.hovering||s.focused){if(!s.hideTimeout)return;clearTimeout(s.hideTimeout);let t=Date.now()-(s.hideStartedAt??Date.now()),i=Math.max(0,(s.remainingMs??c)-t);x.current.set(e,{...s,hideTimeout:void 0,remainingMs:i});return}s.hideTimeout||A(e,s.remainingMs??c)},[A,c]);(0,l.useEffect)(()=>{if(v.current){v.current=!1;return}if(null==e)return;let i=u+=1;b(e=>{let l=[...y?e:(e.forEach(e=>N(e.id)),[]),{id:i,visible:!1,content:s,icon:n,href:t}];return l.length<=m?l:(l.slice(0,l.length-m).forEach(e=>N(e.id)),l.slice(l.length-m))});let l=requestAnimationFrame(()=>{let e=requestAnimationFrame(()=>{b(e=>e.map(e=>e.id===i?{...e,visible:!0}:e))});x.current.set(i,{...x.current.get(i),enterFrame:e})});x.current.set(i,{...x.current.get(i),enterFrame:l}),A(i,c)},[e]),(0,l.useEffect)(()=>{let e=x.current;return()=>{Array.from(e.keys()).forEach(e=>N(e))}},[N]);let M="object"==typeof document?document.getElementById("toast-root"):null;if(!M)return null;let T=null!==w?{"--header-visible-bottom":`${w}px`}:void 0;return a.createPortal((0,i.jsx)("div",{"aria-live":"polite",className:r()(d().viewport,_[g]),"data-testid":"toast-viewport",role:"status",style:T,children:f.map(e=>(0,i.jsxs)(o.A,{className:r()(d().toast,{[d().toastVisible]:e.visible}),"data-testid":"toast",onBlur:()=>k(e.id,{focused:!1}),onFocus:()=>k(e.id,{focused:!0}),onMouseEnter:()=>k(e.id,{hovering:!0}),onMouseLeave:()=>k(e.id,{hovering:!1}),to:e.href,children:[(0,i.jsx)("span",{className:d().message,children:e.content}),e.icon&&(0,i.jsx)("span",{"aria-hidden":"true",className:d().icon,children:e.icon})]},e.id))}),M)}},35216:(e,t,s)=>{"use strict";s.d(t,{L:()=>u});var i=s(37876),l=s(14232),a=s(15039),n=s.n(a),r=s(41817),o=s.n(r);let c=()=>(0,i.jsxs)("svg",{"aria-hidden":"true",className:o().icon,"data-testid":"follow-topic-plus-icon",fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M5 0V10",stroke:"var(--news-blue-40)",strokeWidth:"2"}),(0,i.jsx)("path",{d:"M0 5H10",stroke:"var(--news-blue-40)",strokeWidth:"2"})]}),d=()=>(0,i.jsx)("svg",{"aria-hidden":"true",className:o().icon,"data-testid":"follow-topic-check-icon",fill:"none",height:"5.83",viewBox:"0 0 18 14",width:"9.24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M1.05811 5.3057L6.84334 11.0632L16.8914 1.06323",stroke:"currentColor",strokeWidth:"3.66"})});function u({topic:e,followed:t,onToggle:s}){let a=(0,l.useId)(),r=`follow-topic-${a}`;return(0,i.jsxs)("label",{className:n()(o().pill,{[o().followed]:t}),"data-testid":"follow-topic-button",htmlFor:r,children:[(0,i.jsx)("input",{checked:t,className:o().input,id:r,name:e.title,onChange:()=>s(!t),type:"checkbox",value:e.value}),t?(0,i.jsx)(d,{}):(0,i.jsx)(c,{}
1),e.title]})}},35884:e=>{e.exports={grid:"styles_grid__NmFvP"}},37701:e=>{e.exports={buttonGroup:"styles_buttonGroup__UNlRp",modal:"styles_modal__quvvM",leftIcon:"styles_leftIcon__R8r4c",container:"styles_container__m89KT","live-dot-blink":"styles_live-dot-blink__IuQkm","fade-in":"styles_fade-in__j6jvY","expand-in":"styles_expand-in__JcW6X","chatblog-expand-in":"styles_chatblog-expand-in__v5PlB"}},41817:e=>{e.exports={input:"styles_input__SEwvm",pill:"styles_pill__q246_",followed:"styles_followed__30jto",icon:"styles_icon__BO7lB"}},42340:(e,t,s)=>{"use strict";s.r(t),s.d(t,{UnwrappedErrorPage:()=>W,default:()=>P,navbarConfig:()=>B,validatedStatusCode:()=>D});var i=s(37876),l=s(14232),a=s(95062),n=s.n(a),r=s(77328),o=s.n(r),c=s(15039),d=s.n(c),u=s(19081),p=s(48011),_=s(89830);let h={entretenimiento:"telemundo",msnbc:"msnbc",news:"nbcnews",noticias:"telemundo",deportes:"telemundo",select:"select",shows:"telemundo",telemundo:"telemundo",today:"today"},y=(e,t)=>`https://nodeassets.nbcnews.com/cdnassets/projects/ramen/favicon/${h[e]||h.news}/all-other-sizes-PNG.ico/${t}`;function m({pageType:e}){let t=(0,l.useContext)(_.O);return(0,i.jsxs)(o(),{children:[(0,i.jsx)("link",{rel:"shortcut icon",type:"image/x-icon",href:y(t,"favicon.ico")}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:y(t,"favicon-16x16.png")}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:y(t,"favicon-32x32.png")}),(0,i.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:y(t,"favicon-96x96.png")}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(({pageType:e,vertical:t})=>JSON.stringify({"@context":{"@vocab":"http://schema.org",pageType:{"@id":"Text","@type":"@id"},vertical:{"@id":"Text","@type":"@id"},subVertical:{"@id":"Text","@type":"@id"},section:{"@id":"Text","@type":"@id"},subSection:{"@id":"Text","@type":"@id"},packageId:{"@id":"Text","@type":"@id"},sponsor:{"@id":"Text","@type":"@id"}},"@type":"Dataset",pageType:e,vertical:t,subVertical:"",section:"",subSection:"",packageId:"",sponsor:""}))({pageType:e,vertical:t})}})]})}m.propTypes={pageType:n().string.isRequired};var g=s(34846),f=s(60715),b=s(47559);s(60509);let x=({vertical:e,code:t})=>{let{t:s}=(0,g.Bd)(),a=s(`ERROR_H1_${t}`),n=(0,i.jsx)("a",{href:`/${(0,f.A)(e)}`,className:"error-message__text--branded",children:(0,b.getDisplayNameForVertical)(e)}),r=s(`ERROR_TEXT_${t}`).split("{{link}}");return r.splice(1,0,n),(0,i.jsxs)("div",{className:"error-message",children:[(0,i.jsxs)("div",{className:"error-message__headline-container",children:[(0,i.jsx)("h1",{className:"error-message__headline",children:a}),(0,i.jsx)("div",{className:"error-message__headline-pattern"})]}),(0,i.jsx)("div",{className:"error-message__text-container",children:(0,i.jsx)("p",{className:"error-message__text",children:l.Children.toArray(r)})})]})};x.propTypes={vertical:n().string.isRequired,code:n().number.isRequired};var v=s(17938),w=s(96926),j=s(56004),C=s(72872),N=s(12639),I=s(42832),S=s(41201),A=s.n(S);let{publicRuntimeConfig:k}=(0,u.Ay)(),{ENABLE_ERROR_PAGE_PREVIEW:M}=k,T={403:"Forbidden",404:"NotFound",500:"InternalServerError"},B={theme:({vertical:e})=>{switch(e){case"telemundo":case"deportes":case"localstationdeportes":case"noticias":case"entretenimiento":case"shows":case"news":case"select":case"msnbc":return N.T.VERTICAL;default:return N.T.LIGHT}}},D=e=>Object.keys(T).includes(`${e}`)?e:500;function W({statusCode:e,vertical:t,layout:s,isChromeless:l}){var a;let n,r=!l&&Object.keys(s??{}).length>0;return(0,i.jsxs)("div",{className:d()(A().container),"data-testid":"error-page",children:[(a=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o(),{children:(0,i.jsx)(j.A,{})}),(0,i.jsx)(C.W,{vertical:t}),(0,i.jsxs)("div",{children:[(0,i.jsx)(m,{pageType:T[e]||T[500]}),(0,i.jsx)(x,{code:e,vertical:t})]})]}),n={...s,marquees:[]},r?(0,i.jsx)(v.q,{layout:n,vertical:t,children:(0,i.jsx)(a,{})}):(0,i.jsx)(a,{})),(0,i.jsx)(w.I,{})]})}W.propTypes={isChromeless:n().bool.isRequired,statusCode:n().number.isRequired,vertical:n().string.isRequired,layout:I.Z.isRequired},W.getInitialProps=async({req:e,res:t,err:s})=>{let i;M&&(i=e?.params?.statusCode&&parseInt(e?.params?.statusCode,10));let l=i||t?.statusCode,a=s?.statusCode,{layout:n}=t.locals;return{statusCode:D(l||a),layout:n}};let P=(0,N.v)(B)((0,p.Ng)(({shared:e})=>({vertical:e.vertical,isChromeless:e.isChromeless}))(W))},44099:e=>{e.exports={switch:"styles_switch__C1y18",subscriberOnly:"styles_subscriberOnly__tVaBp",slider:"styles_slider__Jk16Z","live-dot-blink":"styles_live-dot-blink__XBcuC","fade-in":"styles_fade-in__XlEf5","expand-in":"styles_expand-in__laxsS","chatblog-expand-in":"styles_chatblog-expand-in__c8hDs"}},44208:e=>{e.exports={loadMoreWrapper:"styles_loadMoreWrapper__jquCQ",list:"styles_list__HWyfy",disclaimer:"styles_disclaimer__psxA5",hideDisclaimer:"styles_hideDisclaimer__eshlc",removeDisclaimerSpace:"styles_removeDisclaimerSpace__RPyFC",loadMoreButton:"styles_loadMoreButton__1PVH7","live-dot-blink":"styles_live-dot-blink__dpoKG","fade-in":"styles_fade-in__U7Ipb","expand-in":"styles_expand-in__k7LWF","chatblog-expand-in":"styles_chatblog-expand-in__ls5_5",fadeIn:"styles_fadeIn__vnX4b"}},45819:e=>{e.exports={button:"styles_button__MIaXl",chevron:"styles_chevron__Xq62n",label:"styles_label__5amdK"}},47800:(e,t,s)=>{"use strict";s.d(t,{L6:()=>r,gp:()=>o});var i=s(79424),l=s(74455);let a="follow-topics",n=(e=[])=>(e??[]).flatMap(e=>e?.values??[]),r=async()=>{try{let e=await (0,i.kE)(),t=n(e);
1return(0,l.d5)("followTopicsApi",{feature:a,action:"getFollowTopics",pathCount:t.length}),t}catch(e){throw(0,l.vV)(e instanceof Error?e:Error(String(e)),{feature:a,action:"getFollowTopics"}),e}},o=async e=>{try{let t=await (0,i.ff)({topics:e}),s=n(t);return(0,l.d5)("followTopicsApi",{feature:a,action:"updateFollowTopics",pathCount:s.length}),s}catch(e){throw(0,l.vV)(e instanceof Error?e:Error(String(e)),{feature:a,action:"updateFollowTopics"}),e}}},51191:e=>{e.exports={preferenceTile:"styles_preferenceTile__S2X2e",captionInImage:"styles_captionInImage__ys2Gj",selectedIcon:"styles_selectedIcon__UIATY",modal:"styles_modal__r2VdE",unselectedIcon:"styles_unselectedIcon__Ig6P7","live-dot-blink":"styles_live-dot-blink__C7cVk","fade-in":"styles_fade-in__kXHwr","expand-in":"styles_expand-in__WPoQz","chatblog-expand-in":"styles_chatblog-expand-in__ywhqD"}},51537:e=>{e.exports={category:"styles_category__wLkAR",categoryHeader:"styles_categoryHeader___ZX97",categoryTitle:"styles_categoryTitle__SJVpx",categoryDescription:"styles_categoryDescription__Wy7yC",followAllButton:"styles_followAllButton__V_ylP",pills:"styles_pills__KaI95"}},51597:e=>{e.exports={loadMoreWrapper:"styles_loadMoreWrapper__k979c",loading:"styles_loading__vr5G5",fadeIn:"styles_fadeIn__KgZTo",item:"styles_item__hjlVU",image:"styles_image__9gO4C",headings:"styles_headings____SBy",eyebrow:"styles_eyebrow__X0CQa",heading_1:"styles_heading_1__Ae6F_",heading_2:"styles_heading_2__utjzt","live-dot-blink":"styles_live-dot-blink__Azj_Y","fade-in":"styles_fade-in__78E4n","expand-in":"styles_expand-in__2QjdK","chatblog-expand-in":"styles_chatblog-expand-in__TeT47"}},51757:e=>{e.exports={viewport:"styles_viewport__xVUBu",bottomCenter:"styles_bottomCenter__Esw8e",topRight:"styles_topRight__TMxx_",responsive:"styles_responsive__ioAFE",toast:"styles_toast__PusQt",toastVisible:"styles_toastVisible__m7buv",message:"styles_message__O5AAy",icon:"styles_icon__PtsV_"}},53957:e=>{e.exports={loading:"styles_loading__ckqVM",fadeIn:"styles_fadeIn__tTbjU",title:"styles_title__9KlhU",tagline:"styles_tagline__eLnc7",block:"styles_block__z1Eus",content:"styles_content__UVL7W",item:"styles_item__202Bj",image:"styles_image__LfMv_",headings:"styles_headings__r85sn",eyebrow:"styles_eyebrow__11J_Q",heading_1:"styles_heading_1__VzuuM",heading_2:"styles_heading_2__0mZUk","live-dot-blink":"styles_live-dot-blink__F1daN","fade-in":"styles_fade-in__igrcj","expand-in":"styles_expand-in__lmoen","chatblog-expand-in":"styles_chatblog-expand-in__UU6_X"}},55821:e=>{e.exports={product:"styles_product__Pk2_5","live-dot-blink":"styles_live-dot-blink___YpwX","fade-in":"styles_fade-in__yZ5HN","expand-in":"styles_expand-in__FCMR8","chatblog-expand-in":"styles_chatblog-expand-in__9KlFL"}},58347:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return s(97427)}])},60509:()=>{},61669:e=>{e.exports={account:"styles_account__U5Eyl",mainContent:"styles_mainContent__g_Jya",mainContentWithReturn:"styles_mainContentWithReturn__r9t7x",subheading:"styles_subheading__VWdMz","live-dot-blink":"styles_live-dot-blink__hh1eY","fade-in":"styles_fade-in__kjacJ","expand-in":"styles_expand-in__mWyuE","chatblog-expand-in":"styles_chatblog-expand-in___4ZHB"}},61697:(e,t,s)=>{"use strict";s.d(t,{q:()=>a});var i=s(14232);let l=()=>void 0,a=function(e,t){let s=new Set;function a(){return window.history.state?.[e]??t}function n(e){return s.add(e),window.addEventListener("popstate",()=>{e()}),()=>{s.delete(e),window.removeEventListener("popstate",e)}}return function(){let r=(0,i.useSyncExternalStore)(n,a,l);return{history:{pushState(t,i){window.history.pushState({...window.history.state,[e]:t},"",i),s.forEach(e=>e())},replaceState(t,i){window.history.replaceState({...window.history.state,[e]:t},"",i),s.forEach(e=>e())}},state:r??t}}}("_profile",void 0)},62827:e=>{e.exports={currentEmail:"styles_currentEmail__xvRey",emailVerified:"styles_emailVerified__YGAs8",emailNotVerified:"styles_emailNotVerified__ITZ_B",socialAccountMessage:"styles_socialAccountMessage__6k5JD",updateSuccess:"styles_updateSuccess__mOus2",currentEmailContainer:"styles_currentEmailContainer__ouO_L",verified:"styles_verified__44nhf",notVerified:"styles_notVerified__shrWx",socialAccount:"styles_socialAccount__mQ6LN",verifiedText:"styles_verifiedText__wwhqK","live-dot-blink":"styles_live-dot-blink__VccYL","fade-in":"styles_fade-in__uuhAd","expand-in":"styles_expand-in__y9xf4","chatblog-expand-in":"styles_chatblog-expand-in__f50v5"}},67361:e=>{e.exports={header:"styles_header__TRw7L",title:"styles_title__FdsZ_",savedItemsLinks:"styles_savedItemsLinks__LkDX_",savedItemsLink:"styles_savedItemsLink__Y7_OF",recentlySaved:"styles_recentlySaved__4CkjQ",bacon:"styles_bacon__aG215",emptySaved:"styles_emptySaved__SpbW8",empty:"styles_empty__OnWgj","live-dot-blink":"styles_live-dot-blink__0k_H4","fade-in":"styles_fade-in__cvNij","expand-in":"styles_expand-in__SFlFo","chatblog-expand-in":"styles_chatblog-expand-in__f8Iv9"}},68086:(e,t,s)=>{"use strict";s.d(t,{w:()=>r});var i=s(14232),l=s(19081),a=s(62336),n=s(69581);function r(){let e,{publicRuntimeConfig:{COMMERCE_AMAZON_CI_ENABLE:t}}=(0,l.Ay)();if(!t)return null;let{domain:s,path:r}=i.useContext(a.Pl),o=null,c=!1,d=()=>{let{BI:{userInfo:{get:t}={}}={}}=window;if("function"==typeof t){let{referrer:i="direct"}=t();e=Date.now();let l={},a=(0,n.W5)(i,64);l.asc_refurl=(0,n.W5)(`https://www.${s}${r}
1`,5120),Array.from(document.getElementsByTagName("a")).forEach(e=>{if(e.href)try{let t=new URL(e.href);t.hostname.match(/.*amazon\./)&&(Object.entries(l).forEach(([e,s])=>{t.searchParams.set(e,s)}),t.searchParams.set("asc_source",a),e.href=t.href)}catch(e){}})}},u=()=>{e=Date.now(),d(),c=!1};return i.useEffect(()=>(o=new MutationObserver(()=>{Date.now()-e>3e3?d():c||(c=!0,setTimeout(u,3e3))}),d(),o.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),()=>{o&&"function"==typeof o.disconnect&&o.disconnect()}),[]),null}r.propTypes={}},71181:(e,t,s)=>{"use strict";s.d(t,{t:()=>n});var i=s(37876);s(14232);var l=s(20259),a=s.n(l);let n=({className:e})=>(0,i.jsx)("div",{className:e,role:"status","aria-label":"Loading",children:(0,i.jsx)("img",{src:a(),alt:""})})},71637:e=>{e.exports={headerActions:"styles_headerActions__rzPd4",toastCheckIcon:"styles_toastCheckIcon__V6ZLQ",doneEditing:"styles_doneEditing__ddLk6",editFeed:"styles_editFeed__3hnW8",divider:"styles_divider__nsQms",sections:"styles_sections__QWvSW"}},73205:e=>{e.exports={accountLandingPage:"styles_accountLandingPage__BJ7HK",gridWrapper:"styles_gridWrapper__zY9aF",title:"styles_title__JiHZj",mobileTitle:"styles_mobileTitle__mPKxD",subTitle:"styles_subTitle__zOmyb",description:"styles_description__53pGF",desktopDescription:"styles_desktopDescription__Lfqq6",mobileDescription:"styles_mobileDescription__cG6M8",list:"styles_list__YCRQJ",item:"styles_item__w1hsm",icon:"styles_icon__k0f5f",border:"styles_border__4jgku",formWrapper:"styles_formWrapper__t6VX5",link:"styles_link__FCZ52",image:"styles_image__ASzTz","live-dot-blink":"styles_live-dot-blink__5t2bC","fade-in":"styles_fade-in__zH4qB","expand-in":"styles_expand-in__HHWxk","chatblog-expand-in":"styles_chatblog-expand-in__Xyu_d"}},73307:e=>{e.exports={tabs:"styles_tabs__BDDGH",tab:"styles_tab__jhtkH",active:"styles_active__Watj_","live-dot-blink":"styles_live-dot-blink__lALbb","fade-in":"styles_fade-in__ED1iq","expand-in":"styles_expand-in__SBOkM","chatblog-expand-in":"styles_chatblog-expand-in__G_3rH"}},74884:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBhcmlhLWh
1pZGRlbj0idHJ1ZSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iOSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS41Ii8+PC9zdmc+Cg=="},75530:e=>{e.exports={nav:"styles_nav___r3Bm",currentTab:"styles_currentTab__epdlc",navIcon:"styles_navIcon__lZZDF",open:"styles_open__NCPAp",navContainer:"styles_navContainer__9K_CC",innerNav:"styles_innerNav__8kLXU",navLinks:"styles_navLinks__EK3M5",navLinksToday:"styles_navLinksToday__ybgpr",logOut:"styles_logOut__KYVGr",link:"styles_link__nfY1l",current:"styles_current__71IDQ",sectionHeader:"styles_sectionHeader__IzopX",section:"styles_section___RhHa",sectioned:"styles_sectioned__EwjK4","live-dot-blink":"styles_live-dot-blink__FjK09","fade-in":"styles_fade-in__zKcVv","expand-in":"styles_expand-in__C08v7","chatblog-expand-in":"styles_chatblog-expand-in__tTWZp"}},75591:e=>{e.exports={container:"styles_container___M5ca",wrapperLandingPage:"styles_wrapperLandingPage__VwIfW",info:"styles_info__xeptv",iconSize:"styles_iconSize__gu3NH",perks:"styles_perks__xyMz3",perk:"styles_perk__m6B65",perkText:"styles_perkText__6qsim",icon:"styles_icon__KCCIG",screenContent:"styles_screenContent__RAiib","live-dot-blink":"styles_live-dot-blink__DK6At","fade-in":"styles_fade-in__qK683","expand-in":"styles_expand-in__qSsLJ","chatblog-expand-in":"styles_chatblog-expand-in__3Rbzy"}},76823:e=>{e.exports={empty:"styles_empty__Lmq_K",icon:"styles_icon__KlLOF",heart:"styles_heart__KocAj","live-dot-blink":"styles_live-dot-blink__pxLNt","fade-in":"styles_fade-in__JIMT9","expand-in":"styles_expand-in__3hIc_","chatblog-expand-in":"styles_chatblog-expand-in__0j0QX"}},77022:e=>{e.exports={loading:"styles_loading__diWrl",fadeIn:"styles_fadeIn__wAvop",item:"styles_item__rROjs",image:"styles_image__ZxfC2",headings:"styles_headings__Ba0IX",eyebrow:"styles_eyebrow__eQed4",heading_1:"styles_heading_1__M03gj",heading_2:"styles_heading_2__tf3p6","live-dot-blink":"styles_live-dot-blink__h9Atd","fade-in":"styles_fade-in__oSp_t","expand-in":"styles_expand-in__CAb0R","chatblog-expand-in":"styles_chatblog-expand-in__85wmp"}},81442:(e,t,s)=>{var i="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g,l="object"==typeof self&&self&&self.Object===Object&&self,a=i||l||Function("return this")(),n=Object.prototype,r=n.hasOwnProperty,o=n.toString,c=a.Symbol,d=n.propertyIsEnumerable,u=c?c.isConcatSpreadable:void 0;function p(e){var t,s,i,l,a,n,c,p,h;return _(e)||!!(l=s=t=e)&&"object"==typeof l&&null!=(i=s)&&"number"==typeof(a=i.length)&&a>-1&&a%1==0&&a<=0x1fffffffffffff&&"[object Function]"!=(p=typeof(c=n=i),h=c&&("object"==p||"function"==p)?o.call(n):"")&&"[object GeneratorFunction]"!=h&&r.call(t,"callee")&&(!d.call(t,"callee")||"[object Arguments]"==o.call(t))||!!(u&&e&&e[u])}var _=Array.isArray;e.exports=function(e){return(e?e.length:0)?function e(t,s,i,l,a){var n=-1,r=t.length;for(i||(i=p),a||(a=[]);++n<r;){var o=t[n];s>0&&i(o)?s>1?e(o,s-1,i,l,a):function(e,t){for(var s=-1,i=t.length,l=e.length;++s<i;)e[l+s]=t[s]}(a,o):l||(a[a.length]=o)}return a}(e,1):[]}},86090:function(e){e.exports=function(){"use strict";var e,t,s=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,i=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:31536e6,months:2628e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},a=function(e){return e instanceof u},n=function(e,t,s){return new u(e,s,t.$l)},r=function(e){return t.p(e)+"s"},o=function(e){return e<0},c=function(e){return o(e)?Math.ceil(e):Math.floor(e)},d=function(e,t){return e?o(e)?{negative:!0,format:""+Math.abs(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},u=function(){function o(e,t,s){var a=this;if(this.$d={},this.$l=s,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return n(e*l[r(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach(function(t){a.$d[r(t)]=e[t]}),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(i);if(o){var c=o.slice(2).map(function(e){return null!=e?Number(e):0});return this.$d.years=c[0],this.$d.months=c[1],this.$d.weeks=c[2],this.$d.days=c[3],this.$d.hours=c[4],this.$d.minutes=c[5],this.$d.seconds=c[6],this.calMilliseconds(),this}}return this}var u=o.prototype;return u.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(t,s){return t+(e.$d[s]||0)*l[s]},0)},u.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=c(e/31536e6),e%=31536e6,this.$d.months=c(e/2628e6),e%=2628e6,this.$d.days=c(e/864e5),e%=864e5,this.$d.hours=c(e/36e5),e
1%=36e5,this.$d.minutes=c(e/6e4),e%=6e4,this.$d.seconds=c(e/1e3),e%=1e3,this.$d.milliseconds=e},u.toISOString=function(){var e=d(this.$d.years,"Y"),t=d(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=7*this.$d.weeks);var i=d(s,"D"),l=d(this.$d.hours,"H"),a=d(this.$d.minutes,"M"),n=this.$d.seconds||0;this.$d.milliseconds&&(n+=this.$d.milliseconds/1e3,n=Math.round(1e3*n)/1e3);var r=d(n,"S"),o=e.negative||t.negative||i.negative||l.negative||a.negative||r.negative,c=l.format||a.format||r.format?"T":"",u=(o?"-":"")+"P"+e.format+t.format+i.format+c+l.format+a.format+r.format;return"P"===u||"-P"===u?"P0D":u},u.toJSON=function(){return this.toISOString()},u.format=function(e){var i={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return(e||"YYYY-MM-DDTHH:mm:ss").replace(s,function(e,t){return t||String(i[e])})},u.as=function(e){return this.$ms/l[r(e)]},u.get=function(e){var t=this.$ms,s=r(e);return"milliseconds"===s?t%=1e3:t="weeks"===s?c(t/l[s]):this.$d[s],t||0},u.add=function(e,t,s){var i;return i=t?e*l[r(t)]:a(e)?e.$ms:n(e,this).$ms,n(this.$ms+i*(s?-1:1),this)},u.subtract=function(e,t){return this.add(e,t,!0)},u.locale=function(e){var t=this.clone();return t.$l=e,t},u.clone=function(){return n(this.$ms,this)},u.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},u.valueOf=function(){return this.asMilliseconds()},u.milliseconds=function(){return this.get("milliseconds")},u.asMilliseconds=function(){return this.as("milliseconds")},u.seconds=function(){return this.get("seconds")},u.asSeconds=function(){return this.as("seconds")},u.minutes=function(){return this.get("minutes")},u.asMinutes=function(){return this.as("minutes")},u.hours=function(){return this.get("hours")},u.asHours=function(){return this.as("hours")},u.days=function(){return this.get("days")},u.asDays=function(){return this.as("days")},u.weeks=function(){return this.get("weeks")},u.asWeeks=function(){return this.as("weeks")},u.months=function(){return this.get("months")},u.asMonths=function(){return this.as("months")},u.years=function(){return this.get("years")},u.asYears=function(){return this.as("years")},o}(),p=function(e,t,s){return e.add(t.years()*s,"y").add(t.months()*s,"M").add(t.days()*s,"d").add(t.hours()*s,"h").add(t.minutes()*s,"m").add(t.seconds()*s,"s").add(t.milliseconds()*s,"ms")};return function(s,i,l){e=l,t=l().$utils(),l.duration=function(e,t){return n(e,{$l:l.locale()},t)},l.isDuration=a;var r=i.prototype.add,o=i.prototype.subtract;i.prototype.add=function(e,t){return a(e)?p(this,e,1):r.bind(this)(e,t)},i.prototype.subtract=function(e,t){return a(e)?p(this,e,-1):o.bind(this)(e,t)}}}()},86904:e=>{e.exports={title:"styles_title__2ApEd",container:"styles_container__FDKWb",subtitle:"styles_subtitle__N23jq",titleWithDescription:"styles_titleWithDescription__ywc0p",description:"styles_description__n_dma",headerGroup:"styles_headerGroup__aU4km",flex:"styles_flex__ZTizV","live-dot-blink":"styles_live-dot-blink__eYWtw","fade-in":"styles_fade-in__aFQbq","expand-in":"styles_expand-in__n_ILP","chatblog-expand-in":"styles_chatblog-expand-in__pKGEZ"}},89528:e=>{e.exports={buttonGroupContainer:"styles_buttonGroupContainer__ejwcX",buttonGroup:"styles_buttonGroup__cJRDR",primary:"styles_primary__iDVuy","live-dot-blink":"styles_live-dot-blink__fXlN5","fade-in":"styles_fade-in__55l7n","expand-in":"styles_expand-in__HS0cK","chatblog-expand-in":"styles_chatblog-expand-in__atq7c"}},92211:(e,t,s)=>{"use strict";s.d(t,{O:()=>a});var i=s(14232),l=s(47800);function a({enabled:e=!0}={}){let[t,s]=(0,i.useState)({}),[n,r]=(0,i.useState)(!1),[o,c]=(0,i.useState)(!1),d=(0,i.useRef)(t);d.current=t;let u=(0,i.useRef)(!1),p=(0,i.useRef)(0),_=(0,i.useRef)(0),h=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!e){let e={};d.current=e,s(e),u.current=!0,r(!0);return}u.current=!1,r(!1);let t=!0;return(0,l.L6)().then(e=>{if(!t)return;let i=((e=[])=>Object.fromEntries(e.map(e=>[e,!0])))(e);d.current=i,s(i)}).catch(()=>{}).finally(()=>{t&&(u.current=!0,r(!0))}),()=>{t=!1}},[e]),(0,i.useEffect)(()=>()=>{h.current&&clearTimeout(h.current)},[]);let y=(0,i.useCallback)(()=>{0===p.current&&(_.current=Date.now(),h.current&&(clearTimeout(h.current),h.current=null),c(!0)),p.current+=1},[]),m=(0,i.useCallback)(()=>{p.current=Math.max(0,p.current-1),p.current>0||(h.current=setTimeout(()=>{c(!1),h.current=null},Math.max(0,1e3-(Date.now()-_.current))))},[]),g=(0,i.useCallback)(t=>{if(!e||!u.current)return Promise.resolve(!1);let i=d.current,a=t(i);return d.current=a,s(a),y(),(0,l.gp)(((e={})=>Object.keys(e).filter(t=>e[t]))(a)).then(()=>!0).catch(()=>(d.current===a&&(d.current=i,s(i)),!1)).finally(()=>{m()})},[y,m,e]);return{followedTopics:t,ready:n,saving:o,toggleTopic:(0,i.useCallback)((e,t)=>g(s=>({...s,[e]:t})),[g]),toggleCategory:(0,i.useCallback)((e,t)=>g(s=>({...s,...Object.fromEntries(e.map(e=>[e,t]))})),[g])}}},92717:e=>{e.exports={item:"styles_item__wlL84",hide:"styles_hide__PSht9",fallback:"styles_fallback__l2yL7",text:"styles_text__Ajg6_",headline:"styles_headline__CmiI1",clampedHeadline:"styles_clampedHeadline__wDAba",hover:"styles_hover__liDNA",title:"styles_title__cX_9V",image:"styles_image__Av35G",test__imageCredit:"styles_test__imageCredit__BXywr",timestamp:"styles_timestamp__rh2bh",timestampText:"styles_timestampText__UM9XM",playIcon:"styles_playIcon__yUGST",viewed:"styles_viewed__MZXca","live-dot-blink":"styles_live-dot-blink__v1_GZ","fade-in":"styles_fade-in__3WMmr","expand-in":"styles_expand-in__vQD22","chatblog-expand-in":"styles_chatblog-expand-in__16rN7"}},93426:e=>{e.exports={modal:"styles_modal__SCAOb",newsletterDetail:"styles_newsletterDetail__LRmvY",subAllButton:"styles_subAllButton__M72tt",indicator:"styles_indicator__vHRcS",unSubFooter:"styles_unSubFooter__UDB3C",selected:"styles_selected__GAqas",newsletterGrid:"styles_newsletterGrid__d07WY",weightedGrid:"styles_weightedGrid__yL0d9",subscriberOnlyHeader:"styles_subscriberOnlyHeader__gBOIh",newsletterInfo:"styles_newsletterInfo__lPdgt",error:"styles_error__A25P4",unsubscribeButton:"styles_unsubscribeButton__AO7sG","live-dot-blink":"styles_live-dot-blink__5sqiF","fade-in":"styles_fade-in__9ACpR","expand-in":"styles_expand-in__w3ywM","chatblog-expand-in":"styles_chatblog-expand-in__Zo_zt"}},93583:e=>{e.exports={content:"styles_content__P8fSb",mainContent:"styles_mainContent__m7ChK",contentWrapper:"styles_contentWrapper__as3vR",confirm:"styles_confirm__Dl1Ig",buttonGroup:"styles_buttonGroup___1Fhy",scrollC
1ontainer:"styles_scrollContainer__h2dcX",emailDisplay:"styles_emailDisplay__KP6WV",alert:"styles_alert__Wk_MO",alertText:"styles_alertText__JF4k3","live-dot-blink":"styles_live-dot-blink__N4CSw","fade-in":"styles_fade-in__obuA5","expand-in":"styles_expand-in__hdhGW","chatblog-expand-in":"styles_chatblog-expand-in__Moip0"}},97427:(e,t,s)=>{"use strict";s.r(t),s.d(t,{UnwrappedAccountPage:()=>s2,default:()=>s4,navbarConfig:()=>s1});var i=s(37876),l=s(14232),a=s(48011),n=s(12639),r=s(95062),o=s.n(r),c=s(77328),d=s.n(c),u=s(11426),p=s(55032),_=s(19081),h=s(88051);let y=async e=>{let t=(()=>{let{serverRuntimeConfig:e,publicRuntimeConfig:t}=(0,_.Ay)();return e.API_URL_SERVICES_SERVER||t.API_URL_SERVICES_PUBLIC||(0,h.H)()})().replace(/\/$/,""),s=`profile-menu?vertical=${"today"===e?"today":"news"}`;try{let e=await fetch(`${t}/${s}`);if(!e.ok)throw Error(`Profile menu request failed: ${e.status}`);let i=await e.json();return i?.data??null}catch{return null}};var m=s(23817),g=s(42832),f=s(10540),b=s(42060),x=s(17938),v=s(72872),w=s(96926),j=s(59237),C=s(84245),N=s(57262),I=s(47559),S=s(68086),A=s(15039),k=s.n(A),M=s(53957),T=s.n(M);function B(){return(0,i.jsxs)("div",{className:k()(T().loading,"fluidWidth grid-col-push-1-m grid-col-10-m"),"data-testid":"my-news-loading",children:[(0,i.jsx)("div",{className:T().title}),(0,i.jsx)("div",{className:T().tagline}),(0,i.jsx)("div",{className:T().block}),(0,i.jsx)("div",{className:T().content,children:Array(9).fill(1).map((e,t)=>(0,i.jsxs)("div",{className:T().item,children:[(0,i.jsx)("div",{className:T().image}),(0,i.jsxs)("div",{className:T().headings,children:[(0,i.jsx)("div",{className:T().eyebrow}),(0,i.jsx)("div",{className:T().heading_1}),(0,i.jsx)("div",{className:T().heading_1}),(0,i.jsx)("div",{className:T().heading_2})]})]},t))})]})}var D=s(82780),W=s.n(D),P=s(57934),L=s(23669),O=s(67361),G=s.n(O);let Y=({curation:e,vertical:t})=>{let s=(0,f.hZ)(e=>e.user?.first_name),l={adsDisabled:e?.adsDisabled,curationAutofill:e?.autofill,layouts:e?.layouts,pageRoute:e?.pageRoute,vertical:t,isFluidWidthPage:!0};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.D$,{curation:e,firstContentInZoneA:W()(e?.layouts,[0,"packages",0],{}),vertical:t,section:"account",domain:"today.com",gatedContentEnabled:!0}),(0,i.jsx)("div",{className:k()(G().header,"fluidWidth grid-col-push-1-m grid-col-10-m"),"data-testid":"accounts-dashboard",children:(0,i.jsxs)("h1",{className:G().title,children:["Welcome",s?`, ${s}!`:"!"]})}),e?.layouts?e.layouts.map((0,L.Ay)(l,{})):null]})};Y.propTypes={curation:P.mn.isRequired,vertical:o().string.isRequired};let E=(0,a.Ng)(({front:e,shared:t})=>({curation:e.curation,vertical:t.vertical}))(Y),R=()=>{let e=(0,f.hZ)(e=>e.loading),t=(0,f.hZ)(e=>e.authenticationState),s=(0,f.hZ)(e=>e.showGate),[a,n]=(0,l.useState)((0,i.jsx)(B,{}));return(0,l.useEffect)(()=>{"authenticated"!==t&&s||n((0,i.jsx)(E,{})),e&&n((0,i.jsx)(B,{}))},[t,e,s]),(0,i.jsx)("div",{className:"my-news-dashboard__container","data-activity-map":"my-news-dashboard",children:a})};var Z=s(62336),U=s(80441),z=s(77022),F=s.n(z);function V(){return(0,i.jsx)("div",{className:F().loading,"data-testid":"my-news-loading",children:Array(8).fill(1).map((e,t)=>(0,i.jsxs)("div",{className:F().item,children:[(0,i.jsx)("div",{className:F().image}),(0,i.jsxs)("div",{className:F().headings,children:[(0,i.jsx)("div",{className:F().eyebrow}),(0,i.jsx)("div",{className:F().heading_1}),(0,i.jsx)("div",{className:F().heading_1}),(0,i.jsx)("div",{className:F().heading_2})]})]},t))})}var X=s(84976),H=s(86904),$=s.n(H);let K=({title:e="",gapSize:t=48,subtitle:s="",description:l="",activityMap:a="",className:n="",h2ClassName:r="",testId:o="",showLoadingState:c=!0,rightHeaderContent:d,children:u=null})=>{let p=(0,f.GP)(e=>e.loading);return(0,i.jsxs)(X.B,{gapSize:t,className:k()(n,$().container,"account-page-container"),"data-activity-map":a,"data-testid":o,children:[(0,i.jsxs)("div",{className:$().headerGroup,children:[(0,i.jsxs)("div",{className:$().flex,children:[(0,i.jsxs)(X.B,{gapSize:16,children:[(0,i.jsx)("h2",{className:k()(r,$().title,{[$().titleWithDescription]:!!l}),children:e}),s&&(0,i.jsx)("p",{className:$().subtitle,children:s})]}),d]}),l&&(0,i.jsx)("p",{className:$().description,children:l})]}),c&&p?(0,i.jsx)(V,{}):u]})};var q=s(51597),J=s.n(q);function Q(){return(0,i.jsx)("div",{className:J().loading,"data-testid":"my-news-loading",children:Array(8).fill(1).map((e,t)=>(0,i.jsxs)("div",{className:J().item,children:[(0,i.jsx)("div",{className:J().image}),(0,i.jsxs)("div",{className:J().headings,children:[(0,i.jsx)("div",{className:J().eyebrow}),(0,i.jsx)("div",{className:J().heading_1}),(0,i.jsx)("div",{className:J().heading_1}),(0,i.jsx)("div",{className:J().heading_2})]})]},t))})}var ee=s(92903),et=s(48720),es=s(91797),ei=s(48505),el=s(8556),ea=s.n(el);let en=[{type:"all",text:"All"},{type:C.fj,text:"Articles"},{type:C.G_,text:"Videos"}],er={type:C.bc,text:"Recipes"},eo={type:C.Ax,text:"Wishlist"},ec=()=>{let e=(0,f.GP)(e=>e.getBookmarks),t=(0,f.GP)(e=>e.filterType),s=(0,f.hZ)(e=>e.user?.user_id),a=(0,l.useContext)(Z.O1),n=(0,Z.Jp)(),r=(0,C.GD)(a,n),{extendedContentTypes:o=[]}=(0,ei.B0)(es.MYNEWS_ENABLED,a)||{},c=!!n?.["content-sharing-recipe"],d=[...en];return(o.includes("recipe")||c)&&d.push(er),o.includes("product")&&d.push(eo),(0,i.jsx)(ee.D,{className:ea().tabs,"data-testid":"save-content-category-container",children:d.map(({type:l,text:a})=>(0,i.jsx)("button",{className:k()(ea().tab,{[ea().active]:t===l,active:t===l}),type:"button",onClick:()=>{let t,i,a,n;return e({size:r,filterType:l,customerId:s}),t=C.pn[l],i="/profile/saved",a=t?`${i}/${t}`:i,n=(0,et.iG)(void 0),void window.history.pushState({},"",(0,et.B$)(a,n))},"data-icid":`save-content-${l}`,"data-testid":`filter-${l}`,children:a},`filter-${l}`))})};var ed=s(77360),eu=s(47333),ep=s(11806),e_=s(62954),eh=s(60129),ey=s(71908),em=s(97705),eg=s(6642),ef=s(57248),eb=s(20945),ex=s(12195),ev=s(46252),ew=s(83080),ej=s(8380),eC=s.n(ej),eN=s(21584),eI=s(55821),eS=s.n(eI);let eA=({offer:e,className:t=""})=>{let{externalUrl:s,seller:l}=e,a=(0,eN.o4)(e).sale,n=(0,eN.o4)(e).list,r=(0,eN.T2)({salePrice:a,listPrice:n})?(0,eN.o4)(e).sale:(0,eN.o4)(e).list;return(0,i.jsx)(eh.A,{to:s,icid:"mynews_saved","data-testid":"my-news-saved-product-link",target:"_blank",children:(0,i.jsx)("h3",{className:t,children:(0,i.jsxs)("span",{className:eS().product,icid:"mynews_saved","data-testid":"my-news-saved-offer-info",children:[(0,i.jsxs)("strong",{children:["$",r]})," ","at"," ",l.name]})})})};
1eA.propTypes={offer:o().shape({externalUrl:o().string,seller:o().shape({name:o().string})}).isRequired,className:o().string};var ek=s(92717),eM=s.n(ek);let eT=({content:e,contentType:t="saved"})=>{let[s,a]=(0,l.useState)(!1),[n,r]=(0,l.useState)(!1),[o,c]=(0,l.useState)(!1),d=(0,e_.z1)("mbt_mynews_save_click"),{isToday:u,isNews:p}=(0,e_.Cn)(),_=u?eC():"https://media-cldnry.s-nbcnews.com/image/upload/t_focal-630x630,f_auto,q_auto:best/v1696280772/newsgroup-logos/nbcnews/social/primary-white-1680x840.jpg",{contentId:h,unibrow:y,name:m,headline:g,type:f,teaseImage:b,offers:x,duration:v}=e,w=g?.primary||g?.tease||"No headline",j=e?.url||{primary:"#"},N=(0,ew.formatDuration)(v),I=W()(b,"url.primary",null),S=f===C.Ax?m:w,A={s:ev.Ay.FOCAL_130x130,m:ev.Ay.FOCAL_120x120,l:ev.Ay.FOCAL_120x120,xl:ev.Ay.FOCAL_160x160},M="product"===f&&x?.length,T=M?x[0].externalUrl:j.primary,B=x?.filter(e=>e.seller)||[],D=()=>a(!0),P=()=>a(!1),L=async()=>{r(!0),setTimeout(()=>c(!0),700),d({action:"remove",placement:"mynews",contentId:h})};return o?null:(0,i.jsxs)("div",{className:k()(eM().item,{[eM().hide]:n}),"data-testid":"my-news-saved-content",children:[(0,i.jsxs)("div",{className:k()(eM().image,{[eM().hover]:s}),"data-testid":"my-news-saved-image",onMouseEnter:D,onMouseLeave:P,children:[(0,i.jsx)(ex.B,{content:e,linkProps:{to:T,icid:"mynews_saved",target:M?"_blank":void 0,rel:M?"noopener noreferrer":void 0},children:I?(0,i.jsx)(ey.A,{alt:S,preview:"video"===f&&{url:j,redirect:!1,radius:!1},responsiveFlavors:A,retina:!0,url:I,computedValues:{teaseImage:b,headline:w,url:I}}):(0,i.jsx)("img",{className:eM().fallback,src:_,alt:"Saved content fallback"})}),(0,i.jsx)(ef.e,{contentId:h,contentType:f,options:{isThumbnail:!0,setAsSaved:!0,useAccountSaveButtonStyle:!0},callbacks:{remove:L}})]}),(0,i.jsxs)("div",{className:eM().text,children:["history"===t?(0,i.jsxs)("div",{className:eM().viewed,children:["Viewed\xa0",ep.Ay.t("time_ago",{time:(0,ew.timeFrom)(e.updatedDateTime)})]}):null,y&&u?(0,i.jsx)(eb.d,{content:e,unibrow:y,hasDefaultTextStyle:!0}):null,(0,i.jsx)(ex.B,{content:e,linkProps:{to:T,icid:"mynews_saved","data-testid":"my-news-saved-headline-link",onMouseEnter:D,onMouseLeave:P,target:M?"_blank":void 0,rel:M?"noopener noreferrer":void 0},showSubscriberBadge:!0,children:(0,i.jsxs)("h3",{className:k()(eM().headline,{[eM().clampedHeadline]:M,[eM().hover]:s}),"data-testid":"my-news-saved-headline",children:[u&&(0,i.jsx)(em.d,{type:f}),(0,i.jsx)("span",{className:eM().title,children:S})]})}),p&&N&&(0,i.jsxs)(eh.A,{className:eM().timestamp,to:T,children:[(0,i.jsx)("span",{className:eM().timestampText,children:N}),(0,i.jsx)(eg.A,{type:f,additionalStyles:eM().playIcon})]}),M?B.slice(0,2).map(e=>(0,i.jsx)(eA,{offer:e,className:eM().headline})):null]})]})};eT.propTypes={content:o().shape({teaseImage:o().shape({imageURL:o().shape({url:o().shape({primary:o().string})})}),contentId:o().string,date:o().shape({publishedAt:o().string}),unibrow:o().shape({url:o().shape({primary:o().string}),text:o().string}),name:o().string,headline:o().shape({primary:o().string,tease:o().string}),url:o().shape({primary:o().string}),contentSharing:o().arrayOf(o().shape({publisher:o().string,url:o().string})),type:o().string,offers:o().arrayOf(o().shape({externalUrl:o().string,prices:o().arrayOf(o().shape({price:o().string,type:o().string})),seller:o().shape({id:o().string,name:o().string})}))}).isRequired};var eB=s(76823),eD=s.n(eB);let eW=[{id:"today-1",url:"/start-today",name:"Start TODAY"},{id:"today-2",url:"/shop",name:"Shop TODAY"},{id:"today-3",url:"/on-the-show",name:"On the Show"}],eP=[{id:"todayProducts-1",url:"https://steals.today.com",name:"Steals & Deals"},{id:"todayProducts-2",url:"/shop",name:"Shop TODAY"},{id:"todayProducts-3",url:"/shop/on-the-show",name:"On the Show"}],eL=[{id:"todayRecipes-1",url:"/start-today",name:"Start TODAY"},{id:"todayRecipes-2",url:"/food/recipes",name:"Recipes"},{id:"todayRecipes-3",url:"/on-the-show",name:"On the Show"}],eO=({contentType:e="saved"})=>{let t=(0,f.GP)(e=>e.filterType),{vertical:s}=(0,e_.Cn)(),{bookmark:{bookmarkText:l,historyText:a,productText:n,enableLinks:r}}=(0,ei.B0)(es.MYNEWS_ENABLED,s),o=eW;return"product"===t?o=eP:"recipe"===t&&(o=eL),(0,i.jsxs)("div",{className:eD().empty,"data-testid":"accounts-saved-empty",children:["product"===t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:k()(eD().icon,eD().heart)}),(0,i.jsx)("p",{children:ep.Ay.t(n)})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:eD().icon}),(0,i.jsx)("p",{children:ep.Ay.t("history"===e?a:l)})]}),r&&o?.length?(0,i.jsx)("ul",{"data-testid":"link-items",children:o.map(({id:e,url:t,name:s})=>(0,i.jsx)("li",{children:(0,i.jsx)(eh.A,{to:t,icid:`empty_saved_links_${e}`,children:s})},e))}):null]})};var eG=s(44208),eY=s.n(eG);let eE=()=>{let e=(0,f.GP)(e=>e.getBookmarks),t=(0,f.GP)(e=>e.customer.bookmarks),s=(0,f.GP)(e=>e.filterType),l=(0,f.hZ)(e=>e.user?.user_id),{isToday:a,isNews:n,vertical:r}=(0,e_.Cn)(),o=(0,Z.Jp)(),c=(0,C.GD)(r,o),d=t?.pageInfo?.nextPage??"",{data:u=[]}=t,p=u.some(e=>"product"===e.type),_=async()=>{d&&await e({size:c,cursor:d,filterType:s,customerId:l})};return(0,i.jsxs)("div",{"data-testid":"accounts-saved",children:[(0,i.jsx)("div",{className:k()(eY().disclaimer,{[eY().hideDisclaimer]:!p&&a,[eY().removeDisclaimerSpace]:n}),children:(0,i.jsx)(eu.P,{showCloseButton:!0,small:!0,children:(0,i.jsx)(i.Fragment,{children:ep.Ay.t("TODAY earns a commission on purchases through these links.")})})}),u.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:eY().list,"data-testid":"accounts-saved-list",children:u.map((e,t)=>(0,i.jsx)(eT,{content:e},`${e.contentId}-${e.savedAt??t}`))}
1),d?(0,i.jsx)("div",{className:eY().loadMoreWrapper,children:(0,i.jsx)(ed.$,{displayType:"expand-down",alignment:"center",onClick:()=>_(),title:a?"Load More":"See More",additionalClasses:eY().loadMoreButton})}):null]}):(0,i.jsx)(eO,{})]})},eR=({filterType:e="all"})=>{let t=(0,f.hZ)(e=>e.authenticationState),s=(0,f.hZ)(e=>e.user?.user_id),a=(0,Z.Jp)(),{vertical:n}=(0,U.C)(),r=(0,C.GD)(n,a),o=(0,f.GP)(e=>e.getBookmarks),c=(0,f.GP)(e=>e.setFilterType),d=(0,f.GP)(e=>e.setLoading),u=(0,f.GP)(e=>e.loading);return(0,l.useEffect)(()=>{if(!e||t!==C.K_||!s)return;let i=C.np[e]??"all";c(i),d(!0),o({size:r,filterType:i,customerId:s})},[e,t,r,s,o,c,d]),(0,i.jsx)(K,{gapSize:"s",title:"Saved",activityMap:"my-news-saved",testId:"accounts-saved",className:"accounts__saved",showLoadingState:!1,children:(0,i.jsxs)("div",{children:[(0,i.jsx)(ec,{}),u?(0,i.jsx)(Q,{}):(0,i.jsx)(eE,{})]})})},eZ=()=>{let{data:e=[]}=(0,f.GP)(e=>e.customer.history);return(0,i.jsx)("div",{"data-testid":"accounts-saved",children:e.length?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:eY().list,"data-testid":"accounts-saved-list",children:e.map((e,t)=>(0,i.jsx)(eT,{content:e,contentType:"history"},`${e.contentId}-${e.savedAt??t}`))})}):(0,i.jsx)(eO,{contentType:"history"})})},eU=()=>{let e=(0,f.hZ)(e=>e.authenticationState),t=(0,f.hZ)(e=>e.user?.user_id),s=(0,f.GP)(e=>e.getHistory),a=(0,f.GP)(e=>e.loading);return(0,l.useEffect)(()=>{e===C.K_&&t&&s({size:24,customerId:t})},[e,t,s]),(0,i.jsx)(K,{gapSize:"s",title:"History",activityMap:"my-news-history",testId:"accounts-history",className:"accounts__saved",showLoadingState:!1,children:a?(0,i.jsx)(Q,{}):(0,i.jsx)(eZ,{})})};var ez=s(71648),eF=s(42219),eV=s(93021),eX=s(75530),eH=s.n(eX),e$=s(74884),eK=s.n(e$);let eq=e=>e?(0,i.jsx)("span",{className:eH().navIcon,dangerouslySetInnerHTML:{__html:e}}):(0,i.jsx)("img",{className:eH().navIcon,src:eK(),alt:""}),eJ={editFeed:"feed"},eQ=({pageType:e,onSignout:t,profileMenu:s=null})=>{let a=(0,l.useContext)(Z.O1),[n,r]=(0,l.useState)(!1),o=(0,eF.e)(s),{search:c}=(0,eV.o)(),d=(0,et.iG)(c||void 0),u=eJ[e]??e,p=(0,l.useMemo)(()=>o.some(e=>e.sectionName),[o]),{icon:_,text:h}=(0,l.useMemo)(()=>o.flatMap(e=>e.items),[o]).find(e=>e.type===u)??{icon:"",text:""},y=(0,l.useMemo)(()=>o.find(e=>e.items.some(e=>e.type===u)),[o,u]),m=y?.sectionName||h||"Profile";return(0,i.jsxs)("div",{className:k()(eH().nav,{[eH().open]:n}),"data-testid":"account-navigation","data-activity-map":"accounts-menu","data-brand":a,children:[(0,i.jsxs)("button",{type:"button",className:eH().currentTab,onClick:()=>r(!n),children:[h?eq(_):null,m,(0,i.jsx)("span",{className:"icon icon-arrow-down-rounded"})]}),(0,i.jsxs)("div",{className:eH().navContainer,children:[(0,i.jsxs)("div",{className:eH().innerNav,children:[(0,i.jsx)("h3",{children:"Your Profile"}),(0,i.jsx)("div",{className:k()(eH().navLinks,{[eH().navLinksToday]:"today"===a}),children:o.map(({sectionName:e,items:t},s)=>(0,i.jsxs)("div",{className:k()({[eH().section]:e||"news"===a}),children:[e&&(0,i.jsx)("p",{className:eH().sectionHeader,children:e}),t.map(({type:e,text:t,url:s,icon:l,target:a,className:n})=>(0,i.jsxs)(eh.A,{className:k()(eH().link,n,{[eH().current]:e?u===e:null}),href:(0,et.B$)(s,d),target:a,rel:"_blank"===a?"noopener noreferrer":null,"data-testid":`nav-link-${e||t.replace(/\s+/g,"-").toLowerCase()}`,children:[eq(l),t]},s||t))]},e||`section-${s}`))})]}),(0,i.jsxs)("button",{className:k()(eH().logOut,{[eH().sectioned]:p}),type:"button","data-icid":"today-accounts-personal-bar-sign-out","data-testid":"today-accounts-personal-bar-sign-out",onClick:t,children:[(0,i.jsx)("span",{className:"icon icon-logout"}),"Sign Out"]})]})]})};var e0=s(45819),e1=s.n(e0);function e2({label:e,href:t}){return(0,i.jsxs)("a",{href:t,className:e1().button,"data-testid":"return-to-uc-button",children:[(0,i.jsx)("span",{className:e1().chevron,"aria-hidden":"true"}),(0,i.jsx)("span",{className:e1().label,children:e})]})}var e4=s(31586),e5=s(81911),e3=s(5756),e9=s(98477);function e7(e){let t=(0,l.useRef)(null),s=window?.document?.body,[a,n]=(0,l.useState)(""),{className:r="modal",isOpen:o,children:c,onClose:d,onTransitionEnd:u,cssVars:p,transitionTimeout:_=500}=e;return(0,l.useEffect)(()=>{let e=t.current;if(o&&e&&!e.open){e.showModal(),e.getBoundingClientRect();let t=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>n("open"))});return()=>cancelAnimationFrame(t)}if(!o){n("");let t=setTimeout(()=>{e?.open&&e.close()},_);return()=>clearTimeout(t)}},[o]),s?e9.createPortal((0,i.jsx)("dialog",{ref:t,"data-open":o?"true":"false",className:`${r} ${a}`,style:p,onClick:function(e){let t=e.currentTarget;if(!t||e.target!==t)return;let s=t.getBoundingClientRect();(e.clientX<s.left||e.clientX>
1s.right||e.clientY<s.top||e.clientY>s.bottom)&&d()},onTransitionEnd:e=>{e.target===t.current&&u?.(e)},onCancel:e=>{e.preventDefault(),d()},onClose:()=>{o&&d()},children:c}),s):null}let e6={"--origin-x":0,"--origin-y":0};function e8({isOpen:e,onClose:t,children:s,opener:a,className:n}){let[r,o]=(0,l.useState)(e),[c,d]=(0,l.useState)(e),[u,p]=(0,l.useState)(e6);return(0,l.useEffect)(()=>{p(function(e){let t=e?.current;if(!t)return e6;let s=window.innerWidth/2,i=window.innerHeight/2,l=(e,t)=>`${Math.floor(.5*(e-t))}px`,a=t.getBoundingClientRect(),n=a.left+a.width/2,r=a.top+a.height/2;return{"--origin-x":l(n,s),"--origin-y":l(r,i)}}(a))},[a]),(0,l.useEffect)(()=>{e&&o(!0),d(e)},[e]),r?(0,i.jsx)(e7,{isOpen:c,onClose:t,className:n,cssVars:u,onTransitionEnd:()=>{e||o(!1)},children:s()}):null}var te=s(78963),tt=s(50012),ts=s(93426),ti=s.n(ts);let tl=({toggleModal:e,handleUnsubscribeAll:t,displayName:s})=>{let{isToday:l}=(0,e_.Cn)();return(0,i.jsxs)(X.B,{gapSize:120,className:ti().modal,"data-testid":"unsubModal",children:[(0,i.jsx)(tt.Y,{onClose:e,branding:l?"today":"nbcnews"}),(0,i.jsxs)(X.B,{gapSize:12,children:[(0,i.jsxs)("h2",{children:["Are you sure you want to unsubscribe from all"," ",s," ","newsletters?"]}),(0,i.jsxs)(X.B,{gapSize:32,children:[(0,i.jsx)("p",{children:"Resubscribe at any time"}),(0,i.jsx)(te.b,{title:"Unsubscribe From All",onClick:t})]}),(0,i.jsx)(e3.u,{onClick:e,variant:"block","data-testid":"closeUnsubModal",children:"Cancel"})]})]})};var ta=s(44099),tn=s.n(ta);let tr=({checked:e,className:t,disabled:s,inputId:l,labelId:a,labelText:n,title:r,onChange:o})=>(0,i.jsxs)("label",{htmlFor:l,className:tn().switch,"data-testid":a,children:[(0,i.jsx)("input",{id:l,type:"checkbox",className:t,"aria-checked":e,"aria-label":`Toggle ${r}${n?` ${n}`:""}`,checked:e,disabled:s,onChange:o}),(0,i.jsx)("span",{className:tn().slider})]}),to=({title:e,description:t,image:s,checked:l,onToggle:a,requiresSubscriptionToToggle:n,isSubscriber:r})=>{let o=e?.replace(/\s+/g,""),c=n&&!r&&!l;return(0,i.jsxs)("div",{className:ti().newsletterDetail,children:[(0,i.jsxs)("div",{className:ti().newsletterInfo,children:[s?(0,i.jsx)("img",{src:s,alt:e}):null,(0,i.jsxs)("div",{className:ti().newsletterText,children:[n&&(0,i.jsx)("div",{className:ti().subscriberOnlyHeader,children:"Subscriber Only"}),(0,i.jsx)("h3",{children:e}),(0,i.jsx)("p",{className:ti().description,children:t})]})]}),(0,i.jsx)(tr,{checked:l,onChange:()=>{c||a()},inputId:o,title:e,labelId:`labelFor${o}`,labelText:"Newsletter Subscription",className:n?ti().subscriberOnlySwitch:"",disabled:c})]})},tc=()=>(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.707 5.293a1 1 0 0 1 0 1.414l-11 11a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L9 15.586 19.293 5.293a1 1 0 0 1 1.414 0Z",fill:"#555"})});var td=s(60658),tu=s.n(td);let tp=()=>{let[e,t={},s,a,n,r,o,c]=(0,e4.hZ)(e=>[e.newsletterSubscriptions,e.subscriptions,e.fetchNewsletterSubscriptions,e.toggleNewsletterSubscription,e.subscribeToAllNewsletters,e.unsubscribeFromAllNewsletters,e.hasSubscribedToAll,e.error]),{vertical:d,isToday:u}=(0,U.C)(),p=(0,e5.K)(),[_,h]=(0,l.useState)(!1),y=u?"TODAY":I.verticalNameMap[d],m=!!t[(0,I.getSubscriptionNameForVertical)(d)],g=p?.filter(({view_option:e})=>m?p:"subscriber"!==e)??[],f=(0,l.useMemo)(()=>new Set(e),[e]),b=(0,l.useMemo)(()=>0===e.length,[e]),x=(0,l.useCallback)(()=>{h(e=>!e)},[]),v=(0,l.useCallback)(()=>{r(g),h(!1)},[r,g]);return(0,l.useEffect)(()=>(document.body.style.overflow=_?"hidden":"",()=>{document.body.style.overflow=""}),[_]),(0,l.useEffect)(()=>{s()},[s]),(0,i.jsxs)(i.Fragment,{children:[_&&(0,i.jsx)(e8,{isOpen:!0,onClose:()=>window.history.back(),className:k()(tu().dialog,tu().fade),children:()=>(0,i.jsx)("div",{className:tu().wrapper,children:(0,i.jsx)(tl,{toggleModal:x,handleUnsubscribeAll:v,displayName:y})})}),(0,i.jsxs)(K,{title:"Newsletters",activityMap:"account-newsletters",testId:"accounts-newsletters",showLoadingState:!1,children:[(0,i.jsxs)("button",{className:`${ti().subAllButton} ${o?ti().selected:""}`,type:"button","data-testid":"subscribe-all-button",onClick:()=>{n(g)},children:[`SUBSCRIBE${o?"D":""} TO ALL`,(0,i.jsx)("div",{className:ti().indicator,children:o?(0,i.jsx)(tc,{}):null})]}),c&&(0,i.jsx)("div",{className:ti().error,role:"alert","aria-live":"assertive",children:c}),(0,i.jsx)("div",{className:`${ti().newsletterGrid} ${ti().weightedGrid}`,children:p?.map(({newsletter_id:e,title:t,description:s,image:l,view_option:n})=>(0,i.jsx)(to,{title:t,description:s,image:l,checked:f.has(e),onToggle:()=>a(e),requiresSubscriptionToToggle:"subscriber"===n,isSubscriber:m},e+t))}),(0,i.jsx)("div",{className:ti().unSubFooter,children:(0,i.jsxs)("p",{children:["Want to stop receiving all newsletters from"," ",
1y,"?"," ",(0,i.jsx)(e3.u,{onClick:()=>!b&&x(),weight:"regular",children:"Unsubscribe From All"})]})})]})]})};var t_=s(71090),th=s(27402),ty=s(88992),tm=s(94276),tg=s(43596),tf=s(69641),tb=s(46450);function tx(){let{isToday:e}=(0,e_.Cn)();return(0,i.jsxs)(X.B,{gapSize:64,className:k()(tu().wrapper,tu().wrapper__fixed),children:[(0,i.jsx)(tt.Y,{onClose:()=>window.history.back(),branding:e?"today":"nbcnews"}),(0,i.jsx)(tb.s,{useAsStandalone:!0})]})}var tv=s(61697);function tw(e){let{state:t}=(0,tv.q)(),s=t?.display==="verifyOTC",{opener:l}=e;return(0,i.jsx)(e8,{opener:l,isOpen:s,onClose:()=>window.history.back(),className:k()(tu().dialog,tu().fade),children:()=>(0,i.jsx)(tx,{})})}var tj=s(62827),tC=s.n(tj),tN=s(287),tI=s.n(tN);let tS=({isEmailUser:e=null})=>{let[t,s]=(0,e4.hZ)(e=>[e.user,e.error]),{requestOneTimeCode:a,setScreen:n,track:r,updateUserEmail:o}=e4.hZ.getState(),c=t?.email||"",d=t?.email_verified,u="true"===d||!0===d||"Y"===d,{history:p}=(0,tv.q)(),[_,h,y]=(0,te.U)(),m=(0,l.useRef)(null),g=(0,ty.mN)({resolver:(0,t_.t)(tg.X5),defaultValues:{email:"",password:""}}),f=()=>{n(tf.cq.VERIFY_OTC),p.pushState({display:"verifyOTC"}),a({trackingPayload:{action:"Profile:Submit",method:"Email:VerifyButton:Click"}})},b=async e=>{y(!0);let t={action:"Profile:Submit",method:"Email:UpdateButton:Click"};r(t),o(e.email,e.password).then(e=>{e.success&&(h(),r({action:"Profile:Success",method:t.method}),g.reset(),f())}).finally(()=>{y(!1)})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ty.Op,{...g,children:(0,i.jsx)("form",{className:tI().updateEmailContainer,onSubmit:g.handleSubmit(b),"data-testid":"update-email-form",children:(0,i.jsxs)(X.B,{gapSize:20,children:[(0,i.jsx)("h3",{className:tI().h3,children:"Email Address"}),(0,i.jsxs)("div",{className:k()(tC().currentEmailContainer,{[tC().verified]:u&&e,[tC().notVerified]:!u,[tC().socialAccount]:!e}),children:[c&&(0,i.jsxs)("span",{className:tC().currentEmail,children:["Current Email:"," ",c]}),e&&(0,i.jsx)(i.Fragment,{children:u?(0,i.jsxs)("div",{className:tC().emailVerified,"data-testid":"verified-badge",children:[(0,i.jsx)("span",{className:"icon icon-check-verified"}),(0,i.jsx)("span",{className:tC().verifiedText,children:"Verified"})]}):(0,i.jsxs)("div",{className:tC().emailNotVerified,children:[(0,i.jsxs)("p",{children:["Secure your profile by verifying your","\n","email address."]}),(0,i.jsx)("button",{type:"button",onClick:f,ref:m,children:"Verify Email"})]})})]}),e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(X.B,{gapSize:20,children:[(0,i.jsx)(X.B,{gapSize:4,children:(0,i.jsx)(th.A,{labelSize:"small",label:"New Email Address*",type:"email",name:"email",isRequired:!0,id:"email"})}),g.watch("email")&&(0,i.jsx)(X.B,{gapSize:4,children:(0,i.jsx)(th.A,{labelSize:"small",label:"Current Account Password",type:"password",name:"password",isRequired:!0,id:"password"})}),(0,i.jsx)(tm.I,{message:s})]}),(0,i.jsx)(te.b,{title:"Update Email",successMessage:"Email Updated",pendingMessage:"Saving",status:_,disabled:!g.formState.isValid})]}),!1===e&&(0,i.jsx)("p",{className:tC().socialAccountMessage,children:"Emails from social accounts cannot be modified here. Please update your email through your Ap
1ple or Google account."})]})})}),(0,i.jsx)(tw,{opener:m})]})};var tA=s(79424),tk=s(92102),tM=s(42451),tT=s(91408),tB=s(93583),tD=s.n(tB);function tW({onRequestCode:e,onSuccess:t,userEmail:s,isCodeRequestPending:a,codeRequestError:n}){let{deleteProfile:r}=(0,e4.hZ)(e=>({deleteProfile:e.deleteProfile})),[o,c]=(0,l.useState)(""),d=`confirm-checkbox-${(0,l.useId)()}`,u=(0,ty.mN)({defaultValues:{oneTimeCode:"",confirm:!1},resolver:(0,t_.t)(tT.Ik().shape({oneTimeCode:tg.l9,confirm:tT.lc().oneOf([!0],"You must confirm you understand the consequences before deleting your profile.")}))}),{handleSubmit:p,formState:{isSubmitting:_}}=u;async function h({oneTimeCode:e}){c("");let s=await r({oneTimeCode:e}).catch(e=>({success:!1,error:e}));s.success?(t(),await (0,tA.S6)()):s?.error?.code==="AUTH_1037"?c("The code you entered is incorrect or has expired. Please try again."):c("There was an error deleting your profile. Please try again.")}return(0,i.jsx)(ty.Op,{...u,children:(0,i.jsx)("form",{onSubmit:p(h),noValidate:!0,"aria-busy":_?"true":void 0,children:(0,i.jsxs)(X.B,{gapSize:12,className:tD().mainContent,children:[(0,i.jsx)("h1",{children:"Delete Profile with Code"}),(0,i.jsxs)(X.B,{gapSize:32,children:[(0,i.jsxs)("p",{children:["You are requesting to delete your NBCUniversal Profile. Verify your identity by entering the one-time code we sent to"," ",(0,i.jsx)("strong",{children:`${s}.`})]}),(0,i.jsx)(tM.V,{children:"If you couldnât find our email, please check your spam folder."})]}),(0,i.jsx)(th.A,{name:"oneTimeCode",ariaLabel:"Enter your 6-digit code",type:"one-time-code",placeholder:"000000"}),(0,i.jsxs)(X.B,{gapSize:32,children:[(0,i.jsx)(tk.S,{name:"confirm",id:d,"aria-describedby":"confirm_desc","aria-labelledby":"confirm_short",children:(0,i.jsxs)("label",{htmlFor:d,children:[(0,i.jsx)("span",{id:"confirm_short",className:"sr-only",children:"Acknowledge"}),(0,i.jsx)("span",{id:"confirm_desc",className:tD().confirm,children:"I understand my profile will be deleted. I will be permanently logged out across all NBCUniversal apps and lose access to unused credits, as well as viewing progress, favorites, and recommendations."})]})}),o&&(0,i.jsx)(tm.I,{message:o}),n&&(0,i.jsx)(tm.I,{message:n}),(0,i.jsxs)(X.B,{gapSize:4,className:tD().buttonGroup,children:[(0,i.jsx)(te.b,{disabled:_,"aria-busy":_?"true":void 0,title:_?"Deletingâ¦":"Delete My Profile"}),(0,i.jsx)(e3.u,{disabled:a,onClick:()=>e(),children:"Send Code Again"})]})]})]})})})}var tP=s(21927);let tL={SUBSCRIBER:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"Youâve initiated a request to delete data associated with your NBC News profile (âNBC News Dataâ) and your NBCUniversal Profile. As explained herein, this is a two-step deletion process. Once we process your requests to delete both your NBC News Data and your NBCUniversal Profile, you will immediately and permanently lose access to your NBCUniversal Profile, including any access to exclusive and personalized content on NBC News, and any other NBCUniversal brands that use NBCUniversal Profiles. Once you complete the deletion process, all personal data related to your profile will be deleted, including any personalization and preferences associated with your profile. This access cannot be restored. Even if you take steps to delete your profile, we may be legally obligated to retain some of your data for legal, tax, accounting, and fraud prevention purposes."}),(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Deletion of your profile and/or NBCUniversal Profile will not cancel any upcoming payments (including any automatically renewing charges for subscriptions) and you will continue to be charged for your subscription(s) until you cancel the subscription(s). We highly recommend canceling all NBCUniversal subscriptions before deleting your NBCUniversal Profile."})," It is your responsibility to review, manage and cancel your payment obligations either through NBCUniversal or the third party through which you subscribed (e.g., Apple, Android, Roku)."]}),(0,i.jsxs)("p",{children:["If you signed up for your NBC News subscription online, you must cancel your NBC News subscription by visiting ",(0,i.jsx)("a",{href:"https://nbcnews.com/profile/subscription",target:"_blank",rel:"noreferrer",children:"nbcnews.com/profile/subscription"}),". If your NBC News subscription is billed via Apple, Google or any other third party, you must cancel the subscription directly through Apple, Google or that third party (",(0,i.jsx)("a",{href:"https://nbcnews.zendesk.com/hc/en-us/articles/47059913011219-How-do-I-cancel-my-subscription",target:"_blank",rel:"noreferrer",children:"as explained here"}),") to avoid future charges."]}),(0,i.jsx)("p",{children:(0,i.jsxs)("strong",{children:[(0,i.jsx)("u",{children:"To completely delete"})," your NBCUniversal Profile, which is your profile used across all NBCUniversal brands, you ",(0,i.jsx)("u",{children:"must"})," complete the following additional deletion steps:"]})}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Visit the following link: ",(0,i.jsx)("a",{href:"https://profile.id.nbcuni.com/security",target:"_blank",rel:"noreferrer",children:"profile.id.nbcuni.com/security"})]}),(0,i.jsx)("li",{children:"Sign in using your NBCUniversal Profile credentials"}),(0,i.jsx)("li",{children:"Select Delete Profile"})]}),(0,i.jsx)("p",{children:"If you do not submit a request through the above page, some of your NBCUniversal Profile data may remain in our records."}),(0,i.jsx)("p",{children:"Deleting your NBCUniversal Profile will result in the immediate loss of access to any subscriptions, services and profiles (including any paid subscriptions) that use NBCUniversal Profiles, including NBC News. If you have a paid subscription to a product or service provided by NBCUniversal or its affiliates, including NBC News, you will not be able to access your subscription even if you have any remaining days in your paid subscription period or it is currently set to auto-renew, and you will not be entitled to a refund."})]}),NON_SUBSCRIBER:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{children:["Youâve initiated a request to delete your NBC News profile and
1your NBCUniversal Profile, and any other profiles you have with NBCUniversal that use NBCUniversal Profiles. Once we process your request to delete both your NBCU Profile and NBC News profile, you will immediately and permanently lose access to your NBCUniversal Profile, NBC News profile, and all profiles you have with other NBCUniversal brands that use NBCUniversal Profiles. Unless you act, all data in your NBC News profile will be deleted. This access cannot be restored. ",(0,i.jsxs)("strong",{children:["Outside of your NBC News profile data, ",(0,i.jsx)("u",{children:"to completely delete"})," your NBCUniversal Profile, which is your profile used across all NBCUniversal brands, you ",(0,i.jsx)("u",{children:"must"})," complete separate deletion steps. "]}),"These steps include:"]}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Visit the following link: ",(0,i.jsx)("a",{href:"https://profile.id.nbcuni.com/security",target:"_blank",rel:"noreferrer",children:"profile.id.nbcuni.com/security"})]}),(0,i.jsx)("li",{children:"Sign in using your NBCUniversal Profile credentials"}),(0,i.jsx)("li",{children:"Select Delete Profile"})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:"If you do not submit a request through this page, some of your NBCU profile data may remain in our records."})}),(0,i.jsx)("p",{children:"Deleting your NBCUniversal Profile will result in the immediate inability to access any subscriptions, services and profiles (including any paid subscriptions) that use NBCUniversal Profiles, including NBC News. If you have a paid subscription to a product or service provided by NBCUniversal or its affiliates, you will not be able to access these services even if you have any remaining days in your paid subscription period, and you will not be entitled to a refund for this period."}),(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Deletion of your NBCUniversal Profile will not cancel any upcoming payments (including any automatically renewing charges for subscriptions)"}),", and it is your responsibility to review, manage and cancel your payment obligations either through NBCUniversal or the third party through which you subscribed (e.g., Apple, Roku)."]}),(0,i.jsx)("p",{children:"We may be legally obligated to retain some of your data for legal, tax, accounting, and fraud prevention purposes."})]})},tO={SUBSCRIBER:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{children:["Youâve initiated a request to delete your Today profile and your NBCUniversal Profile, including any other profiles you have with NBCUniversal that use NBCUniversal Profiles. Once we process your request to delete both your NBCU Profile and Today profile, you will immediately and permanently lose access to your NBCUniversal Profile, TODAY profile, and all profiles you have with other NBCUniversal brands that use NBCUniversal Profiles. Unless you act, all data in your Today profile will be deleted. This access cannot be restored. ",(0,i.jsxs)("strong",{children:["Outside of your Today profile data, ",(0,i.jsx)("u",{children:"to completely delete"})," your NBCUniversal Profile, which is your profile used across all NBCUniversal brands, you ",(0,i.jsx)("u",{children:"must"})," complete separate deletion steps. "]}),"These steps include:"]}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Visit the following link: ",(0,i.jsx)("a",{href:"https://profile.id.nbcuni.com/security",target:"_blank",rel:"noreferrer",children:"profile.id.nbcuni.com/security"})]}),(0,i.jsx)("li",{children:"Sign in using your NBCUniversal Profile credentials"}),(0,i.jsx)("li",{children:"Select Delete Profile"})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:"If you do not submit a request through this page, some of your NBCUniversal Profile data may remain in our records."})}),(0,i.jsx)("p",{children:"Deleting your NBCUniversal Profile will result in the immediate inability to access any subscriptions, services and profiles (including any paid subscriptions) that use NBCUniversal Profiles, including TODAY. If you have a paid subscription to a product or service provided by NBCUniversal or its affiliates, you will not be able to access these services even if you have any remaining days in your paid subscription period, and you will not be entitled to a refund for this period."}),(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Deletion of your NBCUniversal Profile will not cancel any upcoming payments (including any automatically renewing charges for subscriptions)"}),", and it is your responsibility to review, manage and cancel your payment obligations either through NBCUniversal or the third party through which you subscribed (e.g., Ap
1ple, Roku)."]}),(0,i.jsxs)("p",{children:["If you signed up for your TODAY subscription online, you must cancel your TODAY subscription by visiting ",(0,i.jsx)("a",{href:"https://today.com/profile/subscription",target:"_blank",rel:"noreferrer",children:"today.com/profile/subscription"}),". If your TODAY subscription is billed via Apple, Google or any other third party, you must cancel the subscription directly through Apple, Google or that third party (",(0,i.jsx)("a",{href:"https://starttoday.zendesk.com/hc/en-us/articles/45178551860371-How-do-I-cancel-my-Start-TODAY-app-subscription",target:"_blank",rel:"noreferrer",children:"as explained here"}),") to avoid future charges."]}),(0,i.jsx)("p",{children:"We may be legally obligated to retain some of your data for legal, tax, accounting, and fraud prevention purposes."})]}),NON_SUBSCRIBER:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{children:["Youâve initiated a request to delete your TODAY profile and your NBCUniversal Profile, and any other profiles you have with NBCUniversal that use NBCUniversal Profiles. Once we process your request to delete both your NBCU Profile and Today profile, you will immediately and permanently lose access to your NBCUniversal Profile, TODAY profile, and all profiles you have with other NBCUniversal brands that use NBCUniversal Profiles. Unless you act, all data in your Today profile will be deleted. This access cannot be restored. ",(0,i.jsxs)("strong",{children:["Outside of your Today profile data, ",(0,i.jsx)("u",{children:"to completely delete"})," your NBCUniversal Profile, which is your profile used across all NBCUniversal brands, you ",(0,i.jsx)("u",{children:"must"})," complete separate deletion steps. "]}),"These steps include:"]}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["Visit the following link: ",(0,i.jsx)("a",{href:"https://profile.id.nbcuni.com/security",target:"_blank",rel:"noreferrer",children:"profile.id.nbcuni.com/security"})]}),(0,i.jsx)("li",{children:"Sign in using your NBCUniversal Profile credentials"}),(0,i.jsx)("li",{children:"Select Delete Profile"})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:"If you do not submit a request through this page, some of your NBCU profile data may remain in our records."})}),(0,i.jsx)("p",{children:"Deleting your NBCUniversal Profile will result in the immediate inability to access any subscriptions, services and profiles (including any paid subscriptions) that use NBCUniversal Profiles, including TODAY. If you have a paid subscription to a product or service provided by NBCUniversal or its affiliates, you will not be able to access these services even if you have any remaining days in your paid subscription period, and you will not be entitled to a refund for this period."}),(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Deletion of your NBCUniversal Profile will not cancel any upcoming payments (including any automatically renewing charges for subscriptions)"}),", and it is your responsibility to review, manage and cancel your payment obligations either through NBCUniversal or the third party through which you subscribed (e.g., Apple, Roku)."]}),(0,i.jsx)("p",{children:"We may be legally obligated to retain some of your data for legal, tax, accounting, and fraud prevention purposes."})]})};function tG(e){let{onContinue:t,userEmail:s,hasSeenDeleteWarning:a=!1,onSeenDeleteWarning:n}=e,r=(0,l.useRef)(null),{top:o,bottom:c}=(0,tP.X)(r),{isNews:d,isToday:u}=(0,U.C)(),p=void 0!==c&&c<=8;(0,l.useEffect)(()=>{p&&!a&&n&&n()},[p,a,n]);let _=function({isNews:e,isToday:t}){return e?tL.SUBSCRIBER:t?tO.SUBSCRIBER:null}({isNews:d,isToday:u}),h=d?"icon-nbc-exclamation":"icon-today-exclamation";return(0,i.jsxs)(X.B,{gapSize:32,children:[(0,i.jsxs)(X.B,{gapSize:12,className:`${tD().mainContent} tl`,children:[(0,i.jsx)("h1",{children:"Delete Your Profile"}),(0,i.jsx)("div",{className:tD().scrollContainer,"data-testid":"delete-profile-scroll-container",style:{"--overscroll-top":o,"--overscroll-bottom":c},ref:r,children:_})]}),(0,i.jsxs)(X.B,{gapSize:32,children:[(0,i.jsxs)("p",{children:["You are currently signed in as:"," ",(0,i.jsx)("div",{className:tD().emailDisplay,children:s})]}),(0,i.jsxs)("p",{className:tD().alert,children:[(0,i.jsx)("span",{className:`icon ${h}`}),(0,i.jsx)("span",{className:tD().alertText,children:"Profile deleti
1on will NOT cancel or refund any active paid subscriptions."})]}),(0,i.jsx)("div",{className:tD().buttonGroup,children:(0,i.jsx)(te.b,{onClick:t,title:"Continue to Profile Deletion",disabled:!a})})]})]})}let tY=JSON.parse('{"nbcnews":{"title":"Profile Deletion Submitted","messageOne":"You will receive an email confirmation from our team when your request has been processed.","messageTwo":"If you\'d like to cancel your request within 12 hours, please contact Customer Care.","buttonText":"Back To NBC News","buttonUrl":"/","linkText":"Contact Customer Care","linkUrl":"mailto:[email protected]"},"today":{"title":"Profile Deletion Submitted","messageOne":"You will receive an email confirmation from our team when your request has been processed.","messageTwo":"If you\'d like to cancel your request within 12 hours, please contact Customer Care.","buttonText":"Back To Today","buttonUrl":"/","linkText":"Contact Customer Care","linkUrl":"mailto:[email protected]"}}');var tE=s(2841),tR=s.n(tE);let tZ=()=>{let{isToday:e}=(0,U.C)(),{title:t,messageOne:s,messageTwo:l,buttonText:a,buttonUrl:n,linkText:r,linkUrl:o}=tY[e?"today":"nbcnews"];return(0,i.jsxs)("div",{className:tR().container,children:[(0,i.jsx)("h1",{className:tR().title,children:t}),(0,i.jsx)("p",{className:tR().message,children:s}),(0,i.jsx)("p",{className:tR().messagePadded,children:l}),(0,i.jsx)(te.b,{title:a,onClick:()=>{window.location.pathname=n}}),(0,i.jsx)("a",{href:o,className:tR().link,children:r})]})};function tU(){let[e,t]=(0,l.useState)(!1),[s,a]=(0,l.useState)(""),[n,r]=(0,l.useState)(!1),{requestOneTimeCode:o,email:c}=(0,e4.hZ)(e=>({requestOneTimeCode:e.requestOneTimeCode,email:e.user.email})),{isToday:d}=(0,e_.Cn)(),[u,p]=(0,l.useState)("request"),[_,h]=(0,l.useState)(!1);function y(e){t(!0),a(""),o({trackingPayload:{action:"DeleteProfile:RequestCode",method:e}}).catch(()=>a("There was an error sending the code. Please try again.")).finally(()=>t(!1)),p("confirm")}let m="confirm"===u;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tt.Y,{onClose:()=>{n?window.location.pathname="/profile":window.history.back()},branding:d?"today":"nbcnews",onBack:m&&!n?()=>{p("request")}:void 0}),m&&!n&&(0,i.jsx)(tW,{isCodeRequestPending:e,codeRequestError:s,onRequestCode:()=>y("Resend"),userEmail:c,onSuccess:()=>r(!0)}),!m&&!n&&(0,i.jsx)(tG,{onContinue:()=>y("Continue"),userEmail:c,hasSeenDeleteWarning:_,onSeenDeleteWarning:()=>{h(!0)}}),n&&(0,i.jsx)(tZ,{})]})}function tz(e){let{state:t}=(0,tv.q)(),s=t?.display==="deleteAccount";return(0,i.jsx)(e8,{opener:e.opener,isOpen:s,onClose:()=>window.history.back(),className:k()(tu().dialog,tu().fade,tD().content),children:()=>(0,i.jsx)(X.B,{gapSize:64,className:k()(tu().wrapper,tu().wrapper__fixed,tD().contentWrapper),children:(0,i.jsx)(tU,{})})})}let tF=(0,tT.Ik)().shape({firstName:(0,tT.Yj)().trim().default("").max(255,"Please enter a valid first name."),lastName:(0,tT.Yj)().default("")}),tV=(0,tT.Ik)().shape({zipCode:(0,tT.Yj)().trim().default("").test("zip-format","Please enter a valid 5-digit zip code.",e=>!e||""===e||/^\d{5}$/.test(e))});tF.concat(tV);let tX=(0,tT.Ik)().shape({confirmPassword:(0,tT.Yj)(),oldPassword:(0,tT.Yj)().required("Please enter your current password."),newPassword:(0,tT.Yj)().min(12,"Please enter a valid password.").matches(/[0-9]/,"Please enter a valid password.").matches(/[a-zA-Z]/,"Please enter a valid password.").test("Unique","Please enter a valid password.",(e,{options:t})=>{let{userEmail:s}=t;return!s||!e?.includes(s)}).test("disallowPassword","Please enter a valid password.",e=>"string"!=typeof e||!1===/password/i.test(e)).required("Please enter a valid password.")});function tH(){let[e,t,s,a,n,r,o,c]=(0,e4.hZ)(e=>[e.user,e.updateUserProfile,e.updateUserPassword,e.track,e.searchUserByEmail,e.settings,e.fetchZipCodeSettings,e.saveZipCodeSettings]),{isToday:d,vertical:u}=(0,U.C)(),{history:p}=(0,tv.q)(),_=(0,l.useRef)(null),h=(0,l.useRef)(!1),[y,m]=(0,l.useState)(""),[g,f]=(0,l.useState)(e.email||""),[b,x]=(0,l.useState)(null),[v,w]=(0,l.useState)(!1),[j,C]=(0,l.useState)(""),[N,S]=(0,l.useState)(""),[A,k,M]=(0,te.U)(),[T,B,D]=(0,te.U)(),[W,P,L]=(0,te.U)(),O=(0,ty.mN)({resolver:(0,t_.t)(tF),defaultValues:{firstName:e.first_name||"",lastName:e.last_name||""},mode:"onSubmit"}),G=(0,ty.mN)({resolver:(0,t_.t)(tV),defaultValues:{zipCode:r?.zipcode||""},mode:"onSubmit"}),Y=(0,ty.mN)({resolver:(0,t_.t)(tX,{userEmail:g}),mode:"onChange",defaultValues:{oldPassword:"",newPassword:"",confirmPassword:""}});(0,l.useEffect)(()=>{O.reset({firstName:e.first_name||"",lastName:e.last_name||""})},[e.first_name,e.last_name]),(0,l.useEffect)(()=>{d||o()},[o,d]),(0,l.useEffect)(()=>{G.reset({zipCode:r?.zipcode||""})},[r?.zipcode]),(0,l.useEffect)(()=>{f(e.email||"")},[e.email]),(0,l.useEffect)(()=>{e.email&&!h.current&&(h.current=!0,(async()=>{try{let t=await n(e.email,(0,I.getBedrockBrandForVertical)(u)),s=t?.data?.result?.[0]?.platform||"";x("email"===s)}catch(e){console.error("Failed to fetch user platform data:",e),h.current=!1}})())},[e.email,u]);let E=async({firstName:e,lastName:s})=>{m(""),a({action:"Profile:Submit",method:"Contact:SaveButton:Click"}),M(!0);try{let i=await t({first_name:e??"",last_name:s??""});i?.success?(k(),a({action:"Profile:Success",method:"ContactInfo:SaveButton:Click"})):m("Unable to save contact information.")}finally{M(!1)}},R=async({zipCode:e})=>{S(""),a({action:"Profile:Submit",method:"ZipCode:SaveButton:Click"}),D(!0);try{let t=await c({zipcode:e??""});t?.success?(B(),a({action:"Profile:Success",method:"ZipCode:SaveButton:Click"})):S("Unable to save zip code.")}finally{D(!1)}},Z=async e=>{let{oldPassword:t,newPassword:i,confirmPassword:l}=e;if(C(""),i!==l)return void w(!0);v&&w(!1),L(!0);try{a({action:"Profile:Submit",method:"Password:ChangeButton:Click"});let e=await s({old_password:t,new_password:i});e?.success?(P(),Y.reset({oldPassword:"",newPassword:"",confirmPassword:""}),a({action:"Profile:Success",method:"Password:ChangeButton:Click"})):C("Unable to change password. Old password may be incorrect.")}finally{L(!1)}};return(0,i.jsx)(K,{gapSize:32,showLoadingState:!1,title:"Profile",h2ClassName:tI().h2,className:tI().profileContainer,children:(0,i.jsxs)(X.B,{gapSize:48,children:[(0,i.jsx)(ty.Op,{...O,children:(0,i.jsx)("form",{className:tI().c
1ontactContainer,onSubmit:O.handleSubmit(E),children:(0,i.jsxs)(X.B,{gapSize:20,children:[d&&(0,i.jsx)("h3",{className:tI().h3,children:"Personal Details"}),(0,i.jsx)(X.B,{gapSize:4,children:(0,i.jsx)(th.A,{labelSize:"small",label:"First Name",id:"firstName",type:"text",placeholder:"First Name",shouldSuperscriptPlaceholder:!1,autoComplete:"given-name",name:"firstName",maxLength:255})}),(0,i.jsx)(tm.I,{message:y}),(0,i.jsx)(te.b,{title:"Update Name",successMessage:"Update Saved",pendingMessage:"Saving",status:A})]})})}),!d&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{}),(0,i.jsx)(ty.Op,{...G,children:(0,i.jsx)("form",{className:tI().contactContainer,onSubmit:G.handleSubmit(R),children:(0,i.jsxs)(X.B,{gapSize:20,children:[(0,i.jsx)(X.B,{gapSize:4,children:(0,i.jsx)(th.A,{labelSize:"small",label:"Zip Code",id:"zipCode",type:"text",placeholder:"Zip Code",shouldSuperscriptPlaceholder:!1,autoComplete:"postal-code",name:"zipCode",inputMode:"numeric"})}),(0,i.jsx)(tm.I,{message:N}),(0,i.jsx)(te.b,{title:"Update Zip Code",successMessage:"Update Saved",pendingMessage:"Saving",status:T})]})})})]}),(0,i.jsx)("hr",{}),(0,i.jsx)(tS,{isEmailUser:b}),b&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{}),(0,i.jsx)(ty.Op,{...Y,children:(0,i.jsx)("form",{className:tI().resetPasswordContainer,onSubmit:Y.handleSubmit(Z),children:(0,i.jsxs)(X.B,{gapSize:20,children:[(0,i.jsx)("h3",{className:tI().h3,children:"Password"}),(0,i.jsx)(X.B,{gapSize:4,children:(0,i.jsx)(th.A,{type:"password",label:"Old Password*",labelSize:"small",name:"oldPassword",placeholder:"Old Password",shouldSuperscriptPlaceholder:!1,autoComplete:"current-password",required:!0})}),(0,i.jsx)(X.B,{gapSize:4,children:(0,i.jsx)(th.A,{label:"New Password*",labelSize:"small",type:"password",name:"newPassword",placeholder:"New Password",shouldSuperscriptPlaceholder:!1,autoComplete:"new-password",createPassword:!0,required:!0})}),(0,i.jsxs)(X.B,{gapSize:4,children:[(0,i.jsx)(th.A,{label:"Confirm New Password*",labelSize:"small",type:"password",name:"confirmPassword",placeholder:"New Password",shouldSuperscriptPlaceholder:!1,autoComplete:"new-password",required:!0}),v&&(0,i.jsx)(tm.I,{message:"Passwords do not match."})]}),(0,i.jsx)(tm.I,{message:j}),(0,i.jsx)(te.b,{title:"Update Password",successMessage:"Update Saved",pendingMessage:"Saving",status:W})]})})})]}),(0,i.jsx)("hr",{}),(0,i.jsxs)(X.B,{gapSize:20,children:[(0,i.jsx)("h3",{className:tI().h3,children:"NBCUniversal Profile"}),(0,i.jsx)(te.b,{title:"Delete Profile",ref:_,onClick:()=>p.pushState({display:"deleteAccount"})})]}),(0,i.jsx)(tz,{opener:_})]})})}var t$=s(72957),tK=s(17287),tq=s.n(tK);let tJ=()=>{let{vertical:e}=(0,e_.Cn)(),{sdkReady:t=!1}=(0,t$.P)()||{},{fetchUserSubscriptions:s,getSubscriptionSource:a,subscriptions:{startToday:n,nbcNews:r}}=(0,e4.hZ)(e=>e),[o,c]=(0,l.useState)(""),d="ios"===o||"google"===o,u=""===o||null===o,p="today"===e&&n,_="news"===e&&r&&"NBC News Subscription"||p&&"Start TODAY Subscription"||"Subscription";return((0,l.useEffect)(()=>{let e=!0;return(async()=>{let{data:t}=await s(),{subscription_source:i}=t?.[0]||{},l=a(i)||null;e&&c(l)})(),()=>{e=!1}},[s,a]),(0,l.useEffect)(()=>{u||d||!t||window?.tp?.externalJWT&&window.tp?.myaccount?.show?.({displayMode:"inline",containerSelector:"#my-account"})},[u,d,t]),!u&&d)?(0,i.jsx)(K,{showLoadingState:!1,testId:"subscription-page",title:_,className:tq().container,gapSize:"24",children:(0,i.jsxs)("div",{className:tq().appSubscriber,children:[(0,i.jsxs)(X.B,{gapSize:24,children:[(0,i.jsx)("p",{children:"It looks like your subscription was started through a mobile app. To make any changes, please manage your subscription directly from the App Store or Google Play."}),(0,i.jsx)(te.b,{title:"Manage Subscription",href:"ios"===o?"https://account.apple.com/account/manage/section/subscriptions":"https://play.google.com/store/account/subscriptions",variant:"primary"})]}),(0,i.jsxs)(X.B,{gapSize:20,className:tq().support,children:[(0,i.jsx)("span",{className:tq().supportText,children:"Need help managing your subscription?"}),"\xa0",(0,i.jsx)("a",{href:p?"mailto:[email protected]?subject=Start TODAY Subscription support":"mailto:[email protected]?subject=NBC News Subscription support",className:tq().supportLink,children:"Get support here"})]})]})}):(0,i.jsx)(K,{showLoadingState:!1,testId:"subscription-page",title:_,children:(0,i.jsx)("div",{id:"my-account",className:tq().myAccount})})},tQ=()=>(0,i.jsxs)("svg",{"data-testid":"checkmark-circle",width:"26",height:"26",viewBox:"-2 -2 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("circle",{cx:"13",cy:"13",r:"14.5",fill:"transparent"}),(0,i.jsx)("path",{d:"M11.2277 18.8995L20.1523 9.97516L18.2005 8.01578L11.2277 14.9886L7.75484 11.5158L5.80328 13.4752L11.2277 18.8995ZM13.0002 25.7542C11.2312 25.7542 9.57141 25.4196 8.02078 24.7505C6.46995 24.0813 5.12099 23.1733 3.97391 22.0264C2.82703 20.8793 1.91901 19.5304 1.24984 17.9795C0.580677 16.4289 0.246094 14.7691 0.246094 13.0002C0.246094 11.2312 0.580677 9.57141 1.24984 8.02078C1.91901 6.46995 2.82703 5.12099 3.97391 3.97391C5.12099 2.82703 6.46995 1.91901 8.02078 1.24984C9.57141 0.580677 11.2312 0.246094 13.0002 0.246094C14.7691 0.246094 16.4289 0.580677 17.9795 1.24984C19.5304 1.91901 20.8793 2.82703 22.0264 3.97391C23.1733 5.12
1099 24.0813 6.46995 24.7505 8.02078C25.4196 9.57141 25.7542 11.2312 25.7542 13.0002C25.7542 14.7691 25.4196 16.4289 24.7505 17.9795C24.0813 19.5304 23.1733 20.8793 22.0264 22.0264C20.8793 23.1733 19.5304 24.0813 17.9795 24.7505C16.4289 25.4196 14.7691 25.7542 13.0002 25.7542Z",fill:"black"})]});var t0=s(51191),t1=s.n(t0);function t2({caption:e,isSelected:t,onChange:s,imageUrl:l,captionOverImage:a,useModalLayout:n=!1}){let r=!!(a||!l),o={"--image":`url(${l})`};return(0,i.jsxs)("button",{type:"button","aria-pressed":t,onClick:()=>s(!t),className:k()(t1().preferenceTile,{[t1().captionInImage]:r,[t1().modal]:n}),style:o,"aria-label":r?void 0:e,children:[r&&(0,i.jsx)("span",{className:t1().caption,children:e}),(0,i.jsx)("span",{"aria-hidden":"true",className:t?t1().selectedIcon:t1().unselectedIcon,children:(0,i.jsx)(tQ,{})})]})}function t4({interests:e,value:t,onChange:s,useModalLayout:a=!1}){let n=(0,l.useId)();return(0,i.jsx)(X.B,{gapSize:32,children:e.map(e=>{let l=`${n}-${e.key}-heading`;return(0,i.jsxs)(X.B,{role:"group","aria-labelledby":l,gapSize:16,children:[(0,i.jsx)("h3",{id:l,children:e.sectionTitle}),(0,i.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"10px"},children:e.sectionItems.map(l=>{let n=t?.shows?.includes(l.taxonomyPath),r=t?.topics?.includes(l.taxonomyPath),o="topics"===e.key;return(0,i.jsx)(t2,{caption:l.title,isSelected:n||r,onChange:()=>(function(e){let[i,l]=e,a={shows:t?.shows??[],topics:t?.topics??[]};a[i]?.includes(l)?a[i]=a?.[i]?.filter(e=>e!==l):a[i]=[...a?.[i],l],s(a)})([e.key,l.taxonomyPath]),imageUrl:l.imageUrl,captionOverImage:o,useModalLayout:a},l.taxonomyPath)})})]},e.key)})})}var t5=s(15670),t3=s(82961),t9=s(81256),t7=s(51802),t6=s(89528),t8=s.n(t6);function se({children:e,variant:t="primary"}){return(0,i.jsx)("div",{className:t8().buttonGroupContainer,children:(0,i.jsx)("div",{className:k()(t8().buttonGroup,t8()[t]),children:e})})}var st=s(37701),ss=s.n(st);let si=t7.Ik({title:t7.Yj(),data:t7.YO(t7.Ik({key:t7.k5(["shows","topics"]),header:t7.Yj(),items:t7.YO(t7.Ik({title:t7.Yj(),image:t7.Yj().optional(),taxonomyPath:t7.Yj()}))}))}),{publicRuntimeConfig:{SUBSCRIPTION_PREFERENCES_API_URL:sl}}=(0,_.Ay)();function sa({useModalLayout:e=!1,submitBtnText:t="Save",handleDone:s,handleSkip:a}){let n=(0,e4.hZ)(e=>e.user.user_id),r=(0,e4.hZ)(e=>e.updateContentInterests),o=(0,e4.hZ)(e=>e.fetchContentInterests),c=(0,e4.hZ)(e=>e.loading),[d,u]=(0,l.useState)(void 0),[p,_]=(0,l.useState)(!1),[h,y,m]=(0,te.U)(),g=(0,t9.A)(sl,(0,t5.G)(si),{revalidateOnMount:!0,revalidateIfStale:!0}),f=!!g.error,b=(0,t3.Ay)(n?["contentInterests",n]:null,o);if(g.isLoading||b.isLoading)return(0,i.jsx)("div",{"aria-busy":"true","aria-hidden":"false","aria-label":"Loading interests",children:(0,i.jsx)(V,{})});let x=d??b.data??{shows:[],topics:[]},v=async()=>{_(!1),m(!0);try{await r(x),(0,t3.Tk)(n?["contentInterests",n]:null,x,{revalidate:!1}),y(),s&&s()}catch{_(!0)}finally{m(!1)}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:k()(ss().container,{[ss().modal]:e}),children:[f&&(0,i.jsx)(tm.I,{message:"Interests could not be loaded at this time. Please try again later."}),p&&(0,i.jsx)(tm.I,{message:"Your interests could not be saved at this time. Please try again later."}),g.data?(0,i.jsx)(t4,{value:x,onChange:u,interests:g.data.data.map(e=>({key:e.key,sectionTitle:e.header,sectionItems:e.items.map(e=>({title:e.title,taxonomyPath:e.taxonomyPath,imageUrl:e.image}))})),useModalLayout:e}):null]}),(0,i.jsxs)(se,{variant:e?"form":"primary",children:[(0,i.jsx)(te.b,{title:t||"Save",disabled:c||!g.data,status:h,successMessage:"Saved",pendingMessage:"Saving",onClick:v,variant:e?"form":"primary"}),a&&(0,i.jsx)(e3.u,{onClick:a,variant:"block",children:"Skip"})]})]})}function sn(){return(0,i.jsx)(K,{showLoadingState:!1,title:"What are your interests?",subtitle:"We use this information to create experiences just for you.",children:(0,i.jsx)(sa,{})})}var sr=s(89099),so=s(15536),sc=s(71181),sd=s(47800),su=s(74455),sp=s(34598),s_=s(73307),sh=s.n(s_);let sy=({tabs:e=[],activeTab:t="all",onTabClick:s})=>(0,i.jsx)(ee.D,{className:sh().tabs,"data-testid":"feed-content-category-container",children:e.map(({type:e,text:l})=>(0,i.jsx)("button",{className:k()(sh().tab,{[sh().active]:t===e,active:t===e}),type:"button",onClick:()=>s(e),"data-testid":`feed-tab-${e}`,children:l},`feed-tab-${e}`))}),sm={type:"all",text:"All"},sg={showTimestamp:!0,showDek:!0,showEyebrow:!0,showTeaseImage:!0,showBrand:!1,showLoadMore:!0},sf=e=>({type:"article",id:e.id,item:{datePublished:e.datePublished,authors:[],nativeAd:e.nativeAd||!1,source:e.source,taxonomy:{primaryVertical:{name:"News"}}},computedValues:{headline:e.headline?.primary,dek:e.description?.primary,unibrow:e.unibrow,url:e.url?.primary,teaseImage:e.teaseImage,alternateTeaseImages:e.alternateTeaseImages},metadata:{}});var sb=s(3114),sx=s.n(sb);let sv=({topicTaxonomy:e=null})=>{let t=(0,a.wA)(),s=(0,sr.useRouter)(),{vertical:n}=(0,U.C)(),[r,o]=(0,l.useState)("all"),[c,d]=(0,l.useState)(null),u=(0,a.d4)(e=>e.profileFeed?.items??[]),p=(0,a.d4)(e=>e.profileFeed?.loading??!1),_=null!==c&&0===c.length;(0,l.useEffect)(()=>{let e=!0;return(0,sd.L6)().then(t=>{e&&d(t)}).catch(()=>{e&&d([])}),()=>{e=!1}},[]),(0,l.useEffect)(()=>{_&&s.replace("/profile/feed/edit")},[_,s]);let h=(0,l.useMemo)(()=>((e=[],t=[])=>{let s=new Set(t),i=(e??[]).flatMap(e=>{let t=(e?.topics??[]).map(e=>e?.value).filter(e=>e&&s.has(e));return t.length>0?[{type:((e="")=>e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""))(e.key||e.header),text:e.header,taxonomyPaths:t}]:[]});return[{...sm,taxonomyPaths:[...t]},...i]})(e?.data,c??[]),[e,c]);(0,l.useEffect)(()=>
1{null===c||_||t((0,sp.KR)({queryLimit:50,taxonomyPaths:((e,t=[])=>t.find(({type:t})=>t===e)?.taxonomyPaths??[])(r,h)}))},[t,r,h,c,_]);let y=((e=[])=>({id:"profile-feed",items:e.filter(e=>e&&e.id).slice(0,50).map(sf),metadata:{...sg}}))(u),m=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{let e=m.current&&!p;m.current=p,e&&!_&&null!==c&&(0,su.d5)("followTopicsFeedDisplayed",{feature:"follow-topics",tab:r,itemCount:y.items.length,vertical:n})},[p,_,c,r,y.items.length,n]),(0,i.jsx)(K,{gapSize:"s",title:"Following",activityMap:"my-news-feed",testId:"accounts-feed",className:"accounts__feed",showLoadingState:!1,rightHeaderContent:(0,i.jsx)(eh.A,{to:"/profile/feed/edit",className:sx().editButton,"data-testid":"feed-edit-button",children:"Edit"}),children:(0,i.jsxs)("div",{className:sx().content,children:[(0,i.jsx)(sy,{tabs:h,activeTab:r,onTabClick:e=>{o(e)}}),p||_?(0,i.jsx)(sc.t,{className:sx().loader}):(0,i.jsx)(so.y,{content:y,vertical:n,pkgClassName:"pkg feeds"})]})})};var sw=s(35216),sj=s(51537),sC=s.n(sj);function sN({category:e,followedTopics:t={},onToggleTopic:s=()=>{},onToggleCategory:l=()=>{}}){let{key:a,header:n,description:r,topics:o}=e,c=1===o.length,d=o.length>0&&o.every(e=>!!t[e.value]),u=d?"UNFOLLOW":"FOLLOW",p=c?u:`${u} ALL`;return(0,i.jsxs)("div",{"aria-labelledby":`${a}-heading`,className:sC().category,role:"group",children:[(0,i.jsxs)("div",{className:sC().categoryHeader,children:[(0,i.jsx)("h3",{className:sC().categoryTitle,id:`${a}-heading`,children:n}),(0,i.jsx)("button",{"aria-label":c?`${d?"Unfollow":"Follow"} ${n}`:void 0,"aria-pressed":d,className:sC().followAllButton,onClick:()=>l(o.map(e=>e.value),!d),type:"button",children:p})]}),(0,i.jsx)("p",{className:sC().categoryDescription,children:r}),!c&&(0,i.jsx)("div",{className:sC().pills,children:o.map(e=>(0,i.jsx)(sw.L,{followed:!!t[e.value],onToggle:t=>s(e.value,t),topic:e},e.value))})]})}let sI=JSON.parse('{"p":[{"key":"politics","header":"Politics","description":"The latest news and analysis on the 2024 presidential election, Congress, the White House, and more.","topics":[{"title":"Elections","type":"taxonomyPath","value":"nbcnews/topic/elections"},{"title":"Justice Department","type":"taxonomyPath","value":"nbcnews/topic/justice-department"},{"title":"Supreme Court","type":"taxonomyPath","value":"nbcnews/topic/supreme-court"},{"title":"National Security","type":"taxonomyPath","value":"nbcnews/topic/national-security"},{"title":"White House","type":"taxonomyPath","value":"nbcnews/topic/white-house"},{"title":"Congress","type":"taxonomyPath","value":"nbcnews/topic/congress"}]},{"key":"us-news","header":"U.S. News","description":"Stay updated on major stories across the country, from courts to classrooms.","topics":[{"title":"Crime & Courts","type":"taxonomyPath","value":"nbcnews/topic/crime-and-courts"},{"title":"Immigration","type":"taxonomyPath","value":"nbcnews/topic/immigration"},{"title":"Education","type":"taxonomyPath","value":"nbcnews/topic/education"}]},{"key":"world","header":"World","description":"Get global headlines on conflicts, diplomacy and events beyond the U.S.","topics":[{"title":"Middle East","type":"taxonomyPath","value":"nbcnews/topic/middle-east"},{"title":"Europe","type":"taxonomyPath","value":"nbcnews/topic/europe"},{"title":"Asia","type":"taxonomyPath","value":"nbcnews/topic/asia"},{"title":"China","type":"taxonomyPath","value":"nbcnews/topic/china"},{"title":"Iran","type":"taxonomyPath","value":"nbcnews/topic/iran"}]},{"key":"business-technology","header":"Business & Technology","description":"Track markets, media, AI and the forces changing work, money and innovation.","topics":[{"title":"Markets","type":"taxonomyPath","value":"nbcnews/topic/markets"},{"title":"Media","type":"taxonomyPath","value":"nbcnews/topic/media"},{"title":"Economy","type":"taxonomyPath","value":"nbcnews/topic/economy"},{"title":"Tech News","type":"taxonomyPath","value":"nbcnews/topic/tech-news"},{"title":"Artificial Intelligence","type":"taxonomyPath","value":"nbcnews/topic/artificial-intelligence"}]},{"key":"culture-trends","header":"Culture & Trends","description":"Catch up on entertainment, pop culture and the moments everyone is talking about.","to
1pics":[{"title":"Pop Culture","type":"taxonomyPath","value":"nbcnews/topic/pop-culture"},{"title":"Music","type":"taxonomyPath","value":"nbcnews/topic/music"},{"title":"TV","type":"taxonomyPath","value":"nbcnews/topic/tv"},{"title":"Movies","type":"taxonomyPath","value":"nbcnews/topic/movies"},{"title":"Celebrity","type":"taxonomyPath","value":"nbcnews/topic/celebrity"}]},{"key":"sports","header":"Sports","description":"Follow the biggest games, athletes, storylines and moments across the sports world.","topics":[{"title":"Sports","type":"taxonomyPath","value":"nbcnews/topic/sports"}]},{"key":"science","header":"Science","description":"Explore discoveries, space, climate and research changing how we understand the world.","topics":[{"title":"Space","type":"taxonomyPath","value":"nbcnews/topic/space"},{"title":"Climate","type":"taxonomyPath","value":"nbcnews/topic/climate"},{"title":"Environment","type":"taxonomyPath","value":"nbcnews/topic/environment"}]},{"key":"health","header":"Health","description":"Get the latest on medical news, public health and everyday ways to stay well.","topics":[{"title":"Health News","type":"taxonomyPath","value":"nbcnews/topic/health-news"},{"title":"Mental Health","type":"taxonomyPath","value":"nbcnews/topic/mental-health"},{"title":"Wellness","type":"taxonomyPath","value":"nbcnews/topic/wellness"}]}]}');var sS=s(35884),sA=s.n(sS);function sk({categories:e=sI.p,followedTopics:t={},onToggleTopic:s=()=>{},onToggleCategory:l=()=>{}}){return(0,i.jsx)("div",{className:sA().grid,"data-testid":"topics-grid-section",children:e.map(e=>(0,i.jsx)(sN,{category:e,followedTopics:t,onToggleTopic:s,onToggleCategory:l},e.key))})}var sM=s(25420),sT=s(92211),sB=s(71637),sD=s.n(sB);function sW({topicTaxonomy:e=null}){let t=e?.data??[],{followedTopics:s,toggleTopic:a,toggleCategory:n}=(0,sT.O)(),r=Object.values(s).some(Boolean),[o,c]=(0,l.useState)(0);return(0,i.jsxs)(K,{title:"Edit Following",className:sD().editFeed,description:"Tap a topic to add it to your followed topics, which will show in your feed.",showLoadingState:!1,activityMap:"account-edit-feed",testId:"accounts-edit-feed",gapSize:24,rightHeaderContent:(0,i.jsx)("div",{className:sD().headerActions,children:r?(0,i.jsx)(eh.A,{to:"/profile/feed",className:sD().doneEditing,"data-testid":"edit-feed-done-button",children:"Back to Feed"}):(0,i.jsx)("button",{type:"button",className:sD().doneEditing,"data-testid":"edit-feed-done-button",disabled:!0,children:"Back to Feed"})}),children:[(0,i.jsx)("hr",{className:sD().divider}),(0,i.jsx)("div",{className:sD().sections,children:t.length>0&&(0,i.jsx)(sk,{categories:t,followedTopics:s,onToggleTopic:(e,t)=>{a(e,t).then(e=>{e&&c(e=>e+1)})},onToggleCategory:(e,t)=>{n(e,t).then(e=>{e&&c(e=>e+1)})}})}),(0,i.jsxs)(sM.y,{href:"/profile/feed",position:"responsive",trigger:o,children:[(0,i.jsx)("span",{"aria-hidden":"true",className:sD().toastCheckIcon}),"Selection saved"]})]})}var sP=s(80909);let sL=JSON.parse('{"DD":"Stay informed, your way","wM":{"DD":"Start free, upgrade anytime.","h_":"Create a free NBCUniversal Profile","PX":["Listen to articles","Save stories and videos","Get local news and weather","Receive NBC News newsletters"]},"ar":{"Bt":"Subscribe to unlock an exclusive NBC News experience","JL":"Paid NBC News Subscription","jc":"Subscribe to unlock an exclusive NBC News experience","PX":["Full access to exclusive articles and videos","Subscriber-only Q&As and newsletters","Full episodes of Nightly News, Dateline and Meet the Press on demand"]},"Kk":"https://media-cldnry.s-nbcnews.com/image/upload/rockcms/2025-12/Checkmark-c2be83.svg","Bz":"checkmark","yX":"Learn More","YY":"https://www.nbcnews.com/subscribe","NM":"NBC News subscription information","b8":"https://media-cldnry.s-nbcnews.com/image/upload/rockcms/2025-12/NBC-NEWSPR-Social-Graphic-120225PHONES-ONLY-1-31c290.png"}');var sO=s(73205),sG=s.n(sO);let sY=({children:e})=>{let t=(0,a.wA)();return(0,l.useEffect)(()=>{t((0,sP.Yl)(n.T.VERTICAL))},[]),(0,i.jsxs)("div",{className:sG().accountLandingPage,"data-testid":"account-auth-landing-page",children:[(0,i.jsxs)("div",{className:sG().gridWrapper,children:[(0,i.jsx)("h1",{className:sG().title,children:sL.DD}),(0,i.jsx)("h2",{className:sG().subTitle,children:sL.wM.DD}),(0,i.jsx)("p",{className:sG().description,children:sL.wM.h_}),(0,i.jsx)("ul",{className:sG().list,children:sL.wM.PX.map(e=>(0,i.jsxs)("li",{className:sG().item,children:[(0,i.jsx)("img",{src:sL.Kk,alt:sL.Bz,className:sG().icon}),e]}))}),(0,i.jsx)("div",{className:sG().border})]}),(0,i.jsx)("div",{className:sG().formWrapper,children:e}),(0,i.jsxs)("div",{className:sG().gridWrapper,children:[(0,i.jsx)("h2",{className:sG().mobileTitle,children:sL.ar.Bt}),(0,i.jsx)("p",{className:sG().mobileDescription,children:sL.ar.JL}),(0,i.jsx)("p",{className:sG().desktopDescription,children:sL.ar.jc}),(0,i.jsx)("a",{href:sL.YY,className:sG().link,children:sL.yX}),(0,i.jsx)("ul",{className:sG().list,children:sL.ar.PX.map(e=>(0,i.jsxs)("li",{className:sG().item,children:[(0,i.jsx)("img",{src:sL.Kk,alt:sL.Bz,className:sG().icon}),e]}))})]}),(0,i.jsx)("img",{src:sL.b8,alt:sL.NM,className:sG().image})]})};sY.propTypes={children:P.Y_};let sE=JSON.parse('{"m":[{"iconClass":"icon-recipe","text":"<strong>Access all of our recipes</strong>, exclusive content, games and more."},{"iconClass":"icon-shopping","text":"<strong>Get exclusive discounts</strong> and promo codes for all your favorite brands and products."},{"iconClass":"icon-alert","text":"<strong>Stay up to date on the latest</strong> from the TODAY show with our top newsletters."},{"iconClass":"icon-save-filled","text":"<strong>Quickly access and save your favorite recipes</strong>, articles, and workout tips."},{"iconClass":"icon-user","text":"See all of your favorite content in one place on your <strong>personalized dashboard.</strong>"}
1]}');var sR=s(75591),sZ=s.n(sR);let sU=({children:e})=>(0,i.jsx)("div",{className:sZ().container,"data-testid":"account-auth-landing-page",children:(0,i.jsx)("div",{className:sZ().screenContent,children:(0,i.jsxs)("div",{className:sZ().wrapperLandingPage,children:[(0,i.jsxs)("div",{className:sZ().info,children:[(0,i.jsx)("h3",{children:"Enjoy these direct perks when you sign up today for a free TODAY profile."}),(0,i.jsx)("ul",{className:sZ().perks,children:sE.m?.map(e=>(0,i.jsxs)("li",{className:sZ().perk,children:[(0,i.jsx)("span",{className:`icon ${e.iconClass}`}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}})]}))})]}),e]})})});sU.propTypes={children:P.Y_};let sz=({children:e})=>{let{isNews:t,isToday:s}=(0,e_.Cn)();return t?(0,i.jsx)(sY,{children:e}):s?(0,i.jsx)(sU,{children:e}):null};sz.propTypes={children:P.Y_};var sF=s(98230),sV=s(867),sX=s(61669),sH=s.n(sX);let s$=()=>null;function sK({pageType:e,isProfileRoot:t=!1,filterType:s,profileMenu:a=null,topicTaxonomy:n=null}){let r=(0,f.hZ)(e=>e.userSignout),o=(0,f.hZ)(e=>e.setEntryScreen),c=(0,f.hZ)(e=>e.showGate),{startToday:d,nbcNews:u}=(0,f.hZ)(e=>e.subscriptions),p=(0,f.hZ)(e=>e.screen),_=(0,f.hZ)(e=>e.authenticationState),h=(0,f.hZ)(e=>e.waitForSubscriptionsAfterCheckout),y=(0,f.hZ)(e=>e.user.user_id),{isNews:m,isToday:g}=(0,e_.Cn)(),b=(0,sF.H)(),{registrationSource:x}=(0,eV.o)(),v=g&&b,{"account-history":w,"follow-topics":j}=(0,Z.Jp)(),N=g&&d||m&&u,I=m&&j,S=("history"!==e||w)&&("subscription"!==e||N)&&("preferences"!==e||u)&&("feed"!==e||I)&&("editFeed"!==e||I)?e:"saved";(0,l.useEffect)(()=>{if("history"===e&&!w||"feed"===e&&!I||"editFeed"===e&&!I||"subscription"===e&&!N&&_===C.K_||"preferences"===e&&!u&&_===C.K_){let e=(0,et.iG)(void 0);window.history.replaceState({},"",(0,et.B$)("/profile/saved",e))}},[e,_,N,u,I,w]),(0,l.useEffect)(()=>(o(t||(0,et.KO)(x)?tf.cq.REGISTER:tf.cq.LOGIN),()=>o(tf.cq.REGISTER)),[t,x,o]);let A=s$;switch(S){case"dashboard":A=R;break;case"saved":A=eR;break;case"history":A=eU;break;case"subscription":N&&(A=tJ);break;case"newsletters":A=tp;break;case"profile":A=tH;break;case"preferences":u&&(A=sn);break;case"feed":I&&(A=sv);break;case"editFeed":I&&(A=sW)}let[M,T]=(0,l.useState)(""),[D,W]=(0,l.useState)(null);if((0,l.useEffect)(()=>{let e=new URLSearchParams(window.location?.search).get("registrationSource");e&&W(e);let t=(0,sV.z)();t&&T(t.pathname)},[]),(0,l.useEffect)(()=>{M&&tf.gg.includes(p)&&(window.location.href=M)},[p,M]),(0,l.useEffect)(()=>{let e=null;try{e=JSON.parse(window.localStorage.getItem("piano_checkout_completed")||"null")}catch(t){e=null}let t=e?.ts||0,s=e?.userId||null,i=t&&Date.now()-t<18e5,l=s&&y&&s===y;i&&l&&_===C.K_&&h()},[_,h,y]),(0,l.useEffect)(()=>{M&&_===C.K_&&(window.location.href=M)},[M,_]),_===C.UP)return(0,i.jsx)(B,{});let P=(0,et.KO)(D)&&tf.gg.includes(p),L=!!M&&_!==C.K_;return c||P||L?(0,i.jsx)(sz,{children:(0,i.jsx)(ez._,{backBtn:"center",showSuccessScreen:!M,className:"account--auth--landing-page",registrationSource:D})}):(0,i.jsxs)("div",{className:`${sH().account} account__container`,"data-testid":"account-page-selector",children:[(0,i.jsx)(eQ,{pageType:S,onSignout:r,profileMenu:a}),(0,i.jsxs)("div",{className:k()(sH().mainContent,v&&sH().mainContentWithReturn),children:[v&&(0,i.jsx)(e2,{label:b.label,href:b.href}),(0,i.jsx)(A,{filterType:s,topicTaxonomy:n})]})]})}var sq=s(42340);s(45361),s(64712);var sJ=s(41201),sQ=s.n(sJ);let s0="front",s1={theme:()=>n.T.LIGHT},s2=({vertical:e,isChromeless:t=!1,layout:s,statusCode:a,filterType:n,pageType:r,isProfileRoot:o=!1,profileMenu:c=null,topicTaxonomy:u=null})=>{let p,_=(0,f.hZ)(e=>e.authenticationState),h=(0,f.hZ)(e=>e.fetchUserProfile),y=(0,I.getDisplayNameForVertical)(e);if((0,l.useEffect)(()=>{_===C.K_&&h((0,b.Ri)("access_token"))},[_,h]),parseInt(a,10)>=400)return(0,i.jsx)(sq.default,{statusCode:404===a?404:500,vertical:e,layout:s});let m=(0,i.jsx)(j.t,{errorHandler:()=>(0,i.jsx)(sq.default,{statusCode:500,layout:s}),children:(0,i.jsx)(sK,{pageType:r,isProfileRoot:o,filterType:n,profileMenu:c,topicTaxonomy:u})}),g=t?m:(0,i.jsx)(x.q,{layout:s,adsDisabledByParentComponent:!0,children:m});switch(r){case"saved":p="Saved | ";break;case"history":p="History | ";break;case"newsletters":p="Manage Newsletters | ";break;case"profile":p="Edit Profile | ";break;case"subscription":p="Subscription | ";break;case"preferences":p="Edit Preferences | ";break;case"feed":p="Following | ";break;case"editFeed":p="Edit Your Feed | ";break;default:p=""}return(0,i.jsxs)("div",{id:"content","data-testid":"my-news-page",className:sQ().container,children:[(0,i.jsx)(v.W,{vertical:e,pageType:"myNews"}),(0,i.jsx)(d(),{children:(0,i.jsx)("title",{children:`${p}${y}`})}),(0,i.jsx)(N.ze,{hidden:!0}),g,(0,i.jsx)(w.I,{}),(0,i.jsx)(S.w,{})]})};s2.getInitialProps=async e=>{let{store:t,req:{params:{filterType:s}={}},res:{locals:{logger:i}={}}={},query:l}=e,{pageType:a,vertical:n}
1=l,r="true"===l.isProfileRoot,o=[t.dispatch((0,u.r3)(s0)),t.dispatch((0,u.c4)("account"))];"dashboard"===a&&o.push(t.dispatch((0,p.wH)(n,"account"))),await Promise.all(o);let c=await y(n),d="feed"===a||"editFeed"===a?await (0,m.v)(i):null,_=t.getState().myNews;return{pageView:s0,statusCode:_?.error?.status??200,filterType:s,pageType:a,isProfileRoot:r,profileMenu:c,topicTaxonomy:d}},s2.propTypes={vertical:o().string.isRequired,isChromeless:o().bool,layout:g.Z.isRequired,statusCode:o().number.isRequired,filterType:o().string.isRequired,pageType:o().string.isRequired,isProfileRoot:o().bool,profileMenu:o().objectOf(o().any),topicTaxonomy:o().objectOf(o().any)};let s4=(0,n.v)(s1)((0,a.Ng)(({shared:e})=>({isChromeless:e.isChromeless}))(s2))}},e=>{e.O(0,[7319,3364,2945,7929,9e3,5728,3006,6469,7691,8183,6666,2954,129,5780,4232,1684,4646,2842,1082,4881,6693,7970,643,6365,2874,8254,450,1648,8322,8844,7304,9753,6825,4404,3669,636,8974,8792],()=>e(e.s=58347)),_N_E=e.O()}]);
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.