PageSourceSearch

https://www.backsplash.com/wp-content/cache/flying-press/c25afecedd85.tm-api.js

js backsplash.com collected 2026-09-25 23:40:08 UTC 13,513 bytes, 69 lines download raw bytes

1(function(){'use strict';if(!String.prototype.isNumeric){Object.defineProperty(String.prototype,'isNumeric',{value:function(){return!isNaN(parseFloat(this))&&isFinite(this)}})}}());window.jQuery.jMaskGlobals={maskElements:'.tc-extra-product-options input'};(function($){'use strict';$.epoAPI={};$.epoAPI.error=!1;$.epoAPI.math={};$.epoAPI.dom={};$.epoAPI.util={};$.epoAPI.locale={};$.epoAPI.template={};$.epoAPI.math.toFloat=function(s,d){var n;if(!(typeof s==='string'||typeof s==='number')||isNaN(s)){return 0}
2n=parseFloat(s);if(isNaN(n)){if(d!==undefined){return d}
3return s}
4return n};$.epoAPI.math.toInt=function(s,d){var n;if(!(typeof s==='string'||typeof s==='number')||isNaN(s)||s===''){return 0}
5n=parseInt(s,10);if(isNaN(n)){if(d!==undefined){return d}
6return s}
7return n};$.epoAPI.math.round=function(value,precision,mode){var m;var f;var isHalf;var n;var sgn;precision=parseInt(precision,10);if(!Number.isFinite(precision)){precision=0}
8m=Math.pow(10,precision);value=value*m;if(typeof value==='number'){if(value){if(value<0){sgn=-1}else{sgn=1}}else{sgn=0}}else{sgn=0}
9isHalf=value%1===0.5*sgn;f=Math.floor(value);if(isHalf){switch(mode){case 'PHP_ROUND_HALF_DOWN':if(sgn<0){n=1}else{n=0}
10value=f+n;break;case 'PHP_ROUND_HALF_EVEN':value=f+((f%2)*sgn);break;case 'PHP_ROUND_HALF_ODD':n=f%2;if(n){n=0}else{n=1}
11value=f+n;break;default:if(sgn>0){n=1}else{n=0}
12value=f+n}}
13if(!isHalf){value=Math.round(value)}
14return value/m};$.epoAPI.math.uniqueid=function(prefix,moreEntropy){var retId;var _formatSeed=function(seed,reqWidth){seed=parseInt(seed,10).toString(16);if(reqWidth<seed.length){return seed.slice(seed.length-reqWidth)}
15if(reqWidth>seed.length){return new Array(1+(reqWidth-seed.length)).join('0')+seed}
16return seed};var radom;if(prefix===undefined){prefix=''}
17$.epoAPI.php=$.epoAPI.php||{};if(!$.epoAPI.php.uniqidSeed){$.epoAPI.php.uniqidSeed=Math.floor(Math.random()*0x75bcd15)}
18$.epoAPI.php.uniqidSeed+=1;retId=prefix;retId+=_formatSeed(parseInt(Date.now()/1000,10),8);retId+=_formatSeed($.epoAPI.php.uniqidSeed,5);if(moreEntropy){radom=Math.random()*10;retId+=radom.toFixed(8).toString()}
19return retId};$.epoAPI.dom.id=function(id){if(typeof id==='undefined'){return id}
20if(!(typeof id==='string'||typeof id==='number')||(typeof id==='number'&&isNaN(id))){return id.toString()}
21return id.toString().replace(/(%|:|\.|\[|\]|,|=)/g,'\\$1')};$.epoAPI.dom.scroll=function(){var scrollLeft;var scrollTop;if(window.pageYOffset){scrollTop=window.pageYOffset;scrollLeft=window.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){scrollTop=document.documentElement.scrollTop;scrollLeft=document.documentElement.scrollLeft}else if(document.body){scrollTop=document.body.scrollTop;scrollLeft=document.body.scrollLeft}
22return{left:scrollLeft,top:scrollTop}};$.epoAPI.dom.size=function(){var totalDocumentHeight;var totalDocumentWidth;var fullHeight;var fullWidth;var visibleWidth;var visibleHeight;if(window.innerHeight&&window.scrollMaxY){totalDocumentWidth=window.innerWidth+window.scrollMaxX;totalDocumentHeight=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){totalDocumentWidth=document.body.scrollWidth;totalDocumentHeight=document.body.scrollHeight}else{totalDocumentWidth=document.body.offsetWidth;totalDocumentHeight=document.body.offsetHeight}
23if(window.innerHeight){if(document.documentElement.clientWidth){visibleWidth=document.documentElement.clientWidth}else{visibleWidth=window.innerWidth}
24visibleHeight=window.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){visibleWidth=document.documentElement.clientWidth;visibleHeight=document.documentElement.clientHeight}else if(document.body){visibleWidth=document.body.clientWidth;visibleHeight=document.body.clientHeight}
25if(totalDocumentHeight<visibleHeight){fullHeight=visibleHeight}else{fullHeight=totalDocumentHeight}
26if(totalDocumentWidth<visibleWidth){fullWidth=visibleWidth}else{fullWidth=totalDocumentWidth}
27return{fullWidth:fullWidth,fullHeight:fullHeight,visibleWidth:visibleWidth,visibleHeight:visibleHeight,totalWidth:totalDocumentWidth,totalHeight:totalDocumentHeight}};$.epoAPI.util.escapeSelector=(function(){var selectorEscape=/([!"$%&'()*+,/:;<=>?@[\]^`{|}~])/g;return function(selector){return selector.replace(selectorEscape,'\\$1')}}());$.epoAPI.util.parseParams=function(string,decode){if(typeof string!=='string'||string.split===undefined){return[]}
28return string.split('&').map(function(value){var obj={};if(decode===!0){value=decodeURIComponent(value.replace(/\+/g,'%20'))}
29value=value.split('=').map(function(v){var a=v.split('?');
29if(a.length>1){return a[1]}
30return v});if(value.length>1){obj[value[0]]=value[1]}
31return obj}).filter(function(n){return n!==null}).reduce(function(current,next){return Object.assign({},current,next)},{})};$.epoAPI.util.trim=function(str){if(typeof str==='string'){return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'')}
32return str};$.epoAPI.util.parseJSON=function(s){var parsedjson;var JSON=window.JSON;try{parsedjson=JSON.parse(s+'');if(parsedjson&&typeof parsedjson==='object'&&parsedjson!==null){return parsedjson}}catch(err){$.epoAPI.error=err;return!1}
33return!1};$.epoAPI.util.decodeHTML=function(html){var txt=document.createElement('textarea');txt.innerHTML=html;return txt.value};$.epoAPI.util.getStorage=function(type){var storage;var x;try{storage=window[type];x='__storage_test__';storage.setItem(x,x);storage.removeItem(x);return storage}catch(e){return!1}};$.epoAPI.util.basename=function(path){return path.replace(/.*\//,'')};$.epoAPI.util.getType=function(obj){var type=Object.prototype.toString.call(obj).match(/\[object (\w+)]/)[1].toLowerCase();if(type==='object'&&Object.getPrototypeOf(obj)===Object.prototype){return'object'}
34if(type==='object'){type='other'}
35return type};$.epoAPI.util.deepCopyArray=function(inObject){var outObject;var value;if(window.structuredClone!==undefined){return window.structuredClone(inObject)}
36if(typeof inObject!=='object'||inObject===null){return inObject}
37outObject=Array.isArray(inObject)?[]:{};Object.keys(inObject).forEach(function(key){if(inObject){value=inObject[ke
37y];outObject[key]=typeof value==='object'&&value!==null?$.epoAPI.util.deepCopyArray(value):value}});return outObject};$.epoAPI.util.isEmpty=function(obj,customEmptyValues){var emptyValues=customEmptyValues||[undefined,null,!1,0,'','0'];var isEmptyValue=emptyValues.filter(function(item){return obj===item}).length===1;var isEmptyObject=!1;if(obj&&typeof obj==='object'){isEmptyObject=Object.keys(obj).filter(function(key){return Object.prototype.hasOwnProperty.call(obj,key)}).length===0;return isEmptyObject}
38return isEmptyValue||isEmptyObject};$.epoAPI.util.isEmptyValue=function(obj){return $.epoAPI.util.isEmpty(obj,[undefined,null,!1])};$.epoAPI.util.clenValue=function(value,retIfEmpty){if($.epoAPI.util.isEmptyValue(value)){return retIfEmpty||''}
39return value};$.epoAPI.locale.getSystemDecimalSeparator=function(){var n=1.1;n=/^1(.+)1$/.exec(n.toLocaleString());if(n){n=n[1]}else{n=','}
40return n};$.epoAPI.template.html=function(template,obj){var $template_html=template(obj);$template_html=$template_html.replace('/*<![CDATA[*/','');$template_html=$template_html.replace('/*]]>*/','');return $template_html};$.epoAPI.filters={};$.epoAPI.addFilter=function($tag,$function_to_add,$priority,$accepted_args){var $idx;$priority=parseInt($priority,10);if(isNaN($priority)){$priority=10}
41$accepted_args=parseInt($accepted_args,10);if(isNaN($accepted_args)){$accepted_args=1}
42$idx=$function_to_add+'_'+$priority;if(!$.epoAPI.filters[$tag]){$.epoAPI.filters[$tag]={}}
43if(!$.epoAPI.filters[$tag][$priority]){$.epoAPI.filters[$tag][$priority]={}}
44$.epoAPI.filters[$tag][$priority][$idx]={func:$function_to_add,accepted_args:$accepted_args};return!0};$.epoAPI.removeFilter=function($tag,$function_to_remove,$priority){var $idx;$priority=parseInt($priority,10);if(isNaN($priority)){$priority=10}
45$idx=$function_to_remove+'_'+$priority;if($.epoAPI.filters[$tag]&&$.epoAPI.filters[$tag][$priority]&&$.epoAPI.filters[$tag][$priority][$idx]){delete $.epoAPI.filters[$tag][$priority][$idx];return!0}
46return!1};$.epoAPI.applyFilter=function($tag,$value){var $args=$.makeArray(arguments);var priorities;$args.splice(0,1);if(!$.epoAPI.filters[$tag]){return $value}
47priorities=$.epoAPI.filters[$tag];$.each(priorities,function(i,el){$.each(el,function(i2,el2){var func=el2.func;if(func instanceof Function){$value=func.apply(null,$args)}else if(window[func]&&window[func]instanceof Function){$value=window[func].apply(null,$args)}})});return $value};$.tc_add_filter=$.epoAPI.addFilter;$.tc_remove_filter=$.epoAPI.removeFilter;$.tc_apply_filters=$.epoAPI.applyFilter}(window.jQuery));(function($){'use strict';function checkPrecision(val,base){val=Math.round(Math.abs(val));return isNaN(val)?base:val}
48function unformat(value,decimal){var regex;var unformatted;if(Array.isArray(value)){return value.map(value,function(val){return unformat(val,decimal)})}
49value=value||0;if(typeof value==='number'){return value}
50decimal=decimal||'.';regex=new RegExp('[^0-9-'+decimal+']',['g']);unformatted=parseFloat((''+value).replace(regex,'').replace(decimal,'.'));return!isNaN(unformatted)?unformatted:0}
51function toFixed(value,precision){var exponentialForm;var rounded;var finalResult;if(!Number.isFinite(value)){return'-'}
52precision=checkPrecision(precision,2);exponentialForm=Number(unformat(value)*Math.pow(10,precision));rounded=Math.round(exponentialForm);finalResult=Number(rounded/Math.pow(10,precision)).toFixed(precision);return finalResult}
53function format(number,opts){var formats;var useFormat;var negative;var base;var mod;if(Array.isArray(number)){return number.map(function(val){return format(val,opts)})}
54number=unformat(number);if(!opts){return number}
55opts.precision=checkPrecision(opts.precision);if(opts.format&&opts.symbol){formats={pos:opts.format,neg:opts.format.replace('-','').replace('%v','-%v'),zero:opts.format};useFormat=number>0?formats.pos:number<0?formats.neg:formats.zero;opts.opts={precision:opts.precision,thousand:opts.thousand,decimal:opts.decimal};number=useFormat.replace('%s',opts.symbol).replace('%v',format(Math.abs(number),opts.opts))}else{if(!Number.isFinite(number)){return'-'}
56negative=number<0?'-':'';base=parseInt(toFixed(Math.abs(number||0),opts.precision),10)+'';mod=base.length>3?base.length%3:0;number=negative+(mod?base.substring(0,mod)+opts.thousand:'')+base.substring(mod).replace(/(\d{3})(?=\d)/g,'$1'+opts.thousand)+(opts.precision?opts.decimal+toFixed(Math.abs(number),opts.precision).split('.')[1]:'')}
57return number}
58$.epoAPI.math.unformat=unformat;$.epoAPI.math.format=format;$.epoAPI.math.toFixed=toFixed}(window.jQuery));(function($){'use strict';var expo;var rCRLF=/\r?\n/g;var rcheckableType=/^(?:checkbox|radio)$/i;var rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i;var rsubmittable=/^(?:input|select|textarea|keygen)/i;
58if(!$.easing.easeInExpo){expo=function(p){return Math.pow(p,6)};$.easing.easeInExpo=expo;$.easing.easeOutExpo=function(p){return 1-expo(1-p)};$.easing.easeInOutExpo=function(p){return p<0.5?expo(p*2)/2:1-(expo((p*-2)+2)/2)}}
59$.fn.extend({tmcheckboxes:function(){var tm_settings_wrap_checkbox=this.find(":checkbox:not('.tm-default-checkbox')").not('.wp-tab-panel :checkbox, .tm-weekdays-picker-wrap :checkbox, .tm-months-picker-wrap :checkbox');tm_settings_wrap_checkbox.wrap('<label class="tm-epo-switch-wrapper-label"></label>');tm_settings_wrap_checkbox.wrap('<span class="tm-epo-switch-wrapper tc"></span>');tm_settings_wrap_checkbox.after('<span class="tc-label tm-epo-switch tc"></span>');return this},tcSerializeArray:function(){return this.find(':input').filter(function(){var type=this.type;return this.name&&!$(this).is(':disabled')&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type))}).map(function(i,elem){var val=$(this).val();if(val===null){return null}
60if(Array.isArray(val)){return $.map(val,function(thisval){return{name:elem.name,value:thisval.replace(rCRLF,'\r\n')}})}
61return{name:elem.name,value:val.replace(rCRLF,'\r\n')}}).get()},tcSerializeObject:function(){var o={};var a=this.tcSerializeArray();$.each(a,function(){var name=this.name;var value=this.value||'';if(name.endsWith('[]')){if(!o[name]){o[name]=[]}
62o[name].push(value)}else{o[name]=value}});return o},tcScrollTo:function(obj,duration,offset){var element=this;obj=$(obj);if(obj.length===0){return this}
63if(!duration){duration=0}
64if(!offset){offset=0}
65if(element[0].self===window){element=$('html, body')}else{if(element.find('.woodmart-scroll-content').length){element=element.find('.woodmart-scroll-content')}
66if(!element.offset()){element=$('html, body')}else{offset=offset+(element.scrollTop()-element.offset().top)}}
67return element.animate({scrollTop:$(obj).offset().top+offset},duration)},tcClone:function(){var i;var l;var j;var m;var result=$.fn.clone.apply(this,arguments);var textareas=this.find('textarea').add(this.filter('textarea'));var resultTextareas=result.find('textarea').add(result.filter('textarea'));var selects=this.find('select').add(this.filter('select'));var resultSelects=result.find('select').add(result.filter('select'));for(i=0,l=textareas.length;i<l;i+=1){$(resultTextareas[i]).val($(textareas[i]).val())}
68for(i=0,l=selects.length;i<l;i+=1){for(j=0,m=selects[i].options.length;j<m;j+=1){if(selects[i].options[j].selected===!0){resultSelects[i].options[j].selected=!0}}}
69return result}})}(window.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.