{"version":3,"names":["ShowHideSds","$","hide","val","show","selectedCountry","children","text","toLowerCase","replaceAll","resourceListCountries","length","init","$sdslinks","on","cname","cvalue","cduration","isOneTrustLoaded","then","consentManager","isCategoryActive","d","Date","setTime","getTime","expires","toUTCString","document","cookie","setCookie","this","data","parseInt","ready","onChange","pdsCountryCodeFetchCountry","sdsCountryCodeFetchCountry","fetchPdsPartialView","ajax","url","type","async","countryIso","productName","language","productCountry","datasourceId","pageTemplateId","dataType","success","html","sanitizeHtmlStrings","whiteList","div","a","span","i","input","h3","failure","msg","trim","productCode","table","tbody","tr","td","select","option","svg","path","defaultCountry","find","focus","change","autoContentDisplayAttr","selectorAttr","replaceHtmlTagsAttr","showAutoDisplayContent","TemplateId","ProductName","Language","DatasourceId","CountryCode","Type","response","empty","JSON","parse","options","selectedCountryinDropdown","CountryName","IsSelected","append","component","attr","componentSelectorValue","componentReplaceTagsValue","textToCopy","indexOf","htmlTags","split","j","replace","window","jQuery","doclistResources","querySelectorAll","prodCode","getAttribute","status","xhr","css","forEach","listDocData","docid","downloadUrl","grep","p","MaterialId","map","DocumentUrl","location","origin","setAttribute","analytics","eventConfig","push","target","codeId","events","eventTarget","eventType","tags","componentId","componentName","elementText","elementType","event","parentName","parentTitle","titleText"],"sources":["assets/feature/ApplicationExtension/sdsPdsDatasheet/js/_sdsPdsDatasheet.js"],"sourcesContent":["(function ($) {\r\n    $(document).ready(function () {\r\n        init();\r\n        var pdsCountryCodeFetchCountry = $(\"#hdnPdsCountryCode\").val();\r\n        var sdsCountryCodeFetchCountry = $(\"#hdnSdsCountryCode\").val();\r\n        if ($(\"#divPartialViewSds\").length == 1) {\r\n            fetchSdsPartialView();\r\n        }\r\n        if (!$(\"#ddlCountry\")) return;\r\n        $(\"#ddlCountry\").change(function () {\r\n            if ($(\"#ddlCountry\").val() == -1) {\r\n                $(\"#divPartialView\").html(\"\");\r\n                fetchPdsPartialView(true);\r\n                return;\r\n            }\r\n            fetchPdsPartialView();\r\n        });\r\n        if (!$(\"#ddlCountrySds\")) return;\r\n        $(document).on('change', \"#ddlCountrySds\", function () {\r\n            ShowHideSds();\r\n        });\r\n        $(\"[lightboxmodalcontainer]\").on(\"shown.bs.modal\",\r\n            function () {\r\n                var autoContentDisplayAttr = 'auto-display-content';\r\n                var selectorAttr = 'content-selector';\r\n                var replaceHtmlTagsAttr = 'remove-html-tags';\r\n                var dynamicText = '{prodNameLabel}';\r\n                var showAutoDisplayContent = $('[' + autoContentDisplayAttr + ']');\r\n                if ($(\"#ddlCountry:visible\").val() == -1) {\r\n                    $(\"#divPartialView:visible\").html('<svg style=\"animation:fa-spin 1s infinite steps(8);height:25px;\" class=\"svg-inline--fa fa-spinner fa-w-16 fa-pulse\" aria-hidden=\"true\" data-prefix=\"fas\" data-icon=\"spinner\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" data-fa-i2svg=\"\"><path fill=\"currentColor\" d=\"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z\"></path></svg>');\r\n                    populateCountryDropDown();\r\n                }\r\n\r\n                /*Product textbox auto populate title*/\r\n                if (showAutoDisplayContent && showAutoDisplayContent.length > 0) {\r\n                    for (var i = 0; i <= showAutoDisplayContent.length - 1; i++) {\r\n                        var component = showAutoDisplayContent[i];\r\n                        if (component && $(component).attr(autoContentDisplayAttr) === \"True\") {\r\n                            var componentSelectorValue = $(component).attr(selectorAttr) ? $(component).attr(selectorAttr) : '';\r\n                            var componentReplaceTagsValue = $(component).attr(replaceHtmlTagsAttr) ? $(component).attr(replaceHtmlTagsAttr) : '';\r\n                            if ($(componentSelectorValue) && $(componentSelectorValue).length > 0) {\r\n                                var textToCopy = $($(componentSelectorValue)[0]).text();\r\n                                if (componentReplaceTagsValue.length > 0) {\r\n                                    if (componentReplaceTagsValue.indexOf(',') > -1) {\r\n                                        var htmlTags = componentReplaceTagsValue.split(',');\r\n                                        if (htmlTags && htmlTags.length > 0) {\r\n                                            for (var j = 0; j <= htmlTags.length - 1; j++) {\r\n                                                textToCopy = textToCopy.replace(htmlTags[i]);\r\n                                            }\r\n                                        }\r\n                                    } else {\r\n                                        textToCopy = textToCopy.replace(componentReplaceTagsValue);\r\n                                    }\r\n                                }\r\n                                $(component).val(textToCopy);\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            });\r\n        function populateCountryDropDown() {\r\n            if ($(\"#ddlCountry:visible\").length > 0) {\r\n                fetchPdsPartialView();\r\n                $.ajax({\r\n                    url: $(\"#CountryEndpoint_PDS\").val(),\r\n                    type: 'POST',\r\n                    async: true,\r\n                    data: {\r\n                        TemplateId: $(\"#hdnPageTemplate\").val(),\r\n                        ProductName: $(\"#hdnProduct\").val(),\r\n                        Language: $(\"#languagePds\").val(),\r\n                        DatasourceId: $(\"#hdnDataSourceIdPds\").val(),\r\n                        CountryCode: pdsCountryCodeFetchCountry,\r\n                        Type: \"PDS\"\r\n                    },\r\n                    dataType: \"html\",\r\n                    success: function (response) {\r\n                        $(\"#ddlCountry\").empty();\r\n                        var data = JSON.parse(response);\r\n                        var options = \"\";\r\n                        var selectedCountryinDropdown = \"-1\";\r\n                        for (var i = 0; i < data.length; i++) {\r\n                            if (data[i].CountryCode === \"-1\")\r\n                                options += \"<option value='\" + data[i].CountryCode + \"'>\" + data[i].CountryName + \"</option>\";\r\n                            else {\r\n                                options += \"<option lang='en' value='\" + data[i].CountryCode + \"'>\" + data[i].CountryName + \"</option>\";\r\n                            }\r\n                            if (data[i].IsSelected) {\r\n                                selectedCountryinDropdown = data[i].CountryCode;\r\n                            }\r\n                        }\r\n                        $(\"#ddlCountry\").append(sanitizeHtmlStrings(options, {\r\n                            whiteList: {\r\n                                option: [\"value\", \"lang\"]\r\n                            }\r\n                        }));\r\n                        $(\"#ddlCountry\").val(selectedCountryinDropdown);\r\n                    },\r\n                    failure: function (msg) {\r\n                    }\r\n                });\r\n            }\r\n        }\r\n        function fetchPdsPartialView(onChange) {\r\n            $.ajax({\r\n                url: $(\"#URLEndpointName\").val(),\r\n                type: 'POST',\r\n                async: true,\r\n                data: {\r\n                    countryIso: $(\"#ddlCountry\").val() == -1 && !onChange ? pdsCountryCodeFetchCountry : $(\"#ddlCountry\").val(),\r\n                    productName: $(\"#hdnProduct\").val(),\r\n                    language: $(\"#languagePds\").val(),\r\n                    productCountry: pdsCountryCodeFetchCountry,\r\n                    datasourceId: $(\"#hdnDataSourceIdPds\").val(),\r\n                    pageTemplateId: $(\"#hdnPageTemplate\").val()\r\n                },\r\n                dataType: \"html\",\r\n                success: function (data) {\r\n                    $(\"#divPartialView\").html(sanitizeHtmlStrings(data, {\r\n                        whiteList: {\r\n                            div: [\"class\", \"data-analytics\"],\r\n                            a: [\"title\", \"href\", \"class\", \"target\", \"document-type\", \"data-bs-toggle\", \"data-bs-target\", \"aria-label\", \"lang\"],\r\n                            span: [\"class\"],\r\n                            i: [\"class\"],\r\n                            input: [\"type\", \"id\", \"value\"],\r\n                            h3: [\"class\"]\r\n                        }\r\n                    }));\r\n                    init();\r\n                    if (data.length <= 54)\r\n                        $(\"#ResultsNotFound\").show();\r\n                    else\r\n                        $(\"#ResultsNotFound\").hide();\r\n                },\r\n                failure: function (msg) {\r\n                }\r\n            });\r\n        }\r\n        function fetchSdsPartialView(onChange) {\r\n            $(\"#dvSdsLoader\").show();\r\n            $.ajax({\r\n                url: $(\"#URLEndpointNameSds\").val(),\r\n                type: 'POST',\r\n                async: true,\r\n                data: {\r\n                    countryIso: $(\"#ddlCountrySds\").val() == -1 && !onChange ? sdsCountryCodeFetchCountry : $(\"#ddlCountrySds\").val(),\r\n                    type: \"SDS\",\r\n                    productName: $(\"#hdnProductName\").val().trim(),\r\n                    language: $(\"#languageSds\").val(),\r\n                    datasourceId: $(\"#hdnDataSourceIdSds\").val(),\r\n                    productCode: $(\"#hdnProductCode\").val()\r\n                },\r\n                dataType: \"html\",\r\n                success: function (data) {\r\n                    $(\"#divPartialViewSds\").html(sanitizeHtmlStrings(data, {\r\n                        whiteList: {\r\n                            div: [\"class\", \"data-analytics\", \"data-country\", \"id\", \"style\"],\r\n                            a: [\"title\", \"href\", \"class\", \"target\", \"document-type\", \"data-bs-toggle\", \"data-bs-target\", \"aria-label\", \"lang\"],\r\n                            span: [\"class\", \"lang\", \"data-cookie-name\", \"data-cookie-value\", \"data-cookie-duration\"],\r\n                            i: [\"class\"],\r\n                            input: [\"type\", \"id\", \"value\", \"class\"],\r\n                            h3: [\"class\", \"id\", \"lang\", \"style\"],\r\n                            table: [\"class\"],\r\n                            tbody: [\"class\"],\r\n                            tr: [\"class\"],\r\n                            td: [\"class\"],\r\n                            select: [\"class\", \"id\"],\r\n                            option: [\"class\", \"value\", \"lang\", \"selected\"],\r\n                            svg: [\"style\", \"class\", \"aria-hidden\", \"data-prefix\", \"data-icon\", \"data-fa-i2svg\", \"role\", \"xmlns\", \"viewBox\"],\r\n                            path: [\"fill\", \"d\"]\r\n                        }\r\n                    }));\r\n                    init();\r\n                    var defaultCountry = $(\"#hdnSdsCountryCode\").val();\r\n                    if (defaultCountry == \"\" || $(\"#ddlCountrySds\").find('option[value=\\\"' + defaultCountry + '\\\"]').length == 0) {\r\n                        $(\"#ddlCountrySds\").val(\"-1\");\r\n                    } else {\r\n                        $(\"#ddlCountrySds\").val(defaultCountry);\r\n                    }\r\n                    ShowHideSds();\r\n                    $(\"#dvSdsLoader\").hide();\r\n                    //set focus to the dropdown\r\n                    $(\"#ddlCountrySds\").focus();\r\n                },\r\n                failure: function (msg) {\r\n                }\r\n            });\r\n        }\r\n    });\r\n    function setCookie(cname, cvalue, cduration) {\r\n        isOneTrustLoaded().then(function () {\r\n            if (typeof consentManager !== \"undefined\" && !consentManager.isCategoryActive(\"SDSDownload\")) {\r\n                return;\r\n            }\r\n\r\n            if (!cname || !cvalue) return false;\r\n            var d = new Date();\r\n            d.setTime(d.getTime() + (cduration * 24 * 60 * 60 * 1000));\r\n            var expires = \"expires=\" + d.toUTCString();\r\n            document.cookie = cname + \"=\" + cvalue + \";\" + expires + \";path=/\";\r\n        });\r\n    }\r\n    function init() {\r\n        var $sdslinks = $('.sds-cookie-link');\r\n        if (!$sdslinks.length) return;\r\n        $sdslinks.on('click', function () {\r\n            var cname = $(this).data('cookie-name'),\r\n                cvalue = $(this).data('cookie-value'),\r\n                cduration = parseInt($(this).data('cookie-duration'), 10);\r\n            setCookie(cname, cvalue, cduration);\r\n        });\r\n    }\r\n}(window.jQuery));\r\n\r\nfunction ShowHideSds() {\r\n    $(\"#divSdsDocuments\").hide();\r\n\r\n    if ($(\"#ddlCountrySds\").val() != \"-1\") {\r\n        $(\"#divSdsDocuments\").show();\r\n    }\r\n    $(\".no-sds-docs\").hide();\r\n    var selectedCountry = $(\"#ddlCountrySds\").children(\"option:selected\").text().toLowerCase().replaceAll(\" \", \"\");\r\n    $(\".resource-list-country\").hide();\r\n\r\n    var resourceListCountries = $(\".resource-list-country[data-country='\" + selectedCountry + \"']\");\r\n    resourceListCountries.show();\r\n\r\n    if (resourceListCountries.length === 0) {\r\n        $(\".no-sds-docs\").show();\r\n    }\r\n}\r\n\r\n(function ($) {\r\n    $(document).ready(function () {\r\n        var apiDownloadurl = \"/api/SdsLanding/GetSdsDocuments\";\r\n        var doclistResources = document.querySelectorAll(\".download-link\");\r\n        if (doclistResources.length > 0) {\r\n            var prodCode = doclistResources[0].getAttribute(\"data-productcode\");\r\n            $.ajax({\r\n                type: 'POST',\r\n                url: apiDownloadurl,\r\n                async: true,\r\n                data: {\r\n                    productCode: prodCode\r\n                },\r\n                success: function (data, status, xhr) {\r\n                    if (data.length > 0) {\r\n                        doclistResources.forEach(function (listDocData) {\r\n                            var docid = listDocData.getAttribute(\"data-docid\");\r\n                            var downloadUrl = $.grep(data, function (p) { return p.MaterialId == docid; })\r\n                                .map(function (p) { return p.DocumentUrl; });\r\n                            downloadUrl = window.location.origin + \"/downloadfile.ashx?url=\" + downloadUrl;\r\n                            listDocData.setAttribute(\"href\", downloadUrl);\r\n                        });\r\n                        $(\".dvSdsLoader\").hide();\r\n                        $(\".download-link\").css(\"display\", \"flex\");\r\n                    } else {\r\n                        $(\".dvSdsLoader\").hide();\r\n                        $(\".download-link\").css(\"display\", \"flex\");\r\n                        return false;\r\n                    }\r\n                }\r\n            });\r\n        }\r\n    });\r\n}(window.jQuery));\r\n/*Analytics*/\r\nanalytics.eventConfig.push(\r\n    {\r\n        \"target\": \"span#divProductPDSDetails\",\r\n        \"codeId\": \"psd\",\r\n        \"events\": [\r\n            {\r\n                \"eventTarget\": \"#ddlCountry\",\r\n                \"eventType\": \"change\",\r\n                \"tags\": {\r\n                    \"componentId\": \"psd\",\r\n                    \"componentName\": \"pds sds datasheet\",\r\n                    \"elementText\": \"\",\r\n                    \"elementType\": \"country dropdown\",\r\n                    \"event\": \"navigation\",\r\n                    \"eventType\": \"country selection click\",\r\n                    \"parentName\": \"\",\r\n                    \"parentTitle\": \"\",\r\n                    \"titleText\": \"\"\r\n                }\r\n            }\r\n        ]\r\n    },\r\n    {\r\n        \"target\": \"div#divProductSDSDetails\",\r\n        \"codeId\": \"psd\",\r\n        \"events\": [\r\n            {\r\n                \"eventTarget\": \"#ddlCountrySds\",\r\n                \"eventType\": \"change\",\r\n                \"tags\": {\r\n                    \"componentId\": \"psd\",\r\n                    \"componentName\": \"pds sds datasheet\",\r\n                    \"elementText\": \"\",\r\n                    \"elementType\": \"country dropdown\",\r\n                    \"event\": \"navigation\",\r\n                    \"eventType\": \"country selection click\",\r\n                    \"parentName\": \"lightbox\",\r\n                    \"parentTitle\": \"\",\r\n                    \"titleText\": \"\"\r\n                }\r\n            }\r\n        ]\r\n    }\r\n)"],"mappings":"AAsNA,SAASA,cACLC,EAAE,oBAAoBC,OAEW,MAA7BD,EAAE,kBAAkBE,OACpBF,EAAE,oBAAoBG,OAE1BH,EAAE,gBAAgBC,OAClB,IAAIG,EAAkBJ,EAAE,kBAAkBK,SAAS,mBAAmBC,OAAOC,cAAcC,WAAW,IAAK,IAC3GR,EAAE,0BAA0BC,OAE5B,IAAIQ,EAAwBT,EAAE,wCAA0CI,EAAkB,MAC1FK,EAAsBN,OAEe,IAAjCM,EAAsBC,QACtBV,EAAE,gBAAgBG,MAE1B,EAtOC,SAAUH,GA0MP,SAASW,IACL,IAAIC,EAAYZ,EAAE,oBACbY,EAAUF,QACfE,EAAUC,GAAG,SAAS,YAhB1B,SAAmBC,EAAOC,EAAQC,GAC9BC,mBAAmBC,MAAK,WACpB,GAA8B,oBAAnBC,gBAAmCA,eAAeC,iBAAiB,eAA9E,CAIA,IAAKN,IAAUC,EAAQ,OAAO,EAC9B,IAAIM,EAAI,IAAIC,KACZD,EAAEE,QAAQF,EAAEG,UAAyB,GAAZR,EAAiB,GAAK,GAAK,KACpD,IAAIS,EAAU,WAAaJ,EAAEK,cAC7BC,SAASC,OAASd,EAAQ,IAAMC,EAAS,IAAMU,EAAU,SANzD,CAOJ,GACJ,CAQQI,CAHY7B,EAAE8B,MAAMC,KAAK,eACZ/B,EAAE8B,MAAMC,KAAK,gBACVC,SAAShC,EAAE8B,MAAMC,KAAK,mBAAoB,IAE9D,GACJ,CAlNA/B,EAAE2B,UAAUM,OAAM,WACdtB,IACA,IAuI6BuB,EAvIzBC,EAA6BnC,EAAE,sBAAsBE,MACrDkC,EAA6BpC,EAAE,sBAAsBE,MAmGzD,SAASmC,EAAoBH,GACzBlC,EAAEsC,KA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