PageSourceSearch

https://static.mastercontrol.com/assets/js/pages/events-customer-v…?v=f6eded4ac9a5bca444fb211b8aece979cf391ae3

js mastercontrol.com collected 2026-10-02 03:45:14 UTC 12,813 bytes, 19 lines download raw bytes

1"use strict";(()=>{var{compile:R,Transition:b,TransitionGroup:F,vShow:I,withModifiers:M,withKeys:N,vModelText:x,vModelCheckbox:B,vModelRadio:A,vModelSelect:T,vModelDynamic:k,defineCustomElement:O,defineSSRCustomElement:V,VueElement:j,useHost:P,useShadowRoot:U,useCssModule:H,useCssVars:L,render:W,hydrate:Y,createApp:D,createSSRApp:J,ComputedGetter:K,ComputedRef:z,ComputedSetter:G,CustomRefFactory:q,DebuggerEvent:Q,DebuggerEventExtraInfo:X,DebuggerOptions:Z,DeepReadonly:_,EffectScheduler:ee,EffectScope:te,MaybeRef:re,MaybeRefOrGetter:se,Raw:ae,Reactive:ne,ReactiveEffect:oe,ReactiveEffectOptions:ie,ReactiveEffectRunner:le,ReactiveFlags:ce,Ref:de,ShallowReactive:ue,ShallowRef:he,ShallowUnwrapRef:fe,ToRef:me,ToRefs:ve,TrackOpTypes:pe,TriggerOpTypes:ge,UnwrapNestedRefs:De,UnwrapRef:we,WatchCallback:Ce,WatchEffect:Ee,WatchHandle:ye,WatchSource:Se,WatchStopHandle:Re,WritableComputedOptions:be,WritableComputedRef:Fe,customRef:Ie,effect:Me,effectScope:Ne,getCurrentScope:xe,getCurrentWatcher:Be,isProxy:Ae,isReactive:Te,isReadonly:ke,isRef:$e,isShallow:Oe,markRaw:Ve,onScopeDispose:je,onWatcherCleanup:Pe,proxyRefs:Ue,reactive:He,readonly:Le,ref:We,shallowReactive:Ye,shallowReadonly:Je,shallowRef:Ke,stop:ze,toRaw:Ge,toRef:qe,toRefs:Qe,toValue:Xe,triggerRef:Ze,unref:_e,camelize:et,capitalize:tt,normalizeClass:rt,normalizeProps:st,normalizeStyle:at,toDisplayString:nt,toHandlerKey:ot,computed:it,nextTick:lt,queuePostFlushCb:ct,defineProps:dt,defineEmits:ut,defineExpose:ht,defineOptions:ft,defineSlots:mt,defineModel:vt,withDefaults:pt,useSlots:gt,useAttrs:Dt,withDirectives:wt,Suspense:Ct,useTransitionState:Et,BaseTransitionPropsValidators:yt,BaseTransition:St,resolveTransitionHooks:Rt,setTransitionHooks:bt,getTransitionRawChildren:Ft,createRenderer:It,createHydrationRenderer:Mt,KeepAlive:Nt,onActivated:xt,onDeactivated:Bt,onBeforeMount:At,onMounted:Tt,onBeforeUpdate:kt,onUpdated:$t,onBeforeUnmount:Ot,onUnmounted:Vt,onServerPrefetch:jt,onRenderTriggered:Pt,onRenderTracked:Ut,onErrorCaptured:Ht,provide:Lt,inject:Wt,hasInjectionContext:Yt,defineComponent:Jt,Teleport:Kt,resolveComponent:zt,resolveDynamicComponent:Gt,resolveDirective:qt,Fragment:Qt,Text:Xt,Comment:Zt,Static:_t,openBlock:er,setBlockTracking:tr,createElementBlock:rr,createBlock:sr,isVNode:ar,transformVNodeArgs:nr,createBaseVNode:or,createVNode:ir,guardReactiveProps:lr,cloneVNode:cr,createTextVNode:dr,createStaticVNode:ur,createCommentVNode:hr,mergeProps:fr,getCurrentInstance:mr,registerRuntimeCompiler:vr,isRuntimeOnly:pr,watchEffect:gr,watchPostEffect:Dr,watchSyncEffect:wr,watch:Cr,hydrateOnIdle:Er,hydrateOnVisible:yr,hydrateOnMediaQuery:Sr,hydrateOnInteraction:Rr,defineAsyncComponent:br,useModel:Fr,useTemplateRef:Ir,useId:Mr,h:Nr,ssrContextKey:xr,useSSRContext:Br,ErrorCodes:Ar,callWithErrorHandling:Tr,callWithAsyncErrorHandling:kr,handleError:$r,initCustomFormatter:Or,pushScopeId:Vr,popScopeId:jr,withScopeId:Pr,withCtx:Ur,renderList:Hr,toHandlers:Lr,renderSlot:Wr,createSlots:Yr,withMemo:Jr,isMemoSame:Kr,version:zr,warn:Gr,devtools:qr,setDevtoolsHook:Qr,DeprecationTypes:Xr,createElementVNode:Zr}=globalThis.Vue;function E(){$(this).hasClass("active")?($(this).removeClass("active"),$(this).next(".dropdown-menu").slideUp()):($(this).addClass("active"),$(this).next(".dropdown-menu").slideDown())}function y(){var e=$(this).parent(),t=e.find(".info-expand");if(e.hasClass("active")){e.removeClass("active"),t.slideUp(400);return}var r=$(".resource-row.active");r&&(r.find(".info-expand").slideUp(400),r.removeClass("active")),e.addClass("active"),t.slideDown(400)}function S(){return new Promise((e,t)=>{window.cVentEvents?e(window.cVentEvents):(console.warn("something is wrong with event load"),$.get("https://static.mastercontrol.com/dynamic/cvent-all-events.json").then(r=>e(r)).fail(()=>t(console.warn("cvent and backup not available"))))})}var g=D({data(){return{jsonEvents:[],currentYear:this.getYear(new Date),currentMonth:this.getMonth(new Date),customerEvents:[],customerEventsBuilt:{},noSessions:!1,noResults:!1,filterLoc:[],filterCat:[],filterDates:["All Dates","This Month","Next Month","Next 6 Months","Next 12 Months"],fieldIDs:{category:"42BB7254-FB00-438E-AB9F-3A3D46660BFC",ctaBtn:"51559F47-6DCA-4D8B-88F6-900465ED39D9",ctaLink:"3C7EBC3E-AC9B-484B-95F3-B2FC9E33FDEC",location:"555A2F8D-0E95-4967-AC6E-BAAA4F455772",customerProspect:"58B5C35C-0D34-420C-B970-1EE8519823F0",prospectCta:"3C7EBC3E-AC9B-484B-95F3-B2FC9E33FDEC",customerCtaLink:"5B21A9C1-D95B-4CAF-A534-3F3E469456C1"},monthObj:{months:{0:{fullName:"January",sectionID:"events-january",monthID:"jan"},1:{fullName:"February",sectionID:"events-february",monthID:"feb"},2:{fullName:"March",sectionID:"events-march",monthID:"mar"},3:{fullName:"April",sectionID:"events-april",monthID:"apr"},4:{fullName:"May",sectionID:"events-may",monthID:"may"},5:{fullName:"June",sectionID:"events-june",monthID:"jun"},6:{fullName:"July",sectionID:"events-july",monthID:"jul"},7:{fullName:"August",sectionID:"events-august",monthID:"aug"},8:{fullName:"September",sectionID:"events-september",monthID:"sep"},9:{fullName:"October",sectionID:"events-october",monthID:"oct"},10:{fullName:"November",sectionID:"events-november",monthID:"nov"},11:{fullName:"December",sectionID:"events-december",monthID:"dec"}}}}},created(){},mounted(){S().then(e=>{this.jsonEvents=e,this.buildCustomerEvents(),this.sortJson(),this.buildEvents(),this.sortFilters(),window.addEventListener("scroll",this.yearScroll,!0),$(".dropdown-toggle").on("click",E),$(".filter-menu").on("click","li",this.setNewValue),setTimeout(()=>
1{this.hideEmptyMonths(),$(".r-accordion .tease-doc-links").on("click",y)},100)})},methods:{buildCustomerEvents(){for(var e=0;e<this.jsonEvents.length;e++){var t=this.dateCheck(this.jsonEvents[e].EndTime);if(this.jsonEvents[e].CustomFieldDetail!==null){var r=this.getIndexOfArray(this.jsonEvents[e].CustomFieldDetail,this.fieldIDs.customerProspect),s=this.cpCheck(r,e);if(t===!1&&s===!0){this.customerEvents.push(this.jsonEvents[e]);var a=this.getYear(this.jsonEvents[e].StartTime),n=this.getMonth(this.jsonEvents[e].StartTime);this.customerEventsBuilt[a]=this.customerEventsBuilt[a]||[],this.customerEventsBuilt[a][n]=this.customerEventsBuilt[a][n]||[]}}}this.customerEvents.length===0?this.noSessions=!0:this.noSessions=!1},sortJson(){this.customerEvents.sort(function(e,t){return new Date(e.StartTime)-new Date(t.StartTime)})},buildEvents(){for(var e=0;e<this.customerEvents.length;e++){var t=this.customerEvents[e],r="",s="",a="",n="",o="",i=t.StartTime.split("T"),m=i[0].split("-"),v=this.customerEvents[e].EndTime.split("T"),d=v[0].split("-"),h=this.dateRange(m,d),l=null,f=this.getYear(t.StartTime),u=this.getMonth(t.StartTime),p=this.getIcon(t);if(this.customerEvents[e].eventYear=f,this.customerEvents[e].eventMonth=u,this.customerEvents[e].active=!0,t.CustomFieldDetail.length>1){r=this.getIndexOfArray(t.CustomFieldDetail,this.fieldIDs.category),o=t.CustomFieldDetail[r].FieldValue,s=this.getIndexOfArray(t.CustomFieldDetail,this.fieldIDs.ctaBtn),a=this.getIndexOfArray(t.CustomFieldDetail,this.fieldIDs.customerCtaLink);var c="";a&&(c=t.CustomFieldDetail[a].FieldValue),(c===""||c===void 0)&&(a=this.getIndexOfArray(t.CustomFieldDetail,this.fieldIDs.ctaLink)),n=this.getIndexOfArray(t.CustomFieldDetail,this.fieldIDs.location),l=t.CustomFieldDetail[n].FieldValue,this.filterLoc.indexOf(l)<0&&this.filterLoc.push(l),this.filterCat.indexOf(o)<0&&this.filterCat.push(o)}var w=t.CustomFieldDetail[a].FieldValue,C=t.CustomFieldDetail[s].FieldValue;this.customerEventsBuilt[f][u].push({location:l,locationName:t.SessionLocationName,category:o,date:i[0],icon:p,name:t.ProductName,description:t.ProductDescription,dateFull:h,ctaLink:w,ctaBtn:C})}},sortFilters(){for(var e=[this.filterLoc,this.filterCat],t=0;t<e.length;t++)e[t].sort(function(s,a){return s[0]<a[0]?-1:s[0]>a[0]?1:0});var r="North America";this.filterLoc.sort(function(s,a){return s===r?-1:a===r?1:0})},getIcon(e){var t="";if(e.CustomFieldDetail.length>1){var r=this.getIndexOfArray(e.CustomFieldDetail,this.fieldIDs.category);t=e.CustomFieldDetail[r].FieldValue}switch((t===null||t==="")&&(t="Local Events"),t){case"Industry Event":return"https://www.mastercontrol.com/images/default-source/mcui-design-system/icons/gradient/icon-gradient-close-1-400x400.png";case"Tradeshow":return"https://www.mastercontrol.com/images/default-source/mcui-design-system/icons/gradient/icon-gradient-seminar-400.png";case"User Conference":return"https://www.mastercontrol.com/images/default-source/mcui-design-system/logos/mastercontrol/gradient/logo-gradient-mastercontrol-400.png";case"Webinar":return"https://www.mastercontrol.com/images/default-source/mcui-design-system/icons/gradient/icon-gradient-webinar-3-400x400.png";default:return"https://www.mastercontrol.com/images/default-source/mcui-design-system/icons/gradient/icon-gradient-onboarding-1-400x400.png"}},cpCheck(e,t){if(e!==void 0){var r=this.jsonEvents[t].CustomFieldDetail[e].FieldValue;if(r.includes("Customer")===!0)return console.warn("cp type is VALID"),!0;if(r==="")return console.warn("cp type is BLANK"),!1;console.warn("cp type is UNKNOWN")}else if(e===void 0)return console.warn("cp type is UNDEFINED"),!1},getIndexOfArray(e,t){for(var r=0;r<e.length;r++){var s=e[r].FieldId.indexOf(t);if(s===0)return r}},dateCheck(e){var t=new Date,r=new Date(e);return r<=t},dateRange(e,t){var r=this.monthObj.months[e[1]-1].fullName.substring(0,3),s=Number(e[2]),a=this.monthObj.months[t[1]-1].fullName.substring(0,3),n=Number(t[2]),o=null;return r!==a?o=s+" "+r+" - "+n+" "+a:s===n?o=n+" "+a:o=s+" - "+n+" "+a,o},getYear(e){return new Date(e).getFullYear()},getMonth(e){return new Date(e).getMonth()}
1,hideEmptyMonths(){var e=$(".month-wrapper"),t=$(".year-heading"),r=null;e.each(function(){var s=$(this),a=s.find(".resource-list").children().not(".no-show").length;a?s.removeClass("no-show").slideDown():s.addClass("no-show").slideUp(),r=$("#event-list").find(".resource-row").not(".no-show").length}),r===0?this.noResults=!0:this.noResults=!1,t.each(function(){var s=$(this).siblings().not(".no-show").length;s>0?$(this).removeClass("no-show").slideDown():$(this).addClass("no-show").slideUp()})},setNewValue(e){e.preventDefault();var t=e.currentTarget,r=$(t).children(),s=$("#"+r.data("parent-filter")),a=r.data("text");s.data("current-value",a),a==="Show All"?s.html(s.data("default-label")):s.html(a);var n=$(t).offsetParent().find("input:checked");n.prop("checked",!1),r.find("input").prop("checked",!0),this.filterEvents()},filterEvents(){var e=$("#filter-location").data("current-value"),t=$("#filter-category").data("current-value"),r=$("#filter-date").data("current-value"),s=null,a=this.currentYear,n=this.currentMonth+1;switch(r){case"This Month":s=0;break;case"Next Month":s=1;break;case"Next 6 Months":s=5;break;case"Next 12 Months":s=11;break;default:break}$(".resource-row").each(function(){var o=a,i=$(this),m=e===i.data("location")||e==="Show All",v=t===i.data("category")||t==="Show All",d=n+s;d>12&&(o=a+1,d-=12);var h=i.data("date").split("-"),l=h[0]+"-"+Number(h[1]),f=new Date(l),u=o+"-"+d,p=new Date(u),c=null;s===1?c=l===u:c=f<=p||r==="Show All",m===!0&&v===!0&&c===!0?i.removeClass("no-show").slideDown():i.addClass("no-show").slideUp()}),this.hideEmptyMonths()},resetFilters(){var e=$(".reset");for(let r=0;r<e.length;r++){var t=e[r];$(t).next(".filter-menu").find("li:first").click(),$(".filter-menu").find("li:first input").prop("checked",!0)}},yearScroll(){var e=$("#year-"+this.currentYear),t=$("#year-"+(this.currentYear+1)),r=$(window).scrollTop(),s=$(".navigation .bar").outerHeight(),a=e.offset().top-s,n=e.height()+a+s/2-30;if(a<=r&&n>=r?e.find(".year-heading").addClass("fixed").css("top",s+10+"px"):e.find(".year-heading").removeClass("fixed").css("top",""),t.length>0){var o=t.offset().top-s,i=t.height()+o+s/2;o<=r&&i>=r?t.find(".year-heading").addClass("fixed").css("top",s+10+"px"):t.find(".year-heading").removeClass("fixed").css("top","")}}}});g.component("filter-locations",{data(){return{}},props:["loc"],template:`
2    <li>
3      <label class="filter-input" data-parent-filter="filter-location" :data-text=" loc " :for="'function-' + loc.replace(/\\s+/g, '-').toLowerCase()">
4          {{ loc }}
5        <input type="radio">
6        <span class="checkmark"></span>
7      </label>
8    </li>
9  `});g.component("filter-categories",{props:["cat"],template:`
10  <li>
11    <label class="filter-input" data-parent-filter="filter-category" :data-text=" cat " :for="'function-' + cat.replace(/\\s+/g, '-').toLowerCase()">
12        {{ cat }}
13      <input type="radio">
14      <span class="checkmark"></span>
15    </label>
16  </li>
17  `});g.mount("#eventsapp");})();
18
19//# sourceMappingURL=https://static.mastercontrol.com/assets/js/pages/events-customer-vue.min.js.map?v=f6eded4ac9a5bca444fb211b8aece979cf391ae3

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.