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YA,EAAZ,EAAoBA,IACZiB,EAAAA,QAAJjB,IACID,EAAAA,GAAAA,UAAAA,IAAAA,gC,EArUd3C,GAgVN,IAAIA,G,iBCvVJgE,EAAOC,QAAUpD,OAAe,S","sources":["webpack://sage/./resources/scripts/modules/nested-tab.js","webpack://sage/external window \"jQuery\""],"sourcesContent":["// import $ from \"jquery\";\n// import \"slick-carousel\";\nimport 'bootstrap/js/dist/tab';\nimport 'bootstrap/js/dist/collapse';\nimport Swiper, { Navigation, Pagination, Autoplay } from 'swiper';\n\n\nclass sliderSwiperStories {\n constructor() {\n this.events();\n this.customSelect();\n this.sliderInit();\n this.reportFilter();\n //this.scrollToForm();\n //this.sliderInit(item.value);\n //this.paginationClass = $('.slider-01-control .slider__pagination');\n //this.paginationClass = $('.slider-02-control .slider__pagination');\n }\n\n scrollToForm() {\n $(document).on('click', '.text-header-b-content a', (e) => {\n e.preventDefault();\n var myhash = $(\".scrollto\").attr(\"href\");\n //$(this).addClass('search-tag-is-active');\n //var _topHeight = $('#site-header').height()+$(\".search-result-new-header-wrap\").height();\n $('html, body').animate({\n scrollTop: $(myhash).offset().top-72,\n }, 200, function(){\n // Add hash (#) to URL when done scrolling (default click behavior)\n //window.location.hash = myhash;\n });\n });\n }\n\n addClassifactive(selItem){\n document.querySelector('.m-nested-tab').classList.remove('has-m-two-column-bullet-text');\n if (selItem.querySelector('.m-two-column-bullet-text') !== null) {\n selItem.closest('.m-nested-tab').classList.add('has-m-two-column-bullet-text')\n // console.log('✅ element has child with id of child-3');\n }else{\n // console.log('⛔️ element does NOT have child with id');\n }\n document.querySelector('.m-nested-tab').classList.remove('has-image-l-text-r');\n if (selItem.querySelector('.image-l-text-r') !== null) {\n selItem.closest('.m-nested-tab').classList.add('has-image-l-text-r')\n // console.log('✅ element has child with id of child-3');\n }else{\n // console.log('⛔️ element does NOT have child with id');\n }\n document.querySelectorAll('.m-nested-tab').forEach(function(selItem) {\n // Remove the 'has-active-tab' class initially\n selItem.classList.remove('has-active-tab');\n\n // Check if any child of selItem has the 'active' class\n if (selItem.querySelector('.active') !== null) {\n selItem.classList.add('has-active-tab');\n document.querySelector(\".moreInfoText\").classList.add('d-none');\n document.querySelector(\".moreInfoBut\").classList.remove('d-none');\n // console.log('✅ element has child with class \"active\"');\n } else {\n // console.log('⛔️ element does NOT have child with class \"active\"');\n }\n });\n\n }\n\n reportFilter() {\n // var selectfirst=document.querySelector('.select-items div');\n // selectfirst.classList.add('same-as-selected');\n // document.querySelector('.select-selected').innerHTML=selectfirst.textContent;\n if ($(window).width() >= 768) {\n var tabpane = document.querySelector(\".tab-pane\");\n tabpane.classList.add('show','active');\n }\n const listBtn = document.querySelector(\"#listMenu\");\n listBtn.addEventListener('click', function(e){\n e.preventDefault();\n \n document.querySelector(\".moreInfoBut\").classList.add('d-none');\n document.querySelector(\".moreInfoText\").classList.remove('d-none');\n\n //$('.m-nested-tab .pill-filter--sp .select-selected').trigger('click');\n const seledItem = document.querySelector(\".pill-filter--sp .select-selected\");\n seledItem.classList.add('d-none');\n const selItem = document.querySelector(\".pill-filter--sp .select-items\");\n setTimeout(function () {\n selItem.classList.remove('select-items--is-hide');\n }, 100);\n return false;\n });\n\n var hash=(window.location.hash.substring(1));\n if(hash!=undefined && hash!='' ){\n\n var ele = document.getElementById('m-nested-tab');\n window.scrollTo(ele.offsetLeft,ele.offsetTop);\n document.querySelectorAll(\"[data-anchor=\"+hash+\"]\").forEach(\n (elem)=>{\n elem.click();\n var navItem = elem.getAttribute( 'aria-controls' );\n var elem_mobile= document.querySelector(\"[data-partners=\"+navItem+\"]\");\n elem_mobile.click();\n document.querySelector('.select-selected').classList.remove('select-selected--is-active');\n document.querySelector('.select-items').classList.add('select-items--is-hide');\n document.querySelector('.select-selected').innerHTML=elem_mobile.textContent;\n var selItem = document.getElementById(navItem);\n this.addClassifactive(selItem);\n\n return false;\n }\n );\n }else{\n const selItem = document.querySelector(\".pill-filter--sp .select-items\");\n setTimeout(function () {\n selItem.classList.remove('select-items--is-hide');\n }, 100);\n // $('.m-nested-tab .pill-filter--sp .select-selected').trigger('click');\n }\n\n\n $(document).on( 'click', '.pill-filter--sp .select-items div', (e) => {\n // console.log('clicked');\n e.preventDefault();\n var elem = $(e.currentTarget),\n navItem = elem.attr( 'data-partners' ),\n tabpane = document.querySelectorAll(\".tab-pane\"),\n selItem = document.querySelector(navItem);\n if(selItem==null){\n selItem = document.getElementById(navItem);\n }\n if((elem.attr('data-url'))!=='null'){\n window.location.href=elem.attr('data-url');\n return false;\n }\n tabpane.forEach(function(item) {\n item.classList.remove('show','active','m-two-column-bullet-text');\n });\n this.addClassifactive(selItem)\n\n selItem.classList.add('show','active');\n });\n\n\n\n $(document).on('click','.nav-pills>li.nav-item>button',(e)=>{\n var elem = $(e.currentTarget),\n navItem = elem.attr( 'aria-controls' ),\n selItem = document.getElementById(navItem),\n url=elem.attr('data-url');\n if(url!==undefined){\n // document.getElementById(\"nav-tabContent\").innerHTML=\"