!function(){"use strict";var e=jQuery(document);e.on("contentloaded",function(e){var t=jQuery(e.target),a=t.find(".field.switch input");a.on("change",function(){var e=jQuery(this),t=e.val(),a=e.closest(".field").parent().find("[data-switch-relation]");a.removeClass("selected"),a.filter('[data-switch-relation="'+t+'"]').addClass("selected")}),a.filter(":checked").trigger("change")}),e.on("contentloaded",function(e){jQuery(e.target).find("ol.survey ol.survey").each(function(){var e=jQuery(this),t=e.closest("li").attr("value");t&&e.children("li").attr("data-parent-value",t)})})}();