PageSourceSearch

https://www.mumsnet.com/build/assets/app-CyHofvtd.js

js mumsnet.com collected 2026-10-01 10:35:05 UTC 22,436 bytes, 6 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`6958a59c-3222-48bb-8240-042233c93a63`,e._sentryDebugIdIdentifier=`sentry-dbid-6958a59c-3222-48bb-8240-042233c93a63`)}catch{}})();import{Hn as e,L as t,On as n,Tn as r,_n as i,dn as a,i as o,v as s,z as c}from"./dist-DViRp4pB.js";import{t as l}from"./usePageViewCount-B20ZGFA5.js";import{t as u}from"./axios-CuZVdglD.js";import{A as d,F as ee,H as f,V as p,f as te,j as ne}from"./helpers-BbGwLwYt.js";import{n as m,t as h}from"./useFeature-BghRU3ys.js";import{t as re}from"./sentry-BjsJd4lZ.js";import{t as ie}from"./auth-Duc6VjE7.js";import{t as ae}from"./ReadyBarrier-GU8V6cKt.js";import{n as g}from"./tailwind-BdxN9Y1q.js";import{t as _}from"./ScrollManager-BC40HKR1.js";import{n as oe,r as v,t as y}from"./euid-CzSqtOPl.js";import{t as b}from"./click-id-BskgSvSs.js";import{l as x}from"./lifecycle-B3D1druh.js";import"./meta-pixel-events-lcDa2LQI.js";import{t as S}from"./useDismiss-Cv1adlKC.js";import{a as se,i as C,n as w,r as T}from"./store-Dg1Ku7Ip.js";import{t as ce}from"./toast-Ckj7knoe.js";import{n as E,t as D}from"./utils-os6_fS6b.js";import{r as le,t as ue}from"./watch-toast-helpers-CIunIj7y.js";import{t as de}from"./useTruncatablePost-BlgsW6U2.js";import{t as fe}from"./watch-thread-DctyCgyl.js";import{t as pe}from"./tippy.esm-CTMKpqgI.js";var me=e({default:()=>he}),O=`scrollend`,k=250,he={name:`scrollend`,isSupported:()=>o&&`on${O}`in o,install:({logger:e})=>{if(!o)return;let t=e=>e!==null&&(typeof e==`object`||typeof e==`function`),n=(e,t,n)=>{let r=e[t];e[t]=function(...e){r.apply(this,e),e.unshift(r),n.apply(this,e)}},r=new Set;o.addEventListener(`touchstart`,e=>{for(let t of e.changedTouches)r.add(t.identifier)}),o.addEventListener(`touchend`,e=>{for(let t of e.changedTouches)r.delete(t.identifier)}),o.addEventListener(`touchcancel`,e=>{for(let t of e.changedTouches)r.delete(t.identifier)});let i=new WeakMap,a=function(n,a,o,s){let c=this;if(!t(c)||a!==O&&a!==`scroll`)return;if(i.has(c)){i.get(c).listeners++;return}let l,u={scrollListener:t=>{clearTimeout(l),l=setTimeout(()=>{if(r.size>0){l=setTimeout(u.scrollListener,k);return}e.debug(`event triggered`),typeof c.dispatchEvent==`function`&&c.dispatchEvent(new Event(O))},k)},listeners:1};n.apply(c,[`scroll`,u.scrollListener]),i.set(c,u)},s=function(e,n,r){let a=this;if(!t(a)||n!==O&&n!==`scroll`||!i.has(a))return;let o=i.get(a);o.listeners--,!(o.listeners>0)&&(e.apply(a,[`scroll`,o.scrollListener]),i.delete(a))};n(Element.prototype,`addEventListener`,a),n(o,`addEventListener`,a),n(o.document,`addEventListener`,a),n(Element.prototype,`removeEventListener`,s),n(o,`removeEventListener`,s),n(o.document,`removeEventListener`,s)}},ge=e({default:()=>_e}),_e={name:`Promise.withResolvers`,isSupported:()=>`withResolvers`in Promise,install:()=>{Promise.withResolvers=()=>{let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}}},A=Object.assign({"./scrollend.js":me,"./withResolvers.js":ge}),j=new f(`polyfill`);Object.entries(A).forEach(([e,t])=>{let n=t?.default;if(!n||typeof n.isSupported!=`function`||typeof n.install!=`function`){j.warn(`Invalid polyfill module encountered: ${e}`);return}if(n.isSupported())return;let r=n.name??e;j.debug(`installing ${r}`),n.install({logger:new f(`polyfill:${r}`)})}),re();var M=!1,N=!1;({isScrollingDown:!1,lastScrollPosition:0,scrollThreshold:200,hasPassedThreshold:!1,scrollEventListener:null,resizeEventListener:null,init(){h(`test-hide-talk-fixed-nav-on-scroll`)&&(document.addEventListener(`alpine:init`,()=>{this.isListenerAllowed()&&setTimeout(()=>{this.setupListener()},500)}),this.resizeEventListener=()=>this.handleResize(),o.addEventListener(`resize`,this.resizeEventListener))},handleResize(){N=!1,this.isScrollingDown=!1,this.removeScrollListener(),this.isListenerAllowed()?this.setupListener():this.updateAlpineStore()},removeScrollListener(){this.scrollEventListener&&=(o.removeEventListener(`scroll`,this.scrollEventListener,{passive:!0}),null)},setupListener(){this.isListenerAllowed()&&(N=!0,this.lastScrollPosition=o.scrollY,this.hasPassedThreshold=this.lastScrollPosition>=this.scrollThreshold,this.updateAlpineStore(),this.attachScrollListener())},attachScrollListener(){this.removeScrollListener();let e=()=>{let e=o.scrollY;this.hasPassedThreshold=e>=this.scrollThreshold,this.hasPassedThreshold?this.detectScrollDirection(e):this.isScrollingDown&&(this.isScrollingDown=!1,this.updateAlpineStore()),this.lastScrollPosition=e,M=!1};this.scrollEventListener=()=>{M||=(o.requestAnimationFrame(e),!0)},o.addEventListener(`scroll`,this.scrollEventListener,{passive:!0})},detectScrollDirection(e){e>this.lastScrollPosition?this.isScrollingDown||(this.isScrollingDown=!0,this.dispatchScrollEvent(`down`),this.updateAlpineStore()):e<this.lastScrollPosition&&this.isScrollingDown&&(this.isScrollingDown=!1,this.dispatchScrollEvent(`up`),this.updateAlpineStore())},updateAlpineStore(){if(o.Alpine?.store){let e=o.Alpine.store(`global`);e&&(e.mobileFixedNavVisible=!this.isScrollingDown)}},dispatchScrollEvent(e){o.dispatchEvent(new CustomEvent(`scroll-direction`,{detail:{direction:e}}))},isListenerAllowed(){if(!g().smaller(`lg`).value)return!1;let e=o.Alpine?.store?.(`global`);return e&&!e.mobileFixedNavSettingEnabled?!1:!N}}).init();var P=new f(`ad-tech:sticky-leaderboard`),F=()=>{let e=document.querySelector(`[data-leaderboard-desktop]`);if(!e)return;e.classList.remove(`lg:w-reskin`,`lg:mx-auto`),e.classList.add(`lg:sticky`,`lg:top-0`,`lg:z-10`);let t=document.querySelector(`[data-site-header]`);t&&t.classList.add(`lg:pt-10`)},I=()=>{let e=document.querySelector(`[data-leaderboard-desktop]`);e&&(e.classList.remove(`lg:sticky`,`lg:top-0`,`lg:z-10`),e.classList.add(`lg:w-reskin`,`lg:mx-auto`));let t=document.querySelector(`[data-site-header]`);t&&t.classList.remove(`lg:pt-10`)},L=e=>{if(!o?.googletag?.pubads){P.warn(`Google Publisher Tag not available for tracking`);return}o.googletag.pubads().setTargeting(`sticky_lb_desktop`,e.toString())},ve=1e4;(async()=>
1{if(!h(`adtech-sticky-leaderboard-desktop`)){P.debug(`Feature toggle disabled`);return}if(!g().greaterOrEqual(`lg`).value){P.debug(`Not desktop. Skipping skin detection.`);return}if(await x().readyPromise,P.debug(`Initialised`),y()||oe()){P.debug(`Skin present at init. Sticky leaderboard disabled.`),I(),L(`blocked`);return}let e=v(()=>{P.debug(`Skin detected. Sticky leaderboard disabled.`),I(),L(`blocked`)});setTimeout(()=>{e(),P.debug(`Timeout reached. Skin subscription cleared.`)},ve)})(),Object.assign(window,{mnEnableStickyLeaderboardDesktop:()=>{h(`adtech-sticky-leaderboard-desktop`)&&(F(),L(!0))},mnDisableStickyLeaderboardDesktop:()=>{h(`adtech-sticky-leaderboard-desktop`)&&(I(),L(`blocked`))}});var ye=e({default:()=>be}),be=e=>{e.magic(`isVisible`,e=>t=>(t??=e,t?te(t):!1))},xe=e({default:()=>Se}),Se=e=>{let t=e=>{let t=e?.$el?.closest(`[x-data]`)?.getAttribute(`x-data`)?.replace(/\(.*\)$/i,``);return[`alpine`,e?.closest(`[id]`)?.id,t].filter(Boolean).join(`:`)},n=(e,n)=>(e??=t(n),typeof e!=`string`||e.length===0?`alpine`:e.startsWith(`alpine:`)?e:`alpine:${e}`);e.magic(`scrollManager`,()=>_),e.magic(`scrollTo`,e=>(t={})=>{_.scrollTo({...t,source:n(t.source,e)})}),e.magic(`scrollIntoView`,e=>(t,r={})=>{t?!r&&!(t instanceof Element)&&(r=t??{},t=e):t=e,_.scrollIntoView(t,{...r,source:n(r.source,e)})})},Ce=e({default:()=>we}),we=e=>{e.magic(`useDismiss`,()=>S)},Te=e({default:()=>Ee}),Ee=e=>{let t=new WeakMap;e.magic(`useEventBus`,e=>n=>{if(!e)return s(n);if(t.has(e)&&t.get(e).has(n))return t.get(e).get(n);let r=s(n);return t.has(e)?t.get(e).set(n,r).get(n):t.set(e,new Map([[n,r]])).get(e).get(n)})},De=e({default:()=>Oe}),Oe=e=>{e.magic(`feature`,()=>h),e.magic(`useFeature`,()=>m)},ke=e({default:()=>Ae}),Ae=e=>{let t=p(),n=(e,t)=>{for(let n of Object.keys(e))n in t||delete e[n];Object.assign(e,t)},r=e.reactive({});n(r,t.value??{}),e.store(`globalState`,r),e.magic(`globalState`,()=>e.store(`globalState`)),window?.addEventListener&&window.addEventListener(`global-state:updated`,e=>{n(r,e.detail?.state??{})})},je=e({default:()=>Ne,followTopic:()=>z,followTopicGuest:()=>R}),Me=`Something went wrong and we were unable to follow this topic`,R=e=>({promptSignUp(){h(`deferred-actions`)&&se({action:w.FollowTopic,key:`${w.FollowTopic}:${e}`,targetId:e}),this.$dispatch(`modal-component-show`,{name:`AuthPrompt`,data:{configKey:`follow`}})}}),z=e=>({init(){h(`deferred-actions`)&&C().forEach(e=>this.claim(e))},async claim(t){t?.action===w.FollowTopic&&t.targetId===e&&T(t.id)&&(await this.applyFollow(),E(this.$el,{source:`deferred-action:${w.FollowTopic}`}))},async applyFollow(){if(this.$wire.followed)return;let e=this.$el.dataset.clickId;if(await d(()=>this.$wire.follow()),!this.$wire.followed){D({message:Me});return}b(null,e,null,{deferred:!0})}}),Ne=e=>{e.data(`followTopicGuest`,R),e.data(`followTopic`,z)},Pe=e({default:()=>Fe}),Fe=e=>{let t=document.querySelector(`#post-options-menu-overlay-template`);e.data(`postOptionsMenu`,e=>({id:e.id,type:e.type,username:e.username,isContentVisible:e.isContentVisible,userOwnsPost:e.userOwnsPost,editableUntil:e.editableUntil,shareUrl:e.shareUrl,reportUrl:e.reportUrl,savedItemsNotEmpty:e.savedItemsNotEmpty,isOpPost:e.isOpPost,showEditButton:!1,listener:null,isOpen:!1,async open(){this.showEditButton=this.userOwnsPost&&this.isWithinEditablePeriod(),this.isOpen=!1,this.$refs.postOptionsMenuOverlay.replaceChildren(t.content.cloneNode(!0)),this.listener=async e=>{e.target===this.$refs.postOptionsMenuButton||this.$refs.postOptionsMenuButton.contains(e.target)||e.target===this.$refs.postOptionsMenuOverlay||this.$refs.postOptionsMenuOverlay.contains(e.target)||await this.close()},document.addEventListener(`click`,this.listener),this.isOpen=!0,this.$dispatch(`show-modal-backdrop`,{cssClass:`bg-black/30 lg:bg-transparent`})},async close(){this.isOpen&&this.listener&&(document.removeEventListener(`click`,this.listener),this.isOpen=!1,this.$dispatch(`hide-modal-backdrop`),this.$refs.postOptionsMenuOverlay.replaceChildren(),this.listener=null)},delayedClose(e){this.isOpen&&this.listener&&(document.removeEventListener(`click`,this.listener),this.isOpen=!1,this.$dispatch(`hide-modal-backdrop`),setTimeout(()=>{this.$refs.postOptionsMenuOverlay.replaceChildren(),this.listener=null},e))}
1,isWithinEditablePeriod(){return new Date<new Date(this.editableUntil)},pmUrl(){return`/talk/private-messages?foruser=${this.username}`},seeAllUrl(e,t){return`/talk/${e}/${t}?postsby=${this.username}`},reportHref(){return this.reportUrl},showPremiumCtaModal(){window.Livewire.dispatchTo(`modal`,`show-modal`,{partial:`talk.modals.premium-cta`}),this.close()},scrollToTop(){this.$scrollTo({top:0,source:`post-options-menu:scrollToTop`}),this.close()},scrollToBottom(){this.$scrollIntoView(document.querySelector(`[data-js-last-reply]`),{source:`post-options-menu:scrollToBottom`}),this.close()}}))},Ie=e({default:()=>Le}),Le=e=>{e.data(`saveReply`,(t,n,r)=>({id:t,initiallyActive:n,savedPostsUrl:r,isLoading:!1,store:e.store(`thread`).saveReply,init(){this.store.initialized(t)||this.store.setActive(t,n)},toggle(){this.isLoading=!0,axios.patch(`/api/v3/saved-replies/toggle`,{replyId:t}).then(()=>{this.isLoading=!1,this.store.active(t)?this.$dispatch(`show-toast`,{message:`You have unsaved this post`}):this.$dispatch(`show-toast`,{message:`<p>You have saved this post. <a class="underline" href="${this.savedPostsUrl}">Go to saved list</a>.</p>`}),this.store.setActive(t,!this.store.active(t))}).catch(()=>{this.$dispatch(`show-toast`,{message:`Something went wrong and we were unable to save this post`}),this.isLoading=!1})}}))},Re=e({default:()=>ze}),ze=e=>{e.data(`saveThread`,(t,n,r)=>({id:t,savedThreadsUrl:r,initiallyActive:n,isLoading:!1,store:e.store(`thread`).saveThread,save:async()=>axios.post(`/api/v3/talk/threads/${t}/save`),delete:async()=>axios.delete(`/api/v3/talk/threads/${t}/save`),init(){this.store.initialized||this.store.setActive(n)},toggle(){this.isLoading=!0,(this.store.active?this.delete():this.save()).then(()=>{this.isLoading=!1,this.store.active?this.$dispatch(`show-toast`,{message:`You have unsaved this thread`}):this.$dispatch(`show-toast`,{message:`<p>You have saved this thread. <a class="underline" href="${this.savedThreadsUrl}">Go to saved list</a>.</p>`}),this.store.setActive(!this.store.active)}).catch(()=>{this.$dispatch(`show-toast`,{message:`Something went wrong and we were unable to save this thread`}),this.isLoading=!1})}}))},Be=e({default:()=>Ve}),Ve=e=>{e.data(`share`,(e,t)=>({share(){return le({title:e,url:t})}}))},B=r([]),V=p(),He=()=>V.value.tours?V.value.tours:[],Ue=()=>(localStorage.getItem(`tours`)||``).split(`,`);(()=>{let e=He(),t=Ue();B.value=Array.from(new Set([...e,...t]))})();function H(){return{isCompleted:e=>B.value.includes(e),track:e=>{B.value.push(e),ie().check()&&axios.post(`/api/v3/utility/tour`,{name:e}).catch(()=>{}),localStorage.setItem(`tours`,B.value)}}}var We=e({default:()=>qe}),U=15,W=t(`swipe:point_in_time`,{pointInTime:null,expireAt:null}),Ge=()=>{if(W.value?.expireAt&&W.value?.pointInTime&&!(new Date>new Date(W.value.expireAt)))return W.value.pointInTime};async function Ke(e){let t=new URL(`/api/v3/trending/next`,window.location.origin);t.searchParams.append(`thread_id`,e);let n=Ge();n&&t.searchParams.append(`point_in_time_at`,n);let r=(await axios.get(t.toString())).data.data;return W.value={pointInTime:r.point_in_time_at,expireAt:new Date().getTime()+36e5},r.link}var G=(e,t)=>Math.atan(Math.abs(e)/Math.abs(t))*(180/Math.PI),qe=e=>{e.data(`swipeForNextTrendingThread`,e=>({threadId:e,showLoading:!1,buttonScale:1,swipeDirection:null,linkForNextThread:null,isEnabled:!1,disableSwipe(){this.stop(),this.buttonScale=1,this.isEnabled=!1},enableSwipe(){this.isEnabled||this.init()},stop:()=>{},async init(){if(!window.matchMedia(`(max-width: 768px)`).matches)return;this.isEnabled=!0,this.linkForNextThread||=await Ke(this.threadId);let{isSwiping:e,lengthX:t,lengthY:n,direction:r,stop:i}=c(document.body,{passive:!1,threshold:Math.max(40,Math.floor(.25*(window.innerWidth||document.body.clientWidth))),onSwipeEnd:(e,r)=>{let i=e.target.closest(`[data-id="trending-swipe-ignore"]`);if(!(i&&i.contains(e.target))&&[`left`,`right`].includes(r)&&!(G(n.value,t.value)>U)){if(H().isCompleted(`swipe`)||H().track(`swipe`),r===`right`){window.mnGaEvent(`swiped_for_previous_thread`),window.mnAmpEvent(`swiped_for_previous_thread`),window.history.back();return}if(!this.linkForNextThread){ce().show({text:`Something went wrong and we were unable to load the next trending thread`});return}this.showLoading=!0,localStorage.setItem(`swipedForNextTrendingThread`,`1`),window.mnGaEvent(`swiped_for_next_trending_thread`),window.mnAmpEvent(`swiped_for_next_trending_thread`),window.location.assign(this.linkForNextThread)}}}),o=a([e,r,t,n],([e,t,n,r])=>
1{if(this.swipeDirection=t,!e||![`left`,`right`].includes(t)||G(r,n)>U){this.buttonScale=1;return}this.buttonScale=1+Math.min(Math.abs(n)/140,1.5)});this.stop=()=>{i(),o()}}}))},Je=e({default:()=>K}),K=e=>{e.data(`swipeTour`,()=>({show:!1,initialiseTour(){window.matchMedia(`(max-width: 768px)`).matches&&window.addEventListener(`mn-sp-cmp-consent-set`,()=>{let e=o?.globalState?.user?.is_logged_in===!0;if(!H().isCompleted(`swipe`)){if(e===!0){let e=Number(localStorage.getItem(`swipeTourCount`));if(e>=3){H().track(`swipe`);return}e<3&&localStorage.setItem(`swipeTourCount`,String(e+1))}setTimeout(()=>{this.show=!0,this.setupObserver()},1e4)}})},observer:null,setupObserver(){let e=document.querySelector(`#mumsnet-footer`),t={root:null,rootMargin:`0px`,threshold:0};this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.show=!1:H().isCompleted(`swipe`)||(this.show=!0)})},t),e&&this.observer.observe(e)},acknowledge(){this.show=!1,H().track(`swipe`),this.observer&&=(this.observer.disconnect(),null)}}))},Ye=e({default:()=>Xe,truncatablePost:()=>q}),q=()=>({collapsed:!0,isTruncatable:!1,scope:null,init(){let e=n(null);this.scope=i(),this.scope.run(()=>{let{collapsed:t,isTruncatable:n}=de(e);a(n,e=>{this.isTruncatable=e},{flush:`sync`}),this.$watch(`collapsed`,e=>{t.value=e})}),this.$nextTick(()=>{e.value=this.$refs.truncatablePostContent})},destroy(){this.scope?.stop()}}),Xe=e=>{e.data(`truncatablePost`,q)},Ze=e({default:()=>Qe,watchThread:()=>Z,watchThreadButton:()=>X,watchThreadGuest:()=>Y}),J=`Something went wrong and we were unable to watch this thread`,Y=(e,t=!1,n={})=>({promptSignUp(){fe(e,t?`bottom`:`top`),this.$dispatch(`modal-component-show`,{name:`AuthPrompt`,data:{promptCode:w.WatchThread.value,dataId:w.WatchThread.value,...n}})}}),X=e=>({init(){h(`deferred-actions`)&&C().forEach(e=>this.claim(e))},async claim(t){if(t?.action===w.WatchThread&&t.threadId===e){if(this.$wire.watched){T(t.id);return}if(T(t.id)){if(await d(()=>this.$wire.ensureWatched()),!this.$wire.watched){D({message:J});return}this.$store.thread.watchThread.setActive(!0),b(null,`watch_thread:watch-thread`,`Watch thread`,{deferred:!0}),t.payload?.position===`bottom`&&E(`[data-deferred-watch-thread-target]`,{source:`deferred-action:${w.WatchThread}`})}}}}),Z=e=>(t,n,r,i=!1)=>({id:t,initiallyActive:n,watchedThreadsUrl:r,isLoading:!1,store:e.store(`thread`).watchThread,save:async()=>axios.post(`/api/v3/talk/threads/${t}/watch`),delete:async()=>axios.delete(`/api/v3/talk/threads/${t}/watch`),init(){this.store.initialized||this.store.setActive(n),i&&h(`deferred-actions`)&&C().forEach(e=>this.claim(e))},async watch(){this.isLoading=!0;let[,e]=await ne(()=>this.save());return this.isLoading=!1,!e&&(this.store.setActive(!0),!0)},async claim(e){if(e?.action===w.WatchThread&&e.threadId===t){if(n){T(e.id);return}if(T(e.id)){if(!await this.watch()){D({message:J});return}b(null,`watch_thread:watch-thread`,`Watch thread`,{deferred:!0}),D(ue()),e.payload?.position===`bottom`&&E(`[data-deferred-watch-thread-target]`,{source:`deferred-action:${w.WatchThread}`})}}},toggle(){this.isLoading=!0;let e=!this.store.active;(e?this.save():this.delete()).then(()=>{this.isLoading=!1,this.$dispatch(`show-toast`,{message:e?`You are now watching this thread. <a data-click-id="toast_banner_click:toast-thread-watched-list" class="underline" href="${this.watchedThreadsUrl}">Go to your watched list</a>`:`You are no longer watching this thread`}),this.store.setActive(e)}).catch(()=>{this.$dispatch(`show-toast`,{message:J}),this.isLoading=!1})}}),Qe=e=>{e.data(`watchThreadGuest`,Y),e.data(`watchThreadButton`,X),e.data(`watchThread`,Z(e))},Q=(e,t)=>{let n=Array.isArray(e)?e:Object.values(e??{}),r=()=>n.forEach(e=>t(e?.default??e));o?.Alpine?r():o?.document.addEventListener(`alpine:init`,r,{once:!0})};Q(Object.assign({"./plugins/isVisible.js":ye,"./plugins/scrollManager.js":xe,"./plugins/useDismiss.js":Ce,"./plugins/useEventBus.js":Te,"./plugins/useFeature.js":De,"./plugins/useGlobalState.js":ke}),e=>o.Alpine.plugin(e)),Q(Object.assign({"./components/follow-topic.js":je,"./components/post-options-menu.js":Pe,"./components/save-reply.js":Ie,"./components/save-thread.js":Re,"./components/share.js":Be,"./components/swipe-for-next-trending-thread.js":We,"./components/swipe-tour.js":Je,"./components/truncatable-post.js":Ye,"./components/watch-thread.js":Ze}),e=>o.Alpine.plugin(e)),o&&ae.async(ee(o,`alpine:initialized`));var $=()=>
1{function e(e){e.update({autoplay:!1})}if(document.querySelector(`.get-involved-carousel`)&&new Glide(`.get-involved-carousel`,{type:`carousel`,startAt:0,touchRatio:0}).mount(),document.querySelector(`.hero-carousel`)){let t=new Glide(`.glide`,{type:`carousel`,startAt:0,autoplay:5e3,touchRatio:0});t.mount();let n=document.getElementById(`carousel-pause`);n.addEventListener(`click`,function(){e(t)}),n.addEventListener(`keydown`,function(n){(n.code===`Space`||n.code===`Enter`)&&e(t)})}let t=document.querySelectorAll(`.product-carousel`);t.length&&t.forEach(e=>{new Glide(e,{type:`carousel`,startAt:0,focusAt:`center`,peek:{before:100,after:100},gap:15,autoplay:5e3,breakpoints:{750:{focusAt:0,peek:{before:0,after:100}}}}).mount()}),document.querySelectorAll(`.js-product-image-carousel`).forEach(e=>{e.querySelectorAll(`img`).length>1&&new Glide(e,{type:`carousel`,startAt:0,touchRatio:0}).mount()}),document.querySelectorAll(`.js-product-image-carousel-3`).forEach(e=>{e.querySelectorAll(`img`).length>1&&new Glide(e,{type:`carousel`,startAt:0,touchRatio:0,perView:2.5,breakpoints:{750:{perView:1}}}).mount()})};document.addEventListener(`DOMContentLoaded`,$),document.addEventListener(`InfiniteScrollPageRendered`,$);function $e(e,t){return t===``||t.includes(e)}function et(){if(!document.querySelector(`[data-id="op-post-tooltip-next"]`))return;let e=document.querySelector(`[data-id="op-post-tooltip-all"]`);if(!e)return;let t=$e(window.location.hostname,document.referrer);function n(){return t&&window.localStorage.getItem(`opPostTooltipViewed`)!==`1`}pe(e,{allowHTML:!0,interactive:!0,showOnCreate:n(),hideOnClick:!1,trigger:`manual`,placement:`bottom-end`,content:`
2            <p class='text-sm font-bold mr-10'>Want to see thread updates from this person?</p>
3            <button class='absolute -top-3 right-0.5 lg:-right-px p-4 text-xl'>&times;</button>
4            <p class='mt-2'>Click ‘See next’ to jump to the next post, or ‘See all’ to view them all in one go.</p>
5        `,theme:`blue`,zIndex:5,popperOptions:{modifiers:[{name:`flip`,enabled:!1}]},onShow(e){e.popper.setAttribute(`data-impression-id`,`op-post-tooltip`),window.localStorage.setItem(`opPostTooltipViewed`,`1`),window.dispatchEvent(new CustomEvent(`show-modal-backdrop`,{detail:{cssClass:`bg-black/30 bg-transparent`}}))},onClickOutside(e){e.hide()},onHide(){let e=document.querySelector(`[data-id='op-post-tooltip-next']`);if(e){let t=e.getAttribute(`data-click-id`);e.setAttribute(`data-click-id`,`${t}-toggle`)}},onHidden(){window.mnGaEvent(`tooltip_cta_close`),window.mnAmpEvent(`tooltip_cta_close`),setTimeout(()=>{window.dispatchEvent(new CustomEvent(`hide-modal-backdrop`))},200)}})}document.addEventListener(`alpine:initialized`,function(){(H().isCompleted(`swipe`)||!h(`swipe-for-next-trending-thread`))&&et()}),o?.globalState?.page?.thread_id&&sessionStorage.setItem(`mn-thread-id-back-restore`,o.globalState.page.thread_id),window.axios=u,l().automatic();
6//# sourceMappingURL=app-CyHofvtd.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.