1"use strict";(self.webpackChunkYabsta=self.webpackChunkYabsta||[]).push([[6203],{21194(n,o,t){t(73477)},73477(__unused_webpack_module,__webpack_exports__,__webpack_require__){var $=__webpack_require__(34796);function initModalTagCollection(n,o=".filter-tags"){const t=$(`#${n}`);if(0===t.length)return console.warn(`[ModalHelpers] Modal not found: #${n}`),{destroy:()=>{}};let e=null,i=null;const l=function(){let n,l,s=0;const a=t.find(o);function d(){const o=t.find(".modal-dialog").width()-100;n=Math.floor(o/s*l)-1,n<l-1?(t.find(".more-tags").css({display:"inline-block"}),t.find(".view-all").css({display:"block"})):t.find(".more-tags, .view-all").css({display:"none"}),a.children().css({display:"inline-block",width:"auto"}),i=n<0?a.children():a.children(`:gt(${n})`);const e=t.find(".filter-tags .subtags");e.length>0&&e.empty().append(i.clone()),i.css({display:"none",width:"0"})}0!==a.length&&(l=a.children().length,a.children().each(function(){s+=$(this).outerWidth()}),d(),e=d,$(window).on("resize",e),t.find(".more-tags, .view-all").on("click",function(){i&&i.css({display:"inline-block",width:"auto"}),t.find(".more-tags").css({display:"none"}),t.find(".view-all").css({display:"none"})}))};return t.on("shown.bs.modal",l),{destroy:function(){t.off("shown.bs.modal",l),e&&$(window).off("resize",e),t.find(".more-tags, .view-all").off("click")}}}function initModalShowHandler(n,o){const t=$(n);if(0===t.length)return console.warn(`[ModalHelpers] Button not found: ${n}`),{destroy:()=>{}};const e=function(){$(`#${o}`).modal("show")};return t.on("click",e),{destroy:function(){t.off("click",e)}}}function initSearchWidget(widgetClass,config,stats=null){let WidgetClass;try{WidgetClass=window[widgetClass]||eval(widgetClass)}catch(n){return console.error(`[ModalHelpers] Widget class not found: ${widgetClass}`),null}if("function"!=typeof WidgetClass)return console.error(`[ModalHelpers] Widget class not found: ${widgetClass}`),null;try{const n=null!==stats?new WidgetClass(config,stats):new WidgetClass(config);return n}catch(n){return console.error(`[ModalHelpers] Failed to instantiate widget: ${widgetClass}`,n),null}}function initSearchModals(n={}){const o=[],t=[];return n.tagCollections&&n.tagCollections.forEach(n=>{const t=initModalTagCollection(n.modalId,n.tagsSelector||".filter-tags");o.push(t)}),n.modalHandlers&&n.modalHandlers.forEach(n=>{const o=initModalShowHandler(n.button,n.modal);t.push(o)}),{destroy:function(){o.forEach(n=>n.destroy()),t.forEach(n=>n.destroy())}}}"undefined"!=typeof window&&(window.initModalTagCollection=initModalTagCollection,window.initModalShowHandler=initModalShowHandler,window.initSearchWidget=initSearchWidget,window.initSearchModals=initSearchModals)}},n=>{n.O(0,[8096],()=>{return o=21194,n(n.s=o);var o});n.O()}]);
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.