PageSourceSearch

https://www.greenekinginns.co.uk/dist/gk-jss-app/js/ImageGalleryPopup.e3f5ad72.js

js greenekinginns.co.uk collected 2026-09-24 20:09:22 UTC 2,858 bytes, 2 lines download raw bytes

1"use strict";(globalThis["webpackChunkgk_jss_app"]=globalThis["webpackChunkgk_jss_app"]||[]).push([[842],{8768:(e,l,a)=>{a.d(l,{b:()=>n});var o=a(50953),i=a(20641),s=a(47),p=a(25114);const n=({popupID:e,modalRef:l})=>{const a=(0,p.C)(),n=(0,o.KR)(!1),r=(0,i.EW)((()=>"DIALOG"===l.value?.nodeName)),{activate:d,deactivate:t}=(0,s.t)(l,{allowOutsideClick:!0,escapeDeactivates:!1}),c=()=>{t(),(0,i.dY)((()=>{r.value&&l.value.close(),a.unblockScrolling(),n.value=!1}))},u=()=>{n.value=!0,a.blockScrolling(),(0,i.dY)((()=>{r.value&&l.value.showModal(),d()}))},g=l=>{const a=l.target.closest(`a[href="#${e}"]`);a&&(l.preventDefault(),u())};return(0,i.wB)((()=>n.value),(()=>{r.value||(0,i.dY)((()=>{a.setBackdrop("PopupModal",{enable:n.value,global:!0})}))})),(0,i.sV)((()=>{e&&document.addEventListener("click",g)})),(0,i.xo)((()=>{e&&document.removeEventListener("click",g),r.value||a.setBackdrop("PopupModal",{enable:!1})})),{isModalOpen:n,closeModal:c,openModal:u}}},47474:(e,l,a)=>{a.r(l),a.d(l,{default:()=>y});var o=a(20641),i=a(50953),s=a(90033),p=a(53751),n=a(94626),r=a(62004),d=a(50258),t=a(17570),c=a(8768),u=a(30843);const g={class:"container image-gallery-popup__container"},m=["aria-label"],v={class:"image-gallery-popup__header"},k=["aria-label"],_={class:"image-gallery-popup__content"},b=(0,o.pM)({__name:"ImageGalleryPopup",props:{fields:{default:()=>({})},rendering:{},params:{default:()=>({})}},emits:["click"],setup(e){const{t:l}=(0,d.s9)(),a=(0,u.B)(),b=e,f=(0,o.rk)("modal"),y=(0,t.g)(),h=(0,o.EW)((()=>["FlamingGrill"===a.brandName?"font-l":"font-m"])),R=e=>{y({event_name:e,component:"gallery_base"})},C=()=>{R("close_gallery")},L=()=>{R("open_gallery")},{closeModal:M,isModalOpen:E}=(0,c.b)({popupID:b.fields.popupID?.value,modalRef:f});return(0,o.wB)(E,(e=>{e?L():C()})),(a,d)=>(0,i.R1)(E)||a.$isPageEditing?((0,o.uX)(),(0,o.CE)("div",{key:0,ref_key:"modal",ref:f,class:(0,s.C4)(["image-gallery-popup",a.$isPageEditing&&"image-gallery-popup--editor"]),onKeydown:d[1]||(d[1]=(0,p.jR)(((...e)=>(0,i.R1)(M)&&(0,i.R1)(M)(...e)),["esc"]))},[(0,o.Lk)("div",g,[(0,o.Lk)("div",{class:"image-gallery-popup__modal","aria-label":(e.fields.title?.value||"Image gallery")+" - dialog",role:"dialog","aria-modal":"true"},[(0,o.Lk)("div",v,[(0,o.bF)((0,i.R1)(n.E),{field:e.fields.title,tag:"h2",class:(0,s.C4)(["image-gallery-popup__heading",h.value])},null,8,["field","class"]),(0,o.Lk)("button",{class:"image-gallery-popup__close","aria-label":(0,i.R1)(l)("close"),onClick:d[0]||(d[0]=(...e)=>(0,i.R1)(M)&&(0,i.R1)(M)(...e))},[...d[2]||(d[2]=[(0,o.Lk)("i",{class:"icon icon-Close","aria-hidden":"true"},null,-1)])],8,k)]),(0,o.Lk)("div",_,[(0,o.bF)((0,i.R1)(r.O),{name:"image-gallery-popup-placeholder",rendering:e.rendering},null,8,["rendering"])])],8,m)])],34)):(0,o.Q3)("",!0)}}),f=b,y=f}}]);
2//# sourceMappingURL=ImageGalleryPopup.e3f5ad72.js.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.