PageSourceSearch

https://babylonbee.com/build/assets/PremiumPopup-BtcIA9QB.js

js babylonbee.com collected 2026-09-24 08:29:31 UTC 2,686 bytes, 1 lines download raw bytes

1import{_,e as i}from"./_plugin-vue_export-helper-CZPp-EVN.js";import{P as g}from"./PopupFeatureList-B2U3GMpo.js";import{P as u,j as a,k as h,L as f,q as s,x as o,C as l,K as y}from"./vendor-vue-n3skSn-P.js";const x={components:{PopupFeatureList:g},mounted(){i.on("triggerPremiumPopup",n=>{this.openModal()})},props:{is_logged_in:{type:Boolean,default:!1},is_active:{type:Boolean,default:!1},site_logo:String,app_name:String,is_app_view:{type:Boolean,default:!1}},data(){return{showingModal:!1,modalShown:this.popup_seen,linkPath:""}},methods:{upgrade(){this.updateUpgradePopup("upgrade")},closeModal(){i.emit("modalClosed"),this.showingModal=!1,this.updateUpgradePopup()},openModal(){this.showingModal=!0,i.emit("modalOpened",!1)},updateUpgradePopup(n=null){axios.post("/ajax/updateUpgradePopup",{type:n}).then(t=>{this.modalShown=!0,n&&(this.linkPath=t.data,this.$nextTick(()=>{var e=document.getElementById("upgrade-link");e.click()}))})}}},k={key:0,class:"p-4"},v={key:1},b={class:"flex mt-4 ml-4 mr-8 mb-3"},w=["src"],P={class:"my-auto sm:ml-2 text-gray-900"},M={key:0,class:"mx-4 text-gray-500 text-lg"},B={key:1,class:"mx-4 text-gray-500 text-lg"},C={key:2,class:"mx-4 text-gray-500 text-lg"},S={class:"mx-4 mb-4"},U=["href"];function j(n,t,e,L,d,r){const p=u("popup-feature-list"),c=u("modal-overlay");return a(),h(c,{onModalClosed:t[1]||(t[1]=m=>r.closeModal()),showingModal:d.showingModal},{default:f(()=>[e.is_app_view?(a(),s("div",k,[...t[2]||(t[2]=[o("div",{class:"alert-info"}," This feature is only available to premium and bundle subscribers. ",-1)])])):(a(),s("div",v,[o("div",b,[o("img",{class:"my-auto block sm:h-12 h-8",src:e.site_logo,alt:"Logo"},null,8,w),o("h4",P,"Want to join the conversation on "+l(e.app_name)+"?",1)]),!e.is_active&&e.is_logged_in?(a(),s("p",M,"Reactivate your account to regain full access to "+l(e.app_name)+", including: ",1)):e.is_logged_in?(a(),s("p",B,"Upgrade your account to our premium plan to unlock full access to "+l(e.app_name)+", including: ",1)):(a(),s("p",C,"Sign up now to be able to like, comment and reply to other members. A full membership to our site includes: ")),y(p,{app_name:e.app_name},null,8,["app_name"]),o("div",S,[o("a",{id:"upgrade-link",href:d.linkPath,class:"hidden"},null,8,U),o("button",{onClick:t[0]||(t[0]=m=>r.upgrade()),class:"w-full flex items-center justify-center py-3 px-5 border border-transparent text-base font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},l(e.is_logged_in?e.is_active?"Upgrade":"Reactivate":"Get Account"),1)])]))]),_:1},8,["showingModal"])}const R=_(x,[["render",j]]);export{R as default};

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.