PageSourceSearch

https://babylonbee.com/build/assets/InstagramOembed-aIHqn3P9.js

js babylonbee.com collected 2026-10-01 08:41:30 UTC 6,377 bytes, 1 lines download raw bytes

1import{r as P,P as x,j as d,q as u,k as R,F as T,x as v,M,D as k,W as V}from"./vendor-vue-n3skSn-P.js";import{_ as A}from"./_plugin-vue_export-helper-CZPp-EVN.js";const $=["page","suppress","trackOrder","identify","addToCart","callBack","event"];function C(){const e=window.geq=window.geq||[];if(e.initialize||e.invoked)return null;e.invoked=!0,e.methods=$,e.factory=t=>function(){const n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e};for(const t of e.methods)e[t]=e.factory(t);return e.SNIPPET_VERSION="1.6.1",e.load=t=>{const n=document.createElement("script");n.type="text/javascript",n.async=!0;const o=window.location&&window.location.href||"";n.src="https://s3-us-west-2.amazonaws.com/jsstore/a/"+t+"/ge.js"+(o.includes("vge=true")?"?v="+Math.random():"");const i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i)},e}function H(e){if(!e||typeof window>"u"||typeof document>"u")return!1;try{const t=C();return t?(t.load(e),t.page(),!0):!1}catch{return!1}}const S=P(0);function s(){return S.value,window.consentState||{region:"unknown",choice:null,trackingAllowed:!1,blockedReason:"undecided",gpc:!1,signedIn:!1}}const m="privacy-choice-revision";let g=null;function f(){window.location.reload()}var E;try{g=(E=window.localStorage)==null?void 0:E.getItem(m)}catch{}typeof window<"u"&&typeof window.addEventListener=="function"&&(window.addEventListener("storage",e=>{e.key===m&&e.newValue!==g&&f()}),window.addEventListener("pageshow",e=>{var t;try{e.persisted&&((t=window.localStorage)==null?void 0:t.getItem(m))!==g&&f()}catch{}}));function N(){return s().adminEmbedsAlwaysAllowed===!0}function L(e="all"){var t;return e==="embeds"&&N()?!0:e==="all"?s().trackingAllowed===!0:(((t=s().purposes)==null?void 0:t[e])??s().trackingAllowed)===!0}function Y(){return s().programmaticAdsAllowed===!0}function Z(){return s().blockedReason||null}async function ee(e,t=null,n=null,o=null,i=!1){var l,c,p,w,h,_;o===null&&e==="granted"&&s().noticeHash&&!s().gpcSignalled&&!s().gpc&&!s().gpcOverridden&&s().addressMatchingVersion&&s().addressMatchingBlocked===!1&&(n==null?void 0:n.advertising)!==!1&&(o=!0);try{const r=await axios.post("/cookie-consent",{consent:e,confirmation_token:t,...i?{show_saved_message:!0}:{},...s().noticeHash?{notice_hash:s().noticeHash}:{},...o!==null?{address_matching:e==="granted"&&o===!0}:{},...o?{address_matching_version:s().addressMatchingVersion}:{},...n?{preferences:n,policy_version:s().policyVersion}:{}});try{(l=window.localStorage)==null||l.setItem(m,String(Date.now())+Math.random())}catch{}const I=r.data.preferences&&Object.entries(r.data.preferences).some(([a,O])=>{var y,b;return!O&&(((y=s().preferences)==null?void 0:y[a])??((b=s().purposes)==null?void 0:b[a]))===!0});if(e==="granted"&&r.data.consent!=="denied"&&!I){const a=s();if(["eea","switzerland"].includes(a.region)&&a.embedContextAllowed!==!1&&((c=a.purposes)==null?void 0:c.embeds)!==!0&&((p=r.data.preferences)==null?void 0:p.embeds)===!0)return f(),r.data;window.consentState={...a,choice:"granted",blockedReason:null,gpc:!1,gpcOverridden:a.gpcSignalled||a.gpc||a.gpcOverridden||!1,addressMatching:r.data.addressMatching===!0,preferences:r.data.preferences,purposes:{...a.purposes,embeds:a.embedContextAllowed!==!1&&((w=r.data.preferences)==null?void 0:w.embeds)===!0}},r.data.addressMatching===!0&&H(a.retentionKey),S.value++}else f();return r.data}catch(r){if(((h=r.response)==null?void 0:h.status)===409&&((_=r.response.data)!=null&&_.confirmation_required))return r.response.data;throw r}}const B="80px + env(safe-area-inset-bottom)";function te(e){return e?{bottom:`calc(${B})`}:{bottom:"0px",paddingBottom:"env(safe-area-inset-bottom)"}}function ne(e,t){return{height:e?`calc(${t}px + ${B})`:`${t}px`}}const j={props:{url:String},computed:{allowed(){return L("embeds")}}},q={class:"mt-12"},z=["src"];function D(e,t,n,o,i,l){const c=x("consent-placeholder");return d(),u("div",q,[l.allowed?(d(),u("iframe",{key:0,title:"Podcast player",width:"100%",height:"192",scrolling:"no",allowfullscreen:"",webkitallowfullscreen:"true",mozallowfullscreen:"true",oallowfullscreen:"true",msallowfullscreen:"true",style:{border:"none"},src:n.url},null,8,z)):(d(),R(c,{key:1,label:"Podcast player",provider:"Libsyn",link:n.url,centered:!0},null,8,["link"]))])}const se=A(j,[["render",D]]),F={mounted(){this.allowed&&this.getEmbed()},props:["url"],watch:{allowed(e){e&&this.getEmbed()}},data(){return{instagramHTML:"",instagramERROR:!1,isLoading:!0}},computed:{allowed(){return L("embeds")}},methods:{getEmbed(){axios.post("/getInstagramEmbed",{url:this.url}).then(e=>{this.isLoading=!1,e.data&&e.data!="error"?(this.instagramHTML=e.data,this.$nextTick(()=>{window.instgrm&&window.instgrm.Embeds?instgrm.Embeds.process():this.allowed&&(window.__instagramEmbedsProm
1ise||(window.__instagramEmbedsPromise=new Promise((t,n)=>{const o=document.createElement("script");o.src="https://platform.instagram.com/en_US/embeds.js",o.async=!0,o.onload=t,o.onerror=n,document.head.appendChild(o)})),window.__instagramEmbedsPromise.then(()=>{var t,n;this.allowed&&((n=(t=window.instgrm)==null?void 0:t.Embeds)==null||n.process())}).catch(()=>{this.instagramERROR=!0}))})):this.instagramERROR=!0})}}},K={class:"w-full"},W={key:0,class:"h-24 p-4 flex items-center justify-center"},Q=["innerHTML"],U={key:1,class:"w-full mb-2"};function G(e,t,n,o,i,l){const c=x("consent-placeholder");return d(),u("div",K,[l.allowed?(d(),u(T,{key:1},[i.isLoading?(d(),u("span",W,[...t[0]||(t[0]=[v("i",{class:"fa fa-spinner fa-spin mr-1"},null,-1),M(" Post Loading...",-1)])])):k("",!0),v("div",{innerHTML:i.instagramHTML},null,8,Q),i.instagramERROR?(d(),u("div",U,[...t[1]||(t[1]=[V('<div class="w-full max-w-md bg-gray-100 border border-gray-300 shadow-md rounded-lg pointer-events-auto my-2 text-left"><div class="rounded-lg shadow-xs overflow-hidden"><div class="p-4 flex items-start"><div class="flex-1 pt-0.5 text-gray-600"><div class="font-medium text-sm text-center" style="line-height:1.3;"><strong>Whoops!</strong> It looks like this instagram post is either not able to be shared or no longer exists. </div></div></div></div></div>',1)])])):k("",!0)],64)):(d(),R(c,{key:0,label:"Instagram post",provider:"Instagram",link:n.url},null,8,["link"]))])}const oe=A(F,[["render",G]]);export{oe as I,se as L,te as a,f as b,ne as c,Z as d,N as e,Y as p,ee as r,L as t};

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.