{"version":3,"sources":["webpack:///./node_modules/@atypon/ui-bundle-generator/.generated/groups/_truncate.js","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/@babel/runtime/helpers/defineProperty.js"],"names":["main","UX","$truncater","Array","prototype","slice","call","document","getElementsByClassName","$issueItem","querySelectorAll","length","truncater","init","err","console","error","issueItem","$target","$","truncate","each","this","$window","window","vPort","isMobile","$truncateCaptions","seeMoreText","seeLessText","truncateOptions","lines","type","seeMoreLink","seeMoreIcon","seeLessIcon","seeMoreIconMobile","setCaptions","controls","data","not","_objectSpread","on","toPropertyKey","module","exports","_defineProperty","e","r","t","Object","defineProperty","value","enumerable","configurable","writable","__esModule"],"mappings":"2FACQ,qBA0BeA,UAtBV,SAAPA,KAAQC,GACV,IAAMC,EAAaC,MAAMC,UAAUC,MAAMC,KAAKC,SAASC,uBAAuB,iBAC1EC,EAAaN,MAAMC,UAAUC,MAAMC,KAAKC,SAASG,iBAAiB,8BAE1E,IACYR,EAAWS,QACXV,EAAGW,UAAUC,KAAKX,GAExB,MAAOY,GACLC,QAAQC,MAAMF,GAGtB,IACYL,EAAWE,QACXV,EAAGgB,UAAUJ,KAAKJ,GAExB,MAAOK,GACLC,QAAQC,MAAMF,M,kBCtBtB,IACQF,IAAY,CACZM,QAASC,EAAE,iBAEXN,KAAM,SAANA,OACID,EAAUQ,YAGdA,SAAU,SAAVA,WACIR,EAAUM,QAAQG,MAAK,WACnBF,EAAEG,MAAMF,gBAKpBnB,GAAGW,UAAYA,G,wBCdXW,EACAN,E,qmBADAM,EAAUJ,EAAEK,QACZP,EAAY,CACZQ,MAAO,YACPC,UAAU,EACVC,kBAAmBR,EAAE,sBACrBS,YAAa,mBACbC,YAAa,qBACbC,gBAAiB,CACbC,MAAO,EACPC,KAAM,OACNC,aAAa,EACbC,YAAa,YACbC,YAAa,aACbC,kBAAmB,aAEvBvB,KAAI,SAAJA,OACII,EAAUoB,cACVpB,EAAUqB,WACVrB,EAAUG,YAEdiB,YAAW,SAAXA,cACQpB,EAAUU,kBAAkBhB,SAC5BM,EAAUW,YAAcX,EAAUU,kBAAkBY,KAAK,mBACzDtB,EAAUY,YAAcZ,EAAUU,kBAAkBY,KAAK,uBAGjEnB,SAAQ,SAARA,WACI,IAAOQ,EAA4BX,EAA5BW,YAAaC,EAAeZ,EAAfY,YACpBV,EAAE,6BACGqB,IAAI,0BACJpB,SAAQqB,4BAAC,GACHxB,EAAUa,iBAAe,IAC5BD,cACAD,kBAGZU,SAAQ,SAARA,WACIf,EAAQmB,GAAG,6BAA6B,WACpCvB,EAAE,6BAA6BqB,IAAI,0BAA0BpB,gBAIzEnB,GAAGgB,UAAYA,G,mBC3CnB,IAAI0B,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-779ad3f00bfd1a541387.js","sourcesContent":["\n import '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250107-f18a1bc8/ui-products/ehp/node_modules/ui-core/components/truncater/js/truncater';\n \nimport '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250107-f18a1bc8/ui-products/ehp/node_modules/ui-theme/components/issue-item/js/issue-item';\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\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 \n}\n\n export default main;\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","(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","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":""}