PageSourceSearch

https://1rnb.ru/assets/Gallery.d56db035.js

js 1rnb.ru collected 2026-10-07 02:58:59 UTC 25,182 bytes, 4 lines download raw bytes

vendor: 10,569 bytes, lines 1-4
1import{_ as w,y as L,o as m,a as u,F as b,k as x,b as d,t as v,i as P,r as E,q as I,f as D,h as T}from"./index.2bc0a61b.js";/*!
2  * PhotoSwipe Lightbox 5.4.4 - https://photoswipe.com
3  * (c) 2024 Dmytro Semenov
4  */function p(n,t,e){const i=document.createElement(t);return n&&(i.className=n),e&&e.appendChild(i),i}function O(n,t,e){let i=`translate3d(${n}px,${t||0}px,0)`;return e!==void 0&&(i+=` scale3d(${e},${e},1)`),i}function g(n,t,e){n.style.width=typeof t=="number"?`${t}px`:t,n.style.height=typeof e=="number"?`${e}px`:e}const l={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function M(n){return"button"in n&&n.button===1||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey}function c(n,t,e=document){let i=[];if(n instanceof Element)i=[n];else if(n instanceof NodeList||Array.isArray(n))i=Array.from(n);else{const s=typeof n=="string"?n:t;s&&(i=Array.from(e.querySelectorAll(s)))}return i}function F(n){return typeof n=="function"&&n.prototype&&n.prototype.goTo}function C(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}class R{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class ${constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var s,a,o;this._filters[t]||(this._filters[t]=[]),(s=this._filters[t])===null||s===void 0||s.push({fn:e,priority:i}),(a=this._filters[t])===null||a===void 0||a.sort((r,h)=>r.priority-h.priority),(o=this.pswp)===null||o===void 0||o.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter(i=>i.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var i;return(i=this._filters[t])===null||i===void 0||i.forEach(s=>{e[0]=s.fn.apply(this,e)}),e[0]}on(t,e){var i,s;this._listeners[t]||(this._listeners[t]=[]),(i=this._listeners[t])===null||i===void 0||i.push(e),(s=this.pswp)===null||s===void 0||s.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(s=>e!==s)),(i=this.pswp)===null||i===void 0||i.off(t,e)}dispatch(t,e){var i;if(this.pswp)return this.pswp.dispatch(t,e);const s=new R(t,e);return(i=this._listeners[t])===null||i===void 0||i.forEach(a=>{a.call(this,s)}),s}}class k{constructor(t,e){if(this.element=p("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const i=this.element;i.decoding="async",i.alt="",i.src=t,i.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){!this.element||(this.element.tagName==="IMG"?(g(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=O(0,0,t/250)):g(this.element,t,e))}destroy(){var t;(t=this.element)!==null&&t!==void 0&&t.parentNode&&this.element.remove(),this.element=null}}class N{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=l.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const i=this.placeholder.element;i&&!i.parentElement&&this.slide.container.prepend(i)}else{const i=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new k(i,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=p("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=p("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=(e=this.data.src)!==null&&e!==void 0?e:"",s.alt=(i=this.data.alt)!==null&&i!==void 0?i:"",this.state=l.LOADING,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=l.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===l.LOADED||this.state===l.ERROR)&&this.removePlaceholder())}onError(){this.state=l.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===l.LOADING,this)}isError(){return this.state===l.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(t,e){if(!!this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(g(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==l.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let i=p("pswp__error-msg","div");i.innerText=(t=(e=this.instance.options)===null||e===void 0?void 0:e.errorMsg)!==null&&t!==void 0?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=p("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===l.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||C())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!C()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){!this.isAttached||this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===l.LOADED||this.state===l.ERROR)&&this.removePlaceholder())}}function W(n,t){if(n.getViewportSizeFn){const e=n.getViewportSizeFn(n,t);if(e)return e}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function f(n,t,e,i,s){let a=0;if(t.paddingFn)a=t.paddingFn(e,i,s)[n];else if(t.padding)a=t.padding[n];else{const o="padding"+n[0].toUpperCase()+n.slice(1);t[o]&&(a=t[o])}return Number(a)||0}function H(n,t,e,i){return{x:t.x-f("left",n,t,e,i)-f("right",n,t,e,i),y:t.y-f("top",n,t,e,i)-f("bottom",n,t,e,i)}}const _=4e3;class Z{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){const s={x:t,y:e};this.elementSize=s,this.panAreaSize=i;const a=i.x/s.x,o=i.y/s.y;this.fit=Math.min(1,a<o?a:o),this.fill=Math.min(1,a>o?a:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(!!i)return typeof i=="function"?i(this):i==="fill"?this.fill:i==="fit"?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,this.fit*3),this.elementSize&&t*this.elementSize.x>_&&(t=_/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}function S(n,t,e){const i=t.createContentFromData(n,e);let s;const{options:a}=t;
4if(a){s=new Z(a,n,-1);let o;t.pswp?o=t.pswp.viewportSize:o=W(a,t);const r=H(a,o,n,e);s.update(i.width,i.height,r)}return i.lazyLoad(),s&&i.setDisplayedSize(Math.ceil(i.width*s.initial),Math.ceil(i.height*s.initial)),i}function j(n,t){const e=t.getItemData(n);if(!t.dispatch("lazyLoadSlide",{index:n,itemData:e}).defaultPrevented)return S(e,t,n)}class G extends ${getNumItems(){var t;let e=0;const i=(t=this.options)===null||t===void 0?void 0:t.dataSource;i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(e=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:e});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,e){return new N(t,this,e)}getItemData(t){var e;const i=(e=this.options)===null||e===void 0?void 0:e.dataSource;let s={};Array.isArray(i)?s=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[t]);let a=s;a instanceof Element&&(a=this._domElementToItemData(a));const o=this.dispatch("itemData",{itemData:a||{},index:t});return this.applyFilters("itemData",o.itemData,t)}_getGalleryDOMElements(t){var e,i;return(e=this.options)!==null&&e!==void 0&&e.children||(i=this.options)!==null&&i!==void 0&&i.childSelector?c(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i=t.tagName==="A"?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const a=t.querySelector("img");if(a){var s;e.msrc=a.currentSrc||a.src,e.alt=(s=a.getAttribute("alt"))!==null&&s!==void 0?s:""}(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return S(t,this,e)}}class B extends G{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){c(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(M(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};!e.x&&!e.y&&(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const s={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,s,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,s=c(this.options.children,this.options.childSelector,t.currentTarget).findIndex(a=>a===e||a.contains(e));return s!==-1?s:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const s=c(this.options.gallery);s[0]&&(e={gallery:s[0]})}return this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:i}=this;e&&(i.dataSource=e);const s=[],a=typeof i.pswpModule;if(F(i.pswpModule))s.push(Promise.resolve(i.pswpModule));else{if(a==="string")throw new Error("pswpModule as string is no longer supported");if(a==="function")s.push(i.pswpModule());else throw new Error("pswpModule is not valid")}typeof i.openPromise=="function"&&s.push(i.openPromise()),i.preloadFirstSlide!==!1&&t>=0&&(this._preloadedContent=j(t,this));const o=++this._uid;Promise.all(s).then(r=>{if(this.shouldOpen){const h=r[0];this._openPhotoswipe(h,o)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i=typeof t=="object"?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach(s=>{var a;(a=this._listeners[s])===null||a===void 0||a.forEach(o=>{i.on(s,o)})}),Object.keys(this._filters).forEach(s=>{var a;(a=this._filters[s])===null||a===void 0||a.forEach(o=>{i.addFilter(s,o.fn,o.priority)})}),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),i.init()}destroy(){var t;(t=this.pswp)===null||t===void 0||t.destroy(),this.shouldOpen=!1,this._listeners={}
4,c(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)})}}const U={captionContent:".pswp-caption-content",type:"auto",horizontalEdgeThreshold:20,mobileCaptionOverlapRatio:.3,mobileLayoutBreakpoint:600,verticallyCenterImage:!1};class V{constructor(t,e){this.options={...U,...e},this.lightbox=t,this.lightbox.on("init",()=>{this.pswp=this.lightbox.pswp,this.initCaption()})}initCaption(){const{pswp:t}=this;t.on("change",()=>{this.showCaption(this.pswp.currSlide)}),t.on("calcSlideSize",e=>this.onCalcSlideSize(e)),t.on("slideDestroy",e=>{e.slide.dynamicCaption&&(e.slide.dynamicCaption.element&&e.slide.dynamicCaption.element.remove(),delete e.slide.dynamicCaption)}),t.on("zoomPanUpdate",({slide:e})=>{if(t.opener.isOpen&&e.dynamicCaption){if(e.currZoomLevel>e.zoomLevels.initial?this.hideCaption(e):this.showCaption(e),e.dynamicCaption.element){let i=0;if(e.currZoomLevel<=e.zoomLevels.initial){const s=e.pan.y-e.bounds.center.y;Math.abs(s)>1&&(i=s)}this.setCaptionYOffset(e.dynamicCaption.element,i)}this.adjustPanArea(e,e.currZoomLevel)}}),t.on("beforeZoomTo",e=>{this.adjustPanArea(t.currSlide,e.destZoomLevel)}),t.on("tapAction",e=>{e.originalEvent.target.closest(".pswp__dynamic-caption")&&e.preventDefault()})}adjustPanArea(t,e){t.dynamicCaption&&t.dynamicCaption.adjustedPanAreaSize&&(e>t.zoomLevels.initial?(t.panAreaSize.x=t.dynamicCaption.originalPanAreaSize.x,t.panAreaSize.y=t.dynamicCaption.originalPanAreaSize.y):(t.panAreaSize.x=t.dynamicCaption.adjustedPanAreaSize.x,t.panAreaSize.y=t.dynamicCaption.adjustedPanAreaSize.y))}useMobileLayout(){const{mobileLayoutBreakpoint:t}=this.options;return typeof t=="function"?t.call(this):typeof t=="number"&&window.innerWidth<t}hideCaption(t){if(t.dynamicCaption&&!t.dynamicCaption.hidden){const e=t.dynamicCaption.element;if(!e)return;t.dynamicCaption.hidden=!0,e.classList.add("pswp__dynamic-caption--faded"),t.captionFadeTimeout&&clearTimeout(t.captionFadeTimeout),t.captionFadeTimeout=setTimeout(()=>{e.style.visibility="hidden",delete t.captionFadeTimeout},400)}}setCaptionYOffset(t,e){t.style.transform=`translateY(${e}px)`}showCaption(t){if(t.dynamicCaption&&t.dynamicCaption.hidden){const e=t.dynamicCaption.element;if(!e)return;t.dynamicCaption.hidden=!1,e.style.visibility="visible",clearTimeout(t.captionFadeTimeout),t.captionFadeTimeout=setTimeout(()=>{e.classList.remove("pswp__dynamic-caption--faded"),delete t.captionFadeTimeout},50)}}setCaptionPosition(t,e,i){const s=e<=this.options.horizontalEdgeThreshold;t.classList[s?"add":"remove"]("pswp__dynamic-caption--on-hor-edge"),t.style.left=e+"px",t.style.top=i+"px"}setCaptionWidth(t,e){e?t.style.width=e+"px":t.style.removeProperty("width")}setCaptionType(t,e){const i=t.dataset.pswpCaptionType;e!==i&&(t.classList.add("pswp__dynamic-caption--"+e),t.classList.remove("pswp__dynamic-caption--"+i),t.dataset.pswpCaptionType=e)}updateCaptionPosition(t){if(!t.dynamicCaption||!t.dynamicCaption.type||!t.dynamicCaption.element)return;if(t.dynamicCaption.type==="mobile"){this.setCaptionType(t.dynamicCaption.element,t.dynamicCaption.type),t.dynamicCaption.element.style.removeProperty("left"),t.dynamicCaption.element.style.removeProperty("top"),this.setCaptionWidth(t.dynamicCaption.element,!1);return}const e=t.zoomLevels.initial,i=Math.ceil(t.width*e),s=Math.ceil(t.height*e);this.setCaptionType(t.dynamicCaption.element,t.dynamicCaption.type),t.dynamicCaption.type==="aside"?(this.setCaptionPosition(t.dynamicCaption.element,t.bounds.center.x+i,t.bounds.center.y),this.setCaptionWidth(t.dynamicCaption.element,!1)):t.dynamicCaption.type==="below"&&(this.setCaptionPosition(t.dynamicCaption.element,t.bounds.center.x,t.bounds.center.y+s),this.setCaptionWidth(t.dynamicCaption.element,i))}onCalcSlideSize(t){const{slide:e}=t;let i,s;if(!e.dynamicCaption){e.dynamicCaption={element:void 0,type:!1,hidden:!1};const r=this.getCaptionHTML(e);if(!r)return;e.dynamicCaption.element=document.createElement("div"),e.dynamicCaption.element.className="pswp__dynamic-caption pswp__hide-on-close",e.dynamicCaption.element.innerHTML=r,this.pswp.dispatch("dynamicCaptionUpdateHTML",{c
4aptionElement:e.dynamicCaption.element,slide:e}),e.holderElement.appendChild(e.dynamicCaption.element)}if(!e.dynamicCaption.element)return;this.storeOriginalPanAreaSize(e),e.bounds.update(e.zoomLevels.initial),this.useMobileLayout()?(e.dynamicCaption.type="mobile",s=!0):this.options.type==="auto"?e.bounds.center.x>e.bounds.center.y?e.dynamicCaption.type="aside":e.dynamicCaption.type="below":e.dynamicCaption.type=this.options.type;const a=Math.ceil(e.width*e.zoomLevels.initial),o=Math.ceil(e.height*e.zoomLevels.initial);if(this.setCaptionType(e.dynamicCaption.element,e.dynamicCaption.type),e.dynamicCaption.type==="aside"){this.setCaptionWidth(e.dynamicCaption.element,!1),i=this.measureCaptionSize(e.dynamicCaption.element,t.slide);const r=i.x,h=a+e.bounds.center.x;e.panAreaSize.x-h<=r&&(e.panAreaSize.x-=r,this.recalculateZoomLevelAndBounds(e))}else if(e.dynamicCaption.type==="below"||s){this.setCaptionWidth(e.dynamicCaption.element,s?this.pswp.viewportSize.x:a),i=this.measureCaptionSize(e.dynamicCaption.element,t.slide);const r=i.y;if(this.options.verticallyCenterImage)e.panAreaSize.y-=r,this.recalculateZoomLevelAndBounds(e);else{const h=o+e.bounds.center.y,y=e.panAreaSize.y-h,z=e.panAreaSize.y;if(y<=r){e.panAreaSize.y-=Math.min((r-y)*2,r),this.recalculateZoomLevelAndBounds(e);const A=e.panAreaSize.x*this.options.mobileCaptionOverlapRatio/2;s&&e.bounds.center.x>A&&(e.panAreaSize.y=z,this.recalculateZoomLevelAndBounds(e))}}}this.storeAdjustedPanAreaSize(e),this.updateCaptionPosition(e)}measureCaptionSize(t,e){const i=t.getBoundingClientRect();return this.pswp.dispatch("dynamicCaptionMeasureSize",{captionEl:t,slide:e,captionSize:{x:i.width,y:i.height}}).captionSize}recalculateZoomLevelAndBounds(t){t.zoomLevels.update(t.width,t.height,t.panAreaSize),t.bounds.update(t.zoomLevels.initial)}storeAdjustedPanAreaSize(t){t.dynamicCaption&&(t.dynamicCaption.adjustedPanAreaSize||(t.dynamicCaption.adjustedPanAreaSize={}),t.dynamicCaption.adjustedPanAreaSize.x=t.panAreaSize.x,t.dynamicCaption.adjustedPanAreaSize.y=t.panAreaSize.y)}storeOriginalPanAreaSize(t){t.dynamicCaption&&(t.dynamicCaption.originalPanAreaSize||(t.dynamicCaption.originalPanAreaSize={}),t.dynamicCaption.originalPanAreaSize.x=t.panAreaSize.x,t.dynamicCaption.originalPanAreaSize.y=t.panAreaSize.y)}getCaptionHTML(t){if(typeof this.options.captionContent=="function")return this.options.captionContent.call(this,t);const e=t.data.element;let i="";if(e){const s=e.querySelector(this.options.captionContent);if(s)i=s.innerHTML;else{const a=e.querySelector("img");a&&(i=a.getAttribute("alt"))}}return i}}const q={name:"SimpleGallery",props:{galleryID:String,images:Array},setup(n){return{imagesData:n.images}},mounted(){if(!this.lightbox){const n={top:0,bottom:0,left:0,right:0},t={top:30,bottom:30,left:0,right:0};this.lightbox=new B({gallery:"#"+this.$props.galleryID,children:".pswp-gallery__item",pswpModule:()=>L(()=>import("./photoswipe.esm.c9e243b3.js"),[]),paddingFn:e=>e.x<700?n:t}),new V(this.lightbox,{mobileLayoutBreakpoint:700,type:"below",mobileCaptionOverlapRatio:1}),this.lightbox.init()}},unmounted(){this.lightbox&&(this.lightbox.destroy(),this.lightbox=null)},methods:{}},K=["id"],Y=["href","data-pswp-width","data-pswp-height"],X=["src","alt"],J={class:"text-xl font-medium"},Q={class:"pswp-caption-content text-xl font-medium"};function tt(n,t,e,i,s,a){return m(),u("div",{id:e.galleryID,class:"grid md:grid-cols-2 lg:grid-cols-3 gap-[10px]"},[(m(!0),u(b,null,x(i.imagesData,(o,r)=>(m(),u("div",{key:r,class:"pswp-gallery__item"},[d("a",{href:o.largeURL,"data-pswp-width":o.width,"data-pswp-height":o.height,target:"_blank",rel:"noreferrer"},[d("img",{src:o.thumbnailURL,alt:o.desc},null,8,X),d("h5",J,v(o.desc),1)],8,Y),d("h5",Q,v(o.desc),1)]))),128))],8,K)}var et=w(q,[["render",tt]]);const it={class:"container mx-auto"},st={class:"overflow-hidden mt-[20px]"},nt={key:0,class:""},at={__name:"Gallery",setup(n){P({title:"\u0413\u0430\u043B\u0435\u0440\u0435\u044F - \u0420\u043E\u0432\u0435\u043D\u044C\u043A\u043E\u0432\u0441\u043A\u0430\u044F \u043D\u0435\u0444\u0442\u0435\u0431\u0430\u0437\u0430",meta:[{name:"description",content:"\u041E\u0431\u0449\u0435\u0441\u0442\u0432\u043E \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u044C\u044E \xAB\u0422\u0414\xBB \xAB\u0420\u041E\u0412\u0415\u041D\u042C\u041A\u041E\u0412\u0421\u041A\u0410\u042F \u041D\u0415\u0424\u0422\u0415\u0411\u0410\u0417\u0410\xBB"},{name:"og-title",hid:"og:title",property:"og:title",content:"\u0413\u0430\u043B\u0435\u0440\u0435\u044F - \u0420\u043E\u0432\u0435\u043D\u044C\u043A\u043E\u0432\u0441\u043A\u0430\u044F \u043D\u0435\u0444\u0442\u0435\u0431\u0430\u0437\u0430"},{name:"og-description",hid:"og:description",property:"og:description",content:"\u041E\u0431\u0449\u0435\u0441\u0442\u0432\u043E \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0441\u0442\u044C\u044E \xAB\u0422\u0414\xBB \xAB\u0420\u041E\u0412\u0415\u041D\u042C\u041A\u041E\u0412\u0421\u041A\u0410\u042F \u041D\u0415\u0424\u0422\u0415\u0411\u0410\u0417\u0410\xBB"},{name:"og-image",hid:"og:image",property:"og:image",content:"/imgs/slider/1.jpg"}]});const t=E([]);return I(()=>{fetch("https://admin.1rnb.ru/api/galereyas?populate=*").then(e=>e.json()).then(({data:e})=>{let i=[];e=e.map(s=>
4s.attributes),e.forEach(({Description:s,Img:a})=>{let o=a.data.attributes;console.log(o),i.push({largeURL:`https://admin.1rnb.ru${o.url}`,thumbnailURL:`https://admin.1rnb.ru${o.formats.small.url}`,width:o.width,height:o.height,desc:s}),t.value=i})})}),(e,i)=>(m(),u("div",it,[i[0]||(i[0]=d("h2",{class:"text-2xl text-$red"}," \u0413\u0430\u043B\u0435\u0440\u0435\u044F ",-1)),d("section",st,[t.value.length>0?(m(),u("div",nt,[D(et,{"gallery-i-d":"my-test-gallery",images:t.value},null,8,["images"])])):T("",!0)])]))}};var rt=w(at,[["__scopeId","data-v-50f04ca6"]]);export{rt as default};

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.