PageSourceSearch

https://cdn.buymeacoffee.com/static/prod/1052/build/assets/Modal-B-U8Tfwa.js

js buymeacoffee.com collected 2026-09-24 06:03:50 UTC 2,205 bytes, 1 lines download raw bytes

1import{k as e}from"./dist-DiEP1Qns.js";import{On as t,Zn as n,_ as r,b as i,ct as a,ft as o,mt as s,rt as c,vn as l,xt as u}from"./runtime-core.esm-bundler-BKdLzFmX.js";import{t as d}from"./appVariables-if8fQ3xE.js";import{t as f}from"./_plugin-vue_export-helper-BDNMzG2s.js";var p,m,h,g=0,_=!1,v={openedModalCount:0,initCallBack(e,t,n){p=e,m=t,h=n},changeNavAction(e){_=e},makeHtmlBodyFixed(){d.IsBrowser&&(window.innerWidth<=768&&(g=window.pageYOffset||document.documentElement.scrollTop,document.body.style.top=`-${g}px`),document.body.classList.add(`modal-open`))},removeHtmlBodyFixed(){d.IsBrowser&&(document.body.classList.remove(`modal-open`),window.innerWidth<=768&&(window.scrollTo(0,g),document.body.style.top=``))},initNavKeyEvent(){document.addEventListener(`keydown`,y,!1)},removeNavKeyEvent(){document.removeEventListener(`keydown`,y)}},y=e=>{if(!(e.target.tagName===`INPUT`||_))switch(e.keyCode){case 37:m();break;case 39:p();break;case 27:h();break}},b={class:`z-50 fixed inset-0 overflow-y-auto w-full h-full fade-in-modal`,role:`dialog`,"aria-modal":`true`},x=[`aria-label`],S={class:`fixed inset-0 z-10 w-screen overflow-y-auto`},C=f({__name:`Modal`,props:[`modalClass`,`outerClasses`,`modalBgClass`,`modalMobileClass`],setup(d){let f=l(!1);return a(()=>{setTimeout(()=>{f.value=!0},100)}),c(()=>{v.openedModalCount++,v.makeHtmlBodyFixed()}),o(()=>{v.openedModalCount--,v.openedModalCount===0&&v.removeHtmlBodyFixed()}),(a,o)=>(s(),i(`div`,b,[r(`div`,{class:n(d.modalBgClass?d.modalBgClass:`fixed inset-0 bg-black/50 fade-in-modal`),role:`button`,tabindex:`0`,"aria-label":a.$t(`lang.a11y.close_popup`),onClick:o[0]||=e(e=>a.$emit(`close`),[`self`])},null,10,x),u(a.$slots,`outerContent`,{},void 0,!0),r(`div`,S,[r(`div`,{class:n([`modal-content-wrapper w-full flex justify-center items-center overflow-y-auto min-h-full xs:items-end`,d.outerClasses]),onClick:o[1]||=e(e=>a.$emit(`close`),[`self`])},[r(`div`,{class:n([`tw-modal-content relative m-auto my-12`,[t(f)?`tw-active-modal`:``,d.modalClass?d.modalClass:``,d.modalMobileClass?d.modalMobileClass:`xs:my-0 xs:w-full`]])},[u(a.$slots,`default`,{},void 0,!0)],2)],2)])]))}},[[`__scopeId`,`data-v-0d5a59ce`]]);export{v as n,C as t};

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.