{"version":3,"sources":["webpack:///./widgets/tabContainer.js"],"names":["CLS","WG","TabContainer","$el","_classCallCheck","this","key","value","setTabContainer","initTopPosition","timer","This","$wg","$","tabsTitles","find","TI","TIB","header","tabItems","length","hasHash","window","location","hash","setTimeout","$activeTitle","filter","concat","substring","toLowerCase","trigger","text","append","each","i","tabTitle","title","id","generateId","titleHtml","tabItemId","data","attr","first","addClass","fadeIn","slick","on","$this","removeClass","wrap","offset","top","$activeTab","closest","scrollTop","outerHeight","utils","isElementOutViewport","css","e","stopPropagation","parentItem","hashValue","not","hide","hasClass","animate","isBelowMd","onresize","clearTimeout","Math","floor","random","innerWidth"],"mappings":"42BAIA,IACMA,EAAM,eACNC,EAAK,IAAMD,EAAM,IAOVE,EAAY,WAIvB,O,EAHD,SAAAA,EAAYC,I,4FAAKC,CAAA,KAAAF,GAEhBG,KAAKF,IAAMA,I,EACX,EAAAG,IAAA,OAAAC,MAED,WACCF,KAAKG,oBACL,CAAAF,IAAA,kBAAAC,MAED,WAEC,IAMIE,EA2KAC,EAjLEC,EAAON,KACTO,EAAMC,EAAER,KAAKF,KACbW,EAAaF,EAAIG,KAAKd,EAAK,oBACzBe,EAAK,YACLC,EAAM,sBACNC,EAASL,EAAE,eAIbM,EAAWP,EAAIG,KAAKE,GACxB,GAAIE,GAAYA,EAASC,OAAS,EAAG,CACpC,IAAMC,EAAUC,OAAOC,SAASC,KAC5BH,GAEHI,YAAW,WACV,IACMC,EADcP,EAASQ,OAAO,aAADC,OAAcP,EAAQQ,UAAU,GAAGC,cAAa,OAClDf,KAAK,GAADa,OAAIZ,EAAE,aAC3CU,EAAcK,QAAQ,SACtBnB,EAAIG,KAAK,oBAAoBiB,KAAKN,EAAaM,UAC7C,MASJlB,EAAWC,KAAK,cAAckB,OANL,sOAQzBd,EAASe,MAAK,SAASC,GACtB,IAAIC,EAAWvB,EAAER,MAAMU,KAAK,GAADa,OAAIZ,EAAE,aAC7BqB,EAAQD,EAASJ,OACjBM,EAAK3B,EAAK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C1CjC,EAAIG,KAAKd,EAAK,cAAcgE,IAAI,IAADrC,OAAKU,IAAMY,YAAY,aACtDtC,EAAIG,KAAK,IAADa,OAAKU,IAAMO,SAAS,aAG5B1B,EAASyC,IAAI,CACZ,cAAe,GACf,iBAAkB,QAKpBhD,EAAIoC,GAAG,QAAS,GAAFpB,OAAK3B,EAAE,eAAc,WAClC,IAAIY,EAAER,MAAM8D,SAAS,aAArB,CAGA,IAAI7B,EAAKzB,EAAER,MAAMsC,KAAK,MACtBxB,EAASJ,KAAK,YAADa,OAAaU,EAAE,MAAKP,QAAQ,aAG1ClB,EAAES,QAAQ0B,GAAG,iBAAiB,WACxBlC,EAAWqD,SAAS,eACxB1D,EAAkBK,EAAWsC,SAASC,QAKxC/B,OAAOgD,SAAW,WACjBC,aAAa7D,GACbA,EAAQe,YAAW,WAClBhB,EAAkBK,EAAWsC,SAASC,IACtCxC,EAAES,QAAQS,QAAQ,YAChB,MAIJN,YAAW,WACVZ,EAAES,QAAQS,QAAQ,YAChB,OACH,CAAAzB,IAAA,aAAAC,MAED,WACC,OAAOiE,KAAKC,MAAM,IAAyB,IAAhBD,KAAKE,YAChC,CAAApE,IAAA,YAAAC,MAED,WACC,OAAOe,OAAOqD,WAAa,S,0FAjNJ,I","file":"80.js","sourcesContent":["/* eslint-disable no-unused-vars */\n/* eslint-disable no-invalid-this */\n/* eslint-disable max-len */\n// CONSTANTS are all caps.\nconst NS = 'TabContainer';\nconst CLS = 'tabContainer';\nconst WG = '.' + CLS + '-';\n\n// Import stuff here if you need to or even better to import them dynamically\n// for ex. of dynamic import check out src/scripts/loadWg/tabContainer.js using Webpack dynamic imports as chunks.\n// import $ from 'jquery'\nimport utils from '../utils';\n\nexport class TabContainer {\n\tconstructor($el) {\n\t\t// $el is the widget node return by the loadTabContainer function\n\t\tthis.$el = $el;\n\t}\n\n\tinit() {\n\t\tthis.setTabContainer();\n\t}\n\n\tsetTabContainer() {\n\t\t// Add Some logic here\n\t\tconst This = this;\n\t\tlet $wg = $(this.$el);\n\t\tlet tabsTitles = $wg.find(WG + 'tabTitlesWrapper');\n\t\tconst TI = '.tabItem-';\n\t\tconst TIB = '[data-wg=\"TabItem\"]';\n\t\tconst header = $('.siteHeader');\n\t\tlet initTopPosition;\n\n\t\t// loop through tabItems and create tab triggers outside the tab container\n\t\tlet tabItems = $wg.find(TIB);\n\t\tif (tabItems && tabItems.length > 0) {\n\t\t\tconst hasHash = window.location.hash;\n\t\t\tif (hasHash) {\n\t\t\t\t// it needs to wait untill the heroBanner animation completes\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tconst $activeHash = tabItems.filter(`[data-id=\"${hasHash.substring(1).toLowerCase()}\"]`);\n\t\t\t\t\tconst $activeTitle = $activeHash.find(`${TI}tabTitle`);\n\t\t\t\t\t$activeTitle .trigger('click');\n\t\t\t\t\t$wg.find('.dropdown-toggle').text($activeTitle.text());\n\t\t\t\t}, 3500);\n\t\t\t}\n\t\t\t// generate mobile dropdown\n\t\t\tlet mobileDropdownHtml = `\n\t\t\t\t