{"version":3,"sources":["webpack:///./node_modules/ui-core/plugins/truncate/js/init.js","webpack:///./node_modules/ui-core/components/truncater/js/truncater.js","webpack:///./components/home-page-component/js/home-page-component.js","webpack:///./node_modules/ui-core/widgets/table-of-content/js/table-of-content.js","webpack:///./widgets/table-of-content/js/index.js","webpack:///./node_modules/@atypon/ui-bundle-generator/.generated/groups/_truncate.js"],"names":["UX","truncateInit","init","$","not","truncate","lines","addClass","type","window","on","truncater","$target","each","this","tocJs","$loa","vPort","$toSection","length","section","text","id","attr","appendTo","remove","control","additionalControl","event","document","isMobile","seeMoreLink","seeMoreText","seeLessText","err","console","error","click","target","scrollTop","location","pathname","replace","hostname","hash","slice","offset","top","height","animate","main","$truncater","Array","prototype","call","getElementsByClassName"],"mappings":"4EACIA,GAAGC,aAAe,CACdC,KAAM,SAANA,OACIC,EAAE,yBAAyBC,IAAI,0BAA0BC,SAAS,CAC9DC,MAAO,EACPC,SAAU,eAGdJ,EAAE,uBAAuBC,IAAI,0BAA0BC,SAAS,CAC5DC,MAAO,EACPE,KAAM,OACND,SAAU,eAGdJ,EAAE,0DAA0DC,IAAI,0BAA0BC,SAAS,CAC/FC,MAAO,EACPC,SAAU,eAGdJ,EAAE,+BAA+BC,IAAI,0BAA0BC,SAAS,CACpEC,MAAO,EACPC,SAAU,eAGdJ,EAAE,6BAA6BC,IAAI,0BAA0BC,SAAS,CAClEC,MAAO,EACPE,KAAM,OACND,SAAU,eAGdJ,EAAEM,QAAQC,GAAG,6BAA6B,WACtCP,EAAE,8CAA8CC,IAAI,0BAA0BC,iB,kBC/B9F,IACQM,IAAY,CACZC,QAAST,EAAE,iBAEXD,KAAM,SAANA,OACIS,EAAUN,YAGdA,SAAU,SAAVA,WACIM,EAAUC,QAAQC,MAAK,WACnBV,EAAEW,MAAMT,gBAKpBL,GAAGW,UAAYA,G,kBCfnBR,EAAE,gCAAgCE,SAAS,CACvCC,MAAO,EACPC,SAAU,gB,kBCFd,IACUQ,IAAQ,CACVC,KAAM,K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EAAE,iBAAiB6C,SAErDV,EAAOnB,QAOP,OANAhB,EAAE,aAAa8C,QACX,CACIV,UAAWA,GAEf,MAEG,QCAAW,UAnBV,SAAPA,KAAQlD,GACV,IAAMmD,EAAaC,MAAMC,UAAUR,MAAMS,KAAKzB,SAAS0B,uBAAuB,iBAElF,IACYJ,EAAWhC,QACXnB,EAAGW,UAAUT,KAAKiD,GAExB,MAAOjB,GACLC,QAAQC,MAAMF,GAGtB,IACQlC,EAAGe,MAAMb,OACX,MAAOgC,GACLC,QAAQC,MAAMF","file":"js/truncate-071f1f619d6d5b823a0a.js","sourcesContent":["(function () {\n UX.truncateInit = {\n init: function () {\n $('.creative-work__title').not(\"[data-truncate='none']\").truncate({\n lines: 3,\n addClass: 'min-height',\n });\n\n $('.creative-work .loa').not(\"[data-truncate='none']\").truncate({\n lines: 2,\n type: 'list',\n addClass: 'loa-height',\n });\n\n $('.featured .grid-item:first-child .creative-work__title').not(\"[data-truncate='none']\").truncate({\n lines: 2,\n addClass: 'min-height',\n });\n\n $('.card .creative-work__title').not(\"[data-truncate='none']\").truncate({\n lines: 2,\n addClass: 'min-height',\n });\n\n $('.card .creative-work .loa').not(\"[data-truncate='none']\").truncate({\n lines: 1,\n type: 'list',\n addClass: 'loa-height',\n });\n\n $(window).on('resized orientationchange', function () {\n $('.creative-work__title, .creative-work .loa').not(\"[data-truncate='none']\").truncate();\n });\n },\n };\n})();\n","(function () {\n var truncater = {\n $target: $('.js--truncate'),\n\n init: function () {\n truncater.truncate();\n },\n\n truncate: function () {\n truncater.$target.each(function () {\n $(this).truncate();\n });\n },\n };\n\n UX.truncater = truncater;\n})();\n","$('.aps-select .featured__title').truncate({\n lines: 4,\n addClass: 'max-height',\n});\n","(function () {\n const tocJs = {\n $loa: null,\n vPort: 'screen-xs',\n init: function () {\n const $toSection = $('.to-section');\n if ($toSection.length) {\n $toSection.each(function () {\n var section = $(this).text();\n var id = $(this).attr('id');\n $('
  • ' + section + '
  • ').appendTo(\n '.sections__drop'\n );\n });\n } else {\n $('.toc-go-section, .toc__section').remove();\n }\n tocJs.$loa = $('.issue-item .loa, .search__item .meta__authors, .search__item .loa');\n tocJs.control();\n tocJs.additionalControl();\n },\n control() {\n $(window).on('load orientationchange', function (event) {\n tocJs.truncate();\n });\n\n $(document).on(tocJs.vPort + '-on', function () {\n // Waiting for custom event that will be triggered by controller.js to activate responsive effects\n tocJs.isMobile = true;\n tocJs.truncate();\n });\n\n $(document).on(tocJs.vPort + '-off', function () {\n // Waiting for custom event that will be triggered by controller.js to deactivate responsive effects\n tocJs.isMobile = false;\n tocJs.truncate();\n });\n },\n additionalControl() {},\n truncate() {\n try {\n tocJs.$loa.not(\"[data-truncate='none']\").truncate({\n lines: 2,\n type: 'list',\n seeMoreLink: true,\n seeMoreText: 'See all authors',\n seeLessText: 'See fewer authors',\n });\n } catch (err) {\n console.error(err);\n }\n },\n };\n UX.tocJs = tocJs; // add to global namespace\n})();\n","import 'ui-core/widgets/table-of-content/js/table-of-content';\n\n$(window).on('load', function () {\n $('.article-sections a').click(function () {\n let target, scrollTop;\n if (\n location.pathname.replace(/^\\//, '') === this.pathname.replace(/^\\//, '') &&\n location.hostname === this.hostname\n ) {\n target = $(this.hash);\n target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');\n\n scrollTop = 0;\n if ($('nav.stickybar.coolBar').length > 0) {\n scrollTop =\n target.offset().top -\n $('header.header').height() -\n $('nav.stickybar.coolBar>div.stickybar__wrapper').height();\n } else {\n scrollTop = target.offset().top - $('header.header').height();\n }\n if (target.length) {\n $('html,body').animate(\n {\n scrollTop: scrollTop,\n },\n 500\n );\n return false;\n }\n }\n });\n});\n","\n import '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250107-f18a1bc8/ui-products/physio/node_modules/ui-core/plugins/truncate/js/init';\n \nimport '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250107-f18a1bc8/ui-products/physio/node_modules/ui-core/components/truncater/js/truncater';\n \nimport '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250107-f18a1bc8/ui-products/physio/components/home-page-component/js/home-page-component';\n \nimport '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250107-f18a1bc8/ui-products/physio/widgets/table-of-content/js/index';\n \nconst main = (UX) => {\n const $truncater = Array.prototype.slice.call(document.getElementsByClassName('js--truncate'))\n\ntry {\n if ($truncater.length ) {\n UX.truncater.init($truncater);\n }\n } catch (err) {\n console.error(err);\n }\n \ntry {\n UX.tocJs.init();\n } catch (err) {\n console.error(err);\n }\n \n}\n\n export default main;\n "],"sourceRoot":""}