1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2300],{12300:(function(N,j,e){var y=e(52675),Z=e.n(y),P=e(89463),G=e.n(P),p=e(2259),J=e.n(p),M=e(45700),Q=e.n(M),O=e(50113),V=e.n(O),D=e(23792),Y=e.n(D),h=e(89572),H=e.n(h),C=e(2892),F=e.n(C),g=e(84185),$=e.n(g),T=e(26099),w=e.n(T),I=e(58940),k=e.n(I),L=e(27495),q=e.n(L),U=e(47764),ee=e.n(U),A=e(25440),te=e.n(A),R=e(62953),_e=e.n(R),B=e(74692),s=e.n(B);function m(t){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},m(t)}function K(t){throw new TypeError('"'+t+'" is read-only')}function W(t,_){if(!(t instanceof _))throw new TypeError("Cannot call a class as a function")}function E(t,_){for(var a=0;a<_.length;a++){var r=_[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x(r.key),r)}}function b(t,_,a){return _&&E(t.prototype,_),a&&E(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function x(t){var _=S(t,"string");return m(_)=="symbol"?_:_+""}function S(t,_){if(m(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,_||"default");if(m(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(t)}var X=(function(){function t(){W(this,t),this.listeners()}return b(t,[{key:"listeners",value:function(){var a=this;s()(document).on("change","input[data-related-tipnews]",function(r){var l=s()(this),o=l.val(),d=l.closest("li"),n=d.find("[data-categories]"),i=n.children(".active-box:first");l.prop("checked")?(n.show(),i.find('input[type="radio"][value="0"]').prop("checked",!0),d.addClass("border-primary")):(n.hide(),i.find('input[type="radio"]').prop("checked",!1),d.removeClass("border-primary"))}),s()(document).on("change",'input[name*="related_tipnews[category]"]',function(r){var l=s()(this),o=s()('input[name*="related_tipnews[category]"]:checked').length;o>5&&l.prop("checked",!1)}),s()(document).on("click",".categories-multisite-container .list-group .list-group-item",function(r){r.preventDefault();var l=s()(this),o=l.data();if(!l.hasClass("last"))s().ajax({url:o.url,data:{url:o.tipnewsUrl,parent:o.id,holder:o.holder,module:o.module},dataType:"json",method:"POST"}).done(function(z,oe,se){s()("#appModal .modal-body").html(z.result)});else if(typeof o.holder<"u"&&o.holder){var d=s()("#"+o.holder),n=d.data(),i=s()("#"+o.holder),u=i.data(),v=i.children().length;if(typeof n.prototype<"u"&&typeof n.index<"u"){var c=n.prototype;c=c.replace(/__name__/g,n.index),d.data("index",n.index+1);var f=s()(c);f.find(".category-field:hidden").val(o.id),typeof o.htmlPath<"u"&&o.htmlPath&&f.find(".form-path:first").html(o.htmlPath),d.append(f),s()("#appModal").modal("hide"),Tools.initTooltips(),typeof u.maxItems<"u"&&v+1>=parseInt(u.maxItems)&&i.parent().find(".btn-action-add").hide()}}})}},{key:"getArticleCategories",value:function(){var a=[];return s()("#article_categories .category_name").each(function(){a.push(s()(this).text())}),a}},{key:"addCategory",value:function(a,r){var l=s()("#"+a),o=l.data(),d=l.children().length,n=o.tipnewsUrl,i=!0;typeof o.maxItems<"u"&&d>=parseInt(o.maxItems)&&K("allow"),i&&s().ajax({url:r,data:{url:n,holder:a,module:o.module},dataType:"json",method:"POST"}).done(function(u,v,c){if(typeof u.status<"u"&&u.status===1){var f=' <div class="modal" id="appModal" tabindex="-1" role="dialog" aria-labelledby="appModalLabel" aria-hidden="true" style="overflow:hidden!important;"> <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="appModalLabel">'+i18next.t("default.choose_category","Wybierz kategori\u0119")+'</h5> <button type="button" class="close" data-dismiss="modal" aria-label="'+i18next.t("default.close","Zamknij")+'">
1 <span aria-hidden="true"><i class="fal fa-times"></i></span> </button> </div> <div class="modal-body"> '+u.result+" </div> </div> </div> </div>";s()("body").append(f),s()("#appModal").modal("show")}})}}])})();j.default=X})}]);
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.