PageSourceSearch

https://www.glamour.pl/assets/bundles/publisherform/js/runtime-nKDH7T2.js

js glamour.pl collected 2026-10-02 10:11:24 UTC 1,951 bytes, 1 lines download raw bytes

1import"jquery";import{createLogger}from"publishercore/logger";import{registerGlobals}from"publishercore/registerGlobals";import"bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js";import"bootstrap-datepicker/dist/locales/bootstrap-datepicker.pl.min.js";const log=createLogger("publisherFormRuntime"),$=window.jQuery||window.$;if(!$)throw new Error("Global jQuery runtime is not available");registerGlobals({jQuery:$,$},{preferExisting:!0});export function initPublisherForm(e=document){let o=0;typeof PublisherFormDatePickers!="undefined"&&Object.keys(PublisherFormDatePickers).forEach(function(t){const n=document.querySelector(t);if(!n||!e.contains(n))return;$(t).datepicker(PublisherFormDatePickers[t]),o+=1}),$(e).find(".form-group").each(function(){$(this).off("click.publisherForm",".form-check-input").on("click.publisherForm",".form-check-input",function(){if($(this).parents(".form-group").attr("data-multiplechoicelimit")){$(this).parents(".form-group").find("input:checkbox").each(function(){$(this).attr("disabled",!1)});const e=$(this).parents(".form-group").find("input:checkbox:checked").length,t=parseInt($(this).parents(".form-group").attr("data-multiplechoicelimit"));if(e>t)return $(this).prop("checked",!1),!1;e==t&&$(this).parents(".form-group").find("input:checkbox:not(:checked)").each(function(){$(this).attr("disabled",!0)})}})});let n=e.getElementsByClassName("is-invalid");n.length>0&&n.item(0)&&n.item(0).focus();let t=$(e).find(".newsletter_new input"),s=$(e).find(".handlowa_grupa input");s.length==1&&t.length==1&&(s.off("change.publisherForm").on("change.publisherForm",function(){this.checked?t.prop("checked",!0):t.prop("checked",!1)}),t.off("change.publisherForm").on("change.publisherForm",function(){this.checked&&s.prop("checked",!0)})),log.debug("init",{rootClassName:e instanceof Element?e.className:null,initializedDatepickers:o,invalidFieldsCount:n.length,hasNewsletterPair:s.length===1&&t.length===1})}

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.