PageSourceSearch

https://www.wymedicaid.org/etc.clientlibs/dmp/clientlibs/clientlib…/o5-image-tabs.04c81aaee16a6114b980.js

js wymedicaid.org collected 2026-10-05 06:42:08 UTC 11,799 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[1408],{40585(e,t,a){a.r(t),a.d(t,{default:()=>f});var r=a(77963),i=a(63736);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function l(e,t,a){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,a||[],u(e).constructor):t.apply(e,a))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}const f=function(e){function t(e){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=l(this,t,[e])).store={ui:{jsTabParent:(0,i.A)(".jsImageTabParent"),imageList:(0,i.A)(".o5-image-tabs__imagelist"),jsImageTab:(0,i.A)(".jsImageTab"),jsTabPanelWrapper:(0,i.A)(".jsTabPanelWrapper"),jsTabPanel:(0,i.A)(".jsTabPanel"),tabSelected:(0,i.A)(".o5-image-tabs__tab--selected"),hideData:(0,i.A)(".o5-image-tabs__hide-data"),showData:(0,i.A)(".o5-image-tabs__show-data"),animateRemove:(0,i.A)(".o5-image-tabs__remove"),animateAdd:(0,i.A)(".o5-image-tabs__add"),jsImageTabsImages:(0,i.A)(".jsImageTabsImages"),jsSliderRight:(0,i.A)(".jsSlider-right"),jsSliderLeft:(0,i.A)(".jsSlider-left")},selectedOption:"",hasContent:!0,lastClicked:null,panelMoving:!1,cursorID:null},a.init(),a.setup(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),a=t,r=[{key:"setup",value:function(){this.store.ui.jsImageTab.on("click",this.clickImageTab.bind(this)),this.store.ui.jsImageTab.on("keydown",this.keydownListenerDesktop.bind(this)),this.store.ui.jsImageTab.on("keyup",this.keyupListenerDesktop.bind(this)),this.store.ui.jsSliderRight.on("click",this.sliderOverImage.bind(this)),this.store.ui.jsSliderLeft.on("click",this.sliderOverImageLeft.bind(this)),this.store.ui.jsSliderRight.on("keydown",this.sliderOverImage.bind(this)),this.store.ui.jsSliderLeft.on("keydown",this.sliderOverImageLeft.bind(this)),window.addEventListener("resize",this.loadTabs.bind(this)),window.addEventListener("resize",this.findHeight.bind(this)),window.addEventListener("O5_ONE_COLUMN_TAB_EXPANDED_EVENT",this.loadTabs.bind(this,"")),window.addEventListener("O5_ONE_COLUMN_TAB_EXPANDED_EVENT",this.findHeight.bind(this))}},{key:"init",value:function(){var e=this;this.findHeight(),this.loadTabs("loading"),setTimeout(function(){e.findHeight(),e.loadTabs("loading")},1e3);var t=0;document.querySelectorAll(".o5-ImageTabs-container").forEach(function(e){var t,a,r=0,i=0,n=(t=Math.random(),(a=t.toString()).slice(a.length-5));e.querySelectorAll(".jsImageTab").forEach(function(e){e.setAttribute("data-tab",r+"_"+n),e.setAttribute("aria-controls","panel"+r+"_"+n),e.setAttribute("id","tab"+r+"_"+n),r++}),e.querySelectorAll(".jsTabPanel").forEach(function(e){e.setAttribute("aria-labelledby","tab"+i+"_"+n),e.setAttribute("id","panel"+i+"_"+n),i++})}),document.querySelectorAll(".o5-image-tabs__slider").forEach(function(e){e.classList.add("o5-image-tabs__slider-"+t),t++});var a=null,r=function(){null===a&&(a=window.requestAnimationFrame(function(){a=null,function(){var e,t=document.querySelectorAll(".jsSlider-left"),a=document.querySelectorAll(".jsSlider-right"),r=null===(e=document.getElementById("main-content"))||void 0===e?void 0:e.offsetWidth;if(r&&r<540){var i=document.querySelectorAll(".jsImageTab"),n=document.querySelector(".jsImageTab:last-child");i[0].classList.contains("o5-image-tabs__tab--selected")?t.forEach(function(e){e.style.display="none"}):t.forEach(function(e){e.style.display="block"}),n&&n.classList.contains("o5-image-tabs__tab--selected")?a.forEach(function(e){e.style.display="none"}
1):a.forEach(function(e){e.style.display="block"})}document.querySelectorAll(".jsImageTab").forEach(function(e){var i=e;r&&r<540?e.setAttribute("tabindex","-1"):e.classList.contains("o5-image-tabs__tab--selected")&&e.setAttribute("tabindex","0"),r&&r>=540?(i.style.display="block",t.forEach(function(e){e.style.display="none"}),a.forEach(function(e){e.style.display="none"})):e.classList.contains("o5-image-tabs__tab--selected")?(i.style.display="block",i.blur()):i.style.display="none"})}(),e.findHeight(),e.loadTabs()}))},i=function(){var e=document.getElementById("main-content"),t=e?e.offsetWidth:-1;r(),e&&"undefined"!=typeof ResizeObserver&&new ResizeObserver(function(){var a=e.offsetWidth;a!==t&&(t=a,r())}).observe(e)};"complete"===document.readyState?i():window.addEventListener("load",i,{once:!0}),document.querySelectorAll(".jsSlider-left").forEach(function(e){e.style.display="none"})}},{key:"findHeight",value:function(){document.querySelectorAll(".jsImageTabParent").forEach(function(e){var t=0,a=e.querySelectorAll(".jsImageTabsImages .o5-image-tabs__name");a.forEach(function(e){e.style.removeProperty("--o5-image-tabs-name-min-height")}),a.forEach(function(e){var a=e.getBoundingClientRect().height;a>t&&(t=a)}),a.forEach(function(e){e.style.setProperty("--o5-image-tabs-name-min-height",t+"px")})})}},{key:"loadTabs",value:function(e){document.querySelectorAll(".jsImageTabParent").forEach(function(t){var a=0;if("loading"===e){var r=t.querySelector(".jsImageTab");r&&(r.setAttribute("tabindex","0"),r.setAttribute("aria-selected","true"),r.classList.add("o5-image-tabs__tab--selected"))}t.querySelectorAll(".jsTabPanelWrapper").forEach(function(e){e.style.height=""}),t.querySelectorAll(".jsTabPanel").forEach(function(t,r){var i=t;0===r?("loading"===e&&(i.setAttribute("tabindex","0"),i.classList.remove("o5-image-tabs__hide-data"),i.classList.add("o5-image-tabs__show-data")),a=i.offsetHeight):(i.style.opacity="0",i.style.display="block",i.offsetHeight>a&&(a=i.offsetHeight),i.removeAttribute("style"))}),t.querySelectorAll(".jsTabPanelWrapper").forEach(function(e){e.style.height=a+"px"})})}},{key:"sliderOverImage",value:function(e){if("keydown"==e.type&&(13===e.keyCode||32===e.keyCode)||"click"==e.type){e.preventDefault(),e.stopImmediatePropagation();var t=e.currentTarget.offsetParent,a=e.currentTarget.offsetParent.children[0],r=a.children.length,i=a.querySelector(".o5-image-tabs__tab--selected"),n=(i?i.id:"").match(/\d+/g);if(!n)return;var o=parseInt(n[0])+1,s="tab"+o+"_"+n[1],l=a.querySelector("#"+s);if(o<r){Array.from(a.children).filter(function(e){return e.classList.contains("jsImageTab")}).forEach(function(e){e.style.display="none"}),l&&(l.style.display="block",l.click());var c=t.querySelector(".jsSlider-left");c&&(c.style.display="block")}var u=t.querySelector(".jsSlider-right"),d=t.querySelector(".jsSlider-left");o+1==r?(u&&(u.style.display="none"),d&&d.focus()):u&&(u.style.display="block")}}},{key:"sliderOverImageLeft",value:function(e){if("keydown"==e.type&&(13===e.keyCode||32===e.keyCode)||"click"==e.type){e.preventDefault(),e.stopImmediatePropagation();var t=e.currentTarget.offsetParent,a=e.currentTarget.offsetParent.children[0],r=a.querySelector(".o5-image-tabs__tab--selected"),i=(r?r.id:"").match(/\d+/g);if(!i)return;var n=parseInt(i[0])-1,o="tab"+n+"_"+i[1],s=a.querySelector("#"+o);if(n>=0){Array.from(a.children).filter(function(e){return e.classList.contains("jsImageTab")}).forEach(function(e){e.style.display="none"}),s&&(s.style.display="block",s.click());var l=t.querySelector(".jsSlider-right");l&&(l.style.display="block")}var c=t.querySelector(".jsSlider-right"),u=t.querySelector(".jsSlider-left");0==n?(u&&(u.style.display="none"),c&&c.focus()):u&&(u.style.display="block")}}},{key:"keydownListenerDesktop",value:function(e){var t=35,a=36,r=e.keyCode,i=e.currentTarget.closest(".jsImageTabsImages");switch(r){case t:e.preventDefault();var n=Array.from(i.children).filter(function(e){return e.classList.contains("jsImageTab")}),o=n[n.length-1];o&&o.focus();break;case a:e.preventDefault();var s=Array.from(i.children).filter(function(e){return e.classList.contains("jsImageTab")})[0];s&&s.focus()}}},{key:"keyupListenerDesktop",value:function(e){var t=e.keyCode,a=37,r=38,i=39,n=40;switch(t){case a:case i:var o=!1;
1if(t!==a&&t!==i||(o=!0),o){var s=e.currentTarget.closest(".jsImageTabsImages"),l={37:-1,38:-1,39:1,40:1},c=e.keyCode;if(l[c]){var u=e.target,d=Array.from(s.children).filter(function(e){return e.classList.contains("jsImageTab")});if(null!==u.getAttribute("data-tab")){var f=parseInt(u.getAttribute("data-tab"))+l[c];d[f]?d[f].focus():c===a||c===r?d[d.length-1]&&d[d.length-1].focus():c!==i&&c!==n||d[0]&&d[0].focus()}}}}}},{key:"trackCursor",value:function(e){this.store.cursorID=e.currentTarget.id}},{key:"clickImageTab",value:function(e){e.stopImmediatePropagation(),e.preventDefault();var t=e.currentTarget.closest(".jsImageTabParent"),a=e.currentTarget.closest(".jsImageTabsImages"),r=e.currentTarget.getAttribute("data-tab"),i="#tab".concat(r),n="#panel".concat(r),o=t.querySelector(".o5-image-tabs__tab--selected"),s=o?o.getAttribute("data-tab"):null,l="#tab".concat(s),c="#panel".concat(s);if(!this.store.panelMoving&&this.store.lastClicked!==r&&n!==c){this.store.lastClicked=r,this.store.panelMoving=!0;var u=document.querySelector(l);u&&(u.classList.remove("o5-image-tabs__tab--selected"),u.setAttribute("tabindex","-1"),u.setAttribute("aria-selected","false"));var d=document.querySelector(i);d&&(d.classList.add("o5-image-tabs__tab--selected"),d.setAttribute("tabindex","0"),d.setAttribute("aria-selected","true"));var f=document.querySelector(c);f&&f.classList.add("o5-image-tabs__remove");var b=document.querySelector(n);b&&(b.classList.remove("o5-image-tabs__hide-data"),b.classList.add("o5-image-tabs__show-data")),this.removeAnimate(n),this.hidePanel(c,"o5-image-tabs__show-data","o5-image-tabs__remove","o5-image-tabs__hide-data")}"mouseover"==e.type&&Array.from(a.children).filter(function(e){return e.classList.contains("jsImageTab")}).forEach(function(e){e.blur()})}},{key:"removeAnimate",value:function(e){setTimeout(function(){var t=document.querySelector(e);t&&t.setAttribute("tabindex","0")},10)}},{key:"hidePanel",value:function(e,t,a,r){var i=this.trackCursor.bind(this);document.querySelectorAll(".jsImageTab").forEach(function(e){e.addEventListener("mousemove",i)});var n=document.querySelector(e);n&&(n.setAttribute("tabindex","-1"),n.classList.remove(t),n.classList.remove(a),n.classList.add(r)),this.store.panelMoving=!1,document.querySelectorAll(".jsImageTab").forEach(function(e){e.removeEventListener("mousemove",i)})}}],r&&o(a.prototype,r),n&&o(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a;var a,r,n}(r.o6)}}]);

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.