!function p(r,a,b){function c(e,t){if(!a[e]){if(!r[e]){var o="function"==typeof require&&require;if(!t&&o)return o(e,!0);if(s)return s(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=a[e]={exports:{}};r[e][0].call(i.exports,function(t){return c(r[e][1][t]||t)},i,i.exports,p,r,a,b)}return a[e].exports}for(var s="function"==typeof require&&require,t=0;tCustom Color'),$(".custom-color-btn").on("click",function(){$("body").addClass("show-custom-picker")}))},show:function(){$(".sp-container").css("top",$("#hdr-tools").offset().top+$("#hdr-tools").outerHeight()+6+"px"),$(".sp-container").css("left",r.offset().left+17+"px")},move:e,change:e,hide:function(t){$("body").removeClass("color-mask-picker-open show-custom-picker"),r.spectrum("destroy")}}),setTimeout(function(){r.spectrum("show")},1)}),$("#purchase-button").click(function(){if(l.server.constants.noPayout){return SplashUI.ask(function(t){t&&(window.parent.splash.server.constants.jumpToSection="direct_deposit",window.parent.showPayoutTab(l.server.constants.jumpToSection),window.parent.closeSimpleModal())},"You cannot purchase a ticket until your payout settings are complete. Fill out your payout settings below.","Fill out Payout Data",1e5),event.preventDefault(),!1}}),$("#splugSell,#bottomSplug").on("click",function(t){return parent.$("#white-label-sell").fireSimpleModal(),"splugSell"==$(this).prop("id")?parent.$("#white-label-continue").addClass("top-splug"):parent.$("#white-label-continue").addClass("bottom-splug"),!1})}var h,z,f,q=function(t){return $("").html(t).text().trim()};function m(t){t.parents(".list-item:first").removeClass("compact-img-util super-compact-img-util")}(l=l||{}).cmsPageFtFunctions=(h=jQuery,z=void 0,f=function(t,e){return t.getType()===e||u.get().findFirstParent(t,{componentType:e})},{init:function(){z=h("#main-canvas"),l.cmsPageFtFunctions.setSplashFeedOptionsForTemplates()},activateOnPageEditableImage:function(o){if(1===o.length){var n=o.find("img:first");if(1===n.length&&!n.hasClass("crp-enabled")){var t,e,i,p=(t=o,(e=n).length&&"IMG"===e[0].nodeName?window.stripUrl(e.attr("src")):window.stripUrl(t.css("background-image"))),r='
\n \n CHANGE\n \n
';p.match(/\?stp/)||p.match(/st-p-/)?(o.append(r).parents(".list-item:first").addClass("is-placeholder"),(i=o).outerWidth()<70?i.parents(".list-item:first").addClass("super-compact-img-util").removeClass("compact-img-util"):i.outerWidth()<165?i.parents(".list-item:first").addClass("compact-img-util").removeClass("super-compact-img-util"):i.parents(".list-item:first").removeClass("compact-img-util super-compact-img-util")):(o.append(r).parents(".list-item:first").removeClass("is-placeholder"),l.page.clearPlaceholderStyles(o)),n.addClass("crp-enabled"),o.on("click",".cms-edit-image-overlay",function(){var t={giphyAssetsToCdn:!0,onImageSelected:function(t){window.parent.splash.updateEditableImage(t,null,o,n)},onAsyncUploadToCdnStart:function(t){window.parent.splash.updateEditableImage(t,null,o,n)},onAsyncUploadToCdnFail:function(){},context:"cms image overlay",availableTabs:"svg"===n.attr("src").split(".").pop()?["upload"]:[]},e=a({},t,{acceptedMimeTypes:["image/svg","image/svg+xml"],context:"cms image overlay - svg",uploadSlideCopy:""});window.parent.SPLASH.imageUploader.open(o.hasClass("svg")?e:t)}).on("click",".removePlaceholder",function(){return o.parents(".list-item:first").find(".delete:first").trigger("click"),!1})}}},bindEditTools:function(){h("#main-canvas").on("click",".edit-master-repeatable",function(){var t=h(this).parents(".layoutGrp:first").attr("data-repeatable-id");return M.use("sidebarManager").openSidebar("content",{force:!0}),l.finetune.repeatableElement.openEditRepeatableMode(t,!0),!1}),h("#main-canvas").on("click",".edit-tools .change-twitter-widget",function(){var t=window.parent.$("#twitter-widget-embed"),e=h(this).parents(".layoutGrp:first"),o=u.get().getGid(e);t.fireSimpleModal(),t.addClass("editing").attr("group-id",o)})},addOnPageContainerAdderButtons:function(t){var e=void 0!==t?window.ftGetPageGroup(t):h("#splash-container");h("body").hasClass("advMode")?e.find(".drop-area:not(.cardLayoutGrp)").each(function(){var t=h(this);t.find(".layoutGrp").length<1?(t.addClass("not-edited").find(".add-placeholder").remove(),t.append('
')):t.removeClass("not-edited").find(".add-placeholder").remove()}):e.find(".drop-area").each(function(){var t=h(this);t.parent().hasClass("container-ele")||t.find(".add-placeholder").remove()})},removeOnPageContainerAdderButtons:function(t){(t?"object"===(void 0===t?"undefined":r(t))&&t.jquery?t:h(t):h("#main-canvas")).find(".add-placeholder").remove()},updateTextEventProperty:function(t,r){var e,a=(2
.title:first"),b=t.find("> .body:first"),"button"===t.attr("block-type")?l.cmsPageFtFunctions.finetuneActivateEditable(a,"data[SplashFeed]["+i+"][title]"):t.hasClass("countdown")?(l.cmsPageFtFunctions.finetuneActivateEditable(a,"data[SplashFeed]["+i+"][title]",{singleField:!0}),l.cmsPageFtFunctions.finetuneActivateEditable(b.find(".before_text"),"data[SplashFeed]["+i+"][options][before_text]"),l.cmsPageFtFunctions.finetuneActivateEditable(b.find(".days_text"),"data[SplashFeed]["+i+"][options][days_text]"),l.cmsPageFtFunctions.finetuneActivateEditable(b.find(".hours_text"),"data[SplashFeed]["+i+"][options][hours_text]"),l.cmsPageFtFunctions.finetuneActivateEditable(b.find(".minutes_text"),"data[SplashFeed]["+i+"][options][minutes_text]"),l.cmsPageFtFunctions.finetuneActivateEditable(b.find(".seconds_text"),"data[SplashFeed]["+i+"][options][seconds_text]")):1!==a.length||t.hasClass("attendees")?1!==b.length||t.hasClass("attendees")||l.cmsPageFtFunctions.finetuneActivateEditable(b,"data[SplashFeed]["+i+"][body]"):l.cmsPageFtFunctions.finetuneActivateEditable(a,"data[SplashFeed]["+i+"][title]",{singleField:!0})),t.hasClass("wImg")&&"full"!==r){var c=t.find("> .image:first");l.cmsPageFtFunctions.activateOnPageEditableImage(c)}if(t.hasClass("list-item")&&!t.hasClass("tp-enabled")){var s=t.find(".timePicker");if(0
'===n||'
'===n)return e;M&&l.finetune.addToEditedFields(M,n);var i=e.closest(".layoutGrp"),p=o.getGid(i),r=o.getGroup(p);if(r){var a=o.getComponentInstance(p);if("button"===r.type)return void(a&&a.setTitle(n,!0));var b=a.getLinkedEventProperty(),c=1==d(o.getSplashFeedOptions(r),"modified");if(b&&!c&&l.cmsPageFtFunctions.updateTextEventProperty(b,n,{gidTriggeringChange:p}),i.hasClass("splash-font-resizing")&&window.autoFontResize(i),!z){var s=e.parents(".match-height:first");s.length&&window.matchHeight(s)}z=!1}return l.PubSub.publish("page-changes-made"),e}).on("click.finetune",function(t){if(window.adjustRtePosition(t),e.hasClass("hasTiny")||void 0!==o.noRTE&&o.noRTE)e.hasClass("editing")||e.focus();else{if(!window.tinymce)return;window.tinymce.activeEditor?window.tinymce.activeEditor&&window.tinymce.activeEditor.id!==b&&(c(),setTimeout(function(){s()},50)):s()}}).on("click.finetuneLink","a",function(t){t.preventDefault()});var c=function(){window.tinymce.activeEditor&&(window.tinymce.activeEditor.remove(),h("#splash-container").find(".hasTiny").removeClass("hasTiny"))},s=function(){var t=void 0;window.tinymce?e.hasClass("hasTiny")||void 0!==o.noRTE&&o.noRTE||(e.addClass("hasTiny"),e.attr("id")||e.attr("id",b),o.tinymceOpts.selector="div#"+e.attr("id"),o.tinymceOpts.toolbar=window.getToolbarOpts(o),o.tinymceOpts.setup=function(t){window.addCustomRTEButtons(t,o)},(t=window.tinymce.createEditor(e.attr("id"),o.tinymceOpts)).on("change",function(t){e.find("a[data-mce-href]").each(function(){var t=h(this).attr("data-mce-href").trim();"#"===t.substring(0,1)||-1!==t.indexOf("http")||t.match(/^mailto:/g)||t.match(/^tel:/g)||h(this).prop("href","http://"+t).attr("data-mce-href","http://"+t)}),e.find("img[data-mce-src]").each(function(){var t=h(this).attr("data-mce-src");t.match("http")||0==t.indexOf("/")||h(this).prop("src","http://"+t).attr("data-mce-src","http://"+t)}),z=!0,e.trigger("change")}),t.render(),p=!0):console.error("Can't initialize RTE because window.tinymce is undefined")};return!1!==window.firstTiny||e.hasClass("hasTiny")||void 0!==o.noRTE&&o.noRTE||(e.parents(".grp:first").addClass("firstTiny"),window.firstTiny=!0,setTimeout(function(){e.trigger("click"),setTimeout(function(){e.parents(".grp:first").removeClass("firstTiny")},100)},1500)),e},finetuneDeActivateEditable:function(t){t.removeClass("editable singleField mce-content-body mce-edit-focus").off("focus.finetune focusout.finetune input.finetune paste.finetune keyup.finetune blur.finetune keydown.finetune change.finetune paste.finetune mouseover.finetune click.finetune click.finetuneLink").removeAttr("contenteditable data-lt-active"),(t.hasClass("body")||t.hasClass("title"))&&t.removeAttr("id")},getLayoutGrpsLinkedToColorSwatch:function(t){return t||(t=h("#splash-container")),t.find(".link-to-swatch.layoutGrp").addBack(".link-to-swatch.layoutGrp").not(".is-hotlinked, .is-hotlinked .layoutGrp")},getLayoutGrpsLinkedToFontCombo:function(t){return t||(t=h("#splash-container")),t.find(".link-to-font.layoutGrp").addBack(".link-to-font.layoutGrp").not(".is-hotlinked, .is-hotlinked .layoutGrp")},forEachComponentLinkedToProperty:function(e,o){if(e&&o){var n=u.get();n.getAllComponentInstances(function(t){return t.getLinkedEventProperty()===e}).forEach(function(t){1==d(n.getSplashFeedOptions(t),"modified")||o(t)})}else console.warn("forEachComponentLinkedToProperty bad params",e,o)},updateInlineStyles:function(t,e){void 0===t.subSelectors&&(t.subSelectors={});var o=window.ftGetId(t),n=function(t){var e=u.get().getComponentInstance(t);if(!f(e,"hub-master-card")&&!f(e,"session-master-card"))return!1;var o=(e.getCustomClasses()||"").match(/ddh-[a-z0-9]+/);return o&&void 0!==o[0]?"."+o[0]:(console.warn("Component inside hub master card doesn't have a ddh class"),!1)}(o),i=new b({splashGlobal:l,pageColors:l.colorSwatch.getActiveSwatchColors(),pageFontFamilies:l.fontActions.getActiveComboFonts()}).generateInlineCss(t,{forcedMainSelector:n}),p=h("#inlineCSS-g-"+o);if(i)if(p.length)p.html(i);else{var r=document.createElement("style");r.type="text/css",r.innerHTML=i,r.id="inlineCSS-g-"+o,z&&z.append(r)}else p.length&&p.remove()},styleMarkup:function(t,e){var o=[],n=["z-index","opacity"];if(t&&"object"===(void 0===t?"undefined":r(t))){for(var i in t)if({}.hasOwnProperty.call(t,i)){var p=t[i];""!=p&&"em"!=p&&"px"!=p&&(isNaN(p)||(p+=6$(document).height()-e){var o=t-$("#footer").offset().top;e'+e.toUpperCase()+"
")}};e.extend(i.prototype,n.prototype,t),a.exports={constructor:i,instantiateComponent:function(t){return new i(t)},prototypeObject:t}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../CmsComponent":3,jquery:"jquery",underscore:"underscore"}],7:[function(s,M,t){(function(c){(function(){var i=s("jquery"),r=s("underscore"),e=s("bluebird"),o="undefined"!=typeof window?window.splash:void 0!==c?c.splash:null,p=s("./utils/attendeesCardView"),n=s("./../CmsComponent").constructor,a=s("../../modules/matchHeightMixin/matchHeight");function b(t){n.call(this,t),a.call(this,t),this.messages=t.messages||{},this.messages=r.defaults(this.messages,{"is-loading":'',error:"There's been an error loading the attendees, please try again later",empty:"There are no RSVPs yet."}),this.masterCardGid="string"==typeof t.masterCardGid?Number(t.masterCardGid):t.masterCardGid,void 0===t.attendeesLimit?this.attendeesLimit=b.limits.defaultLimit:"string"==typeof t.attendeesLimit?this.attendeesLimit=Number(t.attendeesLimit):this.attendeesLimit=t.attendeesLimit,this.attendeesOrder=t.attendeesOrder,this.hasShowMoreButton=t.hasShowMoreButton,this.hasTotalCountElement=t.hasTotalCountElement,this.attendeesInfo=[],this.currentPage=1,this.totalAttendees=void 0,this.$attendeeCardsCSS=void 0,this.getAttendeesUrl=this.splashGlobal.server.constants.splashApiUrl+"/events/"+this.splashGlobal.server._event.id+"/attendees"}b.limits={defaultLimit:10,maxLimit:100};var t={initType:function(){var t=this._findShowMoreBtnInMarkup(),e=this._findTotalCountElementInMarkup();this.masterCard||this._loadMasterCardTemplate(),t.length&&this.setShowMoreBtn(t),e.length&&this.setTotalCountElement(e)},afterComponentRender:function(){n.prototype.afterComponentRender.call(this),this._updateView()},bindTypeEvents:function(){this.PubSub.subscribe("unrsvp-completed",{context:this,eventHandler:this._updateView.bind(this)}),this.PubSub.subscribe("rsvp-completed",{context:this,eventHandler:this._updateView.bind(this)})},unbindTypeEvents:function(){},showOrHideShowMoreBtn:function(){var t=this.getShowMoreBtn();this.getIsLastPage()?t&&t.conceal():t&&t.reveal()},fetchAttendeesInfo:function(n){(n=n||{}).doNotRefreshToken="undefined"===n.doNotRefreshToken||n.doNotRefreshToken,n.getNextPage||this.setCurrentPage(1);var t=this._buildRequestObject(n);return new e(function(e,o){i.ajax(t).done(function(t){this.setCurrentPage(t.pagination.page),this.setTotalAttendees(t.pagination.count),this.setTotalPages(t.pagination.pages),n.getNextPage?this.setAttendeesInfo(r.uniq(this.getAttendeesInfo().concat(t.data),function(t){return t.groupContactId})):this.setAttendeesInfo(t.data),e()}.bind(this)).fail(function(t){var e=t&&t.responseJSON&&t.responseJSON.error?t.responseJSON.error:"unknown";if("invalid_grant"===e&&!0!==n.doNotRefreshToken)return this._refreshUserToken().then(function(){return this.fetchAttendeesInfo({doNotRefreshToken:!0})}.bind(this)).catch(function(t){o(new Error(t))});o(new Error(e))}.bind(this))}.bind(this))},getFields:function(){return this.masterCard?this.masterCard.getAttendeeFields():[]},getCustomQuestionIds:function(){return this.masterCard?this.masterCard.getAttendeeCustomQuestionIds():[]},getCustomQuestions:function(){return this.masterCard?this.masterCard.getAttendeeCustomQuestions():[]},getWhitelistedFieldsForServer:function(){var t=this.getFields(),e=this.getCustomQuestionIds();return{fields:r.chain(t).map(function(t){return t.split(" ")}).flatten().value(),customQuestions:e}},setStatus:function(t){var e=this.$el.find(".attendees-v3-msg:first").empty();this.status=t,this.$el.attr("data-status",t),void 0!==this.messages[this.status]?(e.append(this.messages[this.status]),"is-loading"!==this.status&&this.$el.find(".children:first").addClass("is-hidden")):this.$el.find(".children:first").removeClass("is-hidden")},getAttendeesInfo:function(){return this.attendeesInfo},setAttendeesInfo:function(t){this.attendeesInfo=t},getAttendeesLimit:function(){return this.attendeesLimit},setAttendeesLimit:function(t){this.attendeesLimit=t},getCurrentPage:function(){return this.currentPage},setCurrentPage:function(t){this.currentPage=t},getTotalAttendees:function(){return this.totalAttendees},setTotalAttendees:function(t){this.totalAttendees=t},getTotalPages:function(){return this.totalPages},setTotalPages:function(t){this.totalPages=t},getIsLastPage:function(){return this.getCurrentPage()>=this.getTotalPages()},getMasterCardGid:function(){return this.masterCardGid},getShowMoreBtn:function(){return this.showMoreBtn},setShowMoreBtn:function(t){var e=this.getShowMoreBtn();e&&this.stopListening(e),this.showMoreBtn=this.cmsComponentManager.getComponentInstance(t),this.showMoreBtn&&this.listenTo(this.showMoreBtn,"action-triggered",this._updateView.bind(this,{getNextPage:!0})),this.showOrHideShowMoreBtn()},getTotalCountElement:function(){return this.totalCountElement},setTotalCountElement:function(t){this.totalCountElement=this.cmsComponentManager.getComponentInstance(t)},getHasTotalCountElement:function(){return this.hasTotalCountElement},getAttendeesOrder:function(){return this.attendeesOrder},getMatchHeightChildrenSelector:function(){return".cms-attendee-card"},getMatchedSetFromSection:function(t){var e=t.data("masterGid");return e?o.cmsComponentManager.findOnPage('[data-master-gid="'+e+'"]'):i()},_updateView:function(t){return((t=t||{}).skipAttendeesRequest?e.resolve():(this.setStatus("is-loading"),this.fetchAttendeesInfo(t))).then(function(){this.showOrHideShowMoreBtn(),this._updateTotalCountDisplay(),this._generateInlineCssForAttendeeCards(),this.attendeesInfo.length?this._renderCards()?this.setStatus("results"):this.setStatus("error"):this.setStatus("empty"),this.trigger("attendees-updated")}.bind(this)).catch(function(t){return this.setStatus("error"),new Error(t)}.bind(this))},_renderCards:function(){if(!this.masterCard)return!1;var o=[],n=this.getFields(),i=this.getCustomQuestions();r.each(this.getAttendeesInfo(),function(t){if(this._attendeeDataHasAtLeastOneRequestedField(t)){var e=p({attendee:t,splashGlobal:this.splashGlobal});e.render({masterCard:this.masterCard,fields:n,customQuestions:i})&&o.push(e.getEl())}}.bind(this));var t=this.$el.find(".children:first");return t.find(".cms-attendee-card").remove(),t.prepend(o),this.applyMatchHeight(),!0},_loadMasterCardTemplate:function(){return!(!this.masterCardGid||(this.masterCard=this.cmsComponentManager.getComponentInstance(this.masterCardGid),!this.masterCard))},_updateTotalCountDisplay:function(){var t=this.getTotalCountElement();if(t||this.setTotalCountElement(this._findTotalCountElementInMarkup()),!this.getHasTotalCountElement()||!t)return!0;t.getEl().find(".sf:first").html(this.getTotalAttendees())},_findShowMoreBtnInMarkup:function(){return this.cmsComponentManager.findOnPage('.button-link[data-linked-attendees-gid="'+this.gid+'"]').closest(".layoutGrp")},_findTotalCountElementInMarkup:function(){return this.cmsComponentManager.findOnPage('.attendee-count-number[data-linked-attendees-gid="'+this.gid+'"]').closest(".layoutGrp")},_attendeeDataHasAtLeastOneRequestedField:function(t){for(var e=this.getWhitelistedFieldsForServer(),o=e.fields,n=e.customQuestions,i=o.length,p=0;p").addClass("cms-attendee-card-styles").html(t),this.$el.append(this.$attendeeCardsCSS))}}};r.extend(b.prototype,n.prototype,a.prototype,t),M.exports={constructor:b,instantiateComponent:function(t){return new b(t)},prototypeObject:t,__setGlobals:function(t){i=void 0!==t.$?t.$:i,r=void 0!==t._?t._:r,o=void 0!==t.splash?t.splash:o,n=void 0!==t.CmsComponent?t.CmsComponent:n,p=void 0!==t.attendeesCardViewFactory?t.attendeesCardViewFactory:p},__getGlobals:function(){return{$:i,_:r,splash:o,CmsComponent:n,attendeesCardViewFactory:p}}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../modules/matchHeightMixin/matchHeight":89,"./../CmsComponent":3,"./utils/attendeesCardView":8,bluebird:124,jquery:"jquery",underscore:"underscore"}],8:[function(t,e,o){var n=t("jquery"),b=t("underscore"),i=t("../../../../utils/cms-utils"),p=t("../../../cms-page-ft-functions");function r(t){this.attendee=t.attendee,this.$el=n(),this.isRendered=!1,this.isVisible=!1,this.fieldElementsMap={},this.customQuestionElementsMap={},this.customQuestions=[],this.fields=[],this.splashGlobal=t.splashGlobal}b.extend(r.prototype,{getEl:function(){return this.$el},render:function(t){var e,o=this.$el;return(t=t||{}).masterCard&&(this.$el=this._copyMasterCard(t.masterCard)),this.setFields(t.fields),this.setCustomQuestions(t.customQuestions),e=this._populate(),!t.attachTo&&o?o.replaceWith(this.$el):(t.attachTo&&this.$el.appendTo(n(t.attachTo)),o&&o!==this.$el&&o.remove()),this.isRendered=!0,e},setFields:function(t){this.fields=t},getFields:function(){return this.fields},setCustomQuestions:function(t){this.customQuestions=t},getCustomQuestions:function(){return this.customQuestions},_populate:function(){return this._findComponents(),this._updateComponents()},_findComponents:function(){b.each(this.getFields(),function(t){this.fieldElementsMap["$"+t]=this.$el.find('[data-attendees-field="'+t+'"]')}.bind(this)),b.each(this.getCustomQuestions(),function(t){this.customQuestionElementsMap[t.id]=this.$el.find('[data-custom-question-id="'+t.id+'"]')}.bind(this))},_updateComponents:function(){var a=!1;return b.each(this.getFields(),function(t){var e,o,n,i,p,r;"firstName lastName"===t?e=this.formatName(this.attendee.firstName,this.attendee.lastName):"phone"===t&&this.attendee[t]?e=this.formatPhone(this.attendee[t]):"website"!==t&&"resume"!==t||!this.attendee[t]?"twitterDisplayName twitterUrl"===t||"instagramDisplayName instagramUrl"===t||"pinterestDisplayName pinterestUrl"===t?(r=t.split(" ")[0].replace("DisplayName",""),n=!!this.attendee[r+"Url"]&&this.formatWebsite(this.attendee[r+"Url"]),e=this.attendee[r+"DisplayName"],"twitterDisplayName twitterUrl"!==t&&"instagramDisplayName instagramUrl"!==t||"@"===e[0]||(e="@"+e)):"avatarUrl"===t?this.attendee[t]?i=this.attendee[t]:p=this.attendee.firstName?this.attendee.firstName[0].toUpperCase():this.attendee.lastName?this.attendee.lastName[0].toUpperCase():this.attendee.email?this.attendee.email[0].toUpperCase():"":e=this.attendee[t]?this.attendee[t]:"":(n=this.formatWebsite(this.attendee[t]),e=this.attendee[t]),this.fieldElementsMap["$"+t].length&&(n?(o=this.fieldElementsMap["$"+t].find(".title, .body, .media")).html('').find("a").text(e):"avatarUrl"===t?(o=this.fieldElementsMap["$"+t],i?(o.find(".attendees-avatar-letter").remove(),o.css("background-image",'url("'+b.escape(i)+'")')):o.find(".attendees-avatar-letter").html(p),e=!!i||!!p):(o=this.fieldElementsMap["$"+t].find(".title, .body, .media")).html("").find("span").text(e),a=a||!!e)}.bind(this)),b.each(this.getCustomQuestions(),function(e){var t=b.find(this.attendee.contactAnswers,function(t){return t.question_id==e.id});this.customQuestionElementsMap[e.id].find(".answer-body").html(t?b.escape(t.answer):"")}.bind(this)),this.attendee.contactId&&this.$el.data("contact-id",this.attendee.contactId),a},_copyMasterCard:function(t){var e=t.getEl().clone().off();return e.addClass("cms-attendee-card").removeClass("cms-component cms-attendees-master-card-container"),e.find(".layoutGrp").addBack(".layoutGrp").addClass("cardLayoutGrp").each(function(){var t=n(this);t.attr("data-master-gid",t.attr("id"))}).removeAttr("id").removeClass("layoutGrp").end().end().find("a.nav-jump").removeAttr("id").end().find(".element").removeAttr("id").end().find(".sf").removeAttr("id").end().find("style").remove(),i.getIsFinetune()&&p.finetuneDeActivateOnPageEditablesInContainer(e),e},formatPhone:function(t){var e=t.replace(/\D/g,""),o={0:"(",3:") ",6:" - "},n="";if(10!==e.length)return t;for(var i=0;i'+this.splashGlobal.server._event.title+"";void 0!==e.parents&&0!==e.parents.length;)n=''+e.title+''+this.separatorString+""+n,o++;return n},renderBreadcrumb:function(t){var e=this._generateMarkupForLineage(t);return this.$el.find(".body").html(e),this}};i.extend(r.prototype,p.prototype,a),e.exports={constructor:r,instantiateComponent:function(t){return new r(t)},prototypeObject:a}},{"./../CmsComponent":3,jquery:"jquery"}],10:[function(u,A,t){(function(l){(function(){var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t=u("jquery"),n=u("underscore"),e="undefined"!=typeof window?window.splash:void 0!==l?l.splash:null,a=u("dompurify"),i=u("lodash.get"),b=u("./../CmsComponent").constructor,c=u("../../../utils/cms-utils"),s=u("../../../utils/isValidHref"),p=e&&e.server&&e.server._event&&"collect"!==e.server._event.rsvp_method?"Ticket Sales Are Closed":"RSVPs Closed",r=u("./add-to-calendar-links.hbs");O.defaultStatusTitles={"#rsvp":{waitlist:"Add To Waitlist",closed:p,unrsvp:"Cancel RSVP",default:"RSVP"},"#hub-show-more":{"showing-more":"Show Fewer",default:"Show More"},"#attendees-show-more":{default:"Show More"},"#session-show-agenda":{default:"Show Agenda"},"#session-download-calendar":{default:"Download to Calendar"}},O.defaultFallbackTitle="Button";var M,z=(M=O.defaultStatusTitles,n.chain(M).reduce(function(t,e){return t.concat(n.map(e,function(t,e){return e}))},[]).filter(function(t){return"default"!==t}).reduce(function(t,e){return t+" is-"+e},"").value());function O(t){for(var e in b.call(this,t),O.defaultStatusTitles)if({}.hasOwnProperty.call(O.defaultStatusTitles,e))for(var o in O.defaultStatusTitles[e])if({}.hasOwnProperty.call(O.defaultStatusTitles[e],o)&&void 0!==t[o+"Title"]&&void 0===this[o+"Title"]){var n=t[o+"Title"],i=(p=n,a.sanitize(p,{ALLOWED_TAGS:["p","strong","em","u","br","b","span","sup","sub"],ALLOWED_ATTR:["style","data-mce-style"]}));this[o+"Title"]=i}var p;this.parentQuestionGroupGid=c.tryParseInt(t.parentQuestionGroupGid),this.slideIndex=c.tryParseInt(t.slideIndex),this.linkedHubGid=c.tryParseInt(t.linkedHubGid),this.linkedAttendeesGid=c.tryParseInt(t.linkedAttendeesGid),this.linkedSessionGid=c.tryParseInt(t.linkedSessionGid),this.hubSearchTerm="string"==typeof t.hubSearchTerm?t.hubSearchTerm:"",this.target=t.target,this.website=t.website&&s(t.website)?t.website:"#rsvp",this.status,this.$link=this.$el.find(".button-link");var r=this.$link.siblings(".rsvp-form.private");this.$link.attr("href",r.length?"#":this.website),this.customAction}var d={initType:function(){var t=c.getIsFinetune();if(this.setStatus(this.grabInitialStatus()),this.$el.addClass("cms-block-type-button"),"#session-show-agenda"===this.website&&!this.getLinkedSessionGid()){var e=this.cmsComponentManager.getOneComponentInstanceByType("session");e&&(this.linkedSessionGid=e.getGid(),e.setShowAgendaBtn(this))}if("#go-to-virtual-event-page"===this.website&&(t||(this.updateGoToVirtualButton(),this.PubSub.subscribe("rsvp-completed",{context:this,eventHandler:function(t){var e=i(t,"serverResponse.guestAccessHash");this.updateGoToVirtualButton(e)}}))),"#go-to-agenda-page"===this.website&&!t){var o=this.splashGlobal.navElement.getAgendaLink();this.$link.attr("href",o)}if("#cal"===this.website){var n=this.splashGlobal.server._event.date.tbd;!t&&n&&this.conceal()}},bindTypeEvents:function(){this.PubSub.subscribe("rsvp-completed",{context:this,eventHandler:function(){"#rsvp"===this.website&&this.setStatus(this.grabInitialStatus())}}),this.PubSub.subscribe("unrsvp-completed",{context:this,eventHandler:function(){"#rsvp"===this.website&&this.setStatus(this.grabInitialStatus())}})},unbindTypeEvents:function(){},setStatus:function(t){var e=this.status;t=this._formatStatus(t),this.status=t,this.renderTitle(),void 0!==e&&e!==this.status&&this.$el.removeClass(z),"default"!==this.status&&this.$el.addClass("is-"+this.status)},getStatus:function(){return this.status},renderTitle:function(){var t=void 0!==O.defaultStatusTitles[this.website]?O.defaultStatusTitles[this.website][this.status]:O.defaultFallbackTitle,e=this[this.status+"Title"];if("#attendees-show-more"===this.website){var o="RSVP"===e?t:e;this.$link.html(o)}else"string"==typeof e?this.$link.html(e):"string"==typeof t&&this.$link.html(t)},getWebsite:function(){return this.website},getTitle:function(){return this.$link.html()},getParentQuestionGroupGid:function(){return this.parentQuestionGroupGid},setParentQuestionGroupGid:function(t){this.parentQuestionGroupGid=t,this.$link.attr("data-linked-form",t)},getHubSearchTerm:function(){return this.hubSearchTerm},grabInitialStatus:function(){var t=void 0;if("#rsvp"===this.website){var e=i(this.splashGlobal.server._event,"rsvp_status","open");t="closed"!==e&&1==i(this.splashGlobal.server._event,"allow_unrsvp")&&"object"===o(i(this.splashGlobal.server._user,"rsvp"))&&this.splashGlobal.server._user.rsvp.id?"unrsvp":this._formatStatus(e)}else t="default";return t},renderCalendarLinks:function(){var t=window.SPLASH&&window.SPLASH.attendeeApiClient&&window.SPLASH.attendeeApiClient.guestAccessHash,e="&u="+this.splashGlobal.server._event.upload_hash,o=t?"&gha="+t:"",n=r({formBase:this.splashGlobal.server.constants.formBase,calendarLink:e+o,showGoogle:!0,showOutlook:!0,showiCal:!0,showYahoo:!0});this.$el.find(".button-link").replaceWith(n)},addCustomAction:function(t){"function"==typeof t&&(this.customAction=t)},hasCustomAction:function(){return void 0!==this.customAction},runCustomAction:function(){this.customAction.call(this,arguments)},_formatStatus:function(t){return"open"===t?"default":t},isMovementAllowed:function(t){var e=this.getParentQuestionGroupGid();if(e&&!(0!==t.getParents(function(t){return t.getGid()===e}).length))return!1;return!0},getLinkedSessionGid:function(){return this.linkedSessionGid},updateGoToVirtualButton:function(t){var e=window.splash.navElement.getVirtualGoToLink(t);e?(this.$link.attr("href",e),this.reveal()):this.conceal()}};t.extend(O.prototype,b.prototype,d),A.exports={constructor:O,instantiateComponent:function(t){return new O(t)},prototypeObject:d}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../../utils/cms-utils":97,"../../../utils/isValidHref":108,"./../CmsComponent":3,"./add-to-calendar-links.hbs":11,dompurify:126,jquery:"jquery","lodash.get":152,underscore:"underscore"}],11:[function(t,e,o){var n=t("hbsfy/runtime");e.exports=n.template({1:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(p=t.invokePartial(r(n,"calendarLink"),e,{name:"calendarLink",hash:{linkLabel:"Google",linkName:"Gmail"},data:i,indent:" ",helpers:o,partials:n,decorators:t.decorators}))?p:""},3:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(p=t.invokePartial(r(n,"calendarLink"),e,{name:"calendarLink",hash:{linkName:"Outlook"},data:i,indent:" ",helpers:o,partials:n,decorators:t.decorators}))?p:""},5:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(p=t.invokePartial(r(n,"calendarLink"),e,{name:"calendarLink",hash:{linkName:"iCal"},data:i,indent:" ",helpers:o,partials:n,decorators:t.decorators}))?p:""},7:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(p=t.invokePartial(r(n,"calendarLink"),e,{name:"calendarLink",hash:{linkName:"Yahoo"},data:i,indent:" ",helpers:o,partials:n,decorators:t.decorators}))?p:""},9:function(t,e,o,n,i){var p,r,a=null!=e?e:t.nullContext||{},b=t.hooks.helperMissing,c="function",s=t.escapeExpression,M=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" \n \n '+(null!=(p=M(o,"if").call(a,null!=e?M(e,"linkLabel"):e,{name:"if",hash:{},fn:t.program(10,i,0),inverse:t.program(12,i,0),data:i,loc:{start:{line:21,column:12},end:{line:21,column:69}}}))?p:"")+"\n \n \n"},10:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression("function"==typeof(p=null!=(p=r(o,"linkLabel")||(null!=e?r(e,"linkLabel"):e))?p:t.hooks.helperMissing)?p.call(null!=e?e:t.nullContext||{},{name:"linkLabel",hash:{},data:i,loc:{start:{line:21,column:29},end:{line:21,column:42}}}):p)},12:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression("function"==typeof(p=null!=(p=r(o,"linkName")||(null!=e?r(e,"linkName"):e))?p:t.hooks.helperMissing)?p.call(null!=e?e:t.nullContext||{},{name:"linkName",hash:{},data:i,loc:{start:{line:21,column:50},end:{line:21,column:62}}}):p)},compiler:[8,">= 4.3.0"],main:function(t,e,o,n,i,p,r){var a,b=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\n'+(null!=(a=c(o,"if").call(b,null!=e?c(e,"showGoogle"):e,{name:"if",hash:{},fn:t.program(1,i,0,p,r),inverse:t.noop,data:i,loc:{start:{line:3,column:4},end:{line:5,column:11}}}))?a:"")+(null!=(a=c(o,"if").call(b,null!=e?c(e,"showOutlook"):e,{name:"if",hash:{},fn:t.program(3,i,0,p,r),inverse:t.noop,data:i,loc:{start:{line:6,column:4},end:{line:8,column:11}}}))?a:"")+(null!=(a=c(o,"if").call(b,null!=e?c(e,"showiCal"):e,{name:"if",hash:{},fn:t.program(5,i,0,p,r),inverse:t.noop,data:i,loc:{start:{line:9,column:4},end:{line:11,column:11}}}))?a:"")+(null!=(a=c(o,"if").call(b,null!=e?c(e,"showYahoo"):e,{name:"if",hash:{},fn:t.program(7,i,0,p,r),inverse:t.noop,data:i,loc:{start:{line:12,column:4},end:{line:14,column:11}}}))?a:"")+"
\n\n\n"},main_d:function(t,e,o,n,i,p,r){var a=o.decorators;return t=(o.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]})(a,"inline")(t,e,o,{name:"inline",hash:{},fn:o.program(9,i,0,p,r),inverse:o.noop,args:["calendarLink"],data:i,loc:{start:{line:18,column:0},end:{line:24,column:11}}})||t},useDecorators:!0,usePartial:!0,useData:!0,useDepths:!0})},{"hbsfy/runtime":149}],12:[function(t,e,o){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=t("jquery"),p=t("underscore"),r=t("lodash.get"),a=t("./../CmsComponent").constructor,b=t("../../managers/PageActionManager"),c="ready",s="submitting",M="completed",z="closed",O="rsvped",d="not-rsvped";function l(t){a.call(this,t),this.status=c,this.conceal()}var u={initType:function(t){this.cancelRsvpSubmitButton=this._findCancelRsvpSubmitButton(),this.refreshVisibility()},bindTypeEvents:function(){this.listenTo(this.cancelRsvpSubmitButton,"action-triggered",function(){this.submit()}),this.PubSub.subscribe("rsvp-completed",{context:this,eventHandler:this.setStatus.bind(this,c)}),this.PubSub.subscribe("unrsvp-completed",{context:this,eventHandler:this.setStatus.bind(this,c)})},unbindTypeEvents:function(){},grabRsvpStatus:function(){return b.get().getCurrentEventRsvpStatus()},grabAttendeeRsvpStatus:function(){return"object"===n(this.splashGlobal.server._user)&&"object"===n(this.splashGlobal.server._user.rsvp)?O:d},setStatus:function(t){this.status=t,this.refreshVisibility()},refreshVisibility:function(){this.$el.attr("data-status",this.status),this.status===M||this.grabAttendeeRsvpStatus()===d||this.grabRsvpStatus()===z?this.conceal():this.reveal()},submit:function(){this.validate()?this._submitRequest():this.alertManager.notify("Error processing RSVP cancellation. Please refresh and try again","error")},validate:function(){return this.splashGlobal.server._user.id&&"object"===n(this.splashGlobal.server._user.rsvp)&&"number"==typeof this.splashGlobal.server._user.rsvp.id},_submitRequest:function(){var e=this,o={action:"rsvp",unrsvp:1};this.setStatus(s);var t=r(this.splashGlobal,"server.constants.ticketHash");t&&(o.hash=t),i.ajax({url:this.splashGlobal.server.constants.formBase+""+location.search,type:"POST",dataType:"json",data:o}).done(function(t){e._handleServerResponse(t,o)}).fail(function(t){e.setStatus(c),SplashUI.notify("Error with the submission. Please try again")})},_handleServerResponse:function(t,e){if(!t||"error"===t.status)return"rsvp-not-found"===t.errorCode&&(this.splashGlobal.server._user.rsvp=void 0,this.refreshAttendeeRsvpStatus()),this.PubSub.publish("unrsvp-failed",{serverResponse:t,rsvpParams:e}),this.setStatus(c),!1;this.setStatus(M),this.splashGlobal.server._user.rsvp=void 0,this.PubSub.publish("unrsvp-completed",{serverResponse:t,rsvpParams:e,component:this});var o=this.getParents(function(t){return"modal"===t.getType()});p.each(o,function(t){t.close()})},_findCancelRsvpSubmitButton:function(){var t=this.$el.find('a[href="#cancel-rsvp-submit"]').closest(".layoutGrp");return this.cmsComponentManager.getComponentInstance(t)}};i.extend(l.prototype,a.prototype,u),e.exports={constructor:l,instantiateComponent:function(t){return new l(t)},prototypeObject:u}},{"../../managers/PageActionManager":71,"./../CmsComponent":3,jquery:"jquery","lodash.get":152,underscore:"underscore"}],13:[function(t,e,o){var n=t("../../managers/PageActionManager").get(),i=t("underscore"),p=t("dompurify"),r=t("../../../utils/cms-utils"),a=t("./../CmsComponent").constructor,b='Preview Placeholder';function c(t){a.call(this,t),this.triggerType=i.isString(t.triggerType)&&t.triggerType?t.triggerType:null,this.ticketTypeId=r.tryParseInt(t.ticketTypeId,null),this.$el.attr("aria-live","polite")}var s={initType:function(){this.refreshVisibility()},bindTypeEvents:function(){},unbindTypeEvents:function(){},getTriggerType:function(){return this.triggerType},getTicketTypeId:function(){return this.ticketTypeId},refreshVisibility:function(t){var e=this.splashGlobal.finetune&&this.splashGlobal.finetune.tree;e&&e.getCurrentSubTreeGid()===this.getGid()||t?this.reveal():this.conceal()},resolveDynamicTags:function(t){var e="tickets"===n.getEventRegistrationType()?this._createDynamicTagsMapFromTicketData(t):this._createDynamicTagsMapFromRsvpData(t),o=this.getChildren();i.each(o,function(t){this._resolveDynamicTagsInElementMarkup(t,e)},this)},revertDynamicTags:function(t){var e="tickets"===n.getEventRegistrationType()?this._createDynamicTagsMapFromTicketData(t):this._createDynamicTagsMapFromRsvpData(t),o=this.getChildren();e=i.invert(e),i.each(o,function(t){this._resolveDynamicTagsInElementMarkup(t,e)},this)},_wrapValuesInTagSyntax:function(t){return i.chain(t).invert().mapObject(function(t){return"["+t+"]"}).invert().value()},_resolveDynamicTagsInElementMarkup:function(t,o){if(!t.getChildren().length){var e=t.getEl().find(".body, .title"),n=e.html();if(n){var i=Object.keys(o).reduce(function(t,e){return t&&t.replace(e,o[e])},n);i!==n&&e.html(p.sanitize(i))}}},_createDynamicTagsMapFromRsvpData:function(t){var e=this._getDefaultDynamicTagsMap();return t&&(this._checkIfValidTagValue(t.msgHead)&&(e.confirmation_headline=t.msgHead),this._checkIfValidTagValue(t.msgBody)&&(e.confirmation_messaging=t.msgBody)),this._wrapValuesInTagSyntax(e)},_createDynamicTagsMapFromTicketData:function(t){var e=this._getDefaultDynamicTagsMap();return t&&(this._checkIfValidTagValue(t.headline)&&(e.confirmation_headline=t.headline),Array.isArray(t.messaging_array)&&t.messaging_array.length&&!t.messaging&&(t.messaging=t.messaging_array[0]),this._checkIfValidTagValue(t.messaging)&&(e.confirmation_messaging=t.messaging)),this._wrapValuesInTagSyntax(e)},_getDefaultDynamicTagsMap:function(){return{confirmation_headline:b,confirmation_messaging:b}},_checkIfValidTagValue:function(t){return"string"==typeof t&&0'+r+b+"")}e&&(c+=''+e+"
")}),c};var z=n(t("moment-timezone")),O=n(t("../../../utils/cms-utils"));function n(t){return t&&t.__esModule?t:{default:t}}var d="string",l=" ",i="MM/DD/YYYY HH:mm:ss";function u(t,e){var o=(0,z.default)(t,i);return"ha"===e&&0!==o.minute()&&(e="h:mma"),o.format(e)}},{"../../../utils/cms-utils":97,"moment-timezone":319}],22:[function(t,e,o){var n=t("underscore"),i=t("./../CmsComponent").constructor;function p(t){i.call(this,t)}var r={initType:function(){},bindTypeEvents:function(){},unbindTypeEvents:function(){}};n.extend(p.prototype,i.prototype,r),e.exports={constructor:p,instantiateComponent:function(t){return new p(t)},prototypeObject:r}},{"./../CmsComponent":3,underscore:"underscore"}],23:[function(t,e,o){var n=t("jquery"),i=t("./../CmsComponent").constructor;function p(t){i.call(this,t)}var r={initType:function(){this.renderEventCardBgImage()},renderEventCardBgImage:function(){var t=this.$el.find(".cms-event-card-image"),e=this._getEventCardImageFromEvent();t.length&&"string"==typeof e&&""!==e&&t.css("background-image",this._getBackgroundImageSourceFromUrl(e))},_getEventCardImageFromEvent:function(){var t=this.splashGlobal.server._event&&this.splashGlobal.server._event.eventCardImages&&this.splashGlobal.server._event.eventCardImages.x3;return!t&&this.splashGlobal.server._event.eventCardImages&&(t=this.splashGlobal.server._event.eventCardImages.x2),t},_getBackgroundImageSourceFromUrl:function(t){return'url("'+t+'")'}};n.extend(p.prototype,i.prototype,r),e.exports={constructor:p,instantiateComponent:function(t){return new p(t)},prototypeObject:r}},{"./../CmsComponent":3,jquery:"jquery"}],24:[function(t,e,o){var n=t("jquery"),i=t("dompurify"),p=t("./../CmsComponent").constructor;function r(t){p.call(this,t),this.$title=this.$el.find(".event-card-title"),this.$description=this.$el.find(".event-card-description")}var a={initType:function(){this._syncWithEventConstants()},bindTypeEvents:function(){},unbindTypeEvents:function(){},_syncWithEventConstants:function(){this.splashGlobal&&this.splashGlobal.server._event&&(this.updateTitle(this.splashGlobal.server._event.title),this.updateDescription(this.splashGlobal.server._event.description),this.updateBgImage(this.splashGlobal.server._event.image))},updateTitle:function(t){this.$title.find(".title:first").text(t)},updateDescription:function(t){this.$description.find(".body:first").html(i.sanitize(t))},updateBgImage:function(t){this.$el.css("background-image",t)}};n.extend(r.prototype,p.prototype,a),e.exports={constructor:r,instantiateComponent:function(t){return new r(t)},prototypeObject:a}},{"./../CmsComponent":3,dompurify:126,jquery:"jquery"}],25:[function(t,e,o){var i=Object.assign||function(t){for(var e=1;e\n ';t.append(o)},removeLoader:function(t){t||(t=this.getEl()),t.find(".thisLoader").remove()}};n.extend(s.prototype,p.prototype,r.prototype,M),e.exports={constructor:s,instantiateComponent:function(t){return new s(t)},prototypeObject:M}},{"../../modules/matchHeightMixin/matchHeight":89,"./../CmsComponent":3,"./constants":26,"./utils":30,underscore:"underscore"}],26:[function(t,e,o){var n="Vertical",i={CLEAR_DROPDOWN_FILTER_TEXT:"Apply No Filter",CLEAR_DROPDOWN_FILTER_VALUE:"__NO_FILTER__",LAYOUT_DEFAULT:"Vertical",LAYOUT_DROPDOWN:"Dropdown",LAYOUT_HORIZONTAL:"Horizontal",LAYOUT_VERTICAL:n,MAX_LIMIT:100};e.exports=i},{}],27:[function(t,e,o){var n=t("hbsfy/runtime");e.exports=n.template({1:function(t,e,o,n,i){return"checkbox-filter-options-container--float"},3:function(t,e,o,n,i,p,r){var a,b,c=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,M="function",z=t.escapeExpression,O=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n'},4:function(t,e,o,n,i){return' sui-checkbox="style-inherit"\n'},6:function(t,e,o,n,i){return" sui-checkbox\n"},8:function(t,e,o,n,i){return"1"},10:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(p=r(o,"if").call(null!=e?e:t.nullContext||{},null!=e?r(e,"active"):e,{name:"if",hash:{},fn:t.program(8,i,0),inverse:t.program(11,i,0),data:i,loc:{start:{line:16,column:65},end:{line:16,column:93}}}))?p:""},11:function(t,e,o,n,i){return"0"},compiler:[8,">= 4.3.0"],main:function(t,e,o,n,i,p,r){var a,b=null!=e?e:t.nullContext||{},c=t.lambda,s=t.escapeExpression,M=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\n
'+s(c(null!=(a=null!=e?M(e,"filter"):e)?M(a,"label"):a,e))+"
\n\n"+(null!=(a=M(o,"each").call(b,null!=(a=null!=e?M(e,"filter"):e)?M(a,"options"):a,{name:"each",hash:{},fn:t.program(3,i,0,p,r),inverse:t.noop,data:i,loc:{start:{line:7,column:4},end:{line:20,column:13}}}))?a:"")+"
\n"},useData:!0,useDepths:!0})},{"hbsfy/runtime":149}],28:[function(t,e,o){var n=t("hbsfy/runtime");e.exports=n.template({1:function(t,e,o,n,i){return"checkbox-filter-options-container--float"},3:function(t,e,o,n,i,p,r){var a,b,c=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,M="function",z=t.escapeExpression,O=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' \n'},4:function(t,e,o,n,i){return' sui-checkbox="style-inherit"\n'},6:function(t,e,o,n,i){return" sui-checkbox\n"},8:function(t,e,o,n,i){return"1"},10:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(p=r(o,"if").call(null!=e?e:t.nullContext||{},null!=e?r(e,"selected"):e,{name:"if",hash:{},fn:t.program(8,i,0),inverse:t.program(11,i,0),data:i,loc:{start:{line:14,column:65},end:{line:14,column:114}}}))?p:""},11:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(p=r(o,"if").call(null!=e?e:t.nullContext||{},null!=e?r(e,"active"):e,{name:"if",hash:{},fn:t.program(8,i,0),inverse:t.program(12,i,0),data:i,loc:{start:{line:14,column:86},end:{line:14,column:114}}}))?p:""},12:function(t,e,o,n,i){return"0"},compiler:[8,">= 4.3.0"],main:function(t,e,o,n,i,p,r){var a,b=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'= 4.3.0"],main:function(t,e,o,n,i){var p,r=null!=e?e:t.nullContext||{},a=t.lambda,b=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'
\n
'+b(a(null!=(p=null!=e?c(e,"filter"):e)?c(p,"label"):p,e))+'
\n\n
\n
\n"},useData:!0})},{"hbsfy/runtime":149}],30:[function(t,e,o){var n=Object.assign||function(t){for(var e=1;e
'),e.find("div").text(t)}},isReactAppLoaded:function(){return this._reactAppLoaded},loadFormRendererReactApp:function(){if(window.SPLASH&&window.SPLASH.insertFormRenderer){var t=this.$el.find(".sf:first")[0],e=void 0;try{e=window.SPLASH.insertFormRenderer(t)}catch(t){return void console.error(t)}this._reactAppLoaded=!0,this._unmountReactApp=e.unmount,e.unmount||console.warn("FormRendererWrapper, no unmount available.")}},unmountReactApp:function(){this._unmountReactApp&&(this._unmountReactApp(),this._unmountReactApp=null)},isRegistrationOpenToUser:function(){return t.get().isRegistrationOpenToUser()}};e.extend(p.prototype,n.prototype,r),c.exports={constructor:p,instantiateComponent:function(t){return new p(t)},prototypeObject:r}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../constants/formStatusEnum":69,"../../managers/PageActionManager":71,"./../CmsComponent":3,underscore:"underscore"}],32:[function(t,e,o){var n=t("jquery"),i=(t("underscore"),t("./../CmsComponent").constructor);function p(t){i.call(this,t),this.isShowingRSVP="collect"===this.splashGlobal.server._event.rsvp_method,this.isShowingConfirmation=!1}var r={initType:function(){this.ticketGroupComponent=this.cmsComponentManager.getAllInstancesInContainer(this.$el,"ticket-group")[0],this.ticketConfirmationComponent=this.cmsComponentManager.getAllInstancesInContainer(this.$el,"ticket-group-confirmation")[0],this.questionGroupComponent=this.cmsComponentManager.getAllInstancesInContainer(this.$el,"question-group")[0],this.questionConfirmationComponent=this.cmsComponentManager.getAllInstancesInContainer(this.$el,"question-group-confirmation")[0]},bindTypeEvents:function(){},unbindTypeEvents:function(){},getApplicableForm:function(){return this.isShowingRSVP?this.questionGroupComponent:this.ticketGroupComponent},getApplicableFormConfirmation:function(){return this.isShowingRSVP?this.questionConfirmationComponent:this.ticketConfirmationComponent}};n.extend(p.prototype,i.prototype,r),e.exports={constructor:p,instantiateComponent:function(t){return new p(t)},prototypeObject:r}},{"./../CmsComponent":3,jquery:"jquery",underscore:"underscore"}],33:[function(t,e,o){t("jquery");var n=t("underscore"),i=t("./../CmsComponent").constructor;function p(t){i.call(this,t)}var r={initType:function(){},bindTypeEvents:function(){},unbindTypeEvents:function(){}};n.extend(p.prototype,i.prototype,r),e.exports={constructor:p,instantiateComponent:function(t){return new p(t)},prototypeObject:r}},{"./../CmsComponent":3,jquery:"jquery",underscore:"underscore"}],34:[function(p,r,t){(function(i){(function(){var t=p("jquery"),e=(p("underscore"),"undefined"!=typeof window?window.splash:void 0!==i&&i.splash,p("./../CmsComponent").constructor);function o(t){e.call(this,t),this.legacyType=t.legacyType}var n={getName:function(){var t=e.prototype.getName.call(this);return t||(t=this.cmsComponentManager.getComponentType(this))&&(t=(""+t).replace(/[-_]/g," ")),t},getSuperType:function(t){return t||0!==this.superType.length?this.superType:this.$el.hasClass("p-grp")?"container":"element"},getLegacyType:function(){return this.legacyType},getHeadlineHierachyLevel:function(){var t=this.getGroup();return this.cmsComponentManager.getSplashFeedOptions(t).headlineHierarchyLevel||""}};t.extend(o.prototype,e.prototype,n),r.exports={constructor:o,instantiateComponent:function(t){return new o(t)},prototypeObject:n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../CmsComponent":3,jquery:"jquery",underscore:"underscore"}],35:[function(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e=this.getHubCardCount()&&this.hideShowMoreButton(t),this.listenTo(t,"action-triggered",function(){"#hub-show-more"===t.getWebsite()&&e.toggleIsShowingMore()})},getShowMoreButtons:function(){return this.showMoreButtons},hideShowMoreButton:function(t){t.getEl().addClass("is-hidden")},hideShowMoreButtons:function(){var e=this;this.showMoreButtons.forEach(function(t){e.hideShowMoreButton(t)})},showShowMoreButton:function(t){t.getEl().removeClass("is-hidden")},showShowMoreButtons:function(){var e=this;this.showMoreButtons.forEach(function(t){e.showShowMoreButton(t)})},loadMasterCardTemplates:function(){this.masterCardsUsed=this.cmsComponentManager.getAllComponentInstances(function(t){return"hub-master-card"===t.getType()&&this===t.getHubComponent()}.bind(this))},grabMasterCard:function(t){for(var e in this.masterCardsUsed)if({}.hasOwnProperty.call(this.masterCardsUsed,e)&&this.masterCardsUsed[e].areConditionsTrue(t))return this.masterCardsUsed[e]},_sortHubData:function(t,e){var o=r.sortHubCards(t,this.currentSortField);e&&e(o)},_capHubCards:function(t,e){return(e=e||{}).renderCardLimit=void 0!==e.renderCardLimit?e.renderCardLimit:this.renderCardLimit,!1!==O&&(e.renderCardLimit=O),this.isShowingMore&&(e.renderCardLimit=-1),r.capHubCards(t,e.renderCardLimit)},_filterHubCards:function(t){var e=[].concat(this.filters).concat(this.temporaryFilters);return r.filterHubCards(t,e)},_renderHubCards:function(t,e){e=c.extend({},e),c.defaults(e,{reloadMasterCards:!1});var o=[];if(this._removeHubCardsMarkup(),c.isEmpty(t))c.isEmpty(this.temporaryFilters)?this._setStatus("empty"):this._setStatus("no-results");else{for(var n=this._capHubCards(t,e),i=void 0,p=void 0,r=0;r')},bindTypeEvents:function(){this.PubSub.subscribe(t,{context:this,eventHandler:function(){setTimeout(this.recalculateView.bind(this),0)}})},unbindTypeEvents:function(){this.PubSub.unsubscribe(this)},afterComponentRender:function(){e.prototype.afterComponentRender.call(this),!this.suppressInitialFetch&&this._fetchAndAddImages()},addMultipleImages:function(t){t&&a.each(t,function(t,e){this.addImage(t,{goToSlide:0===e})}.bind(this))},addImage:function(t,e){var o=r(t);this.suiCarousel.addSlide(t,e),o.find("img:first").on("load",this.recalculateView.bind(this,o))},next:function(t){t&&t.preventDefault(),this.suiCarousel.nextSlide()},prev:function(t){t&&t.preventDefault(),this.suiCarousel.previousSlide()},recalculateView:function(t){this.suiCarousel.recalculateView(t)},getCurrentSlide:function(){return this.suiCarousel.getCurrentSlide()},getCurrentPosition:function(){return this.suiCarousel.getCurrentPosition()},getNumberOfSlides:function(){return this.suiCarousel.getNumberOfSlides()},getImagesData:function(){return this.imagesData},_createImageMarkupFromData:function(t){var p=void 0;return t&&t.length?a.map(t,function(t){var e="string"==typeof t?t:t.src,o="string"==typeof t?"-1":t.id,n="string"==typeof t?"":t.caption,i='",(p=r(i)).find("img:first").data("image",t),p}):""},_fetchImages:function(t){var n=this,e=this.getSfid();return t||e&&!/new-/.test(e)?new o(function(e,o){r.ajax({url:"/events/getEventPhotosForCarousel",type:"GET",dataType:"json",data:{event_id:n.splashGlobal.server._event.id,sfid:n.getSfid(),photo_ids:t}}).done(function(t){t?e(t.data?a.sortBy(t.data,"sort"):[]):o(new Error("badResponse"))}).fail(function(t,e){o(new Error(e))})}):o.resolve()},_fetchAndAddImages:function(e){return this._setState("is-loading"),this._fetchImages(e).then(function(t){this.imagesData=e?this.imagesData.concat(t):t,this.addMultipleImages(this._createImageMarkupFromData(t)),this._setState("")}.bind(this)).catch(function(t){throw console.warn("Unable to get photos from server. "+t),this._setState(""),new Error(t)}.bind(this))},_setState:function(t){this.$el.attr("data-state",t)}};r.extend(n.prototype,e.prototype,i),s.exports={constructor:n,instantiateComponent:function(t){return new n(t)},prototypeObject:i}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../constants":15,"./../CmsComponent":3,bluebird:124,jquery:"jquery",underscore:"underscore"}],40:[function(t,e,o){function p(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);e").attr("target","_blank").attr("href",e.externalLink).text(i);e.label=e.label+" "+p[0].outerHTML}}var r=e.inputType.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()});return/style-inherit/.test(e[r])||"label"===r||(e[r]=e[r]?e[r]+" style-inherit":"style-inherit"),"string"==typeof e.customClass&&(e.class=e.customClass),"group_id"!==e.growthMachineProperty||"dropdown"!==e.inputType||e.options&&e.options.length||(e.extensions=(e.extensions||"")+" ajaxable",e.fetchUrl=this.splashGlobal.server.constants.formBase+"/createFlowGroups",e.limit=50),e.htmlType&&-1===M.indexOf(e.htmlType)&&delete e.htmlType,e},_onAddressInputChanged:function(t,e){if(this.suiInstance&&this.suiInstance.extensions&&this.suiInstance.extensions.address){var o=this.suiInstance.extensions.address.getPlace();if("object"===(void 0===o?"undefined":i(o))){var n=this.getParents("question-group");n.length&&(n=n[0],c.each(o,function(t,e){var o=n.findQuestionByCustomClass("autocomplete-"+e);o&&o.setValue(t)}))}}},validate:function(){if(!this.suiInstance)return!1;var t=this.suiInstance.validate();return t||this.pulse(),!!t},getErrors:function(){return!!this.suiInstance&&(!!this.suiInstance.getErrorCode()&&{code:this.suiInstance.getErrorCode(),msg:this.suiInstance.getErrorMsg()})},getValue:function(){return this.suiInstance?this.suiInstance.getValue():void 0},getIsRequired:function(){return this.suiInstance&&this.suiInstance.getIsRequired()},getInputType:function(){return this.inputOpts.inputType},getLabel:function(){return this.suiInstance&&this.suiInstance.getLabel()},getIsRendered:function(){return this.isRendered},getSuiInstance:function(){return this.suiInstance},getIsDisabled:function(){return this.suiInstance.getIsDisabled()},getInputTypeCanChange:function(){return this.inputTypeCanChange},setInputTypeCanChange:function(t){this.inputTypeCanChange=0!=t?1:0},getFileAllowChooseFromLibrary:function(){return this.inputOpts?this.inputOpts.allowChooseFromLibrary:0},setValue:function(t,e){this.suiInstance&&this.suiInstance.setValue(t,e)},setIsDisabled:function(t){this.suiInstance&&this.suiInstance.setIsDisabled(t)},onChange:function(t){this.onChangeCallbacks.push(t),this.suiInstance&&this.suiInstance.onChange(t)},setLoading:function(t){var e="cms-input-loader";this.$el.find("."+e).remove(),t&&this.$el.append('')},hasResponseLimits:function(){return Array.isArray(this.inputOpts.options)&&this.inputOpts.options.some(function(t){return t.responseLimit})},loadRemainingResponses:function(){var o=this,t=this.splashGlobal.server._event.id,e=window.SPLASH.formRendererV2ApiClient;return e?(this.setLoading(!0),this.remainingOptionsPromise=this.remainingOptionsPromise?this.remainingOptionsPromise:e.getRemainigResponses(t),this.remainingOptionsPromise.then(function(t){var e=o.getAddressBookContactQuestionId();e||console.warn("CMS Input: no abcqId"),t[e]?o.updateRemainingResponseOptions(t[e]):console.warn("CMS Input: no response limits returned for abcqId "+e)}).catch(function(t){console.error(o.constructor.name+"->loadRemainingResponses()",t)}).then(function(){return o.setLoading(!1)})):(console.warn("CMS Input: no form renderer v2 client found"),Promise.reject(new Error))},updateRemainingResponseOptions:function(t){var o=this,n={};t.forEach(function(t){n[t.value]=t.available});var e=(this.inputOpts.options||[]).filter(function(t){if(!o.inputOpts.hideNotAvailableResponses)return!0;var e=n[t.value];return o.inputOpts.hideNotAvailableResponses&&e}).map(function(t){var e=n[t.value];return a({},t,{text:o.getShowRemainingResponses()?o.getOptionWithResponseLimitLabel(t.text,e):t.text,isDisabled:e<=0})});!t.length||e.length?this.suiInstance.resetOptions(e):this._clearSuiInput()},getAddressBookContactQuestionId:function(){return this.inputOpts.customQuestionId},getShowRemainingResponses:function(){return this.inputOpts.showRemainingResponses},getOptionWithResponseLimitLabel:function(t,e){return Number.isFinite(e)?t+' ('+(0":t}};c.extend(n.prototype,o.prototype,t),d.exports={constructor:n,instantiateComponent:function(t){return new n(t)},prototypeObject:t}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../managers/PageActionManager":71,"./../CmsComponent":3,dompurify:126,jquery:"jquery",underscore:"underscore"}],44:[function(t,e,o){var n,i=t("@splashthat/sui/lib/theme"),p=(n=i)&&n.__esModule?n:{default:n},r=t("../../constants/touchpointTypes"),a=t("../../modules/elementVisibilityTrigger");var b=t("jquery"),c=t("underscore"),s=t("../../../utils/cms-utils"),M=t("../constants"),z=M.PUBSUB_PAGE_RESIZE_RENDERED,O=M.PUBSUB_CUSTOM_MODAL_OPENED;t("mapbox.js");var d=t("./../CmsComponent").constructor,l="mapbox://styles/splash/ck8rjfd8904tu1ilhud5j0rh1",u=40.7450898,A=-73.99254580000002,h=function(t){return t.name?t.name+" ("+t.city+", "+t.country+")":"Venue Location TBD"},f=function(t){return(0,r.isSplashEventContext)(t.server.constants.touchpointType)&&t.server._event.venue.lat&&!t.server._event.venue.tbd?t.server._event.venue.lat:u},q=function(t){return(0,r.isSplashEventContext)(t.server.constants.touchpointType)&&t.server._event.venue.lng&&!t.server._event.venue.tbd?t.server._event.venue.lng:A},m=function(t){var e=t.colorSwatch,o=e&&e.getActiveSwatchColors();if(!o||!o.length)return p.default.palette.grayscale.gray10;var n=Math.floor(.5*o.length);return e?s.rgbToHex(o[n]):""},W=function(t){return t.server.constants.mapboxAccessToken};function g(t){d.call(this,t),t.mapbox_settings&&delete(t=c.extend({},t.mapbox_settings,t)).mapbox_settings,this.map=!1,this.markerLayer=!1,this.isUsingCustomMap=t.isUsingCustomMap&&"false"!==t.isUsingCustomMap?1:0,this.mapboxId=t.mapboxId||l,this.zoom=parseFloat(t.zoom)||15,this.accessToken=t.accessToken||W(this.splashGlobal),this.customMapStyle=t.customMapStyle||"",this.venueDescription=t.venueDescription||"",this.isUsingDefaultVenue=void 0!==t.isUsingDefaultVenue?Number(t.isUsingDefaultVenue):!(t.lat&&f(this.splashGlobal)!=t.lat||t.lng&&q(this.splashGlobal)!=t.lng),this.isUsingDefaultVenue?(this.lat=f(this.splashGlobal),this.lng=q(this.splashGlobal),this.venueName=h(this._getVenueFromPage())):(t.lat?this.lat=parseFloat(t.lat):this.lat=t.coords?parseFloat(t.coords.lat):f(this.splashGlobal),t.lng?this.lng=parseFloat(t.lng):this.lng=t.coords?parseFloat(t.coords.lng):q(this.splashGlobal),this.venueName=t.venueName||h(this._getVenueFromPage())),this.markerColor=t.markerColor||m(this.splashGlobal),this.markerSize=t.markerSize||"medium",this.markerSymbol=t.markerSymbol||"circle",this.markerGeoJson=[],this.mapVisibilityTrigger=t.getElementVisibilityTrigger?t.getElementVisibilityTrigger():(0,a.getElementVisibilityTrigger)()}var v={initType:function(){var t=this;this.mapVisibilityTrigger.onElementIntersectsViewport({element:this.$el[0],callback:function(){t._setupMapOnView()}}),this.PubSub.subscribe(z,{context:this,eventHandler:this._forceRenderUpdate}),this.PubSub.subscribe(O,{context:this,eventHandler:this._forceRenderUpdate})},bindTypeEvents:function(){},unbindTypeEvents:function(){},addMarker:function(t){t=t||{},this.markerGeoJson=[],this.markerGeoJson.push({type:"Feature",geometry:{type:"Point",coordinates:[void 0!==t.lng?t.lng:this.lng,void 0!==t.lat?t.lat:this.lat]},properties:{title:t.title||this.venueName,description:t.description||this.venueDescription,"marker-size":t.size||this.markerSize,"marker-color":t.color||this.markerColor,"marker-symbol":t.symbol||this.markerSymbol}}),this._updateMarkersInView()},getZoom:function(){return this.zoom},getMarkerColor:function(){return this.markerColor},getVenueName:function(){return this.venueName},getIsUsingCustomMap:function(){return this.isUsingCustomMap},getMapboxId:function(){return this.mapboxId},getLat:function(){return this.lat},getLng:function(){return this.lng},getAccessToken:function(){return this.accessToken},getCustomMapStyle:function(){return this.customMapStyle},getIsUsingDefaultVenue:function(){return Boolean(this.isUsingDefaultVenue)},_setupMapOnView:function(){if(this.mapVisibilityTrigger.hasElementIntersectedViewport()){var t=this.$el.find(".sf:first");if(t.length){try{this.markerLayer=window.L.mapbox.featureLayer(!1,{accessToken:this.accessToken});var e=window.L.mapbox.styleLayer(this.mapboxId,{accessToken:this.accessToken});this.map=window.L.mapbox.map(t[0]),this.map.addLayer(e),this.map.addLayer(this.markerLayer)}catch(t){return void console.error(t)}this._centerMapView(),this.map.scrollWheelZoom.disable(),this.map.touchZoom.disable();var o=this;setTimeout(function(){"number"==typeof o.lat&&o.addMarker()},0)}else console.warn("Tried to setup mapbox, but no sf found")}},_updateMarkersInView:function(){this.markerLayer&&this.markerLayer.setGeoJSON(this.markerGeoJson,{accessToken:this.accessToken})},_centerMapView:function(){this.map&&this.map.setView([this.lat,this.lng],this.zoom)},_getVenueFromPage:function(){return(0,r.isSplashEventContext)(this.splashGlobal.server.constants.touchpointType)?this.splashGlobal.server._event.venue:{address:"Woolworth Bldg",city:"New York",country:"United States",lat:40.7126314,lng:-74.0083037,name:"Woolworth Building",state:"NY",tbd:!1,zip_code:"10007"}},_forceRenderUpdate:function(){this.map&&"function"==typeof this.map._onResize&&(this.map._onResize(),this._centerMapView())}};b.extend(g.prototype,d.prototype,v),e.exports={constructor:g,instantiateComponent:function(t){return new g(t)},prototypeObject:v,otherExports:{getFormattedVenueName:h,getDefaultLatFromPage:f,getDefaultLngFromPage:q,getDefaultMarkerColor:m,getSplashMapboxAccessToken:W,DEFAULT_ZOOM:15,DEFAULT_MAP_ID:l,DEFAULT_LAT:u,DEFAULT_LNG:A}}},{"../../../utils/cms-utils":97,"../../constants/touchpointTypes":70,"../../modules/elementVisibilityTrigger":88,"../constants":15,"./../CmsComponent":3,"@splashthat/sui/lib/theme":122,jquery:"jquery","mapbox.js":304,underscore:"underscore"}],45:[function(p,r,t){(function(i){(function(){var t=p("jquery"),e=(p("underscore"),"undefined"!=typeof window?window.splash:void 0!==i&&i.splash,p("./../CmsComponent").constructor);function o(t){e.call(this,t),this.states,this.currentState}var n={initType:function(){console.log("Messaging initType"),this.$el.find(".cms-messaging-initialized").removeClass("is-hidden")},bindTypeEvents:function(){console.log("Messaging bindType");this.$el.find(".cms-messaging-bound").removeClass("is-hidden")},unbindTypeEvents:function(){this.$el.find(".cms-messaging-bound").addClass("is-hidden")}};t.extend(o.prototype,e.prototype,n),r.exports={constructor:o,instantiateComponent:function(t){return new o(t)},prototypeObject:n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../CmsComponent":3,jquery:"jquery",underscore:"underscore"}],46:[function(t,e,o){var n=t("jquery"),i=t("underscore"),p=t("./../CmsComponent").constructor,r=function(){return Boolean(n.browser&&n.browser.ios)};function a(t){p.call(this,t)}var b={initType:function(t){this.isOpen=!1,this.scrollDistance=null},bindTypeEvents:function(){this.delegate({modalContainerClick:{eventName:"click",contextElement:this.$el,eventHandler:this._handleContainerClick.bind(this)}})},unbindTypeEvents:function(){},_handleContainerClick:function(t){if(t.target===this.$el[0])return t.stopImmediatePropagation(),this.closeAllModals(),!0},getIsOpen:function(){return this.isOpen},open:function(){this.isOpen?this.closeAllModals(!1):(this.applyScrollingFixIOS(),n("body").addClass("is-viewing-modal lockItUp modal-open"),this._showModalContainer(),this.isOpen=!0)},close:function(){n("body").removeClass("is-viewing-modal lockItUp modal-open"),this.cancelScrollingFixIOS(),this._hideModalContainer(),this.isOpen=!1},applyScrollingFixIOS:function(){if(r()){var t=this.$el&&this.$el.find(".splash-tool-modal")[0],e=t?t.getBoundingClientRect().top:0;this.scrollDistance=window.pageYOffset+e,n("body").css("top",-1*this.scrollDistance)}},cancelScrollingFixIOS:function(){r()&&(n("body").css("top",""),this.scrollDistance&&(n(window).scrollTop(this.scrollDistance),this.scrollDistance=null))},closeAllModals:function(t){var e=this.getChildren("modal"),o=!1;t=void 0===t||t,i.each(e,function(t){o=t.hide()||o}),o||this.$el.find(".splash-tool-modal.is-showing").removeClass("is-showing"),t&&this.close()},_showModalContainer:function(){this.$el.addClass("is-showing")},_hideModalContainer:function(){this.$el.removeClass("is-showing")}};n.extend(a.prototype,p.prototype,b),e.exports={constructor:a,instantiateComponent:function(t){return new a(t)},prototypeObject:b}},{"./../CmsComponent":3,jquery:"jquery",underscore:"underscore"}],47:[function(t,e,o){var b=t("jquery"),n=t("underscore"),r=t("../getUrlParams").getUrlParams,c=t("../../../utils/cms-utils"),i=t("./../CmsComponent").constructor,p=t("../constants").PUBSUB_CUSTOM_MODAL_OPENED;function a(t){i.call(this,t),this.modalShowAtLoad=c.tryParseInt(t.modalShowAtLoad,0),this.activeElement=null}var s={initType:function(t){this.modalContainer=this._findModalContainer(),this.isOpen=!1,this.modalShowAtLoad&&this.modalContainer&&!this.modalContainer.getIsOpen()&&this.open()},bindTypeEvents:function(){this.delegate({modalXClick:{eventName:"click",contextElement:this.$el.find(".close-modal"),eventHandler:this._handleXClick.bind(this)},modalClosedByESCKey:{eventName:"keydown.modal-closed-by-esc-key",contextElement:document,eventHandler:this._handleESCKeyDown.bind(this)}})},unbindTypeEvents:function(){},_handleXClick:function(t){b(t.target).hasClass("close-modal")&&this.close()},_handleESCKeyDown:function(t){27===t.which&&this.isOpen&&!c.getIsFinetune()&&this.close()},restoreFocusToPreviousActiveElement:function(){this.activeElement?this.activeElement.focus():c.resetPageFocus(),this.activeElement=null},focusCloseModalButton:function(){this.$el.find(".close-modal").focus()},close:function(){this.restoreFocusToPreviousActiveElement(),this.modalContainer&&this.modalContainer.close(),this.hide()},open:function(){this.activeElement=document.activeElement,this.modalContainer&&this.modalContainer.open(),this.show(),this.PubSub.publish(p)},show:function(){return!this.isOpen&&(this.$el.addClass("is-showing"),this.isOpen=!0,this.trigger("modal-opened"),this._linkGuestAccessHash(),this._setAriaHiddenOnPageElements(),this._setTabIndexOnPageElements(),window.matchHeight&&window.getMatchHeightContainers&&window.matchHeight(window.getMatchHeightContainers(this.$el)),this.$el.find("input").length?this.$el.find("input").first().focus():this.focusCloseModalButton(),this.cmsComponentManager.getAllInstancesInContainer(this.$el).forEach(function(t){t.trigger("parent-modal-opened")}),!0)},_setAriaHiddenOnPageElements:function(){var t=this.cmsComponentManager.getTopLevelGid(),e=this.cmsComponentManager.getComponentInstance(t).$el.children(':not(".cms-modal-container-container")'),o=b(".cms-modal-container:not(.is-showing, .not-movable)"),n=b("#footer"),i=b("#splash-tuning-fork--iframe"),p=b("#simple-modal-wrap"),r=b().add(e).add(o).add(n).add(i).add(p);this.isOpen?r.each(function(t,e){return c.cacheAttributeAsDataAttribute(b(e),"aria-hidden")}).attr("aria-hidden",!0):r.each(function(t,e){return c.resetDataAttributeAsAttribute(b(e),"aria-hidden")})},_setTabIndexOnPageElements:function(){var t=this.cmsComponentManager.getTopLevelGid(),e="a, button, iframe, input, select, textarea, img, [tabindex=0]",o=this.cmsComponentManager.getComponentInstance(t).$el.children(':not(".cms-modal-container-container")').find(e),n=b(".cms-modal-container:not(.is-showing, .not-movable)").find(e),i=b("#footer").find(e),p=b("#splash-tuning-fork--iframe"),r=b("#simple-modal-wrap").find(e),a=b().add(o).add(n).add(i).add(p).add(r);this.isOpen?a.each(function(t,e){return c.cacheAttributeAsDataAttribute(b(e),"tabindex")}).attr("tabindex",-1):a.each(function(t,e){return c.resetDataAttributeAsAttribute(b(e),"tabindex")})},hide:function(){return!!this.isOpen&&(this.$el.removeClass("is-showing"),this.isOpen=!1,this.trigger("modal-closed"),this._resetIframesInsideModal(),this._setAriaHiddenOnPageElements(),this._setTabIndexOnPageElements(),!0)},getIsOpen:function(){return this.isOpen},_resetIframesInsideModal:function(){this.$el.find("iframe").each(function(t,e){var o=b(e),n=o.attr("src");o.attr("src","").attr("src",n)})},_findModalContainer:function(){var t=this.getParents("modal-container");return t.length?t[0]:void 0},_linkGuestAccessHash:function(){var p=window.SPLASH&&window.SPLASH.attendeeApiClient&&window.SPLASH.attendeeApiClient.guestAccessHash;if(p){var t=this.$el.find(".button-link");t.length&&b.each(t,function(t,e){var o=r(e.href);if(o.stageType&&"session"===o.stageType){var n="&guest-access-hash="+p,i=""+e.href+n;b(e).attr("href",i)}})}}};n.extend(a.prototype,i.prototype,s),e.exports={constructor:a,instantiateComponent:function(t){return new a(t)},prototypeObject:s}},{"../../../utils/cms-utils":97,"../constants":15,"../getUrlParams":35,"./../CmsComponent":3,jquery:"jquery",underscore:"underscore"}],48:[function(t,e,o){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=t("jquery"),i=t("underscore"),r=t("lodash.get"),a=t("./../CmsComponent").constructor,c=t("../../managers/PageActionManager"),b=t("../../constants/formStatusEnum"),s=t("../../../utils/captcha"),z=t("../../../utils/flag"),M=t("../../../utils/wkwebview-postmessage");function O(t){a.call(this,t);var e=c.get();this.rsvpStatus=e.getCurrentEventRsvpStatus(),this.questionsData=e.getCurrentRsvpQuestions("requireHardcodedQuestions"),this.status=b.READY,this.questionInstances=[],this.validationErrors=[],this.$questionsRepeatableContainer=this.$el.find(".cms-question-group-repeatable-container:first"),this.captcha=s({attachTo:"#g-"+this.gid+" .cms-question-group-repeatable-container:first",attachMethod:"append",splashGlobal:this.splashGlobal}),this.conceal()}O.RSVP_STATUS={CLOSED:"closed",OPEN:"open",WAITLIST:"waitlist"};var d={initType:function(){this.errorContainer=this.cmsComponentManager.getComponentInstance(this.$el.find(".cms-question-group-error-container")),this.rsvpsClosedContainer=this.cmsComponentManager.getComponentInstance(this.$el.find(".cms-question-group-rsvps-closed-container")),this.questionGroupRepeatableContainer=this.cmsComponentManager.getComponentInstance(this.$el.find(".cms-question-group-repeatable-container")),this._clearErrors(),this._setRsvpStatus(this.rsvpStatus),this.questionInstances=this._getQuestionComponentsInThisGroup()},bindTypeEvents:function(){var e=this;this.PubSub.subscribe("unrsvp-completed",function(t){e._setRsvpStatus(c.get().getCurrentEventRsvpStatus()),e.setStatus(b.READY)}),this.PubSub.subscribe("rsvp-reset",function(t){e._resetFormValues(),e._resetFormStatus()}),this.PubSub.subscribe("rsvp-completed",function(){e.setStatus(b.COMPLETED)})},afterComponentRender:function(t){a.prototype.afterComponentRender.call(this),this.submitButton=this._getSubmitButtonInstance(),this._refreshDataForQuestionInstances(),this.populateWithDefaultValues(),this.evaluateConditionalQuestions(),this._bindChangesForConditionalQuestions(),this.refreshVisibility()},unbindTypeEvents:function(){},getQuestionDataByColumnName:function(e){return i.find(this.questionsData,function(t){return t&&t.columnName===e})},refreshVisibility:function(t){var e=c.get().isRegistrationOpenToUser(t),o=this.rsvpsClosedContainer,n=this.questionGroupRepeatableContainer,i=this.submitButton,p=void 0,r=void 0,a=void 0,b=void 0;o?(p=this.inRsvpCollectPage()&&!this.isAlreadySubmitted(),a=!(r=e),b=r):(p=this.inRsvpCollectPage()&&e&&!this.isAlreadySubmitted(),a=!(b=r=!0)),this.setIsConcealed(!p),p&&(n&&n.setIsConcealed(!r),i&&i.setIsConcealed(!b),o&&o.setIsConcealed(!a)),this.$el.attr("data-status",this.status)},submit:function(t){t||(t={});var e={};void 0!==t.extraData&&(e.extraData=t.extraData);var o=!1;void 0!==t.skipFieldValidation&&t.skipFieldValidation?o=!0:(o=this.validate(),this.reloadErrors());var n=this.splashGlobal.server.constants.disable_all_form_submissions;if(n){var i="Unable to save this form.";!0!==n&&1!==n&&"1"!==n&&(i=n),SplashUI.notify(i,"error"),o=!1}o&&this._submitRequest(e)},validate:function(){return this.validationErrors=i.map(this.questionInstances,function(t,e){var o=!t.validate()&&t.getErrors();return{instance:t,error:o}}),this.isPageCaptchaEnabled()&&this.inRsvpCollectPage()&&(this.captcha.validateCaptcha()||(this.captcha.showCaptchaError(),this.validationErrors.push({instance:this.captcha,error:{msg:"Captcha Not Completed"}}))),this.validationErrors=i.filter(this.validationErrors,function(t){return!!t.error}),0===this.validationErrors.length},populateWithDefaultValues:function(){i.each(this.questionInstances,function(t){var e=t.getColumnName(),o=t.getQuestionName(),n=t.getCustomQuestionId(),i=c.get().getDefaultRsvpInputValues(e,n,o);i&&t.setValue(i,{triggerChange:!1})})},getQuestionByColumnName:function(e){return i.find(this.questionInstances,function(t){return t.getColumnName()===e})},findQuestionByCustomClass:function(o){return i.find(this.questionInstances,function(t){var e=t.getQuestionData();return e&&"string"==typeof e.customClass&&-1z.value:!isNaN(b)&&a"+e+"
"});this.errorContainer&&(this.errorContainer.reveal().getEl().addClass("pulse").find(".body").html(o),setTimeout(function(){this.errorContainer.getEl().removeClass("pulse")}.bind(this),2e3))},_prepareFormResponsesData:function(){var p={action:"rsvp",custom:{}};return i.each(this.questionInstances,function(t,e){if(t.getIsSubmittable()){var o=t.getColumnName(),n=t.getValue(),i=void 0;o?/custom_field_[0-9]+/.test(o)?(i=o.replace(/custom_field_([0-9]+)/,"$1"),p.custom[i]=n):p[o]=n:setTimeout(function(){throw new Error("QuestionGroup question submit without name")},0)}}),z("postMessageRsvpSubmission")&&(p=this._mutateParamsForMobileRSVP(this.questionInstances,p)),this.PubSub.publish("form-data-prepared",p),p},_mutateParamsForMobileRSVP:function(t,e){var b=i.extend({action:null,attendee_count:null,email:null,first_name:null,last_name:null,custom:[],guests:[]},e),c={custom_question:/^custom_field_([0-9]+)$/,ivivva_plus_one:/(^__guest_[0-9]+)$/,multiple_guests:/^guest_(emails|names)\[([0-9]+)\]$/},s={action:1,attendee_count:1,email:1,first_name:1,last_name:1,custom:1,guests:1},M=[];return i.each(t,function(t,e){var o=t.getColumnName();if(!s[o]){var n=[];if(c.ivivva_plus_one.test(o))b.guests.push({name:t.getValue(),email:null}),delete b[o];else if(c.multiple_guests.test(o)){var i="emails"===(n=c.multiple_guests.exec(o))[1]?"email":"name",p=n[2],r={};i&&t.getValue()&&((r=M[p]||{})[i]=t.getValue(),M[p]=r),delete b[o]}else{var a={name:t.getName(),column_name:o,custom_question_id:t.getCustomQuestionId(),value:t.getValue()};c.custom_question.test(o)?(n=c.custom_question.exec(o),b.custom[n[1]]=a):b[o]=a}}}),i.each(M,function(t){b.guests.push(t)}),b.attendee_count=b.guests.length,z("isDev")&&(console.log("Submit:Before",e),console.log("Submit:After",b)),b},_submitRequest:function(t){var e=this._prepareFormResponsesData();if(this.isPageCaptchaEnabled()&&this.inRsvpCollectPage()&&(e.recaptcha_response_field=this.captcha.getResponse()),t&&void 0!==t.extraData)for(var o in t.extraData)({}).hasOwnProperty.call(t.extraData,o)&&(e[o]=t.extraData[o]);if(this.setStatus(b.SUBMITTING),z("postMessageRsvpSubmission"))this._handlePostMessageSubmission(e);else{var n=this.splashGlobal.server.constants.formBase+""+location.search;this.splashGlobal&&this.splashGlobal.server&&this.splashGlobal.server.constants&&this.splashGlobal.server.constants.alternateRsvpFormPostEndpoint&&(n=this.splashGlobal.server.constants.alternateRsvpFormPostEndpoint);var i=r(this.splashGlobal,"server.constants.ticketHash");i&&(e.hash=i),p.ajax({url:n,type:"POST",dataType:"json",data:e}).done(function(t){this._handleServerResponse(t,e)}.bind(this)).fail(function(t){this.setStatus(b.READY),SplashUI.notify("Error with the submission. Please try again")}.bind(this))}},_handlePostMessageSubmission:function(t){M("submit",t)},_handleServerResponse:function(t,e){if(!t||"error"===t.status){"error"===t.status&&"incorrectCaptchaSol"===t.errorCode&&this.captcha.showCaptchaError();var o=t.errorCode;return-1!==[].indexOf(o)?this.PubSub.publish("rsvp-failed",{serverResponse:t,rsvpParams:e}):this._throwErrors([{error:{msg:t.msgBody}}]),void this.setStatus(b.READY)}this.setStatus(b.COMPLETED),"object"===n(this.splashGlobal.server._user)&&this.splashGlobal.server._user.id&&(this.splashGlobal.server._user.rsvp={id:-1}),this.PubSub.publish("rsvp-completed",{serverResponse:t,rsvpParams:e}),this._resetFormValues()},_resetFormValues:function(){i.each(this.questionInstances,function(t){t.setValue(null)}),this.captcha&&this.captcha.reset()},_resetFormStatus:function(){this.setStatus(b.READY)},_getQuestionComponentsInThisGroup:function(){return this.cmsComponentManager.getAllComponentInstances(function(t){return"question"===t.getType()&&t.getParentQuestionGroupGid()==this.gid}.bind(this))},_bindChangesForConditionalQuestions:function(t){t=t||this.questionInstances;var e=i.find(t,function(t){return 0"+n+"");var z=t.find(".session-card-description");if(z.length)if(i){var O=k("").text(i).html().replace(/\r\n|\r|\n/g,"
");z.find(".body, .title").html("
"+O+"")}else z.find(".body, .title").html("");var d=t.find(".session-card-start-time");if(d.length)if(r){var l=this.getTimeAtTimezone(r);d.find(".body, .title").html("
"+l+"")}else d.find(".body, .title").html("");var u=t.find(".session-card-end-time");if(u.length)if(a){var A=this.getTimeAtTimezone(a);u.find(".body, .title").html("
"+A+"")}else u.find(".body, .title").html("");var h=t.find(".session-card-date");if(h.length){var f=h.attr("data-master-gid"),q=this.cmsComponentManager.getComponentInstance(f),m={start:r?this.getDateAtTimezone(r):null,end:a?this.getDateAtTimezone(a):null,tbd:!1},W=q.formatBody(m);W?h.html(""+W):h.html("")}var g=t.find(".session-card-speakers");if(g.length){var v=c.map(function(t){return t.speaker}).map(function(t){return[t.first_name,t.last_name]}).map(function(t){return t.filter(function(t){return!!t}).join(" ")});g.find(".body, .title").html("
"+v.join(", ")+"")}var _=t.find(".session-card-tag-list");_&&Array.isArray(b)&&this.updateTags(b,_,t);var y="TBD";if(r&&a){var R=P(r),L=P(a),T=P.duration(L.diff(R));y=T.asMinutes()<=60?Math.round(T.asMinutes())+"m":T.asHours()<=24?Math.round(T.asHours())+"h":Math.round(T.asDays())+"d"}var C=t.find(".session-card-duration");C.length&&C.find(".body, .title").html("
"+y+"");var N=t.find(".session-card-room");N.length&&N.find(".body, .title").html("
"+this.linkify(p)+"");var B=t.find(".session-card-venue");B.length&&B.find(".body, .title").html("
"+this.linkify(s)+"");var w=void 0;p&&s?w=s+" - "+p:p&&!s?w=p:s&&(w=s);var S=t.find(".session-card-location");if(S.length){var E=w?"
- "+w+"":"";S.find(".body, .title").html(this.linkify(E))}var X=t.find(I);return X.length&&(this.getCardTypeForSession(e)===x?X.remove():X.find(D).find(".body, .title").html(this.getRsvpBtnTextForSession(e))),this.bindCardEvents(t,e),t},getTimeAtTimezone:function(t){var e=1
").text(t).html()}),p=r.reduce(i,function(t,e){return t+" session-card-tag-"+e.replace(/\s/g,"-")},i[0]);p=p.split(" ").slice(1).join(" ").toLowerCase().replace(/[^\sa-z0-9-]+/g,""),n=r.reduce(i,function(t,e){return t+''+e+"
"},""),o.addClass(p)}e.find(".title, .body").html(n)},getVenues:function(){return this.venues},hasVenue:function(t){return-1 \n ';t.append(o)},removeLoader:function(t){t||(t=this.getEl()),t.find(".thisLoader").remove()},addLoaderToRsvpButton:function(t){var e=this.getSessionDomMasterCard(t);if(e){var o=e.find(D);o.addClass("is-loading"),this.addLoader(o,"small")}},removeLoaderFromRsvpButton:function(t){var e=this.getSessionDomMasterCard(t);if(e){var o=e.find(D);o.removeClass("is-loading"),this.removeLoader(o)}},showNoMasterCardsMessage:function(){this.showMessage("Error: No master cards were loaded. Please try again.")},showNoSessionsMessage:function(){this.showMessage(this.getEmptyStateText())},showSessionLoadErrorMessage:function(){this.showMessage("Error: Failed to load sessions. Please try again.")},showMessage:function(t){this.getMessageContainer().html(t).removeClass("is-hidden")},hideMessage:function(){this.getMessageContainer().addClass("is-hidden")},getAttendeeEventStatus:function(){return this.attendeeEventStatus},setAttendeeEventStatus:function(t){this.attendeeEventStatus=t},getAttendeeSessionIds:function(){return this.attendeeSessionIds},setAttendeeSessionIds:function(t){this.attendeeSessionIds=t,this.render()},setAttendeeSessionIdsWithoutRender:function(t){this.attendeeSessionIds=t},addAttendeeSessionId:function(t){this.attendeeSessionIds.push(t),this.render()},removeAttendeeSessionId:function(t){this.attendeeSessionIds=r.without(this.attendeeSessionIds,t),this.render()},hasAttendeeSessionId:function(t){return-1$1').replace(/(^|[^\/])(www\.[-A-Z0-9+&@#\/%?=~_|!:,.;]+(\b|$))/gim,'$1$2').replace(/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim,'$1')}};r.extend(T.prototype,p.prototype,s.prototype,C),e.exports={constructor:T,instantiateComponent:function(t){return new T(t)},prototypeObject:C}},{"../../../utils/geolocator":102,"../../modules/matchHeightMixin/matchHeight":89,"./../CmsComponent":3,"./agenda-modal.hbs":56,bluebird:124,jquery:"jquery",moment:"moment",underscore:"underscore"}],56:[function(t,e,o){var n=t("hbsfy/runtime");e.exports=n.template({1:function(t,e,o,n,i){return' \n \n
\n'},compiler:[8,">= 4.3.0"],main:function(t,e,o,n,i){var p,r=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\n\n'+(null!=(p=r(o,"if").call(null!=e?e:t.nullContext||{},null!=e?r(e,"showCalendarBtn"):e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i,loc:{start:{line:9,column:0},end:{line:15,column:7}}}))?p:"")},useData:!0})},{"hbsfy/runtime":149}],57:[function(t,e,o){var n=t("underscore"),i=t("../../modules/matchHeightMixin/matchHeight"),p=t("./../CmsComponent").constructor;function r(t){p.call(this,t),i.call(this,t)}var a={initType:function(){},bindTypeEvents:function(){},unbindTypeEvents:function(){},afterComponentRender:function(){p.prototype.afterComponentRender.call(this),this.getEl().toggleClass("not-edited",0===this.getDirectChildren().length)}};n.extend(r.prototype,p.prototype,i.prototype,a),e.exports={constructor:r,instantiateComponent:function(t){return new r(t)},prototypeObject:a}},{"../../modules/matchHeightMixin/matchHeight":89,"./../CmsComponent":3,underscore:"underscore"}],58:[function(t,e,o){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=t("jquery"),p=t("./../CmsComponent").constructor;function r(t){p.call(this,t),this.propertyLinkedTo="string"==typeof t.propertyLinkedTo&&""!==t.propertyLinkedTo?t.propertyLinkedTo:null}var a={initType:function(){"user.avatar"===this.propertyLinkedTo?this.populateAvatarForUser(this.splashGlobal.server._user):"event.owner.avatar"===this.propertyLinkedTo&&this.populateAvatarForUser(this.splashGlobal.server._event.owner)},bindTypeEvents:function(){},unbindTypeEvents:function(){},getPropertyLinkedTo:function(){return this.propertyLinkedTo},populateAvatarForUser:function(t){if("object"===(void 0===t?"undefined":n(t)))if("string"!=typeof t.avatar_url||""===t.avatar_url){var e=void 0;e=t.first_name?t.first_name[0]:t.last_name?t.last_name[0]:t.email?t.email[0]:"",this.$el.find(".sf").html(''+e.toUpperCase()+"
")}else this.$el.css("background-image",'url("'+t.avatar_url+'")')},getLinkBackgroundToHubEventImage:function(){var t=this.getGroup();return 1===parseInt(t.hubEventImage,10)}};i.extend(r.prototype,p.prototype,a),e.exports={constructor:r,instantiateComponent:function(t){return new r(t)},prototypeObject:a}},{"./../CmsComponent":3,jquery:"jquery"}],59:[function(t,e,o){var n=t("underscore"),i=t("./../CmsComponent").constructor,p=t("../image/Image");function r(t){i.call(this,t),p.constructor.call(this,t),this.originalImageUrl=null}var a={initType:function(){},bindTypeEvents:function(){},unbindTypeEvents:function(){},getOriginalImageUrl:function(){return this.getImageUrl()}};n.extend(r.prototype,p.prototypeObject,i.prototype,a),e.exports={constructor:r,instantiateComponent:function(t){return new r(t)},prototypeObject:a}},{"../image/Image":42,"./../CmsComponent":3,underscore:"underscore"}],60:[function(t,e,o){var n=Object.assign||function(t){for(var e=1;et&&(t=this.getMinOpenPrice()),0").addClass(t).text(e);this.$el.addClass("is-availability-blocked").find("."+t).remove().end().append(o)},getBlockedMessageLabel:function(t,e){var o="MMM DD, hh:mma z",n=(this.splashGlobal.server._event.date.timezone_identifier||"").replace(/ /g,"_");return this.getIsAfterAvailabilityStart(t)?"Available: "+p.tz(t,n).format(o):this.getIsBeforeAvailabilityEnd(e)?"Ended: "+p.tz(e,n).format(o):""}};n.extend(b.prototype,r.prototype,c),e.exports={constructor:b,instantiateComponent:function(t){return new b(t)},prototypeObject:c}},{"../../../utils/cms-utils":97,"./../CmsComponent":3,jquery:"jquery","moment-timezone":319,underscore:"underscore"}],65:[function(t,e,o){var n,i=t("../../constants/touchpointTypes"),p=t("./formatVenue"),r=(n=p)&&n.__esModule?n:{default:n};var a=t("underscore"),b=t("./../CmsComponent").constructor;function c(t){b.call(this,t),this.body=a.isString(t.body)?t.body:"",this.formats=t.formats}var s={initType:function(){this.refreshBody()},bindTypeEvents:function(){},unbindTypeEvents:function(){},getEventVenue:function(){var t=(0,i.isSplashEventContext)(this.splashGlobal.server.constants.touchpointType)?this.splashGlobal.server._event.venue:{address:"Woolworth Bldg",city:"New York",country:"United States",lat:40.7126314,lng:-74.0083037,name:"Woolworth Building",state:"NY",tbd:!1,zip_code:"10007"},e=Object.assign({},t);return e.zipCode=e.zip_code||e.zipCode,delete e.zip_code,Object.keys(e).forEach(function(t){""===e[t]&&(e[t]=null)}),e},getFormats:function(){return this.formats},refreshBody:function(){try{var t=this.getEventVenue(),e=this.formatBody(t),o=this.body!==e;return this.body=e,this.setBodyContent(e),o}catch(t){return console.warn(t),!1}},formatBody:function(t){try{if(!t)throw new Error("No venue");return(0,r.default)(t,this.getFormats())}catch(t){return console.warn(t),""}},setBodyContent:function(t){this.$el.find(".sf").html(t)}};a.extend(c.prototype,b.prototype,s),e.exports={constructor:c,instantiateComponent:function(t){return new c(t)},prototypeObject:s}},{"../../constants/touchpointTypes":70,"./../CmsComponent":3,"./formatVenue":66,underscore:"underscore"}],66:[function(t,e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(c,t){if(!t)throw new Error("compile venue received no formats");var s="",M=function(t){var e=void 0;e=!0===t.tbd||1===parseInt(t.tbd,10)?i.VENUE_TYPES.tbd:""===r(t.name)&&""===r(t.address)?i.VENUE_TYPES.noVenueOrAddress:r(t.name)===r(t.address)?i.VENUE_TYPES.sameVenueAddress:i.VENUE_TYPES.differentVenueAddress;return e}(c);if(void 0===t[M])throw new Error("format '"+M+"' not found");return t[M].forEach(function(t){var o=t.map(function(t){var e,o,n,i=t.key,p=(t.value,void 0),r="",a=z.default.camelCaseToPascalCase(i);return i===O?(p=l(t.value).replace(/ /g,d),r="tbd"===M?"tbd":"separator"):(p=l(void 0!==(e=c)[o=i]?e[o]:e[(n=o,n.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()}))]),r="venue-"+a,r+="zip-code"===a?" zip_code":" "+a),{key:i,text:p,classNames:r}});o=o.filter(function(t,e){return!(t.key===O&&o[e+1]&&!o[e+1].text)});for(var e="",n=0;n'+r+b+"")}e&&(s+=''+e+"
")}),s};var n,i=t("./venueTypes"),p=t("../../../utils/cms-utils"),z=(n=p)&&n.__esModule?n:{default:n};var O="string",d=" ";function r(t){return"string"==typeof t?t.trim():""}function l(t){return $("").text(t).html()}},{"../../../utils/cms-utils":97,"./venueTypes":67}],67:[function(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});o.VENUE_TYPES={differentVenueAddress:"differentVenueAddress",sameVenueAddress:"sameVenueAddress",noVenueOrAddress:"noVenueOrAddress",tbd:"tbd"}},{}],68:[function(g,v,t){(function(W){(function(){var t,e=g("./managers/PageLayoutManager/factory"),o=(t=e)&&t.__esModule?t:{default:t};var n=("undefined"!=typeof window?window.splash:void 0!==W?W.splash:null)||{},i=g("underscore"),p="undefined"!=typeof window?window.SUI:void 0!==W?W.SUI:null,r=g("../utils/cms-utils"),a=window,b=g("../utils/nexus"),c=g("../utils/PubSub").get(),s=g("./managers/legacyFormManager"),M=g("./managers/contactFormManager").get();n.pageAction=s,n.ContactFormManager=M;var z=g("./managers/cmsComponentManager"),O=g("./managers/PageActionManager").get(),d=g("./managers/responsiveManager"),l=g("../utils/captcha");g("mapbox.js"),g("./modules/bigtext");var u=g("../splash-js/modules/apply-iframe-resize");n.Countdown=g("./modules/countdown");var A=g("./cmsComponents/register-components"),h=g("./modules/customUserFunctions"),f=g("./modules/showComponentsForPartialRendering").default;function q(){b.get();var t=z.create({PubSub:c});this.cmsComponentManager=t,n.captchaFactory=l,h.link(c)}i.extend(q.prototype,{init:function(){a.SPLASH&&a.SPLASH.initializeSplashPageWebpackApp();var t=r.grabApplicableTopLevelGroup(a.EventSettingLayout);this.pageLayoutManager=(0,o.default)(t),p.initComponents(),d.setResponsiveToolsClasses(),this.cmsComponentManager.registerComponentConfigs(A),this.cmsComponentManager.init(t),n.countdownElement.initAll(),n.navElement.initAll(),n.socialLinksElement.initAll(),c.subscribe("page-resized",{context:"responsiveManager",eventHandler:d.setResponsiveToolsClasses}),r.applyAutoWindowSizesToComponents(),O.init(),O.handleOnPageTicketConfirmation(),a.eventSiteDocumentReady(),u(),f()},destroy:function(){z.destroy()}});var m=void 0;v.exports={get:function(){return m||(m=new q),m},destroy:function(){m&&(m.destroy(),m=void 0)},__setGlobals:function(t){n=t.splash||n,a=t.window||window},__resetGlobals:function(){n="undefined"!=typeof window?window.splash:void 0!==W?W.splash:null,a=window}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../splash-js/modules/apply-iframe-resize":93,"../utils/PubSub":95,"../utils/captcha":96,"../utils/cms-utils":97,"../utils/nexus":109,"./cmsComponents/register-components":50,"./managers/PageActionManager":71,"./managers/PageLayoutManager/factory":74,"./managers/cmsComponentManager":75,"./managers/contactFormManager":76,"./managers/legacyFormManager":77,"./managers/responsiveManager":78,"./modules/bigtext":81,"./modules/countdown":85,"./modules/customUserFunctions":86,"./modules/showComponentsForPartialRendering":90,"mapbox.js":304,underscore:"underscore"}],69:[function(t,e,o){e.exports={READY:"ready",SUBMITTING:"submitting",COMPLETED:"completed"}},{}],70:[function(t,e,o){Object.defineProperty(o,"__esModule",{value:!0});var n=o.TOUCHPOINT_TYPE_BLOCK="block";o.isSplashEventContext=function(t){return![n].includes(t)}},{}],71:[function(A,h,t){(function(u){(function(){var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=Object.assign||function(t){for(var e=1;e
=n._children.length)&&(o=n._children.length),n._children.splice(o,0,e)}},{key:"denormalizeLayoutIntoGroupsByGid",value:function(t,e,o){if(e||(e={}),o||(o=1),t.gid?t.gid=(0,a.tryParseInt)(t.gid,t.gid):t.gid=o,e[t.gid]){var n=this.generateGid();console.log("Duplicated gid found! D:",t.gid,n),t.gid=n}var i=t.group;delete t._children;var p=s(t);if(e[p.gid]=p,c.isArray(i))for(var r=0;r '),this.captcha=r({attachTo:"#contactOrganizerCaptchaContain",attachMethod:"append",splashGlobal:i}),this.captcha.attachCaptcha()},_getFormInputConfiguration:function(){return[{inputType:"text",inputStyle:"underline",name:"name",label:this.textConfig.nameLabel},{inputType:"text",inputStyle:"underline",name:"email",label:this.textConfig.emailLabel,isRequired:!0},{inputType:"text",inputStyle:"underline",name:"company",label:this.textConfig.companyLabel},{inputType:"textarea",name:"note",label:this.textConfig.noteLabel,isRequired:!0}]},_bind:function(){this.$submitButton.on("click",this.submitForm.bind(this))},_checkIfFormDataIsValid:function(t){return!(n.isNull(t.email)||!this.isValidEmail(t.email))&&(!(n.isNull(t.note)||!t.note.length)&&!!t.captchaValue)},isValidEmail:function(t){return/^[^@]+@[^.]+\..+$/.test(o.trim(t))},_submitForm:function(t){var e=this.$submitButton;e.addAttrVal("sui-button","is-disabled").text(this.textConfig.buttonTextSending),o.ajax("",{type:"POST",data:t,dataType:"JSON",success:function(t){t.success?(e.text(this.textConfig.buttonTextSent).removeAttrVal("sui-button","is-disabled"),setTimeout(function(){e.text(this.buttonText),this._clearAndCloseForm()}.bind(this),2e3)):this._handleSubmissionError(t)}.bind(this),error:function(t){this._handleSubmissionError(t)}.bind(this)})},_handleSubmissionError:function(t){var e=n.isString(t.error)?t.error:null;e=e||this.textConfig.defaultErrorMessage,window.SplashUI?SplashUI.notify(e):alert(e),this.$submitButton.text(this.textConfig.buttonText).removeAttrVal("sui-button","is-disabled")},_renderFormErrors:function(t){!n.isNull(t.email)&&this.isValidEmail(t.email)||this._renderErrorOnInput("email",this.textConfig.emailError),!n.isNull(t.note)&&t.note.length||this._renderErrorOnInput("note",this.textConfig.noteError),t.captchaValue||this.$form.find(".captcha-error").show(),this.modal.recalculateModalContentContainerHeight()},_renderErrorOnInput:function(t,e){var o=n.findWhere(this.inputs,{name:t});o&&o.throwError(this.errorCode,e)},_removeFormErrors:function(){var t=n.where(this.inputs,{errorCode:this.errorCode});n.each(t,function(t){t.clearErrors()}),this.$form.find(".captcha-error").hide(),this.modal.recalculateModalContentContainerHeight()},_clearAndCloseForm:function(){n.each(this.inputs,function(t){t.setValue(null)}),this.modal.closeModal()},_getEventId:function(){return i.server.constants.event_id}});var b=void 0;M.exports={get:function(t){return b||(b=new a(t),"object"===(void 0===i?"undefined":e(i))&&(i.ContactFormManager=b)),b},destroy:function(){b&&b.modal&&b.modal.destroy(),b=null,"object"===(void 0===i?"undefined":e(i))&&delete i.ContactFormManager}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../templates/modals/contact-organizer-modal.hbs":94,"../../utils/captcha":96,jquery:"jquery",underscore:"underscore"}],77:[function(e,n,t){(function(t){(function(){var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u="undefined"!=typeof window?window.splash:void 0!==t?t.splash:null,A=e("underscore"),h=e("jquery"),f=e("lodash/get"),r=[],l={},q="error-border";function p(t,e){var o={key:"",value:!1},n=t.split(/\[/);if(1===n.length)o.key=t.replace(/\]/,""),o.value=e;else{o.key=n.shift().replace(/\]/,"");var i=p(n.join("["),e);o.value={},o.value[i.key]=i.value}return o}function b(){return window.SPLASH&&window.SPLASH.flag("useFormRendererV3InRsvpSplashPage")}function c(){return window.SPLASH&&window.SPLASH.flag("useTicketSelectionFormRendererInTicketSplashPage")}function o(){var t,e=f(window,"splash.server._event.rsvp_method"),o=c()&&"tickets"===e,n=b()&&"collect"===e,i=(o||n?(t=u.cmsComponentManager.getOneComponentInstanceByType("form-renderer-wrapper"))&&t.isReactAppLoaded()?t:void 0:void 0)||function(){var t=u.cmsComponentManager.getAllComponentInstancesByType("form"),e=void 0;if(t.length){do{var o=t.shift();e="form"===o.getType()?o.getApplicableForm():o}while(void 0===e&&0p&&(e.addClass(q),r.push("Number must be at max "+p+" digit(s)"),n=!0)),n||e.removeClass(q)})},getValueForCustomQuestion:function(t){var e=void 0,o=void 0;if("checkbox"===t.attr("type")||t.hasClass("checkbox")){var n=t.parent(),i=!1;n.hasClass("nu-checkbox")&&n.hasClass("checked")&&(i=!0),t.hasClass("multi")?(t.is(":checked")||i)&&(e=[],"include_other_opt"===t.val()||"include_other_opt"===t.attr("use-val")?(o=t.parents(".options:first").find(".other-input-field")).length&&0
"+(e=u.PageActionManager.applyCustomJsFunctionToValidationErrors(e)).join("
");h("span.required-fields").html(o).fadeIn()},isSubmissionInProgress:function(){return h("#rsvp-submit").hasClass("in-progress")},toggleSubmissionInProgress:function(t){t=!!t,h("#rsvp-submit").toggleClass("in-progress",t).toggle(!t),h("#rsvp-spinner").toggle(t).find(".nu-loader").toggleClass("loading",t)},legacyHandleRsvpResponse:function(t,e){var o=void 0;this.toggleSubmissionInProgress(!1);try{o="string"==typeof t?JSON.parse(t):t}catch(t){return h("#rsvp-form-inner .btnWrap").removeClass("noBorder"),void this.renderInlineError("Sorry, there was an error with the server. Please try again")}for(var n in o)if("string"==typeof o[n]){var i=void 0;try{i=decodeURIComponent(escape(o[n]))}catch(t){i=o[n]}o[n]=i}if("error"!==o.status||"incorrectCaptchaSol"!==o.errorCode)if("error"!==o.status)"object"===a(u.server._user)&&u.server._user.id&&(u.server._user.rsvp={id:-1}),this.resetForm(),window.splash.PubSub.publish("rsvp-completed",{serverResponse:o,rsvpParams:e});else{var p=o.errorCode;-1!==[].indexOf(p)?("string"==typeof o.msgHead&&h("#rsvp-form-top").find(".rsvp-text").text(o.msgHead),"string"==typeof o.msgBody&&h("#afterRsvpMessage").show().find(".afterRsvpMessageInner .content").html(""+o.msgBody+"
"),h("#rsvp-modal").addClass("afterRsvp"),h("#rsvp-form-inner").remove(),window.splash.PubSub.publish("rsvp-failed",{serverResponse:o,rsvpParams:e})):this.renderInlineError(o.msgHead,o.msgBody)}else{var r=h("#rsvp-modal .g-recaptcha").data("captcha-instance");void 0!==r&&r.showCaptchaError()}},resetForm:function(){var t=h("#rsvp-form-inner");t.wrap("