1import{V as ft,aO as bt,a6 as vt,X as M,W as gt,Y as j,ab as E,aP as W,aE as yt,aQ as nt,aR as It,aS as wt,aT as St,aU as xt,aV as w,av as N,aW as it,aX as X,$ as K,c as m,o as s,a as g,b as p,x,G as u,d as b,H as I,F as at,r as rt,B as $,e as D,w as C,T as kt,i as Pt,u as Ot,p as F,q as L,O as Y,n as Ct,N as q,aN as At}from"./client.0d13f92.js";import{s as Tt,a as ot}from"./index.0d13f9218.js";import{s as Bt,a as lt}from"./index.0d13f9219.js";var Lt=` 2 .p-galleria { 3 overflow: hidden; 4 border-style: solid; 5 border-width: dt('galleria.border.width'); 6 border-color: dt('galleria.border.color'); 7 border-radius: dt('galleria.border.radius'); 8 } 9 10 .p-galleria-content { 11 display: flex; 12 flex-direction: column; 13 } 14 15 .p-galleria-items-container { 16 display: flex; 17 flex-direction: column; 18 position: relative; 19 } 20 21 .p-galleria-items { 22 position: relative; 23 display: flex; 24 height: 100%; 25 } 26 27 .p-galleria-nav-button { 28 position: absolute !important; 29 top: 50%; 30 display: inline-flex; 31 justify-content: center; 32 align-items: center; 33 overflow: hidden; 34 background: dt('galleria.nav.button.background'); 35 color: dt('galleria.nav.button.color'); 36 width: dt('galleria.nav.button.size'); 37 height: dt('galleria.nav.button.size'); 38 transition: 39 background dt('galleria.transition.duration'), 40 color dt('galleria.transition.duration'), 41 outline-color dt('galleria.transition.duration'), 42 box-shadow dt('galleria.transition.duration'); 43 margin: calc(-1 * calc(dt('galleria.nav.button.size')) / 2) dt('galleria.nav.button.gutter') 0 dt('galleria.nav.button.gutter'); 44 padding: 0; 45 user-select: none; 46 border: 0 none; 47 cursor: pointer; 48 outline-color: transparent; 49 } 50 51 .p-galleria-nav-button:not(.p-disabled):hover { 52 background: dt('galleria.nav.button.hover.background'); 53 color: dt('galleria.nav.button.hover.color'); 54 } 55 56 .p-galleria-nav-button:not(.p-disabled):focus-visible { 57 box-shadow: dt('galleria.nav.button.focus.ring.shadow'); 58 outline: dt('galleria.nav.button.focus.ring.width') dt('galleria.nav.button.focus.ring.style') dt('galleria.nav.button.focus.ring.color'); 59 outline-offset: dt('galleria.nav.button.focus.ring.offset'); 60 } 61 62 .p-galleria-next-icon, 63 .p-galleria-prev-icon { 64 font-size: dt('galleria.nav.icon.size'); 65 width: dt('galleria.nav.icon.size'); 66 height: dt('galleria.nav.icon.size'); 67 } 68 69 .p-galleria-prev-button { 70 border-radius: dt('galleria.nav.button.prev.border.radius'); 71 left: 0; 72 } 73 74 .p-galleria-next-button { 75 border-radius: dt('galleria.nav.button.next.border.radius'); 76 right: 0; 77 } 78 79 .p-galleria-prev-button:dir(rtl) { 80 left: auto; 81 right: 0; 82 transform: rotate(180deg); 83 } 84 85 .p-galleria-next-button:dir(rtl) { 86 right: auto; 87 left: 0; 88 transform: rotate(180deg); 89 } 90 91 .p-galleria-item { 92 display: flex; 93 justify-content: center; 94 align-items: center; 95 height: 100%; 96 width: 100%; 97 } 98 99 .p-galleria-hover-navigators .p-galleria-nav-button { 100 pointer-events: none; 101 opacity: 0; 102 transition: opacity dt('galleria.transition.duration') ease-in-out; 103 } 104 105 .p-galleria-hover-navigators .p-galleria-items-container:hover .p-galleria-nav-button { 106 pointer-events: all; 107 opacity: 1; 108 } 109 110 .p-galleria-hover-navigators .p-galleria-items-container:hover .p-galleria-nav-button.p-disabled { 111 pointer-events: none; 112 } 113 114 .p-galleria-caption { 115 position: absolute; 116 bottom: 0; 117 left: 0; 118 width: 100%; 119 background: dt('galleria.caption.background'); 120 color: dt('galleria.caption.color'); 121 padding: dt('galleria.caption.padding'); 122 } 123 124 .p-galleria-thumbnails { 125 display: flex; 126 flex-direction: column; 127 overflow: auto; 128 flex-shrink: 0; 129 } 130
131 .p-galleria-thumbnail-nav-button { 132 align-self: center; 133 flex: 0 0 auto; 134 display: flex; 135 justify-content: center; 136 align-items: center; 137 overflow: hidden; 138 position: relative; 139 margin: 0 dt('galleria.thumbnail.nav.button.gutter'); 140 padding: 0; 141 border: none; 142 user-select: none; 143 cursor: pointer; 144 background: transparent; 145 color: dt('galleria.thumbnail.nav.button.color'); 146 width: dt('galleria.thumbnail.nav.button.size'); 147 height: dt('galleria.thumbnail.nav.button.size'); 148 transition: 149 background dt('galleria.transition.duration'), 150 color dt('galleria.transition.duration'), 151 outline-color dt('galleria.transition.duration'); 152 outline-color: transparent; 153 border-radius: dt('galleria.thumbnail.nav.button.border.radius'); 154 } 155 156 .p-galleria-thumbnail-nav-button:hover { 157 background: dt('galleria.thumbnail.nav.button.hover.background'); 158 color: dt('galleria.thumbnail.nav.button.hover.color'); 159 } 160 161 .p-galleria-thumbnail-nav-button:focus-visible { 162 box-shadow: dt('galleria.thumbnail.nav.button.focus.ring.shadow'); 163 outline: dt('galleria.thumbnail.nav.button.focus.ring.width') dt('galleria.thumbnail.nav.button.focus.ring.style') dt('galleria.thumbnail.nav.button.focus.ring.color'); 164 outline-offset: dt('galleria.thumbnail.nav.button.focus.ring.offset'); 165 } 166 167 .p-galleria-thumbnail-nav-button .p-galleria-thumbnail-next-icon, 168 .p-galleria-thumbnail-nav-button .p-galleria-thumbnail-prev-icon { 169 font-size: dt('galleria.thumbnail.nav.button.icon.size'); 170 width: dt('galleria.thumbnail.nav.button.icon.size'); 171 height: dt('galleria.thumbnail.nav.button.icon.size'); 172 } 173 174 .p-galleria-thumbnails-content { 175 display: flex; 176 flex-direction: row; 177 background: dt('galleria.thumbnails.content.background'); 178 padding: dt('galleria.thumbnails.content.padding'); 179 } 180 181 .p-galleria-thumbnails-viewport { 182 overflow: hidden; 183 width: 100%; 184 } 185 186 .p-galleria:not(.p-galleria-thumbnails-right):not(.p-galleria-thumbnails-left) .p-galleria-thumbnail-prev-button:dir(rtl), 187 .p-galleria:not(.p-galleria-thumbnails-right):not(.p-galleria-thumbnails-left) .p-galleria-thumbnail-next-button:dir(rtl) { 188 transform: rotate(180deg); 189 } 190 191 .p-galleria-thumbnail-items { 192 display: flex; 193 } 194 195 .p-galleria-thumbnail-item { 196 overflow: auto; 197 display: flex; 198 align-items: center; 199 justify-content: center; 200 cursor: pointer; 201 opacity: 0.5; 202 } 203 204 .p-galleria-thumbnail { 205 outline-color: transparent; 206 } 207 208 .p-galleria-thumbnail-item:hover { 209 opacity: 1; 210 transition: opacity 0.3s; 211 } 212 213 .p-galleria-thumbnail-item-current { 214 opacity: 1; 215 } 216 217 .p-galleria-thumbnails-left .p-galleria-content, 218 .p-galleria-thumbnails-right .p-galleria-content { 219 flex-direction: row; 220 } 221 222 .p-galleria-thumbnails-left .p-galleria-items-container, 223 .p-galleria-thumbnails-right .p-galleria-items-container { 224 flex-direction: row; 225 } 226 227 .p-galleria-thumbnails-left .p-galleria-items-container, 228 .p-galleria-thumbnails-top .p-galleria-items-container { 229 order: 2; 230 } 231 232 .p-galleria-thumbnails-left .p-galleria-thumbnails, 233 .p-galleria-thumbnails-top .p-galleria-thumbnails { 234 order: 1; 235 } 236 237 .p-galleria-thumbnails-left .p-galleria-thumbnails-content, 238 .p-galleria-thumbnails-right .p-galleria-thumbnails-content { 239 flex-direction: column; 240 flex-grow: 1; 241 } 242 243 .p-galleria-thumbnails-left .p-galleria-thumbnail-items, 244 .p-galleria-thumbnails-right .p-galleria-thumbnail-items { 245 flex-direction: column; 246 height: 100%; 247 } 248 249 .p-galleria-indicator-list { 250 display: flex; 251 align-items: center; 252 justify-content: center; 253 padding: dt('galleria.indicator.list.padding'); 254 gap: dt('galleria.indicator.list.gap'); 255 margin: 0; 256 list-style: none; 257 } 258 259 .p-galleria-indicator-button { 260 display: inline-flex; 261 align-items: center; 262 background: dt('galleria.indicator.button.background'); 263 width: dt('galleria.indicator.button.width'); 264 height: dt('galleria.indicator.button.height'); 265 transition: 266 background dt('galleria.transition.duration'), 267 color dt('galleria.transition.duration'), 268 outline-color dt('galleria.transition.duration'), 269 box-shadow dt('galleria.transition.duration'); 270 outline-color: transparent; 271 border-radius: dt('galleria.indicator.button.border.radiu
271s'); 272 margin: 0; 273 padding: 0; 274 border: none; 275 user-select: none; 276 cursor: pointer; 277 } 278 279 .p-galleria-indicator-button:hover { 280 background: dt('galleria.indicator.button.hover.background'); 281 } 282 283 .p-galleria-indicator-button:focus-visible { 284 box-shadow: dt('galleria.indicator.button.focus.ring.shadow'); 285 outline: dt('galleria.indicator.button.focus.ring.width') dt('galleria.indicator.button.focus.ring.style') dt('galleria.indicator.button.focus.ring.color'); 286 outline-offset: dt('galleria.indicator.button.focus.ring.offset'); 287 } 288 289 .p-galleria-indicator-active .p-galleria-indicator-button { 290 background: dt('galleria.indicator.button.active.background'); 291 } 292 293 .p-galleria-indicators-left .p-galleria-items-container, 294 .p-galleria-indicators-right .p-galleria-items-container { 295 flex-direction: row; 296 align-items: center; 297 } 298 299 .p-galleria-indicators-left .p-galleria-items, 300 .p-galleria-indicators-top .p-galleria-items { 301 order: 2; 302 } 303 304 .p-galleria-indicators-left .p-galleria-indicator-list, 305 .p-galleria-indicators-top .p-galleria-indicator-list { 306 order: 1; 307 } 308 309 .p-galleria-indicators-left .p-galleria-indicator-list, 310 .p-galleria-indicators-right .p-galleria-indicator-list { 311 flex-direction: column; 312 } 313 314 .p-galleria-inset-indicators .p-galleria-indicator-list { 315 position: absolute; 316 display: flex; 317 z-index: 1; 318 background: dt('galleria.inset.indicator.list.background'); 319 } 320 321 .p-galleria-inset-indicators .p-galleria-indicator-button { 322 background: dt('galleria.inset.indicator.button.background'); 323 } 324 325 .p-galleria-inset-indicators .p-galleria-indicator-button:hover { 326 background: dt('galleria.inset.indicator.button.hover.background'); 327 } 328 329 .p-galleria-inset-indicators .p-galleria-indicator-active .p-galleria-indicator-button { 330 background: dt('galleria.inset.indicator.button.active.background'); 331 } 332 333 .p-galleria-inset-indicators.p-galleria-indicators-top .p-galleria-indicator-list { 334 top: 0; 335 left: 0; 336 width: 100%; 337 align-items: flex-start; 338 } 339 340 .p-galleria-inset-indicators.p-galleria-indicators-right .p-galleria-indicator-list { 341 right: 0; 342 top: 0; 343 height: 100%; 344 align-items: flex-end; 345 } 346 347 .p-galleria-inset-indicators.p-galleria-indicators-bottom .p-galleria-indicator-list { 348 bottom: 0; 349 left: 0; 350 width: 100%; 351 align-items: flex-end; 352 } 353 354 .p-galleria-inset-indicators.p-galleria-indicators-left .p-galleria-indicator-list { 355 left: 0; 356 top: 0; 357 height: 100%; 358 align-items: flex-start; 359 } 360 361 .p-galleria-mask { 362 position: fixed; 363 top: 0; 364 left: 0; 365 width: 100%; 366 height: 100%; 367 display: flex; 368 align-items: center; 369 justify-content: center; 370 } 371 372 .p-galleria-close-button { 373 position: absolute !important; 374 top: 0; 375 right: 0; 376 display: flex; 377 justify-content: center; 378 align-items: center; 379 overflow: hidden; 380 margin: dt('galleria.close.button.gutter'); 381 background: dt('galleria.close.button.background'); 382 color: dt('galleria.close.button.color'); 383 width: dt('galleria.close.button.size'); 384 height: dt('galleria.close.button.size'); 385 padding: 0; 386 border: none; 387 user-select: none; 388 cursor: pointer; 389 border-radius: dt('galleria.close.button.border.radius'); 390 outline-color: transparent; 391 transition: 392 background dt('galleria.transition.duration'), 393 color dt('galleria.transition.duration'), 394 outline-color dt('galleria.transition.duration'); 395 } 396 397 .p-galleria-close-icon { 398 font-size: dt('galleria.close.button.icon.size'); 399 width: dt('galleria.close.button.icon.size'); 400 height: dt('galleria.close.button.icon.size'); 401 } 402 403 .p-galleria-close-button:hover { 404 background: dt('galleria.close.button.hover.background'); 405 color: dt('galleria.close.button.hover.color'); 406 } 407 408 .p-galleria-close-button:focus-visible { 409 box-shadow: dt('galleria.close.button.focus.ring.shadow'); 410 outline: dt('galleria.close.button.focus.ring.width') dt('galleria.close.button.focus.ring.style') dt('galleria.close.button.focus.ring.color'); 411 outline-offset: dt('galleria.close.button.focus.ring.offset'); 412 } 413 414 .p-galleria-mask .p-galleria-nav-button { 415 position: fixed; 416 top: 50%; 417 } 418 419 .p-galleria-enter-active { 420 transition: all 150ms cubic-bezier(0, 0, 0.2, 1); 421 } 422 423 .p-galleria-leave-active { 424 transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); 425 } 426 427 .p-galleria-enter-from, 428 .p-galleria-leave-to { 429 opacity: 0; 430 transform: scale(0.7); 431 } 432 433 .p-galleria-enter-active .p-galleria-nav-button { 434 opacity: 0; 435 } 436
437 .p-items-hidden .p-galleria-thumbnail-item { 438 visibility: hidden; 439 } 440 441 .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active { 442 visibility: visible; 443 } 444`,Vt={mask:"p-galleria-mask p-overlay-mask p-overlay-mask-enter",root:function(e){var n=e.instance,i=n.$attrs.showThumbnails&&n.getPositionClass("p-galleria-thumbnails",n.$attrs.thumbnailsPosition),r=n.$attrs.showIndicators&&n.getPositionClass("p-galleria-indicators",n.$attrs.indicatorsPosition);return["p-galleria p-component",{"p-galleria-fullscreen":n.$attrs.fullScreen,"p-galleria-inset-indicators":n.$attrs.showIndicatorsOnItem,"p-galleria-hover-navigators":n.$attrs.showItemNavigatorsOnHover&&!n.$attrs.fullScreen},i,r]},closeButton:"p-galleria-close-button",closeIcon:"p-galleria-close-icon",header:"p-galleria-header",content:"p-galleria-content",footer:"p-galleria-footer",itemsContainer:"p-galleria-items-container",items:"p-galleria-items",prevButton:function(e){var n=e.instance;return["p-galleria-prev-button p-galleria-nav-button",{"p-disabled":n.isNavBackwardDisabled}]},prevIcon:"p-galleria-prev-icon",item:"p-galleria-item",nextButton:function(e){var n=e.instance;return["p-galleria-next-button p-galleria-nav-button",{"p-disabled":n.isNavForwardDisabled}]},nextIcon:"p-galleria-next-icon",caption:"p-galleria-caption",indicatorList:"p-galleria-indicator-list",indicator:function(e){var n=e.instance,i=e.index;return["p-galleria-indicator",{"p-galleria-indicator-active":n.isIndicatorItemActive(i)}]},indicatorButton:"p-galleria-indicator-button",thumbnails:"p-galleria-thumbnails",thumbnailContent:"p-galleria-thumbnails-content",thumbnailPrevButton:function(e){var n=e.instance;return["p-galleria-thumbnail-prev-button p-galleria-thumbnail-nav-button",{"p-disabled":n.isNavBackwardDisabled}]},thumbnailPrevIcon:"p-galleria-thumbnail-prev-icon",thumbnailsViewport:"p-galleria-thumbnails-viewport",thumbnailItems:"p-galleria-thumbnail-items",thumbnailItem:function(e){var n=e.instance,i=e.index,r=e.activeIndex;return["p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":r===i,"p-galleria-thumbnail-item-active":n.isItemActive(i),"p-galleria-thumbnail-item-start":n.firstItemAciveIndex()===i,"p-galleria-thumbnail-item-end":n.lastItemActiveIndex()===i}]},thumbnail:"p-galleria-thumbnail",thumbnailNextButton:function(e){var n=e.instance;return["p-galleria-thumbnail-next-button p-galleria-thumbnail-nav-button",{"p-disabled":n.isNavForwardDisabled}]},thumbnailNextIcon:"p-galleria-thumbnail-next-icon"},Nt=ft.extend({name:"galleria",style:Lt,classes:Vt}),$t={name:"BaseGalleria",extends:j,props:{id:{type:String,default:null},value:{type:Array,default:null},activeIndex:{type:Number,default:0},fullScreen:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},numVisible:{type:Number,default:3},responsiveOptions:{type:Array,default:null},showItemNavigators:{type:Boolean,default:!1},showThumbnailNavigators:{type:Boolean,default:!0},showItemNavigatorsOnHover:{type:Boolean,default:!1},changeItemOnIndicatorHover:{type:Boolean,default:!1},circular:{type:Boolean,default:!1},autoPlay:{type:Boolean,default:!1},transitionInterval:{type:Number,default:4e3},showThumbnails:{type:Boolean,default:!0},thumbnailsPosition:{type:String,default:"bottom"},verticalThumbnailViewPortHeight:{type:String,default:"300px"},showIndicators:{type:Boolean,default:!1},showIndicatorsOnItem:{type:Boolean,default:!1},indicatorsPosition:{type:String,default:"bottom"},baseZIndex:{type:Number,default:0},maskClass:{type:String,default:null},containerStyle:{type:null,default:null},containerClass:{type:null,default:null},containerProps:{type:null,default:null},prevButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null},ariaLabel:{type:String,default:null},ariaRoledescription:{type:String,default:null}},style:Nt,provide:function(){return{$pcGalleria:this,$parentInstance:this}}};function O(t){return Et(t)||Kt(t)||jt(t)||Dt()}function Dt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 445In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jt(t,e){if(t){if(typeof t=="string")return H(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(t,e):void 0}}function Kt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Et(t){if(Array.isArray(t))return H(t)}function H(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var st={name:"GalleriaItem",hostName:"Galleria",extends:j,emits:["start-slideshow","stop-slideshow","update:activeIndex"],props:{circular:{type:Boolean,default:!1},activeIndex:{type:Number,default:0},value:{type:Array,default:null},showItemNavigators:{type:Boolean,default:!0},showIndicators:{type:Boolean,default:!0},slideShowActive:{type:Boolean,default:!0},changeItemOnIndicatorHover:{type:Boolean,default:!0},autoPlay:{type:Boolean,default:!1},templates:{type:null,default:null},id:{type:String,default:null}},mounted:function(){this.autoPlay&&this.$emit("start-slideshow")},methods:{getIndicatorPTOptions:function(e){return{context:{highlighted:this.activeIndex===e}}},next:function(){var e=this.activeIndex+1,n=this.circular&&this.value.length-1===this.activeIndex?0:e;this.$emit("update:activeIndex",n)},prev:function(){var e=this.activeIndex!==0?this.activeIndex-1:0,n=this.circular&&this.activeIndex===0?this.value.length-1:e;this.$emit("update:activeIndex",n)},stopSlideShow:function(){this.slideShowActive&&this.stopSlideShow&&this.$emit("stop-slideshow")},navBackward:function(e){this.stopSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()},navForward:function(e){this.stopSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()},onIndicatorClick:function(e){this.stopSlideShow(),this.$emit("update:activeIndex",e)},onIndicatorMouseEnter:function(e){this.changeItemOnIndicatorHover&&(this.stopSlideShow(),this.$emit("update:activeIndex",e))},onIndicatorKeyDown:function(e,n){switch(e.code){case"Enter":case"NumpadEnter":case"Space":this.stopSlideShow(),this.$emit("update:activeIndex",n),e.preventDefault();break;case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"Tab":this.onTabKey();break;case"ArrowDown":case"ArrowUp":case"PageUp":case"PageDown":e.preventDefault();break}},onRightKey:function(){var e=O(w(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,n+1===e.length?e.length-1:n+1)},onLeftKey:function(){var e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,e-1<=0?0:e-1)},onHomeKey:function(){var e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,0)},onEndKey:function(){var e=O(w(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,e.length-1)},onTabKey:function(){var e=O(w(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=e.findIndex(function(a){return it(a,"data-p-active")===!0}),i=N(this.$refs.indicatorContent,'[data-pc-section="indicator"] > [tabindex="0"]'),r=e.findIndex(function(a){return a===i.parentElement});e[r].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"},findFocusedIndicatorIndex:function(){var e=O(w(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=N(this.$refs.indicatorContent,'[data-pc-section="indicator"] > [tabindex="0"]');return e.findIndex(function(i){return i===n.parentElement})},changedFocusedIndicator:function(e,n){var i=O(w(this.$refs.indicatorContent,'[data-pc-section="indicator"]'));i[e].children[0].tabIndex="-1",i[n].children[0].tabIndex="0",i[n].children[0].focus()},isIndicatorItemActive:function(e){return this.activeIndex===e},ariaSlideNumber:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g,e):void 0},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{activeItem:function(){return this.value[this.activeIndex]},ariaSlideLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.slide:void 0},isNavBackwardDisabled:function(){return!this.circular&&this.activeIndex===0},isNavForwardDisabled:function(){return!this.circular&&this.activeIndex===this.value.length-1}},components:{ChevronLeftIcon:ot,ChevronRightIcon:lt},directives:{ripple:M}},Ft=["disabled"],zt=["id","aria-label","aria-roledescription"],Ht=["disabled"],Rt=["aria-label","aria-selected","aria-controls","onClick","onMouseenter","onKeydown","data-
445p-active"],Ut=["tabindex"];function Mt(t,e,n,i,r,a){var v=K("ripple");return s(),m("div",u({class:t.cx("itemsContainer")},t.ptm("itemsContainer")),[g("div",u({class:t.cx("items")},t.ptm("items")),[n.showItemNavigators?x((s(),m("button",u({key:0,type:"button",class:t.cx("prevButton"),onClick:e[0]||(e[0]=function(c){return a.navBackward(c)}),disabled:a.isNavBackwardDisabled},t.ptm("prevButton"),{"data-pc-group-section":"itemnavigator"}),[(s(),b(I(n.templates.previousitemicon||"ChevronLeftIcon"),u({class:t.cx("prevIcon")},t.ptm("prevIcon")),null,16,["class"]))],16,Ft)),[[v]]):p("",!0),g("div",u({id:n.id+"_item_"+n.activeIndex,class:t.cx("item"),role:"group","aria-label":a.ariaSlideNumber(n.activeIndex+1),"aria-roledescription":a.ariaSlideLabel},t.ptm("item")),[n.templates.item?(s(),b(I(n.templates.item),{key:0,item:a.activeItem},null,8,["item"])):p("",!0)],16,zt),n.showItemNavigators?x((s(),m("button",u({key:1,type:"button",class:t.cx("nextButton"),onClick:e[1]||(e[1]=function(c){return a.navForward(c)}),disabled:a.isNavForwardDisabled},t.ptm("nextButton"),{"data-pc-group-section":"itemnavigator"}),[(s(),b(I(n.templates.nextitemicon||"ChevronRightIcon"),u({class:t.cx("nextIcon")},t.ptm("nextIcon")),null,16,["class"]))],16,Ht)),[[v]]):p("",!0),n.templates.caption?(s(),m("div",u({key:2,class:t.cx("caption")},t.ptm("caption")),[n.templates.caption?(s(),b(I(n.templates.caption),{key:0,item:a.activeItem},null,8,["item"])):p("",!0)],16)):p("",!0)],16),n.showIndicators?(s(),m("ul",u({key:0,ref:"indicatorContent",class:t.cx("indicatorList")},t.ptm("indicatorList")),[(s(!0),m(at,null,rt(n.value,function(c,o){return s(),m("li",u({key:"p-galleria-indicator-".concat(o),class:t.cx("indicator",{index:o}),"aria-label":a.ariaPageLabel(o+1),"aria-selected":n.activeIndex===o,"aria-controls":n.id+"_item_"+o,onClick:function(y){return a.onIndicatorClick(o)},onMouseenter:function(y){return a.onIndicatorMouseEnter(o)},onKeydown:function(y){return a.onIndicatorKeyDown(y,o)}},{ref_for:!0},t.ptm("indicator",a.getIndicatorPTOptions(o)),{"data-p-active":a.isIndicatorItemActive(o)}),[n.templates.indicator?p("",!0):(s(),m("button",u({key:0,type:"button",tabindex:n.activeIndex===o?"0":"-1",class:t.cx("indicatorButton")},{ref_for:!0},t.ptm("indicatorButton",a.getIndicatorPTOptions(o))),null,16,Ut)),n.templates.indicator?(s(),b(I(n.templates.indicator),{key:1,index:o,activeIndex:n.activeIndex,tabindex:n.activeIndex===o?"0":"-1"},null,8,["index","activeIndex","tabindex"])):p("",!0)],16,Rt)}),128))],16)):p("",!0)],16)}st.render=Mt;function z(t){return Xt(t)||Wt(t)||_t(t)||Gt()}function Gt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 446In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _t(t,e){if(t){if(typeof t=="string")return R(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(t,e):void 0}}function Wt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Xt(t){if(Array.isArray(t))return R(t)}function R(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var ut={name:"GalleriaThumbnails",hostName:"Galleria",extends:j,emits:["stop-slideshow","update:activeIndex"],props:{containerId:{type:String,default:null},value:{type:Array,default:null},numVisible:{type:Number,default:3},activeIndex:{type:Number,default:0},isVertical:{type:Boolean,default:!1},slideShowActive:{type:Boolean,default:!1},circular:{type:Boolean,default:!1},responsiveOptions:{type:Array,default:null},contentHeight:{type:String,default:"300px"},showThumbnailNavigators:{type:Boolean,default:!0},templates:{type:null,default:null},prevButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null}},startPos:null,thumbnailsStyle:null,sortedResponsiveOptions:null,data:function(){return{d_numVisible:this.numVisible,d_oldNumVisible:this.numVisible,d_activeIndex:this.activeIndex,d_oldActiveItemIndex:this.activeIndex,totalShiftedItems:0,page:0}},watch:{numVisible:function(e,n){this.d_numVisible=e,this.d_oldNumVisible=n},activeIndex:function(e,n){this.d_activeIndex=e,this.d_oldActiveItemIndex=n}},mounted:function(){this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners()},updated:function(){var e=this.totalShiftedItems;(this.d_oldNumVisible!==this.d_numVisible||this.d_oldActiveItemIndex!==this.d_activeIndex)&&(this.d_activeIndex<=this.getMedianItemIndex()?e=0:this.value.length-this.d_numVisible+this.getMedianItemIndex()<this.d_activeIndex?e=this.d_numVisible-this.value.length:this.value.length-this.d_numVisible<this.d_activeIndex&&this.d_numVisible
446%2===0?e=this.d_activeIndex*-1+this.getMedianItemIndex()+1:e=this.d_activeIndex*-1+this.getMedianItemIndex(),e!==this.totalShiftedItems&&(this.totalShiftedItems=e),this.$refs.itemsContainer.style.transform=this.isVertical?"translate3d(0, ".concat(e*(100/this.d_numVisible),"%, 0)"):"translate3d(".concat(e*(100/this.d_numVisible),"%, 0, 0)"),this.d_oldActiveItemIndex!==this.d_activeIndex&&(document.body.setAttribute("data-p-items-hidden","false"),!this.isUnstyled&&X(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transition="transform 500ms ease 0s"),this.d_oldActiveItemIndex=this.d_activeIndex,this.d_oldNumVisible=this.d_numVisible)},beforeUnmount:function(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle)},methods:{step:function(e){var n=this.totalShiftedItems+e;e<0&&-1*n+this.d_numVisible>this.value.length-1?n=this.d_numVisible-this.value.length:e>0&&n>0&&(n=0),this.circular&&(e<0&&this.value.length-1===this.d_activeIndex?n=0:e>0&&this.d_activeIndex===0&&(n=this.d_numVisible-this.value.length)),this.$refs.itemsContainer&&(document.body.setAttribute("data-p-items-hidden","false"),!this.isUnstyled&&X(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transform=this.isVertical?"translate3d(0, ".concat(n*(100/this.d_numVisible),"%, 0)"):"translate3d(".concat(n*(100/this.d_numVisible),"%, 0, 0)"),this.$refs.itemsContainer.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=n},stopSlideShow:function(){this.slideShowActive&&this.stopSlideShow&&this.$emit("stop-slideshow")},getMedianItemIndex:function(){var e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1},navBackward:function(e){this.stopSlideShow();var n=this.d_activeIndex!==0?this.d_activeIndex-1:0,i=n+this.totalShiftedItems;this.d_numVisible-i-1>this.getMedianItemIndex()&&(-1*this.totalShiftedItems!==0||this.circular)&&this.step(1);var r=this.circular&&this.d_activeIndex===0?this.value.length-1:n;this.$emit("update:activeIndex",r),e.cancelable&&e.preventDefault()},navForward:function(e){this.stopSlideShow();var n=this.d_activeIndex===this.value.length-1?this.value.length-1:this.d_activeIndex+1;n+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItems<this.getTotalPageNumber()-1||this.circular)&&this.step(-1);var i=this.circular&&this.value.length-1===this.d_activeIndex?0:n;this.$emit("update:activeIndex",i),e.cancelable&&e.preventDefault()},onItemClick:function(e){this.stopSlideShow();var n=e;if(n!==this.d_activeIndex){var i=n+this.totalShiftedItems,r=0;n<this.d_activeIndex?(r=this.d_numVisible-i-1-this.getMedianItemIndex(),r>0&&-1*this.totalShiftedItems!==0&&this.step(r)):(r=this.getMedianItemIndex()-i,r<0&&-1*this.totalShiftedItems<this.getTotalPageNumber()-1&&this.step(r)),this.$emit("update:activeIndex",n)}},onThumbnailKeydown:function(e,n){switch((e.code==="Enter"||e.code==="NumpadEnter"||e.code==="Space")&&(this.onItemClick(n),e.preventDefault()),e.code){case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":this.onTabKey();break}},onRightKey:function(){var e=w(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"]'),n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,n+1===e.length?e.length-1:n+1)},onLeftKey:function(){var e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,e-1<=0?0:e-1)},onHomeKey:function(){var e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,0)},onEndKey:function(){var e=w(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"]'),n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,e.length-1)},onTabKey:function(){var e=z(w(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"]')),n=e.findIndex(function(a){return it(a,"data-p-active")===!0}),i=N(this.$refs.itemsContainer,'[tabindex="0"]'),r=e.findIndex(function(a){return a===i.parentElement});e[r].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"},findFocusedIndicatorIndex:function(){var e=z(w(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"]')),n=N(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"] > [tabindex="0"]');return e.findIndex(function(i){return i===n.parentElement})},changedFocusedIndicator:function(e,n){var i=w(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"]');i[e].children[0].tabIndex="-1",i[n].children[0].tabIndex="0",i[n].children[0].focus()},onTransitionEnd:function(e){this.$refs.itemsContainer&&e.propertyName==="transform"&&(document.body.setAttribute("data-p-items-hidden","true"),!this.isUnstyled&&nt(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transition="")},onTouchStart:function(e){var n=e.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}},onTouchMove:function(e){e.cancelable&&e.preventDefault()},onTouchEnd:function(e){var n=e.changedTouches[0];this.isVertical?this.changePageOnTouch(e,n.pageY-this.startPos.y):this.changePageOnTouch(e,n.pageX-this.startPos.x)},changePageOnTouch:function(e,n){var i=10;Math.abs(n)<i||(n<0?this.navForward(e):this.navBackward(e))},getTotalPageNumber:function(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0},createStyle:function(){if(!this.thumbnailsStyle){var e;this.thumbnailsStyle=document.createElement("style"),this.thumbnailsStyle.type="text/css",wt(this.thumbnailsStyle,"nonce",(e=this.$primevue)===null||e===void 0||(e=e.config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce),document.body.appendChild(this.thumbnailsStyle)}var n=` 447 #`.concat(this.containerId,` [data-pc-section="thumbnailitem"] { 448 flex: 1 0 `).concat(100/this.d_numVisible,`% 449 } 450 `);if(this.responsiveOptions&&!this.isUnstyled){this.sortedResponsiveOptions=z(this.responsiveOptions);var i=St();this.sortedResponsiveOptions.sort(function(v,c){var o=v.breakpoint,f=c.breakpoint;return xt(o,f,-1,i)});for(var r=0;r<this.sortedResponsiveOptions.length;r++){var a=this.sortedResponsiveOptions[r];n+=` 451 @media screen and (max-width: `.concat(a.breakpoint,`) { 452 #`).concat(this.containerId,` .p-galleria-thumbn
452ail-item { 453 flex: 1 0 `).concat(100/a.numVisible,`% 454 } 455 } 456 `)}}this.thumbnailsStyle.innerHTML=n},calculatePosition:function(){if(this.$refs.itemsContainer&&this.sortedResponsiveOptions){for(var e=window.innerWidth,n={numVisible:this.numVisible},i=0;i<this.sortedResponsiveOptions.length;i++){var r=this.sortedResponsiveOptions[i];parseInt(r.breakpoint,10)>=e&&(n=r)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible)}},bindDocumentListeners:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},firstItemAciveIndex:function(){return this.totalShiftedItems*-1},lastItemActiveIndex:function(){return this.firstItemAciveIndex()+this.d_numVisible-1},isItemActive:function(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{ariaPrevButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0},isNavBackwardDisabled:function(){return!this.circular&&this.d_activeIndex===0||this.value.length<=this.d_numVisible},isNavForwardDisabled:function(){return!this.circular&&this.d_activeIndex===this.value.length-1||this.value.length<=this.d_numVisible}},components:{ChevronLeftIcon:ot,ChevronRightIcon:lt,ChevronUpIcon:Tt,ChevronDownIcon:Bt},directives:{ripple:M}};function A(t){"@babel/helpers - typeof";return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(t)}function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q(Object(n),!0).forEach(function(i){Yt(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Yt(t,e,n){return(e=qt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qt(t){var e=Qt(t,"string");return A(e)=="symbol"?e:e+""}function Qt(t,e){if(A(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(A(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zt=["disabled","aria-label"],Jt=["data-p-active","aria-selected","aria-controls","onKeydown","data-p-galleria-thumbnail-item-current","data-p-galleria-thumbnail-item-active","data-p-galleria-thumbnail-item-start","data-p-galleria-thumbnail-item-end"],te=["tabindex","aria-label","aria-current","onClick"],ee=["disabled","aria-label"];function ne(t,e,n,i,r,a){var v=K("ripple");return s(),m("div",u({class:t.cx("thumbnails")},t.ptm("thumbnails")),[g("div",u({class:t.cx("thumbnailContent")},t.ptm("thumbnailContent")),[n.showThumbnailNavigators?x((s(),m("button",u({key:0,class:t.cx("thumbnailPrevButton"),disabled:a.isNavBackwardDisabled,type:"button","aria-label":a.ariaPrevButtonLabel,onClick:e[0]||(e[0]=function(c){return a.navBackward(c)})},V(V({},n.prevButtonProps),t.ptm("thumbnailPrevButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s(),b(I(n.templates.previousthumbnailicon||(n.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),u({class:t.cx("thumbnailPrevIcon")},t.ptm("thumbnailPrevIcon")),null,16,["class"]))],16,Zt)),[[v]]):p("",!0),g("div",u({class:t.cx("thumbnailsViewport"),style:{height:n.isVertical?n.contentHeight:""}},t.ptm("thumbnailsViewport")),[g("div",u({ref:"itemsContainer",class:t.cx("thumbnailItems"),role:"tablist",onTransitionend:e[1]||(e[1]=function(c){return a.onTransitionEnd(c)}),onTouchstart:e[2]||(e[2]=function(c){return a.onTouchStart(c)}),onTouchmove:e[3]||(e[3]=function(c){return a.onTouchMove(c)}),onTouchend:e[4]||(e[4]=function(c){return a.onTouchEnd(c)})},t.ptm("thumbnailItems")),[(s(!0),m(at,null,rt(n.value,function(c,o){return s(),m("div",u({key:"p-galleria-thumbn
456ail-item-".concat(o),class:t.cx("thumbnailItem",{index:o,activeIndex:n.activeIndex}),role:"tab","data-p-active":n.activeIndex===o,"aria-selected":n.activeIndex===o,"aria-controls":n.containerId+"_item_"+o,onKeydown:function(y){return a.onThumbnailKeydown(y,o)}},{ref_for:!0},t.ptm("thumbnailItem"),{"data-p-galleria-thumbnail-item-current":n.activeIndex===o,"data-p-galleria-thumbnail-item-active":a.isItemActive(o),"data-p-galleria-thumbnail-item-start":a.firstItemAciveIndex()===o,"data-p-galleria-thumbnail-item-end":a.lastItemActiveIndex()===o}),[g("div",u({class:t.cx("thumbnail"),tabindex:n.activeIndex===o?"0":"-1","aria-label":a.ariaPageLabel(o+1),"aria-current":n.activeIndex===o?"page":void 0,onClick:function(y){return a.onItemClick(o)}},{ref_for:!0},t.ptm("thumbnail")),[n.templates.thumbnail?(s(),b(I(n.templates.thumbnail),{key:0,item:c},null,8,["item"])):p("",!0)],16,te)],16,Jt)}),128))],16)],16),n.showThumbnailNavigators?x((s(),m("button",u({key:1,class:t.cx("thumbnailNextButton"),disabled:a.isNavForwardDisabled,type:"button","aria-label":a.ariaNextButtonLabel,onClick:e[5]||(e[5]=function(c){return a.navForward(c)})},V(V({},n.nextButtonProps),t.ptm("thumbnailNextButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s(),b(I(n.templates.nextthumbnailicon||(n.isVertical?"ChevronDownIcon":"ChevronRightIcon")),u({class:t.cx("thumbnailNextIcon")},t.ptm("thumbnailNextIcon")),null,16,["class"]))],16,ee)),[[v]]):p("",!0)],16)],16)}ut.render=ne;function T(t){"@babel/helpers - typeof";return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(t)}function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Z(Object(n),!0).forEach(function(i){ie(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ie(t,e,n){return(e=ae(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ae(t){var e=re(t,"string");return T(e)=="symbol"?e:e+""}function re(t,e){if(T(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(T(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ct={name:"GalleriaContent",hostName:"Galleria",extends:j,inheritAttrs:!1,interval:null,emits:["activeitem-change","mask-hide"],data:function(){return{activeIndex:this.$attrs.activeIndex,numVisible:this.$attrs.numVisible,slideShowActive:!1}},watch:{"$attrs.value":function(e){e&&e.length<this.numVisible&&(this.numVisible=e.length)},"$attrs.activeIndex":function(e){this.activeIndex=e},"$attrs.numVisible":function(e){this.numVisible=e},"$attrs.autoPlay":function(e){e?this.startSlideShow():this.stopSlideShow()}},updated:function(){this.$emit("activeitem-change",this.activeIndex)},beforeUnmount:function(){this.slideShowActive&&this.stopSlideShow()},methods:{getPTOptions:function(e){return this.ptm(e,{props:J(J({},this.$attrs),{},{pt:this.pt,unstyled:this.unstyled})})},isAutoPlayActive:function(){return this.slideShowActive},startSlideShow:function(){var e=this;this.interval=setInterval(function(){var n=e.$attrs.circular&&e.$attrs.value.length-1===e.activeIndex?0:e.activeIndex+1;e.activeIndex=n},this.$attrs.transitionInterval),this.slideShowActive=!0},stopSlideShow:function(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1},getPositionClass:function(e,n){var i=["top","left","bottom","right"],r=i.find(function(a){return a===n});return r?"".concat(e,"-").concat(r):""},isVertical:function(){return this.$attrs.thumbnailsPosition==="left"||this.$attrs.thumbnailsPosition==="right"}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{GalleriaItem:st,GalleriaThumbnails:ut,TimesIcon:gt},directives:{ripple:M}};function B(t){"@babel/helpers - typeof";return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(t)}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function et(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
456e%2?tt(Object(n),!0).forEach(function(i){oe(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function oe(t,e,n){return(e=le(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function le(t){var e=se(t,"string");return B(e)=="symbol"?e:e+""}function se(t,e){if(B(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(B(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ue=["id","aria-label","aria-roledescription"],ce=["aria-label"],de=["aria-live"];function he(t,e,n,i,r,a){var v=$("GalleriaItem"),c=$("GalleriaThumbnails"),o=K("ripple");return t.$attrs.value&&t.$attrs.value.length>0?(s(),m("div",u({key:0,id:t.$id,role:"region",class:[t.cx("root"),t.$attrs.containerClass],style:t.$attrs.containerStyle,"aria-label":t.$attrs.ariaLabel,"aria-roledescription":t.$attrs.ariaRoledescription},et(et({},t.$attrs.containerProps),a.getPTOptions("root"))),[t.$attrs.fullScreen?x((s(),m("button",u({key:0,autofocus:"",type:"button",class:t.cx("closeButton"),"aria-label":a.closeAriaLabel,onClick:e[0]||(e[0]=function(f){return t.$emit("mask-hide")})},a.getPTOptions("closeButton")),[(s(),b(I(t.$attrs.templates.closeicon||"TimesIcon"),u({class:t.cx("closeIcon")},a.getPTOptions("closeIcon")),null,16,["class"]))],16,ce)),[[o]]):p("",!0),t.$attrs.templates&&t.$attrs.templates.header?(s(),m("div",u({key:1,class:t.cx("header")},a.getPTOptions("header")),[(s(),b(I(t.$attrs.templates.header)))],16)):p("",!0),g("div",u({class:t.cx("content"),"aria-live":t.$attrs.autoPlay?"polite":"off"},a.getPTOptions("content")),[D(v,{id:t.$id,activeIndex:r.activeIndex,"onUpdate:activeIndex":e[1]||(e[1]=function(f){return r.activeIndex=f}),slideShowActive:r.slideShowActive,"onUpdate:slideShowActive":e[2]||(e[2]=function(f){return r.slideShowActive=f}),value:t.$attrs.value,circular:t.$attrs.circular,templates:t.$attrs.templates,showIndicators:t.$attrs.showIndicators,changeItemOnIndicatorHover:t.$attrs.changeItemOnIndicatorHover,showItemNavigators:t.$attrs.showItemNavigators,autoPlay:t.$attrs.autoPlay,onStartSlideshow:a.startSlideShow,onStopSlideshow:a.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["id","activeIndex","slideShowActive","value","circular","templates","showIndicators","changeItemOnIndicatorHover","showItemNavigators","autoPlay","onStartSlideshow","onStopSlideshow","pt","unstyled"]),t.$attrs.showThumbnails?(s(),b(c,{key:0,activeIndex:r.activeIndex,"onUpdate:activeIndex":e[3]||(e[3]=function(f){return r.activeIndex=f}),slideShowActive:r.slideShowActive,"onUpdate:slideShowActive":e[4]||(e[4]=function(f){return r.slideShowActive=f}),containerId:t.$id,value:t.$attrs.value,templates:t.$attrs.templates,numVisible:r.numVisible,responsiveOptions:t.$attrs.responsiveOptions,circular:t.$attrs.circular,isVertical:a.isVertical(),contentHeight:t.$attrs.verticalThumbnailViewPortHeight,showThumbnailNavigators:t.$attrs.showThumbnailNavigators,prevButtonProps:t.$attrs.prevButtonProps,nextButtonProps:t.$attrs.nextButtonProps,onStopSlideshow:a.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["activeIndex","slideShowActive","containerId","value","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","prevButtonProps","nextButtonProps","onStopSlideshow","pt","unstyled"])):p("",!0)],16,de),t.$attrs.templates&&t.$attrs.templates.footer?(s(),m("div",u({key:2,class:t.cx("footer")},a.getPTOptions("footer")),[(s(),b(I(t.$attrs.templates.footer)))],16)):p("",!0)],16,ue)):p("",!0)}ct.render=he;var U={name:"Galleria",extends:$t,inheritAttrs:!1,emits:["update:activeIndex","update:visible"],container:null,mask:null,documentKeydownListener:null,data:function(){return{containerVisible:this.visible,target:null}},updated:function(){this.fullScreen&&this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.fullScreen&&W(),this.mask=null,this.container&&(E.clear(this.container),this.container=null)},methods:{onBeforeEnter:function(e){E.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal)},onEnter:function(e){this.target=document.activeElement,this.mask.style.zIndex=String(parseInt(e.style.zIndex,10)-1),It(),this.focus(),this.bindGlobalListeners()},onBeforeLeave:function(){!this.isUnstyled&&nt(this.mask,"p-overlay-mask-leave")},onLeave:function(){yt(this.target),this.target=null},onAfterLeave:function(e){E.clear(e),this.containerVisible=!1,W(),this.unbindGlobalListeners()}
456,onActiveItemChange:function(e){this.activeIndex!==e&&this.$emit("update:activeIndex",e)},maskHide:function(){this.$emit("update:visible",!1)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},onKeyDown:function(e){e.code==="Escape"&&this.maskHide()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},bindGlobalListeners:function(){this.fullScreen&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.fullScreen&&this.unbindDocumentKeyDownListener()},focus:function(){var e=this.container.$el.querySelector("[autofocus]");e&&e.focus()}},components:{GalleriaContent:ct,Portal:vt},directives:{focustrap:bt}},me=["aria-modal"];function pe(t,e,n,i,r,a){var v=$("GalleriaContent"),c=$("Portal"),o=K("focustrap");return t.fullScreen?(s(),b(c,{key:0},{default:C(function(){return[r.containerVisible?(s(),m("div",u({key:0,ref:a.maskRef,class:[t.cx("mask"),t.maskClass],role:"dialog","aria-modal":t.fullScreen?"true":void 0},t.ptm("mask")),[D(kt,u({name:"p-galleria",onBeforeEnter:a.onBeforeEnter,onEnter:a.onEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:""},t.ptm("transition")),{default:C(function(){return[t.visible?x((s(),b(v,u({key:0,ref:a.containerRef,onMaskHide:a.maskHide,templates:t.$slots,onActiveitemChange:a.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["onMaskHide","templates","onActiveitemChange","pt","unstyled"])),[[o]]):p("",!0)]}),_:1},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16,me)):p("",!0)]}),_:1})):(s(),b(v,u({key:1,templates:t.$slots,onActiveitemChange:a.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["templates","onActiveitemChange","pt","unstyled"]))}U.render=pe;const fe={class:"relative h-full"},be=["src","alt"],ve={class:"image-container"},ge=["src","alt"],ye=["src","alt"],Ie={__name:"gallery2",props:{images:{type:Array,required:!0},controlsTeleportTo:{type:[Object,String],default:""},size:{type:String,default:"cropcover"},clickEvent:{type:[String,Boolean],default:"none"},onClick:{type:[String,Boolean],default:"none"},sizeClick:{type:String,default:"fit"},pivotV:{type:String,default:"center"},pivotH:{type:String,default:"center"}},setup(t){const e=Ot(),n=F(!1),i=F(0),r=t;function a(l){return l&&typeof l=="object"?l.id??l._id??null:l??null}function v(l,d=4e3){var S,k;if(l&&typeof l=="object"&&typeof l.href=="string"&&l.href)return l.href;const h=a(l);if(h){const P=(S=e.getters)==null?void 0:S["file/src2"];if(typeof P=="function")return((k=P(h,d))==null?void 0:k.src)||""}return""}function c(l,d=400){var S,k;if(l&&typeof l=="object"&&typeof l.href=="string"&&l.href)return l.href;const h=a(l);if(h){const P=(S=e.getters)==null?void 0:S["file/src2"];if(typeof P=="function")return((k=P(h,d))==null?void 0:k.src)||""}return""}function o(l){switch((l||"").toLowerCase()){case"stretch":return"fill";case"fit":return"contain";case"cropcover":default:return"cover"}}function f(l,d){const h=(l||"center").toLowerCase(),S=(d||"center").toLowerCase();return`${h} ${S}`}const y=L(()=>(r.images||[]).map((l,d)=>({id:a(l)||v(l),itemImageSrc:v(l,4e3),thumbnailImageSrc:c(l,400),alt:`Image ${d+1}`}))),G=L(()=>r.onClick==="fullscreen"),dt=L(()=>{const l=o(r.size),d=f(r.pivotH,r.pivotV);return{width:"100%",height:"100%",objectFit:l,objectPosition:d}}),ht=L(()=>{const l=o(r.sizeClick),d=f(r.pivotH,r.pivotV);return{objectFit:l,objectPosition:d}}),_=F([{breakpoint:"1500px",numVisible:5},{breakpoint:"1024px",numVisible:3},{breakpoint:"768px",numVisible:2},{breakpoint:"560px",numVisible:1}]);function mt(){const l=y.value.length||1;i.value=(i.value+1)%l}function pt(){const l=y.value.length||1;i.value=(i.value-1+l)%l}return(l,d)=>(s(),m("div",fe,[D(q(U),{value:y.value,responsiveOptions:_.value,numVisible:5,showThumbnails:!1,showIndicators:!1,showItemNavigators:!1,showItemNavigatorsOnHover:!1,activeIndex:i.value,"onUpdate:activeIndex":d[1]||(d[1]=h=>i.value=h)},{item:C(h=>[g("img",{src:h.item.itemImageSrc,alt:h.item.alt,class:Ct(["w-full",{"cursor-pointer":G.value}]),style:Y(dt.value),onClick:d[0]||(d[0]=S=>G.value&&(n.value=!0))},null,14,be)]),_:1},8,["value","responsiveOptions","activeIndex"]),D(q(U),{visible:n.value,"onUpdate:visible":d[3]||(d[3]=h=>n.value=h),value:y.value,activeIndex:i.value,responsiveOptions:_.value,numVisible:9,circular:!0,fullScreen:!0,showItemNavigators:y.value.length>1,showThumbnails:y.value.length>1,"onUpdate:activeIndex":d[4]||(d[4]=h=>i.value=h)},{item:C(h=>[g("div",ve,[g("img",{src:h.item.itemImageSrc,alt:h.item.alt,class:"fullscreen-image",style:Y(ht.value)},null,12,ge),g("button",{class:"close-button",onClick:d[2]||(d[2]=S=>n.value=!1),"aria-label":"Close fullscreen"}," à ")])]),thumbnail:C(h=>[g("img",{src:h.item.thumbnailImageSrc,alt:h.item.alt,style:{display:"block"},class:"thumbnail-image"},null,8,ye)]),_:1},8,["visible","value","activeIndex","responsiveOptions","showItemNavigators","showThumbnails"]),t.controlsTeleportTo&&y.value.length>1?(s(),b(At,{key:0,to:t.controlsTeleportTo},[g("div",{class:"relative w-full h-full pointer-events-none select-none"},[g("button",{class:"pointer-events-auto absolute left-2 top-1/2 -translate-y-1/2 w-9 h-9 rounded-full cursor-pointer bg-[var(--app-bg)]/50 hover:bg-[var(--app-bg)] transition shadow z-[999]",onClick:pt,"aria-label":"Previous image"}," ⹠"),g("button",{class:"pointer-events-auto absolute right-2 top-1/2 -translate-y-1/2 w-9 h-9 rounded-full cursor-pointer bg-[var(--app-bg)]/50 hover:bg-[var(--app-bg)] transition shadow z-[999]",onClick:mt,"aria-label":"Next image"}," ⺠")])],8,["to"])):p("",!0)]))}},ke=Pt(Ie,[["__scopeId","data-v-7c18772c"]]);export{ke as _};
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.