{"version":3,"sources":["plugins.js"],"names":["clickToCall","$","isAppleDevice","test","navigator","userAgent","isAndroidDevice","infiniteScrollClickToCall","each","this","find","length","text","html","replace","phoneRegEx","RegExp","contents","nodeType","closest","match","newhtml","replaceWith","jQuery","equalHeight","clear","group","css","tallest","thisHeight","getBoundingClientRect","bottom","top","elem","window","getComputedStyle","boxSizing","Math","ceil","outerHeight","height","thisPadding","convertNumberToWords","amount","words","Array","number","toString","split","join","n_length","words_string","n_array","received_n_array","i","substr","j","parseInt","value","fn","ytplaylist","options","extend","holderId","playerHeight","playerWidth","addThumbs","thumbSize","showInline","autoPlay","showRelated","allowFullScreen","selector","fullScreen","play","id","youtubeid","url","indexOf","firstVid","children","addClass","attr","click","removeClass","parent","replacedText","thumbUrl","empty"],"mappings":"AAIA,IAAIA,YAAc,SAAUC,GAsGxB,MAAO,CACHC,cAnCgB,WAChB,aACA,QAAI,oBAAoBC,KAAKC,UAAUC,YAkCvCC,gBA3BkB,WAClB,aACA,QAAI,WAAWH,KAAKC,UAAUC,YA0B9BE,0BAdJ,WACIN,EAAE,sEAAsEO,KAAK,WACzE,GAAiC,IAA7BP,EAAEQ,MAAMC,KAAK,KAAKC,OAAc,CAChC,IACIC,EAAOX,EAAEQ,MAAMI,OACnBD,EAAOA,EAAKE,QAFA,gDAEe,+BAC3Bb,EAAEQ,MAAMI,KAAKD,OASrBZ,YAzGc,WAgBd,IAAIe,EAAa,IAAIC,OAAO,2EAoB5Bf,EAAE,kCAAkCgB,WAAWT,KAAK,WAEhD,GAAqB,GAAjBC,KAAKS,WAILjB,EAAEQ,MAAMU,QAAQ,KAAKR,OAAzB,CAIA,IAAIS,EAAQnB,EAAEQ,MAAMG,OAAOQ,MAAML,GACjC,GAAc,OAAVK,GAAmC,IAAjBA,EAAMT,OAA5B,CAGA,IAAIU,EAAUpB,EAAEQ,MAAMG,OAAOE,QAAQC,EAAY,SAASK,GAItD,MADW,gBADOA,EAAMN,QAAQ,KAAM,IAAIA,QAAQ,KAA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KAAK6D,EAAKE,EAAU3E,EAAEQ,MAAMyE,KAAK,WAChEjF,EAAEQ,MAAM4E,SAASA,OAAO,MAAM3E,KAAK,mBAAmB0E,YAAY,gBAClEnF,EAAEQ,MAAM4E,OAAO,MAAMJ,SAAS,kBAExB,IAIJpB,EAAQK,WAEXM,EAASQ,WAAWxE,KAAK,SAAU8C,GAElC,IAAIgC,EAAerF,EAAEQ,MAAMG,OAE3B,GAAyB,SAArBiD,EAAQM,UACX,IAAIoB,EAAW,6BAA+BX,EAAU3E,EAAEQ,MAAMuE,SAAS,KAAKE,KAAK,SAAW,cAG1FK,EAAW,6BAA+BX,EAAU3E,EAAEQ,MAAMuE,SAAS,KAAKE,KAAK,SAAW,SAI/FjF,EAAEQ,MAAMuE,SAAS,KAAKQ,QAAQ3E,KAAK,aAAe0E,EAAW,cAAgBD","sourcesContent":["/*global $:false*/\r\n/*global escape: true */\r\n/*jslint browser: true*/\r\n\r\nvar clickToCall = (function($) {\r\n var clickToCall = function() {\r\n /*\r\n This is a global click to call function. This will match phone numbers in these formats and convert them to anchors with 'tel' attributes:\r\n\r\n 123 456 7890\r\n (123)456 7890\r\n (123) 456 7890\r\n (123)456-7890\r\n (123) 456-7890\r\n 123.456.7890\r\n 123-456-7890\r\n *This also accounts for the '1-800' scenario with a space, dot or dash separating the '1' and '800'\r\n\r\n Example: (123) 456-7890\r\n */\r\n\r\n var phoneRegEx = new RegExp(/(1[\\s.-])?([(]?\\d{3}[)]?[(\\s)?.-]\\d{3}[\\s.-]\\d{4})(?![^<]*>|[^<>]*<\\/)/g);\r\n\r\n /*\r\n RegEx Explained\r\n\r\n / Start the expression\r\n (1[\\s.-])? An optional '1' followed by an optional space, dot or dash (to be used in '1-800')\r\n [(]? Optional left parenthesis\r\n \\d{3}\\ Look for 3 digits (area code)\r\n [)]? Optional right parenthsis\r\n [(\\s)?.-] Optional space (after the area code) or a dot or dash\r\n \\d{3} Look for 3 digits (the first part of the phone num)\r\n [\\s.-] Either a space, dot, or dash to separate the first 3 numbers of the phone number\r\n \\d{4} The last 4 digits of the phone num\r\n (?![^<]*>|[^<>]*<\\/) This is a negative lookup. Make sure the number is not directly nested in any tag. Ex: a tag with an ID or class that has digits in this format\r\n /g Global search\r\n\r\n */\r\n\r\n //search through the immediate children of the body and construct a new jQuery object from the matching elements.\r\n $(\"body *:not(iframe):not(script)\").contents().each(function() {\r\n //return if nodeType isn't a text node (Text Node: Represents textual content in an element or attribute. No children.)\r\n if (this.nodeType != 3) {\r\n return;\r\n }\r\n //we don't want to change phone numbers that are already in a link\r\n if ($(this).closest('a').length) {\r\n return;\r\n }\r\n //test against the regEx\r\n var match = $(this).text().match(phoneRegEx);\r\n if (match === null || match.length === 0) {\r\n return;\r\n }\r\n var newhtml = $(this).text().replace(phoneRegEx, function(match) {\r\n //remove spaces, dashes, dots and parenthesis for the href\r\n var phonenumber = match.replace(/ /g, \"\").replace(/-/g, \"\").replace(/\\./g, \"\").replace(/\\(/g, \"\").replace(/\\)/g, \"\");\r\n var link = '' + match + '';\r\n return link;\r\n });\r\n $(this).replaceWith(newhtml);\r\n });\r\n };\r\n\r\n /*\r\n This function is used for the 'click to call'. This can be used for all mobile devices.\r\n IOS automatically converts phone numbers, but does not recognize all phone formats (EX: 555-555-5555)\r\n so applying this for IOS will ensure all phone number get converted. This plugin will not break the default number conversion by IOS.\r\n Here is an example for calling this on IOS and Android devices:\r\n */\r\n\r\n var isAppleDevice = function() {\r\n \"use strict\";\r\n if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n };\r\n\r\n var isAndroidDevice = function() {\r\n \"use strict\";\r\n if (/Android/i.test(navigator.userAgent)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n };\r\n\r\n /*\r\n If you are using infinite scrolling where new phone numbers may be added after the script has run, or other dynamic phone numbers that are populated via script after page load, you’ll need to make sure to add those as well.\r\n I added this functionality for the infinite scrolling for providers and locations for Milford just so we don’t have to scan the entire page again when new entries are added:\r\n */\r\n\r\n function infiniteScrollClickToCall() { //use this for infinite scrolling instead of looking through the entire site each time\r\n $('.DrListContainer ul li span.Phone, .LocationsList ul li span.Phone').each(function() { //only look for phone numbers that have a class of phone (this should be all of them)\r\n if ($(this).find('a').length === 0) { //disregard phone numbers that are already in an anchor\r\n var regex = /([(]?\\d{3}[)]?)[(\\s)?.-](\\d{3})[\\s.-](\\d{4})/g; // Adding phone # links around phone numbers\r\n var text = $(this).html();\r\n text = text.replace(regex, \"$&\");\r\n $(this).html(text);\r\n }\r\n });\r\n }\r\n\r\n return {\r\n isAppleDevice: isAppleDevice,\r\n isAndroidDevice: isAndroidDevice,\r\n infiniteScrollClickToCall: infiniteScrollClickToCall,\r\n clickToCall: clickToCall\r\n };\r\n})(jQuery);\r\n\r\nvar equalHeight = (function($) {\r\n \"use strict\";\r\n\r\n // remove inline min height from the group\r\n function clear(group) {\r\n group.css('min-height', '');\r\n }\r\n\r\n // make group equal heights\r\n function equalHeight(group) {\r\n\r\n // reset height set by this script\r\n clear(group);\r\n\r\n // defining a variable that will keep track of the height of the tallest element\r\n var tallest = 0;\r\n\r\n // loop through elements, find the tallest outer height (includes padding)\r\n group.each(function () {\r\n\r\n // this is the outer height of the element (it doesn't round up or down to whole numbers)\r\n var thisHeight = this.getBoundingClientRect().bottom - this.getBoundingClientRect().top;\r\n\r\n if (thisHeight > tallest) {\r\n tallest = thisHeight;\r\n }\r\n });\r\n\r\n // loop through elements again, individually set their min-height so that their total height (including padding) = our tallest element\r\n group.each(function () {\r\n\r\n // if this has css box-sizing: border box, set the min-height equal to the tallest\r\n if (isBorderBox(this)) {\r\n\r\n group.css('min-height', Math.ceil(tallest));\r\n\r\n } else {\r\n\r\n // if an element has padding\r\n if ($(this).outerHeight() > $(this).height()) {\r\n\r\n // calulate how much border and padding is on the element\r\n var thisPadding = $(this).outerHeight() - $(this).height();\r\n\r\n // set the height of the element to the tallest, but leave room for the padding\r\n group.css('min-height', Math.ceil(tallest - thisPadding));\r\n\r\n } else {\r\n\r\n // if the element has no padding, simply set the height to our tallest\r\n group.css('min-height', Math.ceil(tallest));\r\n }\r\n }\r\n });\r\n }\r\n\r\n // check to see if the page is using box-sizing: border-box;\r\n function isBorderBox(elem) {\r\n return window.getComputedStyle(elem).boxSizing === \"border-box\";\r\n };\r\n\r\n return {\r\n equalHeight: equalHeight,\r\n outerHeight: equalHeight,\r\n clear: clear\r\n };\r\n\r\n})(jQuery);\r\n\r\n//-------------------------------------------------\r\n//\t\tyoutube playlist jquery plugin\r\n//\t\tCreated by dan@geckonm.com\r\n//\t\twww.geckonewmedia.com\r\n//\r\n//\t\tv1.1 - updated to allow fullscreen \r\n//\t\t\t - thanks Ashraf for the request\r\n//-------------------------------------------------\r\n//modified by Geonetric to include iframe instead of old embed code.\r\n\r\njQuery.fn.ytplaylist = function (options) {\r\n\r\n\t// default settings\r\n\tvar options = jQuery.extend({\r\n\t\tholderId: 'yt_holder',\r\n\t\tplayerHeight: '300',\r\n\t\tplayerWidth: '450',\r\n\t\taddThumbs: false,\r\n\t\tthumbSize: 'small',\r\n\t\tshowInline: false,\r\n\t\tautoPlay: false,\r\n\t\tshowRelated: false,\r\n\t\tallowFullScreen: true\r\n\t}, options);\r\n\r\n\treturn this.each(function () {\r\n\t\tvar selector = $(this);\r\n\t\tvar autoPlay = \"\";\r\n\t\tvar showRelated = \"?rel=0\";\r\n\t\tvar fullScreen = \"\";\r\n\t\tif (options.autoPlay) autoPlay = \"&autoplay=1\";\r\n\t\tif (options.showRelated) showRelated = \"?rel=1\";\r\n\t\tif (options.allowFullScreen) fullScreen = \"allowfullscreen\";\r\n\r\n\t\t//throw a youtube player in\r\n\t\tfunction play(id) {\r\n\t\t\tvar html = '';\r\n\r\n\t\t\thtml += '';\r\n\r\n\t\t\treturn html;\r\n\r\n\t\t};\r\n\r\n\t\t//grab a youtube id from a (clean, no querystring) url (thanks to http://jquery-howto.blogspot.com/2009/05/jyoutube-jquery-youtube-thumbnail.html)\r\n\t\tfunction youtubeid(url) {\r\n\t\t\tif (url.indexOf(\"watch\") >= 0) {\r\n\t\t\t\tvar ytid = url.match(\"[\\\\?&]v=([^&#]*)\");\r\n\t\t\t\tytid = ytid[1];\r\n\t\t\t\treturn ytid;\r\n\t\t\t} else {\r\n\t\t\t\tvar ytid = url.split('/');\r\n\t\t\t\tytid = ytid[3];\r\n\t\t\t\treturn ytid;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\r\n\t\t//load inital video\r\n\t\tvar firstVid = selector.children(\"li:first-child\").addClass(\"currentvideo\").children(\"a\").attr(\"href\");\r\n\t\t$(\"#\" + options.holderId + \"\").html(play(youtubeid(firstVid)));\r\n\r\n\t\t//load video on request\r\n\t\tselector.children(\"li\").children(\"a\").click(function () {\r\n\r\n\t\t\tif (options.showInline) {\r\n\t\t\t\t$(\"li.currentvideo\").removeClass(\"currentvideo\");\r\n\t\t\t\t$(this).parent(\"li\").addClass(\"currentvideo\").html(play(youtubeid($(this).attr(\"href\"))));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$(\"#\" + options.holderId + \"\").html(play(youtubeid($(this).attr(\"href\"))));\r\n\t\t\t\t$(this).parent().parent(\"ul\").find(\"li.currentvideo\").removeClass(\"currentvideo\");\r\n\t\t\t\t$(this).parent(\"li\").addClass(\"currentvideo\");\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t});\r\n\r\n\t\t//do we want thumbs with that?\r\n\t\tif (options.addThumbs) {\r\n\r\n\t\t\tselector.children().each(function (i) {\r\n\r\n\t\t\t\tvar replacedText = $(this).text();\r\n\r\n\t\t\t\tif (options.thumbSize == 'small') {\r\n\t\t\t\t\tvar thumbUrl = \"http://img.youtube.com/vi/\" + youtubeid($(this).children(\"a\").attr(\"href\")) + \"/2.jpg\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tvar thumbUrl = \"http://img.youtube.com/vi/\" + youtubeid($(this).children(\"a\").attr(\"href\")) + \"/0.jpg\";\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t$(this).children(\"a\").empty().html(\"\" + replacedText);\r\n\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n};\r\n\r\nfunction convertNumberToWords(amount) {\r\n var words = new Array();\r\n words[0] = '';\r\n words[1] = 'One';\r\n words[2] = 'Two';\r\n words[3] = 'Three';\r\n words[4] = 'Four';\r\n words[5] = 'Five';\r\n words[6] = 'Six';\r\n words[7] = 'Seven';\r\n words[8] = 'Eight';\r\n words[9] = 'Nine';\r\n words[10] = 'Ten';\r\n words[11] = 'Eleven';\r\n words[12] = 'Twelve';\r\n words[13] = 'Thirteen';\r\n words[14] = 'Fourteen';\r\n words[15] = 'Fifteen';\r\n words[16] = 'Sixteen';\r\n words[17] = 'Seventeen';\r\n words[18] = 'Eighteen';\r\n words[19] = 'Nineteen';\r\n words[20] = 'Twenty';\r\n words[30] = 'Thirty';\r\n words[40] = 'Forty';\r\n words[50] = 'Fifty';\r\n words[60] = 'Sixty';\r\n words[70] = 'Seventy';\r\n words[80] = 'Eighty';\r\n words[90] = 'Ninety';\r\n amount = amount.toString();\r\n var atemp = amount.split(\".\");\r\n var number = atemp[0].split(\",\").join(\"\");\r\n var n_length = number.length;\r\n var words_string = \"\";\r\n if (n_length <= 9) {\r\n var n_array = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);\r\n var received_n_array = new Array();\r\n for (var i = 0; i < n_length; i++) {\r\n received_n_array[i] = number.substr(i, 1);\r\n }\r\n for (var i = 9 - n_length, j = 0; i < 9; i++, j++) {\r\n n_array[i] = received_n_array[j];\r\n }\r\n for (var i = 0, j = 1; i < 9; i++, j++) {\r\n if (i == 0 || i == 2 || i == 4 || i == 7) {\r\n if (n_array[i] == 1) {\r\n n_array[j] = 10 + parseInt(n_array[j]);\r\n n_array[i] = 0;\r\n }\r\n }\r\n }\r\n value = \"\";\r\n for (var i = 0; i < 9; i++) {\r\n if (i == 0 || i == 2 || i == 4 || i == 7) {\r\n value = n_array[i] * 10;\r\n } else {\r\n value = n_array[i];\r\n }\r\n if (value != 0) {\r\n words_string += words[value] + \" \";\r\n }\r\n if ((i == 1 && value != 0) || (i == 0 && value != 0 && n_array[i + 1] == 0)) {\r\n words_string += \"Crores \";\r\n }\r\n if ((i == 3 && value != 0) || (i == 2 && value != 0 && n_array[i + 1] == 0)) {\r\n words_string += \"Lakhs \";\r\n }\r\n if ((i == 5 && value != 0) || (i == 4 && value != 0 && n_array[i + 1] == 0)) {\r\n words_string += \"Thousand \";\r\n }\r\n if (i == 6 && value != 0 && (n_array[i + 1] != 0 && n_array[i + 2] != 0)) {\r\n words_string += \"Hundred and \";\r\n } else if (i == 6 && value != 0) {\r\n words_string += \"Hundred \";\r\n }\r\n }\r\n words_string = words_string.split(\" \").join(\" \");\r\n }\r\n return words_string;\r\n}"],"file":"plugins.js"}