(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{423:function(e,t){var n;n={selectors:{shown:"js--shown",statusShown:"js--target-shown",hidden:"js--hidden",statusHidden:"js--target-hidden",attrToggle:"data-toggle-target-id",attrShow:"data-show-target-id",attrHide:"data-hide-target-id"},evs:{beforeShow:"viewToggler.beforeShow",beforeHide:"viewToggler.beforeHide",afterShow:"viewToggler.afterShow",afterHide:"viewToggler.afterHide",triggerHide:"viewToggler.trigger.hide",triggerShow:"viewToggler.trigger.show"},show:function show(e,t){function action(){e.classList.remove(n.selectors.hidden),e.classList.add(n.selectors.shown),n.setFocusIn(e),document.dispatchEvent(new CustomEvent(n.evs.afterShow,{detail:{element:e,trigger:t},cancelable:!1}))}if(e){if(!document.dispatchEvent(new CustomEvent(n.evs.beforeShow,{detail:{element:e,trigger:t},cancelable:!0})))return;t.classList.contains("accordion")&&$&&$.fn?$(e).slideDown("fast",(function(){action()})):action(),t.classList.remove(n.selectors.statusHidden),t.classList.add(n.selectors.statusShown),e.originalTrigger=t}},hide:function hide(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];function action(){e.classList.remove(n.selectors.shown),e.classList.add(n.selectors.hidden),document.dispatchEvent(new CustomEvent(n.evs.afterHide,{detail:{element:e,trigger:t},cancelable:!1})),e.originalTrigger&&r&&e.originalTrigger.focus()}if(e){var s=document.dispatchEvent(new CustomEvent(n.evs.beforeHide,{detail:{element:e,trigger:t},cancelable:!0}));if(!s)return;t.classList.contains("accordion")&&$&&$.fn?$(e).slideUp("fast",(function(){action()})):action(),t.classList.remove(n.selectors.statusShown),t.classList.add(n.selectors.statusHidden)}},parentByAttribute:function parentByAttribute(e,t){var n=0;return function traverseUp(e){return n>=5||!e.parentElement?null:e.parentElement.getAttribute(t)?e.parentElement:(n++,traverseUp(e.parentElement))}(e)},getTarget:function getTarget(e,t){if(e.getAttribute(t))return e;var r=n.parentByAttribute(e,t);return r||void 0},hideAll:function hideAll(){var e=document.querySelectorAll("."+n.selectors.shown);Array.prototype.slice.call(e).map((function(e){e.classList.remove(n.selectors.shown),e.classList.add(n.selectors.hidden)}));var t=document.querySelectorAll("."+n.selectors.statusShown);t=Array.prototype.slice.call(t).map((function(e,r){e.classList.remove(n.selectors.statusShown),t.length-1===r&&e.focus()}))},control:function control(e){var t=n.getTarget(e.target,n.selectors.attrShow);if(t){e.preventDefault();var r=document.getElementById(t.getAttribute(n.selectors.attrShow));n.show(r,t)}var s=n.getTarget(e.target,n.selectors.attrHide);if(s){e.preventDefault();var a=document.getElementById(s.getAttribute(n.selectors.attrHide));n.hide(a,s)}var c=n.getTarget(e.target,n.selectors.attrToggle);if(c){e.preventDefault();var l=document.getElementById(c.getAttribute(n.selectors.attrToggle));if(l.classList.contains(n.selectors.shown))n.hide(l,c);else if(l.classList.contains(n.selectors.hidden))n.show(l,c);else{var u=l.getBoundingClientRect(),h=u.height,p=u.width;h&&p?n.hide(l,c):h&&p||n.show(l,c)}}},setFocusIn:function setFocusIn(e){var t=e.querySelectorAll('button, [href]:not(.sr-only-focusable), input, select, textarea, [tabindex]:not([tabindex="-1"])');t[0]&&t[0].focus()},triggerListener:function triggerListener(e){if(e.detail.targets.length){var t=e.type===n.evs.triggerHide?"hide":"show";e.detail.targets.map((function(e){n[t](e.target,e.trigger,!1)}))}},init:function init(){document.body.addEventListener("click",n.control),document.body.addEventListener("keydown",(function(e){var t=e.keyCode||e.which;13===t&&n.control(e),27===t&&n.hideAll()})),document.addEventListener(n.evs.triggerHide,n.triggerListener),document.addEventListener(n.evs.triggerShow,n.triggerListener)}},UX.viewToggler=n},424:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(14),s=n.n(r),a=n(3),c=n.n(a),l=n(4),u=n.n(l),h=function(){return u()((function SubduedSidebarHeight(){c()(this,SubduedSidebarHeight),this.selectors={selector:".js--subdue-sidebar-height",selectorContent:".js--subdue-content-height",controlSelector:".js--release-sidebar",viewMore:".js--release-sidebar__open",viewLess:".js--release-sidebar__close"},this.elements={sidebar:null,blocks:null,viewMore:null,viewLess:null},this.setElements(),this.init()}),[{key:"setElements",value:function setElements(){this.elements.sidebar=document.querySelector(this.selectors.selector),this.elements.blocks=document.querySelectorAll(this.selectors.selectorContent),this.elements.viewMore=document.querySelector(this.selectors.viewMore),this.elements.viewLess=document.querySelector(this.selectors.viewLess)}},{key:"init",value:function init(){var e=this;if(this.elements.sidebar){var t=this.elements.sidebar.getBoundingClientRect().height+10,n=s()(this.elements.blocks).reduce((function(e,t){return Math.max(t.getBoundingClientRect().height,e)}),0);this.elements.sidebar.style.maxHeight=n+"px";var r=document.querySelector(this.selectors.controlSelector);r&&(r.dataset.id="adv-search-view-more-tips",r.addEventListener("click",(function(s){s.preventDefault(),e.elements.sidebar.classList.contains(e.selectors.selector+"--shown")?(e.elements.sidebar.classList.remove(e.selectors.selector+"--shown"),e.elements.sidebar.style.maxHeight=n+"px",document.querySelector(e.selectors.controlSelector).classList.add("btn-collapsed"),r.dataset.id="adv-search-view-more-tips",r.querySelector(".icon-arrow_up").setAttribute("class","icon-arrow_down"),e.elements.viewMore.style.display="block",e.elements.viewLess.style.display="none"):(e.elements.sidebar.classList.add(e.selectors.selector+"--shown"),e.elements.sidebar.style.maxHeight=t+"px",e.elements.sidebar.style.height=t+"px",document.querySelector(e.selectors.controlSelector).classList.remove("btn-collapsed"),r.dataset.id="adv-search-view-less-tips",r.querySelector(".icon-arrow_down").setAttribute("class","icon-arrow_up"),e.elements.viewMore.style.display="none",e.elements.viewLess.style.display="block")})))}}}])}()},425:function(e,t,n){"use strict";var r=n(14),s=n.n(r);n(426);!function(e){var t=e.accordion||{};t.offset=185,t.selectors=t.selectors||{},t.selectors.expandableAccordion=".expandable-accordion",t.selectors.expandAllTrigger=".expandable-accordion .expand-all",t.selectors.expandAllTriggerIcon="img",t.selectors.expandAllTriggerText="span",t.classes=t.classes||{},t.classes.ICON_VIEW="icon-view",t.classes.ICON_HIDE="icon-hide",t.classes.JS_OPEN="js--open",t.classes.ACCORDION_EMPTY="accordion--empty",t.texts=t.texts||{},t.texts.SHOW_ALL="Show all sections",t.texts.HIDE_ALL=" Hide all sections",t.texts.EXPAND_ALL="Expand All",t.hideAllBoolean=!1,t.additionalControls=function(){if(t.alternativeLabel(),t.hideEmpty(),t.removeEmptyAccordion(),t.$controllers.length>0){var e=!!t.$controllers.toArray().find((function(e){return e.classList.contains(t.classes.JS_OPEN)})),n=t.$controllers.toArray().find((function(e){return e.nextElementSibling&&e.nextElementSibling.querySelector(".active")}));e||(n?t.open(n):t.openHash()||t.openFirst())}t.setHash()},t.showAllUpdateLabel=function(){var e=$(t.selectors.expandAllTrigger)[0];if(e){new MutationObserver((function mutate(n){$(e).html()===t.texts.EXPAND_ALL&&$(e).text(t.texts.SHOW_ALL)})).observe(e,{characterData:!1,attributes:!1,childList:!0,subtree:!1})}},t.alternativeLabel=function(){var e=document.querySelector(".accordion--alternative-label");e&&new MutationObserver((function mutateChilds(n){if(!$(e.target).text().trim().length||$(e.target).is(":empty")){e.classList.add(t.classes.ACCORDION_EMPTY);var r=e.parentElement.querySelector("[data-alternative]");r.innerHTML=r.dataset.alternative}})).observe(e,{childList:!0})},t.hideEmpty=function(){var e=function fn(e,t){var n=this.getAttribute("aria-controls"),r=$("#"+n);!r.find(".dropzone").length&&(!r.text().trim().length||r.is(":empty"))&&(r.remove(),this.remove())};t.$controllers.each(e),t.$tabbedControllers.each(e)},t.removeEmptyAccordion=function(){t.$elements.each((function fn(e,t){if(!$(this).find(".dropzone").length&&(!$(this).text().trim().length||$(this).is(":empty"))){var n=this.parentElement;this.remove(),n.innerHTML=n.innerHTML.trim()}}))},t.getHash=function(){return window.location.hash},t.open=function(e){e.classList.contains(t.classes.JS_OPEN)||"none"!==window.getComputedStyle(e).display&&"modal"!==e.getAttribute("data-toggle")&&$(e).click()},t.openHash=function(){var e=t.getHash(),n=document.querySelector('a[href="'+e+'"]');return!(!e||!n)&&(window.scrollTo({top:n.getBoundingClientRect().top-t.offset,behavior:"smooth"}),t.open(n),!0)},t.openFirst=function(){var e=t.$controllers[0];t.open(e)},t.setHash=function(){$(".accordion__control").click((function(e){$(this).hasClass(t.classes.JS_OPEN)?(e.preventDefault(),window.history.replaceState(null,null," ")):this.hash&&(window.location.hash=this.hash)}))},t.on.checkExpandAll=function(e,n,r){if(r.length){var a=r.find(".expand-all"),c=a.find(t.selectors.expandAllTriggerIcon),l=a.find(t.selectors.expandAllTriggerText),u=r.find(".accordion__control"),h=s()(u).reduce((function(e,t){return e&&"true"===t.getAttribute("aria-expanded")}),!0);l.text(t.texts.SHOW_ALL);var p=c[0];p.setAttribute("src","/specs/products/sage/releasedAssets/images/show.svg"),h&&(l.text(t.texts.HIDE_ALL),p.setAttribute("src","/specs/products/sage/releasedAssets/images/hide.svg"))}},t.on.toggle.all=function(e){var n=e.closest(t.selectors.expandableAccordion),r=!("Hide all sections"===e.text().trim());if(r){n.find(".accordion-tabbed__tab").addClass(t.classes.JS_OPEN),n.find(".accordion__control, .accordion-tabbed__control").addClass(t.classes.JS_OPEN).attr("aria-expanded",r),n.find(".accordion__content, .accordion-tabbed__content").slideDown(200);var s=$.Event("accordion:expandedAll");$(document).trigger(s,[e,n]);var a=n.find("[data-ajaxLoaded]");a.each((function(){"true"!==a.attr("[data-ajaxLoaded]")&&a.find(".accordion-lazy").length&&t.getAccordionContent(a.find(".accordion-lazy"))}))}else n.find(".accordion-tabbed__tab").removeClass(t.classes.JS_OPEN),n.find(".accordion__control, .accordion-tabbed__control").removeClass(t.classes.JS_OPEN).attr("aria-expanded",r),n.find(".accordion__content, .accordion-tabbed__content").slideUp(200);t.on.checkExpandAll(e,r,n)},e.accordion=t}(UX)},427:function(e,t){!function(e){var t={accordions:null,selectors:{ACCORDION:".bs-accordion",ACCORDION_TRIGGER:".bs-accordion__control",ACCORDION_CONTENT:".bs-accordion__content",EXPANDABLE_ACCORDION:".expandable-accordion",EXPAND_ALL_TRIGGER:".expand-all"},classes:{EXPANDABLE_ACCORDION:"expandable-accordion",COLLAPSED:"collapsed",SHOW:"show"},texts:{SHOW_ALL:"Show all sections",HIDE_ALL:"Hide all sections"},init:function init(){var e=this;this.accordions=document.querySelectorAll(this.selectors.ACCORDION),this.accordions.length&&this.accordions.forEach((function(t,n){e.control(t)}))},control:function control(e){var t=this;this.hideEmpty(e),this.removeEmptyAccordion(e);var n=e.parentElement;(null==n?void 0:n.classList.contains(this.classes.EXPANDABLE_ACCORDION))&&(n.trigger=n.querySelector(this.selectors.EXPAND_ALL_TRIGGER),n.accordion=n.querySelector(this.selectors.ACCORDION),n.trigger.addEventListener("click",(function(e){var r=e.target.closest("button"),s=r.textContent.trim();t.onExpandAllClick.call(t,n,s,r)})),$(e).on("hidden.bs.collapse",(function(e){t.onCollapseHidden.call(t,n)})),$(e).on("show.bs.collapse",(function(e){t.onCollapseShow.call(t,n)})))},onCollapseHidden:function onCollapseHidden(e){e.trigger.classList.contains("expand-all")||e.trigger.setAttribute("aria-expanded","false"),e.trigger.querySelector("img").setAttribute("src","/specs/products/sage/releasedAssets/images/show.svg"),e.trigger.querySelector("span").innerText=this.texts.SHOW_ALL},onCollapseShow:function onCollapseShow(e){e.trigger.setAttribute("aria-expanded","true"),e.trigger.querySelector("img").setAttribute("src","/specs/products/sage/releasedAssets/images/hide.svg"),e.trigger.querySelector("span").innerText=this.texts.HIDE_ALL},onExpandAllClick:function onExpandAllClick(e,t,n){"Hide all sections"===t?this.toggleAll.call(this,e,!0,n):"Show all sections"===t&&this.toggleAll.call(this,e,!1,n)},toggleAll:function toggleAll(e,t,n){var r=e.accordion.getAttribute("id");$("#".concat(r," .collapse")).each((function(r,s){t&&$(s).hasClass("show")?($(s).collapse("hide"),e.trigger.querySelector("img").setAttribute("src","/specs/products/sage/releasedAssets/images/show.svg")):t||$(s).hasClass("show")||($(s).collapse("show"),e.trigger.querySelector("img").setAttribute("src","/specs/products/sage/releasedAssets/images/hide.svg")),n.removeAttribute("aria-expanded")}))},hideEmpty:function hideEmpty(e){e.querySelectorAll(this.selectors.ACCORDION_TRIGGER).forEach((function fn(e,t){var n=e.getAttribute("aria-controls"),r=$("#"+n);!r.find(".dropzone").length&&(!r.text().trim().length||r.is(":empty"))&&(r.remove(),$(e).remove())})),e.querySelectorAll(this.selectors.ACCORDION_CONTENT).forEach((function contentFn(e,t){e.innerText||$(e).remove()}))},removeEmptyAccordion:function removeEmptyAccordion(e){if(!$(e).find(".dropzone").length&&(!$(e).text().trim().length||$(e).is(":empty"))){var t=e.parentElement;e.remove(),t.remove()}}};e.bsAccordion=t}(UX)},428:function(e,t,n){"use strict";n(429);!function(e){var t=(e||{}).sidebarSections;if(document.querySelector(".toc-dropdown-data")){t.init=function(){var e=$(".toc-dropdown-data").attr("data-toc-dropdown-li");e?(t.initSections(e),t.set.selectedSection(),t.controller(),t.isMobile||t.sectionTitleClick()):0===$(".sections-navigation").find(".article-tabs-block-container").length&&$(".sections-navigation").hide()},t.initSections=function(e){$(".sections-block-container").removeClass("not-visible"),$(".article-navigation-items-separator").removeClass("not-visible");var n=document.createElement("textarea");n.innerHTML=e;var r=n.value;t.$block.html(r),$(".actionsbar__has__sections .sections-block-container").css({"max-height":"calc(100vh - "+$("header").height()+"px)"})},t.isCurrentPageLink=function(e){if(e.startsWith("#"))return!0;var t=document.createElement("a");return t.href=e,t.pathname===window.location.pathname&&t.search===window.location.search};var n=t.scroll;t.controller=function(){$(document).on("click",".sections-block a",(function(e){var r=$(this),s=r.attr("href");if(!r.parents().hasClass("sections-block__external-link")&&t.isCurrentPageLink(s)){e.preventDefault(),n(r,this.hash);var a=r.parents(".js--open");a.length>0&&(a.prev("[data-db-target-for]").click(),a.find(".w-slide__back").click())}}));var r=$(window),s=$(".sections-navigation"),a=$("footer");r.on("scroll",(function(){var n=a.offset().top,c=$(window).scrollTop()+$(window).height(),l=$("header").height();c>=n?s.css("max-height","calc(100vh - ".concat(l+c-n,"px)")):s.css("max-height","");var u,h,p=e.sidebarSections.$scrollPoints,m=t.get.fixedpageElementsHeight(),v=r.scrollTop()+r.height()/2,g=r.scrollTop()+m/2,_=p.filter((function(e,t){return $(t).offset().top>g&&$(t).offset().top=document.body.scrollHeight&&!t.isMobile){if(e.sidebarSections.$block.find("li").last().hasClass("sections-block__external-link"))return;e.sidebarSections.$block.find("a").removeClass("active").last().addClass("active")}}else e.sidebarSections.$block.find("a").removeClass("active")}))}}else t.get.htmlSection=function(e){var t=e[0].innerHTML;return"
  • ').concat(t,"
  • ")};e.sidebarSections=t}(UX)},430:function(e,t,n){"use strict";n(431);!function(e){var t=e.articleActionsbar||{};t.selectors=t.selectors||{},t.selectors._CHECK_ALL_CHECKBOX="#action-bar-select-all",t.selectors._CHECKBOX='.issue-item__checkbox-container [type="checkbox"]',t.selectors._TOGGLE_BUTTON="a.export-citation",t.event=new CustomEvent("searchResultCheckBox.change"),t.controls=function(){var e,n=this;this.selectAllBox=document.querySelector(this.selectors._CHECK_ALL_CHECKBOX),this.checkboxes=document.querySelectorAll(this.selectors._CHECKBOX),this.resetCheckAllCheckbox();var r=this.selectAllBox,s=function onSelectAllClicked(e){var n,r=this.checked;null===(n=t.checkboxes)||void 0===n||n.forEach((function(e){return e.checked=r})),t.hideBtnsOrDisableSelect(),document.body.dispatchEvent(t.event)};this.selectAllBox.addEventListener("click",s),this.selectAllBox.addEventListener("keydown",(function(e){13===e.keyCode&&(e.preventDefault(),r.checked=!r.checked,s.call(r))})),null===(e=t.checkboxes)||void 0===e||e.forEach((function(e){var t=function handleCheckboxClick(e){n.selectAllBox.checked=n.allItemsSelected(),n.hideBtnsOrDisableSelect(),document.body.dispatchEvent(n.event)};e.addEventListener("click",t,n),e.addEventListener("keydown",(function(e){13===e.keyCode&&(e.target.checked=!e.target.checked,t())}),n)})),t.btns.forEach((function(e){t.bulkAction.length>0?n.bulkAction.addEventListener("change",(function(e){t.form.length&&t.hasSelectedItems()&&(t.form.action=this.value,t.form.submit())})):e.addEventListener("click",(function(e){e.preventDefault(),this.hasAttribute("data-toggle")||"OPTION"===this.nodeName||(t.form.action=this.href,t.form.submit())}))}),this),document.body.addEventListener("searchResultCheckBox.change",t.setToggleButton.bind(this)),this.setToggleButton()},t.resetCheckAllCheckbox=function(){this.selectAllBox.checked=!1},t.setToggleButton=function(){var e=document.querySelector(this.selectors._TOGGLE_BUTTON),n=this.hasSelectedItems();e.setAttribute("disabled","true"),e.setAttribute("aria-disabled","true"),e.classList.add("disabled"),e.removeAttribute("href"),n?(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"),e.classList.remove("disabled"),e.setAttribute("href","#"),e.removeEventListener("click",t.handleKeyboardActivation)):e.addEventListener("click",t.handleKeyboardActivation)},t.handleKeyboardActivation=function(e){e.preventDefault(),e.stopPropagation()},e.articleActionsbar=t}(UX)},432:function(e,t,n){"use strict";var r=n(13),s=n.n(r),a=n(3),c=n.n(a),l=n(4),u=n.n(l),h=n(5),p=n.n(h),m=n(2),v=n.n(m),g=n(7),_=n.n(g),S=n(6),E=n.n(S),y=n(183),b=n.n(y),L=n(8),A=n(10);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(n,r,s,c){var l=r&&r.prototype instanceof Generator?r:Generator,u=Object.create(l.prototype);return _regeneratorDefine2(u,"_invoke",function(n,r,s){var c,l,u,h=0,p=s||[],m=!1,v={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,n){return c=t,l=0,u=e,v.n=n,a}};function d(n,r){for(l=n,u=r,t=0;!m&&h&&!s&&t3?(s=_===r)&&(u=c[(l=c[4])?5:(l=3,3)],c[4]=c[5]=e):c[0]<=g&&((s=n<2&&gr||r>_)&&(c[4]=n,c[5]=r,v.n=_,l=0))}if(s||n>1)return a;throw m=!0,r}return function(s,p,g){if(h>1)throw TypeError("Generator is already running");for(m&&1===p&&d(p,g),l=p,u=g;(t=l<2?e:u)||!m;){c||(l?l<3?(l>1&&(v.n=-1),d(l,u)):v.n=u:v.v=u);try{if(h=2,c){if(l||(s="next"),t=c[s]){if(!(t=t.call(c,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=c.return)&&t.call(c),l<2&&(u=TypeError("The iterator does not provide a '"+s+"' method"),l=1);c=e}else if((t=(m=v.n<0)?u:n.call(r,v))!==a)break}catch(t){c=e,l=1,u=t}finally{h=1}}return{value:t,done:m}}}(n,s,c),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(_regeneratorDefine2(t={},r,(function(){return this})),t),l=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,s,"GeneratorFunction")),e.prototype=Object.create(l),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(l,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,s,"GeneratorFunction"),_regeneratorDefine2(l),_regeneratorDefine2(l,s,"Generator"),_regeneratorDefine2(l,r,(function(){return this})),_regeneratorDefine2(l,"toString",(function(){return"[object Generator]"})),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,t,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(e){s=0}(_regeneratorDefine2=function _regeneratorDefine(e,t,n,r){function o(t,n){_regeneratorDefine2(e,t,(function(e){return this._invoke(t,n,e)}))}t?s?s(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function _callSuper(e,t,n){return t=v()(t),p()(e,function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function _isNativeReflectConstruct(){return!!e}()}()?Reflect.construct(t,n||[],v()(e).constructor):t.apply(e,n))}var w=function(e){function QuickSearch(){var e;return c()(this,QuickSearch),(e=_callSuper(this,QuickSearch)).activeDropdownJournal=void 0,e.URLParameters={hs:"historyItemsConf",pts:"publicationTitlesConf",ptgs:"groupTitlesConf",ptfs:"publicationItemsConf",ts:"topicsConf",cs:"contributorsConf",pt:"publicationTypesConf"},e.initialize(),e}return E()(QuickSearch,e),u()(QuickSearch,[{key:"selectors",get:function get(){return{qsWrapper:".quick-search__wrapper",qsElements:".quick-search__input",qsAutocomplete:"input.autocomplete",qsForms:'[name="defaultQuickSearch"],[name="thisJournalQuickSearch"],[name="citationQuickSearch"],[name="ConceptIDQuickSearch"]',qsSeriesKey:'[name="SeriesKey"]',qsPublications:'[name="publication[]"]',_QUICK_SEARCH:".quick-search",_DROPBLOCK:".quick-search .dropBlock",_DROPBLOCK_LINK:".quick-search .dropBlock__link",_QUICK_JOURNAL_INPUT:'.citationSearchContainer input[name="quickLinkJournal"]',_SUBMIT_BUTTON:".citationSearchContainer .mainSearchButton",_CITATION_FORM:'[name="citationQuickSearch"]',_CITATION_SEARCH:'[name="citationQuickSearch"] .autocomplete',_CITATION_SUBMIT:'[name="citationQuickSearch"] .mainSearchButton'}}},{key:"elements",get:function get(){return{qsElements:null,qsForms:null,qsDropdowns:null,qsHeaderWrapper:null,qsAutocomplete:null,qsCitationSearch:null,qaCitationSubmit:null}}},{key:"isAutocompleteOn",get:function get(){return!0}},{key:"activeJournalForm",get:function get(){var e;return null===(e=this._elements.qsHeaderWrapper)||void 0===e?void 0:e.querySelector('[aria-labelledby="#'.concat(this.activeDropdownJournal,'"] form'))}},{key:"initialize",value:function initialize(){this.setElements(),this._elements.qsElements.length&&this.isAutocompleteOn&&!Object(A.a)()&&(this.initAutocomplete(),this.EnableSubmitBtn(),this.addEventListeners(),this.setDataId())}},{key:"setElements",value:function setElements(){this._elements.qsAutocomplete=document.querySelectorAll(this._selectors.qsAutocomplete),this._elements.qsElements=document.querySelectorAll(this._selectors.qsElements),this._elements.qsForms=document.querySelectorAll(this._selectors.qsForms),this._elements.qsCitationSearch=document.querySelector(this._selectors._CITATION_SEARCH),this._elements.qaCitationSubmit=document.querySelector(this._selectors._CITATION_SUBMIT)}},{key:"initAutocomplete",value:function initAutocomplete(){var e=this;this.autocompleteInstances=new Map,this._elements.qsAutocomplete.forEach((function(t,n){var r,a,c,l,u;for(c=(null===(a=null===(r=t.closest(e._selectors.qsForms))||void 0===r?void 0:r.querySelector(e._selectors.qsSeriesKey))||void 0===a?void 0:a.value)||null,t.seriesKey=c,l=t.parentNode,u=!1;l&&"DIV"===l.tagName;){if(l.classList.contains("option-citation")){u=!0;break}l=l.parentNode}var h,p="#"+t.getAttribute("id"),m=new b.a({selector:p,data:{src:(h=s()(_regenerator().m((function _callee(n){var r,s,a;return _regenerator().w((function(n){for(;;)switch(n.p=n.n){case 0:if(n.p=0,r=e.buildFetchURL(t)){n.n=1;break}return n.a(2,[]);case 1:return n.n=2,fetch(r);case 2:return s=n.v,n.n=3,s.json();case 3:return n.a(2,n.v);case 4:return n.p=4,a=n.v,n.a(2,a)}}),_callee,null,[[0,4]])}))),function src(e){return h.apply(this,arguments)}),cache:!1},searchEngine:function searchEngine(e,t){return t.highlight||t.label},resultItem:{tag:"a",class:"autoComplete__item dropdown-item",highlight:"autoComplete__highlight",element:function element(e,t){e.setAttribute("href",t.value.url);var n=t.value.paramFormatted||"",r="".concat(n,":");r+="".concat(t.match,""),e.innerHTML=r,e.addEventListener("click",(function(e){e.preventDefault()}))}},resultsList:{tag:"div",class:"autocomplete dropdown-menu show",maxResults:10,noResults:!0},wrapper:!1,threshold:3,debounce:300,submit:!1,events:{input:{selection:function selection(e){var t=e.detail,selection=t.selection;return u?(this.value=selection.value.label,this.setAttribute("value",selection.value.value),m.close()):selection.value.url&&(window.location.href=t.selection.value.url),!0}}}});e.autocompleteInstances.set(t,m)}))}},{key:"addEventListeners",value:function addEventListeners(){var e=this;!function _superPropGet(e,t,n,r){var s=_()(v()(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof s?function(e){return s.apply(n,e)}:s}(QuickSearch,"addEventListeners",this,3)([]),this.autocompleteInstances.forEach((function(e,t,n){t.setAttribute("type","search"),window.addEventListener("scroll",(function(t){return e.close()})),t.addEventListener("keyup",(function(e){e.keyCode===A.b.RETURN&&""!==t.value&&("citationQuickSearch"===t.closest("form").getAttribute("name")?e.preventDefault():t.closest("form").submit())}))})),this._elements.qsForms.forEach((function(t){t.addEventListener("submit",e.onFormSubmit.bind(e,t))}))}},{key:"onFormSubmit",value:function onFormSubmit(e,t){var n;"citationQuickSearch"===e.getAttribute("name")?e.querySelector("button").getAttribute("aria-disabled")&&t.preventDefault():""===(null===(n=e.querySelector(this._selectors.qsElements))||void 0===n?void 0:n.value)&&(window.location="/search/advanced",t.preventDefault())}},{key:"buildFetchURL",value:function buildFetchURL(e){var t=this,n="",r=Object.keys(this.URLParameters).reduce((function(n,r){var s=e.dataset[t.URLParameters[r]];return s&&n.push("".concat(r,"=").concat(s)),n}),[]),s=e.value.trim().replace(/\s\s+/g," ");return s.split(" ").length>=e.dataset.autoCompleteMaxWords||s.length>=e.dataset.autoCompleteMaxChars?n:(n="/action/doSuggest?target=auto-complete",n+="&query=".concat(encodeURIComponent(s)),n+="&".concat(r.join("&")),n+="&fl=PubID",n+="".concat(e.seriesKey?"&within="+e.seriesKey:""))}},{key:"setDataId",value:function setDataId(){var e=this,t=new Function,n=new MutationObserver(t);t=function callback(t){var r=document.querySelector(e._selectors._DROPBLOCK);document.querySelector(e._selectors._DROPBLOCK_LINK).dataset.id="global-header-quick-search-filter",r.setAttribute("aria-label","search categories"),r.setAttribute("role","navigation"),n&&n.disconnect()};var r=document.querySelector(this._selectors._QUICK_SEARCH);if(r)if(document.querySelector(this._selectors._DROPBLOCK))t();else{n.observe(r,{characterData:!1,attributes:!1,childList:!0,subtree:!1})}}},{key:"EnableSubmitBtn",value:function EnableSubmitBtn(){var e,t=this;null===(e=this._elements.qsCitationSearch)||void 0===e||e.addEventListener("input",(function(){var e,n,r,s,a;""!==(null===(e=t._elements.qsCitationSearch)||void 0===e?void 0:e.value)?(null===(n=t._elements.qaCitationSubmit)||void 0===n||n.removeAttribute("aria-disabled"),null===(r=t._elements.qaCitationSubmit)||void 0===r||r.removeAttribute("tabindex")):(null===(s=t._elements.qaCitationSubmit)||void 0===s||s.setAttribute("aria-disabled","true"),null===(a=t._elements.qaCitationSubmit)||void 0===a||a.setAttribute("tabindex","-1"))}))}}])}(L.a);t.a=w},433:function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var r=n(13),s=n.n(r),a=n(3),c=n.n(a),l=n(4),u=n.n(l),h=n(5),p=n.n(h),m=n(2),v=n.n(m),g=n(7),_=n.n(g),S=n(6),E=n.n(S),y=n(183),b=n.n(y);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(n,r,s,c){var l=r&&r.prototype instanceof Generator?r:Generator,u=Object.create(l.prototype);return _regeneratorDefine2(u,"_invoke",function(n,r,s){var c,l,u,h=0,p=s||[],m=!1,v={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,n){return c=t,l=0,u=e,v.n=n,a}};function d(n,r){for(l=n,u=r,t=0;!m&&h&&!s&&t3?(s=_===r)&&(u=c[(l=c[4])?5:(l=3,3)],c[4]=c[5]=e):c[0]<=g&&((s=n<2&&gr||r>_)&&(c[4]=n,c[5]=r,v.n=_,l=0))}if(s||n>1)return a;throw m=!0,r}return function(s,p,g){if(h>1)throw TypeError("Generator is already running");for(m&&1===p&&d(p,g),l=p,u=g;(t=l<2?e:u)||!m;){c||(l?l<3?(l>1&&(v.n=-1),d(l,u)):v.n=u:v.v=u);try{if(h=2,c){if(l||(s="next"),t=c[s]){if(!(t=t.call(c,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=c.return)&&t.call(c),l<2&&(u=TypeError("The iterator does not provide a '"+s+"' method"),l=1);c=e}else if((t=(m=v.n<0)?u:n.call(r,v))!==a)break}catch(t){c=e,l=1,u=t}finally{h=1}}return{value:t,done:m}}}(n,s,c),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(_regeneratorDefine2(t={},r,(function(){return this})),t),l=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,s,"GeneratorFunction")),e.prototype=Object.create(l),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(l,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,s,"GeneratorFunction"),_regeneratorDefine2(l),_regeneratorDefine2(l,s,"Generator"),_regeneratorDefine2(l,r,(function(){return this})),_regeneratorDefine2(l,"toString",(function(){return"[object Generator]"})),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,t,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(e){s=0}(_regeneratorDefine2=function _regeneratorDefine(e,t,n,r){function o(t,n){_regeneratorDefine2(e,t,(function(e){return this._invoke(t,n,e)}))}t?s?s(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function _callSuper(e,t,n){return t=v()(t),p()(e,function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function _isNativeReflectConstruct(){return!!e}()}()?Reflect.construct(t,n||[],v()(e).constructor):t.apply(e,n))}var L=function(e){function CountryInstitution(){var e;return c()(this,CountryInstitution),(e=_callSuper(this,CountryInstitution)).acElement=document.querySelector(e._selectors.AUTOCOMPLETE_ELEMENT),e.countrySelector=document.querySelector(e._selectors.COUNTRY_CODE_ELEMENT),e.acElement&&e.initialize(),e}return E()(CountryInstitution,e),u()(CountryInstitution,[{key:"selectors",get:function get(){return{AUTOCOMPLETE_ELEMENT:".js--institution-autocomplete",COUNTRY_CODE_ELEMENT:'[name="sageCountryInstitution.countryCode"]',ALERT_ELEMENT:"#institutionAlert"}}},{key:"initialize",value:function initialize(){!function _superPropGet(e,t,n,r){var s=_()(v()(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof s?function(e){return s.apply(n,e)}:s}(CountryInstitution,"initialize",this,3)([]),this.control()}},{key:"control",value:function control(){this.autocomplete(),this.resetAcElement(),this.acElement.value=this.acElement.dataset.defaultValue||"",$(this.countrySelector).on("change",this.onChangeHandler.bind(this))}},{key:"onChangeHandler",value:function onChangeHandler(e){this.resetAcElement()}},{key:"resetAcElement",value:function resetAcElement(){var e=!!document.querySelector(this._selectors.COUNTRY_CODE_ELEMENT).value;this.acElement.value="",e?(this.acElement.removeAttribute("disabled"),this.acElement.removeAttribute("aria-disabled")):(this.acElement.setAttribute("disabled","true"),this.acElement.setAttribute("aria-disabled","true"))}},{key:"acOnOpen",value:function acOnOpen(e){var t=document.querySelector(this._selectors.ALERT_ELEMENT);t&&(t.innerText=t.dataset.alert)}},{key:"acOnClose",value:function acOnClose(e){var t=document.querySelector(this._selectors.ALERT_ELEMENT);t&&(t.innerText="")}},{key:"autocomplete",value:function autocomplete(){var e,t=document.querySelector(this._selectors.COUNTRY_CODE_ELEMENT),n=this,r=new b.a({selector:this._selectors.AUTOCOMPLETE_ELEMENT,data:{src:(e=s()(_regenerator().m((function _callee(e){var n;return _regenerator().w((function(r){for(;;)switch(r.n){case 0:return r.n=1,$.ajax({url:"https://icat.sagepub.com/institutionsearch/select?fq=-accountLevel:(school+OR+district+OR+state)",data:{q:e,fq:'country:"'+t.value+'"',limit:20,rows:20,qt:"dismax",wt:"json"},dataType:"jsonp",jsonp:"json.wrf"});case 1:return n=r.v,r.n=2,n.response.docs.map((function(e){return e.name}));case 2:return r.a(2,r.v)}}),_callee)}))),function src(t){return e.apply(this,arguments)})},resultsList:{tag:"div",class:"autocomplete dropdown-menu show",maxResults:20,noResults:!0},resultItem:{tag:"div",class:"dropdown-item"},wrapper:!1,threshold:3,debounce:300,highlight:!0,events:{input:{focus:function focus(){r.input.value.length&&r.start()},selection:function selection(e){var t=e.detail;r.input.value=t.selection.value},close:function close(e){n.acOnClose(e)},open:function open(e){n.acOnOpen(e)}}}})}}])}(n(8).a)},434:function(e,t){var n;n={$body:$("body"),widget:null,selection1:null,selection2:null,selectedSelection1:"",selectedSelection2:"",professionsData:null,selectors:{WIDGET_CONTAINER:".chained-selectors",SELECT1:".chained-selectors__select1",SELECT2:".chained-selectors__select2",SELECT:"select",DATA_SCRIPT:"#professional-data"},init:function init(){this.widget=document.querySelector(this.selectors.WIDGET_CONTAINER),this.widget&&(this.loadProfessionsData(),this.selection1=this.widget.querySelector(this.selectors.SELECT1),this.selection2=this.widget.querySelector(this.selectors.SELECT2),this.selection1Select=this.selection1.querySelector(this.selectors.SELECT),this.selection2Select=this.selection2.querySelector(this.selectors.SELECT),this.getSelectedSelection1(),this.getSelectedSelection2(),this.selectedSelection2=this.selection2Select.value,this.control())},loadProfessionsData:function loadProfessionsData(){var e=document.querySelector(this.selectors.DATA_SCRIPT);if(e)try{var t=JSON.parse(e.textContent);this.professionsData=t||[]}catch(e){console.error("Failed to parse professional data JSON:",e)}if(!this.professionsData&&this.widget){var n=this.widget.getAttribute("data-profession-json");if(n)try{this.professionsData=JSON.parse(n)}catch(e){console.error("Failed to parse data-profession-json:",e)}}},control:function control(){$(this.selection1).on("change",this.on.selection1Change.bind(this)),$(this.selection2).on("change",this.on.selection2Change.bind(this))},on:{selection1Change:function selection1Change(e){this.getSelectedSelection1(),this.rebuildSelection2()},selection2Change:function selection2Change(e){this.getSelectedSelection2()}},getSelectedSelection1:function getSelectedSelection1(){this.selectedSelection1=this.selection1Select.value},getSelectedSelection2:function getSelectedSelection2(){this.selectedSelection2=this.selection2Select.value},rebuildSelection2:function rebuildSelection2(){if(""===this.selectedSelection1){this.selection2Select.setAttribute("disabled",!0),this.selection2Select.setAttribute("aria-disabled","true");var e=this.getSelectOptionText();this.selection2Select.innerHTML='")}else this.selection2Select.removeAttribute("disabled"),this.selection2Select.removeAttribute("aria-disabled"),this.updateJobTitles(this.selectedSelection1)},updateJobTitles:function updateJobTitles(e){var t=this;if(this.professionsData){var n=this.professionsData.profession1.find((function(t){return t.tagCode===e}));if(n&&n.profession2){this.selectedSelection2="",this.selection2Select.innerHTML="";var r=document.createElement("option");r.value="",r.textContent=this.getSelectOptionText(),r.setAttribute("selected","true"),this.selection2Select.appendChild(r),n.profession2.forEach((function(n){var r=document.createElement("option");r.value=n.tagCode,r.textContent=n.tagName,r.setAttribute("data-parent",e),t.selection2Select.appendChild(r)})),this.selection2Select.value="",$(this.selection2Select).trigger("change")}else console.error("No job titles found for selected occupation")}else console.error("Professions data not loaded")},getSelectOptionText:function getSelectOptionText(){var e=this.selection1Select.querySelector('option[value=""]');return e?e.textContent:"Select option"}},UX.chainedSelectors=n},435:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(13),s=n.n(r),a=n(3),c=n.n(a),l=n(4),u=n.n(l),h=n(5),p=n.n(h),m=n(2),v=n.n(m),g=n(7),_=n.n(g),S=n(6),E=n.n(S),y=n(183),b=n.n(y),L=n(8);n(333);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(n,r,s,c){var l=r&&r.prototype instanceof Generator?r:Generator,u=Object.create(l.prototype);return _regeneratorDefine2(u,"_invoke",function(n,r,s){var c,l,u,h=0,p=s||[],m=!1,v={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,n){return c=t,l=0,u=e,v.n=n,a}};function d(n,r){for(l=n,u=r,t=0;!m&&h&&!s&&t3?(s=_===r)&&(u=c[(l=c[4])?5:(l=3,3)],c[4]=c[5]=e):c[0]<=g&&((s=n<2&&gr||r>_)&&(c[4]=n,c[5]=r,v.n=_,l=0))}if(s||n>1)return a;throw m=!0,r}return function(s,p,g){if(h>1)throw TypeError("Generator is already running");for(m&&1===p&&d(p,g),l=p,u=g;(t=l<2?e:u)||!m;){c||(l?l<3?(l>1&&(v.n=-1),d(l,u)):v.n=u:v.v=u);try{if(h=2,c){if(l||(s="next"),t=c[s]){if(!(t=t.call(c,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=c.return)&&t.call(c),l<2&&(u=TypeError("The iterator does not provide a '"+s+"' method"),l=1);c=e}else if((t=(m=v.n<0)?u:n.call(r,v))!==a)break}catch(t){c=e,l=1,u=t}finally{h=1}}return{value:t,done:m}}}(n,s,c),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(_regeneratorDefine2(t={},r,(function(){return this})),t),l=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,s,"GeneratorFunction")),e.prototype=Object.create(l),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(l,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,s,"GeneratorFunction"),_regeneratorDefine2(l),_regeneratorDefine2(l,s,"Generator"),_regeneratorDefine2(l,r,(function(){return this})),_regeneratorDefine2(l,"toString",(function(){return"[object Generator]"})),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,t,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(e){s=0}(_regeneratorDefine2=function _regeneratorDefine(e,t,n,r){function o(t,n){_regeneratorDefine2(e,t,(function(e){return this._invoke(t,n,e)}))}t?s?s(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function _callSuper(e,t,n){return t=v()(t),p()(e,function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function _isNativeReflectConstruct(){return!!e}()}()?Reflect.construct(t,n||[],v()(e).constructor):t.apply(e,n))}var A=function(e){function ShibbolethLogin(){var e;return c()(this,ShibbolethLogin),(e=_callSuper(this,ShibbolethLogin)).AJAX_URL="/pb/widgets/shibbolethLogin/institutions",e.federationSelect=document.querySelector(e._selectors.FEDERATION_SELECT),e.autocompleteEl=document.querySelector(e._selectors.AUTOCOMPLETE_ELEMENT),e.recentInstitutionsContainer=document.querySelector(e._selectors.RECENT_INSTITUTIONS_CONTAINER),e.federationSelect&&(e.institutionsList=document.querySelector(e._selectors.INSTITUTIONS_LIST),e.seamlessOptInCheckbox=document.querySelector(e._selectors.SEAMLESS_PREFERENCE_INPUT),e.initialize()),e}return E()(ShibbolethLogin,e),u()(ShibbolethLogin,[{key:"selectors",get:function get(){return{AUTOCOMPLETE_ELEMENT:".js--autocomplete-element",FEDERATION_SELECT:'[name="federationSelect"]',INSTITUTIONS_LIST:".institutional-access__list",INSTITUTIONS_LIST_ITEM:"a",SEAMLESS_PREFERENCE_INPUT:"#seamless-preference-input",LOCAL_STORRAGE_ERROR:".local-storage-error",RECENT_INSTITUTIONS_CONTAINER:".recent-institutions__section",RECENT_INSTITUTIONS_LIST:".recent-institutions__list",RECENT_INSTITUTIONS_ITEM:".recent-institutions__item"}}},{key:"classList",get:function get(){return{DISPLAY_NONE:"d-none",DISPLAY_FLEX:"d-flex",HEADING_CLASS:"heading-s",RECENT_INSTITUTIONS_ITEM:"recent-institutions__item",BTN:"btn",BTN_OUTLINE_PRIMARY:"btn-outline-primary",ICON_SEAMLESS:"icon-seamless-access",ICON_ARROW_RIGHT:"icon-arrow_right"}}},{key:"elements",get:function get(){return{HEADER:"h3",LIST:"ul",LIST_ITEM:"li",LINK:"a"}}},{key:"texts",get:function get(){return{NO_SEAMLESS_ACCESS_SERVICE:"SeamlessAccessService is not imported..."}}},{key:"initialize",value:function initialize(){!function _superPropGet(e,t,n,r){var s=_()(v()(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof s?function(e){return s.apply(n,e)}:s}(ShibbolethLogin,"initialize",this,3)([]),this.data={},this.control()}},{key:"control",value:function control(){$(this.federationSelect).on("change",this.onFederationSelectHandler.bind(this)),this.autocompleteEl&&this.autocomplete(),this.recentInstitutionsContainer&&this.retrieveEntity(),this.optInCheckboxInit()}},{key:"isSeamlessOptOutEnabled",value:function isSeamlessOptOutEnabled(){return"true"===UX.cookies.getItem("SeamlessAccess_OptOut","")}},{key:"showLocalStorageErrorMsg",value:function showLocalStorageErrorMsg(){var e=document.querySelector(this._selectors.LOCAL_STORRAGE_ERROR);$(e).collapse("show"),this.seamlessOptInCheckbox.checked=!1,this.seamlessOptInCheckbox.setAttribute("disabled",!0)}},{key:"onFederationSelectHandler",value:function onFederationSelectHandler(e){var t=this;if(this.institutionsList.innerHTML="",e.target.value){this.data=JSON.parse(e.target.value);var n=document.createElement(this._elements.HEADER);n.classList.add(this._classList.HEADING_CLASS),n.innerText=this.data["federation-name"];var r=document.createElement(this._elements.LIST);this.data.institutions.forEach((function(e){var n=document.createElement(t._elements.LIST_ITEM),s=document.createElement(t._elements.LINK);s.setAttribute("href",e["institution-url"]),s.dataset.entityid=e["entity-id"],s.dataset.name=e["institution-name"],s.innerText=e["institution-name"],n.appendChild(s),r.appendChild(n),s.addEventListener("click",t.onInstitutionClickHandler.bind(t))}),this),this.institutionsList.appendChild(n),this.institutionsList.appendChild(r)}}},{key:"onInstitutionClickHandler",value:function onInstitutionClickHandler(e){e.preventDefault();var t=e.target,n={entityID:t.dataset.entityid,title:t.dataset.name};this.updateEntity(n,t.href)}},{key:"autocomplete",value:function autocomplete(){var e,t=this,n=new URL(window.location.href).searchParams.get("redirectUri"),r=new b.a({selector:this._selectors.AUTOCOMPLETE_ELEMENT,data:{src:(e=s()(_regenerator().m((function _callee(e){var r;return _regenerator().w((function(s){for(;;)switch(s.n){case 0:return s.n=1,$.ajax({url:t.AJAX_URL,data:{query:e,redirectUrl:n}});case 1:return r=s.v,s.a(2,r)}}),_callee)}))),function src(t){return e.apply(this,arguments)}),keys:["name"]},resultsList:{tag:"div",class:"autocomplete dropdown-menu show",maxResults:20,noResults:!0},resultItem:{tag:"div",class:"dropdown-item"},wrapper:!1,threshold:3,debounce:300,highlight:!0,events:{input:{focus:function focus(){r.input.value.length&&r.start()},selection:function selection(e){var n=e.detail;r.input.value=n.selection.value.name;var s={entityID:n.selection.value.entityId,title:n.selection.value.name};t.updateEntity(s,n.selection.value.institutionUrl)}}}})}},{key:"optInCheckboxInit",value:function optInCheckboxInit(){var e=this;try{SeamlessAccessService.retrieveEntity().then((function(){e.isSeamlessOptOutEnabled()&&(e.seamlessOptInCheckbox.checked=!1)}),(function(t){e.showLocalStorageErrorMsg()}))}catch(t){e.showLocalStorageErrorMsg(),console.error(this._texts.NO_SEAMLESS_ACCESS_SERVICE)}}},{key:"updateEntity",value:function updateEntity(e,t){if(this.seamlessOptInCheckbox.checked)try{SeamlessAccessService.updateEntity(e).then((function(e){window.location.href=t})).catch((function(e){window.location.href=t}))}catch(e){console.error(this._texts.NO_SEAMLESS_ACCESS_SERVICE),window.location.href=t}else window.location.href=t}},{key:"retrieveEntity",value:function retrieveEntity(){var e=this;try{SeamlessAccessService.retrieveEntity().then((function(t){var n,r=[];for(var s in t){n="/pb/widgets/shibboleth/sage/checkSupportedInstitution?entityid="+t[s].entity.entityID;var a={};a.val=t[s],r.push(e.resolvePromise(n,a))}Promise.all(r).then((function(t){e.displayFinalResponse(t)}))}))}catch(e){console.error(this._texts.NO_SEAMLESS_ACCESS_SERVICE)}}},{key:"resolvePromise",value:function resolvePromise(e,t){return new Promise((function(n,r){$.get(e,{}).done((function(e,r,s){"string"==typeof e&&""!==e&&(e=JSON.parse(e)),t.supported=e.supported,n(t)})).fail((function(e,r,s){t.supported=!1,n(t),console.log("error occure on the server "+s)}))}))}},{key:"displayFinalResponse",value:function displayFinalResponse(e){if(e.length>0){var t=document.querySelector(this._selectors.RECENT_INSTITUTIONS_LIST),n=this.recentInstitutionsContainer.parentElement,r=!1;e.forEach((function(e){if(!0===e.supported){r=!0;var n=e.val.entity,s={entityID:n.entityID,title:n.title},a=document.createElement("div");a.classList.add("my-3");var c=document.createElement("a");c.classList.add(this._classList.RECENT_INSTITUTIONS_ITEM),c.classList.add(this._classList.BTN),c.setAttribute("href","#"),c.dataset.link=SeamlessAccessService.getWAYFLessUrl(n.entityID),c.dataset.updateentity=JSON.stringify(s);var l=document.createElement("span");l.innerText=s.title;var u=document.createElement("i");u.setAttribute("aria-hiddden","true"),u.classList.add(this._classList.ICON_SEAMLESS),l.prepend(u);var h=document.createElement("i");h.classList.add(this._classList.ICON_ARROW_RIGHT),c.append(l),c.append(h),a.append(c),t.append(a),c.addEventListener("click",this.onClickHandler)}}),this),r&&(null==n||n.classList.remove(this.classList.DISPLAY_NONE))}}},{key:"onClickHandler",value:function onClickHandler(e){var t=JSON.parse(this.dataset.updateentity),n=this.dataset.link;try{SeamlessAccessService.updateEntity(t).then((function(e){void 0!==n&&(window.location.href=n)}),(function(e){console.log(e),window.location.href=n}))}catch(e){window.location.href=n}}}])}(L.a)},436:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),s=n.n(r),a=n(4),c=n.n(a),l=function(){return c()((function NavMenu(){s()(this,NavMenu),this.selectors={modalBtn:"button[data-id='global-header-browse-menu']",informationBtn:"li[id='menu-item-main1-1']",mainModal:"div[id='main1-modal-1']",browseMenu:"li[aria-label='Browse by discipline']",informationMenu:"li[aria-label='Information for']",disciplineHub:"a[data-id='global-header-browse-discipline-hubs']"},this.elements={modalBtn:null,informationBtn:null,mainModal:null,browseMenu:null,informationMenu:null,disciplineHub:null},this.setElements(),this.init()}),[{key:"setElements",value:function setElements(){this.elements.modalBtn=document.querySelector(this.selectors.modalBtn),this.elements.informationBtn=document.querySelector(this.selectors.informationBtn),this.elements.mainModal=document.querySelector(this.selectors.mainModal),this.elements.browseMenu=document.querySelector(this.selectors.browseMenu),this.elements.informationMenu=document.querySelector(this.selectors.informationMenu),this.elements.disciplineHub=document.querySelector(this.selectors.disciplineHub)}},{key:"init",value:function init(){this.addListener()}},{key:"buttonClicked",value:function buttonClicked(e){if(13===e.keyCode||32===e.keyCode){var t,n,r;if(null===(t=e.target.querySelector("button"))||void 0===t||t.click(),e.target.classList.contains("modal-open")||e.target.classList.contains("show"))e.target.setAttribute("aria-expanded","true"),e.target.querySelector("button").setAttribute("aria-expanded","true"),document.body.style.overflow="hidden";else null===(n=e.target)||void 0===n||n.setAttribute("aria-expanded","false"),null===(r=e.target.querySelector("button"))||void 0===r||r.setAttribute("aria-expanded","false"),setTimeout((function(){document.body.removeAttribute("style")}),0);e.target.focus()}else if(27===e.keyCode){var s,a,c,l,u,h;if(e.target.closest('li[role="menuitem"]').classList.contains("modal-open")||e.target.closest('li[role="menuitem"]').classList.contains("show"))null===(s=e.target)||void 0===s||null===(a=s.closest('li[role="menuitem"]'))||void 0===a||a.click(),null===(c=e.target)||void 0===c||null===(l=c.closest('li[role="menuitem"]'))||void 0===l||l.setAttribute("aria-expanded","false"),null===(u=e.target)||void 0===u||null===(h=u.closest('li[role="menuitem"]'))||void 0===h||h.focus(),document.body.removeAttribute("style")}}},{key:"addListener",value:function addListener(){var e,t=this;[this.elements.browseMenu,this.elements.informationMenu].forEach((function(e){e.addEventListener("keydown",t.buttonClicked.bind(t)),e.addEventListener("click",(function(e){var n,r,s,a,c,l,u,h,p,m;"false"===(null===(n=e.target)||void 0===n||null===(r=n.closest("button"))||void 0===r?void 0:r.getAttribute("aria-expanded"))?(null===(s=e.target)||void 0===s||null===(a=s.closest("button"))||void 0===a||a.setAttribute("aria-expanded","true"),null===(c=e.target)||void 0===c||null===(l=c.closest('li[role="menuitem"]'))||void 0===l||l.setAttribute("aria-expanded","true"),setTimeout((function(){t.elements.mainModal.removeAttribute("aria-modal")}),50)):(null===(u=e.target)||void 0===u||null===(h=u.closest("button"))||void 0===h||h.setAttribute("aria-expanded","false"),null===(p=e.target)||void 0===p||null===(m=p.closest('li[role="menuitem"]'))||void 0===m||m.setAttribute("aria-expanded","false"))}))}));var n=this.elements.modalBtn,r=this.elements.informationBtn;null===(e=this.elements.disciplineHub)||void 0===e||e.addEventListener("keydown",(function(e){"Tab"!==e.key||e.shiftKey||(e.preventDefault(),null==n||n.click(),null==r||r.focus())}))}}])}()},437:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),s=n.n(r),a=n(4),c=n.n(a),l=function(){return c()((function SagePhone(){s()(this,SagePhone),this.selectors={sagePhoneInput:'input[id="phone[0].label"]',sagePhoneSelect:".select-country-prefix"},this.elements={sagePhoneInput:null,sagePhoneSelect:null},this.setElements(),this.init()}),[{key:"setElements",value:function setElements(){this.elements.sagePhoneInput=document.querySelector(this.selectors.sagePhoneInput),this.elements.sagePhoneSelect=document.querySelector(this.selectors.sagePhoneSelect)}},{key:"init",value:function init(){this.updateInput(),this.addListener()}},{key:"updateInput",value:function updateInput(){this.elements.sagePhoneInput.value=this.elements.sagePhoneSelect.options[this.elements.sagePhoneSelect.selectedIndex].getAttribute("data-class")}},{key:"addListener",value:function addListener(){var e=this;this.elements.sagePhoneSelect.addEventListener("change",(function(){e.elements.sagePhoneInput.value=e.elements.sagePhoneSelect.options[e.elements.sagePhoneSelect.selectedIndex].getAttribute("data-class")}))}}])}()},438:function(e,t,n){"use strict";n(869);!function(e){var t=e.menu||{},n=$("body"),r=0;var s=t.on.hide;t.on.show=function(s){void 0!==e.controller&&e.controller.check(),s&&$(s.target).closest(".main-nav").addClass("js--open"),function lockBodyScroll(){r=window.scrollY||window.pageYOffset||0,document.body.style.top=-r+"px"}(),n.addClass("lock-screen").attr("data-active","menu"),t.$toggle.addClass("js--open"),t.$target.attr("style","display: flex !important")},t.on.hide=function(e){"function"==typeof s?s.call(this,e):(n.removeClass("lock-screen").removeAttr("data-active"),t.$toggle&&t.$toggle.removeClass("js--open")),function unlockBodyScroll(){document.body.style.top="",window.scrollTo(0,r)}()},t.on.showNested=new Function,t.init=function(e){$(".main-nav").each((function(e){t.$target=$(this);var n=t.$target.find(".menu-header");t.menuHeaderMainTitle=n.text(),t.redirectPath=n.data("redirect-to"),t.check.viewPort(e),t.responsive(e)})),t.items=$(".main-nav").find("a, button, input"),t.control(),t.additionalControl()},t.control=function(e){$('[data-toggle="nav"]').on("click",(function(e){e.preventDefault(),this.classList.contains("js--open")?t.on.hide(e):(t.$toggle=$(this),t.$target=$("#"+t.$toggle.data("target")),t.items=t.$target.find("a, button, input"),t.items.each((function(e){e===t.items.length-1&&(t.lastItem=$(this))})),t.on.show(e))}))}}(UX)},440:function(e,t,n){"use strict";n(441);var r=n(10);!function(e){var t=e.slide,n=$("body");t.constants=t.constants||{},t.constants.TRANSLATE_X="100%",t.selectors=t.selectors||{},t.selectors.W_SLIDE=".w-slide",t.selectors.W_SLIDE_TITLE=".w-slide__title",t.selectors.W_SLIDE_CONTENT=".w-slide__content",t.selectors.W_SLIDE_HEAD=".w-slide__head",t.selectors.W_SLIDE_BACK=".w-slide__back",t.selectors.W_SLIDE_BTN=".w-slide__btn",t.classes=t.classes||{},t.classes.JS_OPEN="js--open",t.classes.JOURNAL_MENU_TITLE="w-slide__title--journal-menu",t.dataIdClose=null,t.updateCloseDataId=function(){var e=t.$toggle?t.$toggle.data("idClose"):"";t.dataIdClose=e||null,t.$back.attr("data-id",e||"")},t.on.additionalShow=function(){t.updateCloseDataId()},function guardGoogletagRefresh(){function callWithGuard(e,n,r){if("undefined"==typeof googletag||"function"!=typeof googletag.pubads)return e.apply(n,r);if(function targetContainsAd(){var e=t.$target;if(!e||!e.length)return!1;var n=e[0];return!(!n.id||0!==n.id.indexOf("div-gpt-ad")&&-1===n.id.indexOf("google_ads_iframe"))||e.find('[id^="div-gpt-ad"], [id*="google_ads_iframe"]').length>0}())return e.apply(n,r);var s=googletag.pubads(),a=s.refresh;s.refresh=function(){};try{return e.apply(n,r)}finally{s.refresh=a}}var e=t.on.show,n=t.on.hide;t.on.show=function(t){return callWithGuard(e,this,[t])},t.on.hide=function(e){return callWithGuard(n,this,[e])}}(),t.init=function(){t.$toggle=$(t.selectors.W_SLIDE_BTN),t.$slide=t.setHTMLMarkup(),t.$elements=$(t.$slide),t.displaySlideHtmlToPage(),t.wSlide=document.querySelector(t.selectors.W_SLIDE),t.$contents=t.$elements.find(t.selectors.W_SLIDE_CONTENT),t.$slideinfo=t.$elements.find(t.selectors.W_SLIDE_TITLE),t.$back=t.$elements.find(t.selectors.W_SLIDE_BACK),t.elementvPort=t.vPort,t.vPort=[],t.customViewPorts(),t.$toggle.each((function(e){t.check.viewPort($(this),e),t.responsive(e)})),t.additionalInitialization(),t.control(),t.additionalControls(),t.trapFocus(t.wSlide),"undefined"!=typeof facetDateChart&&facetDateChart.control(),e.utils&&e.utils.isRTL()&&(t.isRTL=!0)},t.trapFocus=function(e){e.addEventListener("keydown",(function(n){var s="Tab"===n.key||n.keyCode===r.b.TAB;if(("Esc"===n.key||n.keyCode===r.b.ESC)&&(t.back=!0,t.on.hide(n)),s){var a=e.querySelectorAll('button, [href]:not(.sr-only-focusable), input, select, textarea, [tabindex]:not([tabindex="-1"])'),c=a[0],l=a[a.length-1];n.shiftKey?document.activeElement===c&&(l.focus(),n.preventDefault()):document.activeElement===l&&(c.focus(),n.preventDefault())}}))},t.setHTMLMarkup=function(){return''},t.setBackLabel=function(){t.$back.html('')},t.displaySlideHtmlToPage=function(){if(!document.querySelector(t.selectors.W_SLIDE)){var e=$("main");e.length>0?e.append(t.$elements):n.append(t.$elements)}},t.on._showSlide=function(){var e=t.$toggle?t.$toggle.data("slideTitleClass"):"",n=t.$toggle.data("slide-width")||t.constants.TRANSLATE_X,r=t.isRTL?t.constants.TRANSLATE_X:"-".concat(t.constants.TRANSLATE_X),s=t.$elements;(t.nested||t.multi)&&(s=t.$contents),!t.$elements.hasClass(t.classes.JS_OPEN)&&t.multi&&(s=$("[class*=nested--], .w-slide")),s.css({transform:"translateX(".concat(r,")"),"max-width":n}),t.isQueue=!1,t.$slideinfo.removeClass(t.classes.JOURNAL_MENU_TITLE),e&&t.$slideinfo.addClass(e),t.$slideinfo.show().addClass(t.classes.JS_OPEN),t.$slideinfo.focus(),t.$elements.addClass(t.classes.JS_OPEN),t.on.additionalShowSlide()}}(UX)},443:function(e,t){!function(e){var t={init:function init(){this._bound||(this._bound=!0,document.addEventListener("click",(function(e){var t=e.target.closest(".journal-menu-banner__menu-btn");if(t){var n=$(t),r=n.closest(".journal-menu-banner").find(".journal-menu-banner__nav__lists").first().attr("id");r&&n.attr("data-slide-target","#"+r)}}),!0))}};e.journalMenuBanner=t}(UX)},862:function(e,t,n){"use strict";var r=n(3),s=n.n(r),a=n(4),c=n.n(a),l=n(5),u=n.n(l),h=n(2),p=n.n(h),m=n(7),v=n.n(m),g=n(6),_=n.n(g),S=n(8),E=n(25),y=n(26),b=n(20);function _callSuper(e,t,n){return t=p()(t),u()(e,function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function _isNativeReflectConstruct(){return!!e}()}()?Reflect.construct(t,n||[],p()(e).constructor):t.apply(e,n))}var L=function(e){function ChangePassword(){var e;return s()(this,ChangePassword),(e=_callSuper(this,ChangePassword)).form=document.querySelector(e._selectors.FORM),e.form&&(e.form.setAttribute("novalidate","true"),e.initialize()),e}return _()(ChangePassword,e),c()(ChangePassword,[{key:"selectors",get:function get(){return{FORM:".change-password-form",DROPDOWN_TOGGLE:".dropdown-toggle",FORM_GROUP:".form-group",FORM_CONTROL:".form-control",MODAL:".modal",CONTENT:".modal-body",ALERT_DANGER:".message.error",ALERT_SUCCESS:".success-message",PASSWORD_INPUT_FORMAT_VALIDATE:".js-format-validate",IS_INVALID:".is-invalid"}}},{key:"classList",get:function get(){return{DISPLAY_NONE:"d-none",DISPLAY_FLEX:"d-flex",IS_VALID:"is-valid",IS_INVALID:"is-invalid"}}},{key:"initialize",value:function initialize(){!function _superPropGet(e,t,n,r){var s=v()(p()(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof s?function(e){return s.apply(n,e)}:s}(ChangePassword,"initialize",this,3)([]),this.requiredFieldsValidation=new b.a(this.form),this.passwordFormatValidation=new E.a(this.form),this.passwordEqualityValidation=new y.a(this.form),this.modal=this.form.closest(this._selectors.MODAL),this.modal&&(this.alertSuccess=this.modal.querySelector(this._selectors.ALERT_SUCCESS),this.alertDanger=this.modal.querySelector(this._selectors.ALERT_DANGER),this.control())}},{key:"control",value:function control(){$(this.modal).on("shown.bs.modal",this.resetAll.bind(this)),this.form.addEventListener("submit",this.onSubmit.bind(this))}},{key:"resetAll",value:function resetAll(){this.form.reset(),this.resetAlerts()}},{key:"resetAlerts",value:function resetAlerts(){var e=this;this.alertSuccess.classList.add(this._classList.DISPLAY_NONE),this.alertDanger.classList.add(this._classList.DISPLAY_NONE),this.alertDanger.innerHTML="";var t=document.querySelectorAll(this._selectors.IS_INVALID);null==t||t.forEach((function(t){e.passwordFormatValidation.setValid(t)}),this)}},{key:"onSubmit",value:function onSubmit(e){e.preventDefault(),this.resetAlerts();var t=this.requiredFieldsValidation.checkRequired(),n=this.checkPasswordFormat(e.target.querySelector(this._selectors.PASSWORD_INPUT_FORMAT_VALIDATE)),r=this.checkPasswordEquality();if(t&&n&&r){var s=this.form.getAttribute("action"),a=$(this.form).serializeArray();a.push({name:"ajaxRequest",value:!0}),$.ajax({context:this,method:"post",url:s,data:a,xhrFields:{withCredentials:!0}}).done((function(e,t,n){e.result?(this.alertSuccess.classList.add(this._classList.DISPLAY_NONE),this.alertDanger.classList.remove(this._classList.DISPLAY_NONE),this.alertDanger.innerHTML=e.message):(this.alertSuccess.classList.remove(this._classList.DISPLAY_NONE),this.alertSuccess.removeAttribute("role"),this.alertSuccess.setAttribute("aria-live","polite"),this.alertSuccess.querySelector("em").innerText="Password changed successfully!")})).fail((function(e,t,n){this.alertSuccess.classList.add(this._classList.DISPLAY_NONE),this.alertDanger.classList.remove(this._classList.DISPLAY_NONE),this.alertDanger.innerHTML="Unknown error"}))}else this.focusFirstInvalid(),this.form.scrollIntoView()}},{key:"focusFirstInvalid",value:function focusFirstInvalid(){var e=this.form.querySelector(".form-group.is-invalid"),t=(null==e?void 0:e.querySelector(this._selectors.DROPDOWN_TOGGLE))||(null==e?void 0:e.querySelector(this._selectors.FORM_CONTROL));null==t||t.focus()}},{key:"checkPasswordFormat",value:function checkPasswordFormat(e){return this.passwordFormatValidation.checkPasswordFormat(e,!0)}},{key:"checkPasswordEquality",value:function checkPasswordEquality(){return this.passwordEqualityValidation.checkPasswordEquality()}}])}(S.a),A=n(10);function _show_password_callSuper(e,t,n){return t=p()(t),u()(e,function _show_password_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function _isNativeReflectConstruct(){return!!e}()}()?Reflect.construct(t,n||[],p()(e).constructor):t.apply(e,n))}var w=function(e){function ShowPassword(){var e;return s()(this,ShowPassword),(e=_show_password_callSuper(this,ShowPassword)).passwordInputs=document.querySelectorAll(e._selectors.PASSWORD_INPUT),e.passwordInputs.length>0&&e.initialize(),e}return _()(ShowPassword,e),c()(ShowPassword,[{key:"selectors",get:function get(){return{INPUT:"input",PASSWORD_INPUT:'[type="password"]',EYE_ELEMENT:'[class^="icon-eye"], [class*=" icon-eye"]',SR_ONLY:".sr-only"}}},{key:"classList",get:function get(){return{DISPLAY_NONE:"d-none",DISPLAY_FLEX:"d-flex",ICON_EYE:"icon-eye",ICON_EYE_OFF:"icon-eye-off",SR_ONLY:"sr-only"}}},{key:"texts",get:function get(){return{SHOW_PWD:"Show password",HIDE_PWD:"Hide password"}}},{key:"initialize",value:function initialize(){!function _show_password_superPropGet(e,t,n,r){var s=v()(p()(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof s?function(e){return s.apply(n,e)}:s}(ShowPassword,"initialize",this,3)([]),this.control()}},{key:"control",value:function control(){var e=this,t=this;Array.from(this.passwordInputs).forEach((function(t){t.addEventListener("input",e.onChangePassword.bind(e));var n=t.parentElement.querySelector(e._selectors.EYE_ELEMENT);if(n){var r=document.createElement("span");r.classList.add(e._classList.SR_ONLY),r.innerText=n.classList.contains(e._classList.DISPLAY_NONE)?e._texts.SHOW_PWD:e._texts.HIDE_PWD,n.append(r),["click","keyup"].forEach((function(e){n.addEventListener(e,this.onEyeClick.bind(this))}),e),n.setAttribute("aria-live","polite")}})),window.addEventListener("keydown",(function(e){event.keyCode===A.b.SPACE&&e.target===document.querySelector(t._selectors.EYE_ELEMENT)&&e.preventDefault()}))}},{key:"onChangePassword",value:function onChangePassword(e){var t=e.target,n=t.parentElement.querySelector(this._selectors.EYE_ELEMENT);n&&n.classList.toggle(this._classList.DISPLAY_NONE,!t.value)}},{key:"onEyeClick",value:function onEyeClick(e){if("keyup"===e.type&&e.keyCode!==A.b.RETURN&&e.keyCode!==A.b.SPACE)return!1;var t=e.target,n=t.parentElement.querySelector(this._selectors.INPUT);t.classList.toggle(this._classList.ICON_EYE),t.classList.toggle(this._classList.ICON_EYE_OFF),t.querySelector(this._selectors.SR_ONLY).innerText=t.classList.contains(this._classList.ICON_EYE)?this._texts.SHOW_PWD:this._texts.HIDE_PWD,n.setAttribute("type","password"),t.classList.contains(this._classList.ICON_EYE_OFF)&&n.setAttribute("type","text")}}])}(S.a);new L,new w}}]); //# sourceMappingURL=lazy-imports-1f84afd12f7b14f4881a.js.map