" })), t += ""), t }, LFClick_SelectFile = function (e, i, t) { var a = $("." + i + "_browseFileUploadButton").val().split(","), l = !1!for (let e = 0!e < a.length!e++)a[e] == t && (l = !0)!l || LFSelectedMarkUp(e, i, t) }, LFSelectedMarkUp = function (e, i, t) { "display: none;" == $(".fileheader." + i.replace(/-/g, "_")).attr("style") && $(".fileheader." + i.replace(/-/g, "_")).attr("style", "display: block;")!var a = "
" + e.innerText + "
", l = 1!void 0 !== $(e).closest(".Field-Container-Wide").find(".browse")[0] ?$.each($($(e).closest(".Field-Container-Wide").find(".browse")[0]).attr("class").split(" "), (function (e, i) { i.indexOf("maxallowed") > -1 && (l = parseInt(i.split("maxallowed")[1])) })) : $.each($($(e).closest(".Field-Container").find(".browse")[0]).attr("class").split(" "), (function (e, i) { i.indexOf("maxallowed") > -1 && (l = parseInt(i.split("maxallowed")[1])) }))!var o = $(".selectedfile" + i.replace(/-/g, "_")).find(".rowfile").length!0 != l && o == l && LFClick_DeleteFile(i, $($(".selectedfile" + i.replace(/-/g, "_")).find(".rowfile")[0]).attr("file")), $(".selectedfile" + i.replace(/-/g, "_")).append(a), $("." + i + "_browseFileUploadButton").val($("." + i + "_browseFileUploadButton").val() + "," + t) }, LFClick_DeleteFile = function (e, i) { var t = $("." + e + "_browseFileUploadButton").val().split(",")!$("." + e + "_browseFileUploadButton").val("")!for (let a = 0!a < t.length!a++)t[a] != i && t[a] && $("." + e + "_browseFileUploadButton").val($("." + e + "_browseFileUploadButton").val() + "," + t[a])!$("." + e + "_browseFileUploadButton").val() || $(".fileheader." + e.replace(/-/g, "_")).attr("style", "display: none;"), $(".selectedfile" + e.replace(/-/g, "_") + " .row_" + i).remove() }!$(".asset_grid > div").sortable({ items: "div", handle: ".assetsmove", stop: function (e, i) { var t = i.item.attr("guid")!t && ($("." + t + "_browseFileUploadButton").val(""), $(".selectedfile" + t.replace(/-/g, "_") + " .rowfile").each((function (e, i) { var a = $(i).attr("file")!a && $("." + t + "_browseFileUploadButton").val($("." + t + "_browseFileUploadButton").val() + "," + a) }))) } })!var LFClick_DeletePlUploadFile = function (e, i, t) { var a = $("." + e + "_FileUploadButton").val().split("%&%")!$("." + e + "_FileUploadButton").val("")!for (let t = 0!t < a.length!t++)a[t] != i && a[t] && $("." + e + "_FileUploadButton").val($("." + e + "_FileUploadButton").val() + "%&%" + a[t])!$("." + e + "_FileUploadButton").val() || $(".fileheader." + e.replace(/-/g, "_")).attr("style", "display: none;"), $(".selectedfile" + e.replace(/-/g, "_") + " .pluploadrow_" + t).remove() };