bioskop45

jojovixxenvip

2

Thots TV Onlyfans Leaked Free Porn. Daily Videos and Albums of hot onlyfans thots, influencers, social media girls, patreon cosplay nudes, free porn content for simps.

")) || (window.lcation = t, !1) }, afterShow: function () { a || (this.inner.find('[data-form="ajax"]').each(function () { k($(this)) }), this.inner.find('[data-form="ajax-upload"]').each(function () { i($(this)) }), this.inner.find('[data-fancybox="ajax"]').each(function () { $(this).on("click", function (e) { e.preventDefault(), w($(this), this.href || $(this).attr("data-href")) }) })), c(this.inner), a && a.call(this) }, beforeClose: function () { return this.inner.find('[data-fancybox="refresh"]').exists() ? e && e.attr("data-fancybox-refresh-id") ? C(e.attr("data-fancybox-refresh-id"), e, !1, !0) : window.lcation.reload() : e && e.attr("data-fancybox-refresh-id") && C(e.attr("data-fancybox-refresh-id"), e, !1, !0), !0 }, helpers: { overlay: { closeClick: !1 } }, type: "ajax", topRatio: .3 }) }, C = function (i, a, n, r) { var s, o, d; i ? (s = null, f[i] && (s = f[i]), d = 0, (o = { success: function (e, t) { f[i] = s; var a = r ? .1 : 1; n && m($("#" + i)), $("#" + i).animate({ opacity: a }, p, function () { var e = document.createElement("div"); e.innerHTML = t; e = $(e).children().first(); $(e).css("opacity", a), $(this).replaceWith(e), $("#" + i).animate({ opacity: 1 }, p), I($("#" + i)), "undefined" != typeof Storage && (e = "", y && y.userId && (e = y.userId + ":"), sessionStorage.setItem(e + location.href + "#" + i, $("#" + i).html()), sessionStorage.setItem(e + location.href + "#" + i + ":params", JSON.stringify(s))) }) } }).error = function () { d++; var e, t = !1; for (e in s) s.hasOwnProperty(e) && 0 == e.indexOf("from") && 1 < parseInt(s[e]) && (s[e] = parseInt(s[e]) - 1, 1 < d && (s[e] = 1), t = !0); t || (s = null), 1 < d && delete o.error, g(i, a, o, s) }, g(i, a, o, s)) : window.lcation.reload() }, I = function (n) { if (n) n.find('[data-fancybox="ajax"]').each(function () { $(this).on("click", function (e) { e.preventDefault(), w($(this), this.href || $(this).attr("data-href")) }) }); else if (n = $(document), "undefined" != typeof Storage) { var t = {}; n.find('[data-action="ajax"]').each(function () { var e = $(this).attr("data-block-id"); t[e] || (t[e] = !0) }); var e, a = ""; for (e in y && y.userId && (a = y.userId + ":"), t) if (t.hasOwnProperty(e)) { var i = sessionStorage.getItem(a + location.href + "#" + e); (i = i || sessionStorage.getItem(location.href + "#" + e)) && $("#" + e).html(i).find('[data-fancybox="ajax"]').each(function () { $(this).on("click", function (e) { e.preventDefault(), w($(this), this.href || $(this).attr("data-href")) }) }); var r = sessionStorage.getItem(a + location.href + "#" + e + ":params"); if (r = r || sessionStorage.getItem(location.href + "#" + e + ":params")) { try { f[e] = JSON.parse(r) } catch (e) { } _[e] && ($("#" + e).find("img.lazy-load").removeClass("lazy-load"), C(e, e, !1, !1)) } } } var s, o, d; function c(r, s, o) { return function (e) { if ("success" == e.status) if (C(o, s, !0, !0), r.attr("data-refresh-block-ids")) for (var t = r.attr("data-refresh-block-ids").split(","), a = 0; a < t.length; a++)C(t[a], s, !1, !0); else s.attr("data-redirect-url") && (window.lcation = s.attr("data-redirect-url")); else { for (var i = 0; i < e.errors.length; i++) { var n = e.errors[i].message; n && r.find(".generic-error").empty().html(n).fadeIn() } m($("#" + o), 0) } } } $.fn.Lazy && ((s = new Image).onload = s.onerror = function () { 2 == s.height && n.find("img.lazy-load[data-webp]").each(function () { $(this).attr("data-original", $(this).attr("data-webp")) }), n.find("img.lazy-load").Lazy(function (e, t) { if (y && y[t]) for (var a in y[t]) y[t].hasOwnProperty(a) && (e[a] = y[t][a]); return e }(u, "lazyload")) }, s.src = "data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"), $.fn.thumbs && n.find("img[data-cnt]").thumbs(), $.fn.videopreview && n.find("img[data-preview]").videopreview(), n.find('[data-action="ajax"], [data-action="inputpage"]').on("click keydown", function (e) { "click" == e.type && e.preventDefault(); var t = {}, a = $(this), n = a.attr("data-append-items-to"), i = parseInt(a.attr("data-max-queries")) || 0, r = a.attr("data-block-id"); if (r) { var s = a.attr("data-container-id"); if (i && n) { var o = parseInt($("#" + n).attr("data-current-queries")) || 0; if (!(o < i)) return; ++o == i ? $("#" + s).remove() : $("#" + n).attr("data-current-queries", o) } var d = v(a.attr("data-parameters")); if (a.is("input")) { if ("click" == e.type) return; if (13 != e.keyCode && "Enter" != e.key && "enter" != e.key) return; o = a.attr("data-pagination-var"), e = parseInt(a.val()); if (!o || !e) return; d[o] = e } var c = ""; y && y.userId && (c = y.userId + ":"), t.success = function (e, t) { var a, i; n ? ((i = document.createElement("DIV")).innerHTML = t, s && ((a = $(i).find("#" + s)).exists() ? ($("#" + s).replaceWith(a), I(a)) : $("#" + s).remove()), (i = $(i).find("#" + n + " .item")).css({ display: "none" }), "true" == $("#" + n).attr("data-append-to-beginning") ? i.insertBefore($("#" + n).find(".item").first()) : i.insertAfter($("#" + n).find(".item").last()), i.fadeIn().promise().done(function () { for (var e in d) if (d.hasOwnProperty(e) && 0 == e.indexOf("from") && 1 < parseInt(d[e])) { delete d[e]; break } _[r] || "undefined" != typeof Storage && (sessionStorage.setItem(c + location.href + "#" + r, $("#" + r).html()), sessionStorage.setItem(c + location.href + "#" + r + ":params", JSON.stringify(d))) }), I(i)) : (m($("#" + r)), $("#" + r).animate({ opacity: .1 }, p, function () { var e = document.createElement("div"); e.innerHTML = t; e = $(e).find("#" + r); $(e).css("opacity", "0.1"), $(this).replaceWith(e), $("#" + r).animate({ opacity: 1 }, p), I($("#" + r)), "undefined" != typeof Storage && (sessionStorage.setItem(c + location.href + "#" + r, $("#" + r).html()), sessionStorage.setItem(c + location.href + "#" + r + ":params", JSON.stringify(d))) })) }, g(r, s ? $("#" + s) : a, t, d) } }), n.find("[data-rt]").on("click mousedown", function () { var e, t = $(this).attr("data-rt"); t && (0 < (e = window.lcation.href).indexOf("#") && (e = e.substring(0, e.indexOf("#"))), (new Image).src = e + (0 <= e.indexOf("?") ? "&" : "?") + "mode=async&action=rotator_videos&pqr=" + t, $(this).attr("data-rt", "")) }), n.find("[data-playlist-item]").on("click", o = function (a) { a && a.preventDefault(), n.find("[data-playlist-item]").removeClass("selected"); var e = $(this); e.addClass("selected"); var t, i = e.attr("data-playlist-item"); i && (f.playlist_state = i, (t = {}).url = i, t.success = function (e, t) { $(".player").html("").append($(t.trim()).find(".player-holder")), $(".player-holder").find('[data-fancybox="ajax"]').each(function () { $(this).on("click", function (e) { e.preventDefault(), w($(this), this.href || $(this).attr("data-href")) }) }), $(".player-holder").find('[data-form="ajax"]').each(function () { k($(this)) }), a && setTimeout(function () { m($(".player"), 0) }, 0) }, g("video_view_video_view", e, t)) }), f.playlist_state ? n.find("[data-playlist-item]").each(function () { $(this).attr("data-playlist-item") == f.playlist_state && $(this).addClass("selected") }) : (d = n.find("[data-playlist-item]").first()).exists() && (d.addClass("selected"), o.call(d)), n.find("[data-fav-video-id]").on("click", function (e) { e.preventDefault(), e.stopPropagation(); var t = $(this), a = t.attr("data-fav-video-id"), e = t.attr("data-fav-type") || 0; b(t, { action: "add_to_favourites", video_id: a, video_ids: [a], fav_type: e, playlist_id: 0 }, function (e) { "failure" == e.status && e.errors && e.errors[0] && "not_logged_in" == e.errors[0].code ? y && y.loginUrl && w(t, y.loginUrl) : t.addClass("fixed") }) }), n.find("[data-fav-album-id]").on("click", function (e) { e.preventDefault(), e.stopPropagation(); var t = $(this), a = t.attr("data-fav-album-id"), e = t.attr("data-fav-type") || 0; b(t, { action: "add_to_favourites", album_id: a, album_ids: [a], fav_type: e }, function (e) { "failure" == e.status && e.errors && e.errors[0] && "not_logged_in" == e.errors[0].code ? y && y.loginUrl && w(t, y.loginUrl) : t.addClass("fixed") }) }), n.find('[data-action="select"]').each(function () { $(this).on("click", function (e) { var t, a; $(this).hasClass("disabled") || (t = $(this).parents("form"), a = $(this).find("input"), $(e.target).is(a) || a.prop("checked", !a.prop("checked")).trigger("change"), e = parseInt(t.attr("data-selected-cnt")) || 0, a.prop("checked") ? ($(this).addClass("active"), e++) : ($(this).removeClass("active"), e = Math.max(e - 1, 0)), t.find('input[data-mode="selection"]').prop("disabled", 0 == e), t.find('input[data-action="select_all"]').toggleClass("active", e == t.find("input[type=checkbox]").length - t.find("input[type=checkbox][disabled]").length), t.attr("data-selected-cnt", e)) }) }), n.find('[data-action="choose"]').each(function () { $(this).on("click", function () { var e, t; $(this).hasClass("disabled") || (e = $(this).parents("form"), (t = $(this).find("input")).prop("checked", !0).trigger("change"), t.prop("checked") && (e.find('[data-action="choose"]').removeClass("active"), $(this).addClass("active"))) }) }), n.find('[data-action="delete"]').each(function () { $(this).on("click", function (e) { var t, a, i, n; e.preventDefault(), $(this).hasClass("disabled") || (t = $(this).parents("form"), (n = (a = $(this)).attr("data-confirm") || "") && !confirm(n) || (i = a.attr("data-id")) && (e = t.attr("data-block-id"), (n = v(t.attr("data-parameters"))).function = "get_block", n.block_id = e, n.delete = [i], b(a, n, c(t, a, e)))) }) }), n.find('[data-action="delete_mixed"]').each(function () { $(this).on("click", function (e) { var t, a, i, n, r; e.preventDefault(), $(this).hasClass("disabled") || (t = $(this).parents("form"), (r = (a = $(this)).attr("data-confirm") || "") && !confirm(r) || (i = a.attr("data-video-id"), n = a.attr("data-album-id"), (i || n) && (e = t.attr("data-block-id"), (r = v(t.attr("data-parameters"))).function = "get_block", r.block_id = e, i ? r.delete_video_ids = [i] : n && (r.delete_album_ids = [n]), b(a, r, c(t, a, e))))) }) }), n.find("form[data-controls]").each(function () { var r = $(this), s = r.attr("data-block-id"); r.find('input[type="button"]').each(function () { $(this).on("click", function (e) { e.preventDefault(); var t, a, i = $(this), e = (e = i.attr("data-confirm") || "") && h(e, "%1%", parseInt(r.attr("data-selected-cnt"))), n = {}; e && !confirm(e) || ("select_all" == i.attr("data-action") ? i.hasClass("active") ? r.find("input[type=checkbox]").each(function () { this.checked && $(this).trigger("click") }) : r.find("input[type=checkbox]").each(function () { this.checked || $(this).trigger("click") }) : "delete_multi" == i.attr("data-action") ? ((n = v(r.attr("data-parameters"))).function = "get_block", n.block_id = s, n.delete = [], r.find("input[type=checkbox]").each(function () { this.checked && n.delete.push(this.value) }), b(i, n, c(r, i, s))) : "delete_mixed_multi" == i.attr("data-action") ? ((n = v(r.attr("data-parameters"))).function = "get_block", n.block_id = s, n.delete_video_ids = [], n.delete_album_ids = [], r.find("input[type=checkbox]").each(function () { this.checked && ("delete_video_ids[]" == this.name ? n.delete_video_ids.push(this.value) : "delete_album_ids[]" == this.name && n.delete_album_ids.push(this.value)) }), b(i, n, c(r, i, s))) : "move_multi" == i.attr("data-action") ? (t = i.attr("data-href")) && w(i, t, function () { var e = this.inner.find("form"); k(e, { beforeSubmit: function (e) { $.fancybox.close(); var a = parseInt(e.find('[name="playlist_id"]:checked').val()); return a ? ((n = v(r.attr("data-parameters"))).function = "get_block", n.block_id = s, n.move_to_playlist_id = a, n.delete = [], r.find("input[type=checkbox]").each(function () { this.checked && n.delete.push(this.value) }), b(i, n, c(r, i, s))) : (e = e.attr("data-create-playlist-url")) && w(i, e, function () { var e = this.inner.find("form"); k(e, { success: function (e, t) { $.fancybox.close(), t = $(t), (a = t.attr("data-playlist-id")) && ((n = v(r.attr("data-parameters"))).function = "get_block", n.block_id = s, n.move_to_playlist_id = a, n.delete = [], r.find("input[type=checkbox]").each(function () { this.checked && n.delete.push(this.value) }), b(i, n, c(r, i, s))) } }) }), !1 } }) }) : "redirect" == i.attr("data-action") ? (t = i.attr("data-redirect-url")) && (window.lcation = t) : "delete_playlist" == i.attr("data-action") ? (a = i.attr("data-id")) && (n.action = "delete_playlists", n.delete = [a], b(i, n, c(r, i, s))) : "delete_dvd" != i.attr("data-action") || (a = i.attr("data-id")) && (n.action = "delete_dvds", n.delete = [a], b(i, n, c(r, i, s)))) }) }) }) }, i = function (e) { (e = e || $('[data-form="ajax-upload"]')).each(function () { function g(e, t) { e = Math.min(parseFloat(e) || 0, 100), b < e && (a.addClass("uploading"), a.find(".progressbar").exists() || a.append($('
')), a.find(".progressbar .progress").stop(!0, !0).animate({ width: e + "%" }), a.find(".progressbar .text").html(parseInt(e) + "%"), 55 < e && a.find(".progressbar").addClass("half-done"), 100 != (b = e) && n && ($("#" + n).show(), _ && !$("#" + n).find("input[data-autopopulate-name]").val() && $("#" + n).find("input[data-autopopulate-name]").val(_.replace(/\.[^/.]+$/, "")))), t && t.filename && (a.unblock().addClass("uploading-finished"), i ? window.lcation = i.replace("%HASH%", t.filename) : n && ((e = $("#" + n)).show(), e.find('input[type="submit"]').enable(!0), e.find('input[name="file"]').val(t.filename + ".mp4"), e.find('input[name="file_hash"]').val(t.filename), e.find('input[name="files"]').val(t.filename), (e = $("[data-preview-src]")).exists() && e.prop("src", e.attr("data-preview-src").replace("%HASH%", t.filename)), (e = $("[data-info-src]")).exists() && (t.dimensions && t.duration_string && t.size_string && e.html(e.attr("data-info-src").replace("%1%", t.dimensions[0] + "x" + t.dimensions[1]).replace("%2%", t.duration_string).replace("%3%", t.size_string)), t.files_count && t.files_size_string && e.html(h(h(e.attr("data-info-src").replace("%2%", t.files_size_string), "%1%", t.files_count), "%3%", t.files_skipped))))) } var a = $(this), i = a.attr("data-redirect-url"), n = a.attr("data-continue-form"), b = 0, _ = ""; k(a, { success: function (e, t) { g(100, t) }, beforeSerialize: function (e) { var t = ""; if (e.find('[name="url"]').val() || e.find('[name="content"]').val() || e.find('[name="content[]"]').val() || "embed" == e.find('[name="upload_option"]:checked').val()) { for (var a = 0; a < 32; a++)t += "" + Math.floor(10 * Math.random()); e.find('[name="filename"]').val(t) } else e.find('[name="filename"]').val(t) }, beforeSubmit: function (r) { b = 0; var e, s, t = r.find('[name="action"]').val(), a = r.find('[name="upload_option"]:checked').val() || "file", o = r.find('[name="filename"]').val(); if ("upload_files" == t) { e = r.find('[name="content[]"]'), s = []; var i = 0, n = 0, d = 0; e.each(function () { for (var e = 0; e < this.files.length; e++)s.push(this.files[e]), i += this.files[e].size || 0 }); var c = function (t) { var e; n < t - 1 || t - 1 > s.length || ((e = new FormData).append("filename", o), e.append("files", s.length.toString()), e.append("index", t), 0 < t && e.append("content", s[t - 1]), $.ajax({ type: "POST", url: r.attr("action"), xhr: function () { var e = new window.XMLHttpRequest; return e.withCredentials = !0, e.upload.addEventListener("progress", function (e) { e.lengthComputable && g((d + e.loaded) / i * 100) }, !1), e }, success: function (e) { "object" != typeof e && (e = JSON.parse(e)), "success" == e.status ? 0 < t ? (n++, d += s[t - 1].size || 0, s.length > n ? (g(d / i * 100), c(n + 1)) : (g(100), c(0))) : g(100, e.data) : r.kvsProcessFormErrors(e).removeClass("uploading").unblock().find(".progressbar").hide().remove() }, error: function (e) { 0 != e.status ? (r.find(".generic-error").html(x).show(), r.removeClass("uploading").unblock().find(".progressbar").hide().remove()) : setTimeout(function () { c(t) }, 1e4) }, data: e, processData: !1, contentType: !1 })) }; return setTimeout(function () { r.block({ message: null }), c(n + 1) }, 0), !1 } if ("upload_file" == t) if ("file" == a) { if (e = r.find('[name="content"]'), e.exists() && (s = e.get(0).files) && 1 == s.length) { var l = 9437184; y && y.upload_chunk_size && (l = parseInt(y.upload_chunk_size)); var f = s[0].size || 0, p = Math.floor(f / l), u = 0; 0 < f % l && p++, _ = s[0].name; var m = function (t) { var e, a, i, n; u < t - 1 || ((e = new FormData).append("filename", o), e.append("realname", s[0].name), e.append("upload_option", "file"), e.append("chunks", p.toString()), e.append("index", t), e.append("size", f.toString()), 0 < t && e.append("content", (a = s[0], i = (t - 1) * l, n = Math.min(t * l, f), (a.mozSlice || a.webkitSlice || a.slice || function () { }).bind(a)(i, n))), $.ajax({ type: "POST", url: r.attr("action"), xhr: function () { var e = new window.XMLHttpRequest; return e.withCredentials = !0, e.upload.addEventListener("progress", function (e) { e.lengthComputable && g((l * u + e.loaded) / f * 100) }, !1), e }, success: function (e) { "object" != typeof e && (e = JSON.parse(e)), "success" == e.status ? 0 < t ? ++u < p ? (g(l * u / f * 100), m(u + 1)) : (g(100), m(0)) : g(100, e.data) : r.kvsProcessFormErrors(e).removeClass("uploading").unblock().find(".progressbar").hide().remove() }, error: function (e) { 0 != e.status ? (r.find(".generic-error").html(x).show(), r.removeClass("uploading").unblock().find(".progressbar").hide().remove()) : setTimeout(function () { m(t) }, 1e4) }, data: e, processData: !1, contentType: !1 })) }; return setTimeout(function () { r.block({ message: null }), m(u + 1) }, 0), !1 } } else if ("url" == a) { a = r.find('[name="url"]'); if (a.exists()) { var h = a.val(); if (h) { var v = function () { $.ajax({ type: "POST", url: r.attr("action"), xhrFields: { withCredentials: !0 }, success: function (e) { "object" != typeof e && (e = JSON.parse(e)), "success" == e.status ? "uploading" == e.data.state ? (g(e.data.percent, e.data), setTimeout(v, 1e3)) : g(100, e.data) : r.kvsProcessFormErrors(e).removeClass("uploading").unblock().find(".progressbar").hide().remove() }, error: function (e) { 0 != e.status ? (r.find(".generic-error").html(x).show(), r.removeClass("uploading").unblock().find(".progressbar").hide().remove()) : setTimeout(function () { v() }, 1e4) }, data: { upload_option: "url", filename: o, url: h, upload_v2: "true" } }) }; return setTimeout(function () { r.block({ message: null }), v() }, 0), !1 } } } return !0 } }, !0), a.find('[name="upload_option"]').on("change", function () { var e, t = $(this); t.prop("checked") && (e = "disabled", "file" == t.val() ? (a.find('[name="content"]').parents(".file-control").find("input").prop(e, !1).trigger("click"), a.find('[name="url"]').prop(e, !0).val("").trigger("change"), a.find('[name="embed"]').prop(e, !0).val("").trigger("change").parents(".row").find("label").removeClass("required"), a.find('[name="duration"]').prop(e, !0).val("").trigger("change").parents(".row").find("label").removeClass("required"), a.find('[name="screenshot"]').parents(".file-control").find("input").prop(e, !0).val("").trigger("change").parents(".row").find("label").removeClass("required")) : "url" == t.val() ? (a.find('[name="content"]').parents(".file-control").find("input").prop(e, !0).val("").trigger("change"), a.find('[name="url"]').prop(e, !1).trigger("focus"), a.find('[name="embed"]').prop(e, !0).val("").trigger("change").parents(".row").find("label").removeClass("required"), a.find('[name="duration"]').prop(e, !0).val("").trigger("change").parents(".row").find("label").removeClass("required"), a.find('[name="screenshot"]').parents(".file-control").find("input").prop(e, !0).val("").trigger("change").parents(".row").find("label").removeClass("required")) : "embed" == t.val() && (a.find('[name="url"]').prop(e, !0).val("").trigger("change"), a.find('[name="content"]').parents(".file-control").find("input").prop(e, !0).val("").trigger("change"), a.find('[name="embed"]').prop(e, !1).trigger("focus").parents(".row").find("label").addClass("required"), a.find('[name="duration"]').prop(e, !1).parents(".row").find("label").addClass("required"), a.find('[name="screenshot"]').parents(".file-control").find("input").prop(e, !1).parents(".row").find("label").addClass("required"))) }); var e = { mode: "async", format: "json", action: a.find('[name="action"]').val() }; a.attr("action", (a.attr("action") || "") + (0 <= (a.attr("action") || "").indexOf("?") ? "&" : "?") + $.param(e)) }) }, a = function () { console.log(window.grecaptcha), "object" == typeof window.grecaptcha && "function" == typeof window.grecaptcha.render ? (l = !0, t()) : (new Date).getTime() - e < 5e3 && setTimeout(a, 50) }, n = [function () { $(".navigation button").on("click", function () { $(this).parents(".navigation").toggleClass("open") }), $(".primary, .logo").on("click", function () { for (var e = sessionStorage.length, t = 0; t < e; t++) { var a = sessionStorage.key(t); a && 0 <= a.indexOf("#list") && sessionStorage.removeItem(a) } }) }, function () { var t, a, i, n, r = $(".tabs-menu li a"); r.exists() && (t = {}, i = a = "", r.each(function () { var e; 0 == $(this).attr("href").indexOf("#") && (e = $(this).attr("href"), i && e != window.lcation.hash || (i = e), t[e] = $(this), a += "," + e) }), (n = $(a ? a.substr(1) : "")).hide(), i && (t[i].addClass("active"), $(i).show()), r.on("click", function (e) { 0 == $(this).attr("href").indexOf("#") && (e.preventDefault(), e = $(this).attr("href"), r.removeClass("active"), n.hide(), $(e).show(), t[e] && t[e].addClass("active"), $(window).trigger("scroll")) })) }, function () { $('[data-fancybox="ajax"]').each(function () { $(this).on("click", function (e) { e.preventDefault(), w($(this), this.href || $(this).attr("data-href")) }) }), $(".block-album .images a.item, .block-screenshots a.item, .list-albums-images a, .list-videos-screenshots a").fancybox({ openEffect: "none", closeEffect: "none", prevEffect: "none", nextEffect: "none", helpers: { title: { type: "inside" }, buttons: { position: "bottom" } } }), 0 < window.lcation.href.indexOf("?login") && $("#login").trigger("click"), 0 < window.lcation.href.indexOf("?signup") && $("#signup").trigger("click") }, function () { var i = $(".rating-container, [data-rating]"), n = i.find("[data-vote]"); n.on("click", function (e) { e.preventDefault(); var a = $(this); a.hasClass("disabled") || a.hasClass("voted") || (e = { action: "rate", vote: parseInt(a.attr("data-vote")) || 0 }, 0 < a.attr("data-video-id") ? e.video_id = a.attr("data-video-id") : 0 < a.attr("data-album-id") ? e.album_id = a.attr("data-album-id") : 0 < a.attr("data-post-id") ? e.post_id = a.attr("data-post-id") : 0 < a.attr("data-playlist-id") ? e.playlist_id = a.attr("data-playlist-id") : 0 < a.attr("data-model-id") ? e.model_id = a.attr("data-model-id") : 0 < a.attr("data-cs-id") ? e.content_source_id = a.attr("data-cs-id") : 0 < a.attr("data-dvd-id") ? e.dvd_id = a.attr("data-dvd-id") : i.attr("data-rating") && i.attr("data-id") && (e[i.attr("data-rating") + "_id"] = i.attr("data-id")), b(a, e, function (e) { var t; "success" == e.status ? (n.addClass("disabled"), a.removeClass("disabled").addClass("voted"), i.find(".voters").html(i.find(".voters").attr("data-success")), t = i.find(".scale"), e = parseFloat(t.attr("data-rating")), 0 < (t = parseInt(t.attr("data-votes"))) && (0 == e && (t = 0), 100 < (t = (e * t + vote) / (t + 1) / 5 * 100) && (t = 100), i.find(".scale").css({ width: t + "%" }))) : (n.addClass("disabled"), i.find(".voters").html(i.find(".voters").attr("data-error"))) }), a.attr("data-flag-id") && (e.action = "flag", e.flag_id = a.attr("data-flag-id"), delete e.vote, b(a, e, function () { }))) }) }, function () { $(".btn-favourites li a").on("click", function (e) { var i = $(this), n = i.attr("data-video-id"), r = i.attr("data-album-id"), s = i.attr("data-fav-type") || 0, t = i.attr("data-create-playlist-url"), o = i.attr("data-playlist-id") || 0; (n || r) && (e.preventDefault(), i.hasClass("delete") ? b(i.parents("li"), { action: "delete_from_favourites", video_id: n, album_id: r, fav_type: s, playlist_id: o }, function (e) { "success" == e.status && (0 < o ? (i.parents("li").addClass("hidden"), i.parents("ul").find("#add_playlist_" + o).removeClass("hidden")) : (i.parents("li").addClass("hidden"), i.parents("ul").find("#add_fav_" + s).removeClass("hidden"))) }) : 10 != s || o ? b(i.parents("li"), { action: "add_to_favourites", video_id: n, album_id: r, fav_type: s, playlist_id: o }, function (e) { "success" == e.status && (0 < o ? (i.parents("li").addClass("hidden"), i.parents("ul").find("#delete_playlist_" + o).removeClass("hidden")) : (i.parents("li").addClass("hidden"), i.parents("ul").find("#delete_fav_" + s).removeClass("hidden"))) }) : t && w(i, t, function () { var e = this.inner.find("form"); k(e, { success: function (e, t) { $.fancybox.close(), t = $(t), o = t.attr("data-playlist-id"); var a = t.attr("data-playlist-title"); o && b(i.parents("li"), { action: "add_to_favourites", video_id: n, album_id: r, fav_type: s, playlist_id: o }, function (e) { "success" == e.status && ((e = i.parents("ul").find("#add_playlist_").clone(!0, !0)).find("a").each(function () { $(this).attr("data-playlist-id") && $(this).attr("data-playlist-id", $(this).attr("data-playlist-id").replace("%ID%", o)), $(this).attr("href") && $(this).attr("href", $(this).attr("href").replace("%ID%", o)), $(this).html($(this).html().replace("%1%", a)) }), e.attr("id", "add_playlist_" + o), e.insertBefore(i.parents("li")), (e = i.parents("ul").find("#delete_playlist_").clone(!0, !0)).find("a").each(function () { $(this).attr("data-playlist-id") && $(this).attr("data-playlist-id", $(this).attr("data-playlist-id").replace("%ID%", o)), $(this).attr("href") && $(this).attr("href", $(this).attr("href").replace("%ID%", o)), $(this).html($(this).html().replace("%1%", a)) }), e.attr("id", "delete_playlist_" + o), e.removeClass("hidden"), e.insertBefore(i.parents("li"))) }) } }) })) }) }, function () { var e = $(".block-flagging"); !e.exists() || (e = e.find("form")).exists() && e.each(function () { k($(this), { success: function (e) { e.find(".success").show(), e.find(".block-radios, .block-textarea").hide() } }) }) }, function () { var a = $(".block-share"); a.exists() && ("function" == typeof window.getEmbed && a.find(".embed-code").val(window.getEmbed()), a.find(".embed-button").on("click", function (e) { var t; e.preventDefault(), "function" != typeof window.getEmbed || (t = $(this).attr("data-embed-size")) && 0 < t.indexOf("x") && (e = parseInt(t.substr(0, t.indexOf("x"))), t = parseInt(t.substr(t.indexOf("x") + 1)), a.find(".embed-code").val(window.getEmbed(e, t))) }), a.find(".embed-code-custom-width, .embed-code-custom-height").on("keyup blur", function () { var e = a.find(".embed-code-custom-width"), t = a.find(".embed-code-custom-height"); parseInt(e.val()) && parseInt(t.val()) && (a.find(".embed-code-custom-width-label").html(parseInt(e.val())), a.find(".embed-code-custom-height-label").html(parseInt(t.val())), a.find(".embed-button-custom").attr("data-embed-size", parseInt(e.val()) + "x" + parseInt(t.val()))) })) }, function () { var i, o = $(".block-comments"), d = o.find(".block-new-comment"); o.exists() && d.exists() && (o.find(".toggle-button").on("click", function (e) { e.preventDefault(), $(this).toggleClass("active"), d.toggle(), o.find(".success").hide(), !d.is(":visible") || (e = d.find(".captcha-control img")).exists() && (e.attr("data-src") ? e.prop("src", e.attr("data-src").replace(new RegExp("rand=\\d+"), "rand=" + (new Date).getTime())) : e.prop("src", e.attr("src").replace(new RegExp("rand=\\d+"), "rand=" + (new Date).getTime()))), c(d) }), (i = o.find("form")).exists() && k(i, { success: function (e, n) { var t = e.find('[name="anonymous_username"]'), a = t.val(); a && $.cookie("kt_anonymous_username", a, { expires: 365, path: "/", samesite: "Lax" }), e.get(0).reset(), t.val(a || ""); a = e.find(".captcha-control img"); a.exists() && a.prop("src", a.attr("src").replace(new RegExp("rand=\\d+"), "rand=" + (new Date).getTime())), l && e.find("[data-recaptcha-key]").each(function () { var e = $(this).attr("data-recaptcha-id"); e && grecaptcha.reset(e) }), o.find(".toggle-button").exists() && (d.hide(), o.find(".toggle-button").removeClass("active")); var r = o.attr("data-block-id"), s = $(".list-comments"); n && n.approved && r && s.exists() ? g(r, null, { success: function (e, t) { "undefined" != typeof Storage && (a = "", y && y.userId && (a = y.userId + ":"), sessionStorage.removeItem(a + location.href + "#" + r), sessionStorage.removeItem(a + location.href + "#" + r + ":params")); var a = document.createElement("DIV"); a.innerHTML = t; var i = $(a).find('.item[data-comment-id="' + (n.comment_id || n.entry_id) + '"]').addClass("hidden"); s.find("#" + r + "_items").prepend(i), setTimeout(function () { s.show(), i.fadeIn() }, 200) } }) : i.find(".success").show() } }), i.find('[name="anonymous_username"]').val($.cookie("kt_anonymous_username") || "")) }, function () { $(".list-comments").on("click", ".comment-options a", function (e) { var t, a = $(this), n = $(this).parents(".item"), i = $(this).parents(".comment-options"), r = i.find(".comment-rating"), s = i.find(".comment-like, .comment-dislike"), o = n.attr("data-comment-id"); a.hasClass("comment-like") || a.hasClass("comment-dislike") ? (e.preventDefault(), a.hasClass("disabled") || (t = a.hasClass("comment-dislike") ? -1 : 1, b(a, { action: "vote_comment", vote: t, comment_id: o }, function (e) { "success" == e.status ? (s.fadeOut(), r.exists() && (e = parseInt(r.html()), isNaN(e) || (e += t, r.html(e), 0 < e ? r.addClass("positive") : e < 0 ? (r.addClass("negative"), n.addClass("dim-comment")) : 0 == e && (r.removeClass("positive").removeClass("negative"), n.removeClass("dim-comment"))))) : s.addClass("disabled") }))) : a.hasClass("comment-edit") && (e.preventDefault(), $.fancybox($(".popup-edit-comment").clone(!0, !0).removeClass("hidden"), { afterShow: function () { var e = this.inner.find("form"); e.find('[name="comment_id"], [name="entry_id"]').val(o); var t = n.find(".original-text").html() || ""; t = (t = t.replace(/
/gi, "\n").replace(/>/gi, ">").replace(/</gi, "<").replace(/"/gi, '"')).replace(//gi, "$1"), e.find('[name="comment"], [name="entry"]').val(t), k(e, { success: function () { $.fancybox.close(); var i = $(".block-comments").attr("data-block-id"); i && g(i, null, { success: function (e, t) { "undefined" != typeof Storage && (a = "", y && y.userId && (a = y.userId + ":"), sessionStorage.removeItem(a + location.href + "#" + i), sessionStorage.removeItem(a + location.href + "#" + i + ":params")); var a = document.createElement("DIV"); a.innerHTML = t; a = $(a).find('.item[data-comment-id="' + o + '"] .comment-text').html() || ""; n.find(".comment-text").html(a) } }) } }), c(this.inner) }, helpers: { overlay: { closeClick: !1 } }, topRatio: .3 })) }) }, I, function () { $('[data-form="ajax"]').each(function () { k($(this)) }) }, function () { $("[data-subscribe-to], [data-unsubscribe-to]").on("click", function (e) { e.preventDefault(); var t, a, i, n = $(this); n.hasClass("done") || (t = n.attr("data-subscribe-to") || n.attr("data-unsubscribe-to"), a = n.attr("data-confirm"), e = n.attr("data-id"), t && e && (i = { action: "subscribe" }, n.attr("data-subscribe-to") || (i.action = "unsubscribe"), "category" == t ? i[i.action + "_category_id"] = e : "model" == t ? i[i.action + "_model_id"] = e : "content_source" == t ? i[i.action + "_cs_id"] = e : "user" == t ? i[i.action + "_user_id"] = e : "playlist" == t ? i[i.action + "_playlist_id"] = e : "dvd" == t && (i[i.action + "_dvd_id"] = e), a && !confirm(a) || b(n, i, function (e) { "success" == e.status && (n.addClass("done"), (e = n.parents().first().find(".button-info")).exists() && ("subscribe" == i.action ? e.html(parseInt(e.html()) + 1) : e.html(parseInt(e.html()) - 1))) }))) }) }, function () { var c, l = ""; if ("undefined" != typeof Storage) if (y && y.userId && (l = y.userId + ":"), c = (c = sessionStorage.getItem(l + location.href + "#search_filter")) || sessionStorage.getItem(location.href + "#search_filter")) { for (var e in c = JSON.parse(c)) $("#" + e).prop("checked", !0); c.search_string_filter || $("#search_string_filter").prop("checked", !1) } else c = { search_string_filter: !0 }; "function" == typeof $.Autocomplete && $.Autocomplete.defaults.serviceUrl && $('#search_form input[type="text"]').autocomplete({ paramName: "q", onSelect: function (e) { e && e.data && e.data.url && (window.lcation = e.data.url) } }), $("#search_form").on("submit", function (e) { try { if ("" == this.q.value) return this.q.focus(), void e.preventDefault(); var t; $(this).attr("data-url") && (t = this.q.value.replace(/[-]/g, "[dash]").replace(/[ ]+/g, "-").replace(/[?]/g, "").replace(/[&]/g, "%26").replace(/[?]/g, "%3F").replace(/[/]/g, "%2F").replace(/\[dash]/g, "--"), window.lcation = $(this).attr("data-url").replace("%QUERY%", encodeURIComponent(t)), e.preventDefault()) } catch (e) { } }), $("#search_form .search-button").on("click", function () { $("#search_form").submit() }), $("[data-search-filter-ids] input, [data-search-filter-ids] button").on("click", function () { var e = $(this).parents("[data-search-filter-ids]"); "button" == $(this).prop("type") || "button" == $(this).prop("tagName").toLowerCase() ? e.find('input[name*="[]"]').each(function () { var e = $(this); e.prop("checked", !1), c && (e.attr("id") && (e.prop("checked") ? c[e.attr("id")] = !0 : delete c[e.attr("id")]), sessionStorage.setItem(l + location.href + "#search_filter", JSON.stringify(c))) }) : c && ($(this).attr("id") && ($(this).prop("checked") ? c[$(this).attr("id")] = !0 : delete c[$(this).attr("id")]), sessionStorage.setItem(l + location.href + "#search_filter", JSON.stringify(c))); var t, a, i = e.attr("data-search-filter-ids").split(","), n = {}, r = {}; for (t in e.find("input").each(function () { var e, t, a, i = $(this); ("hidden" == i.prop("type") || "checkbox" == i.prop("type") && i.prop("checked") || "radio" == i.prop("type") && i.prop("checked")) && (0 < i.prop("name").indexOf("[]") ? (e = i.prop("name").replace("[]", ""), i.attr("data-group-id") ? ((a = (t = r[e] || {})[i.attr("data-group-id")] || []).push(i.prop("value")), t[i.attr("data-group-id")] = a, r[e] = t) : n[e] = i.prop("value") + (n[e] ? "," + n[e] : "")) : n[i.prop("name")] = i.prop("value")) }), r) if (r.hasOwnProperty(t)) { var s, o = []; for (s in r[t]) r[t].hasOwnProperty(s) && o.push("(" + r[t][s].join(",") + ")"); n[t] = o.join("|") } for (a in n) n.hasOwnProperty(a) && "all" == n[a] && delete n[a]; for (var d = 0; d < i.length; d++)f[i[d]] = n, C(i[d], e, !1, !0) }) }, i, function () { $('[data-action="message"],[data-action="add_to_friends"]').on("click", function (e) { e.preventDefault(); var t = $(this); t.hasClass("done") || (e = ".popup-send-message", "add_to_friends" == t.attr("data-action") && (e = ".popup-add-to-friends"), $.fancybox($(e).clone(!0, !0).removeClass("hidden"), { afterShow: function () { var e = this.inner.find("form"); k(e, { success: function () { t.addClass("done"), $.fancybox.close(), "add_to_friends" == t.attr("data-action") && window.lcation.reload() } }), c(this.inner) }, helpers: { overlay: { closeClick: !1 } }, topRatio: .3 })) }) }, function () { var e = $("#send_message_form"); e.exists() && (c(e), k(e, { success: function (e, n) { var r = !1; e.find('[name="message_id"]').val() == n.message_id && (r = !0), e.get(0).reset(), e.find('[name="message_id"]').val(""); var s = e.attr("data-block-id"), o = $(".list-messages"); n && s && o.exists() && g(s, null, { success: function (e, t) { var a, i = document.createElement("DIV"); i.innerHTML = t, r ? o.find('.item[data-message-id="' + n.message_id + '"]').replaceWith($(i).find('.item[data-message-id="' + n.message_id + '"]')) : (a = $(i).find('.item[data-message-id="' + n.message_id + '"]').addClass("hidden"), o.find("#" + s + "_items").append(a), setTimeout(function () { o.show(), a.fadeIn() }, 200)) } }) } })), $('[data-action="delete_conversation"], [data-action="ignore_conversation"]').on("click", function (e) { e.preventDefault(); var t, a = $(this), i = a.attr("data-confirm") || ""; i && !confirm(i) || (t = a.attr("data-user-id")) && (e = a.attr("data-block-id"), (i = { function: "get_block" }).block_id = e, i.action = a.attr("data-action"), i.conversation_user_id = t, b(a, i, function (e) { "success" == e.status && window.lcation.reload() })) }), $(document).on("click", ".list-messages [data-edit-message-id]", function (e) { e.preventDefault(); var t = $(this), a = t.attr("data-edit-message-id"); a && ((e = $("#send_message_form")).find('[name="message_id"]').val() || (e.find('[name="message_id"]').val(a), m(e), (a = t.parents('.item[data-message-id="' + a + '"]')).addClass("editing"), a = (a = (a = (a = a.find(".original-text").html() || "").replace(/
/gi, "\n").replace(/>/gi, ">").replace(/</gi, "<").replace(/"/gi, '"')).replace(//gi, "$1")).trim(), e.find('[name="message"]').val(a).trigger("focus"))) }) }, function () { function e(e) { var t = window.lcation.href; if (0 < t.indexOf("#") && (t = t.substring(0, t.indexOf("#"))), 0 <= t.indexOf("?") ? t += "&" : t += "?", "js_stats" == e && y) { if (y.disableStats) return; y.videoId && (t += "video_id=" + y.videoId + "&"), y.albumId && (t += "album_id=" + y.albumId + "&") } (new Image).src = t + "mode=async&action=" + e + "&rand=" + (new Date).getTime() } var t; $.cookie("kt_tcookie", "1", { expires: 7, path: "/", samesite: "Lax" }), "1" == $.cookie("kt_tcookie") && e("js_stats"), y && y.userId && ((t = function () { e("js_online_status") })(), setInterval(t, 6e4)) }, function () { var e = $('[data-autoscroll="true"]'); e.exists() && m(e.first()) }, a, function () { $("[data-locale]").on("click", function (e) { var t, a = $(this).attr("data-locale"); a && (1 < ((t = window.lcation.host).match(/[.]/g) || []).length && (t = t.substring(t.indexOf(".") + 1)), $.cookie("kt_lang", a, { domain: t, expires: 365, path: "/", samesite: "Lax" })), $(this).attr("href") || (e.preventDefault(), window.lcation.reload()) }) }], r = 0; r < n.length; r++)if ("function" == typeof n[r]) try { n[r].call(this) } catch (e) { console && console.error && console.error(e) } }() });