PageSourceSearch

https://www.healthywomen.org/static/dist/social-ux/613.62bbc9909c465b807452.bundle.mjs

js healthywomen.org collected 2026-09-24 08:50:30 UTC 12,451 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[613],{1549:function(e,t,n){n.d(t,{EB:function(){return i},KV:function(){return o},OU:function(){return a},gj:function(){return s},rW:function(){return r}});const i="url:change",a="url:scrolled",s="page:loaded",r="read-article:click",o="post:shared"},3964:function(e,t,n){function i(e){const t=e.length;return function(...n){return n.length===t?e.call(null,...n):e.bind(null,...n)}}n.d(t,{A:function(){return i}})},367:function(e,t,n){function i(...e){return t=>e.reduce(((e,t)=>t(e)),t)}n.d(t,{A:function(){return i}})},2397:function(e,t,n){function i(e,t,n,a=null){const{messageBusUri:s}=e;let r=!1,o=new WebSocket(s);return o.addEventListener("open",(function(){r=!0,o.send(JSON.stringify({channel:t,disconnectedAt:a})),a=null})),o.addEventListener("message",(e=>{n(JSON.parse(e.data))})),o.addEventListener("close",(()=>{r=!1;const a=window.setInterval((()=>{r||(i(e,t,n,(new Date).getTime()),clearInterval(a),o=null)}),1e3)})),o}n.d(t,{A:function(){return i}})},1821:function(e,t,n){function i(e){const t=document.createElement("template");return t.innerHTML=e,{template:t,getElement(){return t.content.cloneNode(!0).firstElementChild}}}n.d(t,{A:function(){return i}})},3989:function(e,t,n){n.d(t,{A:function(){return a}});const i=navigator.userAgent;function a(){return/Android|webOS|iPhone|iPod|BlackBerry/i.test(i)?"mobile":/iPad/i.test(i)?"tablet":"desktop"}},4414:function(e,t){t.A=(e,t)=>e.parentNode.insertBefore(t,e)},88:function(e,t,n){n.d(t,{A:function(){return a}});const i={};function a(e,t){if(i[e])return i[e];{const n=(t||document).querySelector(e);return i[e]=n?JSON.parse(n.text):{}}}},613:function(e,t,n){n.r(t),n.d(t,{default:function(){return V}});var i=n(2397);const a=0,s=1,r=(new Set([0,1,2,3,4,5]),4e3),o=3e4;var l=n(4414);function c(e,t){const{id:n,href:i,basename:a,publishedAt:s}=t;e.id=`rebelltitem${n}`,e.setAttribute("data-id",n),e.setAttribute("data-href",i),e.setAttribute("data-basename",a),isNaN(s)?e.setAttribute("data-published-at",new Date(`${s}Z`).getTime()/1e3):e.setAttribute("data-published-at",s/1e3)}function d(e,t){t&&(0,l.A)(e.querySelectorAll("[data-id]")[0],t)}var u=n(3989);function g(e){const{mediaHtml:t,bodyHtml:n,bodyAboveMedia:i,headline:a,caption:s,credit:r,is_image:o,class_name:l,publishedAt:d}=e,g=document.createElement("div"),p=a?`<h3 data-role="headline">${a}</h3>`:"",h=n.replace(/data-runner-src=/gi,"src="),f=i?`${h}${t}`:`${t}${h}`;let m="",b="";return o&&t&&(m=s?`<small class="image-media media-photo-credit">${s}</small>`:"",b=r?`<small class="image-media media-photo-caption">${r}</small>`:""),g.classList.add("rebellt-item",`is-${(0,u.A)()}`),l&&g.classList.add(l),g.dataset.isImage=o||!1,g.dataset.publishedAt=d,c(g,e),g.innerHTML=`${p}${f}${m}${b}`,g}var p=n(367),h=n(1821);const f=(0,h.A)('\n<div class="listicle-slideshow listicle-slideshow__init">\n    <div class="rebellt-item rebellt-item-fade-in">\n        <h3></h3>\n        <div class="rebellt-item-media-container">\n            <div class="listicle-slideshow-media-html"></div>\n            <div class="listicle-slideshow-pager">\n                <a href="javascript:;" class="listicle-slideshow-switch-page-btn listicle-slideshow--prev">\n                    <span>\n                        <i></i>\n                        <i class="fa fa-play-circle fa-flip-horizontal"></i>\n                    </span>\n                </a>\n                <a href="javascript:;" class="listicle-slideshow-switch-page-btn listicle-slideshow--next">\n                    <span>\n                        <i></i>\n                        <i class="fa fa-play-circle"></i>\n                    </span>\n                </a>\n            </div>\n        </div>\n        <div class="image-media media-photo-credit"></div>\n        <div class="image-media media-caption"></div>\n        <script type="application/json"><\/script>\n        <div class="listicle-slideshow__thumbnails clearfix"></div>\n    </div>\n</div>\n'),m=(0,h.A)('\n<div class="listicle-slideshow__thumbnail">\n    <script type="application/json"><\/script>\n    <div class="image crop-3x2 widget__image"></div>\n</div>\n'),b=(0,h.A)('\n    <div class="post-update-notification" style="top: 20px; position: fixed; display: flex; width: 100%; justify-content: center;">\n        <button class="update-text-content"/>\n    </div>\n'),v=(0,h.A)('\n    <li>\n        <a href="javascript:;">
1\n            <span class="particle-date"></span>\n            <span class="particle-title"></span>\n        </a>\n    </li>\n');function w(e){const{container:t,id:n,postId:i,headline:a,mediaHtml:s}=e,r=t.querySelector(".rebellt-item");return r.setAttribute("data-index",n),r.setAttribute("data-post-id",i),r.querySelector("h3").innerHTML=a||"",t.querySelector(".listicle-slideshow-media-html").innerHTML=s||"",e}function y(e){const{container:t,caption:n,credit:i}=e;return t.querySelector(".media-photo-credit").innerHTML=i||"",t.querySelector(".media-caption").innerHTML=n||"",e}function S(e){const{container:t,adsConfig:n,postId:i}=e,a=t.querySelector('script[type="application/json"]');return a.innerText=JSON.stringify(n),a.id=`slideshow-ads-context-${i}`,e}function A(e){const{container:t,slides:n,href:i,postId:a}=e,s=t.querySelector(".listicle-slideshow__thumbnails");return n.forEach(((e,t)=>{const n=m.getElement(),r=`slide-html-${a}-${t}`;e.href===i&&n.classList.add("active"),n.setAttribute("data-href",e.href),n.setAttribute("data-post-id",a),n.setAttribute("data-media-html-id",r);const o=n.querySelector('script[type="application/json"]');o.id=r,o.innerText=e.mediaHtml,n.querySelector("div.image").setAttribute("data-runner-img-hd",e.thumb),s.appendChild(n)})),e}function P(e,t){const{postId:n}=t,{id:i,slides:a,adsConfig:s}=e,[r]=a,o=f.getElement();c(o,e);const l={container:o,id:i,postId:n,adsConfig:s,slides:a,...r};return(0,p.A)(w,y,S,A)(l),o}var q=n(88);let x=0,E=0;function L(e){const t=(0,q.A)(`#assembler-ad-config-${e}`);if(!Object.keys(t).length)return null;const{adsOrder:n,adCodes:i}=t,[a]=n;return x++%a==0?function(e){const t=(0,u.A)();let n;return e&&t in e&&(n=e[t]),n?(0,h.A)(n).getElement():null}(i[E++]||i[E=0]):null}let T=0;function $(e){if(!e)return null;if(e.getBoundingClientRect().top<=0){const t=b.getElement(),n=t.querySelector("button");n.innerText=`Updates (${++T})`,n.addEventListener("click",(()=>{e.scrollIntoView({behavior:"smooth"}),t.remove(),T=0})),document.body.appendChild(t),setTimeout((()=>{t.remove(),T=0}),r)}}const I={[a]:g,[s]:P};var C=n(2274),O=n(1549);function j(e){const t=document.querySelector(".live-updates-list");t&&e(t)}const _={includeSeconds:!0,addSuffix:!0};function N(e,t,n){const i=v.getElement(),a=i.querySelector(".particle-title"),s=i.querySelector(".particle-date");return i.setAttribute("data-href",e.dataset.href),i.querySelector("a").addEventListener("click",(t=>{t.preventDefault(),e.scrollIntoView(!0)})),a.innerText=t,n&&(s.innerText=(0,C.A)(n,new Date,_)),i}const k=e=>new Date(e);function M(e){j((t=>{const n=document.createDocumentFragment();e.querySelectorAll("[data-id]").forEach((e=>{const t=e.querySelector('[data-role="headline"]'),{publishedAt:i}=e.dataset,a=i?k(1e3*parseInt(i)):null;t&&n.appendChild(N(e,t.innerText,a))})),t.appendChild(n)}))}function z(e,t){const{headline:n,publishedAt:i}=t;j((t=>{if(n){const a=isNaN(i)?`${i}Z`:i,s=N(e,n,k(a));(0,l.A)(t.firstElementChild,s)}}))}var H=n(3964);class U{constructor({items:e,pageSize:t}){this.items=[...e],this.pageSize=t,this.currentPage=1,this.hasUnseenItems=!1}addItem(e){this.items.unshift(e),1!==this.currentPage&&(this.hasUnseenItems=!0)}getTotalPages(){return Math.max(1,Math.ceil(this.items.length/this.pageSize))}getPageItems(e){const t=(e-1)*this.pageSize;return this.items.slice(t,t+this.pageSize)}goToPage(e){return this.currentPage=Math.max(1,Math.min(e,this.getTotalPages())),1===this.currentPage&&(this.hasUnseenItems=!1),this.getPageItems(this.currentPage)}isOnFirstPage(){return 1===this.currentPage}}const B=(0,H.A)((function(e,t,n){const i=function(e,t,n){const i=I[t.itemType],a=i?i(t,n):null;return d(e,L(n.post.id)),d(e,a),$(a),a}(e,n,t);z(i,n)}));function D(e,[t,n]){return isNaN(t)?e:[n,...e]}function F(e){const t=e.getBoundingClientRect().top+window.scrollY-document.elementsFromPoint(window.innerWidth/2,1).reduce(((e,t)=>{const{position:n}=window.getComputedStyle(t);if("fixed"!==n&&"sticky"!==n)return e;const i=t.getBoundingClientRect();return 0===i.top&&i.height>0?Math.max(e,i.bottom):e}),0);window.scrollTo({top:t,behavior:"smooth"})}function R(e,t,n,i,a){const s=new Set(t.getPageItems(t.currentPage));
1if(t.items.forEach((t=>{e.contains(t)||e.prepend(t),t.style.display=s.has(t)?"":"none"})),function(e,t){if(!t)return;const n=e.getTotalPages();t.style.display=n<=1?"none":"";t.querySelector(".rebel-live-blog-pagination-info").textContent=`Page ${e.currentPage} of ${n}`;const i=t.querySelector("[data-action='prev']"),a=t.querySelector("[data-action='next']");i.disabled=e.currentPage<=1,a.disabled=e.currentPage>=n,i.classList.toggle("rebel-live-blog-pagination-btn--disabled",e.currentPage<=1),a.classList.toggle("rebel-live-blog-pagination-btn--disabled",e.currentPage>=n)}(t,i),n&&t.isOnFirstPage()&&n.classList.remove("rebel-live-blog--has-new-data"),!a){const e=t.getPageItems(t.currentPage)[0];e&&F(e)}}const J={[a]:g,[s]:P};function V(e,t){const{settings:n,eventBus:a}=e,{site:s,post:r}=n,l=`post-particle:${s.id}:${r.id}:desktop`,c=t?t.querySelector(".js-listicle-body"):document.querySelector(".js-listicle-body"),u=c&&c.querySelector(".body-description");if(!u)return;if(u.dataset.liveblogInit)return;u.dataset.liveblogInit="true",function(e,t){!function(e){j((t=>{e.subscribe(O.EB,(()=>{const e=t.querySelector(`[data-href="${location.href}"]`);e&&(t.querySelectorAll(".active").forEach((e=>e.classList.remove("active"))),e.classList.add("active"))}))}))}(t),M(e),setInterval((()=>{j((e=>{for(;e.firstChild;)e.removeChild(e.lastChild)})),M(e)}),o)}(u,a);const{paginated:g,pageSize:p}=function(e){const t=new URLSearchParams(window.location.search),n=t.get("liveblog_use_pagination"),i=t.get("liveblog_pagination_order");if("true"!==n&&"true"!==e.dataset.listiclePaginated)return{paginated:!1,pageSize:0};let a=[];try{const t=i||e.dataset.listiclePaginationOrder||"[]";a=JSON.parse(t.includes("[")?t:`[${t}]`)}catch(e){}const s=a.length>0?a[0]:0;return s?{paginated:!0,pageSize:s}:{paginated:!1,pageSize:0}}(c);if(!g){const t=B(u,e.settings);return void(0,i.A)(n,l,(e=>{const n=Object.entries(e).reduce(D,[]);n.length>0?Object.values(n).forEach(t):t(e)}))}const h=t||c.closest(".live-updates-wrapper");h&&h.classList.add("rebel-live-blog--paginated");const f=Array.from(u.querySelectorAll(".rebellt-item")),m=new U({items:f,pageSize:p}),b=function(e,t,n){const i=document.createElement("nav");return i.className="rebel-live-blog-pagination-nav",i.innerHTML='\n        <button class="rebel-live-blog-pagination-btn rebel-live-blog-pagination-btn--prev" data-action="prev">Previous</button>\n        <span class="rebel-live-blog-pagination-info"></span>\n        <button class="rebel-live-blog-pagination-btn rebel-live-blog-pagination-btn--next" data-action="next">Next</button>\n    ',i.addEventListener("click",(e=>{const i=e.target.dataset.action;if(!i)return;let a=t.currentPage;"prev"===i&&a>1&&a--,"next"===i&&a<t.getTotalPages()&&a++,a!==t.currentPage&&n(a)})),e.parentElement.appendChild(i),i}(u,m,(function(e){m.goToPage(e),R(u,m,h,b,!1);const t=new URL(window.location.href);1===e?t.searchParams.delete("liveblogpage"):t.searchParams.set("liveblogpage",e),window.history.pushState({liveblogpage:e},"",t.toString())})),v=new URLSearchParams(window.location.search),w=parseInt(v.get("liveblogpage"))||1;m.goToPage(w),R(u,m,h,b,!0),window.history.replaceState({liveblogpage:m.currentPage},"",window.location.href),window.addEventListener("popstate",(e=>{const t=e.state&&e.state.liveblogpage||1;m.goToPage(t),R(u,m,h,b,!1)})),(0,i.A)(n,l,(t=>{const n=Object.entries(t).reduce(D,[]),i=n.length>0?Object.values(n):[t],a=m.isOnFirstPage();if(i.forEach((t=>{const n=function(e,t,n,i){const a=J[t.itemType],s=a?a(t,n):null;return d(e,L(n.post.id)),d(e,s),i&&$(s),s}(u,t,e.settings,a);n&&(z(n,t),m.addItem(n))})),R(u,m,h,b,!0),m.isOnFirstPage()){const e=m.getPageItems(1)[0];e&&F(e)}else h&&h.classList.add("rebel-live-blog--has-new-data")}))}}}]);
2//# sourceMappingURL=613.62bbc9909c465b807452.bundle.mjs.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.