PageSourceSearch

https://spartak.ru/assets/templates/hcspar/public/js/165.c81f6eddd83e2d4cff23.js

js spartak.ru collected 2026-10-02 06:09:38 UTC 1,622 bytes, 1 lines download raw bytes

1(self.webpackChunkspartacus=self.webpackChunkspartacus||[]).push([[165],{40165:function(e){e.exports=function(){"use strict";const e=e=>null==e?null:t(e),t=e=>"boolean"==typeof e?e?"1":"0":e+"",n=(e,t=!1)=>{e&&(e.preventDefault(),t&&e.stopPropagation())},s={æ:"ae",ⱥ:"a",ø:"o"};new RegExp(Object.keys(s).join("|"),"gu");const i=e=>{if(e.jquery)return e[0];if(e instanceof HTMLElement)return e;if(r(e)){let t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}return document.querySelector(e)},r=e=>"string"==typeof e&&e.indexOf("<")>-1;function o(){var t=this,s=t.onOptionSelect;t.settings.hideSelected=!1;var r=function(e){setTimeout((()=>{var t=e.querySelector("input");t instanceof HTMLInputElement&&(e.classList.contains("selected")?t.checked=!0:t.checked=!1)}),1)};t.hook("after","setupTemplates",(()=>{var s=t.settings.render.option;t.settings.render.option=(r,o)=>{var c=i(s.call(t,r,o)),a=document.createElement("input");a.addEventListener("click",(function(e){n(e)})),a.type="checkbox",a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true");const u=e(r[t.settings.valueField]),l=t.settings.checkboxIconHtml||"";return u&&t.items.indexOf(u)>-1&&(a.checked=!0),c.prepend(a),l&&a.insertAdjacentHTML("afterend",l),c}})),t.on("item_remove",(e=>{var n=t.getOption(e);n&&(n.classList.remove("selected"),r(n))})),t.on("item_add",(e=>{var n=t.getOption(e);n&&r(n)})),t.hook("instead","onOptionSelect",((e,i)=>{if(i.classList.contains("selected"))return i.classList.remove("selected"),t.removeItem(i.dataset.value),t.refreshOptions(),void n(e,!0);s.call(t,e,i),r(i)}))}return 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.