PageSourceSearch

https://www.fryksdalenssparbank.se/etc.clientlibs/wcms/components/…-fb5bd3a15ce8cec96da7503d187f4541-lc.min.js

js fryksdalenssparbank.se collected 2026-10-08 12:47:10 UTC 7,316 bytes, 15 lines download raw bytes

1var __assign=this&&this.__assign||function(){__assign=Object.assign||function(c){for(var g,k=1,l=arguments.length;k<l;k++){g=arguments[k];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(c[m]=g[m])}return c};return __assign.apply(this,arguments)},SearchInput;
2(function(c){c.component='[data-js\x3d"search-field-input"]';c.clearButton='[data-js\x3d"clear-search-field"]';c.searchButton='[data-js\x3d"search-button"]';c.divider='[data-js\x3d"search-field-divider"]';var g=function(a){var b,d=null===(b=a.find(c.component))||void 0===b?void 0:b[0];d&&(d.value="",setTimeout(function(){d.focus()},200))},k=function(){$(document).off("keydown.search-form").on("keydown.search-form",SearchForm.headerSearchModal,function(a){a.key===WcmsConstants.tab&&$(WcmsConstants.suggestions).children().removeClass(WcmsConstants.active)})},
3l=function(a){var b,d=null===(b=a.find('[data-js\x3d"search-field-buttons"]'))||void 0===b?void 0:b[0];WcmsFunctions.hide($(d).find(c.clearButton));WcmsFunctions.hide($(d).find(c.divider));"false"===a.find(c.component).attr("data-js-allow-no-value-search")&&($(d).find(c.searchButton).addClass(WcmsConstants.disabled),$(d).find(c.searchButton).prop("disabled",!0))},m=function(a){$(a).on(WcmsConstants.keyup,function(){c.showHideClear(a)})};c.showHideClear=function(a){var b,d;(null===(b=a.find(c.component))||
4void 0===b?void 0:b[0]).value?(a=null===(d=$(a).find('[data-js\x3d"search-field-buttons"]'))||void 0===d?void 0:d[0],$(a).find(c.searchButton).removeClass(WcmsConstants.disabled),$(a).find(c.searchButton).prop("disabled",!1),WcmsFunctions.show($(a).find(c.clearButton)),WcmsFunctions.show($(a).find(c.divider))):l(a)};var q=function(a){var b,d=null===(b=a.find(c.clearButton))||void 0===b?void 0:b[0];$(document).off("click.searchFieldClear").on("click.searchFieldClear",c.clearButton,function(e){"click"===
5e.type&&(a.find(c.component).val("").removeClass("show-results"),l(a),c.closeSuggestions(),g(a))});$(d).off("keydown.searchFieldClear").on("keydown.searchFieldClear",function(e){e.key===WcmsConstants.enter&&(a.find(c.component).val("").removeClass("show-results"),l(a),c.closeSuggestions(),g(a))})},n=function(a){var b,d=null===(b=a.find(c.component))||void 0===b?void 0:b[0];if(d.value||!d.value&&"true"===a.find(c.component).attr("data-js-allow-no-value-search"))c.closeSuggestions($('[data-js-allow-suggestions\x3d"true"]')),
6a.find(SearchForm.component).trigger("submit")},r=function(a){var b,d=null===(b=a.find(c.searchButton))||void 0===b?void 0:b[0];$(d).off("click.searchFieldSubmit").on("click.searchFieldSubmit",function(){n(a)});$(d).off("keydown.searchFieldSubmit").on("keydown.searchFieldSubmit",function(e){e.key===WcmsConstants.enter&&n(a)})};c.initializeSearchForm=function(a,b){void 0===b&&(b=!0);var d=$(a);$(a).find(c.component).val("").removeClass("show-results");b&&g(d);k();c.showHideClear(d);m(d);q(d);r(d)};
7c.closeSuggestions=function(a){a&&$(a).removeClass("show-results");$(WcmsConstants.suggestions).html("").hide();$(document).off("keydown.suggestion")};var t=function(){$(document).off("click.suggestions").on("click.suggestions","[".concat("data-value","]"),function(a){a.preventDefault();var b=a.target;a=Search.getUrlQueryDict(!0);var d=$(b).closest(WcmsConstants.listItem).attr("data-value");(b=$(b).closest(WcmsConstants.form).find("[".concat("data-search-url","]")).attr("data-search-url")||"")?(b.endsWith("/")&&
8(b=b.substring(0,b.length-1)),WcmsFunctions.redirectTo("".concat(b,"?q\x3d").concat(d))):(WcmsFunctions.setUrlParamsAndThen(__assign(__assign({},a),{q:d})),document.dispatchEvent(new CustomEvent(WcmsConstants.suggestionsEnter)))})},p=function(a,b,d){var e=$(WcmsConstants.listItemActive,a),f=e;switch(b){case WcmsConstants.next:$(e).next().length?$(e).next().length&&(f=e.next()):f=a.find(WcmsConstants.listItem).first();break;case WcmsConstants.prev:$(e).prev().length?$(e).prev().length&&(f=e.prev()):
9f=a.find(WcmsConstants.listItem).last();break;default:console.error("Incorrect key type for suggestion selection")}a=f.attr(WcmsConstants.dataValue);if(a=null===a||void 0===a?void 0:a.replace(WcmsConstants.regexPlusChar," "))f.addClass(WcmsConstants.active),f.siblings().removeClass(WcmsConstants.active),d.val(decodeURIComponent(a))},u=function(a,b){var d=a.closest(SearchForm.component).find(WcmsConstants.suggestions);$(document).off("keydown.suggestion").on("keydown.suggestion",function(e){switch(e.key){case WcmsConstants.enter:b.closest(SearchForm.component).trigger("submit");
10break;case WcmsConstants.arrowUp:e.preventDefault();p(d,WcmsConstants.prev,b);break;case WcmsConstants.arrowDown:e.preventDefault(),p(d,WcmsConstants.next,b)}})},v=function(a){var b=a.response,d=a.keyword;a=a.currentInput;var e=$(a).parent().siblings(WcmsConstants.suggestions),f=[];$(e).html("");b.values.map(function(h){f.push('\n                \x3cli role\x3d"option" '.concat("data-value",'\x3d"').concat(h.term,'"\x3e\n                    \x3cspan\x3e\x3cicon-search/\x3e\x3c/span\x3e').concat(Search.highlight(h.term,
11d),"\n                \x3c/li\x3e\n            "))});$(a).addClass("show-results");$(e).html(f.join(""));$(e).show();t();u(e,a)},w=function(a){var b=$(a).attr(WcmsConstants.attrSearchEndpoint)||"",d=$(a).attr(WcmsConstants.attrApiKey)||"",e=$(a).val(),f={hitsPerPage:15,page:1,query:e};!b||!d||3>e.length||$.ajax({url:b,method:"POST",headers:{"X-API-Key":d,"X-Network-Origin":"ext"},dataType:"json",contentType:"application/json; charset\x3dutf-8",data:JSON.stringify(f)}).done(function(h){h.values.length?
12v({response:h,keyword:f.query,currentInput:a}):c.closeSuggestions(a)}).fail(function(h){console.warn(h)})},x=function(){var a=document.querySelectorAll('[data-js\x3d"search-combobox"]');Options.initComboboxes(a);$('[data-js-allow-suggestions\x3d"true"]').removeClass("show-results");$(window).on(WcmsConstants.focus,function(){setTimeout(function(){var b=$(":focus");b.is('[data-js-allow-suggestions\x3d"true"]')&&b.parent().siblings(WcmsConstants.suggestions).find(WcmsConstants.listItem).length&&b.addClass("show-results")})});
13$(document).off("keyup.suggestions").on("keyup.suggestions",function(b){b=b.key;var d=$(":focus");b!==WcmsConstants.tab||d.is("input".concat('[data-js-allow-suggestions\x3d"true"]'))||d.is(c.clearButton)||d.is(c.searchButton)||c.closeSuggestions($('[data-js-allow-suggestions\x3d"true"]'))});
13$(document).off("click.suggestions").on("click.suggestions",function(){var b=$(":focus");b.is('[data-js-allow-suggestions\x3d"true"]')||b.is(c.clearButton)||b.is(c.searchButton)||c.closeSuggestions($('[data-js-allow-suggestions\x3d"true"]'))});
14$("input".concat('[data-js-allow-suggestions\x3d"true"]')).on("keyup",function(b){var d=b.target;b=b.key;var e=$(d);[WcmsConstants.arrowDown,WcmsConstants.arrowUp,WcmsConstants.escape,WcmsConstants.enter].includes(b)?b===WcmsConstants.escape&&c.closeSuggestions($('[data-js-allow-suggestions\x3d"true"]')):(3>$(d).val().length&&c.closeSuggestions($('[data-js-allow-suggestions\x3d"true"]')),w(e))})};c.init=function(){$(document).on(WcmsConstants.headerSearchModalReady,function(){c.initializeSearchForm(SearchForm.headerSearchModal)});
15$(document).on(WcmsConstants.menuSearchFormReady,function(){c.initializeSearchForm(SearchForm.topMenuSearchForm)});x()}})(SearchInput||(SearchInput={}));(function(){SearchInput.init()})();

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.