{"version":3,"sources":["webpack:///./node_modules/ui-core/components/truncater/js/truncater.js","webpack:///./node_modules/ui-theme/components/issue-item/js/issue-item.js","webpack:///./node_modules/ui-core/widgets/table-of-content/js/table-of-content.js","webpack:///./components/issue-item/js/issue-item.js","webpack:///./widgets/table-of-content/js/table-of-content.js","webpack:///./node_modules/@atypon/ui-bundle-generator/.generated/groups/_truncate.js","webpack:///./node_modules/@babel/runtime/helpers/defineProperty.js"],"names":["truncater","$target","$","init","truncate","each","this","UX","$window","issueItem","window","vPort","isMobile","$truncateCaptions","seeMoreText","seeLessText","truncateOptions","lines","type","seeMoreLink","seeMoreIcon","seeLessIcon","seeMoreIconMobile","setCaptions","controls","length","data","not","_objectSpread","on","tocJs","$loa","$toSection","section","text","id","attr","appendTo","remove","control","additionalControl","event","document","err","console","error","main","$truncater","Array","prototype","slice","call","getElementsByClassName","$issueItem","querySelectorAll","$tocJs","toPropertyKey","module","exports","_defineProperty","e","r","t","Object","defineProperty","value","enumerable","configurable","writable","__esModule"],"mappings":"4EAAA,IACQA,IAAY,CACZC,QAASC,EAAE,iBAEXC,KAAM,SAANA,OACIH,EAAUI,YAGdA,SAAU,SAAVA,WACIJ,EAAUC,QAAQI,MAAK,WACnBH,EAAEI,MAAMF,gBAKpBG,GAAGP,UAAYA,G,wBCdXQ,EACAC,E,qmBADAD,EAAUN,EAAEQ,QACZD,EAAY,CACZE,MAAO,YACPC,UAAU,EACVC,kBAAmBX,EAAE,sBACrBY,YAAa,mBACbC,YAAa,qBACbC,gBAAiB,CACbC,MAAO,EACPC,KAAM,OACNC,aAAa,EACbC,YAAa,YACbC,YAAa,aACbC,kBAAmB,aAEvBnB,KAAI,SAAJA,OACIM,EAAUc,cACVd,EAAUe,WACVf,EAAUL,YAEdmB,YAAW,SAAXA,cACQd,EAAUI,kBAAkBY,SAC5BhB,EAAUK,YAAcL,EAAUI,kBAAkBa,KAAK,mBACzDjB,EAAUM,YAAcN,EAAUI,kBAAkBa,KAAK,uBAGjEtB,S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GE,UAAUO,gBAAgBK,YAAc,uBAC3Cd,GAAGE,UAAUO,gBAAgBM,kBAAoB,eACjDf,GAAGE,UAAUc,YAAc,a,OCHvBhB,GAAGuB,MAAM1B,SAAW,WAChB,IACIG,GAAGuB,MAAMC,KAAKJ,IAAI,0BAA0BvB,SAAS,CACjDa,MAAO,EACPC,KAAM,OACNC,aAAa,EACbL,YAAa,WACbC,YAAa,aAEnB,MAAO4B,GACLC,QAAQC,MAAMF,KCyBHG,UA/BV,SAAPA,KAAQvC,GACV,IAAMwC,EAAaC,MAAMC,UAAUC,MAAMC,KAAKT,SAASU,uBAAuB,iBAC1EC,EAAaL,MAAMC,UAAUC,MAAMC,KAAKT,SAASY,iBAAiB,8BAClEC,EAASP,MAAMC,UAAUC,MAAMC,KAAKT,SAASY,iBAAiB,yBAEtE,IACYP,EAAWtB,QACXlB,EAAGP,UAAUG,KAAK4C,GAExB,MAAOJ,GACLC,QAAQC,MAAMF,GAGtB,IACYU,EAAW5B,QACXlB,EAAGE,UAAUN,KAAKkD,GAExB,MAAOV,GACLC,QAAQC,MAAMF,GAGtB,IACYY,EAAO9B,QACPlB,EAAGuB,MAAM3B,KAAKoD,GAEpB,MAAOZ,GACLC,QAAQC,MAAMF,M,mBCjCtB,IAAIa,EAAgB,EAAQ,IAS5BC,EAAOC,QARP,SAASC,gBAAgBC,EAAGC,EAAGC,GAC7B,OAAQD,EAAIL,EAAcK,MAAOD,EAAIG,OAAOC,eAAeJ,EAAGC,EAAG,CAC/DI,MAAOH,EACPI,YAAY,EACZC,cAAc,EACdC,UAAU,IACPR,EAAEC,GAAKC,EAAGF,GAEiBH,EAAOC,QAAQW,YAAa,EAAMZ,EAAOC,QAAiB,QAAID,EAAOC","file":"js/truncate-613229afaa014326b59b.js","sourcesContent":["(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","(function () {\n var $window = $(window);\n var issueItem = {\n vPort: 'screen-sm',\n isMobile: false,\n $truncateCaptions: $('.truncate-captions'),\n seeMoreText: 'View all authors',\n seeLessText: 'View fewer authors',\n truncateOptions: {\n lines: 3,\n type: 'list',\n seeMoreLink: true,\n seeMoreIcon: 'icon-plus',\n seeLessIcon: 'icon-close',\n seeMoreIconMobile: 'icon-plus',\n },\n init() {\n issueItem.setCaptions();\n issueItem.controls();\n issueItem.truncate();\n },\n setCaptions() {\n if (issueItem.$truncateCaptions.length) {\n issueItem.seeMoreText = issueItem.$truncateCaptions.data('view-all-author');\n issueItem.seeLessText = issueItem.$truncateCaptions.data('view-fewer-author');\n }\n },\n truncate() {\n const {seeMoreText, seeLessText} = issueItem;\n $('.issue-item__authors .loa')\n .not(\"[data-truncate='none']\")\n .truncate({\n ...issueItem.truncateOptions,\n seeLessText,\n seeMoreText,\n });\n },\n controls() {\n $window.on('resized orientationchange', function () {\n $('.issue-item__authors .loa').not(\"[data-truncate='none']\").truncate();\n });\n },\n };\n UX.issueItem = issueItem;\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-theme/components/issue-item/js/issue-item';\nUX.issueItem.seeMoreText = 'see more';\nUX.issueItem.seeLessText = 'see less';\nUX.issueItem.truncateOptions.seeMoreIcon = 'icon-section_arrow_d';\nUX.issueItem.truncateOptions.seeLessIcon = 'icon-section_arrow_u';\nUX.issueItem.truncateOptions.seeMoreIconMobile = 'icon-arrow_r';\nUX.issueItem.setCaptions = function () {};\n","import 'ui-core/widgets/table-of-content/js/table-of-content';\n\n(function () {\n UX.tocJs.truncate = function () {\n try {\n UX.tocJs.$loa.not(\"[data-truncate='none']\").truncate({\n lines: 2,\n type: 'list',\n seeMoreLink: true,\n seeMoreText: 'see more',\n seeLessText: 'see less',\n });\n } catch (err) {\n console.error(err);\n }\n };\n})();\n","\n import '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250123-87bc2e61rmit/ui-products/rmit/node_modules/ui-core/components/truncater/js/truncater';\n \nimport '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250123-87bc2e61rmit/ui-products/rmit/components/issue-item/js/issue-item';\n \nimport '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250123-87bc2e61rmit/ui-products/rmit/widgets/table-of-content/js/table-of-content';\n \nconst main = (UX) => {\n const $truncater = Array.prototype.slice.call(document.getElementsByClassName('js--truncate')),\n $issueItem = Array.prototype.slice.call(document.querySelectorAll('.issue-item__authors .loa')),\n $tocJs = Array.prototype.slice.call(document.querySelectorAll('.loa, .meta__authors'))\n\ntry {\n if ($truncater.length ) {\n UX.truncater.init($truncater);\n }\n } catch (err) {\n console.error(err);\n }\n \ntry {\n if ($issueItem.length ) {\n UX.issueItem.init($issueItem);\n }\n } catch (err) {\n console.error(err);\n }\n \ntry {\n if ($tocJs.length ) {\n UX.tocJs.init($tocJs);\n }\n } catch (err) {\n console.error(err);\n }\n \n}\n\n export default main;\n ","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"sourceRoot":""}