{"version":3,"sources":["webpack:///./templates/author-guidelines/js/author-guidelines.js"],"names":["authorGuidelines","init","initNavbar","container","document","querySelector","_typeof","UX","sectionsNavbar","sections","querySelectorAll","titles","Array","prototype","slice","call","map","o","preparedTitle","sectionParent","length","classList","remove"],"mappings":"iFACUA,E,OAAAA,EAAmB,CAGrBC,KAAM,SAANA,OACID,EAAiBE,cAGrBA,WAAY,SAAZA,aACI,IAAMC,EAAYC,SAASC,cAAc,mCACzC,GAAiC,WAA7BC,EAAOC,GAAGC,iBAA+BL,EAAW,CACpD,IAAMM,EAAWL,SAASM,iBAAiB,wBACrCC,EAASC,MAAMC,UAAUC,MAAMC,KAAKN,GAAUO,KAAI,SAAAC,GACpD,IAAMC,EAAgBD,EAAEZ,cAAc,eACtC,GAAIa,EAEA,OADAA,EAAcC,cAAgBF,EACvBC,KAGXP,EAAOS,SACPjB,EAAUkB,UAAUC,OAAO,UAC3Bf,GAAGC,eAAeP,KAAKU,OAKvCJ,GAAGP,iBAAmBA","file":"js/authorGuidelines-b56e4240e01177371518.js","sourcesContent":["(function () {\n const authorGuidelines = {\n // get navbar and pass data\n //\n init: () => {\n authorGuidelines.initNavbar();\n },\n\n initNavbar: () => {\n const container = document.querySelector('.custom-content__guidelines-nav');\n if (typeof UX.sectionsNavbar === 'object' && container) {\n const sections = document.querySelectorAll('.guidelines--section'); // @TODO maybe better to use full name? -> table-of-content\n const titles = Array.prototype.slice.call(sections).map(o => {\n const preparedTitle = o.querySelector('.to-section');\n if (preparedTitle) {\n preparedTitle.sectionParent = o;\n return preparedTitle;\n }\n });\n if (titles.length) {\n container.classList.remove('hidden');\n UX.sectionsNavbar.init(titles);\n }\n }\n },\n };\n UX.authorGuidelines = authorGuidelines;\n})();\n"],"sourceRoot":""}