PageSourceSearch

https://americanlegionpost141.org/wp-content/plugins/bricksextras/components/assets/js/popover.min.js

js americanlegionpost141.org collected 2026-10-04 20:40:29 UTC 5,450 bytes, 1 lines download raw bytes

1function xPopover(){let e=function(e,t=!1){e.querySelectorAll(".brxe-xpopover").forEach(e=>{if(window.xTippy.Instances[e.dataset.xId]&&t&&e.closest("[data-query-element-id]")||t&&e.querySelector(".x-popover_button[aria-expanded]"))return;let o=e.getAttribute("data-x-popover"),n=o?JSON.parse(o):{},r=!1,i="";null==n.isLooping||(r=!0,loopEl=e.closest(".brxe-"+n.isLooping),i="brxe-"+n.isLooping,loopEl||null==n.isLoopingComponent||(loopEl=e.closest(".brxe-"+n.isLoopingComponent),i="brxe-"+n.isLoopingComponent));let p=n.appendBody,c,l=r?loopEl.querySelector(n.elementSelector):n.elementSelector,a,d;if(document.querySelector("body > .brx-body.iframe"))d=e.querySelector(".x-popover_button"),a={render(t){let o=e.querySelector("[data-tippy-root]");return{popper:o}},allowHTML:!0,interactive:!0,arrow:!0,trigger:"click",appendTo:e.querySelector(".x-popover_content"),placement:n.placement,maxWidth:"none",animation:"extras",theme:"extras",touch:!0,moveTransition:"transform "+n.moveTransition+"ms ease-out",offset:[n.offsetSkidding,n.offsetDistance]};else{let s=n.multipleTriggers?e.querySelector(".x-popover_content-inner").innerHTML:e.querySelector(".x-popover_content-inner"),f=n.dynamicContent?"":s,u;if(n.dynamicContent){let y=r?loopEl:document;u=Array.from(y.querySelectorAll(n.elementSelector)).filter(e=>{let t=e.getAttribute("data-x-tooltip");return null!==t&&""!==t})}else u=l;d=n.elementSelector?u:e.querySelector(".x-popover_button"),a={content:n.dynamicContent?e=>{let t=e.getAttribute("data-x-tooltip");if(t)try{let o=JSON.parse(t);return o.content||""}catch(n){}return""}:f,allowHTML:!0,interactive:!0,arrow:!0,trigger:n.interaction,appendTo:p?document.body:e.querySelector(".x-popover_content"),placement:n.placement,maxWidth:"none",animation:"extras",theme:"extras",touch:!0,interactiveDebounce:50,followCursor:"false"!==n.followCursor&&n.followCursor,delay:n.delay,moveTransition:"transform "+n.moveTransition+"ms ease-out",offset:[n.offsetSkidding,n.offsetDistance],onCreate(t){if(p){let o=t.popper;e.classList.forEach(e=>{o.classList.add(e)}),o.classList.add("x-popover_footer"),e.id&&(o.id=e.id);let n=t.popper.querySelector(".tippy-box");if(n){let r=n.querySelector(".tippy-content");if(r){let i=document.createElement("div");i.classList.add("x-popover_content"),r.parentNode.insertBefore(i,r),i.appendChild(r)}}}},onShow(t){if(tippy.hideAll({exclude:t}),setTimeout(()=>{"function"==typeof bricksLazyLoad&&bricksLazyLoad()},50),e.addEventListener("keydown",function(e){("Escape"===e.key||"Esc"===e.key)&&t.hide()}),p&&r){let o=t.popper;(c=document.createElement("div")).className=i,c.classList.add("x-popover_footer_loop"),document.body.appendChild(c),c.appendChild(o)}},onShown(){e.dispatchEvent(new Event("x_popover:show")),document.addEventListener("keydown",function(e){("Escape"===e.key||"Esc"===e.key)&&tippy.hideAll()}),e.querySelector(".x-popover_button")&&e.querySelector(".x-popover_button").addEventListener("keydown",function(t){!("Tab"===t.code&&!t.shiftKey&&e.querySelector(".tippy-content .x-popover_content-inner"))||(e.querySelector(".tippy-content").setAttribute("tabindex","0"),e.querySelector(".tippy-content a[href]:first-child")||e.querySelector(".tippy-content h1:first-child > a[href]")||e.querySelector(".tippy-content h2:first-child > a[href]")||e.querySelector(".tippy-content h3:first-child > a[href]")||e.querySelector(".tippy-content h4:first-child > a[href]")||e.querySelector(".tippy-content h5:first-child > a[href]")||e.querySelector(".tippy-content h6:first-child > a[href]")||e.querySelector(".tippy-content button:first-child")||e.querySelector(".tippy-content input:first-child")||e.querySelector(".tippy-content textarea:first-child")||e.querySelector(".tippy-content select:first-child")||e.querySelector(".tippy-content details:first-child")||e.querySelector('.tippy-content [tabindex]:not([tabindex="-1"]:first-child')||(t.preventDefault(),e.querySelector(".tippy-content").focus()))})},onHide(t){if(e.dispatchEvent(new Event("x_popover:hide")),p&&r){let o=t.popper,n=o.parentNode;n&&n.remove()}}}}let x=tippy(d,a);window.xTippy.Instances[e.dataset.xId]=x,n.multipleTriggers&&!document.querySelector("body > .brx-body.iframe")&&tippy.createSingleton(x,a),e.addEventListener("x_popover:show",()=>{let t=e.querySelector(".x-popover_content");t&&("function"==typeof doExtrasAccordion&&doExtrasAccordion(t),"function"==typeof doExtrasSlider&&doExtrasSlider(t),"function"==typeof doExtrasReadmore&&setTimeout(()=>{doExtrasReadmore(t,!0)},100),"function"==typeof doExtrasLightbox&&doExtrasLightbox(t,!0),"function"==typeof doExtrasSocialShare&&doExtrasSocialShare(t),"function"==typeof doExtrasOffCanvas&&doExtrasOffCanvas(t),"function"==typeof doExtrasModal&&doExtrasModal(t),"function"==typeof doExtrasCopyToClipBoard&&doExtrasCopyToClipBoard(t),"function"==typeof doExtrasCopyToClipBoardPopover&&doExtrasCopyToClipBoardPopover(t),"function"==typeof doExtrasMediaPlayer&&doExtrasMediaPlayer(t))})})};e(document),xExtrasRegisterAJAXHandler("doExtrasPopover",!0),window.doExtrasPopover=e,"undefined"!=typeof bricksextras&&(bricksextras.popover={close(e){let t=e?.target||!1;if(t&&t.getAttribute("data-x-id")){let o=xTippy.Instances[t.getAttribute("data-x-id")];o&&o.hide()}},open(e){let t=e?.target||!1;if(t&&t.getAttribute("data-x-id")){let o=xTippy.Instances[t.getAttribute("data-x-id")];o&&o.show()}}})}document.addEventListener("DOMContentLoaded",function(e){bricksIsFrontend&&xPopover()});

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.