/*! * * PRC Parent Theme * * @author Seth Rubenstein * @version 0.1.0 * @link https://github.com/wpcomvip/pewresearch-org * @license GPL * * Copyright (c) 2023 Seth Rubenstein * * This software is released under the UNLICENSED License * https://opensource.org/licenses/UNLICENSED * * Compiled with the help of https://wpack.io * A zero setup Webpack Bundler Script for WordPress */ (window.wpackioprcParentthemeJsonp=window.wpackioprcParentthemeJsonp||[]).push([[7],{160:function(e,t,n){n(27),e.exports=n(161)},161:function(e,t,n){"use strict";n.r(t);var o=n(35),r=n(17),c=n.n(r),i=n(50),a=n.n(i);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t(document.querySelectorAll(".wp-block-social-link.wp-social-link-facebook, .share-tools .social-link.facebook").forEach((t=>{const{url:e}=a(t);let o=null;o=t.parentElement.classList.contains("share-tools")?t:t.querySelector("a"),o&&o.addEventListener("click",(t=>{t.preventDefault();const o=(0,r.addQueryArgs)("https://www.facebook.com/sharer/sharer.php",{u:e});i(o,"fbShareWindow",`height=450, width=550, top=${l/2-275}, left=${n/2-225}, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0`),t.stopPropagation()}))})),document.querySelectorAll(".wp-block-social-link.wp-social-link-linkedin, .share-tools .social-link.linkedin").forEach((t=>{const{url:e,title:o,description:c}=a(t);let s=null;s=t.parentElement.classList.contains("share-tools")?t:t.querySelector("a"),s&&s.addEventListener("click",(t=>{t.preventDefault();const a=(0,r.addQueryArgs)("https://www.linkedin.com/shareArticle",{summary:c,url:e,title:o,source:"PewResearch"});i(a,"linkedinShareWindow",`height=450, width=550, top=${l/2-275}, left=${n/2-225}, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0`),t.stopPropagation()}))})),void document.querySelectorAll(".wp-block-social-link.wp-social-link-twitter, .share-tools .social-link.twitter").forEach((t=>{const{url:e,description:o}=a(t);let c=null;c=t.parentElement.classList.contains("share-tools")?t:t.querySelector("a"),c&&c.addEventListener("click",(t=>{t.preventDefault();const a=(0,r.addQueryArgs)("https://twitter.com/intent/tweet",{text:o,url:e});i(a,"twtrShareWindow",`height=450, width=550, top=${l/2-275}, left=${n/2-225}, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0`),t.stopPropagation()}))})))))}();; !function(){"use strict";var e={n:function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(t,{a:t}),t},d:function(o,t){for(var l in t)e.o(t,l)&&!e.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:t[l]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},o=window.wp.domReady,t=e.n(o),l=window.wp.url;t()((()=>{const e=(0,l.getQueryArg)(window.location.href,"collapsibleId");console.log("collapsibleId: "+e);const o=document.querySelectorAll(".wp-block-prc-block-collapsible");1<=o.length&&o.forEach((o=>{e===o.id&&setTimeout((()=>{o.scrollIntoView({behavior:"smooth"}),setTimeout((()=>{o.classList.add("is-open")}),200)}),400),o.querySelector(".wp-block-prc-block-collapsible__title").addEventListener("click",(e=>{e.preventDefault(),o.classList.toggle("is-open")}))}))}))}(); //# sourceMappingURL=view.js.map;