PageSourceSearch

https://www.nacionalinn.com.br/assets/GalleryModal-ClnqfKcx.js

js nacionalinn.com.br collected 2026-10-02 04:54:23 UTC 3,491 bytes, 1 lines download raw bytes

1import{$t as e,At as t,B as n,Bt as r,Ct as i,Dt as a,Et as o,Lt as s,Nt as c,On as l,Ot as u,Pt as d,Sn as f,Tn as p,Zt as m,an as h,in as g,kt as _,l as v,lt as y,mn as b,on as x,xn as S}from"./index-d4qpHbKS.js";import{t as C}from"./youtube-l0Wxwa-P.js";import{s as w}from"./use-size-0in9DqKd.js";import{t as T}from"./QBtn-qONKUS9o.js";import{t as E}from"./QCard-D2auYVgl.js";import{t as D}from"./QDialog-D49lLWak.js";import{t as O}from"./ClosePopup-CY2FzDdK.js";var k=y({name:`QCardSection`,props:{tag:{type:String,default:`div`},horizontal:Boolean},setup(e,{slots:t}){let n=o(()=>`q-card__section q-card__section--${e.horizontal===!0?`horiz row no-wrap`:`vert`}`);return()=>s(e.tag,{class:n.value},w(t.default))}}),A={class:`image-gallery-dialog__content-wrapper`},j=[`src`,`onLoad`],M=[`src`,`alt`],N=d({__name:`GalleryModal`,props:{slides:{type:Array,default(){return[]}},firstImage:{type:Number,default:0},isMobile:{type:Boolean,default:!1}},emits:[`closeModal`],setup(n,{emit:s}){let l=n,d=o(()=>l.slides.map(e=>({id:e.id,image:e.image,altText:e.altText||e.alt||e.title,caption:e.caption||e.title,videoSrc:e.videoSrc||e.linkVideo,differentMobileBackgroundImage:e.differentMobileBackgroundImage,imageMobile:e.imageMobile,mobileAltText:e.mobileAltText||e.altTextMobile,type:e.type||`image`}))),y=s,w=o(()=>({navigation:{nextEl:`#gallery-modal-btn-next`,prevEl:`#gallery-modal-btn-prev`},slidesPerView:1,initialSlide:l.firstImage})),N=b();function P(){V(),y(`closeModal`)}let F=b([]),I=b(l.firstImage);function L(e){F.value[e]=!0,N.value&&I.value===e&&R()}function R(){let e=(N.value?.swiper.slides[I.value])?.querySelector(`iframe`);F.value[I.value]&&e&&z(e,`playVideo`)}function z(e,t){e?.contentWindow&&e.contentWindow.postMessage(JSON.stringify({event:`command`,func:t,args:[]}),`*`)}let B=b([]);function V(){B.value.forEach(e=>z(e,`pauseVideo`))}function H(){I.value=N.value.swiper.realIndex,V(),R()}return g(()=>N.value,e=>{e&&(I.value=e.swiper.realIndex,e.swiper.on(`slideChange`,H))}),(o,s)=>(m(),u(D,{"backdrop-filter":`brightness(0%)`,class:`image-gallery-dialog site-dialog`,maximized:``},{default:h(()=>[c(E,{class:`image-gallery-dialog__card`},{default:h(()=>[x(c(T,{icon:S(v),padding:`6px`,flat:``,class:`image-gallery-dialog__close-button`,onClick:P},null,8,[`icon`]),[[O]]),c(k,{class:`image-gallery-dialog__content`},{default:h(()=>[a(`swiper-container`,r({ref_key:`swiperModalRef`,ref:N,class:`image-gallery-dialog__swiper`},w.value),[(m(!0),t(i,null,e(d.value,(e,r)=>(m(),t(`swiper-slide`,{key:r,class:`image-gallery-dialog__slide`},[a(`div`,A,[e.type===`video`?(m(),t(`iframe`,{key:0,ref_for:!0,ref_key:`iframeVideoRef`,ref:B,src:S(C)({url:e.videoSrc||``,controls:!0,autoplay:!1}),class:`image-gallery-dialog__video`,allow:`autoplay`,onLoad:e=>L(r)},null,40,j)):(m(),t(`img`,{key:1,class:`image-gallery-dialog__image`,src:n.isMobile&&e.differentMobileBackgroundImage?e.imageMobile:e.image,alt:n.isMobile&&e.differentMobileBackgroundImage&&e.mobileAltText?e.mobileAltText:e.altText},null,8,M)),e.caption?(m(),t(`div`,{key:2,class:f([`image-gallery-dialog__caption-bar`,{"image-gallery-dialog__caption-bar--video":e.type===`video`}])},p(e.caption),3)):_(``,!0)])]))),128))],16),s[0]||=a(`div`,{class:`ls-navigation`},[a(`div`,{id:`gallery-modal-btn-prev`,class:`swiper-button-prev`}),a(`div`,{id:`gallery-modal-btn-next`,class:`swiper-button-next`})],-1)]),_:1})]),_:1})]),_:1}))}}),P=l({default:()=>F}),F=n(N,[[`__scopeId`,`data-v-bc2684ec`]]);export{P as n,F 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.