PageSourceSearch

https://babylonbee.com/build/assets/common-components-BFmMiiNn.js

js babylonbee.com collected 2026-09-24 08:28:36 UTC 280,516 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-sweetalert-DwCfQtvM.js","assets/vendor-sweetalert-shEbScbE.css","assets/InteractQuizEmbed-CW1Wf2x6.js","assets/InstagramOembed-aIHqn3P9.js","assets/vendor-vue-n3skSn-P.js","assets/_plugin-vue_export-helper-CZPp-EVN.js","assets/ContactChallenge-BFykjBQW.js","assets/ContactChallenge-D-3ebXDL.css","assets/Braintree-Ds8pUL7D.js","assets/vendor-braintree-DdOfqMES.js","assets/vendor-pusher-BP0LjfyK.js","assets/Braintree-SDdjcEyt.css","assets/Admination-Ci1WXpwP.js","assets/Outbrain-D2PLYCef.js","assets/Poll-ZV_F0j8Z.js","assets/UserModalList-CSjZOgTT.js","assets/SubscribePage-BPZcINzj.js","assets/UserInput-x2rZ3KZv.js","assets/NewUserInput-H_dygDuk.js","assets/AccountCreation-DD1dzer5.js","assets/AppSearch-3zkmM23_.js","assets/vendor-lodash-E9C5f0WD.js","assets/DateRangePicker-BR8QrVN3.js","assets/ParentComment-r8pvDB9P.js","assets/CommentContent-nGTRze9v.js","assets/ReactionAvatars-BE-JV8VR.js","assets/ReactionAvatars-BVA5dyOf.css","assets/CopyLink-CDfvaqv0.js","assets/ActionsDropdown-C2vc0uQB.js","assets/Comment-BEicQcNr.js","assets/CommentTextarea-I3LEQbCv.js","assets/previewUrl-D1RxIl1j.js","assets/submissionOutbox-Bl_dcaHM.js","assets/Mentionable-CTa4t3wn.js","assets/EmbeddedPost-GM-iuLcd.js","assets/ImageUploadPreview-Clh1YxiN.js","assets/Giphy-CllnZoyC.js","assets/CreatePoll-Cqt8kuM-.js","assets/CommentBox-BegUQo8C.js","assets/AddEmbedModalOverlay-CL8Y-igV.js","assets/Post-Yjb0wFXU.js","assets/AppSearch-BsIy5zgr.css","assets/PodcastEpisodes-B-RJWIZv.js","assets/PodcastEpisode-CTk-6BA2.js","assets/PodcastCoverImage-Ds7J5s6Y.js","assets/NewsletterPopup-C8n-MKoK.js","assets/VideoJs-Wr1Z4q9C.js","assets/mediaPlayer-C6ZFkrx5.js","assets/VideoJsApp-DGTUdMgf.js","assets/vendor-hls-jw_vZdHi.js","assets/RegistrationForm-DmFIJgxp.js","assets/CustomAmountPicker-DfpVO9ZH.js","assets/NTBVideoJs-Cx6JFQlL.js","assets/AddUserAddress-jccD4zQV.js","assets/LoggedOutSearch-DGgOD059.js","assets/WorshipSongGenerator-BBrNuqiq.js","assets/Prophecies-BjBadjYB.js","assets/Takes-DhX7o_4P.js","assets/vendor-axios-qFyJwsfU.js","assets/Sports-Bdbx5yAi.js","assets/PremiumPopup-BtcIA9QB.js","assets/PopupFeatureList-B2U3GMpo.js","assets/Comments-CaImfsei.js","assets/Comments-CJY9mJPg.css","assets/OneTime-CuGH-aBY.js","assets/OneTimePayment-DUclqqGB.js","assets/Quiz-C90MH1NO.js","assets/CopyQuizLink-Bt1GHrda.js","assets/FeaturedFeatures-B-aogHN4.js","assets/BeeLive-reOBl8og.js","assets/BeeLive-CCkPOGdR.css","assets/SethAppealPopup-By3G5MJX.js","assets/JanuarySixthFAQ-BoTnjDry.js","assets/JanuarySixthFAQ-CMRM324L.css","assets/JanSixthPopup-CfyDTkit.js","assets/Jan6Carousel-BcWzOpAl.js","assets/Topple-C9dZvx2F.js","assets/NTBPodcasts-ZYPqG9MJ.js","assets/PodcastEdit-BaXRZ0Xj.js","assets/PodcastCoverPhoto-lCAQXIio.js","assets/HeadlineCTAPopup-Bshh7Gap.js","assets/BeeVideosPage-Cn6n54oe.js","assets/BeeVideoRow-C21zWFrd.js","assets/BeeVideoCard-F1obJnSw.js","assets/BeeVideoRow-Bx4hMQM3.css","assets/BeeVideosPage-Dd3hyLpS.css","assets/BeeAllVideosPage-D3NI_wVN.js","assets/BeeVideoShowPage-BK0hHsmZ.js","assets/BeeVideoShowPage-DjJsqzZ1.css","assets/RotateVideosConfirm-DfrRm5JO.js"])))=>i.map(i=>d[i]);
2import{a as Be}from"./vendor-axios-qFyJwsfU.js";import{a as g,b as x,_ as w,e as b}from"./_plugin-vue_export-helper-CZPp-EVN.js";import{j as a,q as r,x as s,B as V,J as h,C as m,D as c,P as C,R as M,k as E,K as p,L as P,T as L,V as U,y as S,A,G as N,z,F as T,E as R,M as _,H as O,W as Z,I as he,S as k,N as me,X as Y}from"./vendor-vue-n3skSn-P.js";import{t as J,I as Ce,L as Te,c as fe,a as ge,r as oe,b as Se,d as Ee,e as Ae,p as Pe}from"./InstagramOembed-aIHqn3P9.js";import{e as Q,E as Le}from"./EmbeddedPost-GM-iuLcd.js";window.axios=Be;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.axios.defaults.withCredentials=!0;window.axios.defaults.withXSRFToken=!0;const Cg={mounted(i,e={}){var t;i.keyboardMenuHandler=d=>{if(!["ArrowDown","ArrowUp","Home","End"].includes(d.key))return;const o=[...i.querySelectorAll('[role^="menuitem"]')].filter(u=>!u.disabled&&u.getClientRects().length);if(!o.length)return;const n=o.indexOf(document.activeElement),l=d.key==="Home"?0:d.key==="End"?o.length-1:(n+(d.key==="ArrowDown"?1:-1)+o.length)%o.length;d.preventDefault(),d.stopPropagation(),o[l].focus()},i.addEventListener("keydown",i.keyboardMenuHandler),e.value!==!1&&((t=[...i.querySelectorAll('[role^="menuitem"]')].find(d=>!d.disabled&&d.getClientRects().length))==null||t.focus())},unmounted(i,e={}){i.removeEventListener("keydown",i.keyboardMenuHandler)}};g.directive("closable",{beforeMount(i,e){i._handleOutsideClick=t=>{const{handler:d,exclude:o}=e.value,n=e.instance;if(!n)return;let l=!1;o&&o.forEach(u=>{if(!l){const y=n.$refs[u];if(y){const f=y.$el||y;f&&f.contains&&(l=f.contains(t.target))}}}),!i.contains(t.target)&&!l&&(typeof d=="function"?d():typeof d=="str
2ing"&&typeof n[d]=="function"&&n[d]())},document.addEventListener("click",i._handleOutsideClick),document.addEventListener("touchstart",i._handleOutsideClick)},unmounted(i){i._handleOutsideClick&&(document.removeEventListener("click",i._handleOutsideClick),document.removeEventListener("touchstart",i._handleOutsideClick))}});g.directive("clipboard",{beforeMount(i,e){const t=e.instance;e.arg==="copy"?(i._clipboardText=e.value,i._clipboardHandler=async()=>{try{if(await navigator.clipboard.writeText(i._clipboardText),i._clipboardSuccess&&t){const d=typeof i._clipboardSuccess=="function"?i._clipboardSuccess:t[i._clipboardSuccess];d&&d({text:i._clipboardText})}}catch{const o=document.createElement("textarea");o.value=i._clipboardText,o.style.position="fixed",o.style.opacity="0",document.body.appendChild(o),o.select();try{if(document.execCommand("copy"),i._clipboardSuccess&&t){const n=typeof i._clipboardSuccess=="function"?i._clipboardSuccess:t[i._clipboardSuccess];n&&n({text:i._clipboardText})}}catch(n){if(i._clipboardError&&t){const l=typeof i._clipboardError=="function"?i._clipboardError:t[i._clipboardError];l&&l(n)}}document.body.removeChild(o)}},i.addEventListener("click",i._clipboardHandler)):e.arg==="success"?i._clipboardSuccess=e.value:e.arg==="error"&&(i._clipboardError=e.value)},updated(i,e){e.arg==="copy"?i._clipboardText=e.value:e.arg==="success"?i._clipboardSuccess=e.value:e.arg==="error"&&(i._clipboardError=e.value)},unmounted(i,e){e.arg==="copy"&&i._clipboardHandler&&i.removeEventListener("click",i._clipboardHandler)}});const Ie=200,Ne=60,ne=8,q=8;let I=null,K=null,$=null,ee=null,j=null;const pe="app-tooltip";function De(){if(I)return I;I=document.createElement("div"),I.id=pe,I.setAttribute("role","tooltip"),I.className="app-tooltip",I.hidden=!0,K=document.createElement("span"),K.className="app-tooltip__arrow";const i=document.createElement("span");return i.className="app-tooltip__label",I.appendChild(i),I.appendChild(K),document.body.appendChild(I),I}function Ve(i){const e=i.getBoundingClientRect(),t=I.getBoundingClientRect();let d=e.top-t.height-ne,o=!1;d<q&&(d=e.bottom+ne,o=!0);const n=e.left+e.width/2;let l=n-t.width/2;l=Math.max(q,Math.min(l,window.innerWidth-t.width-q)),I.style.top=`${Math.round(d)}px`,I.style.left=`${Math.round(l)}px`,I.classList.toggle("app-tooltip--below",o);const u=Math.max(q,Math.min(n-l,t.width-q));K.style.left=`${Math.round(u)}px`}function _e(i){const e=i.__tooltipText;e&&(De(),clearTimeout(te),I.querySelector(".app-tooltip__label").textContent=e,I.hidden=!1,I.style.top="-9999px",I.style.left="0px",Ve(i),I.classList.add("app-tooltip--visible"),i.setAttribute("aria-describedby",pe),j=i)}let te=null;function H(){I&&(I.classList.remove("app-tooltip--visible"),clearTimeout(te),te=setTimeout(()=>{I.classList.contains("app-tooltip--visible")||(I.hidden=!0)},150),j&&(j.removeAttribute("aria-describedby"),j=null))}function Re(i){clearTimeout(ee),clearTimeout($),$=setTimeout(()=>_e(i),Ie)}function ze(){clearTimeout($),clearTimeout(ee),ee=setTimeout(H,Ne)}function Me(i){i.key==="Escape"&&H()}function ae(){j&&H()}let re=!1;function Oe(){re||(document.addEventListener("keydown",Me,!0),window.addEventListener("scroll",ae,!0),window.addEventListener("resize",ae),re=!0)}function le(i,e){const t=e.value==null?"":String(e.value).trim();i.__tooltipText=t,!t&&j===i&&H(),t&&j===i&&_e(i)}function de(i){Re(i.currentTarget)}const Tg={mounted(i,e){Oe(),le(i,e),i.__tooltipHandlers={mouseenter:de,mouseleave:ze,focus:de,blur:H,click:H};for(const[t,d]of Object.entries(i.__tooltipHandlers))i.addEventListener(t,d,t==="focus"||t==="blur")},updated(i,e){e.value!==e.oldValue&&le(i,e)},unmounted(i){if(j===i&&H(),i.__tooltipHandlers){for(const[e,t]of Object.entries(i.__tooltipHandlers))i.removeEventListener(e,t,e==="focus"||e==="blur");delete i.__tooltipHandlers}delete i.__tooltipText}},Sg={focusTrap:{beforeMount(i){i.handleKeydown=e=>{if(e.key!=="Tab")return;const t=Array.from(i.querySelectorAll('button, [href], input, select, textarea, [tabindex], [contenteditable="true"]')).filter(n=>n.tabIndex>=0&&!n.matches(":disabled")&&!n.closest("[inert]")&&n.getClientRects().length>0&&getComputedStyle(n).visibility!=="hidden"),d=t[0],o=t[t.length-1];d?e.shiftKey&&(document.activeElement===d||document.activeElement===i)?(e.preventDefault(),o.focus()):!e.shiftKey&&(document.activeElement===o||document.activeElement===i)&&(e.preventDefault(),d.focus()):(e.preventDefault(),i.focus())},i.addEventListener("keydown",i.handleKeydown)},unmounted(i){i.removeEventListener("keydown",i.handleKeydown)}}};let X=null;const be=async()=>
2{if(!X){const[i]=await Promise.all([x(()=>import("./vendor-sweetalert-DwCfQtvM.js").then(e=>e.s),__vite__mapDeps([0,1])),x(()=>import("./vendor-sweetalert-DwCfQtvM.js").then(e=>e.a),__vite__mapDeps([0,1]))]);X=i.default}return X},Eg=async(...i)=>(await be())(...i),je=()=>{const i=document.querySelector('meta[name="isBee"]'),e=i?(i.getAttribute("content")||"").toLowerCase():"";return e==="1"||e==="true"?{bg:"bg-primary-orange",hover:"hover:bg-primary-orange-hover",textHover:"hover:text-primary-orange",textHoverDark:"dark:hover:text-primary-orange",border:"hover:border-primary-orange",borderDark:"dark:hover:border-primary-orange",text:"text-primary-orange",textDark:"dark:text-primary-orange",tintBg:"bg-primary-orange/10 dark:bg-primary-orange/20",iconHex:"#fbb03b"}:{bg:"bg-red-600",hover:"hover:bg-red-700",textHover:"hover:text-red-600",textHoverDark:"dark:hover:text-red-400",border:"hover:border-red-600",borderDark:"dark:hover:border-red-400",text:"text-red-600",textDark:"dark:text-red-400",tintBg:"bg-red-50 dark:bg-red-900/20",iconHex:"#dc2626"}},Ue=(i,e,t={})=>({...{popup:"!rounded-2xl !p-8 !max-w-md !shadow-[0_20px_60px_-15px_rgba(15,23,42,0.25)] dark:!bg-zinc-900",title:"!text-xl md:!text-2xl !font-bold !tracking-tight !text-gray-900 dark:!text-gray-100 !pb-2 !pt-0",htmlContainer:"!text-sm !text-gray-600 dark:!text-gray-400 !mt-0 !mb-4",input:"!text-base !border !border-gray-300 dark:!border-zinc-700 !rounded-md !shadow-none focus:!ring-0",actions:"!flex !flex-col !items-center !gap-3 
2!mt-6 !w-full",confirmButton:`inline-flex w-full items-center justify-center gap-2 text-xs font-bold uppercase tracking-[0.15em] text-white ${e?"bg-red-600 hover:bg-red-700":`${i.bg} ${i.hover}`} py-3 px-6 rounded-md transition-colors duration-300`,cancelButton:`inline-flex w-full items-center justify-center text-xs font-bold uppercase tracking-[0.15em] text-gray-900 dark:text-gray-100 ${i.textHover} ${i.textHoverDark} py-3 px-6 border border-gray-200 dark:border-zinc-800 rounded-md ${i.border} ${i.borderDark} transition-colors duration-300`,validationMessage:`!${i.tintBg} !${i.text} !${i.textDark} !rounded-md !mt-3 !text-xs`},...t}),Ag=async(i={})=>{const e=await be(),t=je(),d=i.destructive===!0,{confirmText:o,cancelText:n,destructive:l,customClass:u,icon:y,iconColor:f,...B}=i,v={showCancelButton:!0,buttonsStyling:!1,reverseButtons:!0,confirmButtonText:o||"Confirm",cancelButtonText:n||"Cancel",...B,customClass:Ue(t,d,u||{})};return y&&(v.icon=y,v.iconColor=f||(d?"#dc2626":t.iconHex)),e.fire(v)},He={name:"ToggleButton",props:{modelValue:{type:Boolean,default:!1},value:{type:Boolean,default:!1},labels:{type:[Object,Boolean],default:!1},sync:{type:Boolean,default:!1}},computed:{isChecked(){return this.modelValue!==void 0?this.modelValue:this.value}},methods:{toggle(){const i=!this.isChecked;this.$emit("input",i),this.$emit("update:modelValue",i),this.$emit("change",{value:i})}}},We={class:"inline-flex items-center cursor-pointer select-none gap-2"},qe=["checked"];function Fe(i,e,t,d,o,n){return a(),r("label",We,[s("input",{type:"checkbox",class:"sr-only",checked:t.modelValue,onChange:e[0]||(e[0]=(...l)=>n.toggle&&n.toggle(...l))},null,40,qe),s("div",{class:h(["relative inline-flex items-center shrink-0 rounded-full transition-colors duration-200 ease-in-out",[t.modelValue?"bg-green-500":"bg-gray-300"]]),style:{width:"36px",height:"20px"}},[s("div",{class:"absolute bg-white rounded-full shadow transition-transform duration-200 ease-in-out",style:V([{width:"16px",height:"16px",left:"2px"},{transform:t.modelValue?"translateX(16px)":"translateX(0)"}])},null,4)],2),t.labels?(a(),r("span",{key:0,class:h(["text-sm font-medium whitespace-nowrap",[t.modelValue?"text-green-600":"text-gray-500"]])},m(t.modelValue?t.labels.checked:t.labels.unchecked),3)):c("",!0)])}const Ye=w(He,[["render",Fe]]),Ke={created(){this.isactive&&(this.homebanner?b.on("homebannerNotificationsCollected",i=>{i.componentInstanceId!=this.componentInstanceId&&(this.$forceUpdate(),this.resolveNotificationResponseData(i.data))}):(b.on("notificationCleared",i=>{this.$forceUpdate(),this.reloadNotifications()}),b.on("notificationsCleared",i=>{this.$forceUpdate(),this.reloadNotifications()}),b.on("notificationViewed",i=>{this.$forceUpdate(),this.reloadNotifications()}),b.on("notificationCountDecrement",i=>{const e=Number(i)||0;e>0&&(this.newNotificationCount=Math.max(0,this.newNotificationCount-e),this.dropdownStale=!0)}),this.getPreloadNotifications(),b.on("user-notification",i=>{this.$forceUpdate(),this.scheduleReloadNotifications()})))},mounted(){this.componentInstanceId=this.$.uid,document.addEventListener("keydown",i=>{i.keyCode==27&&(this.showingSearch=!1,this.showingProfileDropdown=!1,this.showingNotificationDropdown=!1,this.showingQuickNav=!1)}),window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth}),this._preventScrollKeys=i=>{if(!this.anyDropdownOpen||![" ","ArrowUp","ArrowDown","PageUp","PageDown","Home","End","Spacebar"].includes(i.key))return;const t=i.target&&i.target.tagName;t==="INPUT"||t==="TEXTAREA"||i.target&&i.target.isContentEditable||i.target&&i.target.closest&&i.target.closest("[data-menu-scroll-allowed]")||i.preventDefault()},window.addEventListener("keydown",this._preventScrollKeys)},beforeUnmount(){this._preventScrollKeys&&window.removeEventListener("keydown",this._preventScrollKeys)},props:{avatarimage:String,view_admin_stats:{type:Boolean,default:!1},moderate:{type:Boolean,default:!1},manage_promos:{type:Boolean,default:!1},create_article:{type:Boolean,default:!1},edit_article:{type:Boolean,default:!1},create_take:{type:Boolean,default:!1},edit_take:{type:Boolean,default:!1},create_video:{type:Boolean,default:!1},edit_video:{type:Boolean,default:!1},issuperadmin:{type:Boolean,default:!1},isadmin:{type:Boolean,default:!1},isactive:{type:Boolean,default:!1},shop_route:String,role:String,isguest:{type:Boolean,default:!1},ispremium:{type:Boolean,default:!1},quicklinks:Array,loggedin:{type:Boolean,default:!1},userprofilelink:String,route_name:String,homebanner:{type:Boolean,default:!1},a_e:String,url_params:String,is_linked_user:{type:Boolean,default:!1},show_free_account_as_new:{type:Boolean,default:!1},create_account_link:String,has_bee:{type:Boolean,default:!1},has_ntb:{type:Boolean,default:!1},convert_bundle_route:String,route_path:String,can_see_drafts:{type:Boolean,default:!1},is_home_navbar:{type:Boolean,default:!1}},data(){return{showingProfileDropdown:!1,showingNotificationDropdown:!1,notifications:[],globalNotifications:[],newNotificationCount:0,showingQuickNav:!1,quickerLinks:this.quicklinks,showingSearch:!1,windowWidth:window.innerWidth,componentInstanceId:null,dropdownStale:!1}},computed:{anyDropdownOpen(){return this.showingSearch||this.showingQuickNav||this.showingNotificationDropdown||this.showingProfileDropdown}},watch:{anyDropdownOpen(i){b.emit(i?"navbarDropdownOpened":"navbarDropdownClosed")}},methods:{onDropdownEnter(i,e){const t=i.firstElementChild;t._cleanupTransition&&t._cleanupTransition(),t.style.transition="none",t.style.height="auto";const d=t.scrollHeight;t.style.height="0px",t.style.opacity="0",t.offsetHeight,t.style.transition="height 220ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms cubic-bezier(0.4, 0, 0.2, 1)",t.style.height=d+"px",t.style.opacity="1";const o=()=>{t.removeEventListener("transitionend",n),t._cleanupTimer&&(clearTimeout(t._cleanupTimer),t._cleanupTimer=null),t.style.transition="",t.style.height="",t.style.opacity="",t._cleanupTransition=null},n=l=>{l.target!==t||l.propertyName!=="height"||(o(),e())};t.addEventListener("transitionend",n),t._cleanupTransition=o,t._cleanupTimer=setTimeout(()=>{o(),e()},280)},onDropdownLeave(i,e){const t=i.firstElementChild;t._cleanupTransition&&t._cleanupTransition();const d=t.getBoundingClientRect().height;t.style.transition="none",t.style.height=d+"px",t.style.opacity="1",t.offsetHeight,t.style.transition="height 200ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms cubic-bezier(0.4, 0, 0.2, 1)",t.style.height="0px",t.style.opacity="0";const o=()=>{t.removeEventListener("transitionend",n),t._cleanupTimer&&(clearTimeout(t._cleanupTimer),t._cleanupTimer=null),t.style.transition="",t.style.height="",t.style.opacity="",t._cleanupTransition=null},n=l=>{l.target!==t||l.propertyName!=="height"||(o(),e())};t.addEventListener("transitionend",n),t._cleanupTransition=o,t._cleanupTimer=setTimeout(()=>{o(),e()},260)},handleDropdownWheel(i){i.stopPropagation(),i.preventDefault();const e=i.currentTarget;let t=e.querySelector("[data-dropdown-scroller]");if(!t){let d=i.target;for(;d&&d!==e;){if(d.scrollHeight>d.clientHeight){const o=getComputedStyle(d);if(o.overflowY==="auto"||o.overflowY==="scroll"){t=d;break}}d=d.parentElement}}t&&(t.scrollTop+=i.deltaY)},toggleSearch(){this.showingSearch=!this.showingSearch,this.showingSearch&&(b.emit("searchBoxOpened"),this.$refs.searchbox.classList.remove("hidden"),this.$nextTick(()=>{var i;(i=this.$refs.searchbox.querySelector("input"))==null||i.focus()}))},onSearchClose(){this.showingSearch==!0&&b.emit("modalClosed"),this.showingSearch=!1},onClose(){this.showingProfileDropdown==!0&&b.emit("modalClosed"),this.showingProfileDropdown=!1},onQuickNavClose(){this.showingQuickNav==!0&&b.emit("modalClosed"),this.showingQuickNav=!1},onNotificationClose(){this.showingNotificationDropdown==!0&&b.emit("modalClosed"),this.showingNotificationDropdown=!1},submitLogoutForm(){document.getElementById("logout-form").submit()},toggleProfileDropdown(){this.showingProfileDropdown==!0?(this.showingProfileDropdown=!1,b.emit("modalClosed")):(this.showingProfileDropdown=!0,b.emit("modalOpened"))},toggleNotification(){this.showingNotificationDropdown==!0?(this.showingNotificationDropdown=!1,b.emit("modalClosed")):(this.showingNotificationDropdown=!0,b.emit("modalOpened"),this.dropdownStale&&(this.dropdownStale=!1,this.getPreloadNotifications()))},getPreloadNotifications(){this.homebanner||axios.post("/dashboard/notifications/getPreload").then(i=>{this.resolveNotificationResponseData(i.data)})},reloadNotifications(){this.homebanner||axios.post("/dashboard/notifications/reloadNotifications").then(i=>{this.resolveNotificationResponseData(i.data)})},scheduleReloadNotifications(){this._reloadNotificationsTimer&&clearTimeout(this._reloadNotificationsTimer),this._reloadNotificationsTimer=setTimeout(()=>{this._reloadNotificationsTimer=null,this.reloadNotifications()},1500)},resolveNotificationResponseData(i){i&&(this.newNotificationCount=i.notificationcount,this.notifications=i.notifications,this.dropdownStale=!1,b.emit("homebannerNotificationsCollected",{componentInstanceId:this.componentInstanceId,data:i}))}
2,toggleQuickNav(){this.showingQuickNav==!0?(this.showingQuickNav=!1,b.emit("modalClosed")):(this.showingQuickNav=!0,b.emit("modalOpened"))},updateNotification(i,e,t,d){if(!i){window.location.href=d;return}const o=()=>{window.location.href=d};Promise.race([axios.post("/dashboard/notifications/update/"+e+"/"+t,{doNotRedirect:!0}).catch(()=>{}),new Promise(n=>setTimeout(n,1500))]).then(o,o)},timeDifference(i){let e=new Date(i),t=6e4,d=36e5,o=864e5,n=2592e6,l=94608e7,y=new Date-e;var f=1,B="";return y<t?(f=Math.round(Math.abs(y/1e3)),B="second"):y<d?(f=Math.round(y/t),B="minute"):y<o?(f=Math.round(y/d),B="hour"):y<n?(f=Math.round(y/o),B="day"):y<l?(f=Math.round(y/n),B="month"):(f=Math.round(y/l),B="year"),f!=1&&(B=B+"s"),f+" "+B+" ago"}}},Ge={key:0,class:"fixed inset-x-0 bottom-0 top-16 sm:top-0 bg-black/30 z-110","aria-hidden":"true"},Qe={class:"flex sm:items-center xs:space-x-2 sm:space-x-3"},Je={class:"inline-flex my-auto z-120"},Xe=["aria-expanded"],Ze={class:"relative block h-6 w-6"},$e={class:"sm:rounded-2xl overflow-hidden bg-white dark:bg-zinc-900 relative [clip-path:inset(0_-50px_-50px_-50px)] sm:[clip-path:inset(-50px_-50px_-50px_-50px)] shadow-[0_10px_40px_-4px_rgba(15,23,42,0.15)] dark:shadow-[0_10px_40px_-4px_rgba(0,0,0,0.6)] sm:ring-1 ring-gray-200 dark:ring-zinc-800 divide-y divide-gray-200 dark:divide-zinc-800"},et={key:0,href:"/app-search?default=Content",class:"flex items-center justify-center px-5 py-2.5 bg-gray-50 dark:bg-zinc-900/60 text-xs font-bold uppercase tracking-[0.15em] text-gray-900 dark:text-gray-100 hover:text-red-600 dark:hover:text-red-400 hover:bg-gray-100 dark:hover:bg-zinc-800/80 transition-colors duration-200"},tt=["aria-expanded"],it={class:"relative block h-6 w-6"},st={class:"sm:rounded-2xl relative [clip-path:inset(0_-50px_-50px_-50px)] sm:[clip-path:inset(-50px_-50px_-50px_-50px)] shadow-[0_10px_40px_-4px_rgba(15,23,42,0.15)] dark:shadow-[0_10px_40px_-4px_rgba(0,0,0,0.6)] sm:ring-1 ring-gray-200 dark:ring-zinc-800 overflow-hidden bg-white dark:bg-zinc-900"},ot={class:"max-h-screen-minus-header overflow-y-auto scrolling-touch divide-y divide-gray-200 dark:divide-zinc-800"},nt={key:0},at={key:1,class:"flex items-center text-sm text-gray-600 dark:text-gray-400 px-5 py-5"},rt={class:"relative"},lt={class:"relative block h-6 w-6"},dt={class:"flex h-2 w-2 absolute top-1 right-2 block"},ct={class:"sm:rounded-2xl relative [clip-path:inset(0_-50px_-50px_-50px)] sm:[clip-path:inset(-50px_-50px_-50px_-50px)] shadow-[0_10px_40px_-4px_rgba(15,23,42,0.15)] dark:shadow-[0_10px_40px_-4px_rgba(0,0,0,0.6)] sm:ring-1 ring-gray-200 dark:ring-zinc-800 overflow-hidden bg-white dark:bg-zinc-900"},ut={class:"max-h-screen-minus-header overflow-y-auto scrolling-touch divide-y divide-gray-200 dark:divide-zinc-800"},ht={key:0},mt={class:"divide-y divide-gray-200 dark:divide-zinc-800"},ft={class:"relative bg-white dark:bg-zinc-900 [&:last-of-type]:border-b-0"},gt=["onClick"],pt={class:"flex items-center px-4 py-2.5 sm:px-5 gap-3"},_t={class:"min-w-0 flex-1 flex items-center"},bt={class:"shrink-0 relative"},yt={class:"w-full min-w-0 pl-3"},wt={class:"text-base leading-[1.2] font-semibold tracking-tight text-gray-900 dark:text-gray-100 w-notification-name truncate"},vt={class:"text-sm leading-[1.3] text-gray-700 dark:text-gray-300 mt-0.5 truncate"},xt={class:"text-xs leading-4 text-gray-500 dark:text-gray-500 mt-0.5 font-normal"},kt=["onClick"],Bt={class:"flex items-center px-4 py-2.5 sm:px-5 gap-3"},Ct={class:"min-w-0 flex-1 flex items-center"},Tt={class:"shrink-0 relative"},St={key:0,class:"new-notification-circle"},Et={class:"w-full min-w-0 pl-3"},At={class:"text-base leading-[1.2] font-semibold tracking-tight text-gray-900 dark:text-gray-100 w-notification-name truncate"},Pt={class:"text-sm leading-[1.3] text-gray-700 dark:text-gray-300 mt-0.5 truncate"},Lt={class:"text-xs leading-4 text-gray-500 dark:text-gray-500 mt-0.5 font-normal"},It={class:"flex flex-col items-center justify-center gap-3 text-center py-12 px-6 bg-white dark:bg-zinc-900"},Nt={key:1,class:"flex items-center px-5 py-6 text-sm text-gray-600 dark:text-gray-400"},Dt={href:"/dashboard/notifications",class:"flex items-center justify-center gap-2 px-5 py-4 bg-gray-50 dark:bg-zinc-900/60 text-xs font-bold uppercase tracking-[0.15em] text-gray-900 dark:text-gray-100 hover:text-red-600 dark:hover:text-red-400 hover:bg-gray-100 dark:hover:bg-zinc-800/80 transition-colors duration-200"},Vt={key:0,class:"inline-flex items-center justify-center min-w-[1.25rem] h-5 px-1.5 rounded-full bg-red-600 text-white text-[11px] font-bold tracking-normal"},Rt={class:"relative"},zt=["aria-expanded"],Mt={key:0},Ot={key:1,class:"relative block h-6 w-6"},jt={key:0,class:"flex h-2 w-2 absolute top-1 right-1"},Ut={class:"sm:rounded-2xl bg-white dark:bg-zinc-900 relative [clip-path:inset(0_-50px_-50px_
2-50px)] sm:[clip-path:inset(-50px_-50px_-50px_-50px)] shadow-[0_10px_40px_-4px_rgba(15,23,42,0.15)] dark:shadow-[0_10px_40px_-4px_rgba(0,0,0,0.6)] sm:ring-1 ring-gray-200 dark:ring-zinc-800 overflow-hidden"},Ht={class:"py-2 px-0 sm:px-2 max-h-screen-minus-header overflow-y-auto scrolling-touch notification-scrollbar"};function Wt(i,e,t,d,o,n){const l=C("app-search"),u=C("quicklink-list"),y=C("avatar-image"),f=C("sidebar-list-items"),B=M("closable");return a(),r("div",null,[(a(),E(U,{to:"body"},[p(L,{name:"slower-fade"},{default:P(()=>[o.showingSearch||o.showingQuickNav||o.showingNotificationDropdown||o.showingProfileDropdown?(a(),r("div",Ge)):c("",!0)]),_:1})])),s("div",Qe,[s("div",Je,[s("button",{onClick:e[0]||(e[0]=(...v)=>n.toggleSearch&&n.toggleSearch(...v)),ref:"searchButton",class:h(["inline-flex items-center justify-center h-9 w-9 shrink-0 rounded-full focus:outline-none transition-colors duration-150 ease-in-out",o.showingSearch?"text-gray-800 dark:text-gray-100 bg-gray-200 dark:bg-zinc-800":"text-gray-400 dark:text-white hover:text-gray-800 dark:hover:text-gray-400 hover:bg-gray-100 dark:hover:bg-zinc-800"]),type:"button","aria-label":"Search","aria-expanded":o.showingSearch},[s("span",Ze,[(a(),r("svg",{class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.showingSearch?"opacity-0 rotate-90 scale-75":"opacity-100 rotate-0 scale-100"]),fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"},[...e[17]||(e[17]=[s("path",{d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},null,-1)])],2)),(a(),r("svg",{class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.showingSearch?"opacity-100 rotate-0 scale-100":"opacity-0 -rotate-90 scale-75"]),stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[...e[18]||(e[18]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])],2))])],10,Xe),p(L,{css:!1,onEnter:n.onDropdownEnter,onLeave:n.onDropdownLeave},{default:P(()=>[S((a(),r("div",{ref:"searchbox",onKeydown:e[1]||(e[1]=N(A(v=>{n.onSearchClose(),i.$refs.searchButton.focus()},["stop","prevent"]),["esc"])),"data-menu-scroll-allowed":"",onWheel:e[2]||(e[2]=(...v)=>n.handleDropdownWheel&&n.handleDropdownWheel(...v)),onTouchmove:e[3]||(e[3]=A(()=>{},["stop"])),class:h(["origin-top-right top-16 sm:top-14 hidden fixed inset-x-0 sm:absolute sm:inset-x-auto sm:left-auto sm:-ml-104 sm:w-112 z-120",t.is_home_navbar?"md:!top-11":""])},[s("div",$e,[p(l,{is_search_bar:!0,loggedin:t.loggedin,default:t.loggedin?"All":"Articles",route_name:t.route_name},null,8,["loggedin","default","route_name"]),t.loggedin&&!i.$store.getters.appView?(a(),r("a",et," Advanced Search ")):c("",!0)])],34)),[[z,o.showingSearch],[B,{exclude:["searchButton"],handler:"onSearchClose"}]])]),_:1},8,["onEnter","onLeave"])]),s("div",{class:"inline-flex my-auto z-120",onClick:e[6]||(e[6]=(...v)=>n.toggleQuickNav&&n.toggleQuickNav(...v)),ref:"quickNavButton"},[s("button",{class:h(["inline-flex items-center justify-center h-9 w-9 shrink-0 rounded-full focus:outline-none transition-colors duration-150 ease-in-out",o.showingQuickNav?"text-gray-800 dark:text-gray-100 bg-gray-200 dark:bg-zinc-800":"text-gray-400 dark:text-white hover:text-gray-800 dark:hover:text-gray-400 hover:bg-gray-100 dark:hover:bg-zinc-800"]),type:"button","aria-label":"Quick Navigation","aria-expanded":o.showingQuickNav},[s("span",it,[(a(),r("svg",{xmlns:"http://www.w3.org/2000/svg",class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.showingQuickNav?"opacity-0 rotate-90 scale-75":"opacity-100 rotate-0 scale-100"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[...e[19]||(e[19]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"},null,-1)])],2)),(a(),r("svg",{class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.showingQuickNav?"opacity-100 rotate-0 scale-100":"opacity-0 -rotate-90 scale-75"]),stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[...e[20]||(e[20]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])],2))])],10,tt),p(L,{css:!1,onEnter:n.onDropdownEnter,onLeave:n.onDropdownLeave},{default:P(()=>[S((a(),r("div",{class:h(["origin-top-right top-16 sm:top-14 fixed inset-x-0 sm:absolute sm:inset-x-auto sm:left-auto sm:-ml-104 sm:w-112",t.is_home_navbar?"md:!top-11":""]),"data-menu-scroll-allowed":"",onWheel:e[4]||(e[4]=(...v)=>n.handleDropdownWheel&&n.handleDropdownWheel(...v)),onTouchmove:e[5]||(e[5]=A(()=>{},["stop"]))},[s("div",st,[s("div",ot,[t.isactive?(a(),r("div",nt,[p(u,{site:i.$store.getters.siteTitle,quicklinks:o.quickerLinks},null,8,["site","quicklinks"])])):(a(),r("p",at," You do not have any quick links. Find a "+m(i.$store.getters.siteTitle!="BEE"?"group, user or podcast":"user or podcast")+" that you want to follow closely, and click the lightning icon to add a quick link. ",1)),e[21]||(e[21]=s("a",{href:"/dashboard/quick-links",class:"flex items-center justify-center px-5 py-4 bg-gray-50 dark:bg-zinc-900/60 text-xs font-bold uppercase tracking-[0.15em] text-gray-900 dark:text-gray-100 hover:text-red-600 dark:hover:text-red-400 hover:bg-gray-100 dark:hover:bg-zinc-800/80 transition-colors duration-200"}," View All ",-1))])])],34)),[[z,o.showingQuickNav],[B,{exclude:["quickNavButton"],handler:"onQuickNavClose"}]])]),_:1},8,["onEnter","onLeave"])],512),s("div",{class:"my-auto z-120 inline-flex",onClick:e[13]||(e[13]=(...v)=>n.toggleNotification&&n.toggleNotification(...v)),ref:"notificationButton"},[s("div",rt,[s("button",{class:h(["inline-flex items-center justify-center h-9 w-9 shrink-0 rounded-full focus:outline-none transition-colors duration-150 ease-in-out",o.showingNotificationDropdown?"text-gray-800 dark:text-gray-100 bg-gray-200 dark:bg-zinc-800":"text-gray-400 dark:text-white hover:text-gray-800 dark:hover:text-gray-400 hover:bg-gray-100 dark:hover:bg-zinc-800"]),"aria-label":"Notifications"},[s("span",lt,[(a(),r("svg",{class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.showingNotificationDropdown?"opacity-0 rotate-90 scale-75":"opacity-100 rotate-0 scale-100"]),stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[...e[22]||(e[22]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"},null,-1)])],2)),(a(),r("svg",{class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.showingNotificationDropdown?"opacity-100 rotate-0 scale-100":"opacity-0 -rotate-90 scale-75"]),stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[...e[23]||(e[23]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])],2))])],2),S(s("span",dt,[...e[24]||(e[24]=[s("span",{class:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"},null,-1),s("span",{class:"relative inline-flex rounded-full h-2 w-2 bg-red-500"},null,-1)])],512),[[z,o.newNotificationCount>0&&!o.showingNotificationDropdown]])]),p(L,{css:!1,onEnter:n.onDropdownEnter,onLeave:n.onDropdownLeave},{default:P(()=>[S((a(),r("div",{class:h(["origin-top-right top-16 sm:top-14 fixed inset-x-0 sm:absolute sm:inset-x-auto sm:left-auto sm:-ml-104 sm:w-112",t.is_home_navbar?"md:!top-11":""]),"data-menu-scroll-allowed":"",onWheel:e[11]||(e[11]=(...v)=>n.handleDropdownWheel&&n.handleDropdownWheel(...v)),onTouchmove:e[12]||(e[12]=A(()=>{},["stop"]))},[s("div",ct,[s("div",ut,[t.isactive?(a(),r("div",ht,[s("ul",mt,[(a(!0),r(T,null,R(o.globalNotifications,v=>(a(),r("li",ft,[s("span",{role:"button",tabindex:"0",onKeydown:[e[7]||(e[7]=N(A(D=>D.currentTarget.click(),["stop","prevent"]),["enter"])),e[8]||(e[8]=N(A(D=>D.currentTarget.click(),["stop","prevent"]),["space"]))],onClick:A(D=>n.updateNotification(!0,v.id,v.notificationType,v.actionPath),["prevent"]),class:"cursor-pointer block hover:bg-gray-50 dark:hover:bg-zinc-800/60 focus:outline-none focus:bg-gray-50 dark:focus:bg-zinc-800/60 transition-colors duration-200 relative"},[s("div",pt,[s("div",_t,[s("div",bt,[p(y,{image_path:v.actionUserAvatar,is_notification:!0}
2,null,8,["image_path"]),e[25]||(e[25]=s("span",{class:"new-notification-circle"},null,-1))]),s("div",yt,[s("h3",wt,m(v.actionUserDisplayName),1),s("p",vt,m(v.actionDescription),1),s("p",xt,m(n.timeDifference(v.updated_at)),1)])]),e[26]||(e[26]=s("div",{class:"shrink-0"},[s("svg",{class:"h-4 w-4 text-gray-400 dark:text-gray-500",viewBox:"0 0 20 20",fill:"currentColor"},[s("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})])],-1))])],40,gt)]))),256)),(a(!0),r(T,null,R(o.notifications,v=>(a(),r("li",{class:"relative bg-white dark:bg-zinc-900 [&:last-of-type]:border-b-0",key:v.updated_at+"_"+v.id},[s("span",{role:"button",tabindex:"0",onKeydown:[e[9]||(e[9]=N(A(D=>D.currentTarget.click(),["stop","prevent"]),["enter"])),e[10]||(e[10]=N(A(D=>D.currentTarget.click(),["stop","prevent"]),["space"]))],onClick:A(D=>n.updateNotification(v.isNewNotification,v.id,v.notificationType,v.actionPath),["prevent"]),class:"cursor-pointer block hover:bg-gray-50 dark:hover:bg-zinc-800/60 focus:outline-none focus:bg-gray-50 dark:focus:bg-zinc-800/60 transition-colors duration-200 relative"},[s("div",Bt,[s("div",Ct,[s("div",Tt,[p(y,{image_path:v.actionUserAvatar,badge_path:v.actionUserBadge,is_notification:!0},null,8,["image_path","badge_path"]),v.isNewNotification?(a(),r("span",St)):c("",!0)]),s("div",Et,[s("h3",At,m(v.actionUserDisplayName),1),s("p",Pt,m(v.actionDescription),1),s("p",Lt,m(n.timeDifference(v.updated_at)),1)])]),e[27]||(e[27]=s("div",{class:"shrink-0"},[s("svg",{class:"h-4 w-4 text-gray-400 dark:text-gray-500",viewBox:"0 0 20 20",fill:"currentColor"},[s("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})])],-1))])],40,kt)]))),128)),S(s("div",It,[...e[28]||(e[28]=[s("div",{class:"inline-flex h-12 w-12 items-center justify-center rounded-full bg-gray-100 dark:bg-zinc-800/60 text-gray-400 dark:text-gray-500"},[s("i",{class:"far fa-bell-slash text-lg","aria-hidden":"true"})],-1),s("p",{class:"text-sm font-medium text-gray-600 dark:text-gray-400"},"You have no notifications",-1)])],512),[[z,o.notifications.length==0&&o.globalNotifications.length==0]])])])):(a(),r("p",Nt," You must have an active subscription to view this content. ")),s("a",Dt,[e[29]||(e[29]=s("span",null,"All Notifications",-1)),o.newNotificationCount>0?(a(),r("span",Vt,m(o.newNotificationCount),1)):c("",!0)])])])],34)),[[z,o.showingNotificationDropdown],[B,{exclude:["notificationButton"],handler:"onNotificationClose"}]])]),_:1},8,["onEnter","onLeave"])],512),s("div",{class:"my-auto z-120",onClick:e[16]||(e[16]=(...v)=>n.toggleProfileDropdown&&n.toggleProfileDropdown(...v)),ref:"button","aria-label":"More"},[s("div",Rt,[s("button",{id:"desktopMenu",type:"button",role:"button",title:"Toggle navigation menu desktop","aria-label":"Account menu","aria-expanded":o.showingProfileDropdown,class:h(["inline-flex items-center justify-center h-9 w-9 shrink-0 rounded-full focus:outline-none transition-colors duration-150 ease-in-out",o.showingProfileDropdown?"text-gray-800 dark:text-gray-100 bg-gray-200 dark:bg-zinc-800":"text-gray-400 dark:text-white hover:text-gray-800 dark:hover:text-gray-400 hover:bg-gray-100 dark:hover:bg-zinc-800"])},[t.userprofilelink=="/user/DN5F36DB1C383C9"?(a(),r("div",Mt,[...e[30]||(e[30]=[s("i",{class:"far fa-corn fa-sm"},null,-1),s("i",{class:"far fa-dog fa-sm"},null,-1)])])):(a(),r("span",Ot,[(a(),r("svg",{class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.showingProfileDropdown?"opacity-0 rotate-90 scale-75":"opacity-100 rotate-0 scale-100"]),stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[...e[31]||(e[31]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)])],2)),(a(),r("svg",{class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.showingProfileDropdown?"opacity-100 rotate-0 scale-100":"opacity-0 -rotate-90 scale-75"]),stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[...e[32]||(e[32]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])],2))]))],10,zt),t.show_free_account_as_new&&!t.is_linked_user&&i.$store.getters.siteTitle=="BEE"?(a(),r("span",jt,[...e[33]||(e[33]=[s("span",{class:"animate-ping absolute inline-flex h-full w-full rounded-full bg-yellow-600 opacity-75"},null,-1),s("span",{class:"relative inline-flex rounded-full h-2 w-2 bg-yellow-400"},null,-1)])])):c("",!0)]),p(L,{css:!1,onEnter:n.onDropdownEnter,onLeave:n.onDropdownLeave},{default:P(()=>[S((a(),r("div",{class:h(["origin-top-right absolute left-0 sm:left-auto sm:-ml-80 w-screen sm:w-88 top-16 sm:top-14",t.is_home_navbar?"md:!top-11":""]),"data-menu-scroll-allowed":"",onWheel:e[14]||(e[14]=(...v)=>n.handleDropdownWheel&&n.handleDropdownWheel(...v)),onTouchmove:e[15]||(e[15]=A(()=>{},["stop"]))},[s("div",Ut,[s("div",Ht,[p(f,{view_admin_stats:t.view_admin_stats,moderate:t.moderate,manage_promos:t.manage_promos,create_article:t.create_article,edit_article:t.edit_article,create_take:t.create_take,edit_take:t.edit_take,create_video:t.create_video,edit_video:t.edit_video,issuperadmin:t.issuperadmin,isadmin:t.isadmin,role:t.role,
2isguest:t.isguest,ispremium:t.ispremium,userprofilelink:t.userprofilelink,newNotificationCount:o.newNotificationCount,a_e:t.a_e,url_params:t.url_params,show_free_account_as_new:t.show_free_account_as_new,is_linked_user:t.is_linked_user,create_account_link:t.create_account_link,convert_bundle_route:t.convert_bundle_route,has_bee:t.has_bee,has_ntb:t.has_ntb,shop_route:t.shop_route,can_see_drafts:t.can_see_drafts,route_path:t.route_path},null,8,["view_admin_stats","moderate","manage_promos","create_article","edit_article","create_take","edit_take","create_video","edit_video","issuperadmin","isadmin","role","isguest","ispremium","userprofilelink","newNotificationCount","a_e","url_params","show_free_account_as_new","is_linked_user","create_account_link","convert_bundle_route","has_bee","has_ntb","shop_route","can_see_drafts","route_path"])])])],34)),[[z,o.showingProfileDropdown],[B,{exclude:["button"],handler:"onClose"}]])]),_:1},8,["onEnter","onLeave"])],512)])])}const qt=w(Ke,[["render",Wt]]),Ft={mounted(){},props:{site:String,auth_check:{type:Boolean,default:!1},shop_route:String},data(){return{menuOpen:!1}},watch:{menuOpen(i){b.emit(i?"navbarDropdownOpened":"navbarDropdownClosed")}},methods:{toggleOpen(){b.emit("menu-toggle"),this.menuOpen=!this.menuOpen},onClose(){this.menuOpen=!1},openNewsletter(){b.emit("newsletterPopupOpen",{})},onDropdownEnter(i,e){i._dropdownAnimation&&i._dropdownAnimation.cancel();const t=i.style.height;i.style.height="auto";const d=i.scrollHeight;i.style.height=t||"0px",i.style.overflow="hidden",i.offsetHeight;const o=i.animate([{height:"0px",opacity:0},{height:d+"px",opacity:1}],{duration:220,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards"});i._dropdownAnimation=o,o.onfinish=()=>{i.style.height="",i.style.overflow="",i._dropdownAnimation=null,e()},o.oncancel=()=>{i._dropdownAnimation=null}},onDropdownLeave(i,e){i._dropdownAnimation&&i._dropdownAnimation.cancel();const t=i.getBoundingClientRect().height;i.style.overflow="hidden";const d=i.animate([{height:t+"px",opacity:1},{height:"0px",opacity:0}],{duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"forwards"});i._dropdownAnimation=d,d.onfinish=()=>{i.style.height="",i.style.overflow="",i._dropdownAnimation=null,e()},d.oncancel=()=>{i._dropdownAnimation=null}}}},Yt={class:"flex items-center"},Kt={key:0,class:"fixed inset-0 bg-black/30 z-110","aria-hidden":"true"},Gt=["aria-expanded"],Qt={class:"relative block h-6 w-6"},Jt={id:"mobile-menu",class:"origin-top-right absolute right-0 mt-2 w-64 rounded-md shadow-lg"},Xt={class:"py-1 px-2 rounded-md bg-white shadow-xs max-h-screen-minus-header overflow-y-auto scrolling-touch"},Zt={class:"my-3 flex-1 space-y-1 px-2"},$t={key:0},ei={key:1};function ti(i,e,t,d,o,n){const l=C("dash-sidebar-link"),u=M("closable");return a(),r("div",Yt,[(a(),E(U,{to:"body"},[p(L,{name:"slower-fade"},{default:P(()=>[o.menuOpen?(a(),r("div",Kt)):c("",!0)]),_:1})])),s("div",{class:"-mr-2 my-auto relative z-120",ref:"mobileButton",onKeydown:e[2]||(e[2]=N(A(y=>{n.onClose(),i.$refs.mobileButton.querySelector("button").focus()},["stop","prevent"]),["esc"]))},[s("button",{id:"mobileMenu",class:h(["inline-flex items-center justify-center h-10 w-10 shrink-0 rounded-md focus:outline-none transition-colors duration-150 ease-in-out",o.menuOpen?"text-gray-800 dark:text-gray-100 bg-gray-100 dark:bg-zinc-800":"text-gray-400 dark:text-white hover:text-gray-800 dark:hover:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800"]),"aria-label":"Toggle navigation menu","aria-expanded":o.menuOpen,"aria-controls":"mobile-menu",onClick:e[0]||(e[0]=(...y)=>n.toggleOpen&&n.toggleOpen(...y)),type:"button",role:"button",title:"Toggle navigation menu"},[e[5]||(e[5]=s("span",{class:"sr-only"},"Toggle navigation menu",-1)),s("span",Qt,[(a(),r("svg",{class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.menuOpen?"opacity-0 rotate-90 scale-75":"opacity-100 rotate-0 scale-100"]),stroke:"currentColor",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true"},[...e[3]||(e[3]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,-1)])],2)),(a(),r("svg",{class:h(["absolute inset-0 h-6 w-6 transition-all duration-200 ease-out",o.menuOpen?"opacity-100 rotate-0 scale-100":"opacity-0 -rotate-90 scale-75"]),stroke:"currentColor",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true"},[...e[4]||(e[4]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])],2))])],10,Gt),p(L,{css:!1,onEnter:n.onDropdownEnter,onLeave:n.onDropdownLeave},{default:P(()=>[S((a(),r("div",Jt,[s("div",Xt,[s("nav",Zt,[p(l,{path:"/login",title:"Login",icon:"sign-in"}),t.site=="BEE"?(a(),r("div",$t,[p(l,{path:"/january6",title:"January 6",icon:"flag-usa"}),p(l,{path:"/news",title:"Latest",icon:"timer"}),p(l,{path:"/buzzing",title:"Trending",icon:"fire"}
2),p(l,{path:"/categories",title:"Categories",icon:"tags"}),p(l,{path:"/videos",title:"Video",icon:"video"}),p(l,{path:"/podcasts",title:"Podcast",icon:"podcast"}),p(l,{class:"hidden sm:block",path:t.shop_route,title:"Shop",icon:"shopping-cart"},null,8,["path"]),p(l,{class:"block sm:hidden",path:t.shop_route+"/collections/new-merch",title:"Shop",icon:"shopping-cart"},null,8,["path"]),p(l,{path:"/book-of-prophecy",title:"Book of Prophecy",icon:"book-bible"}),p(l,{path:"/worship-song-generator",title:"Worship Song Generator",icon:"place-of-worship"}),p(l,{path:"/quiz/the-bee-or-not-the-bee",title:"Bee or Not the Bee Quiz",icon:"square-poll-horizontal"}),s("button",{type:"button",class:"sidebar-link cursor-pointer w-full text-left",onClick:e[1]||(e[1]=(...y)=>n.openNewsletter&&n.openNewsletter(...y))},[...e[6]||(e[6]=[s("span",null,[s("i",{class:"fad fa-fw fa-lg fa-newspaper mr-2"})],-1),_(" Newsletter ",-1)])]),p(l,{path:"/app-search",title:"Search",icon:"search"})])):(a(),r("div",ei,[p(l,{path:"/",title:"Home",icon:"home"}),t.site=="NTB"?(a(),E(l,{key:0,path:"/categories",title:"Categories",icon:"tags"})):c("",!0),p(l,{path:"/discover",title:"Discover",icon:"search-plus"}),t.site=="NTB"?(a(),E(l,{key:1,class:"hidden sm:block",path:t.shop_route,title:"Shop",icon:"shopping-cart"},null,8,["path"])):c("",!0),t.site=="NTB"?(a(),E(l,{key:2,class:"block sm:hidden",path:t.shop_route+"/collections/new-stuff",title:"Shop",icon:"shopping-cart"},null,8,["path"])):c("",!0),p(l,{path:"/social",title:"Social",icon:"users"}),t.site=="NTB"?(a(),E(l,{key:3,path:"/app-search",title:"Search",icon:"search"})):c("",!0)])),p(l,{path:"/privacy-choices",title:"Privacy Choices",icon:"shield-check"})])])])),[[z,o.menuOpen],[u,{exclude:["mobileButton"],handler:"onClose"}]])]),_:1},8,["onEnter","onLeave"])],544)])}const ii=w(Ft,[["render",ti]]),si={props:{link:String,circle:{type:Boolean,default:!1}},mounted(){},data(){return{message:this.link,copied:!1}},methods:{onCopy:function(i){this.copied=!0},onError:function(i){}}},oi=["aria-label"],ni={key:0,class:"far fa-link-horizontal","aria-hidden":"true"},ai={key:1,class:"far fa-check text-green-600 dark:text-green-400","aria-hidden":"true"},ri={key:"1",class:"text-xl"},li={class:"far fa-link-horizontal w-full my-2"},di={key:1,class:"inline text-sm"};function ci(i,e,t,d,o,n){const l=M("clipboard");return t.circle?S((a(),r("button",{key:0,type:"button",class:"inline-flex items-center justify-center h-9 w-9 rounded-full bg-gray-100 dark:bg-zinc-800 text-gray-600 dark:text-gray-400 hover:bg-red-50 hover:text-red-600 dark:hover:bg-red-500/10 dark:hover:text-red-400 transition cursor-pointer","aria-label":o.copied?"Link copied":"Copy link"},[o.copied?(a(),r("i",ai)):(a(),r("i",ni))],8,oi)),[[l,o.message,"copy"],[l,n.onCopy,"success"],[l,n.onError,"error"]]):(a(),r("div",{key:1,class:h(["w-1/5 text-center cursor-pointer",[o.copied?"flex items-center justify-center h-[36px]":""]])},[p(L,{name:"fade",mode:"out-in"},{default:P(()=>[o.copied?(a(),r("span",di,[...e[0]||(e[0]=[_(" Copied ",-1),s("i",{key:"2",class:"far fa-check text-success w-full my-2 inline"},null,-1)])])):(a(),r("span",ri,[S(s("i",li,null,512),[[l,o.message,"copy"],[l,n.onCopy,"success"],[l,n.onError,"error"]])]))]),_:1})],2))}const ui=w(si,[["render",ci]]),hi={mounted(){this.screen_size=="all"?this.showVideo=!0:(this.checkResize(),window.addEventListener("resize",()=>{this.checkResize()}))},props:{show_image:{type:Boolean,default:!0},article:Object,is_admin:{type:Boolean,default:!1},show_featured:{type:Boolean,default:!0},is_video:{type:Boolean,default:!1},screen_size:{type:String,default:"all"}},data(){return{showVideo:!1}},methods:{checkResize(){this.showVideo||(this.screen_size=="desktop"&&window.innerWidth>=768?this.showVideo=!0:this.screen_size=="mobile"&&window.innerWidth<768&&(this.showVideo=!0))}}},mi={class:"group flex flex-col"},fi=["href","aria-label"],gi={class:"relative w-full overflow-hidden rounded-md"},pi={key:0,class:"absolute rounded-full bg-red-600 h-6 w-6 top-2 left-2 flex items-center z-10"},_i={key:0,class:"mx-auto text-white"},bi={key:1,class:"mx-auto"},yi={key:1,class:"youtube-container"},wi=["src","alt"],vi=["src","alt"],xi={class:"flex flex-col space-y-1 pt-2"},ki={key:0,href:"/takes","aria-label":"View Not The Bee Opinion",class:"relative text-[11px] font-bold uppercase tracking-[0.1em] text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 self-start pb-0.5 after:content-[''] after:absolute after:left-0 after:bottom-0 after:h-[2px] after:w-full after:bg-red-600 dark:after:bg-red-400 after:origin-left after:scale-x-0 group-hover:after:scale-x-100 after:transition-transform after:duration-300 after:ease-out"},Bi={key:1,href:"/sports","aria-label":"View Not The Bee Sports",class:"relative text-[11px] font-bold uppercase tracking-[0.1em] text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 self-start pb-0.5 after:content-[''] after:absolute after:left-0 after:bottom-0 after:h-[2px] after:w-full after:bg-red-600 dark:after:bg-red-400 after:origin-left after:scale-x-0 group-hover:after:scale-x-100 after:transition-transform after:duration-300 after:ease-out"},Ci=["href","aria-label"],Ti=["href","aria-label"],Si={class:"text-lg md:text-xl font-bold leading-[1.2] tracking-tight text-gray-900 dark:text-gray-100"},Ei={class:"flex items-center gap-x-1 text-[13px] pt-0.5"},Ai=["src","alt"],Pi=["href","aria-label"],Li={datetime:"2020-03-16",class:"text-gray-500 dark:text-gray-400"};function Ii(i,e,t,d,o,n){return a(),r("div",mi,[t.show_image?(a(),r("a",{key:0,href:t.article.path,"aria-label":"Read article: "+t.article.title,class:"block"},[s("div",gi,[(t.article.isPrimaryFeatured||t.article.isSecondary||t.article.isTertiary)&&t.show_featured?(a(),r("div",pi,[t.is_admin?(a(),r("span",_i,m(t.article.featuredSpot),1)):(a(),r("span",bi,[...e[0]||(e[0]=[s("i",{class:"text-white mx-auto fa fa-thumbtack rotate-45"},null,-1)])]))])):c("",!0),t.is_video&&o.showVideo?(a(),r("div",yi,[s("img",{class:"aspect-[16/9] w-full bg-gray-100 dark:bg-zinc-800 object-cover transition duration-500 ease-out group-hover:opacity-90 md:group-hover:scale-[1.02]",src:t.article.imagePath,alt:t.article.image_decorative?"":t.article.image_description||"Article Header Image"},null,8,wi)])):t.is_video?c("",!0):(a(),r("img",{key:2,class:"aspect-[16/9] w-full bg-gray-100 dark:bg-zinc-800 object-cover transition duration-500 ease-out group-hover:opacity-90 md:group-hover:scale-[1.02]",src:t.article.imagePath,alt:t.article.image_decorative?"":t.article.image_description||"Article Header Image"},null,8,vi))])],8,fi)):c("",!0),s("div",xi,[t.article.is_opinion?(a(),r("a",ki," Opinion ")):t.article.is_sports?(a(),r("a",Bi," Sports ")):t.article.primaryCategory&&t.article.primaryCategoryPath?(a(),r("a",{key:2,href:t.article.primaryCategoryPath,"aria-label":"View category: "+t.article.primaryCategory,class:"relative text-[11px] font-bold uppercase tracking-[0.1em] text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 self-start pb-0.5 after:content-[''] after:absolute after:left-0 after:bottom-0 after:h-[2px] after:w-full after:bg-red-600 dark:after:bg-red-400 after:origin-left after:scale-x-0 group-hover:after:scale-x-100 after:transition-transform after:duration-300 after:ease-out"},m(t.article.primaryCategory),9,Ci)):c("",!0),s("a",{href:t.article.path,"aria-label":"Read article: "+t.article.title,class:"block"}
2,[s("h3",Si,m(t.article.title),1)],8,Ti),s("div",Ei,[s("img",{src:t.article.authorImagePath,alt:"Profile photo of "+t.article.authorName,class:"h-5 w-5 rounded-full bg-gray-100 dark:bg-zinc-700 object-cover mr-0.5"},null,8,Ai),s("a",{href:t.article.is_opinion?t.article.authorTakePath:t.article.authorPath,"aria-label":"View author profile: "+t.article.authorName,class:"text-gray-700 dark:text-gray-300 hover:text-gray-500 dark:hover:text-gray-400"},m(t.article.authorName),9,Pi),e[1]||(e[1]=s("span",{"aria-hidden":"true",class:"inline-block h-[3px] w-[3px] rounded-full bg-gray-400 dark:bg-zinc-500"},null,-1)),s("time",Li,m(t.article.publishedOnDate),1)])])])}const ye=w(hi,[["render",Ii]]),Ni={created(){},mounted(){},props:{article:Object},data(){return{}},methods:{visitCard(i){i.target.closest("a")||(window.location.href=this.article.path)},visitAuthorPage(){document.getElementById("article-author-"+this.article.id).click()},visitCategoryPage(){document.getElementById("article-category-"+this.article.id).click()}}},Di={class:"'w-full"},Vi=["href","aria-label"],Ri=["alt","src"],zi={class:"w-full mt-1 md:mt-0"},Mi={class:"flex items-center gap-x-2 text-xs"},Oi=["datetime"],ji=["href"],Ui={class:"group relative max-w-xl space-y-1 md:space-y-2"},Hi={class:"mt-1 text-lg font-semibold leading-6 text-gray-900 group-hover:text-gray-600"},Wi=["href"],qi={class:"text-sm leading-6 text-gray-600"},Fi={class:"text-xs text-gray-400"},Yi=["href"],Ki={class:"inline-flex"},Gi=["src"],Qi=["href","id"],Ji=["href","id"];function Xi(i,e,t,d,o,n){return a(),r("div",Di,[s("div",{onClick:e[0]||(e[0]=(...l)=>n.visitCard&&n.visitCard(...l)),class:"md:flex md:space-x-4 cursor-pointer"},[s("div",{class:h(["w-full md:w-64 lg:w-80",t.article.hasImage?"":"bg-gray-200 rounded-md"])},[s("a",{href:t.article.path,"aria-label":t.article.title},[s("img",{alt:t.article.hasImage?t.article.image_decorative?"":t.article.image_description||"Article Header Image":"Profile Photo",src:t.article.hasImage?t.article.imagePath:t.article.authorImagePath,class:h(["bg-gray-50 object-cover md:h-[150px] mx-auto",t.article.hasImage?"rounded-md":""])},null,10,Ri)],8,Vi)],2),s("div",zi,[s("div",Mi,[s("time",{datetime:t.article.publishedOnDate,class:"text-gray-500"},m(t.article.publishedOnDate),9,Oi),s("a",{href:t.article.primaryCategoryPath,class:"text-categories cursor-pointer"},m(t.article.primaryCategory),9,ji)]),s("div",Ui,[s("h3",Hi,[s("a",{href:t.article.path},m(t.article.title),9,Wi)]),s("p",qi,m(t.article.shortDescription),1),s("span",Fi,[e[1]||(e[1]=_("An Article by ",-1)),s("a",{href:t.article.authorPath,class:"text-gray-800 hover:text-gray-700 inline-flex flex items-center space-x-2"},[s("span",Ki,m(t.article.authorFullName),1),s("img",{alt:"Profile Photo",class:"inline-flex rounded-full w-6 h-6",src:t.article.authorImagePath},null,8,Gi)],8,Yi)])])])]),s("a",{href:t.article.primaryCategoryPath,id:"article-category-"+t.article.id,class:"hidden"},null,8,Qi),s("a",{href:t.article.authorPath,id:"article-author-"+t.article.id,class:"hidden"},null,8,Ji)])}const Zi=w(Ni,[["render",Xi]]),$i={created(){},mounted(){},props:{take:Object},data(){return{}},methods:{visitCard(i){i.target.closest("a")||(window.location.href=this.take.path)},visitAuthorPage(){document.getElementById("take-author-"+this.take.id).click()}
2,visitCategoryPage(){document.getElementById("take-category-"+this.take.id).click()}}},es={class:"'w-full"},ts=["href","aria-label"],is=["alt","src"],ss={class:"w-full mt-1 md:mt-0"},os={class:"flex items-center gap-x-2 text-xs"},ns=["datetime"],as=["href"],rs={class:"group relative max-w-xl space-y-1 md:space-y-2"},ls={class:"mt-1 text-lg font-semibold leading-6 text-gray-900 group-hover:text-gray-600"},ds=["href"],cs={class:"text-sm leading-6 text-gray-600"},us={class:"text-xs text-gray-400"},hs=["href"],ms={class:"inline-flex"},fs=["src"],gs=["href","id"],ps=["href","id"];function _s(i,e,t,d,o,n){return a(),r("div",es,[s("div",{onClick:e[0]||(e[0]=(...l)=>n.visitCard&&n.visitCard(...l)),class:"md:flex md:space-x-4 cursor-pointer"},[s("div",{class:h(["w-full md:w-64 lg:w-80",t.take.hasImage?"":"bg-gray-200 rounded-md"])},[s("a",{href:t.take.path,"aria-label":t.take.title},[s("img",{alt:t.take.hasImage?t.take.image_decorative?"":t.take.image_description||"Article Header Image":"Profile Photo",src:t.take.hasImage?t.take.imagePath:t.take.authorImagePath,class:h(["bg-gray-50 object-cover md:h-[150px] mx-auto",t.take.hasImage?"rounded-md":""])},null,10,is)],8,ts)],2),s("div",ss,[s("div",os,[s("time",{datetime:t.take.publishedOnDate,class:"text-gray-500"},m(t.take.publishedOnDate),9,ns),s("a",{href:t.take.primaryCategoryPath,class:"text-categories cursor-pointer"},m(t.take.primaryCategory),9,as)]),s("div",rs,[s("h3",ls,[s("a",{href:t.take.path},m(t.take.title),9,ds)]),s("p",cs,m(t.take.shortDescription),1),s("span",us,[e[1]||(e[1]=_("A Take by ",-1)),s("a",{href:t.take.authorTakePath,class:"text-gray-800 hover:text-gray-700 inline-flex flex items-center space-x-2"},[s("span",ms,m(t.take.authorFullName),1),s("img",{alt:"Profile Photo",class:"inline-flex rounded-full w-6 h-6",src:t.take.authorImagePath},null,8,fs)],8,hs)])])])]),s("a",{href:t.take.primaryCategoryPath,id:"take-category-"+t.take.id,class:"hidden"},null,8,gs),s("a",{href:t.take.authorTakePath,id:"take-author-"+t.take.id,class:"hidden"},null,8,ps)])}const bs=w($i,[["render",_s]]),ys={components:{HomepageArticleCard:ye,SportsCard:Zi,TakeCard:bs},mounted(){this.previous_articles.length>0&&(this.articles=this.previous_articles,this.loadedArticleCount=this.initial_count+this.previous_articles.length),this.scroll()},props:{category:{String,default:"all"},author:{String,default:"all"},initial_count:[Number,String],user_id:[Number,String],term:{String,default:""},used_articles:{Array,default:function(){return[]}},previous_articles:{Array,default:function(){return[]}},is_home_page:{Boolean,default:!1},is_bee:{Boolean,default:!1},sort:{String,default:""},joke_slug:String,is_take_page:{Boolean,default:!1},is_sports_page:{Boolean,default:!1}},data(){return{showingMore:!1,fields:{},errors:{},articles:[],loadedArticleCount:this.initial_count,showButton:!0,disabled:!1,initialPosition:0,loading:!1,bearer:this.$store.getters.bearer,appView:this.$store.getters.appView}},methods:{loadMore(){var i={};this.bearer!=""&&(i={Authorization:this.bearer}),this.loading=!0,this.errors={},this.disabled=!0,axios.post("/articles/loadMore/"+this.loadedArticleCount+"/"+this.initial_count+"/"+this.category+"/"+this.author,{search_term:this.term,used_articles:this.used_articles,sort:this.sort,is_take_page:this.is_take_page,is_sports_page:this.is_sports_page},{headers:i,timeout:this.$store.getters.defaultTimeout}).then(e=>{this.loading=!1,this.disabled=!1,this.showingMore=!0,this.loadedArticleCount=this.loadedArticleCount+e.data.length,e.data.forEach(t=>{this.articles.push(t),this.is_home_page&&b.emit("loadMoreArticles",{articles:this.articles})}),e.data.length<this.initial_count&&(this.showButton=!1)}).finally(()=>{this.loading=!1,this.disabled=!1})},clearArticles(){this.articles=[],this.loadedArticleCount=this.initial_count,this.showButton=!0},scroll(){window.onscroll=()=>{if(this.appView&&this.showButton){var i=document.getElementById("loadMoreButton"),e=i.getBoundingClientRect();e.top<window.innerHeight+250&&(this.loading||this.loadMore())}}}}},ws={key:0},vs={key:1},xs={key:2},ks={key:3},Bs={key:0,class:"mx-auto mt-10 flex items-center gap-6 max-w-2xl w-full"},Cs=["disabled"],Ts={key:0,class:"fad fa-circle-notch fa-spin","aria-hidden":"true"},Ss={key:1,"aria-hidden":"true"};function Es(i,e,t,d,o,n){const l=C("homepage-article-card"),u=C("take-card"),y=C("sports-card"),f=C("article-card");return a(),r("div",{class:h([t.is_take_page||t.is_sports_page?"mx-auto max-w-7xl":"mx-auto"])},[s("div",{class:h([t.is_take_page||t.is_sports_page?"px-6 lg:px-8 space-y-8 lg:space-y-10":"mx-auto grid grid-cols-1 lg:mx-0",t.is_take_page?"":t.is_home_page?" md:grid-cols-2 xl:grid-cols-3 ":" max-w-2xl lg:max-w-none lg:grid-cols-3 ",t.is_bee?"gap-5":"gap-10"])},[(a(!0),r(T,null,R(o.articles,(B,v)=>(a(),r(T,{key:v},[t.is_home_page?(a(),r("div",ws,[p(l,{article:B,categories:B.cachedCategories,user_id:t.user_id,is_bee:t.is_bee,joke_slug:t.joke_slug},null,8,["article","categories","user_id","is_bee","joke_slug"])])):t.is_take_page?(a(),r("div",vs,[p(u,{take:B},null,8,["take"])])):t.is_sports_page?(a(),r("div",xs,[p(y,{article:B},null,8,["article"])])):(a(),r("div",ks,[p(f,{article:B,categories:B.cachedCategories,user_id:t.user_id,is_bee:t.is_bee,joke_slug:t.joke_slug},null,8,["article","categories","user_id","is_bee","joke_slug"])]))],64))),128))],2),o.showButton?(a(),r("div",Bs,[e[2]||(e[2]=s("div",{class:"flex-1 h-px bg-gray-200 dark:bg-zinc-800"},null,-1)),s("form",{action:"/",method:"POST",onSubmit:e[0]||(e[0]=A(B=>n.loadMore(),["prevent"]))},[s("button",{id:"loadMoreButton",type:"submit",disabled:o.disabled,class:h(["group inline-flex items-center gap-2 text-xs font-bold uppercase tracking-[0.15em] text-gray-900 dark:text-gray-100 transition-colors duration-300 py-2 disabled:opacity-50 disabled:cursor-not-allowed",t.is_bee?"hover:text-primary-orange":"hover:text-red-600 dark:hover:text-red-400"])}
2,[e[1]||(e[1]=s("span",null,"Load More",-1)),o.disabled?(a(),r("i",Ts)):(a(),r("span",Ss,"↓"))],10,Cs)],32),e[3]||(e[3]=s("div",{class:"flex-1 h-px bg-gray-200 dark:bg-zinc-800"},null,-1))])):c("",!0)],2)}const As=w(ys,[["render",Es]]),Ps={computed:{allowed(){return J("embeds")}},mounted(){},props:{show_image:{type:Boolean,default:!0},imagepath:String,path:String,title:String,authorimagepath:String,publishedon:String,authorname:String,authorpath:String,article:Object,trending:Boolean,user_id:[Number,String],is_bee:{type:Boolean,default:!1},is_video:{type:Boolean,default:!1},is_preview:{type:Boolean,default:!1},is_podcast:{type:Boolean,default:!1},send_to_edit:{type:Boolean,default:!1}},data(){return{articlePath:this.article.path+(this.send_to_edit?"/edit":"")}}},Ls={key:0,class:"group transition-150"},Is=["title","src"],Ns=["href","aria-label"],Ds=["src","alt"],Vs={key:0},Rs={class:"text-categories"},zs={class:"text-dates"},Ms={key:1},Os={class:"text-xs"},js={key:2,class:"shrink-0"},Us={class:"text-xs"},Hs=["href"],Ws={key:2,class:"mt-2 w-32 border-primary-orange"},qs={key:3,class:"py-2 text-xs"},Fs={key:1,class:"h-full flex flex-col rounded-lg hover:shadow-lg overflow-hidden border border-gray-200 transition-150"},Ys={key:0,class:"shrink-0"},Ks=["title","src"],Gs=["href","aria-label"],Qs=["src","alt"],Js={class:"block flex-1 bg-white p-3 sm:p-4 flex flex-col justify-between rounded-b-lg"},Xs=["href","aria-label"],Zs={class:"flex-1"},$s={class:"flex justify-between"},eo={key:0,class:"flex"},to={class:"flex items-center"},io={key:0,class:"shrink-0"},so=["href","aria-label"],oo=["src","alt"],no={class:"flex text-sm leading-5 text-gray-500"},ao={datetime:"2020-03-16"},ro={key:1,class:"shrink-0"},lo={class:"text-xs"},co={key:0,class:"shrink-0"},uo=["href","aria-label"];function ho(i,e,t,d,o,n){const l=C("consent-placeholder"),u=C("category-badges"),y=C("author-name");return a(),r("div",{class:h([t.is_bee&&!t.is_video&&!t.is_podcast?"":"h-full"])},[t.is_bee&&!t.is_video?(a(),r("div",Ls,[t.article.is_video||t.is_podcast?(a(),r("div",{key:0,class:h({"youtube-container":n.allowed})},[n.allowed?(a(),r("iframe",{key:0,class:"youtube-video",title:"Video for "+t.article.title,src:(t.is_podcast?this.$store.getters.bearer!=""?t.article.video_url_premium:t.article.video_url:"https://www.youtube.com/embed/"+t.article.video_id)+"?rel=0",frameborder:"0",allow:"accelerometer; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,Is)):(a(),E(l,{key:1,label:"Embedded video",provider:t.is_podcast?"a third party":"YouTube"},null,8,["provider"]))],2)):(a(),r("a",{key:1,href:o.articlePath,"aria-label":"Read article: "+t.article.title},[s("img",{src:t.article.imagePath,class:h(["object-contain rounded",[t.article.primaryCategory?"":"mb-2"]]),alt:t.article.image_decorative?"":t.article.image_description||"Article Header Image"},null,10,Ds)],8,Ns)),s("div",null,[t.article.primaryCategory?(a(),r("span",Vs,[s("span",Rs,m(t.article.primaryCategory),1),e[0]||(e[0]=_(" · ",-1))])):c("",!0),s("span",zs,m(t.is_podcast?t.article.publishedOnPretty:t.article.publishedOnDate),1),t.article.commentCount>0?(a(),r("span",Ms,[e[2]||(e[2]=_(" · ",-1)),s("span",Os,[e[1]||(e[1]=s("i",{class:"far fa-comment"},null,-1)),_(" "+m(t.article.commentCount),1)])])):c("",!0),t.article.views?(a(),r("span",js,[e[3]||(e[3]=_(" · ",-1)),s("span",Us,"Views: "+m(t.article.views),1)])):c("",!0)]),s("a",{href:o.articlePath,class:"bee-title-sm group-hover:underline"},m(t.article.title),9,Hs),!t.is_preview&&t.article.shortDescription?(a(),r("hr",Ws)):c("",!0),!t.is_preview&&t.article.shortDescription?(a(),r("div",qs,m(t.article.shortDescription),1)):c("",!0)])):(a(),r("div",Fs,[t.trending?c("",!0):(a(),r("div",Ys,[t.article.is_video||t.is_podcast?(a(),r("div",{key:0,class:h({"youtube-container":n.allowed})},[n.allowed?(a(),r("iframe",{key:0,title:"Youtube Video: "+t.article.title,class:"youtube-video",src:"https://www.youtube.com/embed/"+t.article.video_id+"?rel=0",frameborder:"0",allow:"accelerometer; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,Ks)):(a(),E(l,{key:1,label:"YouTube video",provider:"YouTube",link:"https://www.youtube.com/watch?v="+t.article.video_id},null,8,["link"]))],2)):(a(),r("a",{key:1,href:o.articlePath,class:"block","aria-label":"Read article: "+t.article.title},[s("img",{class:"h-48 w-full object-cover rounded-t-lg",src:t.article.imagePath,alt:t.article.image_decorative?"":t.article.image_description||"Article Header Image"},null,8,Qs)],8,Gs))])),s("div",Js,[s("a",{href:o.articlePath,class:"block","aria-label":"Read article: "+t.article.title},[s("div",Zs,[s("div",$s,[s("div",{class:h(["mb-1",[t.is_bee?"bee-title font-normal leading-5":"post-heading"]])},m(t.article.title),3)]),t.is_video?c("",!0):(a(),r("div",eo,[t.trending?c("",!0):(a(),E(u,{key:0,categories:t.article.cachedCategories},null,8,["categories"]))]))])],8,Xs),s("div",{class:h(["flex justify-between items-end",[t.article.is_video||t.is_podcast?"mt-2":t.is_bee?"":"mt-5"]])},[s("div",to,[!t.article.is_video&&!t.is_podcast&&!t.is_bee?(a(),r("div",io,[s("a",{href:t.article.authorPath,"aria-label":"View author profile: "+t.article.authorName},[s("img",{class:"avatar-sizing",src:t.article.authorImagePath,alt:"Profile photo of "+t.article.authorName},null,8,oo)],8,so)])):c("",!0),s("div",{class:h([t.article.is_video||t.is_podcast||t.is_bee?"":"ml-3"])},[!t.article.is_video&&!t.is_podcast&&!t.is_bee?(a(),E(y,{key:0,name:t.article.authorName,path:t.article.authorPath},null,8,["name","path"])):c("",!0),s("div",no,[s("time",ao,m(t.article.publishedOnPretty)+" EST ",1)]),t.is_bee&&t.article.views?(a(),r("span",ro,[s("span",lo,"Views: "+m(t.article.views),1)])):c("",!0)],2)]),t.article.commentCount>0?(a(),r("div",co,[s("a",{class:"hover:text-blue-600 transition-150 mt-auto",href:o.articlePath+"/comments","aria-label":"View "+t.article.commentCount+" comments on article: "+t.article.title},[e[4]||(e[4]=s("i",{class:"far fa-comment","aria-hidden":"true"},null,-1)),_(" "+m(t.article.commentCount),1)],8,uo)])):c("",!0)],2)])]))],2)}const mo=w(Ps,[["render",ho]]),fo={mounted(){},props:{categories:Array}},go={class:"leading-5 text-xs my-auto"},po=["href"],_o={class:"inline-flex items-center px-2 py-1 rounded leading-4 bg-gray-200 text-gray-800 mr-2 mt-1 hover:bg-gray-500 hover:text-white transition duration-150 ease-in-out"};function bo(i,e,t,d,o,n){return a(),r("p",go,[(a(!0),r(T,null,R(t.categories,l=>(a(),r("a",{href:l.path}
2,[s("span",_o,m(l.title),1)],8,po))),256))])}const yo=w(fo,[["render",bo]]),wo={mounted(){var i=document.querySelector('meta[name="darkmode"]').getAttribute("content");this.darkMode=i},props:{name:String,path:String,is_editor:{type:Boolean,default:!1},is_verified:{type:Boolean,default:!1},is_free_user:{type:Boolean,default:!1},size:{type:String,default:"md"}},data(){return{darkMode:!1}}},vo={class:"text-base leading-5 font-medium"},xo=["href"];function ko(i,e,t,d,o,n){return a(),r("div",vo,[s("a",{href:t.path,class:h(["profile-link",[t.size=="sm"?"!text-sm":""]])},[s("div",{class:h([[o.darkMode?"dark:text-gray-50 dark:hover:text-blue-700":""],"flex items-center space-x-1"])},[s("span",null,m(t.name),1),t.is_editor?(a(),r("span",{key:0,class:h(this.$store.getters.editorBadge)},null,2)):t.is_verified?(a(),r("span",{key:1,class:h(this.$store.getters.verifiedBadge)},null,2)):t.is_free_user?(a(),r("span",{key:2,class:h(["pt-0.5",this.$store.getters.freeBadge])},null,2)):c("",!0)],2)],10,xo)])}const Bo=w(wo,[["render",ko]]),Co={mounted(){this.path=="/login"&&this.$refs.anchor.setAttribute("data-google-interstitial",!1)},props:{path:String,title:String,icon:String,count:[Number,String],route_family:String,image:String,show_activate_bee_social_link:{type:Boolean,default:!1},subtext:{type:String,default:""},open_blank:{type:Boolean,default:!1}},data(){return{iconclass:"fad fa-fw fa-lg fa-"+this.icon+" mr-2",route:window.location.pathname,prettyPath:this.path.split("?")[0]}}},To=["href","target"],So={key:0},Eo=["src"],Ao=["src"],Po=["src"],Lo={key:1},Io={key:2,class:"inline-flex items-center justify-center min-w-[1.25rem] h-5 px-1.5 rounded-full bg-red-600 text-white text-[11px] font-bold ml-auto"},No={key:3,class:"inline-flex items-center ml-auto px-2 py-0.5 rounded-full bg-yellow-50 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-300 text-[10px] font-bold uppercase tracking-[0.1em]"},Do={key:0,class:"text-xs ml-3 mt-1 text-gray-500 dark:text-gray-400 leading-relaxed"},Vo={key:1,class:"mt-4 mb-2 border-gray-200 dark:border-zinc-800"};function Ro(i,e,t,d,o,n){var l;return a(),r("div",null,[s("a",{href:t.path,ref:"anchor",class:h(["cursor-pointer sidebar-link",o.route==o.prettyPath||(l=o.route)!=null&&l.includes(t.route_family)?"active":""]),target:t.open_blank?"_blank":""},[t.image?(a(),r("span",So,[t.image.includes("/bee-bw.")||t.image.includes("/bee-square.")?(a(),r(T,{key:0},[s("img",{alt:"Image",src:t.image,class:"h-6 w-6 mr-2 block dark:hidden"},null,8,Eo),s("img",{alt:"Image",src:t.image.replace("-bw.","-bw-dark.").replace("-square.","-square-dark.").replace(".png",".svg"),class:"h-6 w-6 mr-2 hidden dark:block"},null,8,Ao)],64)):(a(),r("img",{key:1,alt:"Uploaded Image",src:t.image,class:"h-6 w-6 mr-2"},null,8,Po))])):(a(),r("span",Lo,[s("i",{class:h(o.iconclass)},null,2)])),s("span",null,m(t.title),1),t.title=="Notifications"&&t.count>0?(a(),r("div",Io,m(t.count),1)):c("",!0),t.show_activate_bee_social_link?(a(),r("div",No," New ")):c("",!0)],10,To),t.subtext!=""?(a(),r("p",Do,m(t.subtext),1)):c("",!0),t.show_activate_bee_social_link?(a(),r("hr",Vo)):c("",!0)])}const zo=w(Co,[["render",Ro]]),Mo={mounted(){},props:{},data(){return{showingAlert:!1,message:"",success:!0,hasSubtext:!1,subtext:"",timeout:null,icon:"",link:"",appView:this.$store.getters.appView}},methods:{showAlert(i,e="",t,d,o="",n=3e3){this.timeout!=null&&clearTimeout(this.timeout),this.showingAlert=!0,this.hasSubtext=!1,this.message=i,this.success=t,this.link=o,this.subtext="",d!=null&&(this.icon=d),e!=""&&(this.hasSubtext=!0,this.subtext=e),this.timeout=setTimeout(()=>this.stopShowingAlert(),n)},stopShowingAlert(){this.showingAlert=!1,this.icon=""},followLink(){this.link!=""&&(window.location=this.link)}},created(){b.on("alert",i=>{const{message:e,subtext:t,success:d,icon:o,link:n,length:l}=i;this.showAlert(e,t,d,o,n,l)})},beforeUnmount(){b.off("alert")}},Oo={class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},jo={class:"rounded-lg shadow-xs overflow-hidden"},Uo={class:"p-4"},Ho={class:"flex items-start"},Wo={key:1,class:"far fa-fw fa-check-circle text-green-400"},qo={key:2,class:"far fa-fw fa-times-circle text-red-400"},Fo=["role","tabindex"],Yo={class:"text-sm leading-5 font-medium text-white"},Ko={key:0,class:"mt-1 text-sm leading-5 text-gray-200 whitespace-pre-wrap"},Go={class:"ml-4 shrink-0 flex"};function Qo(i,e,t,d,o,n){const l=C("transition-alert-fade");return a(),r(T,null,[s("div",Oo,m(o.showingAlert?o.message+" "+o.subtext:""),1),s("div",{class:h(["fixed inset-x-0 items-start justify-center px-4 py-6 pointer-events-none sm:p-6 sm:justify-end",[o.showingAlert?"z-100 flex":"-z-10 hidden",o.appView?"inset-y-0":"inset-y-12"]])},[p(l,null,{default:P(()=>[S(s("div",{class:h(["max-w-sm w-full bg-gray-800 text-white shadow-lg rounded-lg pointer-events-auto",{"curs
2or-pointer":this.link!=""}])},[s("div",jo,[s("div",Uo,[s("div",Ho,[s("div",{onClick:e[0]||(e[0]=u=>n.followLink()),class:"shrink-0"},[o.icon!=""?(a(),r("i",{key:0,class:h(["far fa-fw text-green-400",o.icon])},null,2)):o.success?(a(),r("i",Wo)):(a(),r("i",qo))]),s("div",{onClick:e[1]||(e[1]=u=>n.followLink()),onKeydown:e[2]||(e[2]=N(u=>n.followLink(),["enter"])),role:o.link?"link":null,tabindex:o.link?0:null,class:"ml-3 w-0 flex-1 pt-0.5"},[s("p",Yo,m(o.message),1),o.hasSubtext?(a(),r("p",Ko,m(o.subtext),1)):c("",!0)],40,Fo),s("div",Go,[s("button",{type:"button","aria-label":"Dismiss notification",class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:e[3]||(e[3]=u=>o.showingAlert=!1)},[...e[4]||(e[4]=[s("svg",{class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[s("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])])])])])])],2),[[z,o.showingAlert]])]),_:1})],2)],64)}const Jo=w(Mo,[["render",Qo]]),Xo={mounted(){},props:{site:String,footer:{type:Boolean,default:!1}},data(){return{fields:{},errors:{},mailChimpError:!1,mailChimpErrorMessage:"",success:!1}},methods:{submit(){this.errors={},axios.post("/ajax/addSubscriber",this.fields).then(i=>{i.data.success==!0?(this.success=!0,b.emit("alert",{message:"Your email was added to our newsletter!",subtext:"",success:!0})):(this.success=!1,this.mailChimpError=!0,this.mailChimpErrorMessage=i.data.message)}).catch(i=>{i.response.status===422&&(this.errors=i.response.data.errors||{})})}}},Zo={class:"flex-1"},$o={class:"leading-7"},en={key:0},tn={key:1},sn={class:"mt-1 text-sm leading-4 text-gray-700",id:"newsletter-headline"},on={key:0},nn={key:1},an={key:0,class:"mt-2 w-full"},rn=["aria-invalid"],ln={key:0,role:"alert",class:"rounded-md bg-red-50 p-4 mt-2"},dn={class:"flex"},cn={class:"ml-3"},un={class:"text-sm leading-5 font-medium text-red-800"},hn={key:0},mn={key:1},fn={class:"mt-3 rounded-md shadow"},gn={key:0},pn={key:1},_n={role:"status",class:"rounded-md p-4 mt-2 max-w-3xl mx-auto",key:"2"};function bn(i,e,t,d,o,n){return a(),E(L,{name:"fade",mode:"out-in"},{default:P(()=>{var l;return[s("div",{class:h([t.footer?"mx-auto max-w-screen-xl px-5 sm:px-6 lg:px-8 min-h-[352px] sm:min-h-[316px] flex items-center":"bg-gray-50 flex justify-center rounded-lg"]),key:"1"},[s("div",{class:h([t.footer?"mx-auto flex max-w-xl flex-col items-center text-center":"px-6 py-6 bg-gray-200 rounded-lg"])},[s("div",Zo,[s("h4",$o,[t.site=="BEE"?(a(),r("span",en,"Fake news you can trust, delivered straight to your inbox!")):(a(),r("span",tn,"Want to stay informed?"))]),s("p",sn,[t.site=="BEE"?(a(),r("span",on,"Big Tech is suppressing conservative voices. Sign up for our free newsletter so you'll keep getting our content, no matter what.")):(a(),r("span",nn,"Sign up for our newsletter to stay up to date on the week's craziest news, videos and memes - all curated by the team that brought you The Babylon Bee."))])]),o.success?(a(),r("div",_n,[...e[4]||(e[4]=[s("div",{class:"flex justify-center"},[s("div",{class:"shrink-0"},[s("svg",{class:"h-5 w-5 text-green-400",viewBox:"0 0 20 20",fill:"currentColor"},[s("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])]),s("div",{class:"ml-3"},[s("h3",{class:"text-sm leading-5 font-medium text-green-800"}," Your email was added successfully! ")])],-1)])])):(a(),r("div",an,[s("form",{action:"/newsletter",method:"POST",class:"my-3",onSubmit:e[1]||(e[1]=A((...u)=>n.submit&&n.submit(...u),["prevent"]))},[S(s("input",{"onUpdate:modelValue":e[0]||(e[0]=u=>o.fields.newsletter_email=u),name:"newsletter_email",autocomplete:"email","aria-invalid":!!((l=o.errors)!=null&&l.newsletter_email||o.mailChimpError),"aria-label":"Email address",type:"email",required:"",class:"appearance-none w-full px-5 py-3 border border-gray-300 text-base leading-6 rounded-md text-gray-900 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 transition duration-150 ease-in-out",placeholder:"Enter your email"},null,8,rn),[[O,o.fields.newsletter_email]]),p(L,{name:"fade"},{default:P(()=>[o.errors&&o.errors.newsletter_email||o.mailChimpError?(a(),r("div",ln,[s("div",dn,[e[2]||(e[2]=s("div",{class:"shrink-0"},[s("svg",{class:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor"},[s("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])],-1)),s("div",cn,[s("h3",un,[o.errors&&o.errors.newsletter_email?(a(),r("span",hn,m(o.errors.newsletter_email[0]),1)):o.mailChimpError?(a(),r("span",mn,m(o.mailChimpErrorMessage),1)):c("",!0)])])])])):c("",!0)]),_:1}),s("div",fn,[s("button",{class:h(["w-full flex items-center justify-center px-5 py-3 border border-transparent text-base leading-6 font-medium rounded-md focus:outline-none transition duration-150 ease-in-out",[t.site=="BEE"?"text-white btn-primary":"text-always-w
2hite bg-red-600 hover:bg-red-500 focus:border-red-700 focus:shadow-outline-red active:bg-red-700"]])},[t.site=="BEE"?(a(),r("span",gn,"Subscribe")):(a(),r("span",pn,"Notify Me"))],2)])],32),e[3]||(e[3]=s("p",{class:"mt-3 text-sm leading-5 text-gray-700"},[_(" We care about the protection of your data. Read our "),s("a",{href:"/privacy",class:"text-gray-900 font-medium underline"}," Privacy Policy. ")],-1))]))],2)],2)]}),_:1})}const yn=w(Xo,[["render",bn]]),wn={mounted(){this.updateSelected(this.preselected)},props:["preselected","monthlycost","annualcost"],data(){return{term:"",cost:"",selected:this.preselected,mailChimpError:!1,mailChimpErrorMessage:"",success:!1}},methods:{updateSelected(i){this.selected=i,i=="Monthly"?(this.term="month",this.cost=this.monthlycost):i=="Annual"&&(this.term="year",this.cost=this.annualcost)},isNumber:function(i){i=i||window.event;var e=i.which?i.which:i.keyCode;if(e>31&&(e<48||e>57)&&e!==46)i.preventDefault();else return!0}}},vn={class:"sm:flex"},xn=["aria-pressed"],kn=["aria-pressed"],Bn={class:"tracking-tight font-extrabold text-gray-900 my-3"},Cn={id:"basic-cost"},Tn={id:"basic-term"},Sn={key:0,id:"savings-annual",class:"my-2"},En={class:"savings-underline"},An={key:1,id:"savings-monthly",class:"my-2"},Pn={class:"savings-underline"},Ln=["value"];function In(i,e,t,d,o,n){return a(),r("div",null,[s("div",vn,[s("button",{id:"MonthlyButton",type:"button",class:h({"btn-gray":o.selected=="Monthly","btn-outline-gray":o.selected!="Monthly","w-full sm:mr-2 mb-2":!0}),"aria-pressed":o.selected==="Monthly",onClick:e[0]||(e[0]=l=>n.updateSelected("Monthly"))},"Monthly",10,xn),s("button",{id:"AnnualButton",type:"button",class:h({"btn-gray":o.selected=="Annual","btn-outline-gray":o.selected!="Annual","w-full sm:mx-2 mb-2":!0}),"aria-pressed":o.selected==="Annual",onClick:e[1]||(e[1]=l=>n.updateSelected("Annual"))},"Annual",10,kn)]),s("h1",Bn,[e[2]||(e[2]=_("$",-1)),s("span",Cn,m(o.cost),1),e[3]||(e[3]=_(" / ",-1)),s("span",Tn,m(o.term),1)]),o.selected=="Annual"?(a(),r("div",Sn,[s("span",En,"You're saving "+m(Math.floor((t.monthlycost-t.annualcost/12)/t.monthlycost*100))+"% with annual billing",1)])):o.selected=="Monthly"?(a(),r("div",An,[s("span",Pn,"Switch to annual and save "+m(Math.floor((t.monthlycost-t.annualcost/12)/t.monthlycost*100))+"%",1)])):c("",!0),s("input",{type:"hidden",name:"term",value:o.selected},null,8,Ln)])}const Nn=w(wn,[["render",In]]),Dn={mounted(){var i,e;this.hasVisibleLabel=!!((e=(i=this.$refs.input)==null?void 0:i.labels)!=null&&e.length)},props:{name:String,type:String,inputvalue:String,needed:String,allowedlength:String,placeholder:String,prepend:String,ariaLabel:String,is_disabled:{type:Boolean,default:!1}},data(){return{hasVisibleLabel:!1,inputClass:"disabled:opacity-50 appearance-none flex-1 block w-full px-3 py-2 border border-gray-300 placeholder-gray-400 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 transition duration-150 ease-in-out sm:text-sm sm:leading-5"}}},Vn={class:"mt-1 flex rounded-md shadow-sm"},Rn=["id"],zn=["id","type","name","required","value","maxlength","placeholder","disabled","aria-label","aria-required","aria-describedby"];function Mn(i,e,t,d,o,n){return a(),r("div",Vn,[t.prepend?(a(),r("span",{key:0,class:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm",id:`${t.name}-addon`},m(t.prepend),9,Rn)):c("",!0),s("input",{ref:"input",id:t.name,type:t.type,name:t.name,required:t.needed=="true",class:h([this.inputClass,t.prepend?"rounded-none rounded-r-md":"rounded-md",t.is_disabled?"bg-gray-200":""]),value:t.inputvalue,maxlength:t.allowedlength,placeholder:t.placeholder,disabled:t.is_disabled,"aria-label":t.ariaLabel||(o.hasVisibleLabel?null:t.placeholder||t.name),"aria-required":t.needed=="true"?"true":"false","aria-describedby":t.prepend?`${t.name}-addon`:null},null,10,zn)])}const On=w(Dn,[["render",Mn]]),jn={created(){var i=document.querySelector('meta[name="iaps"]').getAttribute("content");this.isActivePaidSubscriber=i=="qe3j2Bs8j9sa"},mounted(){this.links.forEach(i=>
2{this.getFilteredLinks(i.category)})},props:{view_admin_stats:{type:Boolean,default:!1},moderate:{type:Boolean,default:!1},manage_promos:{type:Boolean,default:!1},create_article:{type:Boolean,default:!1},edit_article:{type:Boolean,default:!1},create_take:{type:Boolean,default:!1},edit_take:{type:Boolean,default:!1},create_video:{type:Boolean,default:!1},edit_video:{type:Boolean,default:!1},issuperadmin:{type:Boolean,default:!1},isadmin:{type:Boolean,default:!1},role:String,isguest:{type:Boolean,default:!1},ispremium:{type:Boolean,default:!1},userprofilelink:String,newNotificationCount:Number,a_e:String,url_params:String,is_linked_user:{type:Boolean,default:!1},show_free_account_as_new:{type:Boolean,default:!1},create_account_link:String,has_bee:{type:Boolean,default:!1},has_ntb:{type:Boolean,default:!1},convert_bundle_route:String,route_path:String,shop_route:String,can_see_drafts:{type:Boolean,default:!1}},data(){return{isActivePaidSubscriber:!1,isAppView:this.$store.getters.appView,links:[{category:"Content",filteredRoutes:[],routes:[{title:"News",href:this.$store.getters.siteTitle=="Babylon Bee"?"/news":"/",icon:"newspaper",access:"all",allowInAppView:!0,sites:["NTB","BEE"],open_blank:!1},{title:"Premium",href:"/news/categories/Premium",icon:"star",access:"premium",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Social",href:"/social",icon:"users",access:"all",allowInAppView:!0,sites:["NTB","BS"],open_blank:!1},{title:"Groups",href:"/groups",icon:"users-class",access:"all",allowInAppView:!0,sites:["NTB","BS"],open_blank:!1},{title:"Forum",href:"/headlines",icon:"memo",access:"all",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Podcast",href:this.$store.getters.siteTitle=="Babylon Bee"?"/podcasts":"/podcast",icon:"podcast",access:"all",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"Categories",href:this.$store.getters.siteTitle=="Babylon Bee"?"/news/categories":"/categories",icon:"tags",access:"all",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"Videos",href:"/videos",icon:"video",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"January 6",href:"/january6",icon:"flag-usa",access:"all",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Book of Prophecy",href:"/book-of-prophecy",icon:"book-bible",access:"all",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Worship Song Generator",href:"/worship-song-generator",icon:"place-of-worship",access:"all",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Bee or Not the Bee Quiz",href:"/quiz/the-bee-or-not-the-bee",icon:"square-poll-horizontal",access:"all",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Shop",href:this.shop_route,icon:"shopping-cart",access:"all",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!0},{title:"Search",href:"/app-search?default=Content",icon:"search",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1}]},{category:"Quick Site Access",filteredRoutes:[],routes:[{title:"Not the Bee",href:this.has_ntb?"https://notthebee"+(this.a_e=="production"?".com":".test")+"/visit/ntb?"+this.url_params:"https://notthebee"+(this.a_e=="production"?".com":".test")+this.convert_bundle_route,icon:"",image:"/img/ntb-square.png",access:"ntb_site",allowInAppView:!1,sites:["BEE","BS"],open_blank:!0},{title:"Babylon Bee",href:this.has_bee?"https://"+(this.a_e=="production"?"babylonbee.com":"bee.test")+"/visit/bee?"+this.url_params:"https://notthebee"+(this.a_e=="production"?".com":".test")+this.convert_bundle_route,icon:"",image:this.has_bee?"/img/bee-square.png":"/img/bee-bw.png",access:"bee_site",allowInAppView:!1,sites:["NTB","BS"],open_blank:!0}]},{category:"Account",filteredRoutes:[],routes:[{title:"Upgrade Membership",href:"/dashboard/addBillingTerm",icon:"user-unlock",access:"free",allowInAppView:!1,sites:["BEE","NTB","BS"],open_blank:!1},{title:"My Profile",href:this.userprofilelink,icon:"user",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Notifications",href:"/dashboard/notifications",icon:"bell",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Settings",href:"/dashboard/settings",icon:"user-cog",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Privacy Choices",href:"/privacy-choices",icon:"shield-check",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Manage Billing",href:"/dashboard/manageBilling",icon:"credit-card",access:"all",allowInAppView:!1,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Manage Accounts",href:"/dashboard/accounts",icon:"users-medical",access:"all",allowInAppView:!1,sites:["BEE","NTB","BS"],open_blank:!1}]},{category:"Dashboard",filteredRoutes:[],routes:[{title:"Home",href:"/dashboard",icon:"home",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Invite Guests",href:"/dashboard/invite",icon:"user-plus",access:"all",allowInAppView:!0,sites:["NTB"],open_blank:!1},{title:"Friends",href:"/dashboard/friends",icon:"user-friends",access:"all",allowInAppView:!0,sites:["NTB","BS"],open_blank:!1},{title:"Badges",href:"/dashboard/badges",icon:"trophy",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Saved Posts",href:"/dashboard/bookmarks/Post",icon:"bookmark",access:"all",allowInAppView:!0,sites:["NTB","BS"],open_blank:!1},{title:"Saved Articles",href:"/dashboard/favorites",icon:"bookmark",access:"all",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"Saved Headlines",href:"/dashboard/bookmarks/Headline",icon:"typewriter",access:"all",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"My Activity",href:this.$store.getters.siteTitle=="Babylon Bee"?"/dashboard/activity?type=comments":"/dashboard/activity",icon:"history",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Stats",href:"/dashboard/stats",icon:"chart-mixed",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1}
2,{title:"Contribute",href:"/one-time",icon:"circle-dollar-to-slot",access:"all",allowInAppView:!0,sites:["BEE"],open_blank:!1}]},{category:"Admin",filteredRoutes:[],routes:[{title:"Admin Stats",href:"/admin/stats?permission=view_admin_stats",icon:"chart-bar",access:"view_admin_stats",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Admin Graphs",href:"/admin/stats/graph?permission=view_admin_stats",icon:"chart-line",access:"view_admin_stats",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Forum Stats",href:"/dashboard/forumStats?permission=view_forum_stats",icon:"chart-candlestick",access:"view_forum_stats",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Drip Stats",href:"/admin/dripStats?permission=view_admin_stats",icon:"chart-network",access:"view_admin_stats",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"User Breakdown",href:"/admin/userBreakdown?permission=view_admin_stats",icon:"abacus",access:"view_admin_stats",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Ads",href:"/admin/adsDashboard",icon:"rectangle-ad",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Partnerships",href:"/admin/partnerships",icon:"handshake",access:"admin",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1}
2,{title:"Sponsored Email Opt-Outs",href:"/admin/email-sharing-opt-outs",icon:"user-shield",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Prophecies",href:"/prophecies",icon:"book-bible",access:"admin",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Global Preferences",href:"/admin/sitePreferences",icon:"earth-americas",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Cache",href:"/admin/commandInterface",icon:"database",access:"super_admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"CSP Violations",href:"/admin/csp-violations",icon:"shield-halved",access:"super_admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Inventory",href:"/admin/inventory",icon:"boxes-stacked",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Plan Pages",href:"/admin/plan-pages",icon:"rectangle-history",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"On This Day",href:"/admin/on-this-day",icon:"calendar-day",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Flagged Content",href:"/admin/flaggedContent?permission=moderate",icon:"flag",access:"moderate",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Users to Review",href:"/admin/usersToReview?permission=moderate",icon:"user-clock",access:"moderate",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Create User",href:"/admin/createUser",icon:"user-plus",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Create Career",href:"/careers/create",icon:"person-circle-plus",access:"admin",allowInAppView:!1,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Authors",href:"/admin/authors",icon:"pen-clip",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Author Aliases",href:"/admin/aliases/users",icon:"book-user",access:"admin",allowInAppView:!0,sites:["NTB"],open_blank:!1},{title:"Internal Users",href:"/admin/internal/users",icon:"user-friends",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Users",href:"/admin/all/users",icon:"users",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Contributors",href:"/admin/contributors/users",icon:"user-tag",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Leads",href:"/admin/leads",icon:"user-clock",access:"admin",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"User Sources",href:"/admin/user-sources?permission=view_admin_stats",icon:"file-chart-column",access:"view_admin_stats",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Reactions",href:"/admin/reactions",icon:"thumbs-up",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Invites",href:"/admin/invites",icon:"envelope-open",access:"admin",allowInAppView:!0,sites:["NTB","BS"],open_blank:!1},{title:"Promos",href:"/admin/promos/manage_promos",icon:"tags",access:"manage_promos",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Cancellations",href:"/admin/getCancellationPage?permission=view_admin_stats",icon:"ban",access:"view_admin_stats",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Upgrades",href:"/admin/upgrades",icon:"arrow-up-right",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"View/Add Avatars",href:"/admin/avatars",icon:"user-circle",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Audit Images",href:"/admin/images",icon:"images",access:"admin",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1},{title:"Addresses",href:"/admin/userAddress",icon:"mailbox",access:"admin",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Author Credits",href:"/article/authorCredits",icon:"user-tie",access:"admin",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"Assign Article Credit",href:"/article/assignAuthorCredits",icon:"user-bounty-hunter",access:"admin",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1}]},{category:"Comics",filteredRoutes:[],routes:[{title:"Create Comic",href:"/comics/create",icon:"layer-plus",access:"admin",allowInAppView:!0,sites:["NTB"],open_blank:!1}]},{category:"Articles",filteredRoutes:[],routes:[{title:"Create Article",href:"/article/create",icon:"layer-plus",access:"create_article",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"Create Take",href:"/take/create",icon:"layer-plus",access:"create_take",allowInAppView:!0,sites:["NTB"],open_blank:!1},{title:"Create Video Article",href:"/admin/video/create",icon:"layer-plus",access:"create_video",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"My Drafts",href:"/admin/articles/myDrafts",icon:"user-clock",access:"can_see_drafts",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"Take Drafts",href:"/admin/articles/takeDrafts",icon:"user-clock",access:"editor",allowInAppView:!0,sites:["NTB"],open_blank:!1},{title:"Video Drafts",href:"/admin/articles/videoDrafts",icon:"films",access:this.$store.getters.siteTitle=="Babylon Bee"?"writer":"editor",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"All Drafts",href:"/admin/articles/allDrafts",icon:"clock",access:this.$store.getters.siteTitle=="Babylon Bee"?"writer":"editor",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"Evergreen Drafts",href:"/admin/articles/evergreen",icon:"tree",access:"writer",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Ready For Review",href:"/admin/articles/ready",icon:"user-clock",access:"editor",allowInAppView:!0,sites:["NTB"],open_blank:!1},{title:"Latest Video",href:"/article/latestVideo",icon:"video",access:"admin",allowInAppView:!0,sites:["BEE","NTB"],open_blank:!1},{title:"Weekly Report",href:"/admin/articles/weeklyReport",icon:"calendar-week",access:"writer",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"88 MPH",href:"/news?sort=mph",icon:"flux-capacitor",access:"editor",allowInAppView:!0,sites:["BEE"],open_blank:!1},{title:"Annual Hits",href:"/news?sort=annual-hits",icon:"calendar-days",access:"writer",allowInAppView:!0,sites:["BEE"],open_blank:!1}]},{category:"Actions",filteredRoutes:[],open_blank:!1,routes:[{title:"Logout",href:"/logout",icon:"sign-out-alt",access:"all",allowInAppView:!0,sites:["BEE","NTB","BS"],open_blank:!1}]}]}},computed:{site(){return this.$store.getters.siteTitle=="Not the Bee"?"
2NTB":this.$store.getters.siteTitle=="Bee Social"?"BS":"BEE"}},methods:{getFilteredLinks(i){var e=this.links.find(n=>n.category==i).routes,t=e.filter(n=>!!n.sites.includes(this.site)),d=t.filter(n=>({all:!0,bee_social_site:(this.is_linked_user||this.site!="BEE")&&this.site!="BS",ntb_site:(this.is_linked_user||this.site!="BEE")&&this.site!="NTB",bee_site:this.site!="BEE",free:n.access=="free"&&this.role=="free"&&!this.is_linked_user,premium:n.access=="premium"&&this.ispremium,moderate:n.access=="moderate"&&this.moderate,manage_promos:n.access=="manage_promos"&&this.manage_promos,create_article:n.access=="create_article"&&this.create_article,edit_article:n.access=="edit_article"&&this.edit_article,create_take:n.access=="create_take"&&this.create_take,edit_take:n.access=="edit_take"&&this.edit_take,create_video:n.access=="create_video"&&this.create_video,edit_video:n.access=="edit_video"&&this.edit_video,can_see_drafts:n.access=="can_see_drafts"&&this.can_see_drafts,view_admin_stats:n.access=="view_admin_stats"&&this.view_admin_stats,writer:n.access=="writer"&&(this.role=="writer"||this.role=="editor"||this.isadmin||this.issuperadmin),editor:n.access=="editor"&&(this.role=="editor"||this.isadmin||this.issuperadmin),admin:n.access=="admin"&&(this.isadmin||this.issuperadmin),super_admin:n.access=="super_admin"&&this.issuperadmin})[n.access]||!1),o=d.filter(n=>!!(!this.isAppView||this.isAppView&&n.allowInAppView));this.links.find(n=>n.category==i).filteredRoutes=o}}},Un={class:"my-3 flex-1 px-1 sm:px-2"},Hn={key:0,class:"mb-4"},Wn={class:"px-3 pt-3 pb-1 text-[11px] font-bold uppercase tracking-[0.15em] text-gray-500 dark:text-gray-500"};function qn(i,e,t,d,o,n){const l=C("dash-sidebar-link");return a(),r("nav",Un,[t.show_free_account_as_new&&!t.is_linked_user&&n.site=="BEE"?(a(),E(l,{key:0,path:t.create_account_link,title:"Claim FREE Account",image:"/img/ntb-square.png",show_activate_bee_social_link:!0,subtext:"Your membership qualifies you for a free Bee Social account. Join the community!"},null,8,["path"])):c("",!0),(a(!0),r(T,null,R(o.links,u=>(a(),r("div",null,[u.filteredRoutes.length>0?(a(),r("div",Hn,[s("div",Wn,m(u.category),1),(a(!0),r(T,null,R(u.filteredRoutes,y=>(a(),r("div",null,[p(l,{image:y==null?void 0:y.image,open_blank:y.open_blank,path:y.href,title:y.title,icon:y.icon},null,8,["image","open_blank","path","title","icon"])]))),256))])):c("",!0)]))),256))])}const Fn=w(jn,[["render",qn]]);function ce(i){var e=String(i??"").trim();if(!e)return"#";for(var t=/^[a-z][a-z0-9+.-]*:/i.test(e)?[e]:["https://"+e],d=0;d<t.length;d++)try{var o=new URL(t[d]);if(o.protocol==="http:"||o.protocol==="https:")return o.href}catch{}return"#"}const Yn={mounted(){this.$store.getters.siteTitle=="Babylon Bee"?this.url&&(this.url.includes("babylonbee.com")||this.url.includes("bee.dev")||this.url.includes("bee.test"))&&(this.internal=!0):this.url&&(this.url.includes("notthebee.com")||this.url.includes("notthebee.dev")||this.url.includes("notthebee.test"))&&(this.internal=!0),this.displayedURL=ce(this.url),this.getLinkPreview(),window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth,this.is_post&&!this.is_embedded_post&&!this.is_trending&&this.windowWidth>640?this.blur="filter: blur(4px);":this.blur=""})},props:["url","is_post","is_article","is_embedded_post","is_trending","is_preview"],data:function(){return{displayedURL:ce(this.url),validUrl:!1,headers:{},loaded:!1,title:"",avatarImage:"",siteName:"",imagePath:"",description:"",isInternal:!1,success:!0,descriptionHasLink:!1,showDescription:!1,showingTooltip:!1,windowWidth:window.innerWidth,blur:this.is_post&&!this.is_embedded_post&&!this.is_trending&&window.innerWidth>640?"filter: blur(4px);":"",showingURLModal:!1,faviconFailed:!1,mediaType:"",mediaUrl:""}},computed:{hostname(){try{return new URL(this.displayedURL).hostname.toLowerCase().replace(/^www\./,"")}catch{return""}},brand(){const i=this.hostname;return i&&[{match:/(^|\.)facebook\.com$|(?:^|\.)fb\.(?:com|watch)$/,name:"Facebook",icon:"fa-facebook",bgStyle:"background-color:#1877F2;"},{match:/(^|\.)instagram\.com$/,name:"Instagram",icon:"fa-instagram",bgClass:"bg-gradient-to-br from-purple-600 via-pink-500 to-amber-400"},{match:/(^|\.)reddit\.com$/,name:"Reddit",icon:"fa-reddit-alien",bgStyle:"background-color:#FF4500;"},{match:/(^|\.)(x\.com|twitter\.com)$/,name:"X",icon:"fa-x-twitter",bgStyle:"background-color:#000000;"},{match:/(^|\.)threads\.net$/,name:"Threads",icon:"fa-threads",bgStyle:"background-color:#000000;"},{match:/(^|\.)(youtube\.com|youtu\.be)$/,name:"YouTube",icon:"fa-youtube",bgStyle:"background-color:#FF0000;"},{match:/(^|\.)linkedin\.com$/,name:"LinkedIn",icon:"fa-linkedin",bgStyle:"background-color:#0A66C2;"},{match:/(^|\.)pinterest\.(com|[a-z]{2,3})$/,name:"Pinterest",icon:"fa-pinterest",bgStyle:"background-color:#E60023;"},{match:/(^|\.)(github\.com|github\.io)$/,name:"GitHub",icon:"fa-github",bgStyle:"background-color:#24292F;"},{match:/(^|\.)spotify\.com$/,name:"Spotify",icon:"fa-spotify",bgStyle:"background-color:#1DB954;"},{match:/(^|\.)discord\.(com|gg)$/,name:"Discord",icon:"fa-discord",bgStyle:"background-color:#5865F2;"},{match:/(^|\.)twitch\.tv$/,name:"Twitch",icon:"fa-twitch",bgStyle:"background-color:#9146FF;"},{match:/(^|\.)whatsapp\.com$/,name:"WhatsApp",icon:"fa-whatsapp",bgStyle:"background-color:#25D366;"},{match:/(^|\.)(telegram\.org|telegram\.me)$|^t\.me$/,name:"Telegram",icon:"fa-telegram",bgStyle:"background-color:#26A5E4;"},{match:/(^|\.)mastodon\.(social|online)$/,name:"Mastodon",icon:"fa-mastodon",bgStyle:"background-color:#6364FF;"}].find(t=>t.match.test(i))||null},faviconURL(){return this.hostname?"https://www.google.com/s2/favicons?domain="+encodeURIComponent(this.hostname)+"&sz=128":""},displayedTitle(){return!this.title||this.brand&&this.title.trim().toLowerCase()===this.brand.name.toLowerCase()?"":this.title},prettyUrl(){try{const i=new URL(this.displayedURL),e=i.hostname.replace(/^www\./,"");let t=i.pathname+i.search;try{t=decodeURIComponent(t)}catch{}t==="/"&&(t="");let d=e+t;return d.length>80&&(d=d.slice(0,79)+"…"),d}catch{return this.hostname||this.displayedURL}},fallbackDescription(){return this.showDescription?"":this.brand&&this.displayedTitle?"View this on "+this.brand.name:this.imagePath&&this.displayedTitle?"":this.prettyUrl}},methods:{visitURL(){(!this.is_preview||this.is_preview==null)&&this.$refs["linkPreview-"+this.displayedURL].click()},closeURL(){this.showingURLModal=!1},toggleTooltip(i){this.showingTooltip=i},getLinkPreview:function(){axios.post("/ajax/getLinkPreview",{url:this.displayedURL,internal:this.isInternal},{headers:this.headers,timeout:8e3,__retryIdempotent:!0,__maxRetries:0}).then(i=>{i.data&&i.data!="error"?(i.data.title&&(this.title=i.data.title),i.data.image&&(this.imagePath=i.data.image),i.data.website&&(this.siteName=i.data.website),i.data.mediaType&&(this.mediaType=i.data.mediaType),i.data.mediaUrl&&(this.mediaUrl=i.data.mediaUrl),i.data.avatarImage&&(this.avatarImage=i.data.avatarImage),i.data.description&&(i.data.description.length>500?this.description=i.data.description.substring(0,500)+"...":this.description=i.data.description,i.data.descriptionSetToUrl&&(this.descriptionHasLink=!0),this.showDescription=!i.data.descriptionSetToUrl&&this.description!=this.displayedURL&&this.description!="")):this.success=!1,this.loaded=!0}).catch(i=>{this.success=!1,this.loaded=!0})}}
2,directives:{focus:{inserted(i){i.focus()}}}},Kn=["href"],Gn={key:0},Qn={key:0,class:"flex items-center gap-1.5 text-[11px] jumbo:text-[13px] font-bold uppercase tracking-[0.1em] text-gray-500 dark:text-gray-400"},Jn={class:"truncate"},Xn={key:1,class:"text-[15px] sm:text-base jumbo:text-[17px] font-semibold tracking-tight leading-snug text-gray-900 dark:text-gray-100 break-all"},Zn=["src"],$n={key:1},ea={class:"w-full bg-black flex justify-center"},ta=["src"],ia={class:"py-3 sm:py-4 px-4 sm:px-5 space-y-1"},sa={key:0,class:"flex items-center gap-1.5 text-[11px] jumbo:text-[13px] font-bold uppercase tracking-[0.1em] text-gray-500 dark:text-gray-400"},oa={class:"truncate"},na={key:1,class:"text-[15px] sm:text-base font-semibold tracking-tight leading-snug text-gray-900 dark:text-gray-100 break-all"},aa=["src"],ra=["src"],la={key:0,class:"opacity-0 absolute top-2 right-2 bg-white/90 dark:bg-zinc-900/90 backdrop-blur-sm h-8 w-8 rounded-full flex items-center justify-center z-10 shadow-sm transition-opacity duration-200 sm:group-hover:opacity-100"},da={key:0,class:"opacity-0 absolute top-2 right-2 bg-white/90 dark:bg-zinc-900/90 backdrop-blur-sm h-8 w-8 rounded-full flex items-center justify-center z-10 shadow-sm transition-opacity duration-200 sm:group-hover:opacity-100"},ca={class:"h-16 w-16 rounded-xl bg-white dark:bg-zinc-900 shadow-sm ring-1 ring-gray-200/70 dark:ring-zinc-700 flex items-center justify-center transition duration-500 ease-out group-hover:scale-[1.04]"},ua=["src"],ha={key:0,class:"opacity-0 absolute top-2 right-2 bg-white/90 dark:bg-zinc-900/90 backdrop-blur-sm h-8 w-8 rounded-full flex items-center justify-center z-10 shadow-sm transition-opacity duration-200 sm:group-hover:opacity-100"},ma=["role","tabindex","aria-label"],fa={key:0,class:"flex items-center gap-1.5 text-[11px] jumbo:text-[13px] font-bold uppercase tracking-[0.1em] text-gray-500 dark:text-gray-400"},ga=["src"],pa={class:"truncate"},_a={key:1,class:"text-[15px] sm:text-base jumbo:text-[17px] jumbo:sm:text-[18px] font-semibold tracking-tight leading-snug text-gray-900 dark:text-gray-100 group-hover:text-gray-700 dark:group-hover:text-gray-200 transition-colors"},ba={key:3,class:"text-[13px] jumbo:text-[15px] leading-[1.5] text-gray-500 dark:text-gray-400"},ya={key:4,class:"flex justify-end pt-1"},wa={key:1,class:"text-center"},va={key:2,class:"flex bg-gray-50 dark:bg-zinc-800/40 p-4"};function xa(i,e,t,d,o,n){return a(),r("div",{class:h(["group overflow-hidden bg-white dark:bg-zinc-900 transition-colors duration-200",[t.is_embedded_post?"rounded-b-xl":t.is_post&&!t.is_article?"border-t border-gray-100 dark:border-zinc-800":"border border-gray-200/70 dark:border-zinc-800 rounded-xl",!this.is_preview||this.is_preview==null?"cursor-pointer hover:bg-gray-50/60 dark:hover:bg-zinc-900/80":""]])},[s("a",{ref:"linkPreview-"+i.displayedURL,href:i.displayedURL,class:"hidden",target:"_blank"},null,8,Kn),i.loaded&&i.success?(a(),r("div",Gn,[i.mediaType==="audio"?(a(),r("div",{key:0,onClick:e[0]||(e[0]=A(()=>{},["stop"])),class:"p-4 sm:p-5 space-y-2.5"},[i.siteName?(a(),r("div",Qn,[e[7]||(e[7]=s("i",{class:"far fa-music text-gray-400 dark:text-gray-500"},null,-1)),s("span",Jn,m(i.siteName),1)])):c("",!0),n.displayedTitle?(a(),r("h3",Xn,m(n.displayedTitle),1)):c("",!0),s("audio",{controls:"",preload:"none",src:i.mediaUrl,class:"w-full mt-1"},"Your browser does not support audio playback.",8,Zn)])):i.mediaType==="video"?(a(),r("div",$n,[s("div",ea,[s("video",{controls:"",preload:"metadata",src:i.mediaUrl,class:"w-full max-h-[26rem]"},"Your browser does not support video playback.",8,ta)]),s("div",ia,[i.siteName?(a(),r("div",sa,[e[8]||(e[8]=s("i",{class:"far fa-film text-gray-400 dark:text-gray-500"},null,-1)),s("span",oa,m(i.siteName),1)])):c("",!0),n.displayedTitle?(a(),r("h3",na,m(n.displayedTitle),1)):c("",!0)])])):(a(),r(T,{key:2},[i.imagePath?(a(),r("div",{key:0,onClick:e[1]||(e[1]=(...l)=>n.visitURL&&n.visitURL(...l)),class:"relative w-full flex justify-center items-center overflow-hidden bg-gray-100 dark:bg-zinc-800"},[s("img",{alt:"Cover Image",class:h(["h-56 object-cover w-full transition duration-500 ease-out group-hover:scale-[1.02]",[t.is_post&&!t.is_embedded_post&&!t.is_trending&&i.windowWidth>640?"opacity-75":""]]),src:i.imagePath,style:V(i.blur)},null,14,aa),t.is_post&&!t.is_embedded_post&&!t.is_trending&&i.windowWidth>640?(a(),r("img",{key:0,alt:"Cover Image",class:"absolute top-0 h-full object-cover max-w-574 transition duration-500 ease-out group-hover:scale-[1.02]",src:i.imagePath},null,8,ra)):c("",!0),p(L,{name:"fade-in-out"},{default:P(()=>[!t.is_preview||t.is_preview!=null?(a(),r("div",la,[...e[9]||(e[9]=[s("i",{class:"far fa-arrow-up-right-from-square text-[12px] jumbo:text-[14px] text-gray-700 dark:text-gray-200"},null,-1)])])):c("",!0)]),_:1})])):n.brand?(a(),r("div",{key:1,onClick:e[2]||(e[2]=(...l)=>n.visitURL&&n.visitURL(...l)),class:h(["relative w-full flex justify-center items-center h-32 sm:h-36 overflow-hidden",n.brand.bgClass]),style:V(n.brand.bgStyle)}
2,[s("i",{class:h([["fa-brands",n.brand.icon],"text-white text-[68px] sm:text-[84px] leading-none drop-shadow-sm transition duration-500 ease-out group-hover:scale-[1.04]"])},null,2),p(L,{name:"fade-in-out"},{default:P(()=>[!t.is_preview||t.is_preview!=null?(a(),r("div",da,[...e[10]||(e[10]=[s("i",{class:"far fa-arrow-up-right-from-square text-[12px] jumbo:text-[14px] text-gray-700 dark:text-gray-200"},null,-1)])])):c("",!0)]),_:1})],6)):n.faviconURL&&!i.faviconFailed?(a(),r("div",{key:2,onClick:e[4]||(e[4]=(...l)=>n.visitURL&&n.visitURL(...l)),class:"relative w-full flex justify-center items-center h-32 sm:h-36 overflow-hidden bg-gradient-to-br from-gray-50 to-gray-200 dark:from-zinc-800 dark:to-zinc-950"},[s("div",ca,[s("img",{alt:"Image",src:n.faviconURL,onError:e[3]||(e[3]=l=>i.faviconFailed=!0),class:"w-9 h-9"},null,40,ua)]),p(L,{name:"fade-in-out"},{default:P(()=>[!t.is_preview||t.is_preview!=null?(a(),r("div",ha,[...e[11]||(e[11]=[s("i",{class:"far fa-arrow-up-right-from-square text-[12px] jumbo:text-[14px] text-gray-700 dark:text-gray-200"},null,-1)])])):c("",!0)]),_:1})])):c("",!0),s("div",{role:t.is_preview?void 0:"link",tabindex:t.is_preview?void 0:0,"aria-label":(n.displayedTitle||i.siteName||"Open link")+" (opens in a new tab)",onKeydown:e[5]||(e[5]=N(A((...l)=>n.visitURL&&n.visitURL(...l),["prevent"]),["enter"])),onClick:e[6]||(e[6]=(...l)=>n.visitURL&&n.visitURL(...l)),class:"py-3 sm:py-4 px-4 sm:px-5 space-y-1.5"},[i.siteName!=""?(a(),r("div",fa,[i.avatarImage?(a(),r("img",{key:0,alt:"Profile Photo",class:"w-4 h-4 rounded-full",src:i.avatarImage},null,8,ga)):c("",!0),s("span",pa,m(i.siteName),1)])):c("",!0),n.displayedTitle?(a(),r("h3",_a,m(n.displayedTitle),1)):c("",!0),i.showDescription?(a(),r("p",{key:2,class:h(["text-[13px] jumbo:text-[15px] leading-[1.5] text-gray-600 dark:text-gray-400 line-clamp-2",[i.descriptionHasLink?"break-all sm:break-words sm:truncate":""]])},m(i.description),3)):n.fallbackDescription?(a(),r("p",ba,m(n.fallbackDescription),1)):c("",!0),!i.imagePath&&!n.brand&&(!n.faviconURL||i.faviconFailed)?(a(),r("div",ya,[...e[12]||(e[12]=[s("i",{class:"far fa-arrow-up-right-from-square text-xs jumbo:text-[14px] text-gray-400 dark:text-gray-500"},null,-1)])])):c("",!0)],40,ma)],64))])):i.loaded&&!i.success?(a(),r("div",wa,[...e[13]||(e[13]=[s("p",{class:"p-3 sm:p-4 text-sm jumbo:text-[16px] text-gray-500 dark:text-gray-400"},[s("i",{class:"fas fa-fw fa-info-circle mr-1"}),_("Whoops! There was an issue. This link is unavailable.")],-1)])])):(a(),r("div",va,[...e[14]||(e[14]=[s("i",{class:"far fa-2x fa-spinner fa-spin mx-auto text-gray-400"},null,-1)])]))],2)}const ka=w(Yn,[["render",xa]]),Ba={created(){b.on("showingImage-"+this.unique_id,i=>{this.showingLightbox=!this.showingLightbox,this.showingLightbox==!0?(this.lastFocusedElement=document.activeElement,this.$nextTick(()=>{var e;return(e=this.$refs.lightbox)==null?void 0:e.focus()}),this.lockBodyScroll(),b.emit("modalOpened")):(this.$nextTick(()=>{var e;(e=this.lastFocusedElement)!=null&&e.isConnected&&this.lastFocusedElement.focus()}),this.unlockBodyScroll(),b.emit("modalClosed"),this.imagePath=this.path,this.currentImage=this.embed_paths_array?this.embed_paths_array.indexOf(this.path):"")})},mounted(){window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth})},props:{image_description:{type:String,default:"Uploaded Image"},path:String,embeddable_type:String,embeddable_id:[Number,String],is_notification:Boolean,is_profile:{type:Boolean,default:!1},id:{default:0},index:{type:Number,default:0},is_lone_photo:{type:Boolean,default:!1},is_user:{type:Boolean,default:!1},is_post_edit:{type:Boolean,default:!1},image_parent_path:String,multiple:Boolean,full_height:Boolean,is_first_image:{type:Boolean,default:!1},embed_paths_array:Array,is_parent_comment:{type:Boolean,default:!1},is_embedded_post:{type:Boolean,default:!1},is_trending:{type:Boolean,default:!1},is_preview:{type:Boolean,default:!1}},data(){return{showingLightbox:!1,windowWidth:window.innerWidth,unique_id:"IMG"+Math.random().toString(16),currentImage:this.embed_paths_array?this.embed_paths_array.indexOf(this.path):"",imagePath:this.path,loadedImage:!1,imageFadedIn:!1,containerHeight:"180px",heightResetTimeout:null}},beforeUnmount(){this.heightResetTimeout&&(clearTimeout(this.heightResetTimeout),this.heightResetTimeout=null),this.showingLightbox&&this.unlockBodyScroll()},computed:{imgStyle(){const i={opacity:this.imageFadedIn?1:0,transition:"opacity 280ms ease-out"};return!this.is_profile&&!this.is_parent_comment&&(i.cursor="zoom-in"),i},roundedBottom(){if(this.is_embedded_post)if(this.multiple){var i=this.embed_paths_array.length;if(i==2){if(this.index==0)return"rounded-bl-lg";if(this.index==1)return"rounded-br-lg"}else if(i==3){if(this.index==0)return"rounded-bl-lg";if(this.index==2)return"rounded-br-lg"}else if(i==4){if(this.index==2)return"rounded-bl-lg";if(this.index==3)return"rounded-br-lg"}else if(i==5){if(this.index==2)return"rounded-bl-lg";if(this.index==4)return"rounded-br-lg"}else if(i==6){if(this.index==4)return"rounded-bl-lg";if(this.index==5)return"rounded-br-lg"}}
2else{var e=document.getElementById("mediatag-"+this.id),t=document.getElementById("embedImage-"+this.id);if(t&&e&&t.getBoundingClientRect().width==e.clientWidth)return"rounded-b-lg"}return""}},methods:{toggleLightbox(){this.is_parent_comment||b.emit("showingImage-"+this.unique_id)},lockBodyScroll(){if(typeof window>"u")return;const i=window.scrollY||document.documentElement.scrollTop||0;this._savedScrollY=i,this._prevBodyOverflow=document.body.style.overflow,this._prevBodyPosition=document.body.style.position,this._prevBodyTop=document.body.style.top,this._prevBodyWidth=document.body.style.width,document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top="-"+i+"px",document.body.style.width="100%"},unlockBodyScroll(){typeof window>"u"||(document.body.style.overflow=this._prevBodyOverflow||"",document.body.style.position=this._prevBodyPosition||"",document.body.style.top=this._prevBodyTop||"",document.body.style.width=this._prevBodyWidth||"",typeof this._savedScrollY=="number"&&(window.scrollTo(0,this._savedScrollY),this._savedScrollY=null))},showGlass(){document.getElementById("initialImage").style.cursor='<i class="fas fa-search-plus"></i>'},loadImage(){this.$nextTick(()=>{!this.is_preview&&!this.loadedImage&&(b.emit("imageEmbedLoaded-"+this.embeddable_id),this.loadedImage=!0);const i=this.$refs.embedImg;if(i){const e=i.getBoundingClientRect().height||i.naturalHeight;e&&(this.containerHeight=e+"px")}requestAnimationFrame(()=>{this.imageFadedIn=!0}),this.heightResetTimeout&&clearTimeout(this.heightResetTimeout),this.heightResetTimeout=setTimeout(()=>{this.containerHeight="auto"},360)})},deleteImage(){this.is_preview||(this.is_post_edit?b.emit("embedDelete-post-"+this.embeddable_id,this.id):this.$swalStyled({title:"Delete this photo?",text:"This action can’t be undone.",destructive:!0,confirmText:"Yes, delete photo",cancelText:"Cancel"}).then(i=>{this.deleting=!0,i.value&&axios.post("/ajax/photo/"+this.id+"/delete").then(e=>{e.data&&e.data!="error"&&(b.emit("alert",{message:"The photo was deleted.",subtext:"",success:!0}),b.emit("photoDeleted"))}).catch(e=>{this.$swalStyled({title:"Whoops! Something went wrong.",text:"The photo has NOT been deleted. It's a disaster.",icon:"error",showCancelButton:!1,confirmText:"OK"})})}))},leftPress(){var i;(i=this.embed_paths_array)!=null&&i.length&&(this.currentImage===0&&(this.currentImage=this.embed_paths_array.length),this.currentImage=this.currentImage-1,this.imagePath=this.embed_paths_array[this.currentImage])},rightPress(){var i;(i=this.embed_paths_array)!=null&&i.length&&(this.currentImage=this.currentImage+1,this.currentImage=this.currentImage%this.embed_paths_array.length,this.imagePath=this.embed_paths_array[this.currentImage])},handleKeydown(i){switch(i.keyCode){case 27:this.showingLightbox&&this.toggleLightbox();break;case 37:this.showingLightbox&&this.leftPress();break;case 39:this.showingLightbox&&this.rightPress();break}}}},Ca=["alt","role","tabindex","aria-label","dusk","id","src"],Ta={key:0},Sa=["href"],Ea={class:"relative max-h-screen max-w-screen flex items-center justify-center"},Aa={class:"transition-all relative flex items-center"},Pa=["alt","id","src"];function La(i,e,t,d,o,n){const l=M("focus-trap");return a(),r("div",{class:h([[t.is_profile?"rounded-lg":"",t.embeddable_type!="App\\Article"?"bg-gray-100 border-t border-gray-200":"",t.is_embedded_post&&t.multiple?"rounded-b-lg":""],"w-full"])},[s("div",{class:h([[t.is_profile?"hover-scale-105":""],"w-full text-center relative"])},[s("div",{class:"relative overflow-hidden w-full",style:V({height:o.containerHeight,transition:"height 320ms cubic-bezier(0.22, 1, 0.36, 1)"})},[s("img",{alt:t.image_description,role:t.is_parent_comment?null:"button",tabindex:t.is_parent_comment?null:0,"aria-label":t.is_parent_comment?null:"Enlarge image: "+(t.image_description||"Uploaded Image"),onKeydown:[e[0]||(e[0]=N(A((...u)=>n.toggleLightbox&&n.toggleLightbox(...u),["prevent"]),["enter"])),e[1]||(e[1]=N(A((...u)=>n.toggleLightbox&&n.toggleLightbox(...u),["prevent"]),["space"]))],ref:"embedImg",dusk:"profile-image-"+t.id,onLoad:e[2]||(e[2]=u=>n.loadImage()),onClick:e[3]||(e[3]=(...u)=>n.toggleLightbox&&n.toggleLightbox(...u)),id:"embedImage-"+t.id,src:t.path,class:h(["img img-embed mx-auto",[!t.is_profile&&t.embeddable_type=="App\\Comment"?"object-scale-down":"inline-block",t.multiple?"object-cover w-full":t.is_profile?"":"object-scale-down",t.embeddable_type=="App\\Comment"?"h-fill":t.embeddable_type=="App\\Headline"?"h-56":"",t.is_notification?"h-28":"",t.is_profile?"cursor-pointer h-fill object-cover rounded-lg w-full":"",t.multiple?t.is_trending?"h-40":"h-56":"",n.roundedBottom]]),style:V(n.imgStyle)}
2,null,46,Ca)],4),t.is_lone_photo||t.is_post_edit?(a(),r("div",Ta,[t.is_user&&(!t.is_post_edit||t.is_post_edit&&t.embed_paths_array.length>1)?(a(),E(L,{key:0,name:"fade",mode:"out-in"},{default:P(()=>[s("span",{onClick:e[4]||(e[4]=u=>n.deleteImage()),class:"absolute top-0 right-0 inline-flex items-center p-1 rounded-bl-lg rounded-tr-lg text-xs font-bold leading-4 cursor-pointer focus:outline-none text-lg opacity-75 hover:opacity-100"},[...e[12]||(e[12]=[s("button",{type:"button","aria-label":"Delete image",class:"inline-flex items-center text-center bg-gray-700 rounded-full shadow transition duration-300 ease-in-out cursor-pointer ml-1 p-2 text-white"},[s("i",{class:"far fa-trash-alt mx-auto fa-fw"})],-1)])])]),_:1})):c("",!0),t.is_post_edit?c("",!0):(a(),E(L,{key:1,name:"fade",mode:"out-in"},{default:P(()=>[s("a",{"aria-label":"View image post",href:t.image_parent_path,target:"_blank",class:"absolute top-0 left-0 inline-flex items-center p-1 rounded-bl-lg rounded-tr-lg text-xs font-bold leading-4 cursor-pointer focus:outline-none text-lg opacity-75 hover:opacity-100"},[...e[13]||(e[13]=[s("span",{class:"inline-flex items-center text-center bg-gray-700 rounded-full shadow transition duration-300 ease-in-out cursor-pointer ml-1 p-2 text-white"},[s("i",{class:"far fa-external-link-alt mx-auto fa-fw"})],-1)])],8,Sa)]),_:1}))])):c("",!0)],2),(a(),E(U,{to:"body"},[o.showingLightbox?S((a(),r("div",{key:0,ref:"lightbox",role:"dialog","aria-modal":"true","aria-label":"Image viewer",tabindex:"-1",onKeydown:e[11]||(e[11]=A((...u)=>n.handleKeydown&&n.handleKeydown(...u),["stop"])),class:"fixed inset-0 z-50 flex items-center justify-center px-4 py-4 sm:px-0 sm:py-0"},[p(L,{name:"fade-in-out"},{default:P(()=>[s("div",{class:"fixed inset-0 transition-opacity",onClick:e[5]||(e[5]=(...u)=>n.toggleLightbox&&n.toggleLightbox(...u))},[...e[14]||(e[14]=[s("div",{class:"absolute inset-0 bg-gray-500 opacity-90"},null,-1)])])]),_:1}),(t.is_profile||t.multiple)&&o.windowWidth>=640?(a(),r("button",{key:0,type:"button","aria-label":"Previous image",onClick:e[6]||(e[6]=u=>n.leftPress()),class:"ml-10 absolute left-0 fas fa-chevron-left text-white hover:text-gray-200 text-4xl cursor-pointer z-50"})):c("",!0),(t.is_profile||t.multiple)&&o.windowWidth>=640?(a(),r("button",{key:1,type:"button","aria-label":"Next image",onClick:e[7]||(e[7]=u=>n.rightPress()),class:"mr-10 absolute right-0 fas fa-chevron-right text-white hover:text-gray-200 text-4xl cursor-pointer z-50"})):c("",!0),p(L,{name:"scale-and-translate"},{default:P(()=>[s("div",Ea,[s("button",{type:"button","aria-label":"Close image viewer",class:"h-8 w-8 absolute top-2 right-2 p-2 cursor-pointer hover:bg-gray-200 transition-150 rounded-full flex items-center text-white hover:text-gray-700 z-50",onClick:e[8]||(e[8]=(...u)=>n.toggleLightbox&&n.toggleLightbox(...u))},[...e[15]||(e[15]=[s("i",{class:"far fa-times text-2xl mx-auto","aria-hidden":"true"},null,-1)])]),(t.is_profile||t.multiple)&&o.windowWidth<640?(a(),r("button",{key:0,type:"button","aria-label":"Previous image",onClick:e[9]||(e[9]=u=>n.leftPress()),class:"ml-1 absolute left-0 top-52 fas fa-chevron-left text-white hover:text-gray-200 text-4xl cursor-pointer z-50"})):c("",!0),(t.is_profile||t.multiple)&&o.windowWidth<640?(a(),r("button",{key:1,type:"button","aria-label":"Next image",onClick:e[10]||(e[10]=u=>n.rightPress()),class:"mr-1 absolute right-0 top-52 fas fa-chevron-right text-white hover:text-gray-200 text-4xl cursor-pointer z-50"})):c("",!0),s("div",Aa,[s("img",{alt:o.imagePath===t.path?t.image_description:"Uploaded Image",id:"lightboxImage-"+this.id,src:o.imagePath,class:h(["img lightbox-image px-6 sm:px-16 md:px-12 lg:px-10 sm:mx-10",[o.windowWidth<600?"pt-12":""]])},null,10,Pa)])])]),_:1})],32)),[[l]]):c("",!0)]))],2)}const Ia=w(Ba,[["render",La]]),Na={created(){b.on("tweetToggled",i=>{this.allowed&&this.rebuildTweet()})},mounted(){this.allowed&&(this.$nextTick(()=>{this.buildTweet()}),this.observeDarkMode(),setTimeout(()=>{this.tweetInitialLoading==!0&&(this.tweetInitialLoading=!1,this.tweetLoading=!1,this.tweetERROR=!0)},1e4))},beforeUnmount(){this.darkModeObserver&&this.darkModeObserver.disconnect()},watch:{allowed(i){i&&this.$nextTick(()=>{this.buildTweet(),this.observeDarkMode()})}},props:{id:String,centered:{type:Boolean,default:!1},is_embedded_post:{type:Boolean,default:!1},show_thread:{type:Boolean,default:!0}},data(){return{tweetERROR:!1,tweetLoading:!0,tweetInitialLoading:!0,showingTweet:!1,currentTheme:"light",darkModeObserver:null}},computed:{allowed(){return J("embeds")}},methods:{getTweetTheme(){return document.documentElement.classList.contains("dark")?"dark":"light"},clearTweet(){var i=document.getElementById("tweet-container-"+this.id
2);if(i)for(;i.firstChild;)i.removeChild(i.firstChild)},rebuildTweet(){this.clearTweet(),this.showingTweet=!1,this.tweetERROR=!1,this.tweetLoading=!0,this.tweetInitialLoading=!0,this.$nextTick(()=>{this.buildTweet()})},observeDarkMode(){window.MutationObserver&&(this.currentTheme=this.getTweetTheme(),this.darkModeObserver=new MutationObserver(()=>{const i=this.getTweetTheme();i!==this.currentTheme&&(this.currentTheme=i,this.rebuildTweet())}),this.darkModeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}))},buildTweet(){var i=this;this.currentTheme=this.getTweetTheme(),this.ensureTwitterWidgets().then(function(e){return e.widgets.createTweet(i.id,i.$refs.twitterBox,{theme:i.currentTheme,conversation:i.show_thread?"":"none"})}).then(function(e){e==null?i.tweetERROR=!0:(i.showingTweet=!0,i.tweetERROR=!1),i.tweetLoading=!1,i.tweetInitialLoading=!1}).catch(function(){i.tweetERROR=!0,i.tweetLoading=!1,i.tweetInitialLoading=!1})},ensureTwitterWidgets(){return window.twttr&&window.twttr.widgets&&window.twttr.widgets.createTweet?Promise.resolve(window.twttr):(window.__twitterWidgetsPromise||(window.__twitterWidgetsPromise=new Promise((i,e)=>{const t=document.querySelector('script[src*="platform.twitter.com/widgets.js"]'),d=t||document.createElement("script");let o=null;const n=()=>{clearTimeout(o),window.twttr&&window.twttr.widgets&&window.twttr.widgets.createTweet?i(window.twttr):e()};o=setTimeout(()=>{e()},8e3),d.onload=n,d.onerror=()=>{clearTimeout(o),e()},t||(d.async=!0,d.src="https://platform.twitter.com/widgets.js",document.head.appendChild(d))}).catch(i=>{throw window.__twitterWidgetsPromise=null,i}
2)),window.__twitterWidgetsPromise)}}},Da={key:0,class:"w-full"},Va={key:1,id:"tweet-component-container",class:"w-full"},Ra={key:0,class:"h-24 p-4 flex items-center justify-center"},za={key:1,class:"w-full mt-2 text-left"},Ma={class:"overflow-hidden"},Oa={class:"p-4 flex items-start"},ja={class:"flex-1 text-gray-600 dark:text-gray-300"},Ua={class:"font-medium text-sm text-center",style:{"line-height":"1.3"}},Ha={key:0,class:"w-full text-red-600 hover:underline hover:text-red-400",href:"/tweet-help"},Wa=["href"],qa=["id"];function Fa(i,e,t,d,o,n){const l=C("consent-placeholder");return n.allowed?(a(),r("div",Va,[o.tweetInitialLoading||o.tweetLoading||o.tweetERROR?(a(),r("div",{key:0,class:h(["w-full pointer-events-auto",[t.centered?"flex justify-center":"bg-gray-100 dark:bg-zinc-900 border-t border-gray-200 dark:border-zinc-800",t.is_embedded_post?"rounded-b-lg":""]])},[o.tweetInitialLoading?(a(),r("div",Ra,[...e[0]||(e[0]=[s("i",{class:"fa fa-spinner fa-spin mr-1"},null,-1),_(" X Post Loading...",-1)])])):(a(),r("div",za,[s("div",Ma,[s("div",Oa,[s("div",ja,[s("div",Ua,[o.tweetERROR?(a(),r("a",Ha,[...e[1]||(e[1]=[s("p",null," There was an issue loading this X post. Click here to troubleshoot. ",-1)])])):c("",!0),o.tweetLoading||o.tweetERROR?(a(),r("a",{key:1,class:"w-full text-blue-600 hover:underline hover:text-blue-400",target:"_blank",href:"https://twitter.com/Not_the_Bee/status/"+t.id},"You can click here to view this X post on Twitter.",8,Wa)):c("",!0)])])])])]))],2)):c("",!0),s("div",{id:"tweet-container-"+t.id,class:h([o.showingTweet?"tweet-embed-shell w-full py-2":"",t.centered?"flex justify-center":"bg-gray-100 dark:bg-zinc-900 border-t border-gray-200 dark:border-zinc-800",t.is_embedded_post?"rounded-b-lg":""]),ref:"twitterBox"},null,10,qa)])):(a(),r("div",Da,[p(l,{label:"X post",provider:"X (Twitter)",link:"https://twitter.com/i/status/"+t.id,centered:t.centered},null,8,["link","centered"])]))}const Ya=w(Na,[["render",Fa]]),Ka={mounted(){this.initializeEmbed()},watch:{allowed(i){i&&this.initializeEmbed()}},methods:{initializeEmbed(){this.allowed&&this.getVideo()},getVideo(){const i=Q(this.url||"");this.video_id=i||"",this.youtubeError=!i,this.isLoading=!1,this.embedUrl=i?"https://www.youtube-nocookie.com/embed/"+i:""}},props:["url","centered","is_preview","is_latest_video","is_embedded_post","thumbnail"],data(){return{youtubeError:!1,isLoading:!0,video_id:"",embedUrl:""}},computed:{allowed(){return J("embeds")},watchUrl(){const i=this.url?Q(this.url.startsWith("http")?this.url:"https://"+this.url):null;return i?"https://www.youtube.com/watch?v="+i:this.url||""}}},Ga={key:0},Qa={key:1},Ja={key:0,class:"h-24 p-4 flex items-center justify-center"},Xa={key:1,class:"youtube-container"},Za=["title","src"];function $a(i,e,t,d,o,n){const l=C("consent-placeholder");return n.allowed?(a(),r("div",Qa,[o.isLoading?(a(),r("span",Ja,[...e[0]||(e[0]=[s("i",{class:"fa fa-spinner fa-spin mr-1"},null,-1),_(" Video Loading...",-1)])])):c("",!0),!o.youtubeError&&!o.isLoading?(a(),r("div",Xa,[s("iframe",{class:h(["youtube-video",[t.is_embedded_post?"rounded-b-lg":""]]),title:"Youtube Video for video ID: "+o.video_id,src:o.embedUrl,frameborder:"0",allowfullscreen:""},null,10,Za)])):c("",!0),o.youtubeError?(a(),r("div",{key:2,class:h(["w-full mb-2",{"flex justify-center":t.centered}])},[...e[1]||(e[1]=[Z('<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 video is either not able to be shared or no longer exists. </div></div></div></div></div>',1)])],2)):c("",!0)])):(a(),r("div",Ga,[p(l,{label:"YouTube video",provider:"YouTube",link:n.watchUrl,centered:!!t.centered},null,8,["link","centered"])]))}const er=w(Ka,[["render",$a]]),tr={props:["articleId","title","path","editPath","videoId","isBee"],data(){let i=!1;try{i=!!sessionStorage.getItem("premiere-dismissed-"+this.articleId)}catch{}return{visible:!1,dismissed:i}},computed:{storageKey(){return"premiere-dismissed-"+this.articleId},videoUrl(){return"https://www.youtube.com/watch?v="+this.videoId}},mounted(){if(this.dismissed)return;const i=()=>{setTimeout(()=>{this.visible=!0},150)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}
2,methods:{dismiss(){try{sessionStorage.setItem(this.storageKey,"1")}catch{}this.visible=!1},enter(i,e){i.style.opacity="0",i.style.transform="translate3d(0, -16px, 0)",i.style.willChange="opacity, transform",i.offsetHeight,i.style.transition="transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms ease-out",requestAnimationFrame(()=>{i.style.opacity="1",i.style.transform="translate3d(0, 0, 0)"});const t=d=>{d.target!==i||d.propertyName!=="transform"||(i.removeEventListener("transitionend",t),i.style.transition="",i.style.transform="",i.style.opacity="",i.style.willChange="",e())};i.addEventListener("transitionend",t)},beforeLeave(i){i.style.willChange="opacity, transform",i.style.transition="transform 300ms ease, opacity 250ms ease"},leave(i,e){requestAnimationFrame(()=>{i.style.opacity="0",i.style.transform="translate3d(0, -8px, 0)"});const t=d=>{d.target!==i||d.propertyName!=="transform"||(i.removeEventListener("transitionend",t),i.style.willChange="",e())};i.addEventListener("transitionend",t)}}},ir=["href"],sr={class:"text-center text-lg md:text-xl font-bold leading-[1.2] tracking-tight text-gray-900 dark:text-gray-100 mb-3 group-hover:underline"},or={key:0,class:"flex justify-center mb-3"},nr=["href"],ar={class:"w-full mx-auto",style:{"max-width":"680px"}},rr={class:"overflow-hidden rounded-lg shadow-lg"},lr={class:"mt-3 flex justify-center"},dr=["href"];function cr(i,e,t,d,o,n){const l=C("youtube-embed");return a(),E(L,{css:!1,onEnter:n.enter,onBeforeLeave:n.beforeLeave,onLeave:n.leave},{default:P(()=>[o.visible?(a(),r("section",{key:0,class:h(["w-full pt-2 md:pt-3 relative",t.isBee?"mb-8 md:mb-12":"mb-2 md:mb-4"]),"aria-label":"Premiering now"},[s("button",{type:"button",onClick:e[0]||(e[0]=(...u)=>n.dismiss&&n.dismiss(...u)),"aria-label":"Hide premiering video",class:"absolute top-2 md:top-3 right-2 z-10 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-gray-900/80 hover:bg-gray-900 text-always-w
2hite text-xs font-semibold shadow transition"},[...e[1]||(e[1]=[s("i",{class:"fa fa-times"},null,-1),s("span",null,"Hide video",-1)])]),e[4]||(e[4]=s("div",{class:"flex items-center justify-center mb-3"},[s("span",{class:"inline-flex items-center px-3 py-1 rounded-full text-sm font-bold uppercase tracking-wide bg-red-600 text-always-white shadow"},[s("span",{class:"relative flex h-2 w-2 mr-2"},[s("span",{class:"animate-ping absolute inline-flex h-full w-full rounded-full bg-white opacity-75"}),s("span",{class:"relative inline-flex rounded-full h-2 w-2 bg-white"})]),_(" Premiering Now! ")])],-1)),s("a",{href:t.path,class:"block group"},[s("h2",sr,m(t.title),1)],8,ir),t.editPath?(a(),r("div",or,[s("a",{href:t.editPath,class:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-gray-100 dark:bg-zinc-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-zinc-700 text-xs font-semibold transition"},[...e[2]||(e[2]=[s("i",{class:"far fa-pencil","aria-hidden":"true"},null,-1),_(" Edit video ",-1)])],8,nr)])):c("",!0),s("div",ar,[s("div",rr,[p(l,{url:n.videoUrl,is_latest_video:"true"},null,8,["url"])]),s("div",lr,[s("a",{href:n.videoUrl,target:"_blank",rel:"noopener",class:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-red-600 hover:bg-red-700 text-always-w
2hite text-xs font-semibold shadow transition"},[e[3]||(e[3]=s("i",{class:"fab fa-youtube"},null,-1)),t.isBee?(a(),r(T,{key:0},[_("Watch on YouTube")],64)):(a(),r(T,{key:1},[_("Watch on YouTube to join our LIVE chat conversation")],64))],8,dr)])])],2)):c("",!0)]),_:1},8,["onEnter","onBeforeLeave","onLeave"])}const ur=w(tr,[["render",cr]]),hr={props:{videoUrl:{type:String,required:!0},thumbnail:{type:String,default:null},title:{type:String,default:null},logo:{type:String,default:null},articleUrl:{type:String,default:null}},data(){return{imageLoaded:!1,imageError:!1}},computed:{linkUrl(){return this.articleUrl||this.videoUrl},thumbnailUrl(){if(this.thumbnail&&this.thumbnail.trim()!=="")return this.thumbnail;const i=Q(this.videoUrl);return i?`https://img.youtube.com/vi/${i}/maxresdefault.jpg`:""},displayTitle(){if(!this.title)return null;let i=String(this.title).trim();if(i===""||i==="null"||i==="undefined"||i==="''"||i==='""')return null;try{const e=document.createElement("textarea");e.innerHTML=i,i=e.value}catch{}return i}},methods:{handleImageError(i){this.imageError=!0;const e=Q(this.videoUrl);e&&i.target.src!==`https://img.youtube.com/vi/${e}/maxresdefault.jpg`?i.target.src=`https://img.youtube.com/vi/${e}/maxresdefault.jpg`:e&&(i.target.src=`https://img.youtube.com/vi/${e}/hqdefault.jpg`)}}},mr=["href","rel"],fr=["src","alt"],gr={key:0,class:"absolute inset-0 bg-gray-800 flex items-center justify-center"},pr={class:"absolute top-2 left-2 m-2 flex items-center gap-2 pointer-events-none z-20"}
2,_r=["src"],br={key:1,class:"text-lg text-always-white line-clamp-1 max-w-lg"},yr={key:1,class:"absolute bottom-2 left-0 rounded-sm bg-black/50 dark:bg-black/50 p-2 max-w-sm"};function wr(i,e,t,d,o,n){return a(),r("div",null,[s("a",{id:"youtube-latest-video",href:n.linkUrl,target:"_blank",rel:t.articleUrl?void 0:"noopener noreferrer",class:"block relative group bg-gray-800 w-full h-0 pb-[56.25%] overflow-hidden transition-transform duration-200 ease-in-out",style:{"font-family":"Inter var, ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"}},[s("img",{src:n.thumbnailUrl,alt:t.title||"YouTube Video",class:"absolute top-0 left-0 w-full h-full object-cover transition-opacity duration-200 ease-in-out",onError:e[0]||(e[0]=(...l)=>n.handleImageError&&n.handleImageError(...l)),onLoad:e[1]||(e[1]=l=>o.imageLoaded=!0)},null,40,fr),e[4]||(e[4]=s("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent via-70% to-gray-800 pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out"},null,-1)),e[5]||(e[5]=s("div",{class:"absolute inset-0 bg-gradient-to-t from-transparent via-transparent via-70% to-gray-800 pointer-events-none transition-opacity duration-200 ease-in-out"},null,-1)),o.imageLoaded?c("",!0):(a(),r("div",gr,[...e[2]||(e[2]=[s("div",{class:"w-20 h-20 bg-red-600 rounded-lg flex items-center justify-center shadow-lg"}
2,[s("svg",{class:"w-12 h-12 text-always-white ml-1",fill:"currentColor",viewBox:"0 0 24 24"},[s("path",{d:"M8 5v14l11-7z"})])],-1)])])),s("div",pr,[t.logo?(a(),r("img",{key:0,src:t.logo,alt:"Logo",class:"h-10 w-10 flex-shrink-0 object-contain"},null,8,_r)):c("",!0),n.displayTitle?(a(),r("div",br,m(n.displayTitle),1)):c("",!0)]),e[6]||(e[6]=Z('<div class="absolute inset-0 flex items-center justify-center pointer-events-none"><div class="pointer-events-none absolute box-border block w-[68px] h-12 m-0 p-0 border-0 rounded-xl bg-transparent transition-opacity duration-[250ms] ease-[cubic-bezier(0,0,0.2,1)]" aria-label="Play" title="Play"><svg height="100%" width="100%" viewBox="0 0 68 48" version="1.1"><path fill="#f03" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z"></path><path d="M45,24 27,14 27,34" fill="#fff"></path></svg></div></div>',1)),t.articleUrl?c("",!0):(a(),r("div",yr,[...e[3]||(e[3]=[Z('<div class="flex items-center space-x-3 text-always-w
2hite text-sm font-medium"><div class="!my-0"> Watch on </div><div class="!my-0 !text-always-white !text-sm"><svg height="16px" version="1.1" viewBox="0 0 110 26"><path fill="#fff" d="M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z" id=""></path></svg></div></div>',1)])]))],8,mr)])}const vr=w(hr,[["render",wr]]),xr={created(){},props:[],data(){return{}},methods:{}},kr={class:"shrink-0 h-5 w-5 text-green-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};function Br(i,e,t,d,o,n){return a(),r("svg",kr,[...e[0]||(e[0]=[s("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])])}const Cr=w(xr,[["render",Br]]),Tr={props:["form","url"],data(){return{loading:!1,showSpinner:!1,disabled:!1,bearer:this.$store.getters.bearer}},methods:{submitForm(i){this.showSpinner=!0,this.disabled=!0;var e={};this.bearer!=""&&(e={Authorization:this.bearer});var t=document.getElementById(this.form),d=new FormData(t);axios.post(this.url,d,{headers:e}).then(o=>{if(o.data&&o.data.success==!1)if(o.data.errors){var n=3e3,l="";for(const[u,y]of Object.entries(o.data.errors))for(const[f,B]of Object.entries(y))l+=B+`
3`,n+=1500;b.emit("alert",{message:"There were errors with your input:",subtext:l,success:!1,length:n}),this.showSpinner=!1,this.disabled=!1}else b.emit("alert",{message:o.data.message,success:!1}),this.showSpinner=!1,this.disabled=!1;else b.emit("alert",{message:o.data.message,success:!0}),this.showSpinner=!1,this.disabled=!1})}}},Sr=["disabled"],Er={class:"fas fa-spin fa-spinner mr-1"};function Ar(i,e,t,d,o,n){return a(),r("div",null,[s("button",{type:"button",onClick:e[0]||(e[0]=(...l)=>n.submitForm&&n.submitForm(...l)),class:"btn btn-primary w-full",disabled:o.disabled},[S(s("i",Er,null,512),[[z,o.showSpinner]]),e[1]||(e[1]=_(" Update",-1))],8,Sr)])}const Pr=w(Tr,[["render",Ar]]),Lr={props:{},data(){return{errors:{},success:!1,spinner:!1,showingModal:!1,email:"",emailError:"",emailValidated:!1,emailSent:!1,message:"",isLoading:!1,canSend:!1,emailSendError:!1,bearer:this.$store.getters.bearer}},methods:{closeModal(){b.emit("modalClosed"),this.showingModal=!1},openModal(){this.showingModal=!0,b.emit("modalOpened")},clearValidation(){var i=document.getElementById("email");i.classList.remove("border-red-500"),i.classList.add("border-gray-300"),this.emailSent=!1,this.emailSendError=!1,this.message="",this.emailError=""},validateEmail(){var i=document.getElementById("email"),e=i.value.match(/^([a-zA-Z0-9+_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/);i.value.length==0?(this.emailError="This field cannot be blank.",i.classList.remove("border-gray-300"),i.classList.add("border-red-500"),this.emailValidated=!1):i.value.length>255?(this.emailError="This field must be 255 or less characters",i.classList.remove("border-gray-300"),i.classList.add("border-red-500"),this.emailValidated=!1):e==null?(this.emailError="Please enter a valid email address",i.classList.remove("border-gray-300"),i.classList.add("border-red-500"),this.emailValidated=!1):(this.emailValidated=!0,this.emailSendError=!1,this.clearValidation()),this.emailError==""&&this.emailValidated&&this.$nextTick(()=>{var t={};this.bearer!=""&&(t={Authorization:this.bearer}
3),axios.post("/validateEmail",{email:this.email},{headers:t}).then(d=>{d.data&&d.data!="error"?(this.clearValidation(),this.canSend=!0,this.sendPasswordResetLink()):(this.emailError="This email is not associated with a user.",i.classList.remove("border-gray-300"),i.classList.add("border-red-500"))})})},sendPasswordResetLink(){if(this.canSend){this.isLoading=!0;var i={};this.bearer!=""&&(i={Authorization:this.bearer}),axios.post("/password-reset",{email:this.email},{headers:i}).then(e=>{this.isLoading=!1,e.data&&e.data!="invalid"?(this.emailSent=!0,this.message=e.data.message+" Please check your email and follow the instructions there to reset your password."):e.data=="invalid"&&(this.emailSent=!1,this.emailSendError=!0,this.emailValidated=!1,this.message="Whoops! There was an issue. Please wait a few minutes and try again. If you continue to receive this error, please contact support at "+(this.$store.getters.siteTitle=="Babylon Bee"?"[email protected]":"[email protected]"))})}}}},Ir={role:"status","aria-live":"polite",class:"w-full mb-4"},Nr={class:"w-full bg-green-100 border border-green-500 shadow-md rounded-lg pointer-events-auto mt-2"},Dr={class:"rounded-lg shadow-xs overflow-hidden"},Vr={class:"p-4"},Rr={class:"flex items-start"},zr={class:"ml-2 w-0 flex-1 pt-0.5 text-green-600"},Mr={class:"leading-5 font-medium"},Or={role:"alert",class:"w-full mb-4"},jr={class:"w-full bg-red-100 border border-red-500 shadow-md rounded-lg pointer-events-auto mt-2"},Ur={class:"rounded-lg shadow-xs overflow-hidden"},Hr={class:"p-4"},Wr={class:"flex items-start"},qr={class:"ml-2 w-0 flex-1 pt-0.5 text-red-600"},Fr={class:"leading-5 font-medium"},Yr={class:"bg-white border border-gray-200 py-8 px-4 shadow sm:rounded-lg sm:px-10"},Kr={class:"w-full"},Gr={class:"w-full"},Qr={key:0,class:"text-sm text-red-600"},Jr={class:"flex space-x-5 mt-3"},Xr=["disabled"],Zr={key:0,class:"flex items-center"},$r={key:1};function el(i,e,t,d,o,n){return a(),r("div",null,[S(s("div",Ir,[s("div",Nr,[s("div",Dr,[s("div",Vr,[s("div",Rr,[e[3]||(e[3]=s("div",{class:"shrink-0"},[s("i",{class:"far fa-fw fa-info-circle text-green-600"})],-1)),s("div",zr,[s("p",Mr,m(o.message),1)])])])])])],512),[[z,o.emailSent]]),S(s("div",Or,[s("div",jr,[s("div",Ur,[s("div",Hr,[s("div",Wr,[e[4]||(e[4]=s("div",{class:"shrink-0"},[s("i",{class:"far fa-fw fa-info-circle text-red-600"})],-1)),s("div",qr,[s("p",Fr,m(o.message),1)])])])])])],512),[[z,o.emailSendError]]),s("div",Yr,[s("div",Kr,[s("div",Gr,[e[5]||(e[5]=s("label",{for:"email",class:"block text-sm font-medium leading-5 text-gray-700"}," Email Address ",-1)),S(s("input",{onFocus:e[0]||(e[0]=l=>n.clearValidation()),id:"email",autocomplete:"email",type:"email","onUpdate:modelValue":e[1]||(e[1]=l=>o.email=l),name:"email",class:"disabled:opacity-50 appearance-none flex-1 block w-full px-3 py-2 border border-gray-300 placeholder-gray-400 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 transition duration-150 ease-in-out sm:text-sm sm:leading-5 rounded-md",maxlength:"255"},null,544),[[O,o.email]]),o.emailError!=""?(a(),r("span",Qr,m(o.emailError),1)):c("",!0)]),s("div",Jr,[s("button",{onClick:e[2]||(e[2]=l=>n.validateEmail()),class:h([[this.$store.getters.siteTitle=="Babylon Bee"?"text-white btn-primary":"text-always-w
3hite bg-red-600 hover:bg-red-500 focus:border-red-700 focus:shadow-outline-red active:bg-red-700 @endif"],"w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md"]),disabled:o.isLoading},[o.isLoading?(a(),r("span",Zr,[...e[6]||(e[6]=[s("i",{class:"far fa-spin fa-sync-alt fa-lg mr-2"},null,-1),_(" Loading...",-1)])])):(a(),r("span",$r,"Send Password Reset Link"))],10,Xr)])])])])}const tl=w(Lr,[["render",el]]);let F=0,ie=0,se=null,G=0;function ue(){var i=window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.modalStateHandler;if(i)try{i.postMessage(G>0)}catch{}}function il(){return window.innerWidth>=1024?!1:(F===0&&(ie=window.scrollY||window.pageYOffset||0,se={overflow:document.body.style.overflow,position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,width:document.body.style.width},document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=-ie+"px",document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%"),F++,!0)}function sl(){if(F!==0&&(F--,!(F>0))){var i=se||{};document.body.style.overflow=i.overflow||"",document.body.style.position=i.position||"",document.body.style.top=i.top||"",document.body.style.left=i.left||"",document.body.style.right=i.right||"",document.body.style.width=i.width||"",se=null,document.body.style.position!=="fixed"&&window.scrollTo(0,ie)}}const ol={emits:["modalClosed"],inheritAttrs:!1,mounted(){this.showingModal==!0&&this.handleModalOpen()},beforeUnmount(){this.releaseScrollLock(),this.unwatchViewport(),this.releaseOpenCount()},watch:{showingModal(i,e){i&&!e?this.handleModalOpen():!i&&e&&this.handleModalClose()}},props:{id:[Number,String],showingModal:Boolean,is_badge:Boolean,searching_mentions:Boolean,hide_close_button:{type:Boolean,default:!1},force_opened:{type:Boolean,default:!1},min_height:{type:String,default:""},no_padding:{type:Boolean,default:!1},panelBackgroundClass:{type:String,default:"bg-white dark:bg-zinc-900"},modalTitle:{type:String,default:""},width:{type:String,default:""}},data(){return{modalId:this.id||Math.floor(Math.random()*1e6),lastFocusedElement:null,holdsScrollLock:!1,countedAsOpen:!1,trackingViewport:!1,viewportTop:0,viewportHeight:0}},computed:{topInset(){return this.appView?64:96},viewportStyle(){if(!this.showingModal||!this.trackingViewport||!this.keyboardUp)return{};var i=this.topInset;return{top:Math.max(0,Math.round(this.viewportTop))+i+"px",height:Math.max(200,Math.round(this.viewportHeight)-i)+"px",bottom:"auto",paddingBottom:"1rem"}},keyboardUp(){return!this.trackingViewport||!this.viewportHeight?!1:window.innerHeight-this.viewportHeight>120},appView(){return this.$store.getters.appView},height(){return this.min_height!=""?this.min_height:""},widthClass(){return this.width?this.width:this.is_badge&&this.showingModal?"sm:max-w-screen-xs":"sm:w-full sm:max-w-screen-md"}},methods:{closeModal(){this.force_opened||(b.emit("modalClosed"),this.$emit("modalClosed"))},handleModalOpen(){b.emit("modalOpened"),this.holdsScrollLock=il(),this.watchViewport(),this.countedAsOpen||(this.countedAsOpen=!0,G++,ue()),this.lastFocusedElement=document.activeElement,this.$nextTick(()=>{if(this.$refs.modalContent){var i=this.$refs.modalContent.querySelector("[autofocus]:not(:disabled)");i&&i.getClientRects().length>0?i.focus():this.$refs.modalContent.focus()}this.announceToScreenReader("Dialog opened")})},handleModalClose(){var i;this.releaseScrollLock(),this.unwatchViewport(),this.releaseOpenCount(),(i=this.lastFocusedElement)!=null&&i.isConnected&&this.lastFocusedElement.focus(),this.announceToScreenReader("Dialog closed")},releaseOpenCount(){this.countedAsOpen&&(this.countedAsOpen=!1,G=Math.max(0,G-1),ue())},releaseScrollLock(){this.holdsScrollLock&&(this.holdsScrollLock=!1,sl())},watchViewport(){!window.visualViewport||window.innerWidth>=1024||this._onViewportChange||(this.trackingViewport=!0,this._onViewportChange=()=>{this._viewportFrame||(this._viewportFrame=requestAnimationFrame(()=>{this._viewportFrame=null,this.measureViewport()}))}
3,window.visualViewport.addEventListener("resize",this._onViewportChange),window.visualViewport.addEventListener("scroll",this._onViewportChange),this._viewportSettle=setTimeout(()=>{this.measureViewport()},350),this.measureViewport())},unwatchViewport(){this._viewportFrame&&(cancelAnimationFrame(this._viewportFrame),this._viewportFrame=null),this._viewportSettle&&(clearTimeout(this._viewportSettle),this._viewportSettle=null),window.visualViewport&&this._onViewportChange&&(window.visualViewport.removeEventListener("resize",this._onViewportChange),window.visualViewport.removeEventListener("scroll",this._onViewportChange)),this._onViewportChange=null,this.trackingViewport=!1,this.viewportTop=0,this.viewportHeight=0},measureViewport(){var i=window.visualViewport;i&&(this.viewportTop=i.offsetTop||0,this.viewportHeight=i.height||0)},announceToScreenReader(i){const e=document.createElement("div");e.setAttribute("aria-live","assertive"),e.classList.add("sr-only"),e.textContent=i,document.body.appendChild(e),setTimeout(()=>{document.body.removeChild(e)},1e3)}}},nl=["aria-labelledby"],al=["id"],rl={class:"modal-body overflow-y-auto overscroll-contain scrolling-touch min-h-0 modal-body-scroll"};function ll(i,e,t,d,o,n){const l=M("focus-trap");return a(),E(U,{to:"body"},[s("div",{class:h(["fixed bottom-0 inset-x-0 px-4 sm:items-center sm:justify-center overscroll-contain",[t.showingModal?t.searching_mentions?"z-30 sm:flex":"z-50 sm:flex":"hidden -z-10",t.hide_close_button?"mt-8":"",n.appView?"top-16 pb-[calc(96px+env(safe-area-inset-bottom))]":"top-24 sm:top-28 pb-4"]]),style:V(n.viewportStyle)},[p(L,{name:"fade-in-out"},{default:P(()=>[t.showingModal?(a(),r("div",{key:0,class:"fixed inset-0 transition-opacity",onClick:e[0]||(e[0]=(...u)=>n.closeModal&&n.closeModal(...u))},[...e[3]||(e[3]=[s("div",{class:"absolute inset-0 bg-gray-500 dark:!bg-zinc-950 opacity-75","aria-hidden":"true"},null,-1)])])):c("",!0)]),_:1}),t.showingModal?S((a(),r("div",{key:0,class:h(["rounded-xl shadow-[0_20px_60px_-15px_rgba(15,23,42,0.25)] dark:shadow-[0_20px_60px_-15px_rgba(0,0,0,0.7)] ring-1 ring-gray-200/60 dark:ring-zinc-800 transition-all flex flex-col relative overflow-hidden focus:outline-none",[t.panelBackgroundClass,n.height,n.widthClass,t.no_padding?"":"pt-3",n.keyboardUp||n.appView?"max-h-full":"max-h-screen-minus-header"]]),role:"dialog","aria-modal":"true","aria-labelledby":"modal-headline-"+o.modalId,ref:"modalContent",tabindex:"-1",onKeydown:e[2]||(e[2]=N(A((...u)=>n.closeModal&&n.closeModal(...u),["stop"]),["esc"]))},[s("h2",{id:"modal-headline-"+o.modalId,class:"sr-only"},m(t.modalTitle||"Dialog window"),9,al),t.hide_close_button?c("",!0):(a(),r("button",{key:0,dusk:"closeModalOverlay",class:"h-8 w-8 absolute top-3 right-3 cursor-pointer text-gray-400 hover:text-gray-900 dark:text-gray-500 dark:hover:text-gray-100 hover:bg-gray-100 dark:hover:bg-zinc-800 transition-colors duration-200 rounded-full flex items-center justify-center z-30",onClick:e[1]||(e[1]=(...u)=>n.closeModal&&n.closeModal(...u)),"aria-label":"Close dialog",type:"button"},[...e[4]||(e[4]=[s("i",{class:"far fa-times text-[13px]","aria-hidden":"true"},null,-1)])])),s("div",rl,[he(i.$slots,"default")])],42,nl)),[[l]]):c("",!0)],6)])}const dl=w(ol,[["render",ll]]),cl={mounted(){},props:{current_promo:{type:String,default:""},current_promo_amount:{type:String,default:""},month_only_offer:{type:Boolean,default:!1},is_stream:{type:Boolean,default:!1}},data(){return{promo:"",error:"",selected_promo:this.current_promo,selected_promo_amount:this.current_promo_amount,showPromoInput:!1}},methods:{clearError(){this.error=""},applyPromo(){axios.post("/applyPromo",{code:this.promo}).then(i=>{i.data&&i.data.success==!1?this.error=i.data.message:i.data&&i.data.success==!0?location.reload():this.error="There was an error setting this promo."})},removePromo(){axios.post("/removePromo",{}).then(i=>{i.data&&i.data.success==!1?this.error=i.data.message:i.data&&i.data.success==!0?location.reload():this.error="There was an error removing this promo."})}}},ul={key:0},hl={key:1,class:"mt-3"},ml={class:"flex rounded-lg shadow-sm"},fl={class:"relative flex items-stretch grow focus-within:z-10"},gl=["aria-invalid"],pl={key:0,role:"alert",class:"mt-1"},_l={class:"text-xs text-red-700 dark:text-red-300"},bl={key:1,class:"mt-3"},yl={class:"flex items-center justify-between rounded-lg bg-green-50 border border-green-200 px-3 py-2"},wl={class:"flex items-center gap-2"},vl={key:0,class:"text-sm font-medium text-green-800"},xl={key:1,class:"text-sm font-medium text-green-800"};function kl(i,e,t,d,o,n){return a(),r("div",null,[o.selected_promo?(a(),r("div",bl,[s("div",yl,[s("div",wl,[e[7]||(e[7]=s("svg",{class:"w-4 h-4 text-green-600 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",d:"M5 13l4 4L19 7"})],-1)),t.month_only_offer?(a(),r("span",xl,m(o.selected_promo)+" — $1 for first month",1)):(a(),r("span",vl,m(o.selected_promo)+" — "+m(o.selected_promo_amount)+"% off",1))]),s("button",{type:"button",onClick:e[4]||(e[4]=l=>n.removePromo()),class:"text-gray-400 hover:text-gray-600 transition-colors duration-150 p-1","aria-label":"Remove promo"},[...e[8]||(e[8]=[s("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])])])):(a(),r("div",ul,[o.showPromoInput?c("",!0):(a(),r("button",{key:0,t
3ype:"button",onClick:e[0]||(e[0]=l=>{o.showPromoInput=!0,i.$nextTick(()=>i.$refs.promoInput.focus())}),class:"mt-2 text-sm font-medium text-amber-600 hover:text-amber-700 transition-colors duration-150 flex items-center gap-1"},[...e[5]||(e[5]=[s("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1),_(" Add promo code ",-1)])])),o.showPromoInput?(a(),r("div",hl,[s("div",ml,[s("div",fl,[e[6]||(e[6]=s("div",{class:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"},[s("i",{class:"fas fa-barcode-scan h-5 w-5 text-gray-400"})],-1)),S(s("input",{ref:"promoInput","aria-label":"Promo code","aria-invalid":!!o.error,"onUpdate:modelValue":e[1]||(e[1]=l=>o.promo=l),onFocus:e[2]||(e[2]=l=>n.clearError()),type:"text",name:"promo",class:h(["block w-full rounded-none rounded-l-lg pl-10 py-2.5 sm:text-sm border-gray-300 placeholder-gray-400 focus:ring-amber-400 focus:border-amber-400",[t.is_stream?"!bg-gray-800 !text-white":""]]),placeholder:"Enter promo code"},null,42,gl),[[O,o.promo]])]),s("button",{type:"button",onClick:e[3]||(e[3]=l=>n.applyPromo()),class:"-ml-px inline-flex items-center px-4 py-2.5 border border-gray-300 text-sm font-medium rounded-r-lg text-gray-700 bg-gray-50 hover:bg-gray-100 focus:outline-none focus:ring-1 focus:ring-amber-400 focus:border-amber-400 transition-colors duration-150"}," Apply ")]),o.error?(a(),r("div",pl,[s("p",_l,m(o.error),1)])):c("",!0)])):c("",!0)]))])}const Bl=w(cl,[["render",kl]]),Cl={mounted(){b.on("termChanged",i=>{this.term=i.term})},props:{current_term:String,annual_amount:String,monthly_amount:String,promo_amount:{type:String,default:"0"},plan:String},data(){return{term:this.current_term,amount:this.current_term=="Monthly"?this.monthly_amount:this.annual_amount}},methods:{termUpdate(e){this.term=e,this.amount=this.term=="Monthly"?this.monthly_amount:this.annual_amount;var e=document.getElementById("term");e.value=this.term,b.emit("termChanged",{term:this.term})}}},Tl={class:"w-full"},Sl={key:0},El={class:"my-2"},Al={key:0,class:"text-sm"},Pl={class:"mb-3"},Ll={class:"border-b border-primary-orange"},Il={key:1,class:"text-sm"},Nl={key:0,id:"savings-monthly",class:"mb-3"},Dl={key:1,id:"savings-annual",class:"mb-3"},Vl={class:"flex my-2 space-x-8"},Rl={class:"m-0 w-full"},zl=["aria-pressed"],Ml={class:"m-0 w-full"},Ol=["aria-pressed"];function jl(i,e,t,d,o,n){return a(),r("div",Tl,[t.plan!="Custom"?(a(),r("div",Sl,[s("h3",El," $"+m(o.amount)+" / "+m(o.term=="Monthly"?"month":"year"),1),t.promo_amount!="0"?(a(),r("div",Al,[s("p",Pl,[s("span",Ll,"You're saving "+m(t.promo_amount)+"%",1)])])):(a(),r("div",Il,[o.term=="Monthly"?(a(),r("p",Nl,[...e[2]||(e[2]=[s("span",{class:"border-b border-primary-orange"},"Switch to annual and save 17%",-1)])])):(a(),r("p",Dl,[...e[3]||(e[3]=[s("span",{class:"border-b border-primary-orange"},"You're saving 17% with annual billing",-1)])]))]))])):c("",!0),e[4]||(e[4]=s("p",{class:"text-sm my-2"},"Enjoy an ad-free experience on our site. You'll also have access to exclusive content and features.",-1)),s("div",Vl,[s("div",Rl,[s("button",{id:"MonthlyButton",type:"button",class:h(["w-full h-10",[o.term=="Monthly"?"btn-primary":"btn-outline-gray"]]),"aria-pressed":o.term==="Monthly",onClick:e[0]||(e[0]=l=>n.termUpdate("Monthly"))},"Monthly",10,zl)]),s("div",Ml,[s("button",{id:"AnnualButton",type:"button",class:h(["w-full h-10",[o.term!="Monthly"?"btn-primary":"btn-outline-gray"]]),"aria-pressed":o.term==="Annual",onClick:e[1]||(e[1]=l=>n.termUpdate("Annual"))},"Annual",10,Ol)])])])}const Ul=w(Cl,[["render",jl]]),Hl={created(){this.getTrendingArticles()},mounted(){},props:{joke_slug:String,is_bee:{type:Boolean,default:!1},current_article_id:{type:Number,default:null},is_take:{type:Boolean,default:!1}},data(){return{articles:{},bearer:this.$store.getters.bearer,isLoading:!0}},methods:{getTrendingArticles(){var i={};this.bearer!=""&&(i={Authorization:this.bearer}),axios.post("/ajax/getTrendingArticles",{is_take:this.is_take},{headers:i}).then(e=>{this.isLoading=!1,e.data&&!e.data.error&&(this.articles=e.data)})}}},Wl={class:"mb-6"},ql={key:0,class:"section-header"},Fl={key:1,class:"mb-2"},Yl={key:2,class:"w-24 border-primary-orange mb-2"},Kl={key:3,class:"shadow-md border border-gray-200 rounded-lg p-4 bg-white"},Gl={key:4},Ql={key:0},Jl={key:0,class:"w-full space-y-2"},Xl={class:"grid grid-cols-1 gap-0 sm:gap-6 divide-y sm:divide-y-0"},Zl={class:"grid py-3 sm:py-0 grid-cols-3 group cursor-pointer xl:space-x-3"},$l=["href"],ed=["src"],td={class:"lg:col-span-3 xl:col-span-2"},id=["href"],sd={class:"text-base font-medium leading-6 text-gray-900 group-hover:text-gray-600 -mt-1"},od={class:"flex items-center gap-x-4 text-xs text-gray-500 pt-1"},nd={datetime:"2020-03-16"},ad={class:"relative flex items-center space-x-1"},rd=["src"],ld=["href"];function dd(i,e,t,d,o,n){const l=C("article-card");return a(),r("div",null,[s("div",Wl,[t.is_bee?(a(),r("div",ql,"Trending Articles")):(a(),r("h4",Fl,"Trending Articles")),t.is_bee?(a(),r("hr",Yl)):c("",!0),o.isLoading?(a(),r("div",Kl,[...e[0]||(e[0]=[s("p",null,[s("i",{class:"far fa-spin fa-sync-alt mr-1"}),_(" Loading Articles... ")],-1)])])):(a(),r("div",Gl,[(a(!0),r(T,null,R(o.articles,u=>(a(),r(T,null,[t.is_bee?(a(),r("div",Ql,[u.id!=t.current_article_id?(a(),E(l,{key:0,article:u,categories:u.cachedCategories,trending:!0,is_bee:t.is_bee,joke_slug:t.joke_slug},null,8,["article","categories","is_bee","joke_slug"])):c("",!0)])):c("",!0)],64))),256)),t.is_bee?c("",!0):(a(),r("div",Jl,[s("div",{class:h(["w-full space-y-6 rounded-md",i.type=="trending"?"bg-gray-100 p-3 sm:p-6":""])},[s("div",Xl,[(a(!0),r(T,null,R(o.articles,u=>(a(),r("div",Zl,[s("a",{href:u.path,class:"lg:col-span-3 xl:col-span-1 relative pb-2"},[s("img",{class:"aspect-[16/9] w-full rounded-md bg-gray-100 object-cover sm:aspect-[2/1] lg:aspect-[3/2] sm:group-hover:opacity-90",src:u.imagePath,alt:""},null,8,ed)],8,$l),s("div",td,[s("a",{href:u.path}
3,[s("h3",sd,m(u.title),1),s("div",od,[s("time",nd,m(u.publishedOnDate),1),s("div",ad,[s("img",{src:u.authorImagePath,alt:"",class:"h-4 w-4 rounded-full bg-gray-100"},null,8,rd),s("a",{href:u.is_opinion?u.authorTakePath:u.authorPath},[e[1]||(e[1]=s("span",{class:"absolute inset-0"},null,-1)),_(" "+m(u.authorName),1)],8,ld)])])],8,id)])]))),256))])],2)]))]))])])}const cd=w(Hl,[["render",dd]]),ud={props:["headlines"],data(){return{tickerIndex:0}},created(){setInterval(this.updateTicker,6e3)},methods:{updateTicker:function(){this.tickerIndex<this.headlines.length-1?this.tickerIndex++:this.tickerIndex=0}}},hd={class:"border border-primary-orange py-4 px-2 mb-4 overflow-hidden rounded"},md=["href"],fd={class:"bee-title-sm mb-0 inline",style:{display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden"}},gd={class:"bee-title-sm inline text-sm text-muted ml-2"};function pd(i,e,t,d,o,n){return a(),r("div",hd,[t.headlines[o.tickerIndex]?(a(),r("div",{key:o.tickerIndex},[s("a",{href:t.headlines[o.tickerIndex].path,class:"flex items-center"},[s("span",fd,m(t.headlines[o.tickerIndex].body),1),e[0]||(e[0]=_()),s("span",gd," - "+m(t.headlines[o.tickerIndex].userDisplayName),1)],8,md)])):c("",!0)])}const _d=w(ud,[["render",pd]]),bd={props:{is_annual:{type:Boolean,default:!0},is_custom:{type:Boolean,default:!1},monthly_price:{type:String,default:!0},annual_price:{type:String,default:!0},plan:String},data(){return{status:this.is_annual,fields:{},errors:{},success:!0,hover:!1,annual_monthly_rate:(this.annual_price/12).toFixed(0),savings:(100*(12*this.monthly_price-this.annual_price)/(12*this.monthly_price)).toFixed(0)}},methods:{toggleTerm(){if(this.errors={},this.plan=="Premium")if(this.status){var i=document.getElementsByClassName("PremiumBookLink");i[0].classList.remove("line-through"),i[1].classList.remove("line-through")}else{var i=document.getElementsByClassName("PremiumBookLink");i[0].classList.add("line-through"),i[1].classList.add("line-through")}this.plan=="Custom"&&b.emit("customTermSwap",this.status?"Annual":"Monthly")}}},yd={class:"my-4"},wd={class:"section-header-lg"},vd={key:0},xd={key:0,class:"h-4 leading-3"},kd={key:0,class:"text-xs text-green-500"},Bd={key:1,class:"text-xs text-red-500"},Cd={key:1,class:"h-4 leading-3"},Td={key:2,class:"text-muted text-xxs"},Sd={key:3,class:"text-muted text-xxs"};function Ed(i,e,t,d,o,n){const l=C("toggle-button");return a(),r("div",yd,[s("p",null,[s("span",wd,[_("$"+m(o.status?o.annual_monthly_rate:t.monthly_price),1),t.is_custom?(a(),r("sup",vd,"+")):c("",!0)]),e[2]||(e[2]=s("span",{class:"text-base leading-6 font-medium text-gray-500"},"/mo",-1))]),p(l,{onChange:e[0]||(e[0]=u=>n.toggleTerm()),modelValue:o.status,"onUpdate:modelValue":e[1]||(e[1]=u=>o.status=u),width:80,height:20,labels:{checked:"Annual",unchecked:"Monthly"},sync:!0,color:{checked:"#fbb03b",unchecked:"#fbb03b"},"switch-color":{checked:"#000000",unchecked:"#000000"},name:"term"},null,8,["modelValue"]),t.plan!="Custom"?(a(),r("div",xd,[o.status?(a(),r("span",kd," You're saving "+m(o.savings)+"%! ",1)):(a(),r("span",Bd," Save "+m(o.savings)+"% with an annual subscription! ",1))])):(a(),r("div",Cd,[...e[3]||(e[3]=[s("span",{class:"text-xs text-green-500"}," This is a custom plan. ",-1)])])),o.status?(a(),r("div",Td," *billed annually at $"+m(t.annual_price),1)):(a(),r("div",Sd," *billed monthly at $"+m(t.monthly_price),1))])}const Ad=w(bd,[["render",Ed]]),Pd={created(){},mounted(){},props:{type:String},data(){return{}},methods:{}},Ld={class:"flex items-center justify-center z-20 bg-global opacity-0.5 min-h-screen"};function Id(i,e,t,d,o,n){return a(),r("div",Ld,[s("p",null,[e[0]||(e[0]=s("i",{class:"far fa-spin fa-sync-alt mr-1"},null,-1)),_(" Loading "+m(t.type)+"s... ",1)])])}const Nd=w(Pd,[["render",Id]]),Dd={components:{HomepageArticleCard:ye,LoadingContainer:Nd},created(){this.loadArticles(),b.on("ArticleSortingChanged",i=>{this.isLoading=!0,this.currentSortDir=i,this.page=1,this.skip=0,this.$nextTick(()=>{this.loadArticles()})}),b.on("articlePaginationChange",i=>{this.page=i,this.skip=this.take*(this.page-1),this.$nextTick(()=>{var t=document.getElementById("pageTop");const d=t.getBoundingClientRect().top+window.pageYOffset+-150;window.scrollTo({top:d,behavior:"smooth"}),this.isLoading=!0,this.loadArticles()})})},mounted(){},props:{is_guest:{type:Boolean,default:!1},show_includes:{type:Boolean,default:!1},is_bee:{type:Boolean,default:!1},is_video:{type:Boolean,default:!1},user_id:[Number,String],category:String,take:Number,initial_page:Number,is_author:{type:Boolean,default:!1},sort_dir:{type:String,default:"desc"}},data(){return{isLoading:!0,articles:{},currentSortDir:this.sort_dir,isLoading:!0,page:this.initial_page,skip:this.initial_page>1?this.take*(this.initial_page-1):0,isInitialLoad:!0,totalCount:0,bearer:this.$store.getters.bearer,site:this.$store.getters.siteTitle=="Babylon Bee"?"BEE":this.$store.getters.siteTitle=="Not the Bee"?"
3NTB":"BS"}},methods:{loadArticles(){this.articles={};var i={};this.bearer!=""&&(i={Authorization:this.bearer}),axios.post("/loadArticles",{category:this.category,sort:this.currentSortDir,skip:this.skip,take:this.take,isAuthor:this.is_author},{headers:i}).then(e=>{this.isLoading=!1,e.data?(this.articles=e.data.articles,this.totalCount=parseInt(e.data.sortCount),this.$nextTick(()=>{b.emit("initialArticlesLoaded",{count:this.articles?this.articles.length:0,isInitialLoad:this.isInitialLoad,totalCount:this.totalCount})}),this.isInitialLoad=!1):this.success=!1})}}},Vd={key:1,class:"mb-4"},Rd={key:0,class:"md:col-span-2 xl:col-span-3"},zd={key:1};function Md(i,e,t,d,o,n){const l=C("loading-container"),u=C("newsletter-box"),y=C("article-card"),f=C("homepage-article-card");return a(),r("div",null,[o.isLoading?(a(),E(l,{key:0,type:t.is_video?"Video":"Article"},null,8,["type"])):(a(),r("div",Vd,[o.articles.length>0?(a(),r("div",{key:0,id:"pageTop",class:h(["grid mx-auto md:grid-cols-2 xl:grid-cols-3 md:max-w-none",[t.is_bee?"gap-5 max-w-lg":"gap-10"]])},[(a(!0),r(T,null,R(o.articles,B=>(a(),r("div",null,[t.is_guest&&i.index==6&&t.show_includes?(a(),r("div",Rd,[p(u,{site:o.site},null,8,["site"])])):c("",!0),t.is_bee?(a(),E(y,{key:1,article:B,categories:B.cachedCategories,is_bee:t.is_bee,is_video:t.is_video,user_id:t.user_id},null,8,["article","categories","is_bee","is_video","user_id"])):(a(),E(f,{key:2,article:B,categories:B.cachedCategories,user_id:t.user_id,is_bee:t.is_bee,show_featured:!1,is_video:t.is_video},null,8,["article","categories","user_id","is_bee","is_video"]))]))),256))],2)):(a(),r("div",zd,[...e[0]||(e[0]=[s("div",{class:"w-full bg-white border border-gray-200 shadow-lg rounded-lg pointer-events-auto p-4"},[s("p",{class:"leading-5 font-medium"}," No articles were returned! ")],-1)])]))]))])}const Od=w(Dd,[["render",Md]]),jd={created(){},mounted(){},props:{show_sort:{type:Boolean,default:!0},type:String,sort_dir:{type:String,default:"desc"}},data(){return{sortDirection:this.sort_dir}},methods:{adjustSorting(){this.sortDirection=="asc"?this.sortDirection="desc":this.sortDirection="asc",b.emit(this.type+"SortingChanged",this.sortDirection)}}},Ud=["disabled"],Hd={"aria-hidden":"true"};function Wd(i,e,t,d,o,n){return a(),r("button",{onClick:e[0]||(e[0]=l=>n.adjustSorting()),disabled:!t.show_sort,class:"group inline-flex items-center gap-2 text-xs font-bold uppercase tracking-[0.15em] text-gray-900 dark:text-gray-100 hover:text-red-600 dark:hover:text-red-400 transition-colors duration-300 py-2 disabled:opacity-40 disabled:cursor-not-allowed"},[s("span",null,m(o.sortDirection=="desc"?"Latest":"Oldest"),1),s("span",Hd,m(o.sortDirection=="desc"?"↓":"↑"),1)],8,Ud)}const qd=w(jd,[["render",Wd]]),Fd={created(){b.on("searchToggled",i=>{this.$nextTick(()=>{this.resetPagination()})}),b.on(this.type+"SortingChanged",i=>{this.$nextTick(()=>{this.sortDir=i??"desc",this.resetPagination()})}),b.on("filter"+this.type+"s",i=>{this.$nextTick(()=>{this.resetPagination()})}),b.on("filterTrendingHeadlines",i=>{this.$nextTick(()=>{this.resetPagination()})}),b.on("initial"+this.type+"sLoaded",i=>{this.currentObjectCount=i.count,this.totalCount=parseInt(i.totalCount),this.totalPages=Math.ceil(this.totalCount/this.take)})},mounted(){window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth})},props:{type:String,take:Number,initial_page:Number,sort_dir:{type:String,default:"desc"}},data(){return{currentPage:this.initial_page,totalPages:0,currentObjectCount:0,showingCustomPagination:!1,customPagination:this.initial_page,windowWidth:window.innerWidth,totalCount:0,filter:this.initial_filter,searchTerm:"",paginationButtons:3,appView:this.$store.getters.appView,sortDir:this.sort_dir}},computed:{startPage(){return this.currentPage===1?1:this.currentPage===this.totalPages?Math.max(this.totalPages-this.paginationButtons+1,1):this.currentPage-1},endPage(){return Math.min(this.startPage+this.paginationButtons-1,this.totalPages)},pages(){const i=[];for(let e=this.startPage;e<=this.endPage;e+=1)i.push(e);return i},isOnFirstPage(){return this.currentPage==1},isOnLastPage(){return this.currentPage==this.totalPages}
3,paginationInputWidth(){var i=this.customPagination.toString();return i.length<=2?"w-8":i.length==3?"w-10":i.length>3&&i.length<=5?"w-14":"w-16"}},methods:{onClickFirstPage(){this.currentPage=1,this.emitPageChange()},onClickPreviousPage(){this.currentPage=this.currentPage-1,this.emitPageChange()},onClickPage(i){this.currentPage=i,this.emitPageChange()},onClickNextPage(){this.currentPage=this.currentPage+1,this.emitPageChange()},onClickLastPage(){this.currentPage=this.totalPages,this.emitPageChange()},isPageActive(i){return this.currentPage==i},emitPageChange(){if(!this.appView&&this.windowWidth>640){var i=window.location.href,e="page",t=this.currentPage,d=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=i.indexOf("?")!==-1?"&":"?";if(i.match(d))var n=i.replace(d,"$1"+e+"="+t+"$2");else var n=i+o+e+"="+t;if(this.sort_dir!=this.sortDir){var l="sort_dir",u=this.sortDir,d=new RegExp("([?&])"+l+"=.*?(&|$)","i"),o=n.indexOf("?")!==-1?"&":"?";n.match(d)?n=n.replace(d,"$1"+l+"="+u+"$2"):n=n+o+l+"="+u}window.location.href=n}else{this.customPagination=this.currentPage;var y=this.type.toLowerCase();this.$nextTick(()=>{document.getElementById("customPagination").blur(),this.showingCustomPagination=!1,b.emit(y+"PaginationChange",this.currentPage)})}},resetPagination(){this.totalCount=0,this.currentPage=1,this.currentObjectCount=0,this.totalPages=Math.ceil(this.totalCount/this.take),this.customPagination=this.currentPage},submitCustomPage(){this.customPagination==0||this.customPagination>this.totalPages?b.emit("alert",{message:"Slow down!",subtext:"You're trying to visit a page that doesn't exist!",success:!1,length:5e3}):this.onClickPage(parseInt(this.customPagination))}}},Yd={key:0,class:"flex flex-wrap items-center justify-center md:justify-between rounded-md border border-gray-200 px-4 py-3 bg-gray-50 space-x-2 sm:px-6"},Kd={class:"order-2 md:order-1 w-full md:w-auto text-center md:text-left"},Gd={class:"text-sm text-gray-500 flex items-center justify-center sm:justify-start space-x-2"},Qd={class:"order-1 md:order-2 mb-2 md:mb-0"},Jd={class:"flex items-center space-x-2"},Xd=["disabled"],Zd=["disabled"],$d=["aria-label","aria-current","onClick","disabled"],ec=["disabled"],tc=["disabled"];function ic(i,e,t,d,o,n){const l=M("tooltip");return o.totalCount&&o.totalCount>t.take?(a(),r("div",Yd,[s("div",Kd,[s("p",Gd,[e[6]||(e[6]=s("span",null," Viewing page ",-1)),S(s("input",{onKeyup:e[0]||(e[0]=N(u=>n.submitCustomPage(),["enter"])),"aria-label":"Page number",inputmode:"numeric",name:"customPagination",id:"customPagination",type:"text","onUpdate:modelValue":e[1]||(e[1]=u=>o.customPagination=u),class:h(["appearance-none border border-gray-300 rounded-md placeholder-gray-400 focus:outline-none focus:shadow-outline-blue focus:border-blue-500 transition duration-150 ease-in-out sm:text-sm sm:leading-5 text-center p-1",n.paginationInputWidth])},null,34),[[O,o.customPagination]]),s("span",null," of "+m(o.totalPages),1)])]),s("div",Qd,[s("ul",Jd,[s("li",null,[S((a(),r("button",{type:"button","aria-label":"First page",onClick:e[2]||(e[2]=(...u)=>n.onClickFirstPage&&n.onClickFirstPage(...u)),disabled:n.isOnFirstPage,class:"btn-sm-primary !py-2 w-8"},[...e[7]||(e[7]=[s("span",null,[s("i",{class:"fa-solid fa-angles-left"})],-1)])],8,Xd)),[[l,"First Page"]])]),s("li",null,[S((a(),r("button",{type:"button","aria-label":"Previous page",onClick:e[3]||(e[3]=(...u)=>n.onClickPreviousPage&&n.onClickPreviousPage(...u)),disabled:n.isOnFirstPage,class:"btn-sm-primary !py-2 w-8"},[...e[8]||(e[8]=[s("span",null,[s("i",{class:"fa-solid fa-angle-left"})],-1)])],8,Zd)),[[l,"Previous Page"]])]),(a(!0),r(T,null,R(n.pages,u=>(a(),r("li",null,[s("button",{type:"button","aria-label":`Page ${u}`,"aria-current":u==o.currentPage?"page":null,onClick:y=>n.onClickPage(u),disabled:u==o.currentPage,class:"btn-sm-primary !py-2 w-8"},m(u.toLocaleString()),9,$d)]))),256)),s("li",null,[S((a(),r("button",{type:"button","aria-label":"Next page",onClick:e[4]||(e[4]=(...u)=>n.onClickNextPage&&n.onClickNextPage(...u)),disabled:n.isOnLastPage,class:"btn-sm-primary !py-2 w-8"},[...e[9]||(e[9]=[s("span",null,[s("i",{class:"fa-solid fa-angle-right"})],-1)])],8,ec)),[[l,"Next Page"]])]),s("li",null,[S((a(),r("button",{type:"button","aria-label":"Last page",onClick:e[5]||(e[5]=(...u)=>n.onClickLastPage&&n.onClickLastPage(...u)),disabled:n.isOnLastPage,class:"btn-sm-primary !py-2 w-8"},[...e[10]||(e[10]=[s("span",null,[s("i",{class:"fa-solid fa-angles-right"})],-1)])],8,tc)),[[l,"Last Page"]])])])])])):c("",!0)}const sc=w(Fd,[["render",ic]]),oc={mounted(){window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth})},props:{ad:Object,mobile_ad:Object,location:String},data(){return{windowWidth:window.innerWidth}},computed:{adSize(){if(this.location=="banner")return"max-w-[970px]";if(this.location=="sidebar")return"max-w-[300px]";if(this.location=="topInArticle"||this.location=="bottomInArticle")return"max-w-[300px]";if(this.location.toLowerCase().includes("middle"))return"max-w-[728px]"},mobileAdSize(){if(this.location=="banner")return"max-w-[300px]";if(this.location=="sidebar")return"max-w-[300px]";if(this.location=="topInArticle"||this.location=="bottomInArticle")return"max-w-[300px]";if(this.location.toLowerCase().includes("middle"))return"max-w-[728px]"},displayedAd(){return this.windowWidth<640?this.mobile_ad:this.ad}},methods:{clickAd(){axios.post("/ajax/trackClick/"+this.displayedAd.id,{mobileView:this.windowWidth<640},{}).then(i=>{}),this.$refs.adLink.click()}}},nc={key:0,class:"w-full"},ac={class:"flex justify-center"},rc=["src"],lc=["href"];function dc(i,e,t,d,o,n){return t.location!="topInArticle"||o.windowWidth<640?(a(),r("div",nc,[p(L,{name:"fade"},{default:P(()=>[s("div",ac,[(a(),r("div",{role:"link",tabindex:"0","aria-label":"Advertisement (opens in a new tab)",onKeydown:e[0]||(e[0]=N(A((...l)=>n.clickAd&&n.clickAd(...l),["prevent"]),["enter"])),onClick:e[1]||(e[1]=(...l)=>n.clickAd&&n.clickAd(...l)),class:h(["cursor-pointer my-4",o.windowWidth<640?n.mobileAdSize:n.adSize]),key:n.displayedAd.image_url},[s("img",{alt:"Image",src:n.displayedAd.image_url,class:"w-full h-full",title:"Banner Ad"},null,8,rc)],34))])]),_:1}),s("a",{ref:"adLink",class:"hidden adContainerBox",href:n.displayedAd.link,target:"_blank"},null,8,lc)])):c("",!0)}const cc=w(oc,[["render",dc]]),uc={mounted(){window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth})},props:{ad:Object,mobile_ad:Object,location:String},data(){return{windowWidth:window.innerWidth}},computed:{shouldShow(){return this.displayedAd&&this.displayedAd.id},adSize(){return this.location==="internalHomeBanner"?"max-w-[970px]":this.location==="internalSidebar"?"max-w-[300px] h-[250px]":"max-w-[970px]"},mobileAdSize(){return this.location==="internalHomeBanner"||this.location==="internalMobileHomeBanner"?"max-w-[320px]":this.location==="internalSidebar"||this.location==="internalArticleInline"?"max-w-[300px] h-[250px]":"max-w-[320px]"},displayedAd(){return this.windowWidth<640&&this.mobile_ad&&this.mobile_ad.id?this.mobile_ad:this.ad},altText(){return"Babylon Bee Promotion"}},methods:{clickAd(){this.displayedAd&&this.displayedAd.id&&axios.post("/ajax/trackClick/"+this.displayedAd.id,{mobileView:this.windowWidth<640}).then(i=>{}),this.$refs.adLink.click()}}},hc={key:0,class:"w-full"},mc={class:"flex justify-center"},fc=["src","alt"],gc=["href"];function pc(i,e,t,d,o,n){return n.shouldShow?(a(),r("div",hc,[p(L,{name:"fade"},{default:P(()=>[s("div",mc,[(a(),r("div",{role:"link",tabindex:"0","aria-label":"Babylon Bee Promotion (opens in a new tab)",onKeydown:e[0]||(e[0]=N(A((...l)=>n.clickAd&&n.clickAd(...l),["prevent"]),["enter"])),onClick:e[1]||(e[1]=(...l)=>n.clickAd&&n.clickAd(...l)),class:h(["cursor-pointer",o.windowWidth<640?n.mobileAdSize:n.adSize]),key:n.displayedAd.image_url},[s("img",{src:n.displayedAd.image_url,class:"w-full h-full rounded-md",alt:n.altText},null,8,fc)],34))])]),_:1}),s("a",{ref:"adLink",class:"hidden",href:n.displayedAd.link,target:"_blank",rel:"noopener noreferrer"},null,8,gc)])):c("",!0)}const _c=w(uc,[["render",pc]]),bc={props:{loggedin:{type:Boolean,default:!1},shoproute:{type:String,default:""},site:{type:String,default:"NTB"}},data(){return{opened:!1,items:[{href:"/headlines",title:"Forum",blurb:"Headlines from the hive mind",icon:"comments",requiresLogin:!0}
3,{href:"/podcasts",title:"Podcasts",blurb:"Every show, every episode",icon:"podcast"},{href:"/january6",title:"January 6",blurb:"Watch the documentary",icon:"flag-usa"},{href:"/book-of-prophecy",title:"Book of Prophecy",blurb:"Satire that came true",icon:"book-bible"},{href:"/worship-song-generator",title:"Worship Song Generator",blurb:"Write a chart-topper in seconds",icon:"music"},{href:"/article/aoc-is-a-genius",title:"AOC Article Generator",blurb:"Breaking news, generated live",icon:"robot"},{href:"/quiz/the-bee-or-not-the-bee",title:"The Bee, or Not the Bee?",blurb:"Can you spot the satire?",icon:"square-poll-horizontal"}]}},computed:{visibleItems(){return this.items.filter(i=>!i.requiresLogin||this.loggedin)},accent(){return this.site==="BEE"?{icon:"bg-amber-50 text-amber-600 dark:bg-amber-400/10 dark:text-primary-orange group-hover:bg-primary-orange group-hover:text-white",title:"group-hover:text-amber-700 dark:group-hover:text-primary-orange",chevron:"group-hover:text-amber-600 dark:group-hover:text-primary-orange"}:{icon:"bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400 group-hover:bg-red-600 group-hover:text-white",title:"group-hover:text-red-700 dark:group-hover:text-red-400",chevron:"group-hover:text-red-600 dark:group-hover:text-red-400"}}},methods:{toggle(){this.opened?this.featureNavbarClose():this.opened=!0},featureNavbarClose(){this.opened=!1,this.$refs.featureNavbar&&document.activeElement===this.$refs.featureNavbar&&this.$refs.featureNavbar.blur()}}},yc=["aria-expanded"],wc={class:"flex items-center"},vc={class:"flex-0"},xc={key:0,role:"menu",class:"feature-menu absolute z-30 w-80 sm:w-[22rem] left-1/2 -translate-x-1/2 top-full text-left font-normal"},kc={class:"overflow-hidden rounded-lg bg-white dark:bg-zinc-900 shadow-lg ring-1 ring-black/5 dark:ring-white/10"},Bc={class:"p-2 space-y-0.5"},Cc=["href"],Tc={class:"min-w-0 flex-1"},Sc={class:"block text-xs leading-4 text-gray-500 dark:text-gray-400"};function Ec(i,e,t,d,o,n){const l=M("closable");return a(),r("div",{ref:"featureNavbar",class:h(["font-extrabold cursor-pointer h-full select-none",o.opened?"nav-link-active":"nav-link-inactive"]),style:{position:"relative"},role:"button",tabindex:"0","aria-expanded":o.opened?"true":"false","aria-haspopup":"menu",onClick:e[0]||(e[0]=(...u)=>n.toggle&&n.toggle(...u)),onKeydown:[e[1]||(e[1]=N(A((...u)=>n.toggle&&n.toggle(...u),["prevent"]),["enter"])),e[2]||(e[2]=N(A((...u)=>n.toggle&&n.toggle(...u),["prevent"]),["space"])),e[3]||(e[3]=N((...u)=>n.featureNavbarClose&&n.featureNavbarClose(...u),["esc"]))]},[s("div",wc,[e[4]||(e[4]=s("div",{class:"flex-1"}," More ",-1)),s("div",vc,[s("i",{class:h(["ml-1 fas fa-chevron-right text-[0.7em] transition-transform duration-200 ease-out",{"rotate-90":o.opened}])},null,2)])]),p(L,{name:"feature-menu"},{default:P(()=>[o.opened?S((a(),r("div",xc,[s("div",kc,[s("div",Bc,[(a(!0),r(T,null,R(n.visibleItems,u=>(a(),r("a",{key:u.href,href:u.href,role:"menuitem",class:"feature-menu-item group flex items-center gap-3 rounded-xl px-2.5 py-2 transition duration-150 ease-in-out hover:bg-gray-50 dark:hover:bg-zinc-800 focus:outline-none focus:bg-gray-50 dark:focus:bg-zinc-800"},[s("span",{class:h(["flex h-9 w-9 shrink-0 items-center justify-center rounded-lg text-base transition duration-150 ease-in-out",n.accent.icon])},[s("i",{class:h("fad fa-fw fa-"+u.icon)},null,2)],2),s("span",Tc,[s("span",{class:h(["block text-sm font-bold leading-5 text-gray-900 dark:text-gray-100 transition duration-150 ease-in-out",n.accent.title])},m(u.title),3),s("span",Sc,m(u.blurb),1)]),s("i",{class:h(["fas fa-chevron-right text-[10px] text-gray-300 dark:text-zinc-600 transition duration-150 ease-in-out -translate-x-1 opacity-0 group-hover:translate-x-0 group-hover:opacity-100",n.accent.chevron])},null,2)],8,Cc))),128))])])])),[[l,{exclude:["featureNavbar"],handler:"featureNavbarClose"}]]):c("",!0)]),_:1})],42,yc)}const Ac=w(bc,[["render",Ec],["__scopeId","data-v-9f02d508"]]),Pc={mounted(){},props:{current_promo:{type:String,default:""},current_promo_amount:{type:String,default:""}},data(){return{promo:"",error:"",selected_promo:this.current_promo,selected_promo_amount:this.current_promo_amount}},methods:{clearError(){this.error=""},applyPromo(){axios.post("/applyPromo",{code:this.promo}).then(i=>{i.data&&i.data.success==!1?this.error=i.data.message:i.data&&i.data.success==!0?location.reload():this.error="There was an error setting this promo."})},removePromo(){axios.post("/removePromo",{}).then(i=>{i.data&&i.data.success==!1?this.error=i.data.message:i.data&&i.data.success==!0?location.reload():this.error="There was an error removing this promo."})}}}
3,Lc={key:0,class:"flex mx-4 mt-4 space-x-2"},Ic={class:"w-full"},Nc={key:0,class:"w-full"},Dc={class:"text-sm text-red-500 mt-1"},Vc={key:1,class:"mx-4 mt-4"},Rc={class:"flex space-x-2 justify-between"},zc={class:"text-gray-700"};function Mc(i,e,t,d,o,n){return a(),r("div",null,[o.selected_promo?(a(),r("div",Vc,[e[7]||(e[7]=s("h6",{class:"text-blue-600"},"Promo Applied:",-1)),s("div",Rc,[s("div",zc,m(o.selected_promo)+" - "+m(o.selected_promo_amount)+"% off",1),s("div",{role:"button",tabindex:"0",onKeydown:[e[2]||(e[2]=N(A(l=>l.currentTarget.click(),["stop","prevent"]),["enter"])),e[3]||(e[3]=N(A(l=>l.currentTarget.click(),["stop","prevent"]),["space"]))],"aria-label":"Remove promo code",class:"text-gray-700 cursor-pointer",onClick:e[4]||(e[4]=l=>n.removePromo())},[...e[6]||(e[6]=[s("i",{class:"fas fa-times"},null,-1)])],32)])])):(a(),r("div",Lc,[s("div",Ic,[e[5]||(e[5]=s("h4",{class:"plan-title"},"Promo Code",-1)),s("div",null,[S(s("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>o.promo=l),type:"text",name:"code",placeholder:"Enter Your Promo Here...",class:"appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md placeholder-gray-400 focus:outline-none focus:shadow-outline-blue focus:border-blue-500 transition duration-150 ease-in-out sm:text-sm sm:leading-5"},null,512),[[O,o.promo]]),s("button",{type:"button",onClick:e[1]||(e[1]=l=>n.applyPromo()),class:"btn-primary mt-2 w-full"},"Apply")]),o.error?(a(),r("div",Nc,[s("p",Dc,m(o.error),1)])):c("",!0)])]))])}const Oc=w(Pc,[["render",Mc]]),jc={mounted(){},props:{path:String,slug:String,id:[Number,String]},data(){return{showingLimitedAdModal:!1,appView:this.$store.getters.appView}},methods:{toggleLimitedAdsModal(){axios.post("/setLimitedAds",{article_id:this.id}).then(i=>{document.getElementById("articlePath").click()}).catch(i=>{console.log(i)})}}},Uc=["href"];function Hc(i,e,t,d,o,n){return a(),r("div",null,[s("button",{onClick:e[0]||(e[0]=(...l)=>n.toggleLimitedAdsModal&&n.toggleLimitedAdsModal(...l)),class:"text-sm text-gray-600 hover:text-gray-800 cursor-pointer mb-2"},[...e[1]||(e[1]=[s("span",{class:"underline"},"Click here",-1),_(" to view this article with reduced ads. ",-1),s("i",{class:"far fa-arrow-up-right-from-square ml-2"},null,-1)])]),s("a",{"data-google-interstitial":"false",id:"articlePath",href:o.appView?t.path:"/cleanArticle/"+t.slug,class:"hidden"},null,8,Uc)])}const Wc=w(jc,[["render",Hc],["__scopeId","data-v-3c57143f"]]),qc={created(){},mounted(){window.addEventListener("resize",()=>{this.windowWidth=window.innerWidth})},props:{articles:{type:[Object,Array],required:!0},type:String},data(){return{windowWidth:window.innerWidth}},computed:{articlesToShow(){const i=Array.isArray(this.articles)?this.articles:Object.values(this.articles);return this.windowWidth<1024?i.slice(0,Math.min(this.type=="trending"?4:2,i.length)):i}},methods:{}},Fc={class:"grid grid-cols-1 lg:grid-cols-2 gap-x-8 gap-y-0 lg:gap-y-5 divide-y divide-gray-200 dark:divide-zinc-800 lg:divide-y-0"},Yc=["href","aria-label"],Kc={class:"overflow-hidden rounded w-24 sm:w-32 aspect-[4/3]"},Gc=["src","alt"],Qc={class:"flex-1 min-w-0 space-y-1"},Jc=["href","aria-label"],Xc={class:"text-base font-bold leading-[1.2] tracking-tight text-gray-900 dark:text-gray-100 group-hover:text-gray-600 dark:group-hover:text-gray-300"},Zc={class:"flex items-center gap-x-1 text-[13px] pt-1.5"},$c=["src","alt"],eu=["href","aria-label"],tu={datetime:"2020-03-16",class:"text-gray-500 dark:text-gray-400"};function iu(i,e,t,d,o,n){return a(),r("div",Fc,[(a(!0),r(T,null,R(n.articlesToShow,l=>(a(),r("div",{key:l.id,class:"group flex gap-3 py-4 lg:py-0 cursor-pointer"},[s("a",{href:l.path,"aria-label":"Read article: "+l.title,class:"shrink-0 self-start block"},[s("div",Kc,[s("img",{class:"w-full h-full bg-gray-100 dark:bg-zinc-800 object-cover transition duration-500 ease-out group-hover:opacity-90 md:group-hover:scale-[1.03]",src:l.imagePath,alt:"Image for article: "+l.title},null,8,Gc)])],8,Yc),s("div",Qc,[s("a",{href:l.path,"aria-label":"Read article: "+l.title},[s("h3",Xc,m(l.title),1)],8,Jc),s("div",Zc,[s("img",{src:l.authorImagePath,alt:"Profile photo of "+l.authorName,class:"h-5 w-5 rounded-full bg-gray-100 dark:bg-zinc-700 object-cover mr-0.5"},null,8,$c),s("a",{href:l.is_opinion?l.authorTakePath:l.authorPath,"aria-label":"View author profile: "+l.authorName,class:"text-gray-700 dark:text-gray-300 hover:text-gray-500 dark:hover:text-gray-400"},m(l.authorName),9,eu),e[0]||(e[0]=s("span",{"aria-hidden":"true",class:"inline-block h-[3px] w-[3px] rounded-full bg-gray-400 dark:bg-zinc-500"},null,-1)),s("time",tu,m(l.publishedOnDate),1)])])]))),128))])}const su=w(qc,[["render",iu]]),ou={created(){},mounted(){b.on("updateImage",i=>{this.is_notification||(this.avatarImage=i.image,b.emit("alert",{message:"Avatar has been updated.",success:!0}))}),b.on("updateBadge",i=>{this.is_notification||(this.badgeImage=i.image,b.emit("alert",{message:"Badge has been updated.",success:!0}))}),b.on("badgeRemoved",i=>{this.badgeImage=null})},props:{image_path:String,badge_path:{type:String,default:null},is_profile:{type:Boolean,default:!1},is_notification:{type:Boolean,default:!1}},data(){return{avatarImage:this.image_path,badgeImage:this.badge_path}},methods:{}},nu=["src"],au=["src"];function ru(i,e,t,d,o,n){return a(),r("div",{class:h(["relative bg-transparent",[t.is_profile?"avatar-profile-sizing":"avatar-sizing"]])},[s("img",{class:h([t.is_profile?"avatar-profile-sizing":"avatar-sizing"]),src:o.avatarImage,alt:"Profile Photo"},null,10,nu),o.badgeImage&&!t.is_notification?(a(),r("img",{key:0,alt:"Image",src:o.badgeImage,class:h(["absolute z-10",[t.is_profile?"h-16 w-16 sm:h-20 sm:w-20 -top-3 -right-3":"h-7 w-7 -top-2.75 -right-2.25"]])},null,10,au)):c("",!0)],2)}const lu=w(ou,[["render",ru]]),du={created(){var i=!1;
3if(this.type=="headline"||this.$store.getters.siteTitle=="Babylon Bee"&&this.type=="notification"&&this.object.action=="follow-notification"){var e=this.object.created_at;const t=new Date,d=new Date(t);d.setDate(t.getDate()-2),new Date(e).getTime()>d.getTime()&&(i=!0)}if(this.reactions=this.$store.getters.activeReactions,i?(this.reactions=this.reactions.filter(t=>t.value!="like"),this.reactions.unshift(this.reactions.find(t=>t.value=="updoot")),this.reactions.pop()):this.reactions=this.reactions.filter(t=>t.value!="updoot"),this.userChosenReactions=JSON.parse(document.querySelector('meta[name="reaChosen"]').getAttribute("content")),this.type!="notification"){if(b.on("reactionChange-"+this.type+"-"+this.object.id,t=>{this.hasBeenReactedByUser=t}),b.on("failedReaction-"+this.type+"-"+this.object.id,t=>{this.hasBeenReactedByUser=!1}),this.object.authUserReaction){if(this.userReaction=this.object.authUserReaction,this.type=="comment")if(this.userReaction.type=="bacon"){let t=["Dry-Cured","Double Smoked","Wet Cured","Kevin Baconed","Slabbed","Crisped the Piggie","Broiled","Pan-fried","Center Cut"];const d=Math.floor(Math.random()*t.length);this.reactionDescriptor=t[d]}else this.reactionDescriptor=this.userReaction.descriptor;else this.icon=this.userReaction.icon,this.color=this.userReaction.color;this.reactionType=this.userReaction.type}b.on("reacted-"+this.type+"-"+this.object.id,t=>{this.icon=t.icon,this.color=t.color,this.reactionDescriptor=t.descriptor,this.hasBeenReactedByUser=t.hasBeenReactedByUser})}b.on("reactionContainerShow",t=>{(this.object.id!=t.id||this.type!=t.type)&&(this.hoverTimeout!=null&&clearTimeout(this.hoverTimeout),this.containerTimeout!=null&&clearTimeout(this.containerTimeout),this.shouldClose=!0,this.onClose())}),b.on("openNotificationReactionPicker-"+this.object.id,t=>{this.type=="notification"&&this.openNotificationReactionPicker()})},mounted(){this.type!="notification"&&(this.hasBeenReactedByUser=!!this.object.authUserReaction),this._onResize=()=>{this.windowWidth=window.innerWidth,this.showing&&this.updatePosition()},this._onScroll=()=>{this.showing&&this.updatePosition()},window.addEventListener("resize",this._onResize),window.addEventListener("scroll",this._onScroll,!0)},beforeUnmount(){this.stopTracking(),this._onResize&&window.removeEventListener("resize",this._onResize),this._onScroll&&window.removeEventListener("scroll",this._onScroll,!0),this.shimmerTimeout&&(clearTimeout(this.shimmerTimeout),this.shimmerTimeout=null)},props:{object:Object,has_been_reacted_by_user:Boolean,user_id:[Number,String],type:String,parent_type:String,reaction_count:[Number,String],is_trending:Boolean,is_new_notification:Boolean},data(){return{can_interact_with_reactions:this.type=="post"||this.type=="headline"&&this.$store.getters.headlineInteract||this.type=="notification"||this.type=="comment"&&(this.parent_type.toLowerCase()=="post"||this.parent_type.toLowerCase()=="podcastepisode"||this.parent_type.toLowerCase()=="headline"&&this.$store.getters.headlineInteract||(this.parent_type.toLowerCase()=="article"||this.parent_type.toLowerCase()=="comic")&&this.$store.getters.articleInteract),popoverStyle:{position:"fixed",top:"0px",left:"0px",zIndex:130},rafId:null,windowWidth:window.innerWidth,showing:!1,hasBeenReactedByUser:this.has_been_reacted_by_user,reactionType:"like",keyboardOpening:!1,interval:!1,choosing:!1,hovering:!1,reactions:[],reactionTypes:[],containerTimeout:null,reactionDescriptor:"Liked",shouldClose:!0,icon:"thumbs-up",color:"blue-500",hoverTimeout:null,appView:this.$store.getters.appView,userReaction:{},isTouchDevice:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,userChosenReactions:[],shimmering:!1,shimmerTimeout:null,notificationTouchTimeout:null,suppressNotificationClick:!1,isAnimatingLike:!1,likeAnimTimer:null}},computed:{mainRowCount(){return Math.ceil(this.reactions.length/5)}},watch:{showing(i){var e,t;i?(this.updatePosition(),this.$nextTick(()=>{this.updatePosition(),this.startTracking()}),this.hasBeenReactedByUser||this.triggerShimmer()):((e=this.$refs.popover)!=null&&e.contains(document.activeElement)&&((t=this.$refs.dropdown.querySelector("button"))==null||t.focus()),this.keyboardOpening=!1,this.stopTracking(),this.shimmering=!1,this.shimmerTimeout&&(clearTimeout(this.shimmerTimeout),this.shimmerTimeout=null))}},methods:{shimmerDelay(i,e){const t=i%5,d=Math.floor(i/5)+e;return(t+d)*85},triggerShimmer(){this.shimmering=!1,this.shimmerTimeout&&clearTimeout(this.shimmerTimeout),this.$nextTick(()=>{this.shimmering=!0,this.shimmerTimeout=setTimeout(()=>{this.shimmering=!1,this.shimmerTimeout=null},2e3)})},updatePosition(){const i=this.$refs.dropdown;if(!i)return;const e=i.getBoundingClientRect(),t=this.$refs.popover,d=t?t.offsetHeight:220,o=t?t.offsetWidth:256,n=window.innerWidth,l=window.innerHeight,u=64,y=8,f=8,B=l-e.bottom-f,v=e.top-u-f;let D;d+y<=v?D=e.top-d-y:d+y<=B?D=e.bottom+y:v>=B?D=Math.max(u+f,e.top-d-y):D=Math.max(u+f,l-d-f);let W=e.left+e.width/2-o/2;W=Math.max(f,Math.min(W,n-o-f)),this.popoverStyle={position:"fixed",top:Math.round(D)+"px",left:Math.round(W)+"px",zIndex:130}},startTracking(){if(this.rafId)return;const i=()=>
3{if(!this.showing){this.rafId=null;return}this.updatePosition(),this.rafId=requestAnimationFrame(i)};this.rafId=requestAnimationFrame(i)},stopTracking(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null)},mobileHover(){if(this.hovering=!0,b.emit("reactionContainerShow",{type:this.type,id:this.object.id}),!this.interval){var i=this;setTimeout(function(){i.hovering&&(i.interval=!0,i.interval>0&&(i.showing=!0))},500)}},mobileLeave(i){this.hovering=!1,clearInterval(this.interval),this.interval=!1,this.hovering||(i&&i.target&&i.target.id?this.likeType=i.target.id:this.likeType="like")},openKeyboardReactions(){this.keyboardOpening=!0,this.showing=!0,this.containerHover()},onClose(){this.shouldClose&&(this.choosing=!1,clearInterval(this.interval),this.hovering=!1,this.interval=!1,this.showing=!1)},containerLeave(){!this.hovering&&!this.choosing?(clearInterval(this.interval),this.interval=!1,this.showing=!1):!this.appView&&this.windowWidth>640&&(this.containerTimeout=setTimeout(()=>{this.hovering||(this.choosing=!1,
3clearInterval(this.interval),this.interval=!1,this.showing=!1,this.hovering=!1)},600))},containerHover(){!this.appView&&this.windowWidth>640&&(this.containerTimeout!=null&&clearTimeout(this.containerTimeout),this.hoverTimeout!=null&&clearTimeout(this.hoverTimeout)),this.hovering=!1,this.choosing=!0},initialHover(){(!this.isTouchDevice||this.windowWidth>640&&this.type!="notification")&&(b.emit("reactionContainerShow",{type:this.type,id:this.object.id}),!this.appView&&this.windowWidth>640&&this.hoverTimeout!=null&&clearTimeout(this.hoverTimeout),this.hovering=!0,!this.appView&&this.windowWidth>640?setTimeout(()=>{this.determineHover()},600):this.determineHover())},openNotificationReactionPicker(){b.emit("reactionContainerShow",{type:this.type,id:this.object.id}),this.hoverTimeout!=null&&clearTimeout(this.hoverTimeout),this.containerTimeout!=null&&clearTimeout(this.containerTimeout),this.hovering=!0,this.choosing=!0,this.showing=!0},startNotificationTouch(){this.isTouchDevice&&(this.notificationTouchTimeout&&clearTimeout(this.notificationTouchTimeout),this.suppressNotificationClick=!1,this.notificationTouchTimeout=setTimeout(()=>{this.suppressNotificationClick=!0,this.openNotificationReactionPicker()},450))},endNotificationTouch(){this.notificationTouchTimeout&&(clearTimeout(this.notificationTouchTimeout),this.notificationTouchTimeout=null),this.suppressNotificationClick&&setTimeout(()=>{this.suppressNotificationClick=!1},700)},cancelNotificationTouch(){this.notificationTouchTimeout&&(clearTimeout(this.notificationTouchTimeout),this.notificationTouchTimeout=null)},clickNotificationReaction(){if(this.suppressNotificationClick){this.suppressNotificationClick=!1;return}this.isTouchDevice&&this.openNotificationReactionPicker()},initialLeave(i){this.hovering=!1,clearInterval(this.interval),this.interval=!1,!this.appView&&this.windowWidth>640&&(this.hoverTimeout=setTimeout(()=>
3{this.hovering||(this.choosing=!1,clearInterval(this.interval),this.interval=!1,this.showing=!1,this.hovering=!1)},600))},determineHover(){!this.interval&&this.hovering?(this.interval=!0,this.showing=!0,this.choosing=!0):this.interval&&this.isTouchDevice&&(this.interval=!1,this.showing=!1,this.choosing=!0)},toggleReaction(i=null,e=!0,t="add"){if(this.onClose(),this.can_interact_with_reactions){(this.type=="post"||this.type=="headline")&&(this.isAnimatingLike=!1,this.$nextTick(()=>{this.isAnimatingLike=!0,this.likeAnimTimer&&clearTimeout(this.likeAnimTimer),this.likeAnimTimer=setTimeout(()=>{this.isAnimatingLike=!1,this.likeAnimTimer=null},640)}));var d=i.value;this.hasBeenReactedByUser&&d==this.reactionType&&t=="add"&&(t="remove"),this.reactionType=d,t=="remove"?this.hasBeenReactedByUser=!1:(this.icon=i.icon,this.color=i.color,this.reactionDescriptor=i.descriptor,this.hasBeenReactedByUser=!0),this.$emit("reacted",{intention:t,reactionType:this.reactionType,hasBeenReactedByUser:this.hasBeenReactedByUser,color:this.color,icon:this.icon,descriptor:this.reactionDescriptor}),b.emit("reacted-"+this.type+"-"+this.object.id,{color:this.color,icon:this.icon,descriptor:this.reactionDescriptor,hasBeenReactedByUser:this.hasBeenReactedByUser})}else b.emit("triggerPremiumPopup",{})}}},cu={class:"rounded-full non-selectable"},uu=["id"],hu={key:0},mu=["aria-label","aria-pressed","id"],fu={key:2,class:"text-xs sm:text-sm jumbo:text-[18px] inline-flex items-center justify-center h-9 w-9 jumbo:h-10 jumbo:w-10 rounded-full text-gray-500 dark:text-gray-400"},gu={key:1,class:"w-full"},pu={key:2,class:"inline mr-3 xs:mr-4"},_u=["aria-pressed","disabled"],bu={class:"flex items-center"},yu={key:"liked"},wu={class:"text-sm font-semibold text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition focus:outline-none"},vu={key:"unliked"},xu={class:"bg-white dark:bg-zinc-950 rounded-2xl shadow-[0_10px_40px_-4px_rgba(15,23,42,0.15)] dark:shadow-[0_10px_40px_-4px_rgba(0,0,0,0.75)] ring-1 ring-gray-200 dark:ring-zinc-800 p-2.5 transition-opacity"},ku={class:"grid grid-cols-5 gap-1"},Bu=["aria-label","aria-checked","id","onClick"],Cu={key:0,class:"pointer-events-none absolute inset-0 flex items-center justify-center"},Tu={class:"grid grid-cols-5 gap-1"},Su=["aria-label","aria-checked","id","onClick"],Eu={key:0,class:"pointer-events-none absolute inset-0 flex items-center justify-center"};function Au(i,e,t,d,o,n){const l=M("tooltip"),u=M("keyboard-menu"),y=M("closable");return a(),r("div",{class:h([t.type=="notification"?"w-full":""])},[s("div",cu,[s("div",{ref:"dropdown",id:t.type+"-reactionsDropdown-"+(t.is_trending?"trending-":"")+t.object.id},[t.type=="post"||t.type=="headline"?(a(),r("div",hu,[t.user_id!=t.object.user_id?(a(),r("button",{key:0,type:"button","aria-label":o.hasBeenReactedByUser?"Remove reaction":"Like","aria-pressed":o.hasBeenReactedByUser,onKeydown:e[0]||(e[0]=N(A((...f)=>n.openKeyboardReactions&&n.openKeyboardReactions(...f),["prevent"]),["down"])),onMouseenter:e[1]||(e[1]=(...f)=>n.initialHover&&n.initialHover(...f)),onMouseleave:e[2]||(e[2]=(...f)=>n.initialLeave&&n.initialLeave(...f)),onTouchstart:e[3]||(e[3]=(...f)=>n.mobileHover&&n.mobileHover(...f)),onTouchend:e[4]||(e[4]=(...f)=>n.mobileLeave&&n.mobileLeave(...f)),onTouchcancel:e[5]||(e[5]=(...f)=>n.mobileLeave&&n.mobileLeave(...f)),id:"postLike-"+t.object.id,class:h([[o.hasBeenReactedByUser?"bg-"+o.color+" text-always-w
3hite shadow-sm hover:brightness-110 hover:shadow-md dark:saturate-75":"bg-gray-100 dark:bg-zinc-800 text-gray-600 dark:text-gray-400 hover:bg-blue-50 hover:text-blue-600 dark:hover:bg-blue-500/10 dark:hover:text-blue-400"],"text-xs sm:text-sm jumbo:text-[18px] inline-flex items-center justify-center h-9 w-9 jumbo:h-10 jumbo:w-10 rounded-full cursor-pointer transition"]),onClick:e[6]||(e[6]=f=>n.toggleReaction({value:"like",descriptor:"Liked",icon:"thumbs-up",color:"blue-500"},!!o.hasBeenReactedByUser,o.hasBeenReactedByUser?"remove":"add"))},[s("i",{class:h([[o.hasBeenReactedByUser?"fas fa-"+o.icon:"far fa-thumbs-up",t.user_id!=t.object.user_id?"cursor-pointer":"",{"like-spin-pop":o.isAnimatingLike}],"mx-auto fa-fw like-icon-base"])},null,2)],42,mu)):t.user_id==t.object.user_id?(a(),r("span",{key:1,class:h(["text-xs sm:text-sm jumbo:text-[18px] inline-flex items-center justify-center h-9 w-9 jumbo:h-10 jumbo:w-10 rounded-full",[t.reaction_count>0?"text-gray-500 dark:text-gray-400":"text-gray-300 dark:text-zinc-600"]])},[...e[23]||(e[23]=[s("i",{class:"far fa-thumbs-up mx-auto fa-fw"},null,-1)])],2)):t.is_trending?(a(),r("span",fu,[...e[24]||(e[24]=[s("i",{class:"far fa-thumbs-up mx-auto fa-fw"},null,-1)])])):c("",!0)])):t.type=="notification"?(a(),r("div",gu,[s("button",{type:"button",onClick:e[7]||(e[7]=A((...f)=>n.clickNotificationReaction&&n.clickNotificationReaction(...f),["stop"])),onTouchstart:e[8]||(e[8]=(...f)=>n.startNotificationTouch&&n.startNotificationTouch(...f)),onTouchend:e[9]||(e[9]=(...f)=>n.endNotificationTouch&&n.endNotificationTouch(...f)),onTouchcancel:e[10]||(e[10]=(...f)=>n.cancelNotificationTouch&&n.cancelNotificationTouch(...f)),onMouseenter:e[11]||(e[11]=(...f)=>n.initialHover&&n.initialHover(...f)),onMouseleave:e[12]||(e[12]=(...f)=>n.initialLeave&&n.initialLeave(...f)),class:h(["cursor-pointer non-selectable text-center w-full text-xs font-bold uppercase tracking-[0.1em] text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100 sm:hover:bg-gray-100 sm:dark:hover:bg-zinc-800 py-3 focus:outline-none transition-colors duration-200",[t.is_new_notification?"rounded-br-xl":"rounded-b-xl"]])}," React ",34)])):(a(),r("div",pu,[s("button",{type:"button","aria-pressed":o.hasBeenReactedByUser,onKeydown:e[13]||(e[13]=N(A((...f)=>n.openKeyboardReactions&&n.openKeyboardReactions(...f),["prevent"]),["down"])),onMouseenter:e[14]||(e[14]=(...f)=>n.initialHover&&n.initialHover(...f)),onMouseleave:e[15]||(e[15]=(...f)=>n.initialLeave&&n.initialLeave(...f)),onTouchstart:e[16]||(e[16]=(...f)=>n.mobileHover&&n.mobileHover(...f)),onTouchend:e[17]||(e[17]=(...f)=>n.mobileLeave&&n.mobileLeave(...f)),onTouchcancel:e[18]||(e[18]=(...f)=>n.mobileLeave&&n.mobileLeave(...f)),onClick:e[19]||(e[19]=f=>n.toggleReaction({value:"like",descriptor:"Liked",icon:"thumbs-up",color:"blue-500"},!!o.hasBeenReactedByUser,o.hasBeenReactedByUser?"remove":"add")),class:"focus:outline-none",disabled:t.object.user_id==t.user_id},[s("div",bu,[p(L,{name:"fade",mode:"out-in"},{default:P(()=>[o.hasBeenReactedByUser?(a(),r("div",yu,[s("span",wu,m(o.reactionDescriptor),1)])):(a(),r("div",vu,[...e[25]||(e[25]=[s("span",{class:"text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition focus:outline-none"},"Like",-1)])]))]),_:1})])],40,_u)]))],8,uu),(a(),E(U,{to:"body"},[p(L,{name:"slower-fade",mode:"out-in"},{default:P(()=>[o.showing?S((a(),r("div",{key:0,ref:"popover",role:"menu","aria-label":"Choose a reaction",onKeydown:e[20]||(e[20]=N(A(f=>o.showing=!1,["stop","prevent"]),["esc"])),onMouseover:e[21]||(e[21]=(...f)=>n.containerHover&&n.containerHover(...f)),onMouseleave:e[22]||(e[22]=(...f)=>n.containerLeave&&n.containerLeave(...f)),class:"reaction-popover-open w-64",style:V(o.popoverStyle)},[s("div",xu,[s("div",ku,[(a(!0),r(T,null,R(o.reactions,(f,B)=>S((a(),r("button",{type:"button",role:"menuitemradio","aria-label":f.name||f.descriptor||f.value,"aria-checked":f.value==o.reactionType&&o.hasBeenReactedByUser,key:"main-"+f.value,id:f.value,onClick:v=>n.toggleReaction(f,!0,"add"),class:h([[f.value==o.reactionType&&o.hasBeenReactedByUser?"text-"+f.color+" bg-gray-50 dark:bg-zinc-800 scale-110":"text-"+f.color+" sm:hover:scale-110 sm:hover:bg-gray-50 sm:dark:hover:bg-zinc-800"],"relative p-2 col-span-1 mx-auto cursor-pointer rounded-full flex items-center justify-center transition-all duration-150 ease-out text-xs w-11 h-11"])},[s("i",{class:h(["fad fa-2x dark:brightness-110",["fa-"+f.icon,o.shimmering?"base-fading":""]]),style:V(o.shimmering?{animationDelay:n.shimmerDelay(B,0)+"ms"}:{})},null,6),o.shimmering?(a(),r("span",Cu,[s("i",{class:h(["fad fa-2x shimmer-icon dark:brightness-110",["fa-"+f.icon,"text-"+f.color]]),style:V({animationDelay:n.shimmerDelay(B,0)+"ms"})},null,6)])):c("",!0)],10,Bu)),[[l,f.name]])),128))]),e[26]||(e[26]=s("div",{class:"relative my-2 px-2"},[s("div",{class:"h-px bg-gray-100 dark:bg-zinc-800"})],-1)),s("div",Tu,[(a(!0),r(T,null,R(o.userChosenReactions,(f,B)=>S((a(),r("button",{type:"button",role:"menuitemradio","aria-label":f.name||f.descriptor||f.value,"aria-checked":f.value==o.reactionType&&o.hasBeenReactedByUser,key:"chosen-"+f.value,id:f.value,onClick:v=>n.toggleReaction(f,!0,"add"),class:h([[f.value==o.reactionType&&o.hasBeenReactedByUser?"text-"+f.color+" bg-gray-50 dark:bg-zinc-800 scale-110":"text-"+f.color+" sm:hover:scale-110 sm:hover:bg-gray-50 sm:dark:hover:bg-zinc-800"],"relative p-2 col-span-1 mx-auto cursor-pointer rounded-full flex items-center justify-center transition-all duration-150 ease-out text-xs w-11 h-11"])},[s("i",{class:h(["fad fa-2x dark:brightness-110",["fa-"+f.icon,o.shimmering?"base-fading":""]]),style:V(o.shimmering?{animationDelay:n.shimmerDelay(B,n.mainRowCount)+"ms"}:{})},null,6),o.shimmering?(a(),r("span",Eu,[s("i",{class:h(["fad fa-2x shimmer-icon dark:brightness-110",["fa-"+f.icon,"text-"+f.color]]),style:V({animationDelay:n.shimmerDelay(B,n.mainRowCount)+"ms"})},null,6)])):c("",!0)],10,Su)),[[l,f.name]])),128))])])],36)),[[u,o.keyboardOpening],[y,{exclude:["dropdown"],handler:"onClose"}]]):c("",!0)]),_:1})]))])],2)}const Pu=w(du,[["render",Au],["__scopeId","data-v-93d41aca"]]),Lu={props:{has_editor_badge:{type:Boolean,default:!1},has_verified_user_badge:{type:Boolean,default:!1},has_red_check_badge:{type:Boolean,default:!1},has_free_user_badge:{type:Boolean,default:!1}},data(){return{editorBadge:this.$store.getters.editorBadge,verifiedUserBadge:this.$store.getters.verifiedBadge,redCheckBadge:this.$store.getters.redCheckBadge,freeUserBadge:this.$store.getters.freeBadge}}},Iu={key:4};function Nu(i,e,t,d,o,n){return a(),r("span",null,[t.has_editor_badge?(a(),r("span",{key:0,class:h(o.editorBadge)},null,2)):t.has_verified_user_badge?(a(),r("span",{key:1,class:h(o.verifiedUserBadge)},null,2)):t.has_red_check_badge?(a(),r("span",{key:2,class:h(o.redCheckBadge)},null,2)):t.has_free_user_badge?(a(),r("span",{key:3,class:h(o.freeUserBadge)},null,2)):(a(),r("span",Iu,"  "))])}const Du=w(Lu,[["render",Nu]]),Vu={};function Ru(i,e){return a(),E(L,{"enter-active-class":"transition ease-out duration-300","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:P(()=>[he(i.$slots,"default")]),_:3})}const zu=w(Vu,[["render",Ru]]),Mu={created(){}
3,mounted(){setTimeout(function(){console.log("removing script"),document.getElementById("facebookPixelScripts")!=null&&document.getElementById("facebookPixelScripts").remove()},1e4)},props:{},methods:{}};function Ou(i,e,t,d,o,n){return null}const ju=w(Mu,[["render",Ou]]),Uu={mounted(){},props:{scroll:{type:String,required:!1},text:{type:String,required:!1}},data(){return{}},methods:{goToId(){let i=document.getElementById(this.scroll);if(i){const t=i.getBoundingClientRect().top+window.pageYOffset+-15;window.scrollTo({top:t-100,behavior:"smooth"})}}},created(){},beforeUnmount(){}};function Hu(i,e,t,d,o,n){return a(),r("span",null,[s("span",{role:"button",tabindex:"0",onKeydown:[e[0]||(e[0]=N(A(l=>l.currentTarget.click(),["stop","prevent"]),["enter"])),e[1]||(e[1]=N(A(l=>l.currentTarget.click(),["stop","prevent"]),["space"]))],onClick:e[2]||(e[2]=l=>n.goToId()),class:"cursor-pointer link"},m(t.text),33)])}const Wu=w(Uu,[["render",Hu]]),qu=k(()=>x(()=>import("./InteractQuizEmbed-CW1Wf2x6.js"),__vite__mapDeps([2,3,4,5]))),Fu={components:{EmbeddedPost:Le,LibsynEmbed:Te,InstagramOembed:Ce,InteractQuizEmbed:qu},created(){(this.embed_type=="img"||this.embed_type=="gif")&&(this.isLoading=!0)},mounted(){this.bearer!=""&&(this.headers={Authorization:this.bearer}),this.multiple||(this.embed_type=="post"||this.lookup_embed?this.getEmbeds():this.isLoading=!1)},props:{id:{type:[Number,String],default:null},bearer:{type:String,default:""},is_lone_photo:Boolean,is_profile:Boolean,index:Number,is_user:Boolean,multiple:Boolean,full_height:String,is_first_image:Boolean,embed_paths_array:Array,image_parent_path:String,is_post_edit:Boolean,embed_type:String,embed_path:String,lookup_embed:{type:Boolean,default:!1},embeddable_type:String,embeddable_id:[Number,String],is_parent_comment:{type:Boolean,default:!1},is_embedded_post:{type:Boolean,default:!1},is_trending:{type:Boolean,default:!1},is_preview:{type:Boolean,default:!1},user_id:[Number,String],is_notifications:{type:Boolean,default:!1},check_for_notification:{type:Boolean,default:!0}},data(){return{type:this.embed_type,path:this.embed_path,external_link:"",isPost:this.embeddable_type=="App\\Post",headers:{},embeddedPost:null,isLoading:!1,appView:this.$store.getters.appView,gifImageLoaded:!1}},methods:{getEmbeds(){if(!this.id){this.isLoading=!1;return}this.errors={},axios.post("/getEmbeds",{embed_id:this.id},{headers:this.headers}).then(i=>{this.isLoading=!1,i.data.unique_id?(this.type="post",this.embeddedPost=i.data,this.path=i.data.path):(this.type=i.data.type,this.path=i.data.path,this.external_link=i.data.external_link)})},gifLoaded(i){requestAnimationFrame(()=>{this.gifImageLoaded=!0,this.$emit("gifLoaded",i)})}}},Yu=["id"],Ku={key:0,class:"w-full p-4 flex items-center justify-center h-48 font-normal"},Gu={key:0,class:"inline-flex h-10 min-w-[150px] items-center justify-center px-3 leading-none text-gray-500"},Qu=["src"],Ju={key:2,class:"text-left"},Xu={key:3},Zu={key:4},$u={key:5},eh={key:6},th={key:7,class:"w-full"},ih={class:"w-full"},sh={key:8,class:"text-left"},oh={key:9,class:"text-left"},nh={key:10,class:"text-left"},ah={key:11,class:"text-center"},rh=["href"];function lh(i,e,t,d,o,n){const l=C("image-lightbox"),u=C("link-preview"),y=C("youtube-embed"),f=C("interact-quiz-embed"),B=C("libsyn-embed"),v=C("embedded-post"),D=C("tweet-embed"),W=C("instagram-oembed"),ve=C("poll"),xe=C("video-js"),ke=C("video-js-app");return a(),r("div",{id:t.id?"mediatag-"+t.id:"mediatag",class:h(["w-full block",[t.full_height?"sm:h-full":""]])},[o.isLoading?(a(),r("div",Ku,[...e[1]||(e[1]=[s("i",{class:"far fa-spin fa-sync-alt fa-lg mr-2"},null,-1),_(" Loading Media ",-1)])])):(a(),r("div",{key:1,class:h(["w-full",[t.embeddable_type!="App\\Article"?"":"my-3",t.full_height?"sm:h-full":"",o.type!="img"?"text-center":""]])},[o.type=="img"?(a(),E(l,{key:0,index:t.index,id:t.id||0,is_profile:t.is_profile,path:o.path,embeddable_type:t.embeddable_type,embeddable_id:t.embeddable_id,is_lone_photo:t.is_lone_photo,is_user:t.is_user,image_parent_path:t.image_parent_path,multiple:t.multiple,full_height:t.full_height,is_first_image:t.is_first_image,embed_paths_array:t.embed_paths_array,is_post_edit:t.is_post_edit,is_parent_comment:t.is_parent_comment,
3is_trending:t.is_trending,is_embedded_post:t.is_embedded_post,is_preview:t.is_preview},null,8,["index","id","is_profile","path","embeddable_type","embeddable_id","is_lone_photo","is_user","image_parent_path","multiple","full_height","is_first_image","embed_paths_array","is_post_edit","is_parent_comment","is_trending","is_embedded_post","is_preview"])):o.type=="gif"?(a(),r("div",{key:1,class:h(["relative w-full",[t.embeddable_type=="App\\Post"?t.is_preview?"":"bg-gray-100 border-t border-gray-200":"",t.is_embedded_post?"rounded-b-lg":""]]),style:V({minHeight:o.gifImageLoaded?"0px":"1px"})},[o.gifImageLoaded?c("",!0):(a(),r("div",Gu,[...e[2]||(e[2]=[s("i",{class:"far fa-spin fa-sync-alt"},null,-1)])])),s("img",{alt:"Uploaded Image",ref:"gifImage",onLoad:e[0]||(e[0]=yg=>n.gifLoaded(t.embeddable_id)),src:o.path,class:h(["mx-auto max-w-full h-auto transition-opacity duration-300 ease-out",o.gifImageLoaded?"relative block opacity-100":"absolute block h-0 w-0 overflow-hidden opacity-0 pointer-events-none"])},null,42,Qu)],6)):o.type=="link"||o.type=="facebook"||t.embeddable_type!="App\\Article"&&o.type=="instagram"?(a(),r("div",Ju,[p(u,{url:o.path,is_post:o.isPost,is_embedded_post:t.is_embedded_post,is_trending:t.is_trending},null,8,["url","is_post","is_embedded_post","is_trending"])])):o.type=="youtube"?(a(),r("div",Xu,[p(y,{url:o.path,centered:t.embeddable_type=="App\\Article",is_embedded_post:t.is_embedded_post},null,8,["url","centered","is_embedded_post"])])):o.type=="quiz"?(a(),r("div",Zu,[p(f,{url:o.path,centered:t.embeddable_type=="App\\Article"},null,8,["url","centered"])])):o.type=="libsyn"?(a(),r("div",$u,[p(B,{url:o.path,centered:t.embeddable_type=="App\\Article"},null,8,["url","centered"])])):o.type=="post"?(a(),r("div",eh,[p(v,{embedded_post:o.embeddedPost,bearer:t.bearer,is_trending:t.is_trending,user_id:t.user_id,is_notifications:t.is_notifications,check_for_notification:t.check_for_notification},null,8,["embedded_post","bearer","is_trending","user_id","is_notifications","check_for_notification"])])):o.type=="twitter"?(a(),r("div",th,[s("div",ih,[p(D,{id:o.path,centered:t.embeddable_type=="App\\Article",is_embedded_post:t.is_embedded_post},null,8,["id","centered","is_embedded_post"])])])):t.embeddable_type=="App\\Article"&&o.type=="instagram"?(a(),r("div",sh,[p(W,{url:o.path},null,8,["url"])])):o.type=="poll"?(a(),r("div",oh,[p(ve,{id:o.path,embeddable_type:t.embeddable_type,bearer:t.bearer,is_embedded_post:t.is_embedded_post,is_preview:t.is_preview},null,8,["id","embeddable_type","bearer","is_embedded_post","is_preview"])])):o.type=="video"?(a(),r("div",nh,[o.appView?(a(),E(ke,{key:1,id:parseInt(o.path),bearer:t.bearer},null,8,["id","bearer"])):(a(),E(xe,{key:0,id:parseInt(o.path),bearer:t.bearer},null,8,["id","bearer"]))])):o.type=="button"?(a(),r("div",ah,[s("a",{class:"btn-primary",href:o.external_link,target:"_blank"},m(o.path),9,rh)])):c("",!0)],2))],10,Yu)}const dh=w(Fu,[["render",lh]]),ch={mounted(){this.resizeObserver=new ResizeObserver(()=>{var i;this.bannerHeight=((i=this.$refs.banner)==null?void 0:i.getBoundingClientRect().height)||0}),this.resizeObserver.observe(this.$refs.banner)},beforeUnmount(){var i;(i=this.resizeObserver)==null||i.disconnect()},props:{site_logo:{type:String,required:!0},site_name:{type:String,default:"This website"},region:{type:String,default:"eea"},privacy_url:{type:String,default:"/privacy"},california_privacy_url:{type:String,default:"/california-privacy"},gpc:{type:Boolean,default:!1},signed_in:{type:Boolean,default:!1},app_view:{type:Boolean,default:!1}},data(){return{decided:!1,bannerHeight:0,resizeObserver:null}},computed:{barStyle(){return ge(this.app_view)},spacerStyle(){return fe(this.app_view,this.bannerHeight)}}};function uh(i,e,t,d,o,n){const l=C("consent-card");return a(),r(T,null,[o.decided?c("",!0):(a(),r("div",{key:0,"aria-hidden":"true",style:V(n.spacerStyle)},null,4)),(a(),E(U,{to:"body"},[o.decided?c("",!0):(a(),r("section",{key:0,ref:"banner","aria-label":"Cookie choices",class:"fixed inset-x-0 z-[70] border-t border-gray-300 bg-white text-gray-900 shadow-[0_-4px_24px_rgba(0,0,0,0.12)] dark:border-zinc-700 dark:bg-zinc-900 dark:text-gray-100",style:V(n.barStyle)},[p(l,{banner:!0,site_logo:t.site_logo,site_name:t.site_name,region:t.region,privacy_url:t.privacy_url,california_privacy_url:t.california_privacy_url,gpc:t.gpc,signed_in:t.signed_in,onDecided:e[0]||(e[0]=u=>o.decided=!0)}
3,null,8,["site_logo","site_name","region","privacy_url","california_privacy_url","gpc","signed_in"])],4))]))],64)}const hh=w(ch,[["render",uh]]),mh={setup(){return{detailsId:me()}},props:{app_view:{type:Boolean,default:!1},signed_in:{type:Boolean,default:!1},gpc:{type:Boolean,default:!1},california:{type:Boolean,default:!1},tracking_blocked:{type:Boolean,default:!1},site_name:{type:String,default:"This website"}},data(){return{detailsOpen:!1,dismissed:!1,busy:!1,error:!1,noticeHeight:0,observer:null}},computed:{canEnableHere(){var e;const i=(e=window.consentState)==null?void 0:e.region;return Object.hasOwn(window.consentState||{},"region")&&!["california","eea","switzerland","unknown",void 0].includes(i)},barStyle(){return ge(this.app_view)},spacerStyle(){return fe(this.app_view,this.noticeHeight)}},mounted(){this.observer=new ResizeObserver(()=>{var i;this.noticeHeight=((i=this.$refs.notice)==null?void 0:i.getBoundingClientRect().height)||0}),this.observer.observe(this.$refs.notice)},beforeUnmount(){var i;(i=this.observer)==null||i.disconnect()},methods:{async enableOptional(){if(!(this.busy||!this.canEnableHere)){this.busy=!0,this.error=!1;try{(await oe("granted")).confirmation_required?window.location.assign("/privacy-choices"):this.dismissed=!0}catch{this.error=!0}finally{this.busy=!1}}},async dismiss(){var i;this.busy=!0,this.error=!1;try{await axios.post("/privacy-notice/dismiss",{kind:this.gpc&&this.california?"gpc":"general"}),this.dismissed=!0,(i=this.observer)==null||i.disconnect()}catch{this.error=!0}finally{this.busy=!1}}}},fh=["aria-label"],gh={class:"cookie-notice-layout"},ph={class:"cookie-notice-summary"},_h={key:0},bh={key:1},yh={class:"cookie-notice-actions"},wh=["aria-expanded","aria-controls"],vh=["disabled"],xh=["id"],kh={class:"mt-2"},Bh={key:0,class:"mt-2"},Ch={key:1,class:"mt-3 flex flex-wrap gap-3"},Th=["disabled"],Sh=["disabled"],Eh={key:0,role:"alert",class:"cookie-notice-error text-red-600 dark:text-red-400"};function Ah(i,e,t,d,o,n){return a(),r(T,null,[o.dismissed?c("",!0):(a(),r("div",{key:0,"aria-hidden":"true",style:V(n.spacerStyle)},null,4)),(a(),E(U,{to:"body"},[o.dismissed?c("",!0):(a(),r("section",{key:0,ref:"notice","aria-label":t.gpc?"Opt-Out Request Honored":"Cookie information",class:"fixed inset-x-0 z-[60] border-t border-gray-200 bg-white text-gray-700 shadow-sm dark:border-zinc-700 dark:bg-zinc-900 dark:text-gray-200",style:V(n.barStyle)},[s("div",gh,[s("div",ph,[t.gpc?(a(),r("p",_h,[...e[4]||(e[4]=[s("strong",null,"Opt-out honored.",-1),_(" Optional cookies and tracking are off.",-1)])])):(a(),r("p",bh,m(t.tracking_blocked?"Only necessary cookies are on.":"We use third-party cookies."),1)),e[5]||(e[5]=s("div",{class:"cookie-notice-links"},[s("a",{href:"/privacy-choices"},"Your Privacy Choices"),s("span",{"aria-hidden":"true"},"·"),s("a",{href:"/privacy"},"Privacy Policy")],-1))]),s("div",yh,[s("button",{type:"button",class:"cookie-notice-details-button","aria-expanded":o.detailsOpen,"aria-controls":d.detailsId,onClick:e[0]||(e[0]=l=>o.detailsOpen=!o.detailsOpen)},[_(m(o.detailsOpen?"Less detail":"Details"),1),(a(),r("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",class:h({"rotate-180":o.detailsOpen})},[...e[6]||(e[6]=[s("path",{d:"m4 6 4 4 4-4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2))],8,wh),s("button",{type:"button",disabled:o.busy,onClick:e[1]||(e[1]=(...l)=>n.dismiss&&n.dismiss(...l)),class:"cookie-notice-dismiss"},"Dismiss",8,vh)]),S(s("div",{id:d.detailsId,class:"cookie-notice-details"},[t.gpc&&t.california?(a(),r(T,{key:0},[s("p",null,[_(m(t.site_name)+" uses cookies, pixels, and other tracking technologies (“Cookies”) to personalize content, advertising, analyze how our site is used, and embed content such as YouTube videos and social media posts. We disclose data about website users to third parties through Cookies, and those third parties may use that data for their own purposes. For more information, please review our ",1),e[7]||(e[7]=s("a",{href:"/california-privacy",class:"font-semibold underline"},"Privacy Notice for California Residents",-1)),e[8]||(e[8]=_(" and ",-1)),e[9]||(e[9]=s("a",{href:"/privacy",class:"font-semibold underline"},"Privacy Policy",-1)),e[10]||(e[10]=_(".",-1))]),s("p",kh,[e[11]||(e[11]=s("strong",null,"Opt-Out Request Honored.",-1)),_(" "+m(t.site_name)+" has detected an opt-out preference signal, and your opt-out preference signal has been honored. Only necessary Cookies are set unless you alter your Cookie preferences. Because you have declined non-necessary cookies, personalized content, programmatic ads, tracking pixels, and third-party embeds will be hidden.",1)]),e[12]||(e[12]=s("p",{class:"mt-2"},[_("Necessary cookies keep you signed in, remember preferences and record your privacy choice. You can manage cookies and data sharing in "),s("a",{href:"/privacy-choices",class:"font-semibold underline"},"Your Privacy Choices"),_(".")],-1))],64)):t.gpc&&t.signed_in?(a(),r(T,{key:1},[e[13]||(e[13]=s("p",null,[s("strong",null,"Your membership hasn’t changed."),_(" Your browser’s privacy setting currently pauses optional third-party content. You can change this setting at any time in "),s("a",{href:"/privacy-choices",class:"font-semibold underline"},"Your Privacy Choices"),_(".")],-1)),n.canEnableHere?(a(),r("p",Bh,"Enable cookies and embeds to load third-party videos, social posts, analytics and advertising. This overrides the browser privacy signal for those features; Retention.com stays off while that signal is on.")):c("",!0),n.canEnableHere?(a(),r("div",Ch,[s("button",{type:"button",disabled:o.busy,onClick:e[2]||(e[2]=(...l)=>n.dismiss&&n.dismiss(...l)),class:"rounded border border-gray-400 px-3 py-2 font-semibold disabled:opacity-50"},"Keep My Privacy Setting",8,Th),s("button",{type:"button",disabled:o.busy,onClick:e[3]||(e[3]=(...l)=>n.enableOptional&&n.enableOptional(...l)),class:"rounded border border-gray-400 px-3 py-2 font-semibold disabled:opacity-50"},"Enable Cookies and Embeds",8,Sh)])):c("",!0),e[14]||(e[14]=s("p",{class:"mt-2"},[_("Read our "),s("a",{href:"/privacy",class:"font-semibold underline"},"Privacy Policy"),_(".")],-1))],64)):c("",!0),s("p",{class:h(["text-xs text-gray-500 dark:text-gray-400",{"mt-3":t.gpc&&(t.california||t.signed_in)}])},"Dismissing this notice does not change your privacy choices or accept our Terms of Use.",2)],8,xh),[[z,o.detailsOpen]]),o.error?(a(),r("p",Eh,"Could not save your choice. Please try again.")):c("",!0)])],12,fh))]))],64)}const Ph=w(mh,[["render",Ah],["__scopeId","data-v-02cfa973"]]),Lh={emits:["cancel","confirm"],props:{gpc:Boolean,selected:Boolean,matching:Boolean,busy:Boolean,buttonClass:String},mounted(){this.$refs.notice.focus()}},Ih={class:"mt-5 rounded-lg border border-amber-300 bg-amber-50 p-4 text-sm text-amber-950 dar
3k:border-amber-800 dark:bg-amber-950 dark:text-amber-100",role:"alert",tabindex:"-1",ref:"notice"},Nh={class:"font-semibold"},Dh={class:"mt-2"},Vh={key:0,class:"mt-2"},Rh={class:"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2"},zh=["disabled"],Mh=["disabled"];function Oh(i,e,t,d,o,n){return a(),r("div",Ih,[s("h4",Nh,m(t.selected?"Confirm your selected cookies":"Confirm your choice to accept all cookies"),1),s("p",Dh,m(t.gpc?"Your browser is sending a Global Privacy Control opt-out signal.":"You previously opted out of non-necessary cookies.")+" "+m(t.selected?"Confirming will override that opt-out only for the cookie purposes you selected.":"Accepting all cookies will override that opt-out and allow disclosure of your information to third parties through cookies, pixels, and other tracking technologies for personalized content, advertising, analytics, and embedded content."),1),t.matching?(a(),r("p",Vh,"This also allows Retention.com to match your visits with an email address it holds and use that information for marketing offers, overriding your opt-out for that matching.")):c("",!0),s("div",Rh,[s("button",{type:"button",disabled:t.busy,class:h(t.buttonClass),onClick:e[0]||(e[0]=l=>i.$emit("cancel"))},"Keep My Opt-Out",10,zh),s("button",{type:"button",disabled:t.busy,class:h(t.buttonClass),onClick:e[1]||(e[1]=l=>i.$emit("confirm"))},m(t.selected?"Confirm Selected Cookies":"Confirm Accept All Cookies"),11,Mh)])],512)}const jh=w(Lh,[["render",Oh]]),Uh={setup(){return{settingsId:me()}},emits:["decided"],components:{ConsentConfirmation:jh},props:{site_logo:{type:String,required:!0},site_name:{type:String,default:"This website"},region:{type:String,default:""},current_choice:{type:String,default:""},saved:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},banner:{type:Boolean,default:!1},privacy_url:{type:String,default:"/privacy"},california_privacy_url:{type:String,default:"/california-privacy"},gpc:{type:Boolean,default:!1},gpc_overridden:{type:Boolean,default:!1},signed_in:{type:Boolean,default:!1}},data(){var i,e,t,d,o,n;return{memberDefault:((i=window.consentState)==null?void 0:i.memberCookieDefault)===!0,doubleConfirmation:((e=window.consentState)==null?void 0:e.doubleConfirmation)===!0,detailsOpen:!1,busy:null,error:!1,savedSuccessfully:this.saved,confirmation:null,selection:this.gpc||this.current_choice==="denied"?{analytics:!1,advertising:!1,embeds:!1}:{analytics:!1,advertising:!1,embeds:!1,...(t=window.consentState)==null?void 0:t.defaults,...(d=window.consentState)==null?void 0:d.preferences},matchingSelection:((o=window.consentState)==null?void 0:o.addressMatching)===!0,pendingMatching:!1,pendingCustomSelection:!1,pendingPreferences:null,preview:((n=window.consentState)==null?void 0:n.preview)===!0}},mounted(){var i;this.savedSuccessfully&&((i=this.$refs.savedMessage)==null||i.scrollIntoView({block:"nearest"}))},watch:{matchingAvailable:{immediate:!0,handler(i){i||(this.matchingSelection=!1)}}},computed:{directReject(){var i;return this.gpc||((i=window.consentState)==null?void 0:i.directReject)===!0||["eea","california","unknown"].includes(this.region)},matchingBlocked(){var i;return this.european||((i=window.consentState)==null?void 0:i.addressMatchingBlocked)===!0},matchingAvailable(){return!this.matchingBlocked&&this.selection.advertising},european(){return["eea","switzerland"].includes(this.region)},compactSummary(){return this.gpc?"Cookies share data with providers for personalization, ads, analytics and embeds.":this.european?"Optional cookies allow analytics and embedded media. Providers may use your data. These cookies stay off until you choose.":"Cookies share data with providers for personalization, ads, analytics and embeds. Accept all includes Retention.com marketing email matching."},compactDefault(){return this.gpc?"Your browser’s opt-out is honored. Accepting overrides it for cookies. Email matching requires a separate confirmation.":this.european?"Advertising is off.":this.memberDefault||!this.optIn?"Optional cookies are on until you decline.":this.region==="florida"?"Embeds are on.":""},buttonClass(){return"inline-flex w-full items-center justify-center rounded-lg border border-gray-300 dark:border-zinc-600 bg-white dark:bg-zinc-900 min-h-11 px-3 py-2.5 text-sm font-semibold text-gray-800 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-zinc-800 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:opacity-60"},statusText(){var i,e;if(this.gpc)return"Opt-Out Request Honored. Only necessary cookies are on because your browser sends a Global Privacy Control signal.";if(this.european||this.current_choice==="granted"&&((i=window.consentState)!=null&&i.preferences)){if(this.current_choice==="denied")return"Only necessary cookies are on. Third-party advertising is off.";const t=(e=window.consentState)==null?void 0:e.preferences;return t?`Analytics: ${t.analytics?"on":"off"}. Embedded content: ${t.embeds?"on":"off"}. Third-party advertising: ${!this.european&&t.advertising?"on":"off"}.`:"No current purpose-specific choice. Only necessary cookies are on."}return this.current_choice==="granted"&&this.gpc_overridden?"Cookie opt-in saved despite your browser's Global Privacy Control signal. Permitted embeds can load now; other optional integrations may begin on your next page visit.":this.current_choice==="granted"?"Cookie choice saved. Permitted embeds can load now; other optional integrations may begin on your next page visit.":this.current_choice==="denied"?"Only necessary cookies are on. Personalized content, programmatic ads, tracking pixels and third-party embeds are off.":this.memberDefault?"Standard optional cookies are on by default while you are signed in. You can turn them off here. Retention.com remains off until you accept all cookies or enable email matching.":this.region==="florida"?"Embedded content is on by default. Optional analytics and advertising stay off until you accept. You can decline optional features here.":this.optIn?"No choice made yet, so only necessary cookies are on.":"No choice made yet. Standard optional website technologies are on until you decline. Retention.com stays off until you accept all cookies or enable email matching."},statusClass(){var e;return this.gpc||this.current_choice==="denied"||this.european&&!((e=window.consentState)!=null&&e.preferences)||this.current_choice===""&&this.optIn?"border-gray-200 dark:border-zinc-700 bg-gray-50 dark:bg-zinc-800/60 text-gray-700 dark:text-gray-200":"border-green-200 dark:border-green-900 bg-green-50 dark:bg-green-950/40 text-green-900 dark:text-green-200"},optIn(){return!this.memberDefault&&["eea","switzerland","california","florida"].includes(this.region)},copy(){const i=(l,u)=>`<a class="font-medium text-gray-900 dark:text-gray-100 underline decoration-gray-400 underline-offset-2" href="${l}">${u}</a>`,e=i(this.privacy_url,"Privacy Policy"),t=this.region==="california"?`${i(this.california_privacy_url,"Privacy Notice for California Residents")} and ${e}`:e,d=`${this.site_name} uses cookies, pixels, and other tracking technologies (“Cookies”
3) to personalize content, advertising, analyze how our site is used, and embed content such as YouTube videos and social media posts. We disclose data about website users to third parties through Cookies, and those third parties may use that data for their own purposes. For more information on how we disclose this data through Cookies, please review our ${t}.`,o="If you decline non-necessary Cookies, you can keep using the site, but personalized content, programmatic ads, tracking pixels, and third-party embeds will be hidden.",n=[d];return this.inline?n.push("To opt out of sale, sharing, or targeted advertising through Cookies, please select “Accept Only Necessary Cookies.” If you click “Accept All Cookies,” you consent to our disclosure of your information to third parties through Cookies. Sponsored marketing emails have a separate opt-out below; accepting cookies does not cancel that opt-out."):this.optIn?n.push(`${this.region==="florida"?"Embedded content is on by default; optional analytics and advertising stay off until you choose.":"Only necessary Cookies are set until you choose."} ${o} By clicking “Accept All Cookies”, you consent to our disclosure of your information through Cookies.`):n.push(`Unless and until you decline non-necessary Cookies, standard optional website technologies are enabled. Retention.com remains off until you accept all cookies or enable email matching. ${o}`),this.european&&(n[1]=`Only necessary Cookies are set until you choose. You can accept analytics and embedded content separately below, accept both available purposes, or decline both and keep using the site. Third-party advertising remains off. You can withdraw consent at any time using ${i("/privacy-choices","Your Privacy Choices")}.`),this.region==="eea"&&n.push(`You may withdraw consent at any time using Your Privacy Choices. You have the right to access, rectify, erase or restrict the processing of your personal data, to data portability, and to lodge a complaint with your supervisory authority. Details are in our ${e}.`),this.european||(n.push("Embedded videos and social posts load by default outside California, the EEA, UK and Switzerland, unless you opt out or your browser sends GPC. Signed-in members use the standard embed default outside the EEA, UK and Switzerland, subject to saved opt-outs and GPC."),n.push("“Accept All Cookies” also enables Retention.com to match visits with an email address it already holds so we can send marketing offers, even if you are not signed in. Matching may use technologies other than cookies. To turn it off without changing other choices, uncheck Marketing email matching and save your selection. When your browser sends GPC, enabling email matching requires a separate confirmation.")),{heading:"Your privacy choices",subheading:this.region==="eea"?"Cookie consent under the GDPR and ePrivacy rules":this.banner&&!this.optIn?"Non-necessary cookies are on until you decline":"Manage cookies and tracking on this site",paragraphs:n,accept:this.banner?"Accept all":this.european?"Accept All Available Cookies":"Accept All Cookies",reject:this.banner?"Reject all":this.inline?"Accept Only Necessary Cookies":"Decline All But Necessary Cookies"}}},methods:{refreshPage(){window.location.reload()},openSettings(){this.detailsOpen=!0,this.$nextTick(()=>{var i;(i=this.$refs.settingsToggle)==null||i.focus()})},choose(i,e=null,t=null,d=null){this.busy=i,this.error=!1,this.savedSuccessfully=!1;const o={analytics:i==="granted"&&((t==null?void 0:t.analytics)??!0),advertising:i==="granted"&&!this.european&&((t==null?void 0:t.advertising)??!0),embeds:i==="granted"&&((t==null?void 0:t.embeds)??!0)};Object.values(o).some(Boolean)||(i="denied");const n=i==="granted"&&o.advertising&&!this.matchingBlocked&&(d??(t?this.matchingSelection:!0));return this.pendingPreferences=o,this.pendingMatching=n,this.pendingCustomSelection=t!==null,oe(i,e,o,n,!this.banner&&window.location.pathname==="/privacy-choices").then(l=>{if(l.confirmation_required){this.confirmation=l,this.busy=null;return}this.savedSuccessfully=!0,!this.banner&&window.location.pathname==="/privacy-choices"&&Se(),this.$emit("decided",l.consent||i),this.busy=null,this.confirmation=null}).catch(l=>{var u,y,f,B;this.busy=null,this.error=(f=(y=(u=l.response)==null?void 0:u.data)==null?void 0:y.errors)!=null&&f.notice_hash?"outdated":((B=l.response)==null?void 0:B.status)===419?"expired":!0})}}},Hh=["src"],Wh=["aria-expanded","aria-controls"],qh={key:2,class:"mt-1 text-sm text-gray-500 dark:text-gray-400"},Fh={key:1,class:"consent-banner-copy text-gray-600 dark:text-gray-300"},Yh=["id"],Kh={key:0,class:"rounded-lg bg-amber-50 dark:bg-amber-950/40 border border-amber-200 dark:border-amber-900 px-3 py-2 text-sm text-amber-900 dark:text-amber-200"},Gh={key:1,class:"rounded-lg bg-amber-50 dark:bg-amber-950/40 border border-amber-200 dark:border-amber-900 px-3 py-2 text-sm text-amber-900 dark:text-amber-200"},Qh=["disabled"],Jh={class:"flex items-start gap-2"},Xh={class:"flex items-start gap-2"},Zh={key:0,class:"flex items-start gap-2"},$h={key:1,class:"flex items-start gap-2"},em=["disabled"],tm={key:2},im={class:"rounded border border-gray-200 p-3 dark:border-zinc-700"},sm={class:"mt-3 space-y-3"},om={key:0},nm={key:1},am=["href"],rm={key:2,class:"space-y-3"},lm={key:0,class:"cursor-pointer font-semibold underline"},dm=["innerHTML"],cm={key:3,class:"text-xs text-gray-500 dark:text-gray-400"},um={key:4,class:"text-xs text-gray-500 dark:text-gray-400"},hm={key:5,class:"text-xs text-gray-500 dark:text-gray-400"},mm={key:0,role:"alert",class:"mb-3 text-sm text-red-600 dark:text-red-400"},fm={key:1},gm=["disabled"],pm=["disabled"],_m={key:0,class:"fa fa-spinner fa-spin mr-2"},bm=["disabled"],ym=["disabled"],wm={key:0,class:"fa fa-spinner fa-spin mr-2"},vm={key:3,ref:"savedMessage",role:"status",class:"mt-3 flex items-center gap-2 rounded-lg border border-green-200 bg-green-50 px-4 py-3 text-sm font-medium text-green-800 dark:border-green-800 dark:bg-green-950 dark:text-green-200"},xm={key:4,class:"mt-4 text-center text-xs text-gray-500 dark:text-gray-400"},km={key:0,class:"mt-6 border-t border-gray-200 pt-4 text-sm leading-relaxed text-gray-600 dark:border-zinc-700 dark:text-gray-300"},Bm={class:"mt-3 space-y-3"},Cm=["innerHTML"];function Tm(i,e,t,d,o,n){const l=C("consent-confirmation");return a(),r("div",{class:h(t.banner?"consent-banner":"px-6 pt-7 pb-6 sm:px-8 sm:pt-8 sm:pb-7")},[s("div",{class:h(t.banner?"consent-banner-content":"")},[s("div",{class:h(t.banner?"consent-banner-heading":"flex flex-col items-center text-center")},[t.banner?c("",!0):(a(),r("img",{key:0,class:"h-12 w-12 object-contain",src:t.site_logo,alt:"","aria-hidden":"true"},null,8,Hh)),s("h3",{class:h(t.banner?"text-base font-bold text-gray-900 dark:text-gray-100":"mt-4 text-xl font-bold tracking-tight text-gray-900 dark:text-gray-100")},m(t.banner?"Privacy choices":n.copy.heading),3),t.banner?(a(),r("button",{key:1,ref:"settingsToggle",type:"button",class:"consent-details-toggle","aria-expanded":o.detailsOpen,"aria-controls":d.settingsId,onClick:e[0]||(e[0]=u=>o.detailsOpen=!o.detailsOpen)},[_(m(o.detailsOpen?"Close settings":"Details & settings")+" ",1),(a(),r("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",class:h({"rotate-180":o.detailsOpen})},[...e[12]||(e[12]=[s("path",{d:"m4 6 4 4 4-4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2))],8,Wh)):c("",!0),t.banner?c("",!0):(a(),r("p",qh,m(n.copy.subheading),
31))],2),t.inline?(a(),r("div",{key:0,class:h(["mt-5 rounded-lg border px-4 py-3 text-sm text-center",n.statusClass])},[e[13]||(e[13]=s("span",{class:"font-semibold"},"Current setting:",-1)),_(" "+m(n.statusText),1)],2)):c("",!0),t.banner&&!o.detailsOpen?(a(),r("div",Fh,[s("p",null,m(n.compactSummary)+" "+m(n.compactDefault),1)])):c("",!0),S(s("div",{id:d.settingsId,class:h(t.banner?"mt-4 text-sm text-gray-700 dark:text-gray-300 consent-copy":"mt-5 space-y-3 text-[15px] leading-relaxed text-gray-600 dark:text-gray-300 consent-copy")},[s("div",{class:h(["space-y-3",{"pt-2 pb-1":t.banner}])},[t.gpc?(a(),r("p",Kh,' Opt-Out Request Honored. Your browser is sending a Global Privacy Control signal, so non-necessary cookies and tracking are off. If you choose "'+m(n.copy.accept)+'", '+m(o.doubleConfirmation?"we will ask you to separately confirm before overriding your opt-out.":"that choice will override your cookie opt-out. Enabling Retention.com requires a separate confirmation."),1)):t.gpc_overridden?(a(),r("p",Gh,' Your browser is sending a Global Privacy Control signal, but you explicitly accepted cookies despite that signal. Choose "'+m(n.copy.reject)+'" to opt out again. ',1)):c("",!0),s("fieldset",{class:"space-y-3 rounded-lg border border-gray-300 p-3 dark:border-zinc-600",disabled:!!o.busy||!!o.confirmation},[e[25]||(e[25]=s("legend",{class:"px-1 font-semibold"},"Choose cookies by purpose",-1)),e[26]||(e[26]=s("label",{class:"flex items-start gap-2"},[s("input",{type:"checkbox",checked:"",disabled:"",class:"consent-checkbox mt-1"}),s("span",null,[s("strong",null,"Mandatory cookies — always on."),_(" Account access, security and remembering your choices.")])],-1)),s("label",Jh,[S(s("input",{"onUpdate:modelValue":e[1]||(e[1]=u=>o.selection.analytics=u),type:"checkbox",class:"consent-checkbox mt-1"},null,512),[[Y,o.selection.analytics]]),e[14]||(e[14]=s("span",null,[s("strong",null,"Analytics."),_(" Allow Google Analytics and Fathom to measure how the site is used.")],-1))]),s("label",Xh,[S(s("input",{"onUpdate:modelValue":e[2]||(e[2]=u=>o.selection.embeds=u),type:"checkbox",class:"consent-checkbox mt-1"},null,512),[[Y,o.selection.embeds]]),e[15]||(e[15]=s("span",null,[s("strong",null,"Embedded content."),_(" Allow external videos, social posts, podcasts and quizzes. Their providers may collect information and use cookies for their own purposes.")],-1))]),n.european?c("",!0):(a(),r("label",Zh,[S(s("input",{"onUpdate:modelValue":e[3]||(e[3]=u=>o.selection.advertising=u),type:"checkbox",class:"consent-checkbox mt-1"},null,512),[[Y,o.selection.advertising]]),e[16]||(e[16]=s("span",null,[s("strong",null,"Advertising & personalization."),_(" Allow advertising cookies and pixels, including data sharing with advertising providers.")],-1))])),n.european?c("",!0):(a(),r("label",$h,[S(s("input",{"onUpdate:modelValue":e[4]||(e[4]=u=>o.matchingSelection=u),disabled:!n.matchingAvailable,type:"checkbox",class:"consent-checkbox mt-1"},null,8,em),[[Y,o.matchingSelection]]),e[17]||(e[17]=s("span",null,[s("strong",null,"Marketing email matching."),_(" Allow Retention.com to match visits to an email address it holds for marketing offers. Requires advertising permission. If your browser sends GPC, saving this choice requires a separate confirmation to override that opt-out for email matching.")],-1))])),n.european?(a(),r("p",tm,[...e[18]||(e[18]=[s("strong",null,"Third-party advertising is off.",-1),_(" It is currently unavailable for visitors in the EEA/UK and Switzerland.",-1)])])):c("",!0),s("details",im,[e[24]||(e[24]=s("summary",{class:"cursor-pointer font-semibold underline"},"View providers for these choices",-1)),s("div",sm,[e[22]||(e[22]=s("p",null,"These are the providers covered by the optional features currently available here. Which providers receive a request depends on the page and features you use.",-1)),e[23]||(e[23]=s("dl",{class:"space-y-2"},[s("div",null,[s("dt",{class:"font-semibold"},"Analytics"),s("dd",null,"Google Analytics (Google) and Fathom Analytics measure visits and engagement. Fathom does not use cookies, but is included in this choice.")]),s("div",null,[s("dt",{class:"font-semibold"},"Embedded content"),s("dd",null,"YouTube (Google), Vimeo, X (Twitter), Instagram and Facebook (Meta), Libsyn and Interact provide videos, social posts, podcasts and quizzes. These providers may receive device and usage information and use cookies for their own purposes when their content loads.")])],-1)),n.european?c("",!0):(a(),r("p",om,[...e[19]||(e[19]=[_("Retention.com matches visits with an email address it holds for marketing offers. ",-1),s("a",{href:"https://retention.com/privacy-policy/",target:"_blank",rel:"noopener",class:"font-semibold underline"},"Retention.com privacy information",-1),_(".",-1)])])),n.european?(a(),r("p",nm,"Advert
3ising providers are not enabled by these choices. Third-party advertising remains off.")):c("",!0),s("p",null,[e[20]||(e[20]=_("Our ",-1)),s("a",{href:t.privacy_url+"#cookie-and-technology-providers",class:"font-semibold underline"},"Privacy Policy",8,am),e[21]||(e[21]=_(" also describes necessary services and providers used elsewhere on the site.",-1))])])]),e[27]||(e[27]=s("p",null,"Changes apply when you save. You can reject all optional cookies or change your selection at any time.",-1))],8,Qh),t.banner?(a(),r("details",rm,[t.banner?(a(),r("summary",lm,"How we use cookies")):c("",!0),(a(!0),r(T,null,R(n.copy.paragraphs,(u,y)=>(a(),r("p",{key:y,innerHTML:u},null,8,dm))),128))])):c("",!0),t.banner?(a(),r("p",cm,[...e[28]||(e[28]=[_("These buttons set your privacy choices only. They do not accept our Terms of Use. You can change your choice at any time in ",-1),s("a",{href:"/privacy-choices",class:"underline"},"Your Privacy Choices",-1),_(".",-1)])])):c("",!0),t.banner&&o.preview?(a(),r("p",um,"Preview only — this choice is not saved.")):c("",!0),t.banner&&!o.preview?(a(),r("p",hm,m(t.signed_in?"Your choice is saved to your account and applies wherever you are signed in.":"Your choice is saved in this browser."),1)):c("",!0)],2)],10,Yh),[[z,!t.banner||o.detailsOpen]])],2),s("div",{class:h(t.banner?"consent-banner-actions":"")},[o.error?(a(),r("div",mm,[o.error==="outdated"||o.error==="expired"?(a(),r(T,{key:0},[s("p",null,m(o.error==="outdated"?"This privacy notice was updated while the page was open. Refresh to review the current notice before saving.":"Your session expired. Refresh the page and try saving again."),1),s("button",{type:"button",class:"mt-2 font-semibold underline underline-offset-2",onClick:e[5]||(e[5]=(...u)=>n.refreshPage&&n.refreshPage(...u))},"Refresh page")],64)):(a(),r("p",fm,"Something went wrong saving your choice. Please try again."))])):c("",!0),o.confirmation?(a(),E(l,{key:1,gpc:o.confirmation.gpc,selected:o.pendingCustomSelection,matching:o.pendingMatching,busy:!!o.busy,"button-class":n.buttonClass,onCancel:e[6]||(e[6]=u=>n.choose("denied")),onConfirm:e[7]||(e[7]=u=>n.choose("granted",o.confirmation.confirmation_token,o.pendingPreferences,o.pendingMatching))},null,8,["gpc","selected","matching","busy","button-class"])):(a(),r("div",{key:2,class:h(t.banner?"grid grid-cols-2 gap-2":"mt-5 grid grid-cols-1 gap-3")},[t.banner&&!n.directReject&&!o.detailsOpen?(a(),r("button",{key:0,onClick:e[8]||(e[8]=(...u)=>n.openSettings&&n.openSettings(...u)),type:"button",disabled:!!o.busy,class:h(n.buttonClass)},"Customize choices",10,gm)):c("",!0),!t.banner||n.directReject||o.detailsOpen?(a(),r("button",{key:1,onClick:e[9]||(e[9]=u=>n.choose("denied")),type:"button",disabled:!!o.busy,class:h(n.buttonClass)},[o.busy==="denied"?(a(),r("i",_m)):c("",!0),_(" "+m(n.copy.reject),1)],10,pm)):c("",!0),!t.banner||o.detailsOpen?(a(),r("button",{key:2,onClick:e[10]||(e[10]=u=>n.choose("granted",null,o.selection)),type:"button",disabled:!!o.busy,class:h([n.buttonClass,t.banner?"col-span-2 order-last":""])},"Save Selected Cookies",10,bm)):c("",!0),s("button",{onClick:e[11]||(e[11]=u=>n.choose("granted")),type:"button",disabled:!!o.busy,class:h(n.buttonClass)},[o.busy==="granted"?(a(),r("i",wm)):c("",!0),_(" "+m(n.copy.accept),1)],10,ym)],2)),!t.banner&&o.savedSuccessfully?(a(),r("p",vm,[e[29]||(e[29]=s("svg",{class:"h-5 w-5 shrink-0",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},[s("path",{d:"m4 10 4 4 8-8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),_(" "+m(o.preview?"Your privacy choices were saved for this preview session.":"Your privacy choices were saved."),1)],512)):c("",!0),t.banner?c("",!0):(a(),r("p",xm,[o.preview?(a(),r(T,{key:0},[_("This is a test choice for this preview session only.")],64)):t.signed_in?(a(),r(T,{key:1},[_("Your choice is saved to your account and applies wherever you are signed in.")],64)):(a(),r(T,{key:2},[_("Your choice is saved in this browser.")],64)),t.inline?c("",!0):(a(),r(T,{key:3},[_(' You can change it at any time from the "Your Privacy Choices" link.')],64))]))],2),t.banner?c("",!0):(a(),r("details",km,[e[30]||(e[30]=s("summary",{class:"cursor-pointer font-semibold underline underline-offset-2"},"How we use cookies",-1)),s("div",Bm,[(a(!0),r(T,null,R(n.copy.paragraphs,(u,y)=>(a(),r("p",{key:y,innerHTML:u},null,8,Cm))),128))])]))],2)}const we=w(Uh,[["render",Tm],["__scopeId","data-v-f13e486c"]]),Sm={components:{ConsentCard:we},props:{label:{type:String,default:"Embedded content"},provider:{type:String,default:"a third party"},link:{type:String,default:""},centered:{type:Boolean,default:!1}},data(){return{busy:!1,error:!1,showChoices:!1}},computed:{consentState(){return window.consentState||{}},blockedByGpc(){return Ee()==="gpc"},canAcceptHere(){return Object.hasOwn(this.consentState,"region")&&!["california","eea","switzerland","unknown",void 0].includes(this.consentState.regi
3on)&&this.consentState.doubleConfirmation!==!0}},methods:{async openChoices(){this.showChoices=!0,await this.$nextTick(),this.$refs.choicesDialog.showModal()},closeChoices(){var i;(i=this.$refs.choicesDialog)==null||i.close(),this.showChoices=!1},async acceptAndLoad(){if(!(this.busy||!this.canAcceptHere)){this.busy=!0,this.error=!1;try{(await oe("granted")).confirmation_required&&await this.openChoices()}catch{this.error=!0}finally{this.busy=!1}}}}},Em={class:"w-full my-3 flex justify-center"},Am={class:"w-full max-w-md rounded-lg border border-gray-300 dark:border-zinc-700 bg-gray-100 dark:bg-zinc-900 px-4 py-5 text-center text-gray-700 dark:text-gray-200"},Pm={class:"text-sm font-semibold"},Lm={class:"mt-1 text-sm"},Im={key:0,class:"mt-2 text-xs"},Nm=["disabled"],Dm={key:2,role:"alert",class:"mt-2 text-sm"},Vm={class:"mt-3 flex flex-wrap items-center justify-center gap-3"},Rm=["href"],zm={class:"flex justify-end px-4 pt-3"};function Mm(i,e,t,d,o,n){const l=C("consent-card");return a(),r(T,null,[s("div",Em,[s("div",Am,[s("div",Pm,m(t.label),1),s("p",Lm,[_(" This content is provided by "+m(t.provider)+" and may use cookies and other tracking technologies. ",1),n.blockedByGpc?(a(),r(T,{key:0},[_(" Your browser privacy setting pauses this third-party content. You can change your choice below or open it directly with the provider. ")],64)):(a(),r(T,{key:1},[_(" Your current cookie setting pauses this third-party content. You can change your choice below. ")],64))]),n.canAcceptHere?(a(),r("p",Im,"Accepting enables third-party content, analytics and advertising cookies, just like accepting the cookie banner. It also enables Retention.com email matching for marketing offers where available. You can turn email matching off separately in Privacy Choices; it stays off while GPC is on. This does not accept the Terms.")):c("",!0),n.canAcceptHere?(a(),r("button",{key:1,type:"button",disabled:o.busy,onClick:e[0]||(e[0]=(...u)=>n.acceptAndLoad&&n.acceptAndLoad(...u)),class:"mt-3 rounded border border-gray-400 px-4 py-2 text-sm font-semibold disabled:opacity-50"},m(o.busy?"Saving…":"Accept Cookies & Load Content"),9,Nm)):c("",!0),o.error?(a(),r("p",Dm,"Your choice could not be saved. Please try again.")):c("",!0),s("div",Vm,[s("a",{href:"/privacy-choices",onClick:e[1]||(e[1]=A((...u)=>n.openChoices&&n.openChoices(...u),["prevent"])),class:"text-sm underline","aria-haspopup":"dialog"},"Privacy Choices"),t.link?(a(),r("a",{key:0,href:t.link,target:"_blank",rel:"noopener",class:"text-sm underline"},"Open on "+m(t.provider)+" instead",9,Rm)):c("",!0)])])]),(a(),E(U,{to:"body"},[o.showChoices?(a(),r("dialog",{key:0,ref:"choicesDialog","aria-label":"Privacy Choices",class:"privacy-choices-dialog rounded-xl border border-gray-300 bg-white p-0 text-gray-900 shadow-xl dark:border-zinc-700 dark:bg-zinc-900 dark:text-gray-100",onCancel:e[3]||(e[3]=(...u)=>n.closeChoices&&n.closeChoices(...u)),onClose:e[4]||(e[4]=u=>o.showChoices=!1)},[s("div",zm,[s("button",{type:"button",onClick:e[2]||(e[2]=(...u)=>n.closeChoices&&n.closeChoices(...u)),class:"rounded border border-gray-400 px-3 py-1 text-sm"},"Close Privacy Choices")]),p(l,{inline:!0,region:n.consentState.region||"",current_choice:n.consentState.choice||"",site_name:n.consentState.siteName||"This website",site_logo:n.consentState.siteLogo||"",gpc:n.consentState.gpc===!0,gpc_overridden:n.consentState.gpcOverridden===!0,signed_in:n.consentState.signedIn===!0},null,8,["region","current_choice","site_name","site_logo","gpc","gpc_overridden","signed_in"]),e[5]||(e[5]=s("p",{class:"px-6 pb-6 text-center text-sm"},[s("a",{href:"/privacy-choices",class:"underline"},"All privacy settings, including email matching and email opt-outs")],-1))],544)):c("",!0)]))],64)}const Om=w(Sm,[["render",Mm],["__scopeId","data-v-54bb8dce"]]),jm={props:{encoded:{type:String,required:!0}}
3,computed:{blockedProvider(){if(Ae())return!1;try{const i=new URL(this.src,"https://notthebee.com").hostname.toLowerCase().replace(/\.$/,"");return["tiktok.com","tiktokcdn.com","tiktokv.com"].some(e=>i===e||i.endsWith("."+e))}catch{return!1}},allowed(){return J("embeds")},html(){try{return decodeURIComponent(escape(window.atob(this.encoded)))}catch{return""}},src(){var e;if(typeof document<"u"&&document.createElement){const t=document.createElement("template");if(t.innerHTML=this.html,t.content)return((e=t.content.querySelector("iframe"))==null?void 0:e.getAttribute("src"))||""}const i=this.html.match(/\ssrc\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i);return i?i[1]??i[2]??i[3]:""},provider(){try{return new URL(this.src).hostname.replace(/^www\./,"")}catch{return"a third party"}}}},Um={key:0,class:"p-4 text-center text-sm text-gray-500"},Hm=["innerHTML"];function Wm(i,e,t,d,o,n){const l=C("consent-placeholder");return n.blockedProvider?(a(),r("p",Um,"This embedded content is unavailable.")):n.allowed?(a(),r("div",{key:1,innerHTML:n.html},null,8,Hm)):(a(),E(l,{key:2,label:"Embedded content",provider:n.provider,link:n.src,centered:!0},null,8,["provider","link"]))}const qm=w(jm,[["render",Wm]]),Fm={name:"SkipToContent"},Ym={href:"#main-content",class:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-white focus:text-blue-800 focus:outline focus:outline-blue-500"};function Km(i,e,t,d,o,n){return a(),r("a",Ym," Skip to main content ")}const Gm=w(Fm,[["render",Km]]),Qm={name:"ScreenReaderText",props:{text:{type:String,required:!0}}},Jm={class:"sr-only"};function Xm(i,e,t,d,o,n){return a(),r("span",Jm,m(t.text),1)}const Zm=w(Qm,[["render",Xm]]),$m={mounted(){},props:{site:String,footer:{type:Boolean,default:!1},defaultemail:{type:String,default:""}},data(){return{fields:{phone_number:"",email:this.defaultemail||""},errors:{},mailChimpError:!1,mailChimpErrorMessage:"",success:!1}},methods:{toggleCheckbox(){this.fields.opted_in=!this.fields.opted_in},submit(){this.errors={},axios.post("/ajax/addPhoneNumber",this.fields).then(i=>{i.data.success==!0?(this.success=!0,b.emit("alert",{message:"Your phone number was opted in!",subtext:"",success:!0})):(this.success=!1,this.mailChimpError=!0,this.mailChimpErrorMessage=i.data.message)}).catch(i=>{i.response.status===422&&(this.errors=i.response.data.errors||{})})}}},e0={key:0,class:"mt-2 w-full"},t0={key:0,class:"rounded-md bg-red-50 p-4 mt-2"},i0={class:"flex"},s0={class:"ml-3"},o0={class:"text-sm leading-5 font-medium text-red-800"},n0={key:0},a0={key:1},r0={key:0},l0={key:0,class:"rounded-md bg-red-50 p-4 mt-2"},d0={class:"flex"},c0={class:"ml-3"},u0={class:"text-sm leading-5 font-medium text-red-800"},h0={key:0},m0={key:1},f0={key:1},g0={class:"mt-3 rounded-md shadow"},p0={key:0},_0={class:"rounded-md p-4 mt-2 max-w-3xl mx-auto",key:"2"};function b0(i,e,t,d,o,n){return a(),E(L,{name:"fade",mode:"out-in"},{default:P(()=>[s("div",{class:h([t.footer?"mx-auto max-w-screen-xl px-5 sm:px-6 lg:px-8 min-h-[352px] sm:min-h-[316px] flex items-center":"bg-gray-50 flex justify-center rounded-lg"]),key:"1"},[s("div",{class:h([t.footer?"mx-auto flex max-w-xl flex-col items-center text-center":"px-6 py-6 bg-gray-200 rounded-lg w-full"])},[e[9]||(e[9]=s("div",{class:"flex-1"},[s("h4",{class:"leading-5"},[s("span",null,"Fake news you can trust, delivered straight to your phone!")]),s("p",{class:"mt-1 text-sm leading-4 text-gray-700",id:"newsletter-headline"},[s("span",null,"We'll text you flash sales on limited-run merch, breaking fake news, and more!")])],-1)),o.success?(a(),r("div",_0,[...e[8]||(e[8]=[s("div",{class:"flex justify-center"},[s("div",{class:"shrink-0"},[s("svg",{class:"h-5 w-5 text-green-400",viewBox:"0 0 20 20",fill:"currentColor"},[s("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])]),s("div",{class:"ml-3"},[s("h3",{class:"text-sm leading-5 font-medium text-green-800 dark:text-green-400"}," Your phone number was subscribed successfully! ")])],-1)])])):(a(),r("div",e0,[s("form",{method:"POST",class:"my-3",onSubmit:e[3]||(e[3]=A((...l)=>n.submit&&n.submit(...l),["prevent"]))},[S(s("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>o.fields.phone_number=l),name:"phone_number","aria-label":"Phone Number",type:"tel",required:"",class:"appearance-none w-full px-5 py-3 border border-gray-300 text-base leading-6 rounded-md text-gray-900 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 transition duration-150 ease-in-out",placeholder:"Enter your phone number"},null,512),[[O,o.fields.phone_number]]),p(L,{name:"fade"},{default:P(()=>[o.errors&&o.errors.phone_number||o.mailChimpError?(a(),r("div",t0,[s("div",i0,[e[4]||(e[4]=s("div",{class:"shrink-0"},[s("svg",{class:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor"},[s("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])],-1)),s("div",s0,[s("h3",o0,[o.errors&&o.errors.phone_number?(a(),r("span",n0,m(o.errors.phone_number[0]),1)):o.mailChimpError?(a(),r("span",a0,m(o.mailChimpErrorMessage),1)):c("",!0)])])])])):c("",!0)]),_:1}),t.defaultemail?(a(),r("div",f0,[S(s("input",{type:"hidden","onUpdate:modelValue":e[2]||(e[2]=l=>o.fields.email=l),name:"email"},null,512),[[O,o.fields.email]])])):(a(),r("div",r0,[S(s("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>o.fields.email=l),name:"email","aria-label":"Email",type:"text",required:"",class:"mt-2 appearance-none w-full px-5 py-3 border border-gray-300 text-base leading-6 rounded-md text-gray-900 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 transition duration-150 ease-in-out",placeholder:"Enter your email"},null,512),[[O,o.fields.email]]),p(L,{name:"fade"},{default:P(()=>[o.errors&&o.errors.email||o.mailChimpError?(a(),r("div",l0,[s("div",d0,[e[5]||(e[5]=s("div",{class:"shrink-0"},[s("svg",{class:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor"},[s("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])],-1)),s("div",c0,[s("h3",u0,[o.errors&&o.errors.email?(a(),r("span",h0,m(o.errors.email[0]),1)):o.mailChimpError?(a(),r("span",m0,m(o.mailChimpErrorMessage),1)):c("",!0)])])])])):c("",!0)]),_:1})])),e[6]||(e[6]=s("div",{class:"my-4"},[s("div",{class:"flex items-start"},[s("div",{class:"text-sm leading-5"},[s("label",{class:"font-medium text-gray-700 cursor-pointer text-xs"},"By entering your phone number you consent to join a recurring SMS/MMS text messaging program that will provide alerts, marketing content, updates, and other important information. By participating, you agree to the terms and conditions and privacy policy for auto dialed marketing messages from The Babylon Bee, LLC to the phone number you provide. No consent is required to buy. Message and data rates may apply. Text STOP to opt out. Text HELP for assistance. Message frequency may vary by month. Available in the US only. ")])])],-1)),s("div",g0,[s("button",{class:h(["w-full flex items-center justify-center px-5 py-3 border border-transparent text-base leading-6 font-medium rounded-md focus:outline-none transition duration-150 ease-in-out",[t.site=="BEE"?"text-white btn-primary":"text-always-w
3hite bg-red-600 hover:bg-red-500 focus:border-red-700 focus:shadow-outline-red active:bg-red-700"]])},[t.site=="BEE"?(a(),r("span",p0,"Opt In")):c("",!0)],2)])],32),e[7]||(e[7]=s("p",{class:"mt-3 text-sm leading-5 text-gray-700"},[_(" We care about the protection of your data. Read our "),s("a",{href:"/privacy",class:"text-gray-900 font-medium underline"}," Privacy Policy. ")],-1))]))],2)],2)]),_:1})}const y0=w($m,[["render",b0]]),w0={mounted(){this.allowed&&this.$nextTick(()=>{this.loadAd()})},props:{location:String},data(){return{windowWidth:window.innerWidth}},computed:{allowed(){return Pe()}},methods:{loadAd(){this.location=="right1"?this.windowWidth>=640?this.loadRight1():this.loadMobileInContent1():this.location=="incontent1"?this.windowWidth>=640?this.loadInContent1():this.loadMobileInContent2():this.location=="incontent2"?this.windowWidth>=640?this.loadInContent2():this.loadMobileInContent3():this.location=="square1"?this.windowWidth>=640?this.loadSquare1():this.loadMobileInContent2():this.location=="square2"?this.windowWidth>=640?this.loadSquare2():this.loadMobileInContent3():this.location=="top"&&(this.windowWidth>=640?this.loadTop():this.loadMobileTop())},loadRight1(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-desktop-right-1",baseDivId:"pb-slot-desktop-right-1"}])})},loadInContent1(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-desktop-incontent-1",baseDivId:"pb-slot-desktop-incontent-1"}])})},loadInContent2(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-desktop-incontent-2",baseDivId:"pb-slot-desktop-incontent-2"}])})},loadSquare1(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-desktop-square-1",baseDivId:"pb-slot-desktop-square-1"}])})},loadSquare2(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-desktop-square-2",baseDivId:"pb-slot-desktop-square-2"}])})},loadTop(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-desktop-top",baseDivId:"pb-slot-desktop-top"}])})},loadMobileTop(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-mobile-top",baseDivId:"pb-slot-mobile-top"}])})},loadMobileInContent1(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-mobile-incontent-1",baseDivId:"pb-slot-mobile-incontent-1"}])})},loadMobileInContent2(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-mobile-incontent-2",baseDivId:"pb-slot-mobile-incontent-2"}])})},loadMobileInContent3(){window.tude=window.tude||{cmd:[]},tude.cmd.push(function(){tude.refreshAdsViaDivMappings([{divId:"my-mobile-incontent-3",baseDivId:"pb-slot-mobile-incontent-3"}])})}}},v0={key:0},x0={key:1,id:"my-desktop-right-1"},k0={key:2,id:"my-mobile-incontent-1"},B0={key:3,id:"my-desktop-incontent-1"},C0={key:4,id:"my-desktop-square-1"},T0={key:5,id:"my-mobile-incontent-2"},S0={key:6,id:"my-desktop-incontent-2"},E0={key:7,id:"my-desktop-square-2"},A0={key:8,id:"my-mobile-incontent-3"},P0={key:9,id:"my-desktop-top"},L0={key:10,id:"my-mobile-top"};function I0(i,e,t,d,o,n){return n.allowed?t.location=="right1"&&o.windowWidth>=640?(a(),r("div",x0)):t.location=="right1"&&o.windowWidth<640?(a(),r("div",k0)):t.location=="incontent1"&&o.windowWidth>=640?(a(),r("div",B0)):t.location=="square1"&&o.windowWidth>=640?(a(),r("div",C0)):(t.location=="square1"||t.location=="incontent1")&&o.windowWidth<640?(a(),r("div",T0)):t.location=="incontent2"&&o.windowWidth>=640?(a(),r("div",S0)):t.location=="square2"&&o.windowWidth>=640?(a(),r("div",E0)):(t.location=="square2"||t.location=="incontent2")&&o.windowWidth<640?(a(),r("div",A0)):t.location=="top"&&o.windowWidth>=640?(a(),r("div",P0)):t.location=="top"&&o.windowWidth<640?(a(),r("div",L0)):c("",!0):(a(),r("div",v0))}const N0=w(w0,[["render",I0]]),D0={props:{plan:String,term:String,is_gift:Boolean,has_tumbler:Boolean,has_ko
3ozie:Boolean,has_jan6dvd:Boolean,has_tshirt:Boolean,is_month_promo:Boolean,is_stream:Boolean,product_tile_language:{type:String,default:""}},data(){return{isBee:this.$store.getters.siteTitle=="Babylon Bee"}},computed:{freeItemLanguage(){return this.has_tumbler?"Fake News You Can Trust":this.has_koozie?"6 Pack of Not Bud Light":this.has_jan6dvd?"January 6 DVD":this.has_tshirt?"Only You Can Prevent Communism":"Guide to The Apocalypse"},freeItem(){return this.has_tumbler?"Tumbler":this.has_koozie?"Koozies":this.has_jan6dvd?"DVD":this.has_tshirt?"T-Shirt":"Book"}}},V0={key:0,class:"mt-6 space-y-4"},R0={class:"flex space-x-3"},z0={class:"flex space-x-3"},M0={class:"flex space-x-3"},O0={class:"flex space-x-3"},j0={key:1,class:"shrink-0 text-red-500 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},U0={class:"flex space-x-3"},H0={key:1,class:"shrink-0 text-red-500 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},W0={class:"flex space-x-3"},q0={key:1,class:"shrink-0 text-red-500 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},F0={class:"flex space-x-3"},Y0={key:1,class:"shrink-0 text-red-500 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},K0={class:"italic"},G0={key:2},Q0={key:1,class:"mt-6 space-y-4"},J0={class:"flex space-x-3"},X0={class:"flex space-x-3"},Z0={class:"flex space-x-3"},$0={class:"flex space-x-3"},ef={class:"flex space-x-3"},tf={key:1,class:"shrink-0 text-red-500 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},sf={key:2,class:"mt-6 space-y-4"},of={key:0,class:"flex space-x-3"},nf={class:"text-sm leading-5 text-gray-500"},af={key:1,class:"flex space-x-3"},rf={class:"text-sm leading-5 text-gray-500"},lf={key:2,class:"flex space-x-3"},df={class:"text-sm leading-5 text-gray-500"},cf={key:3,class:"flex space-x-3"},uf={class:"flex space-x-3"},hf={class:"flex space-x-3"},mf={key:4,class:"flex space-x-3"},ff={key:5,class:"flex space-x-3"},gf={key:6,class:"flex space-x-3"},pf={key:7,class:"flex space-x-3"},_f={key:3,class:"text-center"},bf={class:"text-muted text-xxs leading-[0.5rem]"},yf={key:0};function wf(i,e,t,d,o,n){const l=C("checkmark");return a(),r("div",null,[s("h3",{class:h(["text-sm leading-4 font-medium text-gray-900 tracking-wide uppercase",[t.is_stream?"text-white dark:text-white":"text-gray-900"]])},"What's included",2),o.isBee&&!t.is_stream?(a(),r("ul",V0,[s("li",R0,[p(l),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},"Experience The Babylon Bee ad-free",2)]),s("li",z0,[p(l),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},"20% Off Bee Store Purchases",2)]),s("li",M0,[p(l),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},"Access to Premium Articles and Comments Section",2)]),s("li",null,[s("div",O0,[t.plan=="Premium"?(a(),E(l,{key:0})):(a(),r("svg",j0,[...e[0]||(e[0]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"},null,-1)])])),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},'Watch our full-length documentary, "January 6: The Most Deadliest Day"',2)])]),s("li",U0,[t.plan=="Premium"?(a(),E(l,{key:0})):(a(),r("svg",H0,[...e[1]||(e[1]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"},null,-1)])])),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},"Access to Headline Forum - Pitch ideas to Our Writers",2)]),s("li",null,[s("div",W0,[t.plan=="Premium"?(a(),E(l,{key:0})):(a(),r("svg",q0,[...e[2]||(e[2]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"},null,-1)])])),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},"Access to exclusive video content",2)])]),s("li",F0,[t.plan=="Premium"&&t.term=="Annual"?(a(),E(l,{key:0})):(a(),r("svg",Y0,[...e[3]||(e[3]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"},null,-1)])])),s("span",{class:h(["text-sm leading-5",t.plan+"BookLink",t.is_stream?"text-white dark:text-white":"text-gray-500"])},[t.product_tile_language?(a(),r(T,{key:0}
3,[_(m(t.product_tile_language),1)],64)):(a(),r(T,{key:1},[e[4]||(e[4]=_("Free ",-1)),s("span",K0,m(n.freeItemLanguage),1),_(" "+m(n.freeItem),1)],64)),t.plan=="Premium"&&t.term=="Annual"?(a(),r("span",G0,"*")):c("",!0)],2)])])):o.isBee?(a(),r("ul",Q0,[s("li",J0,[p(l),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},"Access the full library of Bee sketches and shows",2)]),s("li",X0,[p(l),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},'Watch our full-length documentary, "January 6: The Most Deadliest Day"',2)]),s("li",Z0,[p(l),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},"Peek behind the scenes with regular Q&As with our writers and more",2)]),s("li",$0,[p(l),s("span",{class:h(["text-sm leading-5",[t.is_stream?"text-white dark:text-white":"text-gray-500"]])},"Early and exclusive access to future Babylon Bee video content",2)]),s("li",ef,[t.plan=="Premium"&&t.term=="Annual"?(a(),E(l,{key:0})):(a(),r("svg",tf,[...e[5]||(e[5]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"},null,-1)])])),s("span",{class:h(["text-sm leading-5",t.plan+"BookLink",t.is_stream?"text-white dark:text-white":"text-gray-500"])},[t.product_tile_language?(a(),r(T,{key:0},[_(m(t.product_tile_language),1)],64)):(a(),r(T,{key:1},[e[6]||(e[6]=_("Get a free copy of The Babylon Bee's hit book ",-1)),e[7]||(e[7]=s("i",null,"Guide to the Apocalypse",-1))],64))],2)])])):(a(),r("ul",sf,[t.plan=="Single"?(a(),r("li",of,[p(l),s("span",nf,"Premium access to "+m(i.$store.getters.siteTitle),1)])):c("",!0),t.plan!="Single"?(a(),r("li",af,[p(l),s("span",rf,m(t.plan)+" access to Not the Bee and The Babylon Bee",1)])):c("",!0),t.plan=="Single"?(a(),r("li",lf,[p(l),s("span",df,"Experience "+m(i.$store.getters.siteTitle)+" ad-free",1)])):c("",!0),t.plan!="Single"?(a(),r("li",cf,[p(l),e[8]||(e[8]=s("span",{class:"text-sm leading-5 text-gray-500"},"Experience both of our sites ad-free",-1))])):c("",!0),s("li",uf,[p(l),e[9]||(e[9]=s("span",{class:"text-sm leading-5 text-gray-500"},"Join our Social Network",-1))]),s("li",hf,[p(l),e[10]||(e[10]=s("span",{class:"text-sm leading-5 text-gray-500"},"Bookmark your favorite articles",-1))]),t.plan=="Single"?(a(),r("li",mf,[p(l),e[11]||(e[11]=s("span",{class:"text-sm leading-5 text-gray-500"},"Exclusive members-only content",-1))])):c("",!0),t.plan!="Single"?(a(),r("li",ff,[p(l),e[12]||(e[12]=s("span",{class:"text-sm leading-5 text-gray-500"},"Exclusive members-only content on both sites",-1))])):c("",!0),t.plan=="Premium"?(a(),r("li",gf,[p(l),e[13]||(e[13]=s("span",{class:"text-sm leading-5 text-gray-500"},"20% Off Bee Store Purchases",-1))])):c("",!0),t.plan=="Premium"?(a(),r("li",pf,[p(l),e[14]||(e[14]=s("span",{class:"text-sm leading-5 text-gray-500"},"Access to the Babylon Bee Headline Forum",-1))])):c("",!0)])),o.isBee&&t.plan=="Premium"&&t.term=="Annual"?(a(),r("div",_f,[s("small",bf,[e[15]||(e[15]=_("* Freebie included for Premium Annual subscribers for a limited time only. ",-1)),t.is_month_promo?(a(),r("span",yf,"Available after second billing with promotion.")):c("",!0)])])):c("",!0)])}const vf=w(D0,[["render",wf]]),xf={mounted(){},props:{share_link:String},data(){return{shareLink:this.share_link,copied:!1,loaded:!0}},methods:{copyLink(){navigator.clipboard.writeText(this.shareLink),this.copied=!0,setTimeout(()=>{this.copied=!1,this.loaded=!0},2e3)}}},kf={key:0},Bf={key:1};function Cf(i,e,t,d,o,n){const l=M("tooltip");return a(),r("div",null,[S((a(),r("button",{class:"btn-primary",onClick:e[0]||(e[0]=(...u)=>n.copyLink&&n.copyLink(...u))},[!o.copied||!o.loaded?(a(),r("span",kf,"Copy Share Link")):(a(),r("span",Bf," Copied"))])),[[l,"Copy Share Link"]])])}const Tf=w(xf,[["render",Cf]]);g.component("contact-challenge",k(()=>x(()=>import("./ContactChallenge-BFykjBQW.js"),__vite__mapDeps([6,5,4,7]))));const Sf=k(()=>x(()=>import("./Braintree-Ds8pUL7D.js"),__vite__mapDeps([8,5,4,9,10,11]))),Ef=k(()=>x(()=>import("./Admination-Ci1WXpwP.js"),__vite__mapDeps([12,4,5]))),Af=k(()=>x(()=>import("./Outbrain-D2PLYCef.js"),__vite__mapDeps([13,3,4,5]))),Pf=k(()=>x(()=>import("./Poll-ZV_F0j8Z.js"),__vite__mapDeps([14,5,4,15]))),Lf=k(()=>x(()=>import("./SubscribePage-BPZcINzj.js"),__vite__mapDeps([16,4,5]))),If=k(()=>x(()=>import("./UserInput-x2rZ3KZv.js"),__vite__mapDeps([17,5,4]))),Nf=k(()=>x(()=>import("./NewUserInput-H_dygDuk.js"),__vite__mapDeps([18,5,4]))),Df=k(()=>x(()=>import("./AccountCreation-DD1dzer5.js"),__vite__mapDeps([19,5,4]))),Vf=k(()=>x(()=>import("./AppSearch-3zkmM23_.js"),__vite__mapDeps([20,5,4,21,10,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41]))),Rf=k(()=>x(()=>import("./PodcastEpisodes-B-RJWIZv.js"),__vite__mapDeps([42,5,4]))),zf=k(()=>x(()=>import("./PodcastEpisode-CTk-6BA2.js"),__vite__mapDeps([43,4,5]))),Mf=k(()=>x(()=>import("./PodcastCoverImage-Ds7J5s6Y.js"),__vite__mapDeps([44,5,4]))),Of=k(()=>x(()=>
3import("./NewsletterPopup-C8n-MKoK.js"),__vite__mapDeps([45,5,4]))),jf=k(()=>x(()=>import("./VideoJs-Wr1Z4q9C.js"),__vite__mapDeps([46,47,5,4,3]))),Uf=k(()=>x(()=>import("./VideoJsApp-DGTUdMgf.js"),__vite__mapDeps([48,49,4,5]))),Hf=k(()=>x(()=>import("./RegistrationForm-DmFIJgxp.js"),__vite__mapDeps([50,4,5]))),Wf=k(()=>x(()=>import("./CustomAmountPicker-DfpVO9ZH.js"),__vite__mapDeps([51,5,4]))),qf=k(()=>x(()=>import("./NTBVideoJs-Cx6JFQlL.js"),__vite__mapDeps([52,5,4,47,3]))),Ff=k(()=>x(()=>import("./AddUserAddress-jccD4zQV.js"),__vite__mapDeps([53,5,4]))),Yf=k(()=>x(()=>import("./LoggedOutSearch-DGgOD059.js"),__vite__mapDeps([54,5,4]))),Kf=k(()=>x(()=>import("./WorshipSongGenerator-BBrNuqiq.js"),__vite__mapDeps([55,4,5]))),Gf=k(()=>x(()=>import("./Prophecies-BjBadjYB.js"),__vite__mapDeps([56,4,5]))),Qf=k(()=>x(()=>import("./Takes-DhX7o_4P.js"),__vite__mapDeps([57,5,4,58,3,34]))),Jf=k(()=>x(()=>import("./Sports-Bdbx5yAi.js"),__vite__mapDeps([59,5,4,58,3,34]))),Xf=k(()=>x(()=>import("./PremiumPopup-BtcIA9QB.js"),__vite__mapDeps([60,5,4,61]))),Zf=k(()=>x(()=>import("./Comments-CaImfsei.js"),__vite__mapDeps([62,5,4,24,21,10,25,26,27,28,38,39,33,34,30,31,32,35,36,37,63]))),$f=k(()=>x(()=>import("./Comment-BEicQcNr.js"),__vite__mapDeps([29,5,4,30,31,32,33,34,35,36,37,38,39,24,21,10,25,26,27,28]))),eg=k(()=>x(()=>import("./CommentBox-BegUQo8C.js"),__vite__mapDeps([38,5,4,39,33,34,30,31,32,35,36,37]))),tg=k(()=>x(()=>import("./OneTime-CuGH-aBY.js"),__vite__mapDeps([64,5,4]))),ig=k(()=>x(()=>import("./OneTimePayment-DUclqqGB.js"),__vite__mapDeps([65,5,4]))),sg=k(()=>x(()=>import("./Quiz-C90MH1NO.js"),__vite__mapDeps([66,4,5]))),og=k(()=>x(()=>import("./InteractQuizEmbed-CW1Wf2x6.js"),__vite__mapDeps([2,3,4,5]))),ng=k(()=>x(()=>import("./CopyQuizLink-Bt1GHrda.js"),__vite__mapDeps([67,4,5]))),ag=k(()=>x(()=>import("./FeaturedFeatures-B-aogHN4.js"),__vite__mapDeps([68,4,5]))),rg=k(()=>x(()=>import("./BeeLive-reOBl8og.js"),__vite__mapDeps([69,4,5,70]))),lg=k(()=>x(()=>import("./SethAppealPopup-By3G5MJX.js"),__vite__mapDeps([71,5,4,3]))),dg=k(()=>x(()=>import("./JanuarySixthFAQ-BoTnjDry.js"),__vite__mapDeps([72,4,5,73]))),cg=k(()=>x(()=>import("./JanSixthPopup-CfyDTkit.js"),__vite__mapDeps([74,5,4]))),ug=k(()=>x(()=>import("./Jan6Carousel-BcWzOpAl.js"),__vite__mapDeps([75,4,5]))),hg=k(()=>x(()=>import("./Topple-C9dZvx2F.js"),__vite__mapDeps([76,4,5]))),mg=k(()=>x(()=>import("./NTBPodcasts-ZYPqG9MJ.js"),__vite__mapDeps([77,5,4,47,3,78,79]))),fg=k(()=>x(()=>import("./HeadlineCTAPopup-Bshh7Gap.js"),__vite__mapDeps([80,5,4]))),gg=k(()=>x(()=>import("./BeeVideosPage-Cn6n54oe.js"),__vite__mapDeps([81,4,5,82,83,84,85]))),pg=k(()=>x(()=>import("./BeeAllVideosPage-D3NI_wVN.js"),__vite__mapDeps([86,83,4,5]))),_g=k(()=>x(()=>import("./BeeVideoShowPage-BK0hHsmZ.js"),__vite__mapDeps([87,82,83,4,5,84,3,58,34,88]))),bg=k(()=>x(()=>import("./RotateVideosConfirm-DfrRm5JO.js"),__vite__mapDeps([89,5,4])));g.component("toggle-button",Ye);g.component("menu-buttons",qt);g.component("mobile-menu-button",ii);g.component("copy-article-link",ui);g.component("load-more-articles",As);g.component("article-card",mo);g.component("category-badges",yo);g.component("author-name",Bo);g.component("dash-sidebar-link",zo);g.component("rotate-videos-confirm",bg);g.component("alerts",Jo);g.component("newsletter-box",yn);g.component("signup-buttons",Nn);g.component("form-input",On);g.component("sidebar-list-items",Fn);g.component("link-preview",ka);g.component("braintree",Sf);g.component("admination",Ef);g.component("outbrain",Af);g.component("image-lightbox",Ia);g.component("tweet-embed",Ya);g.component("youtube-embed",er);g.component("premiering-hero",ur);g.component("alternative-youtube-display",vr);g.component("poll",Pf);g.component("subscribe-page",Lf);g.component("checkmark",Cr);g.component("plan-benefits",vf);g.component("user-input",If);g.component("new-user-input",Nf);g.component("account-creation",Df);g.component("app-search",Vf);g.component("podcast-episodes",Rf);g.component("podcast-episode",zf);g.component("podcast-cover-image",Mf);g.component("form-submit",Pr);g.component("forgot-password",tl);g.component("newsletter-popup",Of);g.component("modal-overlay",dl);g.component("promo-box",Bl);g.component("video-js",jf);g.component("video-js-app",Uf);g.component("term-buttons",Ul);g.component("registration-form",Hf);g.component("custom-amount-picker",Wf);g.component("trending-articles",cd);g.component("ntb-video-js",qf);g.component("headline-ticker",_d);g.component("term-toggle",Ad);g.component("articles",Od);g.component("add-user-address",Ff);g.component("list-sorter",qd);g.component("list-pagination",sc);g.component("private-ad",cc);g.component("internal-ad",_c);g.component("logged-out-search",Yf);g.component("feature-navbar",Ac);g.component("bee-promo-box",Oc);g.component("worship-song-generator",Kf);g.component("prophecies",Gf);g.component("no-ads-button",Wc);g.component("takes",Qf);
3g.component("homepage-additional-articles",su);g.component("sports",Jf);g.component("premium-popup",Xf);g.component("comments",Zf);g.component("comment",$f);g.component("avatar-image",lu);g.component("reactions",Pu);g.component("user-badge-icons",Du);g.component("comment-box",eg);g.component("one-time",tg);g.component("one-time-payment",ig);g.component("transition-alert-fade",zu);g.component("facebook-pixel",ju);g.component("quiz",sg);g.component("interact-quiz-embed",og);g.component("copy-quiz-link",ng);g.component("featured-features",ag);g.component("bee-live",rg);g.component("seth-appeal-popup",lg);g.component("id-scroller",Wu);g.component("mediatag",dh);g.component("january-sixth-faq",dg);g.component("january-sixth-popup",cg);g.component("january-sixth-carousel",ug);g.component("topple",hg);g.component("ntb-podcasts",mg);g.component("copy-share-link-button",Tf);g.component("headline-cta-popup",fg);g.component("consent-manager",hh);g.component("cookie-notice",Ph);g.component("consent-card",we);g.component("consent-placeholder",Om);g.component("consent-iframe",qm);g.component("skip-to-content",Gm);g.component("screen-reader-text",Zm);g.component("text-opt-in-box",y0);g.component("aditude",N0);g.component("bee-videos-page",gg);g.component("bee-all-videos-page",pg);g.component("bee-video-show-page",_g);export{Sg as A,Om as C,Nd as L,dl as M,Zi as S,bs as T,Ag as a,Cg as k,Eg as s,Tg 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.