PageSourceSearch

https://telega.io/assets/components/modal-a1bd671b4e96dc3b3ca56ff70933c56647bcceb33890def8250a999d8d2a5c11.js

js telega.io collected 2026-10-03 23:35:24 UTC 9,866 bytes, 1 lines download raw bytes

1var init_datepicker=function(t,e,a){e=e||new Date((new Date).setFullYear((new Date).getFullYear()-10)),a=a||new Date,t=t||".date",$(".js_set_time_border_fields").each(function(){var t=$(this).attr("min"),e=$(this).attr("max");t&&$(this).attr("min",t),e&&$(this).attr("max",e)}),$(t).datepicker({minDate:e,maxDate:a,language:gon.locale,dateFormat:"yyyy-mm-dd",timepicker:!1,onSelect:function(){}})},loadContentInOtherPopup=function(t,e,a,n){openAllOtherPopup({title:t,description:n},function(){if($(".fab").hide(),$(".modal-wrapper .modal-content, .modal-wrapper .modal-footer").html(""),$(".modal-wrapper .modal-content").hide(),$(".modal-wrapper .animation_load").show(),!gon.production){var t=new URL(window.location.href).origin;e=new URL(t+e),e=get_params_to_url(e,{locale:gon.locale}).href}$.ajax({type:"get",url:e,data:{data_btn_id:a.data("id")},dataType:"json",success:function(t){set_content_modal(t.html),modalDateRangePicker(),a.data("popup")&&open_fancybox($(".modal-wrapper:not(#modal_template):not([id])"));var e=a.data("js");if(e!=undefined&&""!=e.trim()&&!window[e](a))return!1;var n=a.data("add_js");n!=undefined&&""!=n.trim()&&window[n](a),install_tinymce_for_order_create(),init_datepicker()},error:function(){}})})},openAllOtherPopup=function(t,e){void 0===e&&(e=function(){}),$(".modal-wrapper:not([id])").addClass("active"),set_static_text_modal(t),t.body!=undefined&&t.body.length&&set_content_modal(t.body),show_dark_overlay(),e(),copy_text()},run_accept_order=function(){var t=$('.wrapper_order_channel_item[id="'+current_order_channel+'"]'),e=t.data("id"),a=t.find("div[after-class='js_open_popup_select_date_order_channel']");a.length?set_popup_chouse_dates(a.data("start"),a.data("final"),t.data("id")):run_order_channels($("div[after-class='js_run_order_channel'][data-id='"+e+"']"))},sendInnToFNC=function(t,e,a){submitNewModel(e,function(){closePopup(),a!=undefined&&a()})},set_content_modal=function(t){var e=$(t),a=e.find(".form_actions").clone();e.find(".form_actions").remove();var n=e.find(".form_header").clone();e.find(".form_header").remove(),$(".modal-wrapper .modal-content").show(),$(".modal-wrapper .animation_load").hide();var o=$(".modal-wrapper:not(#modal_template):not([id]) .modal-content").html(e);$(".modal-wrapper:not(#modal_template):not([id]) .modal-header__sub").html(n),$(".modal-wrapper:not([id]) .modal-footer").html(a);$(".form_actions._fix").appendTo(".modal-footer"),o.find(".defaultInitMdSelect").each(function(t,e){include_mad_select($(e))}),"function"==typeof initTelegramEditors&&initTelegramEditors(o);var d=e.find(".js_modal_close");d.length&&$("#overlay, .js_modal_close").attr("data-href",d.data("href")||d.data("url")),o.find(".item input, .item textarea").on("change",function(){$(this).closest(".item").removeClass("error")})},show_hide_block=function(t){t.toggleClass("display_none_important")},set_static_text_modal=function(t){$(".modal-wrapper .modal-header").toggleClass("blank",!(t.title&&t.title.length)),$(".modal-wrapper .modal-header__title").html(t.title||""),$(".modal-wrapper .modal-header__sub").html(t.description||""),t.title&&t.title.length?$(".modal-header").show():$(".modal-header").hide()},animationEndPopup=function(t,e,a,n){var o=$(t),d=$(".endContent");$("body").css({overflow:"hidden"}),d.find(".centerBlock .title").html(e),d.find(".centerBlock .buttonGroup .btn").text(a),d.find(".centerBlock .buttonGroup .btn, .close_end_popup").attr("onclick",n),o.find(".conteinerPopup").hide(),o.find(".fab-hdr").hide(),o.addClass("full-screen"),setTimeout(function(){d.hide().removeClass("displayNone").fadeIn("slow",function(){o.removeClass("full-screen").removeClass("active")})},100)},getTitleAndHrefBtnInOtherPopup=function(t){var e=$(t).data("title"),a=$(t).data("description"),n=$(t).data("class"),o=$(t).data("url")||$(t).attr("href");$(".modal-wrapper").addClass(n),loadContentInOtherPopup(e,o,t,a)},show_dark_overlay=function(){$("body").css({overflow:"hidden"}),$("#overlay").addClass("dark-overlay")},hide_dark_overlay=function(){$("body").css({overflow:"scroll"}),$("#overlay").removeClass("dark-overlay")};$(document).on("click",".js_open_selector_payment",function(){show_dark_overlay(),$(".left_side .selector_payment").addClass("active")}),$(document).on("click",".js_close_selector_payment",function(){hide_dark_overlay(),$(".left_side .selector_payment").removeClass("active")});var closePopup=function(){$(".fab, .allOtherPopup").find(".conteinerPopup, .fab-hdr").fadeOut(300),$(".fab, .allOtherPopup").addClass("displayNone").removeClass("active"),$(".fab").length&&"none"!=$(".fab").data("display")&&$(".fab").show(),$(".modal-wrapper").removeClass("active"),$(".modal-wrapper").removeClass("is-loading is-error").removeAttr("data-text-loading"),$(".chat_room, .chat_popup").fadeOut(100),closeConfirm(),$(".history_bar").is(":visible")||hide_dark_overlay(),$.fancybox.close($(".modal-wrapper:not(#modal_template):not([id])"))},js_set_inn_modal_data=function(t){jobRussianContent(),$(".js_accept_inn_check").attr("data-after-js",t.data("after-js")),$(".js_accept_inn_check").attr("data-start",t.data("start")),$(".js_accept_inn_check").attr("data-final",t.data("final")),$(".js_accept_inn_check").attr("data-id",t.data("id")),$(".js_accept_inn_check").attr("data-href",t.data("href")),$(".js_accept_inn_check").attr("data-path",t.data("path"))},set_js_poster_bot_modal=function(){$(".js_check_poster_bot_channel").click(function(){var t=$(this);$.ajax({url:Routes.check_poster_bot_path(),dataType:"json",type:"get",data:{id:t.data("id"),link:t.attr("data-link")},success:function(e){t.removeClass("loading"),e.success?($(".js_show_poster_bot_connected, .js_set_poster_bot_datetime").removeClass("display_none_important"),$(".js_hide_poster_bot_connected").addClass("display_none_important"),t.hasClass("js_close_modal")&&($(".js_modal_close").trigger("click"),$(".channels .item[data-id='"+t.data("id")+"']").find(".js_close_modal").addClass("color-blue").removeClass("js_loadContentInOtherPopup"),$(".channels .item[data-id='"+t.data("id")+"']").find(".poster-bot-info").removeClass("poster-bot-info--waring"),$(".channels .item[data-id='"+t.data("id")+"']").find(".js_poster_bot_connected").addClass("display_none_important"),$(".channels .item[data-id='"+t.data("id")+"']").find(".poster-bot-info__badge").toggleClass("display_none_important"))):$(".js_error_add_poster_bot").removeClass("display_none_important")}})})},js_open_popup_select_dates=function(t){set_popup_chouse_dates(t.data("start"),t.data("final"),t.data("id"))},js_run_order_channel=function(t){run_order_channels(t)}
1,jobRussianContent=function(){$(".js-limit-input").unbind("keyup change input paste").bind("keyup change input paste",function(){var t=$(this),e=t.val().length,a=t.attr("maxlength");e>a&&t.val(t.val().substring(0,a))}),$(".js-limit-input").bind("input",function(){$(this).val().length>9?$(this).next(".btn").removeClass("disabl"):$(this).next(".btn").addClass("disabl")}),$(".js_btn_fl").click(function(){$(this).parents(".modal-wrapper").find("#job_main").addClass("display_none_important"),$(this).parents(".modal-wrapper").find("#fizlic").removeClass("display_none_important"),$(this).parents(".modal-wrapper").find(".modal-header__title").text("\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b? ")}),$(".js-btn-prev").click(function(){$(this).parents(".modal-wrapper").find("#job_main").removeClass("display_none_important"),$(this).parents(".modal-wrapper").find("#job_ip, #samozanetuy, #fizlic").addClass("display_none_important"),$(this).parents(".modal-wrapper").find(".modal-header__title").text("\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043c\u0435\u0442\u043e\u0434 \u0432\u044b\u0432\u043e\u0434\u0430")})},modalDateRangePicker=function(){$(".daterangepicker").attr("id","yourCustomId"),$(".js_daterange").daterangepicker({locale:{format:"DD.MM.YYYY"},opens:"left",drops:"up",autoApply:!0,startDate:moment().startOf("year"),endDate:moment().endOf("year")},function(){}).on("show.daterangepicker",function(t,e){$(e.container).addClass("modal-DataRange")}),$(".js_custom_period").change(function(t){$(t.target).closest(".form_item").next().toggle(),$(t.target).is(":checked")&&$(".js_daterange").show().val("").focus()})},showMessageBlock=function(){$(document).on("click",".js-modal-show-block",function(){$(this).parents(".content_form").addClass("display_none"),$(".js-modal-hide-block").removeClass("display_none")})};$(document).ready(function(){$(document).on("click",".js_loadContentInOtherPopup",function(t){t.preventDefault(),getTitleAndHrefBtnInOtherPopup($(this)),showMessageBlock()}),$(document).on("click","input[name='final_advertiser[value]']",function(){show_hide_block($(".blocks"))}),$(document).on("click",".js_accept_inn_check",function(){var t=$(this),e=t.closest(".content_form").find("input").val(),a=$(this).data("after-js");sendInnToFNC(e,t,function(){if(a){if(!window[a](t))return!1}else window.location.href=t.data("path")}),closePopup()}),$(document).on("click",".js_open_modal",function(){show_dark_overlay();var t=$(this).attr("href");$(t).addClass("active")}),$(document).on("input",".js_track_change_value",function(){$(".js_check_poster_bot_channel").attr("data-link",$(this).val())}),$(document).on("click","#overlay, .js_modal_close",function(){$(this).data("reload")&&window.location.reload();var t=$(this).data("url")||$(this).data("href");t!=undefined&&t.length&&(window.location.href=t),closePopup()})}),$(document).ready(function(){$(document).on("click",".js_open_transaction_history",function(){show_dark_overlay(),$(".history_bar").show()}),$(document).on("click",".js_close_transaction_history",function(){hide_dark_overlay(),$(".history_bar").hide()}),$(document).on("click","#overlay",function(){$(".history_bar").hide(),hide_dark_overlay(),$(".left_side .selector_payment").removeClass("active")})});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.