PageSourceSearch

https://www.gaia.com/assets/2.266.7/index.BlG17s0o.js

js gaia.com collected 2026-09-24 08:38:18 UTC 9,705 bytes, 2 lines download raw bytes

1import{c as e,a as t,r as a,F as n,R as i,ap as r,aq as s,i as o}from"./index.Dcq7Tn10.js";import{d as c}from"./index.BUrmHmYl.js";import{g as l,o as m,p as _,aJ as g,aK as f,aL as d,ai as E,aM as u}from"./main.BpO2XlP_.js";import{r as p,N,b as y}from"./useCircleDrawer.o4LI6y0i.js";import{V as I,N as b}from"./index.CdPY0Ljz.js";import{N as D,B as M,a as O,b as v}from"./NotificationsFollowButton.N9zduadi.js";import"./staticTextEn.UPMVf61n.js";import"./staticTextEs.DJF2PufX.js";import"./staticTextDe.DGaNPAXM.js";import"./staticTextFr.CRVsglAw.js";import"./useHistory.CiRcRjQx.js";import"./index.D5e9EDSc.js";import"./withIcon.DvSZpKgo.js";function h(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function R(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),n.forEach(function(t){h(e,t,a[t])})}return e}function T(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}),e}function x(e){const a=e.getIn(["node","series"],t.Map());let n={notification_type:e.get("type"),content_id:e.get("contentId"),content_type:e.get("contentType"),content_name:e.getIn(["node","title"]),media_id:e.getIn(["node","feature","nid"]),media_language:e.getIn(["node","language"]),is_featured_media:!0,ui_location:"Notifications List Page"};return t.Map.isMap(a)&&a.size>0&&(n=T(R({},n),{parent_series_name:a.get("title"),parent_series_id:a.get("nid")})),n}function j({notificationsProcessing:e=!1,rows:a=t.List(),buildCircleTo:n=e=>`/?circle=${e}`}){return e?i.createElement(g,{type:f}):a.isEmpty()?null:a.map((e=t.Map())=>{switch(e.get("type")){case d.ACCOUNT_FOLLOWED:case d.MEMBER_FOLLOWING:return function(e){const t=e.get("id"),a=`${c.format(e.get("startDate",""),"MMMM")} ${c.format(e.get("startDate",""),"DD")}, ${c.format(e.get("startDate",""),"YYYY")}`,n=e.getIn(["member","image"],""),r=e.getIn(["member","title"],""),s=e.getIn(["member","url"],""),o=e.getIn(["node","type"]),l=e.get("label",""),m=n?i.createElement("img",{className:"notif-center__item-img",alt:r,src:n}):null;return i.createElement("li",{className:"notif-center__item notif-center__item--member",key:t},s?i.createElement(E,{className:n?"notif-center__item-hero":"notif-center__item-hero notif-center__no-avatar",to:s,"data-id":t},m):i.createElement("div",{className:n?"notif-center__item-hero":"notif-center__item-hero notif-center__no-avatar"},m),i.createElement("div",{className:"notif-center__item-body"},i.createElement("div",{className:"notifications-menu__item-label"},l),i.createElement("div",{className:"notif-center__item-message"},s?i.createElement(E,{to:s,"data-id":t},r):i.createElement("span",null,r)),i.createElement("div",{className:"notif-center__item-date"},a),"product_series"===o?i.createElement(O,{type:v.PRIMARY_SMALL,contentId:e.get("contentId"),subscriptionType:u.SERIES,uiLocation:"Notification List Page"}):null))}(e);case d.SUBSCRIPTION_NEW_EPISODE:case d.SUBSCRIPTION_NEW_SEASON:return function(e){const t=e.get("id"),a=`${c.format(e.get("startDate",""),"MMMM")} ${c.format(e.get("startDate",""),"DD")}, ${c.format(e.get("startDate",""),"YYYY")}`,n=e.get("label",""),o=e.getIn(["node","keyart_16x9_withtext","keyart_304x171"],""),l=e.getIn(["node","path"],""),m=e.getIn(["node","title"],""),_=e.getIn(["node","series","title"],""),g=e.getIn(["node","series","path"],""),f=x(e),d=s.mergeDeep(T(R({},f),{ui_element:"Notification"})),u=r.mergeDeep(T(R({},f),{ui_element:"Title"})),p=r.mergeDeep(T(R({},f),{ui_element:"Thumbnail"}));return i.createElement("li",{className:"notif-center__item",key:t},i.createElement(E,{className:"notif-center__item-hero",to:l,"data-id":t,ga4EventData:p},i.createElement("img",{className:"notif-center__item-img",src:o,alt:""})),i.createElement("div",{className:"notif-center__item-body"},i.createElement("div",{className:"notif-center__item-label-wrapper"},i.createElement("div",{className:"notif-center__item-label"},n)),i.createElement("div",{className:"notif-center__item-context"},i.createElement(E,{to:g,"data-id":t,ga4EventData:u},_)),i.createElement("div",{className:"notif-center__item-message"},i.createElement(E,{className:"notif-center__item-series",to:l,"data-id":t,ga4EventData:u},m)),i.createElement("div",{className:"notif-center__item-date"},a),i.createElement(E,{className:"notif-center__item-watch",to:`${l}?fullplayer=feature`,"data-id":t,ga4EventData:d},i.createElement(N,null))))}(e);case d.MEMBER_RECOMMENDATION:case d.SUBSCRIPTION_RECOMMENDATION:case d.GENERAL_RECOMMENDATION:return function(e){const t=e.get("id"),a=`${c.format(e.get("startDate",""),"MMMM")} ${c.format(e.get("startDate",""),"DD")}, ${c.format(e.get("startDate",""),"YYYY")}`,n=e.get("label",""),o=e.getIn(["node","keyart_16x9_withtext","keyart_304x171"],""),l=e.getIn(["node","path"],""),m=e.getIn(["node","title"],""),_=e.getIn(["node","type"]),g=x(e),f=s.mergeDeep(T(R({},g),{ui_element:"Notification"})),d=r.mergeDeep(T(R({},g),{ui_element:"Title"}));return i.createElement("li",{className:"notif-center__item",key:t},i.createElement(E,{className:"notif-center__item-hero",to:l,"data-id":t,ga4EventData:d},i.createElement("img",{className:"notif-center__item-img",src:o,alt:""})),i.createElement("div",{className:"notif-center__item-body"},i.createElement("div",{className:"notif-center__item-context"},n),i.createElement("div",{className:"notif-center__item-message"},i.createElement(E,{to:l,"data-id":t,ga4EventData:d},m)),i.createElement("div",{className:"notif-center__item-date"},a),"product_series"===_?i.createElement(O,{type:v.PRIMARY_SMALL,contentId:e.get("
1contentId"),subscriptionType:u.SERIES,uiLocation:"Notification List Page"}):null,"product_series"!==_?i.createElement(E,{className:"notifications-menu__item-watch",to:`${l}?fullplayer=feature`,"data-id":t,ga4EventData:f},i.createElement(N,null)):null))}(e);case d.MEMBER_FREE_FORM:case d.SUBSCRIPTION_FREE_FORM:case d.GENERAL_NEW_FEATURE:case d.GENERAL_FREE_FORM:case d.COMMENT_REJECTED:case d.CIRCLE_NEW_MESSAGE:case d.CIRCLE_OPENED:case d.CIRCLE_INVITE:return function(e){const a=e.get("id"),n=`${c.format(e.get("startDate",""),"MMMM")} ${c.format(e.get("startDate",""),"DD")}, ${c.format(e.get("startDate",""),"YYYY")}`,s=e.get("message",""),o=e.get("links",t.List()).find(e=>"WEB"===e.get("type")),l=o&&o.get("external")?"_blank":"_self",m=e.getIn(["node","keyart_16x9_withtext","keyart_304x171"],""),_=e.getIn(["node","path"],""),g=e.get("reason"),f=e.get("label"),d=r.mergeDeep(x(e));return i.createElement("li",{className:"notif-center__item",key:a},m?i.createElement(E,{className:"notif-center__item-hero",to:_,"data-id":a,ga4EventData:d},i.createElement("img",{className:"notif-center__item-img",src:m,alt:""})):i.createElement("div",{className:"notif-center__item-bell"},i.createElement(D,{type:M.STROKE_HEAVY,fill:"#44576B",size:50})),i.createElement("div",{className:"notif-center__item-body"},f&&!m?i.createElement("div",{className:"notifications-menu__item-label"},f):null,m?i.createElement("div",{className:"notifications-menu__item-context"},g):null,i.createElement("div",{className:"notif-center__item-message"},o?i.createElement(E,{to:o.get("path"),"data-id":a,target:l,ga4EventData:d},s):s),i.createElement("div",{className:"notif-center__item-date"},n)))}(p(e,n));default:return null}})}let S=class extends a.Component{componentDidMount(){const{props:e}=this,{auth:t,getNotifications:a}=e;n(t)&&a()}componentDidUpdate(e){const{props:t}=this,{auth:a,userLanguage:i,getNotifications:r}=t,{userLanguage:s}=e;i!==s&&n(a)&&r()}componentWillUnmount(){const{props:e}=this,{auth:t,clearNotifications:a}=e;n(t)&&a()}render(){const{props:e}=this,{auth:a,location:r,processing:s,staticText:o,notifications:c,query:l}=e;if(!n(a))return null;c.isEmpty();const g=c.get("rows",t.List());return i.createElement("div",{className:"notif-center__grid notif-center"},i.createElement(I,{location:r,navType:b}),i.createElement("div",{className:"notif-center__content-box notif-center__main"},i.createElement(m,{as:_.H4,className:"notif-center__header"},o.getIn(["data","allNotifications"])),i.createElement("div",{className:"notif-center__pagination-title"},function(e,a,n){const i=e.get("p",1),r=e.get("pp",10),s=e.get("total",10),o=e.get("rows",t.List());if(a||o.size<1)return null;const c=i>1?i*r+1:1,l=s<r?s:r;return`${n.getIn(["data","showing"])} ${c}-${l} ${n.getIn(["data","of"])} ${s}`}(c,s,o)),i.createElement("ul",{className:"notif-center__list"},j({rows:g,buildCircleTo:e=>y(r&&r.pathname||"/",l&&l.toJS?l.toJS():{},e)}))))}};const L=e(e=>({auth:e.auth,userLanguage:e.user.getIn(["data","language",0],"en"),processing:e.notifications.getIn(["user","processing"]),notifications:e.notifications.getIn(["user","data"],t.Map()),query:e.resolver.get("query"),staticText:e.staticText.getIn(["data","notificationsCenterAll"],t.Map()),staticTextMenu:e.staticText.getIn(["data","notificationsMenu"],t.Map()),isWebView:e.app.get("isWebView",!1)}),e=>{const t=l(e);return{getNotifications:t.notifications.getNotifications,clearNotifications:t.notifications.clearNotifications}})(S),w=o(Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"})));export{w as default};
2//# sourceMappingURL=index.BlG17s0o.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.