PageSourceSearch

https://prsearchengine.com/wp-content/plugins/review-schema/assets/js/blocks/faq/view.js?x53407&ver=1790244337

js prsearchengine.com collected 2026-09-24 10:19:01 UTC 8,107 bytes, 1 lines download raw bytes

1(() => {var e={plus:`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M10 4v12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M4 10h12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>`,minus:`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M4 10h12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>`,"chevron-down":`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M5 7.5l5 5 5-5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,"chevron-up":`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M5 12.5l5-5 5 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,"arrow-down":`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M10 4v12m0 0l-4-4m4 4l4-4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,"arrow-up":`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M10 16V4m0 0l-4 4m4-4l4 4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,"caret-down":`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M6 8l4 4 4-4" fill="currentColor"/></svg>`,"caret-up":`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M6 12l4-4 4 4" fill="currentColor"/></svg>`,"circle-plus":`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><circle cx="10" cy="10" r="8" stroke="currentColor" stroke-width="1.5"/><path d="M10 6.5v7M6.5 10h7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>`,"circle-minus":`<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><circle cx="10" cy="10" r="8" stroke="currentColor" stroke-width="1.5"/><path d="M6.5 10h7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>`,"toggle-on":`<svg width="24" height="14" viewBox="0 0 24 14" fill="none"><rect x="1" y="1" width="22" height="12" rx="6" stroke="currentColor" stroke-width="1.5"/><circle cx="17" cy="7" r="4" fill="currentColor"/></svg>`,"toggle-off":`<svg width="24" height="14" viewBox="0 0 24 14" fill="none"><rect x="1" y="1" width="22" height="12" rx="6" stroke="currentColor" stroke-width="1.5"/><circle cx="7" cy="7" r="4" fill="currentColor"/></svg>`};function t(t,n){if(!t||t===`none`)return``;let r=e[t]??``,i=e[n]??``;if(!r)return``;let a=`<span class="rtrs-faq-icon">`;return a+=`<span class="rtrs-faq-icon-expand">`+r+`</span>`,i&&(a+=`<span class="rtrs-faq-icon-collapse">`+i+`</span>`),a+=`</span>`,a}function n(e){let t=e.dataset.layout||`accordion`,n=e.dataset.expandIcon||`plus`,i=e.dataset.collapseIcon||`minus`,a=e.dataset.iconPosition||`right`;e.querySelectorAll(`.rtrs-faq-item`).forEach(e=>{if(!e.classList.contains(`rtrs-faq-enhanced`)){if(t===`accordion`){let t=e.querySelector(`.rtrs-faq-question`);t&&r(e,t,n,i,a)}e.classList.add(`rtrs-faq-enhanced`)}})}function r(e,n,r,i,a){let o=e.classList.contains(`active`);n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`),n.setAttribute(`aria-expanded`,o?`true`:`false`);let s=t(r,i);a===`left`?n.insertAdjacentHTML(`afterbegin`,s):n.insertAdjacentHTML(`beforeend`,s);let c=e.querySelector(`.rtrs-faq-answer`);c&&o&&(c.style.maxHeight=`none`)}var i=300,a=`ease`;function o(e){e.style.overflow=`hidden`,e.style.display=``,e.style.transition=`max-height ${i}ms ${a}`,e.style.maxHeight=`${e.scrollHeight}px`;let t=()=>{e.removeEventListener(`transitionend`,t),e.style.maxHeight=`none`,e.style.overflow=``};e.addEventListener(`transitionend`,t)}function s(e){e.style.overflow=`hidden`,e.style.transition=`none`,e.style.maxHeight=`${e.scrollHeight}px`,e.offsetHeight,e.style.transition=`max-height ${i}ms ${a}`,e.style.maxHeight=`0`;let t=()=>{e.removeEventListener(`transitionend`,t),e.style.display=`none`,e.style.overflow=``};e.addEventListener(`transitionend`,t)}function c(e){let t=parseInt(e.dataset.maxExpanded||`0`,10),n=e.dataset.multipleOpen===`true`,r=parseInt(e.dataset.autoClose||`0`,10),i={activeItems:[],autoCloseTimers:new Map},a=e.querySelectorAll(`.rtrs-faq-item`);
1a.forEach(e=>{let t=e.querySelector(`.rtrs-faq-answer`);t&&(e.classList.contains(`active`)?(i.activeItems.push(e),t.style.maxHeight=`none`,t.style.overflow=``,t.style.display=``):(t.style.display=`none`,t.style.maxHeight=`0`,t.style.overflow=`hidden`))}),a.forEach(a=>{let o=a.querySelector(`.rtrs-faq-question`);o&&o.addEventListener(`click`,()=>{l(a,e,i,t,n,r)})})}function l(e,t,n,r,i,a){let o=e.querySelector(`.rtrs-faq-answer`),s=e.querySelector(`.rtrs-faq-question`);if(!(!o||!s))if(e.classList.contains(`active`))d(e,o,s,n);else{if(i||t.querySelectorAll(`.rtrs-faq-item.active`).forEach(t=>{if(t!==e){let e=t.querySelector(`.rtrs-faq-answer`),r=t.querySelector(`.rtrs-faq-question`);e&&r&&d(t,e,r,n)}}),r>0&&n.activeItems.length>=r){let e=n.activeItems[0];if(e){let t=e.querySelector(`.rtrs-faq-answer`),r=e.querySelector(`.rtrs-faq-question`);t&&r&&d(e,t,r,n)}}if(u(e,o,s,n),a>0){let t=setTimeout(()=>{e.classList.contains(`active`)&&d(e,o,s,n),n.autoCloseTimers.delete(e)},a*1e3);n.autoCloseTimers.set(e,t)}}}function u(e,t,n,r){e.classList.add(`active`),n.setAttribute(`aria-expanded`,`true`),o(t),r.activeItems.push(e)}function d(e,t,n,r){e.classList.remove(`active`),n.setAttribute(`aria-expanded`,`false`),s(t);let i=r.activeItems.indexOf(e);i!==-1&&r.activeItems.splice(i,1);let a=r.autoCloseTimers.get(e);a!==void 0&&(clearTimeout(a),r.autoCloseTimers.delete(e))}function f(e){let t=e.querySelector(`.rtrs-faq-search-input`);if(!t)return;let n=e.querySelector(`.rtrs-faq-search-clear`),r=null;t.addEventListener(`input`,()=>{r!==null&&clearTimeout(r),p(n,t.value),r=setTimeout(()=>{m(e,t.value),r=null},150)}),n&&n.addEventListener(`click`,()=>{t.value=``,p(n,``),m(e,``),t.focus()})}function p(e,t){e&&e.classList.toggle(`is-visible`,t.trim().length>0)}function m(e,t){let n=t.trim().toLowerCase();e.querySelectorAll(`.rtrs-faq-item`).forEach(e=>{if(n===``){e.style.display=``;return}let t=(e.textContent||``).toLowerCase();e.style.display=t.includes(n)?``:`none`})}function h(e){let t=e.querySelectorAll(`.rtrs-faq-question`);t.length!==0&&t.forEach((e,n)=>{e.addEventListener(`keydown`,r=>{let i=Array.from(t),a=-1;switch(r.key){case`ArrowDown`:r.preventDefault(),a=(n+1)%i.length;break;case`ArrowUp`:r.preventDefault(),a=(n-1+i.length)%i.length;break;case`Home`:r.preventDefault(),a=0;break;case`End`:r.preventDefault(),a=i.length-1;break;case`Enter`:case` `:r.key===` `&&r.preventDefault(),e.click();return;default:return}a>=0&&i[a].focus()})})}function g(e){let t=e.querySelector(`.rtrs-faq-toggle-all`);if(!t)return;let n=t.dataset.expandText||`Expand All`,r=t.dataset.collapseText||`Collapse All`;t.addEventListener(`click`,()=>{let i=e.querySelectorAll(`.rtrs-faq-item`),a=e.querySelectorAll(`.rtrs-faq-item.active`).length===i.length;i.forEach(e=>{let t=e.querySelector(`.rtrs-faq-answer`),n=e.querySelector(`.rtrs-faq-question`);!t||!n||(a?e.classList.contains(`active`)&&(e.classList.remove(`active`),n.setAttribute(`aria-expanded`,`false`),s(t)):e.classList.contains(`active`)||(e.classList.add(`active`),n.setAttribute(`aria-expanded`,`true`),o(t)))}),t.textContent=a?n:r})}function _(e){let t=e.querySelectorAll(`.rtrs-faq-answer[data-lazy]`);if(t.length===0)return;let n=new IntersectionObserver(e=>{e.forEach(e=>{if(!e.isIntersecting)return;let t=e.target;v(t),n.unobserve(t)})},{rootMargin:`200px`});t.forEach(e=>{n.observe(e)})}function v(e){let t=e.querySelector(`template`);if(!t)return;let n=e.querySelector(`.rtrs-faq-answer-inner`);n&&(n.innerHTML=t.innerHTML),e.removeAttribute(`data-lazy`)}function y(){document.querySelectorAll(`.rtrs-faq-block`).forEach(e=>{if(e.dataset.rtrsInit)return;e.dataset.rtrsInit=`1`,n(e);let t=e.dataset.layout||`accordion`;t===`accordion`&&c(e),e.dataset.search===`1`&&f(e),t===`accordion`&&e.dataset.openCloseAll===`1`&&g(e),t===`accordion`&&h(e),_(e)})}document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,y):y();})();

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.