New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ibp-cdn

Package Overview
Dependencies
Maintainers
0
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibp-cdn - npm Package Compare versions

Comparing version

to
3.0.4

ivrfont.css

2

onesearch.js

@@ -1,2 +0,2 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var l=t();for(var a in l)("object"==typeof exports?exports:e)[a]=l[a]}}(self,(function(){return(()=>{var e={809:()=>{var e;(e=jQuery).fn.extend({OneSearch:function(t){var l=e.extend({ServiceUrl:"",OneSearchName:"",OneSearchDS:null,MinCharLimit:3,EnableCurrentLocation:!1,EnablePreList:!1,AutoSelectFirstItem:!1,ResultLimit:10,EnableTouch:!1,DataSource:null,DataSourceControl:null,ContainerCss:"",ItemCss:"",HighlightItemCss:"",Region:"US",Locale:"NONE",HelpText:"",AnimatePlaceholderText:!1,MultiSelect:!1,MultiSelectBoxId:"",MultiSelectShowHelpText:!0,MultiKeywordDelimiter:"",LoadingImageUrl:"",ParentContainer:"",BeforeCall:null,AfterCall:null,OnSuccess:null,OnError:null,OnSelect:null,OnTextChange:null,OnSearch:null,OnIncrementalSearch:null,OnMultiSelectRemove:null,SearchMode:"Database",TestMode:!1,StickyMode:!1,EnableCategoryView:!1},t),a=null,n=null,r=null,o=null,s="",c="",d=null,u=null,h=[],p=0,m=!1,v=!1;return this.each((function(){!function(i){if(l.StickyMode&&!l.TestMode&&(l.TestMode=!0),a=i,l.AutoSelectFirstItem&&(n=e('input[id="'+e(a).attr("id")+'_AUTO_ITEM"]')),e(a).attr("autocomplete","nope"),e(a).attr("name",e(a).attr("id").replace(/\$/gi,"_")+(new Date).valueOf()),window.onpopstate=function(t){e(a).attr("name",e(a).attr("id").replace(/\$/gi,"_")+(new Date).valueOf())},r=e("<div>").attr("id",e(a).attr("id")+"_OneSearch").css("position",l.EnableTouch?"relative":"absolute").css("top",M(e(a))).css("width",_(e(a))).css("display","none").addClass(l.ContainerCss).html(l.HelpText),""!=l.ParentContainer?e("#"+l.ParentContainer).append(r):r.insertAfter(e(a)),e(a).closest("div").click((function(t){"block"==e(a).css("display")&&""!=e(a).html()||"CloseArea"!=t.target.className&&setTimeout((function(){e(a).focus()}),500)})),l.MultiSelect&&(""!=l.MultiSelectBoxId&&(o=e("#"+l.MultiSelectBoxId)),null!=o&&""!=l.MultiSelectBoxCss&&o.addClass(l.MultiSelectBoxCss),l.MultiSelect&&e('input[type="hidden"][id^="'+e(a).attr("id")+'"]').each((function(){if(""!=e(this).val()){var t={},l=e(this).attr("id").split("_");t.rt=l[l.length-2],t.n=l[l.length-1],T(t,e(this).val(),!0)}}))),l.EnableCurrentLocation){var d=e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLAT"]').val(),g=e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLONG"]').val(),I=e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RDS"]').val();void 0!==d&&void 0!==g&&void 0!==I&&""!=d&&""!=g&&""!=I&&(v=!0)}e(a).keydown((function(t){switch(t.keyCode){case 9:case 13:l.AutoSelectFirstItem&&e(a).val().length>0?(p>0?C():y(0,!1,!0),m=!1):(C(),m=!1);break;case 38:x(-1);break;case 39:l.AutoSelectFirstItem&&(y(0,!1,!0),e(r).hide(),e(n).val(""));break;case 40:x(1);break;case 27:e(r).hide(),u=null,h=[],p=0}})),e(a).keypress((function(t){parseInt(r.css("width"))!=_(e(a))&&r.css("width",_(e(a))),parseInt(r.css("top"))!=M(e(a))&&r.css("top",M(e(a))),13==t.keyCode&&t.preventDefault()})),e(a).keyup((function(t){27!=t.keyCode&&(8!=t.keyCode&&46!=t.keyCode&&88!=t.keyCode&&86!=t.keyCode||0!=e(a).val().length||(T(null,null),l.AutoSelectFirstItem&&n.val("")),13==t.keyCode&&e(a).val().length>0&&!m?l.OnSearch&&l.OnSearch():13==t.keyCode&&e(a).val().length>0&&l.AutoSelectFirstItem?p>0?C():y(0,!1,!0):l.OnIncrementalSearch&&l.OnIncrementalSearch(),e(a).val().length>=l.MinCharLimit||l.EnablePreList||l.EnableCurrentLocation?e(r).show():e(r).hide(),13==t.keyCode&&e(r).hide(),e(a).val().indexOf(s)<0&&e(r).html(""),8!=t.keyCode&&46!=t.keyCode||(s="",c=""),s!=e(a).val()&&(l.OnTextChange&&l.OnTextChange(e(a).val()),T(null,null),s=e(a).val(),"none"!=e(r).css("display")&&(""!=l.LoadingImageUrl&&e(a).val().length>=l.MinCharLimit&&e(r).html('<img src="'+l.LoadingImageUrl+'" />'),setTimeout((function(){S()}),500))))})),e(a).focus((function(){if(parseInt(r.css("width"))!=_(e(a))&&r.css("width",_(e(a))),parseInt(r.css("top"))!=M(e(a))&&r.css("top",M(e(a))),l.MultiSelect)if(o.find("a.agora-onesearch-multi-sel-item-close").length>0){var n=e("<div>").html(e(o.html()));e(n).find("a.agora-onesearch-multi-sel-item-close").each((function(){e(this).attr("onclick","javascript:$('#"+t.MultiSelectBoxId+" #"+e(this).attr("id")+"').trigger('click')")})),l.MultiSelectShowHelpText?l.HelpText='<div style="padding:7px"><font style="color:red">You have already selected</font>'+(l.StickyMode?'<a class="CloseArea" href="javascript:void(0);" title="Click here to hide selected filters." onclick="$(\'#'+e(a).attr("id")+"_OneSearch').hide();\">Close</a>":"")+'<hr style="margin:0px 0px 7px 0px" />'+n.html()+"</div>":l.EnableCurrentLocation&&e(n).append(f())}else l.HelpText="",l.EnableCurrentLocation&&(0==e(r).find("[data-location-search]").length&&e(r).append(f()),e(r).show());l.EnablePreList?(S(),e(r).show()):!l.MultiSelect&&l.EnableCurrentLocation?(0==e(r).find("[data-location-search]").length&&e(r).append(f()),console.log(f()),e(r).show()):""!=l.HelpText&&""==e(a).val()&&(e(r).html(l.HelpText),parseInt(r.css("width"))!=_(e(a))&&r.css("width",_(e(a))),parseInt(r.css("top"))!=M(e(a))&&r.css("top",M(e(a))),e(r).show())})),e(a).blur((function(){l.AutoSelectFirstItem&&e(a).val().length>0&&!l.MultiSelect&&setTimeout((function(){var t=e(a).data("is-manual-select");void 0!==t&&0!=t||y(0,!0,!0),e(a).data("is-manual-select",!1)}),50),setTimeout((function(){l.TestMode?(e(r).find("[data-location-search]").length>0&&l.TestMode||l.StickyMode&&0==e(r).find("div.agora-onesearch-multi-sel-item-cont").length)&&(e(r).html(""),e(r).hide(),e(r).parent().removeClass("is-dirty")):(e(r).html(""),e(r).hide(),0==e(a).val().length&&e(r).parent().removeClass("is-dirty"))}),200)})),S(),1==l.AnimatePlaceholderText&&""==e(a).val()&&AnimatePlaceholderText(e(a),"",0)}(e(this))}));function f(){return l.EnableCurrentLocation&&(document.location.protocol.toLowerCase().indexOf("https")>-1||document.location.hostname.indexOf("localhost")>-1)?e("<a>").html('<i class="material-icons notranslate">location_on</i>'+e(a).attr("EnableCurrentLocationLabel")).css("display","block").css("width","100%").css("padding","3px").css("color","red").attr("idx",-1).addClass("get-my-direction").attr("data-location-search","").mouseover((function(){e(this).css("background-color:red"),e(this).addClass(l.HighlightItemCss)})).click((function(){g(e(this).attr("idx"))})).on("tap",(function(){g(e(this).attr("idx"))})).mouseout((function(){e(this).removeClass(l.HighlightItemCss)})):null}function g(t){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(t){e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLAT"]').val(t.coords.latitude),e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLONG"]').val(t.coords.longitude),e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RDS"]').val(null!=e(a).attr("DefaultSearchRadius")&&"0"!=e(a).attr("DefaultSearchRadius")?e(a).attr("DefaultSearchRadius"):"5"),v=!0,l.OnSelect&&l.OnSelect({k:t.coords.latitude+"|"+t.coords.longitude,n:"IDCLATITUDE|IDCLONGITUDE",rt:"LOCATION"}),l.OnSuccess&&l.OnSuccess()})),y(t)}function S(){(c!=e(a).val()||l.EnablePreList)&&(null!=d&&d.abort(),e(a).val().length<l.MinCharLimit?s="":c=e(a).val(),!l.EnablePreList&&e(a).val().length<l.MinCharLimit||(l.AutoSelectFirstItem&&(e(n).val(""),e(a).data("is-manual-select",!1)),d=e.ajax({type:"POST",url:l.ServiceUrl+"?Keyword="+(e(a).val().length<l.MinCharLimit?"":e(a).val().replace(/#/g,"%23"))+"&t="+(new Date).getTime(),data:{Keyword:e(a).val().length<l.MinCharLimit?"":e(a).val(),SearchMode:l.SearchMode,OneSearchName:l.OneSearchName,Region:l.Region,Locale:l.Locale,AdditionalWhere:e(a).attr("AdditionalWhere")},dataType:"json",success:function(t){if(u=t,p=0,e(r).html(""),null!=t&&0!=t.length){var n="",o="",s=null,c="",d="";for(i=0;i<t.length;i++){if(n=b(t[i].l,e(a).val()),null!=(o=L(l.OneSearchDS,t[i].rt,t[i].n))&&null!=o.ItemTemplate&&""!=o.ItemTemplate)n=(n=o.ItemTemplate.replace("{$l}",b(t[i].l,e(a).val()))).replace("{$d}",t[i].d);else if(null!=o&&o.ItemTemplates.length>0)for(j=0;j<o.ItemTemplates.length;j++)o.ItemTemplates[j].Locale==l.Locale&&(n=(n=o.ItemTemplates[j].Template.replace("{$l}",b(t[i].l,e(a).val()))).Template.replace("{$d}",t[i].d));s=e("<a>").html(n).css("display","block").css("width","100%").css("padding","3px").css("text-decoration","none").css("color","black").attr("idx",i).mouseover((function(){e(this).addClass(l.HighlightItemCss)})).mousedown((function(){e(a).data("is-manual-select",!0)})).click((function(){y(e(this).attr("idx"))})).on("tap",(function(){e(a).data("is-manual-select",!0),y(e(this).attr("idx"))})).mouseout((function(){e(this).removeClass(l.HighlightItemCss)})),0==i&&l.AutoSelectFirstItem&&I(i),l.EnableCategoryView?(d!=t[i].g&&((c=e("<div>").addClass("OneSearchBox-category-"+t[i].g)).append(e("<span>").html(t[i].g)),d=t[i].g),c.append(s),e(r).append(c),0==i&&e(r)[i].className.includes("OneSearchBox-")&&(e(r)[i].className=e(r)[i].className.replace(/\bOneSearchBox-[A-Za-z]*\b/g,"")),e(r).addClass("OneSearchBox-"+t[i].g)):e(r).append(s)}}else e(r).hide()},statusCode:{404:function(){console.log("Service (agoraOneSearch) not found!")}}})))}function C(){if(!(null==u||u.length<p-1||p<=0)){var t,n="",i=L(l.OneSearchDS,u[p-1].rt,u[p-1].n);null!=i&&""!=i.ItemTemplate&&(n=null!=i.Selector&&null!=i.Selector&&"k"==i.Selector?u[p-1].k:u[p-1].l),t=u[p-1].l,l.MultiSelect?e(a).val(""):e(a).val(t),s=e(a).val(),T(u[p-1],n),l.AutoSelectFirstItem&&I(p-1),l.OnSelect&&l.OnSelect(u[p-1]),p=0,l.TestMode||e(r).html("")}}function y(t,i,o){var c="",d="";if(null!=i&&null!=i||(i=!1),null!=o&&null!=o||(o=!1),void 0!==u&&null!=u&&0!=u.length){var h=L(l.OneSearchDS,u[t].rt,u[t].n);null!=h&&""!=h.ItemTemplate&&(d=null!=h.Selector&&null!=h.Selector&&"k"==h.Selector?u[t].k:u[t].l),c=u[t].l,1!=o||c.toLowerCase().startsWith(e(a).val().toLowerCase())?(l.MultiSelect?(e(a).val(""),l.AutoSelectFirstItem&&e(n).val("")):(null!=h&&1!=h.SkipSelect?e(a).val(c):e(a).val(""),l.AutoSelectFirstItem&&e(n).val("")),s=e(a).val(),t>=0&&v&&(e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLAT"]').val(""),e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLONG"]').val(""),e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RDS"]').val(""),e("#draw_search").click()),null!=h&&1!=h.SkipSelect&&T(u[t],d),l.OnSelect&&l.OnSelect(u[t]),l.TestMode||i||e(r).html(""),l.MultiSelect&&setTimeout((function(){e(a).focus()}),200)):e(n).val("")}}function I(t){var i="";if(void 0!==u&&null!=u&&0!=u.length){var r=L(l.OneSearchDS,u[t].rt,u[t].n);if(null!=r&&""!=r.ItemTemplate&&(null!=r.Selector&&null!=r.Selector&&"k"==r.Selector?u[t].k:u[t].l),(i=u[t].l).toLowerCase().replace(/\,/g,"").startsWith(e(a).val().toLowerCase().replace(/\,/g,""))){var o=new RegExp(e(a).val(),"ig");e(n).val(i.replace(o,e(a).val())),s=e(a).val()}else e(n).val("")}}function T(t,n,r){if(l.MultiSelect){if(null==t)return;var s=e("#"+e(a).attr("id")+"_"+t.rt+"_"+t.n),c=n.split(";"),d=L(l.OneSearchDS,t.rt,t.n);for(i=0;i<c.length&&null!=d;i++)if(!(c[i].length<2)&&(-1==(";"+s.val().toLowerCase()+";").indexOf(";"+c[i].toLowerCase()+";")||r)){r||s.val(s.val()+";"+c[i]);var u=e("<div>").addClass("agora-onesearch-multi-sel-item-cont").attr("id","multiitem"+e(a).attr("id")+"_"+t.rt+"_"+t.n+c[i].replace(/\ /g,"_").replace(/\-/g,"_").replace(/[^A-z0-9]/g,"_")).append(e("<a>").addClass("agora-onesearch-multi-sel-item-close").attr("title","Click here to hide this area filter.").attr("id","multiitem_close_"+e(a).attr("id")+"_"+t.rt+"_"+t.n+c[i].replace(/\ /g,"_").replace(/\-/g,"_").replace(/[^A-z0-9]/g,"_")).attr("val",c[i]).html('<i class="fa fa-times-circle"></i>').click((function(){O(e(this),t,e(this).attr("val"))}))).append(e("<a>").html(d.MultiItemTemplate.replace("{$l}",c[i])));o.append(u)}!r&&l.OnMultiSelectRemove&&l.OnMultiSelectRemove()}else{if(e('input[type="hidden"][id^="'+e(a).attr("id")+'"]').each((function(){e(this).val("")})),null==t)return;e("#"+e(a).attr("id")+"_"+t.rt+"_"+t.n).val(n)}}function O(t,n,i){var o=e("#"+e(a).attr("id")+"_"+n.rt+"_"+n.n);0!=o.val().indexOf(";")&&o.val(";"+o.val()),o.val(o.val().replace(";"+i,"")),e(t).parent().remove(),""!=o.val()&&0!=e(r).find("div.agora-onesearch-multi-sel-item-cont").length||(e(r).html(""),e(r).hide()),l.OnMultiSelectRemove&&l.OnMultiSelectRemove()}function x(t){m=!0,t>0?p<e(r).find("a").length&&p++:p>1&&p--,e(r).find("a").each((function(){e(this).removeClass(l.HighlightItemCss)})),e(r).find(l.EnableCategoryView?"a[idx="+p+"]":"a:nth-child("+p+")").addClass(l.HighlightItemCss)}function _(e){if(null==e||0==e.length)return 0;var t=e.width();return t+=parseInt(e.css("padding-left"),10)+parseInt(e.css("padding-right"),10),t+=parseInt(e.css("borderLeftWidth"),10)+parseInt(e.css("borderRightWidth"),10),""!=l.ParentContainer&&(t+=e.offset().left),t}function M(e){if(null==e||0==e.length)return 0;var t=e.height();return t+=parseInt(e.css("padding-top"),10)+parseInt(e.css("padding-bottom"),10),t+=parseInt(e.css("borderTopWidth"),10)+parseInt(e.css("borderBottomWidth"),10),t+=e.position().top,""!=l.ParentContainer&&(t+=e.offset().top),t}function L(e,t,l){if(null!=h[t+"_"+l])return h[t+"_"+l];for(k=0;k<e.RecordTypes.length;k++)for(j=0;e.RecordTypes[k].Name==t&&j<e.RecordTypes[k].Fields.length;j++)if(e.RecordTypes[k].Fields[j].Name==l)return h[t+"_"+l]=e.RecordTypes[k].Fields[j],e.RecordTypes[k].Fields[j];return null}function b(e,t){return e.replace(new RegExp("("+function(e){return(e+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1")}(t)+")","gi"),"<strong>$1</strong>")}}})}},t={};function l(a){var n=t[a];if(void 0!==n)return n.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,l),i.exports}var a={};return(()=>{"use strict";a.__esModule=!0,l(809)})(),a})()}));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var l=t();for(var a in l)("object"==typeof exports?exports:e)[a]=l[a]}}(self,(function(){return(()=>{var e={809:()=>{var e;(e=jQuery).fn.extend({OneSearch:function(t){var l=e.extend({ServiceUrl:"",OneSearchName:"",OneSearchDS:null,MinCharLimit:3,EnableCurrentLocation:!1,EnablePreList:!1,AutoSelectFirstItem:!1,ResultLimit:10,EnableTouch:!1,DataSource:null,DataSourceControl:null,ContainerCss:"",ItemCss:"",HighlightItemCss:"",Region:"US",Locale:"NONE",HelpText:"",AnimatePlaceholderText:!1,MultiSelect:!1,MultiSelectBoxId:"",MultiSelectShowHelpText:!0,MultiKeywordDelimiter:"",LoadingImageUrl:"",ParentContainer:"",BeforeCall:null,AfterCall:null,OnSuccess:null,OnError:null,OnSelect:null,OnTextChange:null,OnSearch:null,OnIncrementalSearch:null,OnMultiSelectRemove:null,SearchMode:"Database",TestMode:!1,StickyMode:!1,EnableCategoryView:!1},t),a=null,n=null,r=null,o=null,s="",c="",d=null,u=null,h=[],p=0,m=!1,v=!1;return this.each((function(){!function(i){if(l.StickyMode&&!l.TestMode&&(l.TestMode=!0),a=i,l.AutoSelectFirstItem&&(n=e('input[id="'+e(a).attr("id")+'_AUTO_ITEM"]')),e(a).attr("autocomplete","nope"),e(a).attr("name",e(a).attr("id").replace(/\$/gi,"_")+(new Date).valueOf()),window.onpopstate=function(t){e(a).attr("name",e(a).attr("id").replace(/\$/gi,"_")+(new Date).valueOf())},r=e("<div>").attr("id",e(a).attr("id")+"_OneSearch").css("position",l.EnableTouch?"relative":"absolute").css("top",M(e(a))).css("width",_(e(a))).css("display","none").addClass(l.ContainerCss).html(l.HelpText),""!=l.ParentContainer?e("#"+l.ParentContainer).append(r):r.insertAfter(e(a)),e(a).closest("div").click((function(t){"block"==e(a).css("display")&&""!=e(a).html()||"CloseArea"!=t.target.className&&setTimeout((function(){e(a).focus()}),500)})),l.MultiSelect&&(""!=l.MultiSelectBoxId&&(o=e("#"+l.MultiSelectBoxId)),null!=o&&""!=l.MultiSelectBoxCss&&o.addClass(l.MultiSelectBoxCss),l.MultiSelect&&e('input[type="hidden"][id^="'+e(a).attr("id")+'"]').each((function(){if(""!=e(this).val()){var t={},l=e(this).attr("id").split("_");t.rt=l[l.length-2],t.n=l[l.length-1],T(t,e(this).val(),!0)}}))),l.EnableCurrentLocation){var d=e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLAT"]').val(),g=e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLONG"]').val(),I=e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RDS"]').val();void 0!==d&&void 0!==g&&void 0!==I&&""!=d&&""!=g&&""!=I&&(v=!0)}e(a).keydown((function(t){switch(t.keyCode){case 9:case 13:l.AutoSelectFirstItem&&e(a).val().length>0?(p>0?C():y(0,!1,!0),m=!1):(C(),m=!1);break;case 38:x(-1);break;case 39:l.AutoSelectFirstItem&&(y(0,!1,!0),e(r).hide(),e(n).val(""));break;case 40:x(1);break;case 27:e(r).hide(),u=null,h=[],p=0}})),e(a).keypress((function(t){parseInt(r.css("width"))!=_(e(a))&&r.css("width",_(e(a))),parseInt(r.css("top"))!=M(e(a))&&r.css("top",M(e(a))),13==t.keyCode&&t.preventDefault()})),e(a).keyup((function(t){27!=t.keyCode&&(8!=t.keyCode&&46!=t.keyCode&&88!=t.keyCode&&86!=t.keyCode||0!=e(a).val().length||(T(null,null),l.AutoSelectFirstItem&&n.val("")),13==t.keyCode&&e(a).val().length>0&&!m?l.OnSearch&&l.OnSearch():13==t.keyCode&&e(a).val().length>0&&l.AutoSelectFirstItem?p>0?C():y(0,!1,!0):l.OnIncrementalSearch&&l.OnIncrementalSearch(),e(a).val().length>=l.MinCharLimit||l.EnablePreList||l.EnableCurrentLocation?e(r).show():e(r).hide(),13==t.keyCode&&e(r).hide(),e(a).val().indexOf(s)<0&&e(r).html(""),8!=t.keyCode&&46!=t.keyCode||(s="",c=""),s!=e(a).val()&&(l.OnTextChange&&l.OnTextChange(e(a).val()),T(null,null),s=e(a).val(),"none"!=e(r).css("display")&&(""!=l.LoadingImageUrl&&e(a).val().length>=l.MinCharLimit&&e(r).html('<img src="'+l.LoadingImageUrl+'" />'),setTimeout((function(){S()}),500))))})),e(a).focus((function(){if(parseInt(r.css("width"))!=_(e(a))&&r.css("width",_(e(a))),parseInt(r.css("top"))!=M(e(a))&&r.css("top",M(e(a))),l.MultiSelect)if(o.find("a.agora-onesearch-multi-sel-item-close").length>0){var n=e("<div>").html(e(o.html()));e(n).find("a.agora-onesearch-multi-sel-item-close").each((function(){e(this).attr("onclick","javascript:$('#"+t.MultiSelectBoxId+" #"+e(this).attr("id")+"').trigger('click')")})),l.MultiSelectShowHelpText?l.HelpText='<div style="padding:7px"><font style="color:red">You have already selected</font>'+(l.StickyMode?'<a class="CloseArea" href="javascript:void(0);" title="Click here to hide selected filters." onclick="$(\'#'+e(a).attr("id")+"_OneSearch').hide();\">Close</a>":"")+'<hr style="margin:0px 0px 7px 0px" />'+n.html()+"</div>":l.EnableCurrentLocation&&e(n).append(f())}else l.HelpText="",l.EnableCurrentLocation&&(0==e(r).find("[data-location-search]").length&&e(r).append(f()),e(r).show());l.EnablePreList?(S(),e(r).show()):!l.MultiSelect&&l.EnableCurrentLocation?(0==e(r).find("[data-location-search]").length&&e(r).append(f()),console.log(f()),e(r).show()):""!=l.HelpText&&""==e(a).val()&&(e(r).html(l.HelpText),parseInt(r.css("width"))!=_(e(a))&&r.css("width",_(e(a))),parseInt(r.css("top"))!=M(e(a))&&r.css("top",M(e(a))),e(r).show())})),e(a).blur((function(){l.AutoSelectFirstItem&&e(a).val().length>0&&!l.MultiSelect&&setTimeout((function(){var t=e(a).data("is-manual-select");void 0!==t&&0!=t||y(0,!0,!0),e(a).data("is-manual-select",!1)}),50),setTimeout((function(){l.TestMode?(e(r).find("[data-location-search]").length>0&&l.TestMode||l.StickyMode&&0==e(r).find("div.agora-onesearch-multi-sel-item-cont").length)&&(e(r).html(""),e(r).hide(),e(r).parent().removeClass("is-dirty")):(e(r).html(""),e(r).hide(),0==e(a).val().length&&e(r).parent().removeClass("is-dirty"))}),300)})),S(),1==l.AnimatePlaceholderText&&""==e(a).val()&&AnimatePlaceholderText(e(a),"",0)}(e(this))}));function f(){return l.EnableCurrentLocation&&(document.location.protocol.toLowerCase().indexOf("https")>-1||document.location.hostname.indexOf("localhost")>-1)?e("<a>").html('<i class="material-icons notranslate">location_on</i>'+e(a).attr("EnableCurrentLocationLabel")).css("display","block").css("width","100%").css("padding","3px").css("color","red").attr("idx",-1).addClass("get-my-direction").attr("data-location-search","").mouseover((function(){e(this).css("background-color:red"),e(this).addClass(l.HighlightItemCss)})).click((function(){g(e(this).attr("idx"))})).on("tap",(function(){g(e(this).attr("idx"))})).mouseout((function(){e(this).removeClass(l.HighlightItemCss)})):null}function g(t){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(t){e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLAT"]').val(t.coords.latitude),e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLONG"]').val(t.coords.longitude),e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RDS"]').val(null!=e(a).attr("DefaultSearchRadius")&&"0"!=e(a).attr("DefaultSearchRadius")?e(a).attr("DefaultSearchRadius"):"5"),v=!0,l.OnSelect&&l.OnSelect({k:t.coords.latitude+"|"+t.coords.longitude,n:"IDCLATITUDE|IDCLONGITUDE",rt:"LOCATION"}),l.OnSuccess&&l.OnSuccess()})),y(t)}function S(){(c!=e(a).val()||l.EnablePreList)&&(null!=d&&d.abort(),e(a).val().length<l.MinCharLimit?s="":c=e(a).val(),!l.EnablePreList&&e(a).val().length<l.MinCharLimit||(l.AutoSelectFirstItem&&(e(n).val(""),e(a).data("is-manual-select",!1)),d=e.ajax({type:"POST",url:l.ServiceUrl+"?Keyword="+(e(a).val().length<l.MinCharLimit?"":e(a).val().replace(/#/g,"%23"))+"&t="+(new Date).getTime(),data:{Keyword:e(a).val().length<l.MinCharLimit?"":e(a).val(),SearchMode:l.SearchMode,OneSearchName:l.OneSearchName,Region:l.Region,Locale:l.Locale,AdditionalWhere:e(a).attr("AdditionalWhere")},dataType:"json",success:function(t){if(u=t,p=0,e(r).html(""),null!=t&&0!=t.length){var n="",o="",s=null,c="",d="";for(i=0;i<t.length;i++){if(n=b(t[i].l,e(a).val()),null!=(o=L(l.OneSearchDS,t[i].rt,t[i].n))&&null!=o.ItemTemplate&&""!=o.ItemTemplate)n=(n=o.ItemTemplate.replace("{$l}",b(t[i].l,e(a).val()))).replace("{$d}",t[i].d);else if(null!=o&&o.ItemTemplates.length>0)for(j=0;j<o.ItemTemplates.length;j++)o.ItemTemplates[j].Locale==l.Locale&&(n=(n=o.ItemTemplates[j].Template.replace("{$l}",b(t[i].l,e(a).val()))).Template.replace("{$d}",t[i].d));s=e("<a>").html(n).css("display","block").css("width","100%").css("padding","3px").css("text-decoration","none").css("color","black").attr("idx",i).mouseover((function(){e(this).addClass(l.HighlightItemCss)})).mousedown((function(){e(a).data("is-manual-select",!0)})).click((function(){y(e(this).attr("idx"))})).on("tap",(function(){e(a).data("is-manual-select",!0),y(e(this).attr("idx"))})).mouseout((function(){e(this).removeClass(l.HighlightItemCss)})),0==i&&l.AutoSelectFirstItem&&I(i),l.EnableCategoryView?(d!=t[i].g&&((c=e("<div>").addClass("OneSearchBox-category-"+t[i].g)).append(e("<span>").html(t[i].g)),d=t[i].g),c.append(s),e(r).append(c),0==i&&e(r)[i].className.includes("OneSearchBox-")&&(e(r)[i].className=e(r)[i].className.replace(/\bOneSearchBox-[A-Za-z]*\b/g,"")),e(r).addClass("OneSearchBox-"+t[i].g)):e(r).append(s)}}else e(r).hide()},statusCode:{404:function(){console.log("Service (agoraOneSearch) not found!")}}})))}function C(){if(!(null==u||u.length<p-1||p<=0)){var t,n="",i=L(l.OneSearchDS,u[p-1].rt,u[p-1].n);null!=i&&""!=i.ItemTemplate&&(n=null!=i.Selector&&null!=i.Selector&&"k"==i.Selector?u[p-1].k:u[p-1].l),t=u[p-1].l,l.MultiSelect?e(a).val(""):e(a).val(t),s=e(a).val(),T(u[p-1],n),l.AutoSelectFirstItem&&I(p-1),l.OnSelect&&l.OnSelect(u[p-1]),p=0,l.TestMode||e(r).html("")}}function y(t,i,o){var c="",d="";if(null!=i&&null!=i||(i=!1),null!=o&&null!=o||(o=!1),void 0!==u&&null!=u&&0!=u.length){var h=L(l.OneSearchDS,u[t].rt,u[t].n);null!=h&&""!=h.ItemTemplate&&(d=null!=h.Selector&&null!=h.Selector&&"k"==h.Selector?u[t].k:u[t].l),c=u[t].l,1!=o||c.toLowerCase().startsWith(e(a).val().toLowerCase())?(l.MultiSelect?(e(a).val(""),l.AutoSelectFirstItem&&e(n).val("")):(null!=h&&1!=h.SkipSelect?e(a).val(c):e(a).val(""),l.AutoSelectFirstItem&&e(n).val("")),s=e(a).val(),t>=0&&v&&(e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLAT"]').val(""),e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RLONG"]').val(""),e('input[type="hidden"][id="'+e(a).attr("id")+'_GPS_RDS"]').val(""),e("#draw_search").click()),null!=h&&1!=h.SkipSelect&&T(u[t],d),l.OnSelect&&l.OnSelect(u[t]),l.TestMode||i||e(r).html(""),l.MultiSelect&&setTimeout((function(){e(a).focus()}),200)):e(n).val("")}}function I(t){var i="";if(void 0!==u&&null!=u&&0!=u.length){var r=L(l.OneSearchDS,u[t].rt,u[t].n);if(null!=r&&""!=r.ItemTemplate&&(null!=r.Selector&&null!=r.Selector&&"k"==r.Selector?u[t].k:u[t].l),(i=u[t].l).toLowerCase().replace(/\,/g,"").startsWith(e(a).val().toLowerCase().replace(/\,/g,""))){var o=new RegExp(e(a).val(),"ig");e(n).val(i.replace(o,e(a).val())),s=e(a).val()}else e(n).val("")}}function T(t,n,r){if(l.MultiSelect){if(null==t)return;var s=e("#"+e(a).attr("id")+"_"+t.rt+"_"+t.n),c=n.split(";"),d=L(l.OneSearchDS,t.rt,t.n);for(i=0;i<c.length&&null!=d;i++)if(!(c[i].length<2)&&(-1==(";"+s.val().toLowerCase()+";").indexOf(";"+c[i].toLowerCase()+";")||r)){r||s.val(s.val()+";"+c[i]);var u=e("<div>").addClass("agora-onesearch-multi-sel-item-cont").attr("id","multiitem"+e(a).attr("id")+"_"+t.rt+"_"+t.n+c[i].replace(/\ /g,"_").replace(/\-/g,"_").replace(/[^A-z0-9]/g,"_")).append(e("<a>").addClass("agora-onesearch-multi-sel-item-close").attr("title","Click here to hide this area filter.").attr("id","multiitem_close_"+e(a).attr("id")+"_"+t.rt+"_"+t.n+c[i].replace(/\ /g,"_").replace(/\-/g,"_").replace(/[^A-z0-9]/g,"_")).attr("val",c[i]).html('<i class="fa fa-times-circle"></i>').click((function(){O(e(this),t,e(this).attr("val"))}))).append(e("<a>").html(d.MultiItemTemplate.replace("{$l}",c[i])));o.append(u)}!r&&l.OnMultiSelectRemove&&l.OnMultiSelectRemove()}else{if(e('input[type="hidden"][id^="'+e(a).attr("id")+'"]').each((function(){e(this).val("")})),null==t)return;e("#"+e(a).attr("id")+"_"+t.rt+"_"+t.n).val(n)}}function O(t,n,i){var o=e("#"+e(a).attr("id")+"_"+n.rt+"_"+n.n);0!=o.val().indexOf(";")&&o.val(";"+o.val()),o.val(o.val().replace(";"+i,"")),e(t).parent().remove(),""!=o.val()&&0!=e(r).find("div.agora-onesearch-multi-sel-item-cont").length||(e(r).html(""),e(r).hide()),l.OnMultiSelectRemove&&l.OnMultiSelectRemove()}function x(t){m=!0,t>0?p<e(r).find("a").length&&p++:p>1&&p--,e(r).find("a").each((function(){e(this).removeClass(l.HighlightItemCss)})),e(r).find(l.EnableCategoryView?"a[idx="+p+"]":"a:nth-child("+p+")").addClass(l.HighlightItemCss)}function _(e){if(null==e||0==e.length)return 0;var t=e.width();return t+=parseInt(e.css("padding-left"),10)+parseInt(e.css("padding-right"),10),t+=parseInt(e.css("borderLeftWidth"),10)+parseInt(e.css("borderRightWidth"),10),""!=l.ParentContainer&&(t+=e.offset().left),t}function M(e){if(null==e||0==e.length)return 0;var t=e.height();return t+=parseInt(e.css("padding-top"),10)+parseInt(e.css("padding-bottom"),10),t+=parseInt(e.css("borderTopWidth"),10)+parseInt(e.css("borderBottomWidth"),10),t+=e.position().top,""!=l.ParentContainer&&(t+=e.offset().top),t}function L(e,t,l){if(null!=h[t+"_"+l])return h[t+"_"+l];for(k=0;k<e.RecordTypes.length;k++)for(j=0;e.RecordTypes[k].Name==t&&j<e.RecordTypes[k].Fields.length;j++)if(e.RecordTypes[k].Fields[j].Name==l)return h[t+"_"+l]=e.RecordTypes[k].Fields[j],e.RecordTypes[k].Fields[j];return null}function b(e,t){return e.replace(new RegExp("("+function(e){return(e+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1")}(t)+")","gi"),"<strong>$1</strong>")}}})}},t={};function l(a){var n=t[a];if(void 0!==n)return n.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,l),i.exports}var a={};return(()=>{"use strict";a.__esModule=!0,l(809)})(),a})()}));
//# sourceMappingURL=onesearch.js.map
{
"name": "ibp-cdn",
"version": "3.0.3",
"version": "3.0.4",
"description": "Style & JS optimized",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet