PageSourceSearch

https://psychedelic.support/component---src-components-wp-single-js-deabcdaa17e2401de905.js

js psychedelic.support collected 2026-09-24 10:33:39 UTC 6,490 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkpsysup=self.webpackChunkpsysup||[]).push([[321],{35941:function(e,t,a){a.d(t,{w:function(){return i}});var l=a(67294),n=a(67814),r=a(9398);const i=e=>l.createElement("div",null,!0===e.display&&l.createElement("div",{onClick:e.cb,className:"tap-unmute cursor-pointer"},l.createElement(n.G,{icon:r.YLJ,className:"me-2"}),"Tap to Unmute"))},21239:function(e,t,a){a.r(t),a.d(t,{default:function(){return S}});var l=a(38032),n=a(25935),r=a(67294),i=a(99200),o=a(53568),s=a(42749),c=a(29892),d=a(46624),u=a(99517);const m=()=>r.createElement(i.X2,{className:"mt-5"},r.createElement(i.JX,{className:"help-text"},"The content provided is for educational and informational purposes only and should be a substitute for medical or other professional advice. Articles are based on personal opinions, research, and experiences of the author(s) and do not necessarily reflect the official policy or position of Psychedelic Support."));var f=a(89080),p=a(97326),b=a(94578),h=a(35941);const E=e=>{const[t,a]=r.useState(),[,l]=r.useState(!1),[n,i]=r.useState(!1),o=()=>{a(new window.YT.Player("youtube-player-"+e.id,{videoId:e.id,events:{onReady:e=>{e.target.mute(),e.target.playVideo();const t=setInterval((()=>{e.target.isMuted()!==!n&&(i(!1),clearInterval(t))}),500);i(!0)}}}))};return r.useEffect((()=>{if("undefined"==typeof window)return;let e=document.querySelector("#youtube-iframe");e?o():(e=document.createElement("script"),e.setAttribute("id","youtube-iframe"),e.setAttribute("src","https://www.youtube.com/iframe_api"),document.querySelectorAll("head")[0].append(e),window.onYouTubeIframeAPIReady=()=>{o()},e.onreadystatechange=e.addEventListener("load",(()=>{l(!0)})))}),[]),r.createElement("div",null,r.createElement(h.w,{display:n,cb:()=>
1{t&&(t.unMute(),i(!1))}}),r.createElement("div",{id:"youtube-player-"+e.id}))};var v=a(67814),g=a(59545);const y=e=>{const[t,a]=r.useState(!1),l=()=>{const t=!(()=>{let t=0;if(!e.targetRef||!e.targetRef.current)return a(!1),!1;"undefined"!=typeof window&&(t=window.innerHeight);const l=e.targetRef.current.getBoundingClientRect();return l.top>=0&&(l.top<=t||l.top>=t)})();e.floatCb&&e.floatCb(t),a(t)};(0,r.useEffect)((()=>(!1===e.floatDisabled&&"undefined"!=typeof window&&window.addEventListener("scroll",l),()=>{"undefined"!=typeof window&&window.removeEventListener("scroll",l)})),[e.floatDisabled]);const n=()=>{a(!1),e.disableCb()};return r.createElement("div",{className:!1===t?"embed-youtube":"fv"},r.createElement("div",{className:!1===t?"visibility-hidden":"close-fv",onClick:n},r.createElement(v.G,{icon:g.NB,className:"cursor-pointer float-right",onClick:n})),r.createElement("div",null,e.children))};let w=function(e){function t(t){var a;return(a=e.call(this,t)||this).state={placeholderVis:!1,floatDisabled:!1},a.videoEmbedRef=r.createRef(),a.isFloating=a.isFloating.bind((0,p.Z)(a)),a.disable=a.disable.bind((0,p.Z)(a)),a}(0,b.Z)(t,e);var a=t.prototype;return a.isFloating=function(e){this.setState({placeholderVis:e})},a.disable=function(){this.setState({placeholderVis:!1,floatDisabled:!0})},a.render=function(){return r.createElement("div",null,r.createElement(y,{floatDisabled:this.state.floatDisabled,disableCb:this.disable,floatCb:this.isFloating,targetRef:this.videoEmbedRef},r.createElement(E,{id:this.props.featuredYoutubeId})),r.createElement("div",{id:"video-placeholder",className:this.state.placeholderVis?"embed-youtube":"",ref:this.videoEmbedRef}))},t}(r.Component);const N=e=>{return r.createElement(i.X2,null,r.createElement(i.JX,{xs:"12"},e.featuredVideoAcf&&e.featuredVideoAcf.featuredYoutubeId?r.createElement(w,{postTitle:e.postTitle,featuredYoutubeId:e.featuredVideoAcf.featuredYoutubeId}):r.createElement(l.G,{image:null===(t=e.featuredImage)||void 0===t||null===(a=t.node)||void 0===a||null===(n=a.localFile)||void 0===n?void 0:n.childImageSharp.featured,imgClassName:"featured-img",alt:""+(null!==(o=e.featuredImage)&&void 0!==o&&null!==(s=o.node)&&void 0!==s&&s.altText?null===(c=e.featuredImage)||void 0===c||null===(d=c.node)||void 0===d?void 0:d.altText:"Featured Image: "+e.postTitle)})));var t,a,n,o,s,c,d};var A=a(96998),I=a(86685);var S=e=>{let{data:t}=e;const{uri:a,date:p,dateGmt:b,modified:h,modifiedGmt:E,categories:v,title:g,content:y,featuredImage:w,featuredVideoAcf:S,seo:X,multipleAuthorsAcf:C,author:T,tags:D}=t.post,R=t.related.nodes;let F;if(p!==h){const e=new Date(p),t=new Date(h);e.getTime()<t.getTime()&&(F=h)}return r.createElement(r.Fragment,null,r.createElement(s.Z,{title:X.title,description:X.metaDesc,image:(0,l.d)(w.node.localFile.childImageSharp.featured),pathname:a,canonical:X.canonical===a?void 0:X.canonical,schema:c.Z.generateArticleSchema(X.title,(0,l.d)(w.node.localFile.childImageSharp.featured),b,E,D.nodes.map((e=>e.name)))}),r.createElement("article",{className:"post type-post status-publish format-standard hentry category-react tag-accessibility tag-gatsby entry mt-2"},r.createElement(i.W2,null,r.createElement(i.X2,null,r.createElement(i.JX,{xs:"12"},r.createElement(I.Z,{description:X.metaDesc,title:g,categories:v,tags:D}))),r.createElement(N,{postTitle:g,featuredImage:w,featuredVideoAcf:S}),r.createElement(i.X2,{className:"mt-3"},r.createElement(i.JX,null,r.createElement(A.S,{place:A.B.Intro,authors:C&&C.multipleAuthor?C.multipleAuthor.concat([T.node]):[T.node],viewAll:!1,fullDesc:!1}),r.createElement(i.X2,null,r.createElement(i.JX,{className:"published mb-5"},p,F&&r.createElement("i",{className:"updated ms-1"},"(Updated: ",F,")"))))),r.createElement(i.X2,null,r.createElement(i.JX,{xs:"12"},r.createElement("div",{className:"entry-content"},(e=>(0,n.ZP)(e,{replace:e=>"subscribe"===e.tagName?r.createElement(o.T,null):"gam"===e.tagName?r.createElement(u.u,{adUnitCode:e.attribs.code?e.attribs.code:"post-inline",slotSizes:e.attribs.slotsizes?e.attribs.slotsizes:["fluid"]}):void 0}))(y)))),r.createElement(m,null),r.createElement(i.X2,{className:"mt-1 mb-5"},r.createElement(i.JX,{xs:"12"},r.createElement("footer",{className:"post-footer"},r.createElement("hr",null),r.createElement(d.Z,{sizePx:"30"}),r.createElement(i.X2,{className:"published mt-2 mb-4"},r.createElement(i.JX,null,r.createElement("h5",null,"Published by: "))),r.createElement(A.S,{place:A.B.Footer,fullDesc:!0,viewAll:!0,authors:C&&C.multipleAuthor?C.multipleAuthor.concat([T.node]):[T.node]}),r.createElement("hr",null)))),r.createElement(f.Z,{related:R}))))}}}]);
2//# sourceMappingURL=component---src-components-wp-single-js-deabcdaa17e2401de905.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.