PageSourceSearch

https://urbanhald.dk/shop/frontend/public/js/webshop.bundle.productfilter.min.js?v=8.119.5415

js urbanhald.dk collected 2026-10-09 03:58:14 UTC 28,081 bytes, 1 lines download raw bytes

1!function(n){function t(){this._init.apply(this,arguments)}t.prototype.oninit=function(){},t.prototype.events=function(){},t.prototype.onmousedown=function(){this.ptr.css({position:"absolute"})},t.prototype.onmousemove=function(t,e,i){this.ptr.css({left:e,top:i})},t.prototype.onmouseup=function(){},t.prototype.isDefault={drag:!1,clicked:!1,toclick:!0,mouseup:!1},t.prototype._init=function(){var t;0<arguments.length&&(this.ptr=n(arguments[0]),this.outer=n(".draggable-outer"),this.is={},n.extend(this.is,this.isDefault),t=this.ptr.offset(),this.d={left:t.left,top:t.top,width:this.ptr.width(),height:this.ptr.height()},this.oninit.apply(this,arguments),this._events())},t.prototype._getPageCoords=function(t){return t.targetTouches&&t.targetTouches[0]?{x:t.targetTouches[0].pageX,y:t.targetTouches[0].pageY}:{x:t.pageX,y:t.pageY}},t.prototype._bindEvent=function(t,e,i){this.supportTouches_?t.get(0).addEventListener(this.events_[e],i,!1):t.bind(this.events_[e],i)},t.prototype._events=function(){var e=this;this.supportTouches_="ontouchend"in document,this.events_={click:this.supportTouches_?"touchstart":"click",down:this.supportTouches_?"touchstart":"mousedown",move:this.supportTouches_?"touchmove":"mousemove",up:this.supportTouches_?"touchend":"mouseup"},this._bindEvent(n(document),"move",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault(),e._mousemove(t))}),this._bindEvent(n(document),"down",function(t){e.is.drag&&(t.stopPropagation(),t.preventDefault())}),this._bindEvent(n(document),"up",function(t){e._mouseup(t)}),this._bindEvent(this.ptr,"down",function(t){return e._mousedown(t),!1}),this._bindEvent(this.ptr,"up",function(t){e._mouseup(t)}),this.ptr.find("a").click(function(){if(e.is.clicked=!0,!e.is.toclick)return!(e.is.toclick=!0)}).mousedown(function(t){return e._mousedown(t),!1}),this.events()},t.prototype._mousedown=function(t){this.is.drag=!0,this.is.clicked=!1,this.is.mouseup=!1;var e=this.ptr.offset(),i=this._getPageCoords(t);this.cx=i.x-e.left,this.cy=i.y-e.top,n.extend(this.d,{left:e.left,top:e.top,width:this.ptr.width(),height:this.ptr.height()}),this.outer&&this.outer.get(0)&&this.outer.css({height:Math.max(this.outer.height(),n(document.body).height()),overflow:"hidden"}),this.onmousedown(t)},t.prototype._mousemove=function(t){this.is.toclick=!1;var e=this._getPageCoords(t);this.onmousemove(t,e.x-this.cx,e.y-this.cy)},t.prototype._mouseup=function(t){this.is.drag&&(this.is.drag=!1,this.outer&&this.outer.get(0)&&(n.browser.mozilla?this.outer.css({overflow:"hidden"}):this.outer.css({overflow:"visible"}),n.browser.msie&&"6.0"==n.browser.version?this.outer.css({height:"100%"}):this.outer.css({height:"auto"})),this.onmouseup(t))},window.Draggable=t}(jQuery);var Hashtable=function(){var h="function",s=typeof Array.prototype.splice==h?function(t,e){t.splice(e,1)}:function(t,e){var i,n,s;if(e===t.length-1)t.length=e;else for(i=t.slice(e+1),t.length=e,n=0,s=i.length;n<s;++n)t[e+n]=i[n]};function n(t){var e;if("string"==typeof t)return t;if(typeof t.hashCode==h)return"string"==typeof(e=t.hashCode())?e:n(e);if(typeof t.toString==h)return t.toString();try{return String(t)}catch(i){return Object.prototype.toString.call(t)}}function e(t,e){return t.equals(e)}function i(t,e){return typeof e.equals==h?e.equals(t):t===e}function t(e){return function(t){if(null===t)throw new Error("null is not a valid "+e);if(void 0===t)throw new Error(e+" must not be undefined")}}var d=t("key"),f=t("value");function p(t,e,i,n){this[0]=t,this.entries=[],this.addEntry(e,i),null!==n&&(this.getEqualityFunction=function(){return n})}function r(s){return function(t){for(var e,i=this.entries.length,n=this.getEqualityFunction(t);i--;)if(n(t,(e=this.entries[i])[0]))switch(s){case 0:return!0;case 1:return e;case 2:return[i,e[1]]}return!1}}function o(s){return function(t){for(var e=t.length,i=0,n=this.entries.length;i<n;++i)t[e+i]=this.entries[i][s]}}function g(t,e){e=t[e];return e&&e instanceof p?e:null}return p.prototype={getEqualityFunction:function(t){return typeof t.equals==h?e:i},getEntryForKey:r(1),getEntryAndIndexForKey:r(2),removeEntryForKey:function(t){t=this.getEntryAndIndexForKey(t);return t?(s(this.entries,t[0]),t[1]):null},addEntry:function(t,e){this.entries[this.entries.length]=[t,e]},keys:o(0),values:o(1),getEntries:function(t){for(var e=t.length,i=0,n=this.entries.length;i<n;++i)t[e+i]=this.entries[i].slice(0)},containsKey:r(0),containsValue:function(t){for(var e=this.entries.length;e--;)if(t===this.entries[e][1])return!0;return!1}},function v(e,i){var l=this,o=[],a={},u=typeof e==h?e:n,c=typeof i==h?i:null,t=(this.put=function(t,e){d(t),f(e);var i,n=u(t),s=null,r=g(a,n);return r?(i=r.getEntryForKey(t))?(s=i[1],i[1]=e):r.addEntry(t,e):(r=new p(n,t,e,c),o[o.length]=r,a[n]=r),s},this.get=function(t){d(t);var e=u(t);return(e=g(a,e))&&(t=e.getEntryForKey(t))?t[1]:null},this.containsKey=function(t){d(t);var e=u(t);return!!(e=g(a,e))&&e.containsKey(t)},this.containsValue=function(t){f(t);for(var e=o.length;e--;)if(o[e].containsValue(t))return!0;return!1},this.clear=function(){o.length=0,a={}},this.isEmpty=function(){return!o.length},function(i){return function(){for(var t=[],e=o.length;e--;)o[e][i](t);return t}});this.keys=t("keys"),this.values=t("values"),this.entries=t("getEntries"),this.remove=function(t){d(t);var e=u(t),i=null,n=g(a,e);return n&&null!==(i=n.removeEntryForKey(t))&&!n.entries.length&&(t=function(t,e){for(var i=t.length;i--;)if(e===t[i][0])return i;return null}(o,e),s(o,t),delete a[e]),i},this.size=function(){for(var t=0,e=o.length;e--;)t+=o[e].entries.length;return t},this.each=function(t){for(var e,i=l.entries(),n=i.length;n--;)t((e=i[n])[0],e[1])},this.putAll=function(t,e){for(var i,n,s,r=t.entries(),o=r.length,a=typeof e==h;o--;)i=(n=r[o])[0],n=n[1],a&&(s=l.get(i))&&(n=e(i,s,n)),l.put(i,n)},this.clone=function(){var t=new v(e,i);return t.putAll(l),t}}}();function buildCategoryFilter(t){$.ajax({url:"/shop/ajaxwrapper.asp"+t+"&fc=buildcategoryfilter",type:"GET",cac
1he:!1,"async":!0,success:function(t){$("#ProductFilter-Container").html(t),filteredListLoadedFirstTime(),$("#ProductFilter-Container").find(".product-filter-advanced-variant-checkbox").each(function(t,e){$("#"+e.id).change(function(){createCookie("FilterChildName",$(this).parent().parent().attr("id")),createCookie("FilterScrollPos",$(this).parent().parent().parent().scrollTop())})});t=getCookie("FilterChildName");t!=undefined&&""!==t&&$(document).find("#"+t).parent().scrollTop(getCookie("FilterScrollPos"))}})}function clearPriceIntervalSlider(t,e,i,n,s){0<$("DivSliderproduct-filter-price-range-slider").length?($("#"+i).slider("value",n,s),$("#MinInput"+i).val(n),$("#MaxInput"+i).val(s),loadFilteredProductList(t,e)):loadFilteredProductList(t,e,"","pricerange","","")}function applyPriceRangefilter(t,e,i,n,s){$("#MinInput"+i).val(t),$("#MaxInput"+i).val(e),loadFilteredProductList(n,s,"","","Price","")}function searchInCategory(t,e,i){$("#filter-search-category").val(i),loadFilteredProductList(t,e,"","","Category","")}function toggleFilterCheckbox(t,e){e.stopPropagation();e=$("#"+t);e.is(":disabled")||(e.prop("checked",!e.is(":checked")),e.trigger("change"))}function filterItemClicked(t){t.stopPropagation()}function showAllFilters(){$("#product-filter-container-hidden").fadeIn(),$("#product-filter-show-all-filters").val("1"),$("#product-filter-show-all-container").hide()}function showHiddenFilterValues(t,e){$("#product-filter-show-all-items-"+e).val(e),$("#"+t+" div").slideDown("fast"),$("#"+t+" .product-filter-show-all-items").hide();var i="",e=($(".product-filter-show-all-items-selected").each(function(t,e){e=$(e).val();0<e.length&&(i=i+e+"|")}),"/shop/ajaxwrapper.asp?fc=SetProductFilterShowAllItemsValue&Value="+i);$.ajax({url:e,"async":!0,type:"GET",cache:!1})}function filteredListLoaded(){}function filteredListLoadedAfterRender(){}function beforeFilteredListLoaded(){}function filteredListLoadedFirstTime(){}function removeLastComma(t){return t.replace(/,\s*$/,"")}function removeLastPipe(t){return t.replace(/[|]\s*$/,"")}function allFiltersAreDeselected(t,e,i,n,s,r,o,a){if(1===t)return!1;if(1===e)return!1;if(1===i)return!1;if(0<n.length)return!1;if(0<s.length)return!1;if(0<r.length)return!1;if(0<o.length)return!1;if(0<a.length){t=a.split("|");if(2===t.length){if(t[0]!==$("#product-filter-price-min").val())return!1;if(t[1]!==$("#product-filter-price-max").val())return!1}}return!0}function loadFilteredProductList(t,e,s,r,i,n){var o="",a="",l="",u="",c=$("#product-filter-show-all-filters").val(),h=(r==undefined&&(r=""),$.parseParams(t)),d=h.contentpage,f=h.search,p=($(".product-filter-advanced-variant-dropdown").each(function(t,e){var i=$(e).find(".product-filter-advanced-variant-group-id").val();s!=undefined&&s===i&&"AdvancedVariants"===r||$(e).find(".product-filter-advanced-variant-select").each(function(t,e){e=$(e).val();""!==e&&(o=(o=o+i+";")+e+"|")})}),$(".product-filter-advanced-variant-checkboxes").each(function(t,e){var n,i=$(e).find(".product-filter-advanced-variant-group-id").val();s!=undefined&&s===i&&"AdvancedVariants"===r||(n="",$(e).find(".product-filter-advanced-variant-checkbox").each(function(t,e){var i=$(e);$(e).is(":checked")&&(n=n+i.val()+",")}),""!==(n=removeLastComma(n))&&(o=o+i+";"+n+"|"))}),o=removeLastPipe(o),$(".product-filter-tag-dropdown").each(function(t,e){var i=$(e).find(".product-filter-tag-group-id").val();s!=undefined&&s===i&&"Tags"===r||$(e).find(".product-filter-tag-select").each(function(t,e){e=$(e).val();""!==e&&(a=(a=a+i+";")+e+"|")})}),$(".product-filter-tag-checkboxes").each(function(t,e){var n,i=$(e).find(".product-filter-tag-group-id").val();s!=undefined&&s===i&&"Tags"===r||(n="",$(e).find(".product-filter-tag-checkbox").each(function(t,e){var i=$(e);$(e).is(":checked")&&(n=n+i.val()+",")}),""!==(n=removeLastComma(n))&&(a=a+i+";"+n+"|"))}),a=removeLastPipe(a),0),g=($("#product-filter-new-checkbox").is(":checked")&&(p=1),0),v=($("#product-filter-offer-checkbox").is(":checked")&&(g=1),0),m=($("#product-filter-stock-checkbox").is(":checked")&&(v=1),"Other"===r&&(v=g=p=0),$(".product-filter-manufactor-checkboxes").each(function(t,e){if("Manufactors"===r)return!1;$(e).find(".product-filter-manufactor-checkbox").each(function(t,e){e=$(e);$(e).is(":checked")&&(l=l+e.val()+",")})}),0<$(".product-filter-manufactor-dropdown").length&&"Manufactors"!==r&&(l=$(".product-filter-manufactor-dropdown").val()),""),h=0,b=0,y=(0<$("#DivSliderproduct-filter-price-range-slider").length?(w=$("#product-filter-price-range-slider").val())!=undefined&&(h=(w=w.split(";"))[0],b=w[1],h!=undefined)&&b!=undefined&&(m=h+"|"+b):0<$("#MinInputproduct-filter-price-range-slider").length&&(h=$("#MinInputproduct-filter-price-range-slider").val(),b=$("#MaxInputproduct-filter-price-range-slider").val(),m=h+"|"+b),"pricerange"===r&&(m=""),""),w=(0<$("#filter-search-category").length&&(y=$("#filter-search-category").val()),"Category"===r&&(y=""),$(".product-filter-show-all-items-selected").each(function(t,e){e=$(e).val();0<e.length&&(u=u+e+"|")}),1),h=0;"All"===r&&(v=g=p=0,m=u=y=a=l=o="",w=h=1);allFiltersAreDeselected(v,g,p,y,a,o,l,m)&&(h=1),$("#ProductFilter-Container :input").prop("disabled",!0);b="productlist.asp",b="/shop/"+(b="showsubcats"===d?"showSubCats.asp":b)+t+"&Filter_LastSelectedFilterType="+i+"&Filter_LastSelectedFilterItemId="+n+"&Filter_AdvancedVariants="+o+"&Filter_New="+p+"&Filter_Offer="+g+"&Filter_Stock="+v+"&Filter_Category="+y+"&Filter_Manufactor="+l+"&Filter_PriceRange="+m+"&Filter_Tags="+a+"&Filter_ShowAllItems="+u+"&Filter_ShowAll="+c+"&FilterActive="+w+"&AllFiltersCleared="+h;
1beforeFilteredListLoaded(),$.ajax({url:b,type:"GET",cache:!1,"async":!0,success:function(t){$("#Content_Productlist").html(t),filteredListLoaded(),buildCategoryFilter("?ContentPage="+d+"&Search="+f+"&CatIdentity="+e+"&Filter_LastSelectedFilterType="+i+"&Filter_LastSelectedFilterItemId="+n+"&Filter_AdvancedVariants="+o+"&Filter_New="+p+"&Filter_Offer="+g+"&Filter_Stock="+v+"&Filter_Category="+y+"&Filter_Manufactor="+l+"&Filter_PriceRange="+m+"&Filter_Tags="+a+"&Filter_ShowAllItems="+u+"&Filter_ShowAll="+c+"&FilterActive=1")}})}!function(N){var o=new Hashtable,a=[[".",","],[",","."],[","," "],[".","'"]],l=[["ae","au","ca","cn","eg","gb","hk","il","in","jp","sk","th","tw","us"],["at","br","de","dk","es","gr","it","nl","pt","tr","vn"],["cz","fi","fr","ru","se","pl"],["ch"]];function u(t,e,i){this.dec=t,this.group=e,this.neg=i}function _(t,e){if(0==o.size())for(var i=0;i<l.length;i++){localeGroup=l[i];for(var n=0;n<localeGroup.length;n++)o.put(localeGroup[n],i)}var s=".",r=",",e=(0==e&&(-1!=t.indexOf("_")?t=t.split("_")[1].toLowerCase():-1!=t.indexOf("-")&&(t=t.split("-")[1].toLowerCase())),o.get(t));return e&&(t=a[e])&&(s=t[0],r=t[1]),new u(s,r,"-")}N.fn.formatNumber=function(e,i,n){return this.each(function(){null==i&&(i=!0),null==n&&(n=!0),t=N(this).is(":input")?new String(N(this).val()):new String(N(this).text());var t=N.formatNumber(t,e);if(i&&(N(this).is(":input")?N(this).val(t):N(this).text(t)),n)return t})},N.formatNumber=function(t,e){for(var i=_((e=N.extend({},N.fn.formatNumber.defaults,e)).locale.toLowerCase(),e.isFullLocale),n=(i.dec,i.group,i.neg,""),s=!1,r=0;r<e.format.length;r++)if(-1=="0#-,.".indexOf(e.format.charAt(r)))n+=e.format.charAt(r);else{if(0!=r||"-"!=e.format.charAt(r))break;s=!0}for(var o="",r=e.format.length-1;0<=r&&-1=="0#-,.".indexOf(e.format.charAt(r));r--)o=e.format.charAt(r)+o;e.format=e.format.substring(n.length),e.format=e.format.substring(0,e.format.length-o.length);i=new Number(t);return N._formatNumber(i,e,o,n,s)},N._formatNumber=function(t,e,i,n,s){var r=_((e=N.extend({},N.fn.formatNumber.defaults,e)).locale.toLowerCase(),e.isFullLocale),o=r.dec,a=r.group,r=r.neg,l=!1;if(isNaN(t)){if(1!=e.nanForceZero)return null;l=!(t=0)}"%"==i&&(t*=100);var u="";if(-1<e.format.indexOf(".")){for(var c=o,h=e.format.substring(e.format.lastIndexOf(".")+1),d=(t=1==e.round?new Number(t.toFixed(h.length)):(d=(d=t.toString()).substring(0,d.lastIndexOf(".")+h.length+1),new Number(d)))%1,f=(f=new String(d.toFixed(h.length))).substring(f.lastIndexOf(".")+1),p=0;p<h.length;p++)if("#"==h.charAt(p)&&"0"!=f.charAt(p))c+=f.charAt(p);else if("#"==h.charAt(p)&&"0"==f.charAt(p)){if(!f.substring(p).match("[1-9]"))break;c+=f.charAt(p)}else"0"==h.charAt(p)&&(c+=f.charAt(p));u+=c}else t=Math.round(t);var d=Math.floor(t),g=(t<0&&(d=Math.ceil(t)),""),g=-1==e.format.indexOf(".")?e.format:e.format.substring(0,e.format.indexOf(".")),v="";if(0!=d||"#"!=g.substr(g.length-1)||l){for(var m=new String(Math.abs(d)),b=9999,y=(-1!=g.lastIndexOf(",")&&(b=g.length-g.lastIndexOf(",")-1),0),p=m.length-1;-1<p;p--)v=m.charAt(p)+v,++y==b&&0!=p&&(v=a+v,y=0);if(g.length>v.length){l=g.indexOf("0");if(-1!=l)for(var w=g.length-l,x=g.length-v.length-1;v.length<w;){var F=g.charAt(x),v=(F=","==F?a:F)+v;x--}}}return u=(v=v||-1===g.indexOf("0",g.length-1)?v:"0")+u,t<0&&s&&0<n.length?n=r+n:t<0&&(u=r+u),e.decimalSeparatorAlwaysShown||u.lastIndexOf(o)==u.length-1&&(u=u.substring(0,u.length-1)),u=n+u+i},N.fn.parseNumber=function(t,e,i){null==e&&(e=!0),null==i&&(i=!0),n=N(this).is(":input")?new String(N(this).val()):new String(N(this).text());var n=N.parseNumber(n,t);if(n&&(e&&(N(this).is(":input")?N(this).val(n.toString()):N(this).text(n.toString())),i))return n},N.parseNumber=function(t,e){for(var i=_((e=N.extend({},N.fn.parseNumber.defaults,e)).locale.toLowerCase(),e.isFullLocale),n=i.dec,s=i.group,i=i.neg;-1<t.indexOf(s);)t=t.replace(s,"");var r="",o=!1;"%"!=(t=t.replace(n,".").replace(i,"-")).charAt(t.length-1)&&1!=e.isPercentage||(o=!0);for(var a=0;a<t.length;a++)-1<"1234567890.-".indexOf(t.charAt(a))&&(r+=t.charAt(a));n=new Number(r);return o&&(n/=100,n=-1!=(i=r.indexOf("."))?(e=r.length-i-1,n.toFixed(2+e)):n.toFixed(r.length-1)),n},N.fn.parseNumber.defaults={locale:"us",decimalSeparatorAlwaysShown:!1,isPercentage:!1,isFullLocale:!1},N.fn.formatNumber.defaults={format:"#,###.00",locale:"us",decimalSeparatorAlwaysShown:!1,nanForceZero:!0,round:!0,isFullLocale:!1},Number.prototype.toFixed=function(t){return N._roundNumber(this,t)},N._roundNumber=function(t,e){var i=Math.pow(10,e||0),n=String(Math.round(t*i)/i);if(0<e)for(var s=-1==(s=n.indexOf("."))?(n+=".",0):n.length-(s+1);s<e;)n+="0",s++;return n}}(jQuery),function(){var i={};this.tmpl=function tmpl(t,e){t=/\W/.test(t)?new Function("obj","var p=[],print=function(){p.push.apply(
1p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):i[t]=i[t]||tmpl(document.getElementById(t).innerHTML);return e?t(e):t}}(),function(n){n.baseClass=function(t){return(t=n(t)).get(0).className.match(/([^ ]+)/)[1]},n.fn.addDependClass=function(e,t){var i=t||"-";return this.each(function(){var t=n.baseClass(this);t&&n(this).addClass(t+i+e)})},n.fn.removeDependClass=function(e,t){var i=t||"-";return this.each(function(){var t=n.baseClass(this);t&&n(this).removeClass(t+i+e)})},n.fn.toggleDependClass=function(e,t){var i=t||"-";return this.each(function(){var t=n.baseClass(this);t&&(n(this).is("."+t+i+e)?n(this).removeClass(t+i+e):n(this).addClass(t+i+e))})}}(jQuery),function(c){function h(t){return void 0!==t&&(t instanceof Array||!(t instanceof Object)&&"[object Array]"==Object.prototype.toString.call(t)||"number"==typeof t.length&&"undefined"!=typeof t.splice&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))}c.slider=function(t,e){var i=c(t);return i.data("jslider")||i.data("jslider",new n(t,e)),i.data("jslider")},c.fn.valueSlider=function(s,r){var o,a=arguments;function l(t){return t!==undefined}function u(t){return null!=t}return this.each(function(){var t,e=c.slider(this,s);if("string"==typeof s)switch(s){case"value":l(a[1])&&l(a[2])?(u((t=e.getPointers())[0])&&u(a[1])&&(t[0].set(a[1]),t[0].setIndexOver()),u(t[1])&&u(a[2])&&(t[1].set(a[2]),t[1].setIndexOver())):l(a[1])?u((t=e.getPointers())[0])&&u(a[1])&&(t[0].set(a[1]),t[0].setIndexOver()):o=e.getValue();break;case"prc":l(a[1])&&l(a[2])?(u((t=e.getPointers())[0])&&u(a[1])&&(t[0]._set(a[1]),t[0].setIndexOver()),u(t[1])&&u(a[2])&&(t[1]._set(a[2]),t[1].setIndexOver())):l(a[1])?u((t=e.getPointers())[0])&&u(a[1])&&(t[0]._set(a[1]),t[0].setIndexOver()):o=e.getPrcValue();break;case"calculatedValue":var i=e.getValue().split(";");o="";for(var n=0;n<i.length;n++)o+=(0<n?";":"")+e.nice(i[n]);break;case"skin":e.setSkin(a[1])}else s||r||(o=h(o)?o:[]).push(e)}),(o=h(o)&&1==o.length?o[0]:o)||this};var i={settings:{from:1,to:10,step:1,smooth:!0,limits:!0,round:0,format:{format:"#,##0.##"},value:"5;7",dimension:""},className:"jslider",selector:".jslider-",template:tmpl('<span class="<%=className%>"><table><tr><td><div class="<%=className%>-bg"><i class="l"></i><i class="f"></i><i class="r"></i><i class="v"></i></div><div class="<%=className%>-pointer"></div><div class="<%=className%>-pointer <%=className%>-pointer-to"></div><div class="<%=className%>-label"><span><%=settings.from%></span></div><div class="<%=className%>-label <%=className%>-label-to"><span><%=settings.to%></span><%=settings.dimension%></div><div class="<%=className%>-value"><span></span><%=settings.dimension%></div><div class="<%=className%>-value <%=className%>-value-to"><span></span><%=settings.dimension%></div><div class="<%=className%>-scale"><%=scale%></div></td></tr></table></span>')};function n(){return this.init.apply(this,arguments)}function s(){Draggable.apply(this,arguments)}n.prototype.init=function(t,e){this.settings=c.extend(!0,{},i.settings,e||{}),this.inputNode=c(t).hide(),this.settings.interval=this.settings.to-this.settings.from,this.settings.value=this.inputNode.attr("value"),this.settings.calculate&&c.isFunction(this.settings.calculate)&&(this.nice=this.settings.calculate),this.settings.onstatechange&&c.isFunction(this.settings.onstatechange)&&(this.onstatechange=this.settings.onstatechange),this.is={init:!1},this.o={},this.create()},n.prototype.onstatechange=function(){},n.prototype.create=function(){var t,n=this;this.domNode=c(i.template({className:i.className,settings:{from:this.nice(this.settings.from),to:this.nice(this.settings.to),dimension:this.settings.dimension},scale:this.generateScale()})),this.inputNode.after(this.domNode),this.drawScale(),this.settings.skin&&0<this.settings.skin.length&&this.setSkin(this.settings.skin),this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()},c.extend(this.o,{pointers:{},labels:{0:{o:this.domNode.find(i.selector+"value").not(i.selector+"value-to")},1:{o:this.domNode.find(i.selector+"value").filter(i.selector+"value-to")}},limits:{0:this.domNode.find(i.selector+"label").not(i.selector+"label-to"),1:this.domNode.find(i.selector+"label").filter(i.selector+"label-to")}}),c.extend(this.o.labels[0],{value:this.o.labels[0].o.find("span")}),c.extend(this.o.labels[1],{value:this.o.labels[1].o.find("span")}),n.settings.value.split(";")[1]||(this.settings.single=!0,this.domNode.addDependClass("single")),n.settings.limits||this.domNode.addDependClass("limitless"),this.domNode.find(i.selector+"pointer").each(function(t){var e,i=n.settings.value.split(";")[t];i&&(n.o.pointers[t]=new s(this,t,n),i=(i=(i=(e=n.settings.value.split(";")[t-1])&&new Number(i)<new Number(e)?e:i)<n.settings.from?n.settings.from:i)>n.settings.to?n.settings.to:i,n.o.pointers[t].set(i,!0))}),this.o.value=this.domNode.find(".v"),this.is.init=!0,c.each(this.o.pointers,function(t){n.redraw(this)}),t=this,c(window).resize(function(){t.onresize()})},n.prototype.setSkin=function(t){this.skin_&&this.domNode.removeDependClass(this.skin_,"_"),this.domNode.addDependClass(this.skin_=t,"_")},n.prototype.setPointersIndex=function(t){c.each(this.getPointers(),function(t){this.index(t)})},n.prototype.getPointers=function(){return this.o.pointers},n.prototype.generateScale=function(){if(this.settings.scale&&0<this.settings.scale.length){for(var t="",e=this.settings.scale,i=Math.round(100/(e.length-1)*10)/10,n=0;n<e.length;n++)t+='<span style="left: '+n*i+'%">'+("|"!=e[n]?"<ins>
1"+e[n]+"</ins>":"")+"</span>";return t}return""},n.prototype.drawScale=function(){this.domNode.find(i.selector+"scale span ins").each(function(){c(this).css({marginLeft:-c(this).outerWidth()/2})})},n.prototype.onresize=function(){var e=this;this.sizes={domWidth:this.domNode.width(),domOffset:this.domNode.offset()},c.each(this.o.pointers,function(t){e.redraw(this)})},n.prototype.update=function(){this.onresize(),this.drawScale()},n.prototype.limits=function(t,e){this.settings.smooth||(i=100*this.settings.step/this.settings.interval,t=Math.round(t/i)*i);var i=this.o.pointers[1-e.uid];return i&&e.uid&&t<i.value.prc&&(t=i.value.prc),100<(t=(t=i&&!e.uid&&t>i.value.prc?i.value.prc:t)<0?0:t)&&(t=100),Math.round(10*t)/10},n.prototype.redraw=function(t){if(!this.is.init)return!1;this.setValue(),this.o.pointers[0]&&this.o.pointers[1]&&this.o.value.css({left:this.o.pointers[0].value.prc+"%",width:this.o.pointers[1].value.prc-this.o.pointers[0].value.prc+"%"}),this.o.labels[t.uid].value.html(this.nice(t.value.origin)),this.redrawLabels(t)},n.prototype.redrawLabels=function(t){function e(t,e,i){return e.margin=-e.label/2,(label_left=e.border+e.margin)<0&&(e.margin-=label_left),e.border+e.label/2>n.sizes.domWidth?(e.margin=0,e.right=!0):e.right=!1,t.o.css({left:i+"%",marginLeft:e.margin,right:"auto"}),e.right&&t.o.css({left:"auto",right:0}),e}var n=this,i=this.o.labels[t.uid],s=t.value.prc,r={label:i.o.outerWidth(),right:!1,border:s*this.sizes.domWidth/100};if(!this.settings.single){var o=this.o.pointers[1-t.uid],a=this.o.labels[o.uid];switch(t.uid){case 0:r.border+r.label/2>a.o.offset().left-this.sizes.domOffset.left?(a.o.css({visibility:"hidden"}),a.value.html(this.nice(o.value.origin)),i.o.css({visibility:"visible"}),s=(o.value.prc-s)/2+s,o.value.prc!=t.value.prc&&(i.value.html(this.nice(t.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(o.value.origin)),r.label=i.o.outerWidth(),r.border=s*this.sizes.domWidth/100)):a.o.css({visibility:"visible"});break;case 1:r.border-r.label/2<a.o.offset().left-this.sizes.domOffset.left+a.o.outerWidth()?(a.o.css({visibility:"hidden"}),a.value.html(this.nice(o.value.origin)),i.o.css({visibility:"visible"}),s=(s-o.value.prc)/2+o.value.prc,o.value.prc!=t.value.prc&&(i.value.html(this.nice(o.value.origin)+"&nbsp;&ndash;&nbsp;"+this.nice(t.value.origin)),r.label=i.o.outerWidth(),r.border=s*this.sizes.domWidth/100)):a.o.css({visibility:"visible"})}}r=e(i,r,s),a&&(r={label:a.o.outerWidth(),right:!1,border:o.value.prc*this.sizes.domWidth/100},r=e(a,r,o.value.prc)),this.redrawLimits()},n.prototype.redrawLimits=function(){if(this.settings.limits){var t,e,i,n=[!0,!0];for(key in this.o.pointers)this.settings.single&&0!=key||(t=this.o.pointers[key],(e=(t=this.o.labels[t.uid]).o.offset().left-this.sizes.domOffset.left)<(i=this.o.limits[0]).outerWidth()&&(n[0]=!1),i=this.o.limits[1],e+t.o.outerWidth()>this.sizes.domWidth-i.outerWidth()&&(n[1]=!1));for(var s=0;s<n.length;s++)n[s]?this.o.limits[s].fadeIn("fast"):this.o.limits[s].fadeOut("fast")}},n.prototype.setValue=function(){var t=this.getValue();this.inputNode.attr("value",t),this.onstatechange.call(this,t)},n.prototype.getValue=function(){var e,i;return!!this.is.init&&(i="",c.each((e=this).o.pointers,function(t){this.value.prc==undefined||isNaN(this.value.prc)||(i+=(0<t?";":"")+e.prcToValue(this.value.prc))}),i)},n.prototype.getPrcValue=function(){var e;return!!this.is.init&&(e="",c.each(this.o.pointers,function(t){this.value.prc==undefined||isNaN(this.value.prc)||(e+=(0<t?";":"")+this.value.prc)}),e)},n.prototype.prcToValue=function(t){if(this.settings.heterogeneity&&0<this.settings.heterogeneity.length)for(var e,i=this.settings.heterogeneity,n=0,s=this.settings.from,r=0;r<=i.length;r++)(e=i[r]?i[r].split("/"):[100,this.settings.to])[0]=new Number(e[0]),e[1]=new Number(e[1]),n<=t&&t<=e[0]&&(o=s+(t-n)*(e[1]-s)/(e[0]-n)),n=e[0],s=e[1];else var o=this.settings.from+t*this.settings.interval/100;return this.round(o)},n.prototype.valueToPrc=function(t,e){if(this.settings.heterogeneity&&0<this.settings.heterogeneity.length)for(var i,n=this.settings.heterogeneity,s=0,r=this.settings.from,o=0;o<=n.length;o++)(i=n[o]?n[o].split("/"):[100,this.settings.to])[0]=new Number(i[0]),i[1]=new Number(i[1]),r<=t&&t<=i[1]&&(a=e.limits(s+(t-r)*(i[0]-s)/(i[1]-r))),s=i[0],r=i[1];else var a=e.limits(100*(t-this.settings.from)/this.settings.interval);return a},n.prototype.round=function(t){return t=Math.round(t/this.settings.step)*this.settings.step,t=this.settings.round?Math.round(t*Math.pow(10,this.settings.round))/Math.pow(10,this.settings.round):Math.round(t)},n.prototype.nice=function(t){return t=t.toString().replace(/,/gi,".").replace(/ /gi,""),c.formatNumber?c.formatNumber(new Number(t),this.settings.format||{}).replace(/-/gi,"&minus;"):new Number(t)}
1,(s.prototype=new Draggable).oninit=function(t,e,i){this.uid=e,this.parent=i,this.value={},this.settings=this.parent.settings},s.prototype.onmousedown=function(t){this._parent={offset:this.parent.domNode.offset(),width:this.parent.domNode.width()},this.ptr.addDependClass("hover"),this.setIndexOver()},s.prototype.onmousemove=function(t,e){t=this._getPageCoords(t);this._set(this.calc(t.x))},s.prototype.onmouseup=function(t){this.parent.settings.callback&&c.isFunction(this.parent.settings.callback)&&this.parent.settings.callback.call(this.parent,this.parent.getValue()),this.ptr.removeDependClass("hover")},s.prototype.setIndexOver=function(){this.parent.setPointersIndex(1),this.index(2)},s.prototype.index=function(t){this.ptr.css({zIndex:t})},s.prototype.limits=function(t){return this.parent.limits(t,this)},s.prototype.calc=function(t){return this.limits(100*(t-this._parent.offset.left)/this._parent.width)},s.prototype.set=function(t,e){this.value.origin=this.parent.round(t),this._set(this.parent.valueToPrc(t,this),e)},s.prototype._set=function(t,e){e||(this.value.origin=this.parent.prcToValue(t)),this.value.prc=t,this.ptr.css({left:t+"%"}),this.parent.redraw(this)}}(jQuery);

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.