PageSourceSearch

https://lgpropartners.com/common/lib/calendar/js/calendar.min.js?rel=1791145067968

js lgpropartners.com collected 2026-10-05 19:56:54 UTC 20,092 bytes, 1 lines download raw bytes

1"use strict";Date.prototype.getWeek=function(){var t=new Date(this.getFullYear(),0,1);return Math.ceil(((this.getTime()-t.getTime())/864e5+t.getDay()+1)/7)},Date.prototype.getMonthFormatted=function(){var t=this.getMonth()+1;return t<10?"0"+t:t},Date.prototype.getDateFormatted=function(){var t=this.getDate();return t<10?"0"+t:t},String.prototype.format||(String.prototype.format=function(){var t=arguments;return this.replace(/{(\d+)}/g,function(e,a){return void 0!==t[a]?t[a]:e})}),String.prototype.formatNum||(String.prototype.formatNum=function(t){for(var e=""+this;e.length<t;)e="0"+e;return e}),function(t){var e={width:"100%",view:"month",day:"now",time_start:"06:00",time_end:"22:00",time_split:"30",events_source:"",tmpl_path:"tmpls/",tmpl_cache:!0,classes:{months:{inmonth:"cal-day-inmonth",outmonth:"cal-day-outmonth",saturday:"cal-day-weekend",sunday:"cal-day-weekend",holidays:"cal-day-holiday",today:"cal-day-today"},week:{workday:"cal-day-workday",saturday:"cal-day-weekend",sunday:"cal-day-weekend",holidays:"cal-day-holiday",today:"cal-day-today"}},modal:null,modal_type:"iframe",modal_title:null,views:{year:{slide_events:1,enable:1},month:{slide_events:1,enable:1},week:{enable:1},day:{enable:1}},merge_holidays:!1,onAfterEventsLoad:function(t){},onBeforeEventsLoad:function(t){t()},onAfterViewLoad:function(t){},events:[],templates:{year:"",month:"",week:"",day:""},stop_cycling:!1},a={first_day:2,holidays:{"01-01":"New Year's Day","01+3*1":"Birthday of Dr. Martin Luther King, Jr.","02+3*1":"Washington's Birthday","05-1*1":"Memorial Day","04-07":"Independence Day","09+1*1":"Labor Day","10+2*1":"Columbus Day","11-11":"Veterans Day","11+4*4":"Thanksgiving Day","25-12":"Christmas"}},o={error_noview:"Calendar: View {0} not found",error_dateformat:'Calendar: Wrong date format {0}. Should be either "now" or "yyyy-mm-dd"',error_loadurl:"Calendar: Event URL is not set",error_where:'Calendar: Wrong navigation direction {0}. Can be only "next" or "prev" or "today"',error_timedevide:"Calendar: Time split parameter should divide 60 without decimals. Something like 10, 15, 30",no_events_in_day:"No events in this day.",title_year:"{0}",title_month:"{0} {1}",title_week:"week {0} of {1}",title_day:"{0} {1} {2}, {3}",week:"Week {0}",all_day:"All day",time:"Time",events:"Events",before_time:"Ends before timeline",after_time:"Starts after timeline",m0:"January",m1:"February",m2:"March",m3:"April",m4:"May",m5:"June",m6:"July",m7:"August",m8:"September",m9:"October",m10:"November",m11:"December",ms0:"Jan",ms1:"Feb",ms2:"Mar",ms3:"Apr",ms4:"May",ms5:"Jun",ms6:"Jul",ms7:"Aug",ms8:"Sep",ms9:"Oct",ms10:"Nov",ms11:"Dec",d0:"Sunday",d1:"Monday",d2:"Tuesday",d3:"Wednesday",d4:"Thursday",d5:"Friday",d6:"Saturday"},i="";try{"object"==t.type(window.jstz)&&"function"==t.type(jstz.determine)&&(i=jstz.determine().name(),"string"!==t.type(i)&&(i=""))}catch(t){}function s(t,e){var a,o,i;for(o in i=t,a=t.indexOf("?")<0?"?":"&",e)i+=a+o+"="+encodeURIComponent(e[o]),a="&";return i}function n(e,o){var i=null!=e.options[o]?e.options[o]:null,s=null!=e.locale[o]?e.locale[o]:null;if("holidays"==o&&e.options.merge_holidays){var n={};return t.extend(!0,n,s||a.holidays),i&&t.extend(!0,n,i),n}return null!=i?i:null!=s?s:a[o]}function r(e,a){var o=[],i=n(e,"holidays");for(var s in i)o.push(s+":"+i[s]);if(o.push(a),(o=o.join("|"))in r.cache)return r.cache[o];var d=[];return t.each(i,function(e,o){var i=null,s=null,n=!1;if(t.each(e.split(">"),function(t,o){var r,d=null;if(r=/^(\d\d)-(\d\d)$/.exec(o))d=new Date(a,parseInt(r[2],10)-1,parseInt(r[1],10));else if(r=/^(\d\d)-(\d\d)-(\d\d\d\d)$/.exec(o))parseInt(r[3],10)==a&&(d=new Date(a,parseInt(r[2],10)-1,parseInt(r[1],10)));else if(r=/^easter(([+\-])(\d+))?$/.exec(o))d=function(t,e){var a=t%19,o=Math.floor(t/100),i=t%100,s=Math.floor(o/4),n=o%4,r=Math.floor((o+8)/25),l=Math.floor((o-r+1)/3),d=(19*a+o-s-l+15)%30,h=Math.floor(i/4),p=(32+2*n+2*h-d-i%4)%7,c=Math.floor((a+11*d+22*p)/451),u=d+p+7*c+114,m=Math.floor(u/31)-1;return new Date(t,m,u%31+1+(e||0),0,0,0)}(a,r[1]?parseInt(r[1],10):0);else if(r=/^(\d\d)([+\-])([1-5])\*([0-6])$/.exec(o)){var h=parseInt(r[1],10)-1,p=r[2],c=parseInt(r[3]),u=parseInt(r[4]);switch(p){case"+":for(var m=new Date(a,h,-6);m.getDay()!=u;)m=new Date(m.getFullYear(),m.getMonth(),m.getDate()+1);d=new Date(m.getFullYear(),m.getMonth(),m.getDate()+7*c);break;case"-":for(m=new Date(a,h+1,7);m.getDay()!=u;)m=new Date(m.getFullYear(),m.getMonth(),m.getDate()-1);d=new Date(m.getFullYear(),m.getMonth(),m.getDate()-7*c)}}if(!d)return l("Unknown holiday: "+e),n=!0,!1;switch(t){case 0:i=d;break;case 1:if(d.getTime()<=i.getTime())return l("Unknown holiday: "+e),n=!0,!1;s=d;break;default:return l("Unknown holiday: "+e),n=!0,!1}}),!n){var r=[];if(s)for(var h=new Date(i.getTime());h.getTime()<=s.getTime();h.setDate(h.getDate()+1))r.push(new Date(h.getTime()));else r.push(i);d.push({name:o,days:r})}}),r.cache[o]=d,r.cache[o]}function l(e){"object"==t.type(window.console)&&"function"==t.type(window.console.warn)&&window.console.warn("[Bootstrap-Calendar] "+e)}function d(a,o){return this.options=t.extend(!0,{position:{start:new Date,end:new Date}},e,a),this.setLanguage(this.options.language),this.context=o,o.css("width",this.options.width).addClass("cal-context"),this.view(),this}function h(e,a,o,i){e.stopPropagation();var s=(a=t(a)).closest(".cal-cell"),n=s.closest(".cal-before-eventlist"),r=s.data("cal-row");
1a.fadeOut("fast"),o.slideUp("fast",function(){var e=t(".events-list",s);o.html(i.options.templates["events-list"]({cal:i,events:i.getEventsBetween(parseInt(e.data("cal-start")),parseInt(e.data("cal-end")))})),n.after(o),i.activecell=t("[data-cal-date]",s).text(),t("#cal-slide-tick").addClass("tick"+r).show(),o.slideDown("fast",function(){t("body").one("click",function(){o.slideUp("fast"),i.activecell=0})})}),t("a.event-item").mouseenter(function(){t('a[data-event-id="'+t(this).data("event-id")+'"]').closest(".cal-cell1").addClass("day-highlight dh-"+t(this).data("event-class"))}),t("a.event-item").mouseleave(function(){t("div.cal-cell1").removeClass("day-highlight dh-"+t(this).data("event-class"))}),i._update_modal()}r.cache={},d.prototype.setOptions=function(e){t.extend(this.options,e),"language"in e&&this.setLanguage(e.language),"modal"in e&&this._update_modal()},d.prototype.setLanguage=function(e){window.calendar_languages&&e in window.calendar_languages?(this.locale=t.extend(!0,{},o,calendar_languages[e]),this.options.language=e):(this.locale=o,delete this.options.language)},d.prototype._render=function(){this.context.html(""),this._loadTemplate(this.options.view),this.stop_cycling=!1;var t={};t.cal=this,t.day=1,1==n(this,"first_day")?t.months=[this.locale.d1,this.locale.d2,this.locale.d3,this.locale.d4,this.locale.d5,this.locale.d6,this.locale.d0]:t.months=[this.locale.d0,this.locale.d1,this.locale.d2,this.locale.d3,this.locale.d4,this.locale.d5,this.locale.d6];var e=parseInt(this.options.position.start.getTime()),a=parseInt(this.options.position.end.getTime());switch(t.events=this.getEventsBetween(e,a),this.options.view){case"month":break;case"week":case"day":this._calculate_hour_minutes(t)}t.start=new Date(this.options.position.start.getTime()),t.lang=this.locale,this.context.append(this.options.templates[this.options.view](t)),this._update()},d.prototype._calculate_hour_minutes=function(e){var a=this;e.in_hour=60/parseInt(this.options.time_split),e.hour_split=parseInt(this.options.time_split),(!/^\d+$/.exec(e.in_hour)||this.options.time_split>30)&&t.error(this.locale.error_timedevide);var o=this.options.time_start.split(":"),i=this.options.time_end.split(":");e.hours=parseInt(i[0])-parseInt(o[0]);var s=e.hours*e.in_hour,n=6e4*parseInt(this.options.time_split),r=new Date(this.options.position.start.getTime());r.setHours(o[0]),r.setMinutes(o[1]);var d=new Date(this.options.position.start.getTime());d.setHours(i[0]),d.setMinutes(i[1]),e.all_day=[],e.by_hour=[],e.after_time=[],e.before_time=[],t.each(e.events,function(t,o){var i=new Date(o.start),h=new Date(o.end);if(o.start_hour=i.getHours().toString().formatNum(2)+":"+i.getMinutes().toString().formatNum(2),o.end_hour=h.getHours().toString().formatNum(2)+":"+h.getMinutes().toString().formatNum(2),i.getTime()<r.getTime()&&(l(1),o.start_hour=i.getDate()+" "+a.locale["ms"+i.getMonth()]+" "+o.start_hour),h.getTime()>d.getTime()&&(l(1),o.end_hour=h.getDate()+" "+a.locale["ms"+h.getMonth()]+" "+o.end_hour),i.getTime()<r.getTime()&&h.getTime()>d.getTime())e.all_day.push(o);else if(h.getTime()<r.getTime())e.before_time.push(o);else if(i.getTime()>d.getTime())e.after_time.push(o);else{var p=r.getTime()-i.getTime();o.top=p>=0?0:Math.abs(p)/n;var c=s-o.top,u=(h-i)/n;p>=0&&(u=(o.end-r.getTime())/n),o.lines=u,u>c&&(o.lines=c),e.by_hour.push(o)}})},d.prototype._hour=function(t,e){var a=this.options.time_start.split(":"),o=(t=""+(parseInt(a[0])+t),""+this.options.time_split*e);return t.formatNum(2)+":"+o.formatNum(2)},d.prototype._week=function(e){this._loadTemplate("week-days");var a={},o=parseInt(this.options.position.start.getTime()),i=parseInt(this.options.position.end.getTime()),s=[],r=n(this,"first_day");return t.each(this.getEventsBetween(o,i),function(t,e){var a=new Date(e.start),i=new Date(e.end);e.start_day=a.getDay(),1==r&&(e.start_day=(e.start_day+6)%7),e.days=i-a<=864e5?1:(i-a)/864e5,e.start<o&&(e.days=e.days-(o-a)/864e5,e.start_day=0),e.days=Math.ceil(e.days),e.start_day+e.days>7&&(e.days=7-e.start_day),s.push(e)}),a.events=s,a.cal=this,this.options.templates["week-days"](a)},d.prototype._month=function(t){this._loadTemplate("year-month");var e={cal:this},a=t+1;e.data_day=this.options.position.start.getFullYear()+"-"+(a<10?"0"+a:a)+"-01",e.month_name=this.locale["m"+t];var o=new Date(this.options.position.start.getFullYear(),t,1,0,0,0);return e.start=parseInt(o.getTime()),e.end=parseInt(new Date(this.options.position.start.getFullYear(),t+1,1,0,0,0).getTime()),e.events=this.getEventsBetween(e.start,e.end),this.options.templates["year-month"](e)},d.prototype._day=function(e,a){this._loadTemplate("month-day");var o={tooltip:"",cal:this},i=this.options.classes.months.outmonth,s=this.options.position.start.getDay();2==n(this,"first_day")?s++:s=0==s?7:s,a=a-s+1;var r=new Date(this.options.position.start.getFullYear(),this.options.position.start.getMonth(),a,0,0,0);a>0&&(i=this.options.classes.months.inmonth);var l=new Date(this.options.position.end.getTime()-1).getDate();(a+1>l&&(this.stop_cycling=!0),a>l&&(a-=l,i=this.options.classes.months.outmonth),i=t.trim(i+" "+this._getDayClass("months",r)),a<=0)&&(a=new Date(this.options.position.start.getFullYear(),this.options.position.start.getMonth(),0).getDate()-Math.abs(a),i+=" cal-month-first-row");var d=this._getHoliday(r);return!1!==d&&(o.tooltip=d),o.data_day=r.getFullYear()+"-"+r.getMonthFormatted()+"-"+(a<10?"0"+a:a),o.cls=i,o.day=a,o.start=parseInt(r.getTime()),o.end=parseInt(o.start+864e5),o.events=this.getEventsBetween(o.start,o.end),this.options.templates["month-day"](o)},d.prototype._getHoliday=function(e){var a=!1;return t.each(r(this,e.getFullYear()),function(){var o=!1;if(t.each(this.days,function(){if(this.toDateString()==e.toDateString())return o=!0,!1}),o)return a=this.name,!1}),a},d.prototype._getHolidayName=function(t){var e=this._getHoliday(t);return!1===e?"":e},d.prototype._getDayClass=function(t,e){var a=this,o=function(e,o){var i;"string"==typeof(i=a.options.classes&&t in a.options.classes&&e in a.options.classes[t]?a.options.classes[t][e]:"")&&i.length&&o.push(i)},i=[];switch(e.toDateString()==(new Date).toDateString()&&o("today",i),!1!==this._getHoliday(e)&&o("holidays",i),e.getDay()){case 0:o("sunday",i);break;case 6:o("saturday",i)}return o(e.toDateString(),i),i.join(" ")},d.prototype.view=function(t){if(t){if(!this.options.views[t].enable)return;this.options.view=t}this._init_position(),this._loadEvents(),this._render(),this.options.onAfterViewLoad.c
1all(this,this.options.view)},d.prototype.navigate=function(e,a){var o=t.extend({},this.options.position);if("next"==e)switch(this.options.view){case"year":o.start.setFullYear(this.options.position.start.getFullYear()+1);break;case"month":o.start.setMonth(this.options.position.start.getMonth()+1);break;case"week":o.start.setDate(this.options.position.start.getDate()+7);break;case"day":o.start.setDate(this.options.position.start.getDate()+1)}else if("prev"==e)switch(this.options.view){case"year":o.start.setFullYear(this.options.position.start.getFullYear()-1);break;case"month":o.start.setMonth(this.options.position.start.getMonth()-1);break;case"week":o.start.setDate(this.options.position.start.getDate()-7);break;case"day":o.start.setDate(this.options.position.start.getDate()-1)}else"today"==e?o.start.setTime((new Date).getTime()):t.error(this.locale.error_where.format(e));this.options.day=o.start.getFullYear()+"-"+o.start.getMonthFormatted()+"-"+o.start.getDateFormatted(),this.view(),_.isFunction(a)&&a()},d.prototype._init_position=function(){var e,a,o;if(t(".tooltip").hide(),"now"==this.options.day){var i=new Date;e=i.getFullYear(),a=i.getMonth(),o=i.getDate()}else if(this.options.day.match(/^\d{4}-\d{2}-\d{2}$/g)){var s=this.options.day.split("-");e=parseInt(s[0],10),a=parseInt(s[1],10)-1,o=parseInt(s[2],10)}else t.error(this.locale.error_dateformat.format(this.options.day));switch(this.options.view){case"year":this.options.position.start.setTime(new Date(e,0,1).getTime()),this.options.position.end.setTime(new Date(e+1,0,1).getTime());break;case"month":this.options.position.start.setTime(new Date(e,a,1).getTime()),this.options.position.end.setTime(new Date(e,a+1,1).getTime());break;case"day":this.options.position.start.setTime(new Date(e,a,o).getTime()),this.options.position.end.setTime(new Date(e,a,o+1).getTime());break;case"week":var r,l=new Date(e,a,o);r=1==n(this,"first_day")?l.getDate()-(l.getDay()+6)%7:l.getDate()-l.getDay(),this.options.position.start.setTime(new Date(e,a,r).getTime()),this.options.position.end.setTime(new Date(e,a,r+7).getTime());break;default:t.error(this.locale.error_noview.format(this.options.view))}return this},d.prototype.getTitle=function(){var t=this.options.position.start;switch(this.options.view){case"year":return this.locale.title_year.format(t.getFullYear());case"month":return this.locale.title_month.format(this.locale["m"+t.getMonth()],t.getFullYear());case"week":return this.locale.title_week.format(t.getWeek(),t.getFullYear());case"day":return this.locale.title_day.format(this.locale["d"+t.getDay()],t.getDate(),this.locale["m"+t.getMonth()],t.getFullYear())}},d.prototype.isToday=function(){var t=(new Date).getTime();return t>this.options.position.start&&t<this.options.position.end},d.prototype.getStartDate=function(){return this.options.position.start},d.prototype.getEndDate=function(){return this.options.position.end},d.prototype._loadEvents=function(){var e,a=this,o=null;switch("events_source"in this.options&&""!==this.options.events_source?o=this.options.events_source:"events_url"in this.options&&(o=this.options.events_url,l("The events_url option is DEPRECATED and it will be REMOVED in near future. Please use events_source instead.")),t.type(o)){case"function":e=function(){return o(a.options.position.start,a.options.position.end,i)};break;case"array":e=function(){return[].concat(o)};break;case"string":o.length&&(e=function(){var e=[],n={from:a.options.position.start.getTime(),to:a.options.position.end.getTime()};return i.length&&(n.browser_timezone=i),t.ajax({url:s(o,n),dataType:"json",type:"GET",async:!1}).done(function(a){a.success||t.error(a.error),a.result&&(e=a.result)}),e})}e||t.error(this.locale.error_loadurl),this.options.onBeforeEventsLoad.call(this,function(){a.options.events=e(),a.options.events.sort(function(t,e){var a;return 0==(a=t.start-e.start)&&(a=t.end-e.end),a}),a.options.onAfterEventsLoad.call(a,a.options.events)})},d.prototype._loadTemplate=function(e){if(!this.options.templates[e]){var a=this;t.ajax({url:this.options.tmpl_path+e+".html",dataType:"html",type:"GET",async:!1,cache:this.options.tmpl_cache}).done(function(t){a.options.templates[e]=_.template(t)}
1)}},d.prototype._update=function(){var e=this;t('*[data-bs-toggle="tooltip"]').tooltip({container:"body"}),t("*[data-cal-date]").click(function(){var a=t(this).data("cal-view");e.options.day=t(this).data("cal-date"),e.view(a)}),t(".cal-cell").dblclick(function(){var a=t("[data-cal-date]",this).data("cal-view");e.options.day=t("[data-cal-date]",this).data("cal-date"),e.view(a)}),this["_update_"+this.options.view](),this._update_modal()},d.prototype._update_modal=function(){var e=this;if(t("a[data-event-id]",this.context).unbind("click"),e.options.modal){var a=t(e.options.modal);if(a.length){var o=null;"iframe"==e.options.modal_type&&(o=t(document.createElement("iframe")).attr({width:"100%",frameborder:"0"})),t("a[data-event-id]",this.context).on("click",function(i){i.preventDefault(),i.stopPropagation();var s=t(this).attr("href"),n=t(this).data("event-id");i=_.find(e.options.events,function(t){return t.id==n});"iframe"==e.options.modal_type&&(o.attr("src",s),t(".modal-body",a).html(o)),(!a.data("handled.bootstrap-calendar")||a.data("handled.bootstrap-calendar")&&a.data("handled.event-id")!=i.id)&&a.on("show.bs.modal",function(){var o=t(this).find(".modal-body");switch(e.options.modal_type){case"iframe":var n=o.height()-parseInt(o.css("padding-top"),10)-parseInt(o.css("padding-bottom"),10);t(this).find("iframe").height(Math.max(n,50));break;case"ajax":t.ajax({url:s,dataType:"html",async:!1,success:function(t){o.html(t)}});break;case"template":e._loadTemplate("modal"),o.html(e.options.templates.modal({event:i,calendar:e}))}_.isFunction(e.options.modal_title)&&a.find("h3").html(e.options.modal_title(i))}).data("handled.bootstrap-calendar",!0).data("handled.event-id",i.id),a.modal("show")})}}},d.prototype._update_day=function(){t("#cal-day-panel").height(t("#cal-day-panel-hour").height())},d.prototype._update_week=function(){},d.prototype._update_year=function(){this._update_month_year()},d.prototype._update_month=function(){this._update_month_year();var e=this,a=t(document.createElement("div")).attr("id","cal-week-box"),o=this.options.position.start.getFullYear()+"-"+this.options.position.start.getMonthFormatted()+"-";t(".cal-month-box .cal-row-fluid").on("mouseenter",function(){var i=new Date(e.options.position.start),s=t(".cal-cell1:first-child .cal-month-day",this),n=s.hasClass("cal-month-first-row")?1:t("[data-cal-date]",s).text();i.setDate(parseInt(n)),n=n<10?"0"+n:n,a.html(e.locale.week.format(i.getWeek())),a.attr("data-cal-week",o+n).show().appendTo(s)}).on("mouseleave",function(){a.hide()}),a.click(function(){e.options.day=t(this).data("cal-week"),e.view("week")}),t("a.event").mouseenter(function(){t('a[data-event-id="'+t(this).data("event-id")+'"]').closest(".cal-cell1").addClass("day-highlight dh-"+t(this).data("event-class"))}),t("a.event").mouseleave(function(){t("div.cal-cell1").removeClass("day-highlight dh-"+t(this).data("event-class"))})},d.prototype._update_month_year=function(){if(this.options.views[this.options.view].slide_events){var e=this,a=t(document.createElement("div")).attr("id","cal-day-tick").html('<i class="icon-chevron-down glyphicon glyphicon-chevron-down"></i>');t(".cal-month-day, .cal-year-box .span3").on("mouseenter",function(){0!=t(".events-list",this).length&&t(this).children("[data-cal-date]").text()!=e.activecell&&a.show().appendTo(this)}).on("mouseleave",function(){a.hide()}).on("click",function(i){0!=t(".events-list",this).length&&t(this).children("[data-cal-date]").text()!=e.activecell&&h(i,a,o,e)});var o=t(document.createElement("div")).attr("id","cal-slide-box");o.hide().click(function(t){t.stopPropagation()}),this._loadTemplate("events-list"),a.click(function(a){h(a,t(this),o,e)})}},d.prototype.getEventsBetween=function(e,a){var o=[];return t.each(this.options.events,function(){(parseInt(new Date(this.start).getTime())<a||null==this.start)&&(parseInt(new Date(this.end).getTime())>=e||null==this.end)&&o.push(this)}),o},t.fn.calendar=function(t){return new d(t,this)}}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.