<\/span><\/span>'),i.find("span.select2-selection__txt").text(n.text),i.find("img.select2-selection__img").attr("src",t.data("nshopselectpicture")),t.data("nshopselectpictureclass")&&i.find("img.select2-selection__img").addClass(t.data("nshopselectpictureclass")),i):t&&t.data("nshopselectsvg")?(i=$('<\/span><\/span><\/span>'),i.find("span.select2-selection__txt").text(n.text),i.find("span.select2-selection__svg").load(t.data("nshopselectsvg")),t.data("nshopselectsvgclass")&&i.find("span.select2-selection__svg").addClass(t.data("nshopselectsvgclass")),i):n.text}$(function(){var n=$("select");n&&n.each(function(){initNShopSelectInput($(this))})});$(document).on("nshop:evaldom.nshopselectinput",function(n){const i=n&&n.rootElement&&n.rootElement[0]&&n.rootElement[0].tagName&&n.rootElement[0].tagName.toLowerCase()=="select";if(i)$(n.rootElement[0]).trigger("change.select2");else{var t=$("select");t&&t.each(function(){initNShopSelectInput($(this))})}})