{"version":3,"names":["$","document","ready","on","redirect_url","this","val","find","attr","window","open","sanitizeHtmlStrings","location","href","encodeURI","decodeURI","jQuery","analytics","eventConfig","push","target","codeId","events","eventTarget","eventType","tags","componentId","componentName","destinationUrl","elementText","elementType","rule","value","event","fileName","titleText"],"sources":["assets/feature/pagecontent/SelectBox/js/_FO02-select-box.js"],"sourcesContent":["(function ($) {\r\n $(document).ready(function () {\r\n $('.select-dropdown-link select').on('change', function () {\r\n var redirect_url = $(this).val();\r\n if ($(this).find('option:selected').attr('linktype') === 'external') {\r\n window.open(sanitizeHtmlStrings(redirect_url), '_blank');\r\n } else {\r\n document.location.href = window.encodeURI(sanitizeHtmlStrings(decodeURI(redirect_url)));\r\n }\r\n });\r\n });\r\n}(window.jQuery));\r\n\r\n// Analytics\r\n\r\nanalytics.eventConfig.push(\r\n {\r\n \"target\": \".form-group .select-wrapper:not(.noTriggerAnalyticsEvent)\",\r\n \"codeId\": \"fo02\",\r\n \"events\": [\r\n {\r\n \"eventTarget\": \".form-control\",\r\n \"eventType\": \"change\",\r\n \"tags\": {\r\n \"componentId\": \"fo02\",\r\n \"componentName\": \"select box\",\r\n \"destinationUrl\": \"\",\r\n \"elementText\": \"\",\r\n \"elementType\": [\r\n {\r\n \"rule\": \"$(context).parents('.product-selector-form').length > 0\",\r\n \"value\": \"dropdown select box\"\r\n },\r\n {\r\n \"rule\": \"true\",\r\n \"value\": \"select box link\"\r\n }\r\n ],\r\n \"event\": [\r\n {\r\n \"rule\": \"$(context).find(':selected').attr('linktype') == 'mailto'\",\r\n \"value\": \"contact\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').val().toLowerCase().search('pds') !== -1 || $(context).find(':selected').val().toLowerCase().search('psims') !== -1 || $(context).find(':selected').attr('linktype') == 'media'\",\r\n \"value\": \"download\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').attr('linktype') == 'internal'\",\r\n \"value\": \"navigation\"\r\n },\r\n {\r\n \"rule\": \"$(context).parents('.product-selector-form').length > 0\",\r\n \"value\": \"product\"\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).find(':selected').attr('linktype') == 'mailto'\",\r\n \"value\": \"click to email\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').val().toLowerCase().search('pds') !== -1\",\r\n \"value\": \"pds download click\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').val().toLowerCase().search('psims') !== -1\",\r\n \"value\": \"sds download click\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').attr('linktype') == 'media'\",\r\n \"value\": \"other media asset click\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').attr('linktype') == 'internal'\",\r\n \"value\": \"select box internal navigation click\"\r\n },\r\n {\r\n \"rule\": \"$(context).parents('.product-selector-form').length > 0\",\r\n \"value\": \"ps dropdown selection click\"\r\n },\r\n {\r\n \"rule\": \"true\",\r\n \"value\": \"outbound click\"\r\n }\r\n ],\r\n \"fileName\": \"\",\r\n \"titleText\": \"\"\r\n }\r\n }, {\r\n \"eventTarget\": \"triggerOnChangeEvent\",\r\n \"eventType\": \"change\",\r\n \"tags\": {\r\n \"componentId\": \"fo02\",\r\n \"componentName\": \"select box\",\r\n \"destinationUrl\": \"\",\r\n \"elementText\": \"\",\r\n \"elementType\": [\r\n {\r\n \"rule\": \"$(context).parents('.product-selector-form').length > 0\",\r\n \"value\": \"dropdown select box\"\r\n },\r\n {\r\n \"rule\": \"true\",\r\n \"value\": \"select box link\"\r\n }\r\n ],\r\n \"event\": [\r\n {\r\n \"rule\": \"$(context).find(':selected').attr('linktype') == 'mailto'\",\r\n \"value\": \"contact\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').val().toLowerCase().search('pds') !== -1 || $(context).find(':selected').val().toLowerCase().search('psims') !== -1 || $(context).find(':selected').attr('linktype') == 'media'\",\r\n \"value\": \"download\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').attr('linktype') == 'internal'\",\r\n \"value\": \"navigation\"\r\n },\r\n {\r\n \"rule\": \"$(context).parents('.product-selector-form').length > 0\",\r\n \"value\": \"product\"\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).find(':selected').attr('linktype') == 'mailto'\",\r\n \"value\": \"click to email\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').val().toLowerCase().search('pds') !== -1\",\r\n \"value\": \"pds download click\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').val().toLowerCase().search('psims') !== -1\",\r\n \"value\": \"sds download click\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').attr('linktype') == 'media'\",\r\n \"value\": \"other media asset click\"\r\n },\r\n {\r\n \"rule\": \"$(context).find(':selected').attr('linktype') == 'internal'\",\r\n \"value\": \"select box internal navigation click\"\r\n },\r\n {\r\n \"rule\": \"$(context).parents('.product-selector-form').length > 0\",\r\n \"value\": \"ps dropdown selection click\"\r\n },\r\n {\r\n \"rule\": \"true\",\r\n \"value\": \"outbound click\"\r\n }\r\n ],\r\n \"fileName\": \"\",\r\n \"titleText\": \"\"\r\n }\r\n }, {\r\n \"eventTarget\": \"triggerOnChangeEventTypeAhead\",\r\n \"eventType\": \"change\",\r\n \"tags\": {\r\n \"componentId\": \"fo02\",\r\n \"componentName\": \"select box\",\r\n \"destinationUrl\": \"\",\r\n \"elementText\": \"\",\r\n \"elementType\": \"\",\r\n \"event\": \"\",\r\n \"eventType\": \"\",\r\n \"fileName\": \"\",\r\n \"titleText\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n)"],"mappings":"CAAC,SAAUA,GACPA,EAAEC,UAAUC,OAAM,WACdF,EAAE,gCAAgCG,GAAG,UAAU,WAC3C,IAAIC,EAAeJ,EAAEK,MAAMC,MAC8B,aAArDN,EAAEK,MAAME,KAAK,mBAAmBC,K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