1import{bc as J,cA as Q,bq as tt,bn as V,bo as et,bd as O,bA as B,cB as D,bu as nt,bZ as H,cC as it,bI as at,bJ as rt,cD as ot,bL as f,bt as P,bN as M,bY as $,bE as C,o as l,c as d,e as v,ag as y,bf as s,h as m,bF as p,i as c,F as G,r as U,a_ as A,f as _,w as K,b8 as lt}from"./entry.lLzgxQwF.js";import{s as W}from"./index.CGJp_Jxh.js";import{s as Y}from"./index.Cp7_zwsj.js";import{s as st}from"./index.CG8ZCxV6.js";import{s as ut}from"./index.DCiZ7q90.js";var dt=` 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-items:dir(rtl) { 196 flex-direction: row-reverse; 197 } 198 199 .p-galleria-thumbnail-item { 200 overflow: auto; 201 display: flex; 202 align-items: center; 203 justify-content: center; 204 cursor: pointer; 205 opacity: 0.5; 206 } 207 208 .p-galleria-thumbnail { 209 outline-color: transparent; 210 } 211 212 .p-galleria-thumbnail-item:hover { 213 opacity: 1; 214 transition: opacity 0.3s; 215 } 216 217 .p-galleria-thumbnail-item-current { 218 opacity: 1; 219 } 220 221 .p-galleria-thumbnails-left .p-galleria-content, 222 .p-galleria-thumbnails-right .p-galleria-content { 223 flex-direction: row; 224 } 225 226 .p-galleria-thumbnails-left .p-galleria-items-container, 227 .p-galleria-thumbnails-right .p-galleria-items-container { 228 flex-direction: row; 229 } 230 231 .p-galleria-thumbnails-left .p-galleria-items-container, 232 .p-galleria-thumbnails-top .p-galleria-items-container { 233 order: 2; 234 } 235 236 .p-galleria-thumbnails-left .p-galleria-thumbnails, 237 .p-galleria-thumbnails-top .p-galleria-thumbnails { 238 order: 1; 239 } 240 241 .p-galleria-thumbnails-left .p-galleria-thumbnails-content, 242 .p-galleria-thumbnails-right .p-galleria-thumbnails-content { 243 flex-direction: column; 244 flex-grow: 1; 245 } 246 247 .p-galleria-thumbnails-left .p-galleria-thumbnail-items, 248 .p-galleria-thumbnails-right .p-galleria-thumbnail-items { 249 flex-direction: column; 250 height: 100%; 251 } 252 253 .p-galleria-indicator-list { 254 display: flex; 255 align-items: center; 256 justify-content: center; 257 padding: dt('galleria.indicator.list.padding'); 258 gap: dt('galleria.indicator.list.gap'); 259 margin: 0; 260 list-style: none; 261 } 262 263 .p-galleria-indicator-button { 264 display: inline-flex; 265 align-items: center; 266 background: dt('galleria.indicator.button.background'); 267 width: dt('galleria.indicator.button.width'); 268 height: dt('galleria.indicator.button.height'); 269 transition: 270 background dt('galleria.transition.duration'), 271 color dt('galleria.transition.duration'), 272 outline-color dt('galleria.transition.duration'), 273 box-shadow dt('galleria.transition.duration'); 274 outline-color: transparent; 275 border-radius: dt('galleria.indicator.button.border.radiu
275s'); 276 margin: 0; 277 padding: 0; 278 border: none; 279 user-select: none; 280 cursor: pointer; 281 } 282 283 .p-galleria-indicator-button:hover { 284 background: dt('galleria.indicator.button.hover.background'); 285 } 286 287 .p-galleria-indicator-button:focus-visible { 288 box-shadow: dt('galleria.indicator.button.focus.ring.shadow'); 289 outline: dt('galleria.indicator.button.focus.ring.width') dt('galleria.indicator.button.focus.ring.style') dt('galleria.indicator.button.focus.ring.color'); 290 outline-offset: dt('galleria.indicator.button.focus.ring.offset'); 291 } 292 293 .p-galleria-indicator-active .p-galleria-indicator-button { 294 background: dt('galleria.indicator.button.active.background'); 295 } 296 297 .p-galleria-indicators-left .p-galleria-items-container, 298 .p-galleria-indicators-right .p-galleria-items-container { 299 flex-direction: row; 300 align-items: center; 301 } 302 303 .p-galleria-indicators-left .p-galleria-items, 304 .p-galleria-indicators-top .p-galleria-items { 305 order: 2; 306 } 307 308 .p-galleria-indicators-left .p-galleria-indicator-list, 309 .p-galleria-indicators-top .p-galleria-indicator-list { 310 order: 1; 311 } 312 313 .p-galleria-indicators-left .p-galleria-indicator-list, 314 .p-galleria-indicators-right .p-galleria-indicator-list { 315 flex-direction: column; 316 } 317 318 .p-galleria-inset-indicators .p-galleria-indicator-list { 319 position: absolute; 320 display: flex; 321 z-index: 1; 322 background: dt('galleria.inset.indicator.list.background'); 323 } 324 325 .p-galleria-inset-indicators .p-galleria-indicator-button { 326 background: dt('galleria.inset.indicator.button.background'); 327 } 328 329 .p-galleria-inset-indicators .p-galleria-indicator-button:hover { 330 background: dt('galleria.inset.indicator.button.hover.background'); 331 } 332 333 .p-galleria-inset-indicators .p-galleria-indicator-active .p-galleria-indicator-button { 334 background: dt('galleria.inset.indicator.button.active.background'); 335 } 336 337 .p-galleria-inset-indicators.p-galleria-indicators-top .p-galleria-indicator-list { 338 top: 0; 339 left: 0; 340 width: 100%; 341 align-items: flex-start; 342 } 343 344 .p-galleria-inset-indicators.p-galleria-indicators-right .p-galleria-indicator-list { 345 right: 0; 346 top: 0; 347 height: 100%; 348 align-items: flex-end; 349 } 350 351 .p-galleria-inset-indicators.p-galleria-indicators-bottom .p-galleria-indicator-list { 352 bottom: 0; 353 left: 0; 354 width: 100%; 355 align-items: flex-end; 356 } 357 358 .p-galleria-inset-indicators.p-galleria-indicators-left .p-galleria-indicator-list { 359 left: 0; 360 top: 0; 361 height: 100%; 362 align-items: flex-start; 363 } 364 365 .p-galleria-mask { 366 position: fixed; 367 top: 0; 368 left: 0; 369 width: 100%; 370 height: 100%; 371 display: flex; 372 align-items: center; 373 justify-content: center; 374 } 375 376 .p-galleria-close-button { 377 position: absolute !important; 378 top: 0; 379 right: 0; 380 display: flex; 381 justify-content: center; 382 align-items: center; 383 overflow: hidden; 384 margin: dt('galleria.close.button.gutter'); 385 background: dt('galleria.close.button.background'); 386 color: dt('galleria.close.button.color'); 387 width: dt('galleria.close.button.size'); 388 height: dt('galleria.close.button.size'); 389 padding: 0; 390 border: none; 391 user-select: none; 392 cursor: pointer; 393 border-radius: dt('galleria.close.button.border.radius'); 394 outline-color: transparent; 395 transition: 396 background dt('galleria.transition.duration'), 397 color dt('galleria.transition.duration'), 398 outline-color dt('galleria.transition.duration'); 399 } 400 401 .p-galleria-close-icon { 402 font-size: dt('galleria.close.button.icon.size'); 403 width: dt('galleria.close.button.icon.size'); 404 height: dt('galleria.close.button.icon.size'); 405 } 406 407 .p-galleria-close-button:hover { 408 background: dt('galleria.close.button.hover.background'); 409 color: dt('galleria.close.button.hover.color'); 410 } 411 412 .p-galleria-close-button:focus-visible { 413 box-shadow: dt('galleria.close.button.focus.ring.shadow'); 414 outline: dt('galleria.close.button.focus.ring.width') dt('galleria.close.button.focus.ring.style') dt('galleria.close.button.focus.ring.color'); 415 outline-offset: dt('galleria.close.button.focus.ring.offset'); 416 } 417 418 .p-galleria-mask .p-galleria-nav-button { 419 position: fixed; 420 top: 50%; 421 } 422
423 .p-items-hidden .p-galleria-thumbnail-item { 424 visibility: hidden; 425 } 426 427 .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active { 428 visibility: visible; 429 } 430 431 .p-galleria-enter-active { 432 animation: p-animate-galleria-enter 300ms cubic-bezier(.19,1,.22,1); 433 } 434 435 .p-galleria-leave-active { 436 animation: p-animate-galleria-leave 300ms cubic-bezier(.19,1,.22,1); 437 } 438 439 .p-galleria-enter-active .p-galleria-nav-button { 440 opacity: 0; 441 } 442 443 @keyframes p-animate-galleria-enter { 444 from { 445 opacity: 0; 446 transform: scale(0.93); 447 } 448 } 449 450 @keyframes p-animate-galleria-leave { 451 from { 452 opacity: 1; 453 transform: scale(1); 454 } 455 to { 456 opacity: 0; 457 transform: scale(0.93); 458 } 459 } 460`,ct={mask:"p-galleria-mask p-overlay-mask p-overlay-mask-enter-active",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"},ht=J.extend({name:"galleria",style:dt,classes:ct}),mt={name:"BaseGalleria",extends:O,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:ht,provide:function(){return{$pcGalleria:this,$parentInstance:this}}};function I(t){return vt(t)||ft(t)||pt(t)||bt()}function bt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 461In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pt(t,e){if(t){if(typeof t=="string")return T(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)?T(t,e):void 0}}function ft(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function vt(t){if(Array.isArray(t))return T(t)}function T(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 Z={name:"GalleriaItem",hostName:"Galleria",extends:O,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=I(f(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=I(f(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,e.length-1)},onTabKey:function(){var e=I(f(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=e.findIndex(function(a){return M(a,"data-p-active")===!0}),i=P(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=I(f(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=P(this.$refs.indicatorContent,'[data-pc-section="indicator"] > [tabindex="0"]');return e.findIndex(function(i){return i===n.parentElement})},changedFocusedIndicator:function(e,n){var i=I(f(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:W,ChevronRightIcon:Y},directives:{ripple:V}},gt=["disabled"],yt=["id","aria-label","aria-roledescription"],It=["disabled"],wt=["aria-label","aria-selected","aria-controls","onClick","onMouseenter","onKeydown","data-
461p-active"],St=["tabindex"];function xt(t,e,n,i,r,a){var b=C("ripple");return l(),d("div",s({class:t.cx("itemsContainer")},t.ptm("itemsContainer")),[v("div",s({class:t.cx("items")},t.ptm("items")),[n.showItemNavigators?y((l(),d("button",s({key:0,type:"button",class:t.cx("prevButton"),onClick:e[0]||(e[0]=function(u){return a.navBackward(u)}),disabled:a.isNavBackwardDisabled},t.ptm("prevButton"),{"data-pc-group-section":"itemnavigator"}),[(l(),m(p(n.templates.previousitemicon||"ChevronLeftIcon"),s({class:t.cx("prevIcon")},t.ptm("prevIcon")),null,16,["class"]))],16,gt)),[[b]]):c("",!0),v("div",s({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?(l(),m(p(n.templates.item),{key:0,item:a.activeItem},null,8,["item"])):c("",!0)],16,yt),n.showItemNavigators?y((l(),d("button",s({key:1,type:"button",class:t.cx("nextButton"),onClick:e[1]||(e[1]=function(u){return a.navForward(u)}),disabled:a.isNavForwardDisabled},t.ptm("nextButton"),{"data-pc-group-section":"itemnavigator"}),[(l(),m(p(n.templates.nextitemicon||"ChevronRightIcon"),s({class:t.cx("nextIcon")},t.ptm("nextIcon")),null,16,["class"]))],16,It)),[[b]]):c("",!0),n.templates.caption?(l(),d("div",s({key:2,class:t.cx("caption")},t.ptm("caption")),[n.templates.caption?(l(),m(p(n.templates.caption),{key:0,item:a.activeItem},null,8,["item"])):c("",!0)],16)):c("",!0)],16),n.showIndicators?(l(),d("ul",s({key:0,ref:"indicatorContent",class:t.cx("indicatorList")},t.ptm("indicatorList")),[(l(!0),d(G,null,U(n.value,function(u,o){return l(),d("li",s({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(g){return a.onIndicatorClick(o)},onMouseenter:function(g){return a.onIndicatorMouseEnter(o)},onKeydown:function(g){return a.onIndicatorKeyDown(g,o)}},{ref_for:!0},t.ptm("indicator",a.getIndicatorPTOptions(o)),{"data-p-active":a.isIndicatorItemActive(o)}),[n.templates.indicator?c("",!0):(l(),d("button",s({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,St)),n.templates.indicator?(l(),m(p(n.templates.indicator),{key:1,index:o,activeIndex:n.activeIndex,tabindex:n.activeIndex===o?"0":"-1"},null,8,["index","activeIndex","tabindex"])):c("",!0)],16,wt)}),128))],16)):c("",!0)],16)}Z.render=xt;function L(t){return Ot(t)||At(t)||Pt(t)||kt()}function kt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 462In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pt(t,e){if(t){if(typeof t=="string")return N(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)?N(t,e):void 0}}function At(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ot(t){if(Array.isArray(t))return N(t)}function N(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 q={name:"GalleriaThumbnails",hostName:"Galleria",extends:O,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
462%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&&$(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&&$(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=f(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=f(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"]'),n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,e.length-1)},onTabKey:function(){var e=L(f(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"]')),n=e.findIndex(function(a){return M(a,"data-p-active")===!0}),i=P(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=L(f(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"]')),n=P(this.$refs.itemsContainer,'[data-pc-section="thumbnailitem"] > [tabindex="0"]');return e.findIndex(function(i){return i===n.parentElement})},changedFocusedIndicator:function(e,n){var i=f(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&&H(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",at(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=` 463 #`.concat(this.containerId,` [data-pc-section="thumbnailitem"] { 464 flex: 1 0 `).concat(100/this.d_numVisible,`% 465 } 466 `);if(this.responsiveOptions&&!this.isUnstyled){this.sortedResponsiveOptions=L(this.responsiveOptions);var i=rt();this.sortedResponsiveOptions.sort(function(b,u){var o=b.breakpoint,h=u.breakpoint;return ot(o,h,-1,i)});for(var r=0;r<this.sortedResponsiveOptions.length;r++){var a=this.sortedResponsiveOptions[r];n+=` 467 @media screen and (max-width: `.concat(a.breakpoint,`) { 468 #`).concat(this.containerId,` .p-galleria-thumbn
468ail-item { 469 flex: 1 0 `).concat(100/a.numVisible,`% 470 } 471 } 472 `)}}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:W,ChevronRightIcon:Y,ChevronUpIcon:ut,ChevronDownIcon:st},directives:{ripple:V}};function w(t){"@babel/helpers - typeof";return w=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},w(t)}function j(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 k(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j(Object(n),!0).forEach(function(i){Ct(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ct(t,e,n){return(e=Bt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bt(t){var e=Lt(t,"string");return w(e)=="symbol"?e:e+""}function Lt(t,e){if(w(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(w(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tt=["disabled","aria-label"],Nt=["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"],Vt=["tabindex","aria-label","aria-current","onClick"],Dt=["disabled","aria-label"];function $t(t,e,n,i,r,a){var b=C("ripple");return l(),d("div",s({class:t.cx("thumbnails")},t.ptm("thumbnails")),[v("div",s({class:t.cx("thumbnailContent")},t.ptm("thumbnailContent")),[n.showThumbnailNavigators?y((l(),d("button",s({key:0,class:t.cx("thumbnailPrevButton"),disabled:a.isNavBackwardDisabled,type:"button","aria-label":a.ariaPrevButtonLabel,onClick:e[0]||(e[0]=function(u){return a.navBackward(u)})},k(k({},n.prevButtonProps),t.ptm("thumbnailPrevButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(l(),m(p(n.templates.previousthumbnailicon||(n.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),s({class:t.cx("thumbnailPrevIcon")},t.ptm("thumbnailPrevIcon")),null,16,["class"]))],16,Tt)),[[b]]):c("",!0),v("div",s({class:t.cx("thumbnailsViewport"),style:{height:n.isVertical?n.contentHeight:""}},t.ptm("thumbnailsViewport")),[v("div",s({ref:"itemsContainer",class:t.cx("thumbnailItems"),role:"tablist",onTransitionend:e[1]||(e[1]=function(u){return a.onTransitionEnd(u)}),onTouchstart:e[2]||(e[2]=function(u){return a.onTouchStart(u)}),onTouchmove:e[3]||(e[3]=function(u){return a.onTouchMove(u)}),onTouchend:e[4]||(e[4]=function(u){return a.onTouchEnd(u)})},t.ptm("thumbnailItems")),[(l(!0),d(G,null,U(n.value,function(u,o){return l(),d("div",s({key:"p-galleria-thumbn
472ail-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(g){return a.onThumbnailKeydown(g,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}),[v("div",s({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(g){return a.onItemClick(o)}},{ref_for:!0},t.ptm("thumbnail")),[n.templates.thumbnail?(l(),m(p(n.templates.thumbnail),{key:0,item:u},null,8,["item"])):c("",!0)],16,Vt)],16,Nt)}),128))],16)],16),n.showThumbnailNavigators?y((l(),d("button",s({key:1,class:t.cx("thumbnailNextButton"),disabled:a.isNavForwardDisabled,type:"button","aria-label":a.ariaNextButtonLabel,onClick:e[5]||(e[5]=function(u){return a.navForward(u)})},k(k({},n.nextButtonProps),t.ptm("thumbnailNextButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(l(),m(p(n.templates.nextthumbnailicon||(n.isVertical?"ChevronDownIcon":"ChevronRightIcon")),s({class:t.cx("thumbnailNextIcon")},t.ptm("thumbnailNextIcon")),null,16,["class"]))],16,Dt)),[[b]]):c("",!0)],16)],16)}q.render=$t;function S(t){"@babel/helpers - typeof";return S=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},S(t)}function E(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 F(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?E(Object(n),!0).forEach(function(i){Kt(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Kt(t,e,n){return(e=jt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jt(t){var e=Et(t,"string");return S(e)=="symbol"?e:e+""}function Et(t,e){if(S(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(S(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var X={name:"GalleriaContent",hostName:"Galleria",extends:O,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:F(F({},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:Z,GalleriaThumbnails:q,TimesIcon:et},directives:{ripple:V}};function x(t){"@babel/helpers - typeof";return x=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},x(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 R(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
472e%2?z(Object(n),!0).forEach(function(i){Ft(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 Ft(t,e,n){return(e=zt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zt(t){var e=Rt(t,"string");return x(e)=="symbol"?e:e+""}function Rt(t,e){if(x(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(x(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ht=["id","aria-label","aria-roledescription"],Mt=["aria-label"],Gt=["aria-live"];function Ut(t,e,n,i,r,a){var b=A("GalleriaItem"),u=A("GalleriaThumbnails"),o=C("ripple");return t.$attrs.value&&t.$attrs.value.length>0?(l(),d("div",s({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},R(R({},t.$attrs.containerProps),a.getPTOptions("root"))),[t.$attrs.fullScreen?y((l(),d("button",s({key:0,autofocus:"",type:"button",class:t.cx("closeButton"),"aria-label":a.closeAriaLabel,onClick:e[0]||(e[0]=function(h){return t.$emit("mask-hide")})},a.getPTOptions("closeButton")),[(l(),m(p(t.$attrs.templates.closeicon||"TimesIcon"),s({class:t.cx("closeIcon")},a.getPTOptions("closeIcon")),null,16,["class"]))],16,Mt)),[[o]]):c("",!0),t.$attrs.templates&&t.$attrs.templates.header?(l(),d("div",s({key:1,class:t.cx("header")},a.getPTOptions("header")),[(l(),m(p(t.$attrs.templates.header)))],16)):c("",!0),v("div",s({class:t.cx("content"),"aria-live":t.$attrs.autoPlay?"polite":"off"},a.getPTOptions("content")),[_(b,{id:t.$id,activeIndex:r.activeIndex,"onUpdate:activeIndex":e[1]||(e[1]=function(h){return r.activeIndex=h}),slideShowActive:r.slideShowActive,"onUpdate:slideShowActive":e[2]||(e[2]=function(h){return r.slideShowActive=h}),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?(l(),m(u,{key:0,activeIndex:r.activeIndex,"onUpdate:activeIndex":e[3]||(e[3]=function(h){return r.activeIndex=h}),slideShowActive:r.slideShowActive,"onUpdate:slideShowActive":e[4]||(e[4]=function(h){return r.slideShowActive=h}),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"])):c("",!0)],16,Gt),t.$attrs.templates&&t.$attrs.templates.footer?(l(),d("div",s({key:2,class:t.cx("footer")},a.getPTOptions("footer")),[(l(),m(p(t.$attrs.templates.footer)))],16)):c("",!0)],16,Ht)):c("",!0)}X.render=Ut;var _t={name:"Galleria",extends:mt,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&&D(),this.mask=null,this.container&&(B.clear(this.container.$el||this.container),this.container=null)},methods:{onBeforeEnter:function(e){B.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&&H(this.mask,"p-overlay-mask-leave-active")},onLeave:function(){nt(this.target),this.target=null},onAfterLeave:function(e){B.clear(e),this.containerVisible=!1,D(),this.unbindGlobalListeners()}
472,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:X,Portal:tt},directives:{focustrap:Q}},Wt=["aria-modal"];function Yt(t,e,n,i,r,a){var b=A("GalleriaContent"),u=A("Portal"),o=C("focustrap");return t.fullScreen?(l(),m(u,{key:0},{default:K(function(){return[r.containerVisible?(l(),d("div",s({key:0,ref:a.maskRef,class:[t.cx("mask"),t.maskClass],role:"dialog","aria-modal":t.fullScreen?"true":void 0},t.ptm("mask")),[_(lt,s({name:"p-galleria",onBeforeEnter:a.onBeforeEnter,onEnter:a.onEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:""},t.ptm("transition")),{default:K(function(){return[t.visible?y((l(),m(b,s({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]]):c("",!0)]}),_:1},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16,Wt)):c("",!0)]}),_:1})):(l(),m(b,s({key:1,templates:t.$slots,onActiveitemChange:a.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["templates","onActiveitemChange","pt","unstyled"]))}_t.render=Yt;export{_t 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.