{"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:///./components/issue-item/js/issue-item.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","main","$truncater","Array","prototype","slice","call","document","getElementsByClassName","$issueItem","querySelectorAll","err","console","error","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,SAAQ,SAARA,WACI,IAAOU,EAA4BL,EAA5BK,YAAaC,EAAeN,EAAfM,YACpBb,EAAE,6BACGyB,IAAI,0BACJvB,SAAQwB,4BAAC,GACHnB,EAAUO,iBAAe,IAC5BD,cACAD,kBAGZU,SAAQ,SAARA,WACIhB,EAAQqB,GAAG,6BAA6B,WACpC3B,EAAE,6BAA6ByB,IAAI,0BAA0BvB,gBAIzEG,GAAGE,UAAYA,G,0qBCzCnBF,GAAGE,UAAUO,gBAAeY,4BAAA,GACrBrB,GAAGE,UAAUO,iBAAe,IAC/BC,MAAO,ICuBYa,UAtBV,SAAPA,KAAQvB,GACV,IAAMwB,EAAaC,MAAMC,UAAUC,MAAMC,KAAKC,SAASC,uBAAuB,iBAC1EC,EAAaN,MAAMC,UAAUC,MAAMC,KAAKC,SAASG,iBAAiB,8BAE1E,IACYR,EAAWN,QACXlB,EAAGP,UAAUG,KAAK4B,GAExB,MAAOS,GACLC,QAAQC,MAAMF,GAGtB,IACYF,EAAWb,QACXlB,EAAGE,UAAUN,KAAKmC,GAExB,MAAOE,GACLC,QAAQC,MAAMF,M,mBCtBtB,IAAIG,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-438f8a60a1af5d2335df.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","import 'ui-theme/components/issue-item/js/issue-item';\n\nUX.issueItem.truncateOptions = {\n ...UX.issueItem.truncateOptions,\n lines: 2,\n};\n","\n import '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250107-f18a1bc8/ui-products/asce/node_modules/ui-core/components/truncater/js/truncater';\n \nimport '/mnt/ssd/na101/home/literatum/sourcegit/ui-products-branches/maint-250107-f18a1bc8/ui-products/asce/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 ","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":""}