// source --> https://shopfilingsuperstore.com/wp-content/plugins/conner-product-tables/js/lib.js?ver=5.5.8 function SelectorCheck(selector){} function Blur(selector,action){SelectorCheck(selector);$(document).on('blur',selector,function(e){if(typeof action=='function'){action(this,e);}});} function Change(selector,action,preventDefault){var p=(typeof preventDefault=='undefined'?true:preventDefault);SelectorCheck(selector);$(document).on('change',selector,function(e){if(p){e.preventDefault();} if(typeof action=='function'){action(this,e);}});} function Click(selector,action,preventDefault){var p=(typeof preventDefault=='undefined'?true:preventDefault);SelectorCheck(selector);$(document).on('click',selector,function(e){if(p){e.preventDefault();} if(typeof action=='function'){action(this,e);}});} function Focus(selector,action){SelectorCheck(selector);$(document).on('focus',selector,function(e){if(typeof action=='function'){action(this,e);}});} function Keydown(selector,action){SelectorCheck(selector);$(document).on('keydown',selector,function(e){if(typeof action=='function'){action(this,e);}});} function Keyup(selector,action){SelectorCheck(selector);$(document).on('keyup',selector,function(e){if(typeof action=='function'){action(this,e);}});} function Load(action){$(window).load(function(){if(typeof action=='function'){action(this);}});} function Ready(action){$(document).ready(function(){if(typeof action=='function'){action();}});} function Submit(selector,action){SelectorCheck(selector);$(document).on('submit',selector,function(e){e.preventDefault();if(typeof action=='function'){action(this,e);}});};function Request(i){this.control=false;this.data=false;this.file=false;if(typeof i.control=='undefined'){this.control=i;}else{this.control=i.control;} if(typeof i.data!='undefined'){if(typeof i.control=='undefined'){i.control={} this.control={}}else{this.data=i.data;}} if(typeof i.file=='undefined'){this.file={};}else{var f=new FormData();$.each(i.file,function(key,value){f.append('$_FILE['+key+']',value);});this.file=i.file;} this.output=function(){var output={} if(this.control){output.$_CONTROL=this.control;} if(this.data){output.$_DATA=this.data;} if(this.file){output.$_FILE=this.file;} return $.param(output);}};function API(i){this.p={compress:true,db:false,data:{},error:function(response){console.log(response);},fileUpload:false,license:false,post:false,success:function(response){console.log(response);},suppressErrors:false,url:location.protocol+'//'+location.host+'/api/',csrft:library.getCookie('quantumTracking')} var that=this;this.options=$.extend(that.p,i);if(typeof this.options.data!=='object'){this.options.data=deparam(this.options.data);} if(this.options.license){this.options.data.licenseKey=this.options.license;} if(this.options.compress){this.options.data.compressOutput='true';} if(this.p.url==location.protocol+'//'+location.host+'/api/'){if(typeof parent.config!='undefined'){this.options.url=parent.config.apiUrl;} if(typeof config!='undefined'){this.options.url=config.apiUrl;}} if(this.options.csrft){this.options.data.csrft=this.options.csrft;if(typeof this.options.data.control!='undefined'){this.options.data.control.csrft=this.options.csrft;}} var theRequest='';if(this.options.db){this.options.url=location.protocol+'//'+location.host+'/db/';var request=new Request(this.options.data);this.options.data=request.output();if(typeof parent.config!='undefined'){this.options.url=parent.config.dbUrl;} if(typeof config!='undefined'){this.options.url=config.dbUrl;} theRequest=this.options.url+'?'+this.options.data;} var that=this;var data='';var callback=this.options.success;var error=this.options.error;if(!this.options.fileUpload&&!this.options.db){var data=$.param(that.options.data);theRequest=this.options.url+'?'+data;} if(data.length>7000||theRequest.length>7000){this.options.post=true;} if(this.options.fileUpload){$.ajax({url:that.options.url,data:that.options.data,cache:false,contentType:false,processData:false,type:'POST',success:function(response){if(library.processResponse(response,that.options.suppressErrors)){callback(response);}else{error(response);}}});}else if(this.options.post){$.post(this.options.url,this.options.data,function(response){if(library.processResponse(response,that.options.suppressErrors)){callback(response);}else{error(response);}});}else{$.getJSON(theRequest,function(response){if(library.processResponse(response,that.options.suppressErrors)){callback(response);}else{error(response);}});}};function Serial(i,callback){var a=new API({db:true,data:{action:'serial',requests:i},post:true,success:function(response){if(typeof callback!='undefined'){callback(response);}}});};;(function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:noop,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=replace(block.item,'gm') (/bull/g,block.bullet) ();block.list=replace(block.list) (/bull/g,block.bullet) ('hr','\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))') ('def','\\n+(?='+block.def.source+')') ();block.blockquote=replace(block.blockquote) ('def',block.def) ();block._tag='(?!(?:' +'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code' +'|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo' +'|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b';block.html=replace(block.html) ('comment',//) ('closed',/<(tag)[\s\S]+?<\/\1>/) ('closing',/])*?>/) (/tag/g,block._tag) ();block.paragraph=replace(block.paragraph) ('hr',block.hr) ('heading',block.heading) ('lheading',block.lheading) ('blockquote',block.blockquote) ('tag','<'+block._tag) ('def',block.def) ();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=replace(block.paragraph) ('(?!','(?!' +block.gfm.fences.source.replace('\\1','\\2')+'|' +block.list.source.replace('\\1','\\3')+'|') ();block.tables=merge({},block.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function Lexer(options){this.tokens=[];this.tokens.links={};this.options=options||marked.defaults;this.rules=block.normal;if(this.options.gfm){if(this.options.tables){this.rules=block.tables;}else{this.rules=block.gfm;}}} Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src);};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,'\n').replace(/\t/g,' ').replace(/\u00a0/g,' ').replace(/\u2424/g,'\n');return this.token(src,true);};Lexer.prototype.token=function(src,top,bq){var src=src.replace(/^ +$/gm,''),next,loose,cap,bull,b,item,space,i,l;while(src){if(cap=this.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this.tokens.push({type:'space'});}} if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,'');this.tokens.push({type:'code',text:!this.options.pedantic?cap.replace(/\n+$/,''):cap});continue;} if(cap=this.rules.fences.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:'code',lang:cap[2],text:cap[3]||''});continue;} if(cap=this.rules.heading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:'heading',depth:cap[1].length,text:cap[2]});continue;} if(top&&(cap=this.rules.nptable.exec(src))){src=src.substring(cap[0].length);item={type:'table',header:cap[1].replace(/^ *| *\| *$/g,'').split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,'').split(/ *\| */),cells:cap[3].replace(/\n$/,'').split('\n')};for(i=0;i ?/gm,'');this.token(cap,top,true);this.tokens.push({type:'blockquote_end'});continue;} if(cap=this.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];this.tokens.push({type:'list_start',ordered:bull.length>1});cap=cap[0].match(this.rules.item);next=false;l=cap.length;i=0;for(;i1&&b.length>1)){src=cap.slice(i+1).join('\n')+src;i=l-1;}} loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==='\n';if(!loose)loose=next;} this.tokens.push({type:loose?'loose_item_start':'list_item_start'});this.token(item,false,bq);this.tokens.push({type:'list_item_end'});} this.tokens.push({type:'list_end'});continue;} if(cap=this.rules.html.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:this.options.sanitize?'paragraph':'html',pre:!this.options.sanitizer&&(cap[1]==='pre'||cap[1]==='script'||cap[1]==='style'),text:cap[0]});continue;} if((!bq&&top)&&(cap=this.rules.def.exec(src))){src=src.substring(cap[0].length);this.tokens.links[cap[1].toLowerCase()]={href:cap[2],title:cap[3]};continue;} if(top&&(cap=this.rules.table.exec(src))){src=src.substring(cap[0].length);item={type:'table',header:cap[1].replace(/^ *| *\| *$/g,'').split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,'').split(/ *\| */),cells:cap[3].replace(/(?: *\| *)?\n$/,'').split('\n')};for(i=0;i])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:noop,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:noop,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/;inline.link=replace(inline.link) ('inside',inline._inside) ('href',inline._href) ();inline.reflink=replace(inline.reflink) ('inside',inline._inside) ();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});inline.gfm=merge({},inline.normal,{escape:replace(inline.escape)('])','~|])')(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:replace(inline.text) (']|','~]|') ('|','|https?://|') ()});inline.breaks=merge({},inline.gfm,{br:replace(inline.br)('{2,}','*')(),text:replace(inline.gfm.text)('{2,}','*')()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer;this.renderer.options=this.options;if(!this.links){throw new Error('Tokens array requires a `links` property.');} if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks;}else{this.rules=inline.gfm;}}else if(this.options.pedantic){this.rules=inline.pedantic;}} InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src);};InlineLexer.prototype.output=function(src){var out='',link,text,href,cap;while(src){if(cap=this.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue;} if(cap=this.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==='@'){text=cap[1].charAt(6)===':'?this.mangle(cap[1].substring(7)):this.mangle(cap[1]);href=this.mangle('mailto:')+text;}else{text=escape(cap[1]);href=text;} out+=this.renderer.link(href,null,text);continue;} if(!this.inLink&&(cap=this.rules.url.exec(src))){src=src.substring(cap[0].length);text=escape(cap[1]);href=text;out+=this.renderer.link(href,null,text);continue;} if(cap=this.rules.tag.exec(src)){if(!this.inLink&&/^/i.test(cap[0])){this.inLink=false;} src=src.substring(cap[0].length);out+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(cap[0]):escape(cap[0]):cap[0] continue;} if(cap=this.rules.link.exec(src)){src=src.substring(cap[0].length);this.inLink=true;out+=this.outputLink(cap,{href:cap[2],title:cap[3]});this.inLink=false;continue;} if((cap=this.rules.reflink.exec(src))||(cap=this.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g,' ');link=this.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue;} this.inLink=true;out+=this.outputLink(cap,link);this.inLink=false;continue;} if(cap=this.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.strong(this.output(cap[2]||cap[1]));continue;} if(cap=this.rules.em.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.em(this.output(cap[2]||cap[1]));continue;} if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.codespan(escape(cap[2],true));continue;} if(cap=this.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.br();continue;} if(cap=this.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.del(this.output(cap[1]));continue;} if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.text(escape(this.smartypants(cap[0])));continue;} if(src){throw new Error('Infinite loop on byte: '+src.charCodeAt(0));}} return out;};InlineLexer.prototype.outputLink=function(cap,link){var href=escape(link.href),title=link.title?escape(link.title):null;return cap[0].charAt(0)!=='!'?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]));};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants)return text;return text.replace(/---/g,'\u2014').replace(/--/g,'\u2013').replace(/(^|[-\u2014/(\[{"\s])'/g,'$1\u2018').replace(/'/g,'\u2019').replace(/(^|[-\u2014/(\[{\u2018\s])"/g,'$1\u201c').replace(/"/g,'\u201d').replace(/\.{3}/g,'\u2026');};InlineLexer.prototype.mangle=function(text){if(!this.options.mangle)return text;var out='',l=text.length,i=0,ch;for(;i0.5){ch='x'+ch.toString(16);} out+='&#'+ch+';';} return out;};function Renderer(options){this.options=options||{};} Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out;}} if(!lang){return'
'
+(escaped?code:escape(code,true))
+'\n
';} return'
'
+(escaped?code:escape(code,true))
+'\n
\n';};Renderer.prototype.blockquote=function(quote){return'
\n'+quote+'
\n';};Renderer.prototype.html=function(html){return html;};Renderer.prototype.heading=function(text,level,raw){return'' +text +'\n';};Renderer.prototype.hr=function(){return this.options.xhtml?'
\n':'
\n';};Renderer.prototype.list=function(body,ordered){var type=ordered?'ol':'ul';return'<'+type+'>\n'+body+'\n';};Renderer.prototype.listitem=function(text){return'
  • '+text+'
  • \n';};Renderer.prototype.paragraph=function(text){return'

    '+text+'

    \n';};Renderer.prototype.table=function(header,body){return'\n' +'\n' +header +'\n' +'\n' +body +'\n' +'
    \n';};Renderer.prototype.tablerow=function(content){return'\n'+content+'\n';};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?'th':'td';var tag=flags.align?'<'+type+' style="text-align:'+flags.align+'">':'<'+type+'>';return tag+content+'\n';};Renderer.prototype.strong=function(text){return''+text+'';};Renderer.prototype.em=function(text){return''+text+'';};Renderer.prototype.codespan=function(text){return''+text+'';};Renderer.prototype.br=function(){return this.options.xhtml?'
    ':'
    ';};Renderer.prototype.del=function(text){return''+text+'';};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,'').toLowerCase();}catch(e){return'';} if(prot.indexOf('javascript:')===0||prot.indexOf('vbscript:')===0){return'';}} var out='
    ';return out;};Renderer.prototype.image=function(href,title,text){var out=''+text+'':'>';return out;};Renderer.prototype.text=function(text){return text;};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer;this.renderer=this.options.renderer;this.renderer.options=this.options;} Parser.parse=function(src,options,renderer){var parser=new Parser(options,renderer);return parser.parse(src);};Parser.prototype.parse=function(src){this.inline=new InlineLexer(src.links,this.options,this.renderer);this.tokens=src.reverse();var out='';while(this.next()){out+=this.tok();} return out;};Parser.prototype.next=function(){return this.token=this.tokens.pop();};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0;};Parser.prototype.parseText=function(){var body=this.token.text;while(this.peek().type==='text'){body+='\n'+this.next().text;} return this.inline.output(body);};Parser.prototype.tok=function(){switch(this.token.type){case'space':{return'';} case'hr':{return this.renderer.hr();} case'heading':{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);} case'code':{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);} case'table':{var header='',body='',i,row,cell,flags,j;cell='';for(i=0;i/g,'>').replace(/"/g,'"').replace(/'/g,''');} function unescape(html){return html.replace(/&([#\w]+);/g,function(_,n){n=n.toLowerCase();if(n==='colon')return':';if(n.charAt(0)==='#'){return n.charAt(1)==='x'?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1));} return'';});} function replace(regex,opt){regex=regex.source;opt=opt||'';return function self(name,val){if(!name)return new RegExp(regex,opt);val=val.source||val;val=val.replace(/(^|[^\[])\^/g,'$1');regex=regex.replace(name,val);return self;};} function noop(){} noop.exec=noop;function merge(obj){var i=1,target,key;for(;iAn error occured:

    '
    +escape(e.message+'',true)
    +'
    ';} throw e;}} marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked;};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:'lang-',smartypants:false,headerPrefix:'',renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=='undefined'&&typeof exports==='object'){module.exports=marked;}else if(typeof define==='function'&&define.amd){define(function(){return marked;});}else{this.marked=marked;}}).call(function(){return this||(typeof window!=='undefined'?window:global);}());;(function(jQuery){jQuery.fn.serializeObject=function(options){options=jQuery.extend({},options);var self=this,json={},push_counters={},patterns={"validate":/^[a-zA-Z][a-zA-Z0-9_]*(?:\[(?:\d*|[a-zA-Z0-9_]+)\])*$/,"key":/[a-zA-Z0-9_]+|(?=\[\])/g,"push":/^$/,"fixed":/^\d+$/,"named":/^[a-zA-Z0-9_]+$/};this.build=function(base,key,value){base[key]=value;return base;};this.push_counter=function(key){if(push_counters[key]===undefined){push_counters[key]=0;} return push_counters[key]++;};jQuery.each(jQuery(this).serializeArray(),function(){if(!patterns.validate.test(this.name)){return;} var k,keys=this.name.match(patterns.key),merge=this.value,reverse_key=this.name;while((k=keys.pop())!==undefined){reverse_key=reverse_key.replace(new RegExp("\\["+k+"\\]$"),'');if(k.match(patterns.push)){merge=self.build([],self.push_counter(reverse_key),merge);} else if(k.match(patterns.fixed)){merge=self.build([],k,merge);} else if(k.match(patterns.named)){merge=self.build({},k,merge);}} json=jQuery.extend(true,json,merge);});return json;}})(jQuery);;if(typeof Object.keys!='function'){Object.keys=function(obj){if(typeof obj!='object'){obj=library.toObject(obj);} var ret=[];for(var x in obj){if(obj.hasOwnProperty(x)){ret[ret.length]=x;}} return ret;}} var library={camelCaseToTitleCase:function(in_camelCaseString){var result=in_camelCaseString.replace(/([a-z])([A-Z][a-z])/g,"$1 $2").replace(/([A-Z][a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([A-Z]+[a-z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z][a-z])/g,"$1 $2").replace(/([a-z]+)([A-Z0-9]+)/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z][a-z]*)/g,"$1 $2").replace(/([0-9])([A-Z][a-z]+)/g,"$1 $2").replace(/([A-Z]+)([0-9]+)/g,"$1 $2").replace(/([0-9]+)([A-Z]+)/g,"$1 $2").trim();return result.charAt(0).toUpperCase()+result.slice(1);},chunk:function(obj,size){var a=[] var b=[] $.each(obj,function(key,value){a.push(value);});for(var i=0;i'+$.trim(key)+''+$.trim(value)+"\n";});return(output?'
    '+$.trim(output)+'
    ':'');},extractTextWithWhitespace:function(elems){var lineBreakNodeName="BR";if($.browser.webkit){lineBreakNodeName="DIV";}else if($.browser.msie){lineBreakNodeName="P";}else if($.browser.mozilla){lineBreakNodeName="BR";}else if($.browser.opera){lineBreakNodeName="P";} var extractedText=extractTextWithWhitespaceWorker(elems,lineBreakNodeName);return extractedText;},extractTextWithWhitespaceWorker:function(elems,lineBreakNodeName){var ret="";var elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue;} if(elem.nodeName===lineBreakNodeName){ret+="\n";} if(elem.nodeType!==8){ret+=library.extractTextWithWhitespace(elem.childNodes,lineBreakNodeName);}} return ret;},getCookie:function(c_name){var c_value=" "+document.cookie;var c_start=c_value.indexOf(" "+c_name+"=");if(c_start==-1){c_value=null;}else{c_start=c_value.indexOf("=",c_start)+1;var c_end=c_value.indexOf(";",c_start);if(c_end==-1){c_end=c_value.length;} c_value=unescape(c_value.substring(c_start,c_end));} return c_value;},getQueryVariable:function(variable){var query=window.location.search.substring(1);var vars=query.split("&");for(var i=0;i/g,'>').replace(/"/g,'"');},inArray:function(needle,haystack,argStrict){var key='',strict=!!argStrict;if(strict){for(key in haystack){if(haystack[key]===needle){return true;}}}else{for(key in haystack){if(haystack[key]==needle){return true;}}} return false;},loadFile:function(filename,filetype,callback){if(filetype=="js"){var fileref=document.createElement('script');fileref.setAttribute("type","text/javascript");fileref.setAttribute("src",filename);}else if(filetype=="css"){var fileref=document.createElement("link");fileref.setAttribute("rel","stylesheet");fileref.setAttribute("type","text/css");fileref.setAttribute("href",filename);} if(typeof fileref!="undefined")document.getElementsByTagName("head")[0].appendChild(fileref);if(typeof callback!='undefined'){callback();}},key:function(key){var r={'id':'ID','ssn':'SSN','ifc':'IFC','sam':'SAM','tab':'TAB','lrgvd':'LRGVD','imf':'IMF','nsf':'NSF','ncr':'NCR','uspi':'USPI','atm':'ATM','nm':'NM','dob':'DOB','mrn':'MRN','or':'OR'};var k=String(key).replace(/_/g,' ');$.each(r,function(l,w){if(library.matchExact(k,l)){k=k.replace(l,w);}});return library.ucwords(k);},matchExact:function(str,m){var text=str,myName=m hits=0,array=text.split(/\s/),length=array.length,i=0;while(i-1){d=d.slice(0,d.indexOf("\0"))}if(d&&d.charAt(0)!=="["){g=[];m=0;for(s=0;so&&u.match(/^\d+$/g)){o=+u}}}d=o+1}}a[d]=v}}},populateForm:function(form,obj){$(form).find('option').each(function(){$(this).prop('selected',false);$(this).removeAttr('selected');});$.each(obj,function(key,value){if(typeof value=='string'||typeof value=='number'){var field=$(form).find('[name="'+key+'"]');switch($(field).prop('type')){case'radio':case'checkbox':var field=$(form).find('[name="'+key+'"][value="'+value+'"]');if(value==$(field).prop('value')){$(field).prop('checked',true);}else{$(field).removeAttr('checked',true);} break;default:$(field).val(value);break;}}else{$.each(value,function(k,v){$(form+' option[value="'+v+'"]').prop('selected',true);});}});},populateMultiText:function(input,data){var name=$(input).attr('name');$('[name="'+name+'"]').parents('.quantumLabelF').remove();var target=$(input).parents('form:first');var c=0;$.each(data,function(l,w){if(c){$(target).find('[name="'+name+'"]').next().find('.quantumLabelFAdder').trigger('click');}else{$(target).find('[name="'+name+'"]').val(w);} c++;});var c=1;$(target).find('.quantumLabelF input[name="'+name+'"]').each(function(){$(this).attr('value',data[c]);c++;});},processResponse:function(response,s){var suppressErrors=(typeof s=='undefined'?false:s);var error='';if(response.hasOwnProperty('error')){$.each(response.error,function(key,value){error+=value+"\n";});} error=$.trim(error);if(error!=''){if(error=='Permission denied.'){console.warn(error);}else{if(suppressErrors){console.warn(error);}else{alert(error);}} return false;}else{return true;}},putQueryVariable:function(u,param,value){var url=new URL(u);url.searchParams.set(param,value);return url.href;},saveAs:function(uri,filename){var link=document.createElement('a');if(typeof link.download==='string'){document.body.appendChild(link);link.download=filename;link.href=uri;link.click();document.body.removeChild(link);}else{location.replace(uri);}},stripTags:function(str){return String(str).replace(/(<([^>]+)>)/ig,"").replace(/\s+/g,' ');;},strPad:function(input,pad_length,pad_string,pad_type){var half='',pad_to_go;var str_pad_repeater=function(s,len){var collect='',i;while(collect.length0){if(pad_type==='STR_PAD_LEFT'){input=str_pad_repeater(pad_string,pad_to_go)+input;}else if(pad_type==='STR_PAD_RIGHT'){input=input+str_pad_repeater(pad_string,pad_to_go);}else if(pad_type==='STR_PAD_BOTH'){half=str_pad_repeater(pad_string,Math.ceil(pad_to_go/2));input=half+input+half;input=input.substr(0,pad_length);}} return input;},toArray:function(obj){if(typeof obj=='array'){return obj;}else{var a=[];$.each(obj,function(key,value){a.push(value);});return a;}},toArrayi:function(obj){if(typeof obj=='array'){return obj;}else{var a=[];$.each(obj,function(key,value){value.id=key;a.push(value);});return a;}},toObject:function(arr){var a={};$.each(arr,function(key,value){a[key]=value;});return a;},ucwords:function(str){return(str+'').replace(/^([a-z\u00E0-\u00FC])|\s+([a-z\u00E0-\u00FC])/g,function($1){return $1.toUpperCase();});},uniqid:function(){var d=new Date();return'i'+d.getTime()+Math.floor(Math.random()*1000000);}};var ui={adjustFrame:function(i,e){var excluded=(typeof e=='array'?e:[]);if(typeof i=='undefined'){i='iframe';} try{var h=$(i).contents().find('body').outerHeight()+100;if(h>800){var id=$(i).attr('id');if(id){if($.inArray(id,excluded)!=-1){$('iframe, .frameContainer').height(h);}}else{$('iframe, .frameContainer').height(h);}}}catch(e){}},clearForm:function(form){$(form).find('input').each(function(){var type=$(this).attr('type');switch(type){case'submit':break;case'checkbox':$(this).attr('checked',false);break;case'radio':$(this).attr('checked',false);break;case'hidden':break;case'select':break;default:$(this).val('');break;} $(form).find('textarea').each(function(){$(this).val('');});$(form).find('select').each(function(){$(this).find('option:first').attr('selected','selected');});});},dataTable:function(selector,fields,data,callback){$(selector).html('
    '+''+''+'
    '+'
    ');var columns=[];$.each(fields,function(key,value){columns.push({data:value});});var f=[];$.each(fields,function(key,value){f.push(library.ucwords(library.camelCaseToTitleCase(library.key(value))));});$(selector+' table thead').html(''+f.join(''));$(selector+' table').dataTable({createdRow:function(row,data,index){$(row).attr('data-id',data.id);if(typeof callback=='function'){callback(row,data,index);}else{if(typeof library.createdRow=='function'){library.createdRow(row,data,index);}}},dom:'T<"clear">lfrtip',processing:true,responsive:true,searching: false, paging: false, info: false,tableTools:{"sSwfPath":"https://code.filelabel.co/swf/copy_csv_xls_pdf.swf"},destroy:true,"data":library.toArray(data),"columns":columns});},delay:function(){var timer=0;return function(callback,ms){clearTimeout(timer);timer=setTimeout(callback,ms);};}(),displayObject:function(obj){return library.displayObject(obj);},loader:'R0lGODlh3AATAPQAAP///wAAAL6+vqamppycnLi4uLKyssjIyNjY2MTExNTU1Nzc3ODg4OTk5LCwsLy8vOjo6Ozs7MrKyvLy8vT09M7Ozvb29sbGxtDQ0O7u7tbW1sLCwqqqqvj4+KCgoJaWliH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAA3AATAAAF/yAgjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgECAaEpHLJbDqf0Kh0Sq1ar9isdjoQtAQFg8PwKIMHnLF63N2438f0mv1I2O8buXjvaOPtaHx7fn96goR4hmuId4qDdX95c4+RG4GCBoyAjpmQhZN0YGYFXitdZBIVGAoKoq4CG6Qaswi1CBtkcG6ytrYJubq8vbfAcMK9v7q7D8O1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQgDLAQGCQoLDA0QCwUHqfYSFw/xEPz88/X38Onr14+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdE/9chIeBgDoB7gjaWUWTlYAFE3LqzDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKwgcWABB5y1acFNZmEvXwoJ2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCLYMIFCzwLEprg84OsDus/tvqdezZf13Hvr2B9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebc3A8vjf5QWf15Bg7Nz17c2fj69+fnq+8N2Lty+fu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nAZG5vsprWxYRW6Suq4UWqrLEsspWg8Io6yv/q6EhK0Fw0GLbjKYn5CZYBYht1laPrnEY67kyrhYbuyceiR28Pso7bYwiXjihjWsWuWF5p/H765HmNoiur3RJsGKNG/jq748XMrwmjhwCfO6QD9v7LQsDxPTAMKsFpthyJCdkmgYiw0VdXF/Om9dyv7YMWGXTLYpZg5wNR11C78oW3p8HSGgul4qyrJppgllJHJZHn0Y0yUwDXCXUNquFZNLKyYXBAVZvxtAKYIQEsmPgDacr0tltO1y/DMwYpkgUpJfTasLGzd3cdCN3gN3UWRcY3epIEPevfq+3njBxq/kqBoGBduvea8f393zICS63ivRBTqgFpgaWZEIUULdcK+frIfAAL2AjscXqrLfu+uuwx05FF0XUbvvtuOeu++689+7778AHL/wJIQAAOwAAAAAAAAAAAA==',listSelect:function(response,id,field){if(response.output){$(id).html('');$.each(response.output,function(key,value){var v=value;if(typeof field!='undefined'){if(typeof value[field]!='undefined'){if(value[field]){v=value[field];}}} $(id).append('');});}},loading:function(t,done){if(typeof done=='undefined'){done=false;} if(done){$(t).find('*').css('visibility','visible');$(t).css({'background-image':'none','min-height':0});}else{var img='url(data:image/gif;base64,'+ui.loader+')';$(t).find('*').css('visibility','hidden');$(t).css({'background-image':img,'background-repeat':'no-repeat','background-position':'center center','min-height':500});}},tabs:function(container,nav,tab){$(container+' '+tab).hide();$(container+' '+tab+':first-child').show();$(nav+' a:first-child').addClass("active");var hash=window.location.hash;hash=hash.slice(1);if(hash!="")$("#"+hash).show();$(nav+' a').click(function(e){e.preventDefault();$(nav+' a').not(this).removeClass("active");$(this).addClass("active");var targetdiv=$(this).attr("href");if($(targetdiv).is(":hidden")){$(container+' '+tab).hide(0,function(){$(targetdiv).show();});} return false;});return false;}};var api={url:location.protocol+'//'+location.hostname+'/api/',compressOutput:false,call:function(data,callback,error){if(typeof data=='object'){var d=$.param(data);data=d;} if(typeof api.licenseKey!='undefined'){data[licenseKey]=api.licenseKey;} if(typeof config!='undefined'){if(String(data).indexOf('_CONTROL')!=-1){api.url=config.dbUrl;}else{api.url=config.apiUrl;}} try{if(typeof parent.config!='undefined'){if(String(data).indexOf('_CONTROL')!=-1){api.url=parent.config.dbUrl;}else{api.url=parent.config.apiUrl;}}}catch(e){} var csrft=library.getCookie('quantumTracking');if(csrft){data+='&$_CONTROL[csrft]='+csrft;} if(data.length<7000){$.getJSON(api.url+'?jsoncallback=?'+'&'+data+(typeof api.licenseKey=='undefined'?'':'&licenseKey='+api.licenseKey+ (api.compressOutput?'&compressOutput=':'')),function(response){if(library.processResponse(response)){if(typeof callback!=='undefined'){callback(response);}}else{if(typeof error!=='undefined'){error(response);}}});}else{$.post(api.url+'?'+data+(typeof api.licenseKey=='undefined'?'':'&licenseKey='+api.licenseKey+ (api.compressOutput?'&compressOutput=':'')),function(response){if(library.processResponse(response)){if(typeof callback!=='undefined'){callback(response);}}else{if(typeof error!=='undefined'){error(response);}}});}},dbCall:function(data,callback,error){$.getJSON(dbUrl+'?jsoncallback=?'+'&'+data,function(response){if(library.processResponse(response)){if(typeof callback!=='undefined'){callback(response);}}else{if(typeof error!=='undefined'){error(response);}}});},isLoggedIn:function(success,error){var request=new Request({control:{action:'checkSession'}});api.call(request.output(),function(response){if(response.output.logged_in){if(typeof success!='undefined'){success();}}else{if(typeof error!='undefined'){error();}}});},send:function(data,callback,error){$.ajax({url:'php/upload.php',data:data,cache:false,contentType:false,processData:false,type:'POST',success:function(data){alert(data);}});}};function Form(inputObj,callback){this.ac=function(key,data){var info=[] $.each(data,function(k,v){info.push(v);});var that=this;$(that.target).find('[name="'+key+'"]').autocomplete({source:info,minLength:0});} this.create=function(){var that=this;var d=new Date();var ac=[] var setup={};$(this.options.target).html('');this.id='__'+this.options.name+d.getTime();var html='
    ';$.each(this.formData,function(key,value){var myField=new Field(value);if(myField.atts.autocomplete=='yes'){ac.push({'field':myField.atts.name,'type':that.options.type,'id':myField.id});} if(myField.field.type.indexOf('select')!=-1&&!myField.field.options&&typeof that.options.setup[myField.field.name]=='undefined'){$.ajaxSetup({async:false});new API({db:true,data:{action:'list',type:myField.field.name.replace('[]','')},success:function(response){if(response.output){setup[myField.atts.name]=response.output;} $.ajaxSetup({async:true});}});} html+=myField.output;});html+='
    ';$(document).off('submit','#'+this.id);if(this.options.event){Submit('#'+this.id,this.options.event);}else{Submit('#'+this.id,this.event);} ui.loading(this.options.target,true);$(this.options.target).html(html);try{$('.btn').button();$('#'+this.id+' [type="date"]').datepicker();}catch(e){};if(JSON.stringify(setup)!='{}'){this.options.setup=setup;} if(this.options.setup){$.each(this.options.setup,function(key,value){var html='';$.each(value,function(k,v){html+='';});$('#'+that.id).find('[name="'+key+'"]').html(html);});} if(ac.length){$.each(ac,function(key,value){$(document).on('keyup','[list="'+value.id+'"]',function(){var that=this;ui.delay(function(){var request=new Request({control:{'action':'terms','term':$(that).val(),'field':value.field,'type':value.type}});api.call(request.output(),function(response){$('#'+value.id).html('');$.each(response.output,function(k,v){$('#'+value.id).append('');});});},250);});});} if(this.options.data){var populate=setInterval(function(){if($(that.options.target).find('form').length){clearInterval(populate);that.populate(that.options.data);}},250);} if(typeof callback!='undefined'){callback(this);}} this.event=function(t,e){var that=this;var r={action:'post',type:$(t).attr('data-type'),id:''};var d=['data-action','data-type','data-id'];var bootstrap=typeof $.fn.popover=='function';$.each(d,function(key,value){var v=$(t).attr(value);if(typeof v!='undefined'){if(v){r[value.replace('data-','')]=v;}}});var showMessages=(typeof $(t).attr('data-hidefeedback')=='undefined'?true:false);var btn=$(t).find('button.btn-primary');if(bootstrap){$(btn).button('loading');} var request=new Request({control:r,data:$(t).serializeObject()});api.call(request.output(),function(response){if(showMessages){alert('Success');} if(bootstrap){$(btn).button('reset');} ui.clearForm(t);$(t).trigger('formSuccess',request.data);},function(){if(bootstrap){$(btn).button('reset');} $(t).trigger('formError',request.data);});} this.get=function(){if(typeof this.options.form=='object'){this.formData=this.options.form;this.create();}else{var that=this;var control={action:'get',type:'form',id:that.options.name} if(that.options.app)control.app=that.options.app;var request=new Request(control);api.call(request.output(),function(response){if(typeof response.output!='undefined'){if(typeof response.output.form!='undefined'){that.formData=response.output.form;that.create();}}},function(){alert('Form not found, please contact the administrator.');ui.loading(this.options.target,true);});}} this.init=function(){ui.loading(this.options.target);this.get();} this.populate=function(obj){var that=this;if(typeof obj!='undefined'){$.each(obj,function(k,v){if(v){switch(typeof v){case'object':case'array':var w=library.toArray(v);var n1=$(that.options.target+' [name="'+k+'[]"]').length;var n2=$(that.options.target+' [name="'+k+'"]').length;var tag='input';if(n1){tag=String($(that.options.target+' [name="'+k+'[]"]').get(0).tagName).toLowerCase();} if(n2){tag=String($(that.options.target+' [name="'+k+'"]').get(0).tagName).toLowerCase();} if(tag=='select'){var name=(n1?'[name="'+k+'[]"]':'[name="'+k+'"]');$(that.options.target).find(name+' option').removeAttr('selected');$.each(w,function(myKey,myVal){$(that.options.target+' [value="'+myVal+'"]').attr('selected',true);});}else{var c=0;$.each(v,function(l,w){if(c){$(that.options.target).find('[name="'+k+'[]"]').next().find('.quantumLabelFAdder').trigger('click');}else{$(that.options.target).find('[name="'+k+'[]"]').val(w);} c++;});var c=1;$(that.options.target).find('.quantumLabelF input[name="'+k+'[]"]').each(function(){if(typeof v[c]!='undefined'){$(this).attr('value',v[c]);c++;}});} break;default:var type=$(that.options.target).find('[name="'+k+'"]').attr('type');if(typeof type=='undefined'){$(that.options.target).find('[name="'+k+'"]').val(v);}else{if(type!=='file'){$(that.options.target).find('[name="'+k+'"]').val(v);}} break;}}});}} this.setData=function(i){var that=this;if(typeof i=='object'){$.each(i,function(key,value){$('#'+that.id).attr('data-'+key,value);});}} this.p={app:false,autocomplete:false,bootstrap:true,control:false,data:false,event:false,form:false,name:false,returnHtml:false,setControlVars:true,setup:false,showMessages:true,target:'#formModal .modal-body',type:'data'} this.options=$.extend({},this.p,inputObj);this.init();};function Field(field){this.field=field;this.field.autocomplete=(typeof this.field.autocomplete?this.field.autocomplete:'');this.fragment=document.createDocumentFragment();this.output=false;this.atts={'class':'form-control __'+String(this.field.name).replace('[]','')} if(typeof this.field['class']!='undefined'){this.atts['class']=this.field['class'];} var d=new Date();this.id='id'+d.getTime()+Math.floor(Math.random()*1000000);if(this.field.type=='radio'||this.field.type=='checkbox'){this.atts.class='__'+String(this.field.name).replace('[]','');} this.setAttributes=function(el){var that=this;$.each(this.atts,function(key,value){switch(key){case'autocomplete':if(value=='yes'){el.setAttribute('list',that.id);el.setAttribute('autocomplete','off');} break;break;case'options':case'label':break;case'type':if(value!='textarea'&&value!='select'&&value!='multi-select'){el.setAttribute(key,value);} break;default:el.setAttribute(key,value);break;}});return el;} var el,opt;var that=this;$.each(this.field,function(key,value){if(value){that.atts[key]=value;}});switch(this.field.type){case'multi-select':case'select':el=document.createElement('select');if(this.atts.options){var o=String(this.atts.options).split(',');$.each(o,function(key,value){opt=document.createElement('option');opt.setAttribute('value',$.trim(value));opt.appendChild(document.createTextNode($.trim(value)));el.appendChild(opt);});} if(this.field.type=='multi-select'){el.setAttribute('multiple','true');el.setAttribute('autocomplete','off');} el=this.setAttributes(el);this.fragment.appendChild(el);break;case'multi-checkbox':case'multi-radio':var type=(this.field.type=='multi-radio'?'radio':'checkbox');var that=this;this.atts.label=false;if(this.atts.options){var o=String(this.atts.options).split(',');var c,l,d,s;d=document.createElement('div');d.setAttribute('class','inputContainer');s=document.createElement('span');s.style.fontWeight='bold';s.style.textTransform='capitalize';s.appendChild(document.createTextNode(library.key(this.atts.name).replace('[]','')));d.appendChild(s);$.each(o,function(key,value){c=document.createElement('div');c.setAttribute('class',type);l=document.createElement('label');el=document.createElement('input');el.setAttribute('type',type);el.setAttribute('value',value);el.setAttribute('name',that.atts.name);l.appendChild(el);l.appendChild(document.createTextNode(value));c.appendChild(l);d.appendChild(c);});that.fragment.appendChild(d);} break;case'multi-text':this.atts.label=false;var a=(this.atts.type?'type="'+this.atts.type+'" ':'')+ (this.atts.name?'name="'+this.atts.name+'" ':'')+ (this.atts.placeholder?'placeholder="'+this.atts.placeholder+'" ':'')+ (this.atts.required?'required="required" ':'');this.output='';break;case'password':el=document.createElement('input');el=this.setAttributes(el);el.setAttribute('autocomplete','off');this.fragment.appendChild(el);break;case'textarea':el=document.createElement('textarea');el=this.setAttributes(el);el.setAttribute('name',that.field.name);this.fragment.appendChild(el);break;default:el=document.createElement('input');el=this.setAttributes(el);this.fragment.appendChild(el);break;} if(this.output===false){var div=document.createElement('div');div.appendChild(this.fragment.cloneNode(true));if(this.atts.label){this.output='';}else{this.output=div.innerHTML;} if(this.atts.autocomplete=='yes'){this.output+='';}}};function Table(i){this.data=false;this.meta=false;this.fields=false;this.selector=false;this.activePage=1;if(typeof i.data!='undefined'){if(typeof i.fields!='undefined'){var p={} $.each(i.fields,function(key,value){p[value]='';});$.each(i.data,function(key,value){i.data[key]=$.extend({},p,value);});} this.data=i.data;} if(typeof i.meta!='undefined'){this.meta=i.meta;} if(typeof i.fields!='undefined'){this.fields=i.fields;} if(typeof i.selector!='undefined'){this.selector=i.selector;} this.create=function(){if(this.fields&&this.data&&this.meta&&this.selector){var fragment=document.createDocumentFragment(),tr,td,i,il,a,key,checkbox;var c=0;for(var id in this.data){if(this.data.hasOwnProperty(id)){var end=this.meta.start+this.meta.max;if(c>=this.meta.start&&c<=end){tr=document.createElement('tr');tr.setAttribute('data-id',id);checkbox=document.createElement('input');checkbox.setAttribute('type','checkbox');checkbox.removeAttribute('id');td=document.createElement('td');td.appendChild(checkbox);tr.appendChild(td);for(key in this.data[id]){td=document.createElement('td');td.setAttribute('data-th',String(key).split('_').join(' ')+': ');a=document.createElement('a');a.setAttribute('href','#');a.setAttribute('title',this.data[id][key]);a.appendChild(document.createTextNode(this.data[id][key]));td.appendChild(a);tr.appendChild(td);} fragment.appendChild(tr);}} c++;} $(this.selector).html('');var shell='
    ';$(this.selector).html(shell);$(this.selector).find('table').append(this.tableHead()).append(fragment);$(this.selector).trigger('renderTable');}} this.page=function(){this.meta.start=(this.activePage*this.meta.max)-this.meta.max+1;if(this.meta.start==1){this.meta.start=0;} if(this.activePage==1){this.meta.start=0;} this.create();} this.pagination=function(){var pages=Math.ceil(this.meta.count/this.meta.max)-1;if(!pages){pages=1;} var html='
    '+'
    ';$('.fileLabelPagination').remove();$(this.selector).before(html);$(this.selector).after(html);var that=this;$(document).off('click','[title="First Page"]');$(document).on('click','[title="First Page"]',function(){$('.fileLabelPagination .page').addClass('hidden');for(var n=1;n<=5;n++){$('[data-page="'+n+'"]').removeClass('hidden');} $('[data-page="1"]').trigger('click');});$(document).off('click','[title="Last Page"]');$(document).on('click','[title="Last Page"]',function(e){e.preventDefault();$('.fileLabelPagination .page').addClass('hidden');var p=pages-5;for(var n=p;n<=pages;n++){$('[data-page="'+n+'"]').removeClass('hidden');} $('[data-page="'+pages+'"]').trigger('click');});$(document).off('click','.fileLabelPagination .page');$(document).on('click','.fileLabelPagination .page',function(e){e.preventDefault();that.activePage=parseInt($(this).attr('data-page'));if($(this).next().hasClass('hidden')){var next=parseInt($(this).next().attr('data-page'));var first=next-5;$('[data-page="'+next+'"]').removeClass('hidden');$('[data-page="'+first+'"]').addClass('hidden');} $('.page').removeClass('active');$('[data-page="'+that.activePage+'"]').addClass('active');that.page();});if(this.activePage==1){for(var n=1;n<=5;n++){$('[data-page="'+n+'"]').removeClass('hidden');} $('[data-page="1"]').addClass('active');} $('body').trigger('renderPagination');} this.tableHead=function(){var fragment=document.createDocumentFragment(),tr,th,i,il,key,thead,div,cb;thead=document.createElement('thead');tr=document.createElement('tr');th=document.createElement('th');cb=document.createElement('input');cb.setAttribute('type','checkbox');cb.setAttribute('id','checkAll');th.appendChild(cb);tr.appendChild(th);for(field in this.fields){th=document.createElement('th');th.appendChild(document.createTextNode(String(this.fields[field]).split('_').join(' ')));tr.appendChild(th);} thead.appendChild(tr);fragment.appendChild(thead);return fragment;} this.create();if(this.meta.count>this.meta.max){this.pagination();}else{$('.fileLabelPagination').remove();}};function simpleDB(type){this.type=type;if(!localStorage.getItem('simpleDB'))localStorage.setItem('simpleDB',JSON.stringify({}));this.db=JSON.parse(localStorage.getItem('simpleDB'));if(!this.db.hasOwnProperty(this.type)){this.db[this.type]={} localStorage.setItem('simpleDB',JSON.stringify(this.db));} this.db=JSON.parse(localStorage.getItem('simpleDB'));this.arrayShift=function(inputArr){var props=false,shift=undefined,pr='',allDigits=/^\d$/,int_ct=-1,_checkToUpIndices=function(arr,ct,key){if(arr[ct]!==undefined){var tmp=ct;ct+=1;if(ct===key){ct+=1;} ct=_checkToUpIndices(arr,ct,key);arr[ct]=arr[tmp];delete arr[tmp];} return ct;};if(inputArr.length===0){return null;} if(inputArr.length>0){return inputArr.shift();}} this.check=function(key){if(!this.db[this.type].hasOwnProperty(key)){return key;}else{return this.check(this.uniqid());}} this.count=function(mixed_var,mode){var key,cnt=0;if(mixed_var===null||typeof mixed_var==='undefined'){return 0;}else if(mixed_var.constructor!==Array&&mixed_var.constructor!==Object){return 1;} if(mode==='COUNT_RECURSIVE'){mode=1;} if(mode!=1){mode=0;} for(key in mixed_var){if(mixed_var.hasOwnProperty(key)){cnt++;if(mode==1&&mixed_var[key]&&(mixed_var[key].constructor===Array||mixed_var[key].constructor===Object)){cnt+=this.count(mixed_var[key],1);}}} return cnt;} this.del=function(key){this.getDB();try{var type=this.db[this.type];}catch(err){var type=this.db[this.type];} delete type[key];this.db[this.type]=type;localStorage.setItem('simpleDB',JSON.stringify(this.db));} this.get=function(key){this.getDB();if(typeof key=='undefined'){var output=[] for(var key in this.db[this.type]){try{output[key]=JSON.parse(this.db[this.type][key]);}catch(err){output[key]=this.db[this.type][key];}} return this.toObject(output);}else{try{return this.db[this.type][key];}catch(err){return false;}} return false;} this.getDB=function(){this.db=JSON.parse(localStorage.getItem('simpleDB'));} this.getJSON=function(key){this.getDB();return JSON.stringfy(this.db[this.type][key]);} this.objectToQueryString=function(obj){var output='';var count=0;for(var key in obj){if(obj.hasOwnProperty(key)){output+=key+'='+obj[key]+'&';}} return output.slice(0,-1);} this.post=function(content){this.getDB();var key=this.check(this.uniqid());this.db[this.type][key]=content;localStorage.setItem('simpleDB',JSON.stringify(this.db));return key;} this.parseStr=function(q){var arr={};var query=String(q).split('&');for(var key in query){if(query.hasOwnProperty(key)){var str=String(query[key]).split('=');var va=str[1];arr[str[0]]=str[1];}} return arr;} this.put=function(id,content){this.getDB();var key=id;this.db[this.type][key]=content;localStorage.setItem('simpleDB',JSON.stringify(this.db));return key;} this.query=function(q){var arr=this.parseStr(q);var get=this.get();var out={};var empty=true;if(get){for(var key in get){if(get.hasOwnProperty(key)){var objectString=this.objectToQueryString(get[key]);if(this.testQueryArray(arr,objectString)){var empty=false;out[key]=get[key];}}}} if(empty){return false;}else{return out;}} this.returnSingleId=function(a){if(a){for(var key in a){if(a.hasOwnProperty(key)){return key;}}}else{return false;}},this.shiftArray=function(arr){if(this.count(arr)==1){return this.shiftArray(arr);}else{return arr;}} this.testQueryArray=function(array,objectString){var testArray=[];for(var key in array){if(array.hasOwnProperty(key)){testArray.push(key+'='+array[key]);}} var count=this.count(testArray);var testCount=0;for(var key in testArray){if(testArray.hasOwnProperty(key)){if(objectString.indexOf(testArray[key])!==-1){testCount++;}}} if(count==testCount){return true;}else{return false;}} this.timestamp=function(id){var str=String(id).replace('id');return parseInt(str);} this.toObject=function(arr){var rv={};for(var key in arr){if(arr.hasOwnProperty(key)){rv[key]=arr[key];}} return rv;} this.uniqid=function(){var d=new Date();return'id'+d.getTime()+Math.floor(Math.random()*1000000);}};function Template(i,callback){var d={'type':'dl','data':{},'exclude':[],'fields':{},'checkboxes':false,'ddTag':'a','editable':false,'classes':'',images:false,checkAllId:true} this.options=$.extend({},d,i);var f=this.options.type;if(JSON.stringify(this.options.fields)=='{}'){var keys=Object.keys(this.options.data);if(typeof this.options.data[keys[0]]=='object'){this.options.fields=Object.keys(this.options.data[keys[0]]);}else{this.options.fields=keys;}} if(this.options.type=='table'){var that=this;var data={};$.each(that.options.data,function(key,value){data[key]={};$.each(that.options.fields,function(k,v){var myVal=(typeof value[v]=='undefined'?'':value[v]);data[key][v]=myVal;});});this.options.data=data;} this.dl=function(){var that=this;var html='
    ';$.each(that.options.data,function(key,value){switch(typeof value){case'array':var v=Array(library.cleanArray(value)).join(', ');break;case'object':var v=library.displayObject(value);break;default:var v=value;break;} if($.inArray(key,that.options.exclude)==-1){var k=library.key(key);if(k=='StatusUpdated'){k='Status Updated';v=new Date(parseInt(v)*1000).format('m/d/Y @ g:ia');} if(that.options.ddTag){switch(that.options.ddTag){case'a':html+='
    '+k+'
    '+v+'
    ';break;default:html+='
    '+k+'
    <'+that.options.ddTag+' contenteditable="'+String(that.options.editable)+'" data-key="'+key+'" data-value="'+v+'">'+v+'
    ';break;}}else{html+='
    '+k+'
    '+v+'
    ';}}});html+='
    ';return html;} this.table=function(){var that=this;var html='
    ';if(this.options.checkboxes){html+='';} if(this.options.images){html+='';} var c=0;$.each(that.options.fields,function(key,value){if($.inArray(value,that.options.exclude)==-1){if(value=='index'){html+='';}else{html+=''+library.key(value)+'';}} c++;});html+='';$.each(that.options.data,function(id,obj){html+='';if(that.options.checkboxes){html+='';} if(that.options.images){html+='';} $.each(obj,function(key,value){if($.inArray(key,that.options.fields)!==-1){if($.inArray(key,that.options.exclude)==-1){html+='';}}});html+='';});html+='
    Image'+library.key(value)+'
    '+value+'
    ';return html;} this.output='';switch(this.options.type){case'dl':this.output=this.dl();break;case'table':this.output=this.table();break;} if(typeof callback!='undefined'){callback(this);}};function Upload(i,callback,error){this.chunk=function(str,len){var _size=Math.ceil(str.length/len),_ret=new Array(_size),_offset;for(var _i=0;_i<_size;_i++){_offset=_i*len;_ret[_i]=str.substring(_offset,_offset+len);} return _ret;};this.file=function(file){var that=this;var mySize=that.format(file.size);if(mySize.type=='MB'){if(mySize.size>that.options.threshold){that.options.multiple=true;}}else if(mySize.type=='GB'||mySize.type=='TB'){that.options.multiple=true;}else{that.options.multiple=false;} if(that.options.multiple){that.multiple(file,file.content);}else{that.single(file,file.content);}};this.format=function(bytes){var sizes=['Bytes','KB','MB','GB','TB'];if(bytes==0)return'0 Byte';var i=parseInt(Math.floor(Math.log(bytes)/Math.log(1024)));return{size:Math.round(bytes/Math.pow(1024,i),2),type:sizes[i]}};this.getByteLen=function(normal_val){normal_val=String(normal_val);var byteLen=0;for(var i=0;ithat.options.threshold){that.options.multiple=true;}}else if(mySize.type=='GB'||mySize.type=='TB'){that.options.multiple=true;}else{that.options.multiple=false;}} var info=String(reader.result).split('base64,');if(that.options.multiple){that.multiple(file,info[1]);}else{that.single(file,info[1]);}} reader.readAsDataURL(file);}};this.multiple=function(file,result){$('html,body').css('cursor','progress');var that=this;var r=this.chunk(result,this.options.chunkSize);var chunks=Math.ceil(String(result).length/this.options.chunkSize);for(var n=0;n=0&&/\]$/.test(keys[last])){keys[last]=keys[last].replace(/\]$/,'');keys=keys.shift().split('[').concat(keys);last++;}else{last=0;} if(typeof reviver==='function'){value=reviver(key,value);}else if(reviver){value=deparam.reviver(key,value);} if(last){for(;i<=last;i++){key=keys[i]!==''?keys[i]:current.length;if(i
    '+(that.options.icon?' ':'')+'Sign In
    ';};this.init=function(){$(this.options.target).html(this.html);$(document).off('#LoginApp form','submit');$(document).off('#LoginApp .forgot','click');if(!this.eventsAttached){this.events();}};this.logIn=function(t){$(t).find('button').button('loading');api.call({action:'logIn',email:$('[name="email"]').val(),password:$('[name="password"]').val()},function(){location.reload(true);$(t).find('button').button('reset');},function(){$(t).find('button').button('reset');});} this.init();}; // source --> https://shopfilingsuperstore.com/wp-content/plugins/conner-product-tables/js/conner.js?ver=1.019 var connerProductData = {}; var exclude = {}; Click('.conner-show-desc', function(t){ var parent_obj = $(t).parents('tr:first'); parent_obj.find('.conner-product-inner').toggleClass('hide'); parent_obj.find('.conner-product-name span').toggleClass('hide'); if(parent_obj.find('.conner-product-inner').is(':hidden')) { parent_obj.find('.conner-show-desc span').html('+'); } else { parent_obj.find('.conner-show-desc span').html('−'); } }); Click('.product-category-header', function(t) { if($(t).hasClass('collapsed')) { $(t).removeClass('collapsed'); } else { $(t).addClass('collapsed'); } }); Click('.conner-add-to-quote', function(t){ if ($('body').hasClass('logged-in')){ $(t).prop('disabled', true).text('Please Wait...'); var data = $(t).data(); var q = 1; var quantity = $(t).parents('tr:first').find('[type="number"]').val(); if(quantity) { q = quantity; } $.post('/?wc-ajax=yith_ywraq_action', { action:'yith_ywraq_action', wp_nonce:undefined, 'yith-add-to-cart':data.id, product_id:data.id, ywraq_action:'add_item', quantity:q }, function(response){ $(t).removeAttr('disabled').text('Add to Quote'); alert(response.message); }); } else { alert('Please login or register to continue.'); window.location.href = '/my-account'; } }); Click('.conner-add-to-cart', function(t){ $(t).prop('disabled', true).text('Please Wait...'); var data = $(t).data(); var parentObj = $(t).closest('tr'); var q = 1; var variation_id = 0; var quantity = $(t).parents('tr:first').find('[name="quantity"]').val(); if(quantity) { q = quantity; } if(parentObj.find('select[data-key="variation-color"]').length > 0) { variation_id = parentObj.find('select[data-key="variation-color"]').val(); } if(data.variation && ! variation_id) { $(t).removeAttr('disabled').text('Add to Cart'); alert('Please select some product options before adding this product to your cart.'); return; } $.post(wc_add_to_cart_params.ajax_url, { action:'woocommerce_ajax_add_to_cart', 'product_id':data.id, 'variation_id': variation_id, 'product_sku' : '', 'quantity':q }, function(response){ $(t).removeAttr('disabled').text('Add to Cart'); if( ! response.error) { alert('Item successfully added.'); } else { alert('There was a problem adding the item.'); } }); }); Change('select[data-key="variation-color"]', function(t){ var variationID = $(t).val(); var price = false; $.each(productData, function(k, cat){ $.each(cat, function(i, obj){ if (obj.is_variation){ $.each(obj.color_variations, function(n, colorObj){ if (colorObj.id == variationID){ if (parseFloat(colorObj.regular_price) > 0){ if (colorObj.is_on_sale){ price = '$ '+ colorObj.regular_price+ '$ '+ colorObj.sale_price+ ''; } else { price = '$ ' + colorObj.regular_price + ''; } } else { price = 'N/A'; } } }); } }); }); if (price){ $(t).closest('tr').find('td:nth-child(3)').html(price); } }); Change('form.conner-category-filter', function(obj) { if($(obj).find('#filter-type').length > 0) { $('div.product-category').each(function() { if( $(obj).find('#filter-type').val() ) { $(this).closest('section.section').hide(); } else { $(this).closest('section.section').show(); } }); if( $(obj).find('#filter-type').val() ) { $('div.product-category[data-category="' + $(obj).find('#filter-type').val() + '"]').closest('section.section').show(); } } if($(obj).find('#filter-color').length > 0) { var filter_color = $(obj).find('#filter-color').val(); if(filter_color) { $('div.product-category table.dataTable tbody tr').hide(); } else { $('div.product-category table.dataTable tbody tr').show(); } if(filter_color) { $('div.product-category table.dataTable tbody tr').each(function() { var has_color = false; var variation_select = $(this).find('select[data-key="variation-color"]'); if(variation_select.length > 0) { variation_select.find('option').each(function() { if($(this).text() == filter_color) { has_color = true; return false; } }); if(has_color) { $(this).show(); } } }); } } }); $(window).load(function(){ $.each(connerProductData, function(key, value){ ui.dataTable('#'+key, ['name', 'color', 'price', 'quantity', 'add'], value); }); $('table.dataTable select').wrap('
    '); }); // source --> https://shopfilingsuperstore.com/wp-content/plugins/file-label-express/assets/js/thickbox.js?ver=5.5.9 jQuery(document).ready(function() { $ = jQuery; jQuery("img.flx-img").parent("a").addClass("thickbox"); $('.preview-filing-system').click(function(){ var data = $(this).data(); $(`a[data-system="${data.system}"]`).trigger('click'); }); /* $(document).on('click', '#TB_closeWindowButton', function(){ $('#TB_window, #TB_overlay').remove(); }); */ }); // source --> https://shopfilingsuperstore.com/wp-content/plugins/woocommerce-fixed-quantity/assets/js/woofix.js?ver=5.5.8 jQuery(document).ready(function($) { $('body').on('change', 'select[name$="[qty]"]', function() { var that = this; setTimeout(function () { $(that).closest('form').find('input[name="update_cart"]').click(); }, 300); }); });