{"version":3,"sources":["webpack:///./widgets/publication-content/js/publication-content.js"],"names":["footNotes","UX","loader","truncation","linesToShow","refresh","isMobile","$","toTrunk8Mobile","find","length","truncate","lines","type","seeMoreLink","seeMoreText","showMoreText","seeLessText","showLessText","mobileTarget","toTrunk8","get","mathjax","attr","script","document","createElement","src","config","window","opera","innerHTML","text","getElementsByTagName","appendChild","rebuild","extra","before","additionalController","citedLink","citedBy","accordion","siblings","click","trigger","css","scroll","targetOffset","offsetTop","scrollTop","addClass","removeClass"],"mappings":"0FAAA,IA+DQA,EA/DR,qBAIAC,GAAGC,OAAOC,WAAWC,YAAc,EAEnCH,GAAGC,OAAOC,WAAWE,QAAU,WACvBJ,GAAGC,OAAOI,WAAaC,EAAEN,GAAGC,OAAOC,WAAWK,gBAAgBC,KAAK,gBAAgBC,OACnFH,EAAEN,GAAGC,OAAOC,WAAWK,gBAAgBG,SAAS,CAC5CC,MAAOX,GAAGC,OAAOC,WAAWC,YAC5BS,KAAM,OACNC,aAAa,EACbC,YAAad,GAAGC,OAAOC,WAAWa,aAClCC,YAAahB,GAAGC,OAAOC,WAAWe,aAClCZ,UAAU,EACVa,aAAc,UAEVZ,EAAEN,GAAGC,OAAOC,WAAWiB,UAAUX,KAAK,+BAA+BC,QAC7EH,EAAEN,GAAGC,OAAOC,WAAWiB,UAAUT,SAAS,CACtCC,MAAOX,GAAGC,OAAOC,WAAWC,YAC5BS,KAAM,OACNC,aAAa,EACbC,YAAad,GAAGC,OAAOC,WAAWa,aAClCC,YAAahB,GAAGC,OAAOC,WAAWe,gBAI9CjB,GAAGC,OAAOmB,IAAIC,QAAU,WACpB,GACiD,SAA7Cf,EAAE,WAAWgB,KAAK,yBACjBhB,EAAE,iBAAiBG,QAChBH,EAAE,iBAAiBG,QACnBH,EAAE,mBAAmBG,QACrBH,EAAE,QAAQG,QACVH,EAAE,YAAYG,QACpB,CACE,IAAMc,EAASC,SAASC,cAAc,UACtCF,EAAOX,KAAO,kBACdW,EAAOG,IAAM,+FACb,IAAMC,EACF,+JAMAC,OAAOC,MACPN,EAAOO,UAAYH,EAEnBJ,EAAOQ,KAAOJ,EAElBH,SAASQ,qBAAqB,QAAQ,GAAGC,YAAYV,KAI7DvB,GAAGC,OAAOiC,QAAQC,MAAQ,WAEtBnC,GAAGC,OAAOC,WAAWE,UACrBJ,GAAGC,OAAOmB,IAAIC,YAKVtB,EAAYO,EAAE,mBACJG,QACVH,EAAE,kBAAkB8B,OAAOrC,GAInCC,GAAGC,OAAOoC,qBAAuB,WAC7B,GAAI/B,EAAE,gBAAgBG,OAAQ,CAC1B,IAAM6B,EAAYhC,EAAE,0BACdiC,EAAUjC,EAAE,oFACZkC,EAAYlC,EAAE,gBAAgBmC,SAAS,8BAC7CH,EAAUI,OAAM,WACZH,EAAQI,QAAQ,SAC+B,SAA3CrC,EAAE,sBAAsBsC,IAAI,YAAuBJ,EAAUG,QAAQ,YAIjFrC,EAAEsB,QAAQiB,QAAO,WACb,IAAIC,EAAexC,EAAE,mCAAmC,GAAGyC,UACvDzC,EAAEsB,QAAQoB,YAAcF,EACxBxC,EAAE,yBAAyB2C,SAAS,eAEpC3C,EAAE,yBAAyB4C,YAAY","file":"js/article-6f32bed990b4edd87d48.js","sourcesContent":["import 'ui-core/widgets/publication-content/js/publication-content';\nimport 'ui-core/widgets/article-tools/js/article-tools';\nimport 'ui-core/widgets/publication-content/js/crossref';\n\nUX.loader.truncation.linesToShow = 2;\n\nUX.loader.truncation.refresh = function () {\n if (UX.loader.isMobile && !$(UX.loader.truncation.toTrunk8Mobile).find('> .read-more').length) {\n $(UX.loader.truncation.toTrunk8Mobile).truncate({\n lines: UX.loader.truncation.linesToShow,\n type: 'list',\n seeMoreLink: true,\n seeMoreText: UX.loader.truncation.showMoreText,\n seeLessText: UX.loader.truncation.showLessText,\n isMobile: true,\n mobileTarget: '#sb-1',\n });\n } else if (!$(UX.loader.truncation.toTrunk8).find('.loa-accordion > .read-more').length) {\n $(UX.loader.truncation.toTrunk8).truncate({\n lines: UX.loader.truncation.linesToShow,\n type: 'list',\n seeMoreLink: true,\n seeMoreText: UX.loader.truncation.showMoreText,\n seeLessText: UX.loader.truncation.showLessText,\n });\n }\n};\nUX.loader.get.mathjax = function () {\n if (\n $('article').attr('data-enable-mathjax') === 'true' &&\n ($('.math-formula').length ||\n $('.disp-formula').length ||\n $('.inline-formula').length ||\n $('math').length ||\n $('tex-math').length)\n ) {\n const script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML';\n const config =\n 'MathJax.Hub.Config({' +\n 'CommonHTML: { linebreaks: { automatic: true } },' +\n '\"HTML-CSS\": { linebreaks: {automatic: true}},' +\n 'SVG: { linebreaks: { automatic: true} },' +\n '});';\n\n if (window.opera) {\n script.innerHTML = config;\n } else {\n script.text = config;\n }\n document.getElementsByTagName('head')[0].appendChild(script);\n }\n};\n\nUX.loader.rebuild.extra = function () {\n // Waiting for custom event that will be triggered by controller.js to activate responsive effects\n UX.loader.truncation.refresh();\n UX.loader.get.mathjax();\n};\n\n// workaround move foot notes after Title\n+(function () {\n var footNotes = $('.titleFootNote');\n if (footNotes.length) {\n $('.citation .loa').before(footNotes);\n }\n})();\n\nUX.loader.additionalController = function () {\n if ($('#relatedTab1').length) {\n const citedLink = $('.epub-section__citedBy');\n const citedBy = $('.sticko__parent #pane-pcw-relatedcon-cloned,.sticko__parent #pane-pcw-relatedcon');\n const accordion = $('#relatedTab1').siblings('.accordion-tabbed__control');\n citedLink.click(function () {\n citedBy.trigger('click');\n if ($('[id=\"relatedTab1\"]').css('display') === 'none') accordion.trigger('click');\n });\n }\n\n $(window).scroll(function () {\n var targetOffset = $('.scroll-to-target.fixed-element')[0].offsetTop;\n if ($(window).scrollTop() > targetOffset) {\n $('.coolBar.coolBar--res').addClass('bg-override');\n } else {\n $('.coolBar.coolBar--res').removeClass('bg-override');\n }\n });\n};\n"],"sourceRoot":""}