{"version":3,"names":["window","jQuery","$","document","ready","each","attribute","this","find","attr","on","e","keyCode","length","click","bgColor","css","textColor","borderColor","analytics","eventConfig","push","target","codeId","events","eventTarget","eventType","tags","componentId","componentName","destinationUrl","elementText","elementType","event","rule","value","fileName","parentListSource","parentName","parentOrdinal","parentTitle","event1","eventCategory","eventAction","eventLabel","environment","document_title","document_type","page_type","page_title","page_bu","page_language","sitecore_contact_id","pardot_cookie_id"],"sources":["assets/feature/navigation/Button/B05Button/js/_b05Button.js"],"sourcesContent":["(function () {\r\n $(document).ready(function() {\r\n $('div.component.b05-button').each(function () {\r\n var attribute = $(this).find('div').attr('aria-label') ? $(this).find('div').attr('aria-label') : \"\";\r\n $(this).find('a').attr('role', \"button\");\r\n $(this).find('a').attr('tabindex', \"0\");\r\n $(this).find('a').attr('aria-label', attribute);\r\n });\r\n\r\n $('div.component.b05-button').on('keydown', function (e) {\r\n if ((e.keyCode === 13 || e.keyCode === 32)) {\r\n if ($(this).find(\"a\").length)\r\n $(this).find(\"a\")[0].click();\r\n }\r\n });\r\n \r\n $('.b05-button.custom-color').each(function () {\r\n var bgColor = $(this).attr('data-backgroundcolor');\r\n if (bgColor) {\r\n $(this).css('background-color', bgColor);\r\n }\r\n var textColor = $(this).attr('data-textcolor');\r\n if (textColor) {\r\n $(this).css('color', textColor);\r\n }\r\n var borderColor = $(this).attr('data-bordercolor');\r\n if (borderColor) {\r\n $(this).css('border-color', borderColor);\r\n }\r\n $(this).css(\"border-radius\", \"12px\");\r\n $(this).css(\"border-style\", \"solid\");\r\n $(this).find('a').attr('style', 'padding: 10px 20px !important');\r\n });\r\n });\r\n}(window.jQuery));\r\n\r\n\r\n//adding new B05 button variant with external icon -FLWEP2 9930 - brought from custom-component.js\r\n\r\n(function ($) {\r\n $(document).ready(function () {\r\n $('.custom_external_b05').each(function () {\r\n var bgColor = $(this).attr('data-backgroundcolor');\r\n if (bgColor) {\r\n $(this).css('background-color', bgColor);\r\n }\r\n var textColor = $(this).attr('data-textcolor');\r\n if (textColor) {\r\n $(this).css('color', textColor);\r\n }\r\n var borderColor = $(this).attr('data-bordercolor');\r\n if (borderColor) {\r\n $(this).css('border-color', borderColor);\r\n }\r\n\r\n $(this).css(\"border-style\", \"solid\");\r\n });\r\n });\r\n $(document).ready(function () {\r\n $('.b05-button.custom-color').each(function () {\r\n var bgColor = $(this).attr('data-backgroundcolor');\r\n if (bgColor) {\r\n $(this).css('background-color', bgColor);\r\n }\r\n var textColor = $(this).attr('data-textcolor');\r\n if (textColor) {\r\n $(this).css('color', textColor);\r\n }\r\n var borderColor = $(this).attr('data-bordercolor');\r\n if (borderColor) {\r\n $(this).css('border-color', borderColor);\r\n }\r\n $(this).css(\"border-radius\", \"12px\");\r\n $(this).css(\"border-style\", \"solid\");\r\n $(this).find('a').attr('style', 'padding: 10px 20px !important');\r\n });\r\n });\r\n}(window.jQuery));\r\n\r\n\r\n/*Analytics for B05 Button*/\r\nanalytics.eventConfig.push(\r\n {\r\n \"target\": \".component.b05-button:not([data-bs-toggle*=modal])\", \r\n \"codeId\": \"b05\",\r\n \"events\": [\r\n {\r\n \"eventTarget\": \"a[href*=\\\\http]\",\r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"componentId\": \"b05\",\r\n \"componentName\": \"button\",\r\n \"destinationUrl\": \"\",\r\n \"elementText\": \"\",\r\n \"elementType\": \"generic button\",\r\n \"event\": [\r\n {\r\n \"rule\": \"$(context).attr('href') && ($(context).attr('href').toLowerCase().search('pds') !== -1 || $(context).attr('href').toLowerCase().search('psims') !== -1)\",\r\n \"value\": \"download\"\r\n },\r\n {\r\n \"rule\": \"true\",\r\n \"value\": \"outbound\"\r\n }\r\n ],\r\n \"eventType\": [\r\n {\r\n \"rule\": \"$(context).attr('href') && $(context).attr('href').toLowerCase().search('pds') !== -1\",\r\n \"value\": \"pds download click\"\r\n },\r\n {\r\n \"rule\": \"$(context).attr('href') && $(context).attr('href').toLowerCase().search('psims') !== -1\",\r\n \"value\": \"sds download click\"\r\n },\r\n {\r\n \"rule\": \"true\",\r\n \"value\": \"outbound click\"\r\n }\r\n ],\r\n \"fileName\": \"\",\r\n \"parentListSource\": \"\",\r\n \"parentName\": \"\",\r\n \"parentOrdinal\": \"\",\r\n \"parentTitle\": \"\"\r\n }\r\n },\r\n {\r\n \"eventTarget\": \"a:not([href*=\\\\http], [data-bs-toggle*=modal])\",\r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"componentId\": \"b05\",\r\n \"componentName\": \"button\",\r\n \"destinationUrl\": \"\",\r\n \"elementText\": \"\",\r\n \"elementType\": \"generic button\",\r\n \"event\": [\r\n {\r\n \"rule\": \"$(context).attr('href') && ($(context).attr('href').toLowerCase().startsWith('mailto:') || $(context).attr('href').toLowerCase().startsWith('tel'))\",\r\n \"value\": \"contact\"\r\n },\r\n {\r\n \"rule\": \"$(context).attr('href') && ($(context).attr('href').toLowerCase().search('pdf') !== -1 || $(context).attr('href').toLowerCase().search('xls') !== -1 || $(context).attr('href').toLowerCase().search('xlsx') !== -1 || $(context).attr('href').toLowerCase().search('doc') !== -1 || $(context).attr('href').toLowerCase().search('docx') !== -1)\",\r\n \"value\": \"download\"\r\n },\r\n {\r\n \"rule\": \"true\",\r\n \"value\": \"navigation\"\r\n }\r\n ],\r\n \"eventType\": [\r\n {\r\n \"rule\": \"$(context).attr('href') && $(context).attr('href').toLowerCase().startsWith('mailto:')\",\r\n \"value\": \"click to email\"\r\n },\r\n {\r\n \"rule\": \"$(context).attr('href') && $(context).attr('href').toLowerCase().startsWith('tel')\",\r\n \"value\": \"click to call\"\r\n },\r\n {\r\n \"rule\": \"$(context).attr('href') && ($(context).attr('href').toLowerCase().search('pdf') !== -1 || $(context).attr('href').toLowerCase().search('xls') !== -1 || $(context).attr('href').toLowerCase().search('xlsx') !== -1 || $(context).attr('href').toLowerCase().search('doc') !== -1 || $(context).attr('href').toLowerCase().search('docx') !== -1)\",\r\n \"value\": \"other media asset click\"\r\n },\r\n {\r\n \"rule\": \"true\",\r\n \"value\": \"button internal navigation click\"\r\n }\r\n ],\r\n \"fileName\": \"\",\r\n \"parentListSource\": \"\",\r\n \"parentName\": \"\",\r\n \"parentOrdinal\": \"\",\r\n \"parentTitle\": \"\"\r\n }\r\n }\r\n ]\r\n},\r\n{\r\n \"target\": \".library-detail-component\", \r\n \"codeId\": \"b05\",\r\n \"events\": [\r\n {\r\n \"eventTarget\": \"a.btn-primary:not(.b05-button):not([href*=\\\\http])\",\r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"componentId\": \"b05\",\r\n \"componentName\": \"button\",\r\n 'event1': '',\r\n 'eventCategory': 'Customer Enablement & Education',\r\n 'eventAction': '',\r\n 'eventLabel': \"\",\r\n \"environment\": \"\",\r\n 'document_title': \"\",\r\n 'document_type': \"\",\r\n 'page_type': \"\",\r\n 'page_title': \"\",\r\n 'page_bu': \"\",\r\n 'page_language': \"\",\r\n 'sitecore_contact_id': \"\",\r\n 'pardot_cookie_id': \"\"\r\n }\r\n }\r\n ]\r\n}\r\n);"],"mappings":"AAkCEA,OAAOC,OAjCLC,EAAEC,UAAUC,OAAM,WACdF,EAAE,4BAA4BG,MAAK,WAC/B,IAAIC,EAAYJ,EAAEK,MAAMC,KAAK,OAAOC,KAAK,cAAgBP,EAAEK,MAAMC,KAAK,OAAOC,KAAK,cAAgB,GAClGP,EAAEK,MAAMC,KAAK,KAAKC,KAAK,OAAQ,UAC/BP,EAAEK,MAAMC,KAAK,KAAKC,KAAK,WAAY,KACnCP,EAAEK,MAAMC,KAAK,KAAKC,KAAK,aAAcH,EACzC,IAEAJ,EAAE,4BAA4BQ,GAAG,WAAW,SAAUC,GAC/B,KAAdA,EAAEC,SAAgC,KAAdD,EAAEC,SACnBV,EAAEK,MAAMC,KAAK,KAAKK,QAClBX,EAAEK,MAAMC,KAAK,KAAK,GAAGM,OAEjC,IAEAZ,EAAE,4BAA4BG,MAAK,WAC/B,IAAIU,EAAUb,EAAEK,MAAME,KAAK,wBACvBM,GACAb,EAAEK,MAA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