PageSourceSearch

https://www.aetnastudenthealth.com/etc.clientlibs/aethfe/clientlib…/gallerycarousel-js.b10dcce55b83e40ef40f.js

js aetnastudenthealth.com collected 2026-10-02 14:44:27 UTC 3,084 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[4179],{4517:function(e,a,t){t.r(a),t.d(a,{init:function(){return w}});var l=t(4692),r=t.n(l),s=(t(114),t(3278)),o=t(6356),n=t(9418);const c=e=>{const a=r()(e),t={module:a,carousel:{el:a.find(".carousel"),items:a.find(".carousel-item"),itemsPerSlide:{desktop:3,tablet:2,mobile:1},counter:{el:a.find(".gal-count"),text:{desktop:"{0} - {1} of {2}",tablet:"{0} - {1} of {2}",mobile:"{0} of {2}"}},controls:{next:a.find('[data-cmp-hook-carousel="next"]'),prev:a.find('[data-cmp-hook-carousel="previous"]')}}};i(t),p(t),m(0,t),h(t)},i=e=>{e.carousel.el.carousel({interval:!1,wrap:!1}),u(e),d(e)},u=e=>{const a=(0,o.D)();return a!==e.currentBreakpoint&&(e.currentBreakpoint=a,!0)},d=e=>{let a=0;e.carousel.items.length>e.carousel.itemsPerSlide[e.currentBreakpoint]&&(a=e.carousel.items.length-e.carousel.itemsPerSlide[e.currentBreakpoint]),e.carousel.lastActivableIndex=a},p=e=>{e.carousel.el.on("slid.bs.carousel",(function(a){let t=r()(a.relatedTarget).index();m(t,e),x(e)})),e.module.find(".gallery-control").on("click",(function(a){a.preventDefault(),b(a,e)})),r()(window).on("resize",(()=>{u(e)&&(d(e),m(f(e).index,e),x(e),v(e))}))},m=(e,a)=>{let t=a.carousel.items.length,l=a.carousel.counter.el,r=e+a.carousel.itemsPerSlide[a.currentBreakpoint],s=e+1,o=r>t?t:r,c=a.carousel.counter.text[a.currentBreakpoint];c=c.replace("{0}",s).replace("{1}",o).replace("{2}",t);const i=n.A.sanitize(c);l.html(i)},x=e=>{const a=f(e);a.index===e.carousel.lastActivableIndex&&(e.carousel.controls.next.addClass("disabled"),e.carousel.controls.next.attr("aria-disabled",!0)),0===a.index&&(e.carousel.controls.prev.addClass("disabled"),e.carousel.controls.prev.attr("aria-disabled",!0)),a.index>0&&(e.carousel.controls.prev.removeClass("disabled"),e.carousel.controls.prev.attr("aria-disabled",!1)),a.index<e.carousel.lastActivableIndex&&(e.carousel.controls.next.removeClass("disabled"),e.carousel.controls.next.attr("aria-disabled",!1))},v=e=>{f(e).index>e.carousel.lastActivableIndex&&e.carousel.el.carousel(e.carousel.lastActivableIndex)},b=(e,a)=>{let t=r()(e.currentTarget);t.hasClass("is-prev")?t.hasClass("disabled")||a.carousel.el.carousel("prev"):t.hasClass("disabled")||a.carousel.el.carousel("next")},h=e=>{window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&new window.Granite.author.MessageChannel("cqauthor",window).subscribeRequestMessage("cmp.panelcontainer",(function(a){if(a.data&&"cmp-carousel"===a.data.type&&a.data.id===e.module.data("cmpPanelcontainerId")&&"navigate"===a.data.operation){const t=f(e),l=t.index+2;e.carousel.items.removeClass("cmp-carousel__item--active"),a.data.index>l&&e.carousel.el.carousel(l>e.carousel.lastActivableIndex?l:e.carousel.lastActivableIndex),a.data.index<t.index&&e.carousel.el.carousel(t-2),r()(e.carousel.items[a.data.index]).addClass("cmp-carousel__item--active")}}))},f=e=>{let a;return r().each(e.carousel.items,((e,t)=>{r()(t).hasClass("active")&&(a={index:e,item:t})})),a},w=()=>{(0,s.Eu)("gallerycarousel",c)}}}]);

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.