PageSourceSearch

https://www.gaia.com/assets/2.267.9/index.G3RecWCA.js

js gaia.com collected 2026-10-01 09:06:57 UTC 7,011 bytes, 2 lines download raw bytes

1import{a as e,_ as t,bK as a,D as o,r as s,R as n,bL as i,bM as r,bN as u,bO as c,bP as l,bQ as g,f as d,aq as p,bR as h,aG as f,bS as y,b as m,bT as b,m as P,s as C,bU as k,bV as j,bW as w,aj as L,c as O,g as q,P as D,i as I}from"./index.BRp5kj-w.js";import{a as R,c as S,g as E,at as v,M,I as T,J as x,W as Q,a$ as A,b0 as F,U as $,c1 as z,a3 as _,c2 as W,c3 as J,c4 as N,c5 as K,bY as U,Z as Y}from"./main.BuRnQBwN.js";import{c as G,a as V}from"./connect.CPvX1Tel.js";import{u as Z}from"./useLazyQuery.4assJRkw.js";import"./staticTextEn.D6WYEa6V.js";import"./staticTextEs.Dnr1pprf.js";import"./staticTextDe.D946bWlw.js";import"./staticTextFr.Dw7JJU6I.js";import"./useQuery.Cn4xBt2S.js";import"./useWarnRemovedOption.IiSGgR8Y.js";import"./useIsomorphicLayoutEffect.34qHIEGO.js";function B(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function H(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},o=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(a).filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),o.forEach(function(t){B(e,t,a[t])})}return e}function X(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}const ee=O(),te=!!t(ee,["features","gift","checkout"]),ae=$(),oe=t(q,["location","hostname"],"www.gaia.com"),se=new RegExp(`^https?://${oe}/?`,"i");function ne(t,a){const{history:o,auth:s,user:n=e.Map()}=t,i=n.getIn(["data","language"]);if(k(a))return se.test(a)?void(window.location.href=a):void _({url:"/",language:i,history:o,auth:s});_({language:i,history:o,auth:s,url:a})}function ie(a){const{location:s,inboundTracking:n,sku:i,graphQLPlanData:k,graphQLPlanDataLoading:O}=a,q=t(s,["query","url"]),D=t(s,["query","playlistAdd"]),I=t(s,["query","playlistCreate"]),R=t(s,["query","remoteLoginCode"]);n.get("initialized")&&!n.get("processing")&&n.get("data")&&(i?function(t={}){const{props:a,graphQLPlanData:s,graphQLPlanDataLoading:n}=t;if(!s||n)return;const{sku:i}=t,{setCheckoutPlanPreSelected:m,userAccount:b,history:P,auth:C,setPageSeo:k,location:j,user:w=e.Map(),setPlansSelection:L}
1=a,O=/\s/g,q=z(i),D=w.getIn(["data","language"]),I=w.getIn(["data","requestCountry"]),R=q===z(u),S=[J,N,K];if(c(i)){const e=`${l}/${q}`,t=r({pathname:e,loggedIn:!!C.get("jwt")});return _({url:te?e:g,language:D,history:P,auth:C}),void k({title:t.title,description:t.description,noFollow:t.noFollow,noIndex:t.noIndex,location:j})}if(s.size){const t=s.find(e=>d(e.get("sku"),O,"").toLowerCase()===q);if(o(C)){if(0===b.getIn(["details","data","billing","subscriptions"],e.Map()).size)return;if(W({userAccount:b}))return void _({url:`${p}?sku=${i}`,language:D,history:P,auth:C})}const a=t;return R&&!h(S,I)?void _({url:f,language:D,history:P,auth:C}):e.Map.isMap(a)&&a.size&&a.get("checkoutEnabled")?(L(a),m(!0),void _({url:y,language:D,history:P,auth:C})):void _({url:f,language:D,history:P,auth:C})}_({url:f,language:D,history:P,auth:C})}({props:a,sku:i,graphQLPlanData:k,graphQLPlanDataLoading:O}):D?function(e,a,s){const{auth:n,location:i,batchPlaylistItems:r}=e,u=t(i,["query","login"]);if(!o(n)){if(!window)return;return void(void 0===u&&(window.location.href=`${window.location.href}&login=true`))}ne(e,`${s||"/"}`);const c=m(b(a,","),P);0!==C(c)&&r({ids:c,type:"default",add:!0})}(a,D,q):q?ne(a,q):I?(e=>{const{auth:a,location:s,createCustomPlaylistFromDeeplink:n,language:i,history:r}=e,u=t(s,["query"]),{contentIds:c,playlistCreate:l}=u;o(a)?n({name:l,contentIds:c}):_({url:j,language:i,history:r,auth:a,query:u})})(a):R?async function(a={}){const{props:o,remoteLoginCode:s}=a,{doConsumeRemoteLoginCode:n,remoteLoginCode:i,location:r={},history:u,auth:c,user:l=e.Map()}=o,g=l.getIn(["data","language"]),d=i.getIn([U]),p=t(r,["query","redirectTo"],null)||null;if(s){if(!d)try{const{success:e}=await n({remoteLoginCode:s});ne(o,e?p||L:w)}catch(h){_({language:g,history:u,auth:c,url:w})}}else _({language:g,history:u,auth:c,url:w})}({props:a,remoteLoginCode:R}):ne(a,"/"))}function re(u){const{userAccount:c,user:l,auth:g,location:d}=u,p=t(d,["query","sku"],""),h=ae?t(d,["query","discountCode"],""):"",f=a(p),y=g.get("jwt"),m=o(g),b=v(l.getIn(["data","language"])),P=c.getIn(["details","data","billing","subscriptions"],e.Map())||e.Map();let C=!0;const[k,j]=s.useState(b),[w,{data:L,loading:O}]=Z(M),q=e.fromJS(T(L));!m||e.Map.isMap(P)&&P.size||(C=!1);const{setCheckoutDiscountCode:D,setCheckoutDiscountEligibility:I}=u;s.useEffect(()=>{h&&D(h)},[h,D]),s.useEffect(()=>{p&&C&&(!L&&!O||b!==k)&&w({variables:x({language:b,skus:[f],discountCode:h}),context:{jwt:y}})},[C,m,b,h]),s.useEffect(()=>{if(L&&!O&&h){const e=Q(L,f);e&&I(e)}},[L,O,h,f,I]),s.useEffect(()=>{!function(e){const{page:t,auth:a,location:o,setPageSeo:s}=e,n=o.pathname+i(o.search||"");if(t.get("path")===n)return;const u=r({pathname:o.pathname,loggedIn:!!a.get("jwt")});s({title:u.title,description:u.description,noFollow:u.noFollow,noIndex:u.noIndex,location:o})}(u),ie(X(H({},u),{sku:f}))},[]),s.useEffect(()=>{L&&!O&&ie(X(H({},u),{sku:f,graphQLPlanData:q,graphQLPlanDataLoading:O}))}),s.useEffect(()=>{j(b)},[b]);const{staticText:R}=u;return n.createElement("div",{className:"go-page"},n.createElement(A,{type:F}),n.createElement("p",{className:"go-page__message"},R.getIn(["data","oneMomentPleaseWeAreLocatingYourPath"])))}re.propTypes={inboundTracking:Y.map.isRequired,userAccount:Y.map.isRequired,page:Y.map.isRequired,auth:Y.map.isRequired,user:Y.map.isRequired,location:D.object.isRequired,setPageSeo:D.func.isRequired,history:D.object.isRequired,doConsumeRemoteLoginCode:D.func.isRequired,setCheckoutPlanPreSelected:D.func.isRequired,setPlansSelection:D.func.isRequired,setCheckoutDiscountCode:D.func.isRequired,setCheckoutDiscountEligibility:D.func.isRequired};const ue=R(S(t=>({staticText:t.staticText.getIn(["data","goPage"]),inboundTracking:t.inboundTracking,userAccount:t.userAccount,auth:t.auth,user:t.user,page:t.page,remoteLoginCode:t.remoteLoginCode||e.Map()}),e=>{const t=E(e);return{setPlansSelection:t.plans.setPlansSelection,batchPlaylistItems:t.playlist.batchPlaylistItems,setPageSeo:t.page.setPageSeo,createCustomPlaylistFromDeeplink:t.playlist.createCustomPlaylistFromDeeplink,doConsumeRemoteLoginCode:t.remoteLoginCode.doConsumeRemoteLoginCode,setCheckoutPlanPreSelected:t.checkout.setCheckoutPlanPreSelected,setCheckoutDiscountCode:t.checkout.setCheckoutDiscountCode,setCheckoutDiscountEligibility:t.checkout.setCheckoutDiscountEligibility}}),G({seoType:V}))(re),ce=I(Object.freeze(Object.defineProperty({__proto__:null,default:ue},Symbol.toStringTag,{value:"Module"})));export{ce as default};
2//# sourceMappingURL=index.G3RecWCA.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.