1import w from"./BC26cL-D.js";import _ from"./D0rIMvHL.js";import v from"./5MtjxJ-y.js";import{o as L,a7 as u,cH as y,a9 as l,a6 as d,cI as b,bp as i,a8 as r,F as T,bM as S,bq as M,d as E,bd as z,bQ as F,bz as a,ai as m,c8 as h,c9 as V}from"./BPlt5jNJ.js";import{u as H}from"./vsr-mS5a.js";import B from"./1O2Ij95w.js";import"./fyAfAxkJ.js";import"./UCTC3J7_.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="21964094-8978-4ff1-9969-1c6654727aca",t._sentryDebugIdIdentifier="sentry-dbid-21964094-8978-4ff1-9969-1c6654727aca")}catch{}{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=Object.assign({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:splash-application":!0})}const N={name:"Events",components:{EditableLink:v,EditableText:_,Overlay:B},props:{module:{type:Object,default:()=>{}},editable:{type:Boolean,default:!1},theme:{type:Object,default:()=>{}},headingOffset:{type:Number,default:0}},emits:["show-panel","tracking"],setup(t){const{h1LevelTag:o,h1LevelStyleClass:n}=H(V(t,"headingOffset"));return{h1LevelTag:o,h1LevelStyleClass:n}},computed:{...z(["isSweepstakes"]),moduleComputedCssClass(){return{[`@sm:px-8 @md:px-${this.module.content.padding.x}`]:!!(this.module.content.padding.x&&this.module.content.margin===!0),[`@sm:px-14 @md:px-${this.module.content.padding.x+8}`]:!!(this.module.content.padding.x&&this.module.content.margin===!1),[`border-solid border-${this.module.content.border?.width}`]:!!this.module.content.border?.width,[`pt-${this.module.content.padding.t}`]:!!this.module.content.padding.t,[`pb-${this.module.content.padding.b}`]:!!this.module.content.padding.b}},buttonComputedCssClasses(){return{[this.module.content.button.fontFamily]:this.module.content.button.fontFamily,["font-weight-"+this.module.content.button.fontWeight]:this.module.content.button.fontWeight,["font-size-"+this.module.content.button.fontSize+"px"]:this.module.content.button.fontSize,["border-"+this.module.content.button.borderWidth]:typeof this.module.content.button.borderWidth<"u",uppercase:this.module.content.button.textTransform}},dateLocationComputedCssClasses(){return{[this.module.content.dateLocation.fontFamily]:this.module.content.dateLocation.fontFamily,["font-weight-"+this.module.content.dateLocation.fontWeight]:this.module.content.dateLocation.fontWeight,["font-size-"+this.module.content.dateLocation.fontSize+"px"]:this.module.content.dateLocation.fontSize,uppercase:this.module.content.dateLocation.textTransform}},detailsComputedCssClasses(){return{[this.module.content.details.fontFamily]:this.module.content.details.fontFamily,["font-weight-"+this.module.content.details.fontWeight]:this.module.content.details.fontWeight,["font-size-"+this.module.content.details.fontSize+"px"]:this.module.content.details.fontSize,uppercase:this.module.content.details.textTransform}},eventStyle(){return{"--module-border-color":this.module.content.border?.color,"--module-text-color":this.module.content.text?.color,"--module-event-border-color":this.module.content.lines?.color,"--date-location-text-color":this.module.content.dateLocation?.color,"--details-text-color":this.module.content.details?.color,"--cta-button-border-color":this.module.content.button?.borderColor,"--cta-button-background":this.module.content.button?.background,"--cta-button-color":this.module.content.button?.color,"--cta-button-background-hover":this.module.content.button?.backgroundHover,"--cta-button-color-hover":this.module.content.button?.hoverTextColor}},ctaTrackingName(){return this.module.content.header.meta.display?this.module.content.header.html:"Module Name Not Available"}},methods:{dateFormat(t=null,o="LLL d y"){return t?E.fromISO(t).setZone("America/New_York").toFormat(o):"TBD"},isCtaComplete(t){return!!t.text&&!!t.href}}},D={class:"module_inner"},I=["data-editable-title"],O={class:"@md:px-2 leading-tight"},P={key:0},W={class:"inline @md:block font-size-18px"},A={key:1},j=["innerHTML"],U={class:"@md:px-2"},G={class:"event-venue leading-tight"},q=["innerHTML"],K={key:1},Q=["innerHTML"],R={class:"@md:px-2 @md:text-center"},Y={key:0,class:"uppercase"},Z={key:1},J={class:"event-cta flex flex-row @md:justify-end self-center"};function X(t,o,n,p,$,s){const k=w,g=_,x=v,c=F("panel");return n.module.content.events.length===0?(a(),u(k,{key:0,module:n.module,icon:"$calendar","data-test":"blank-events-template",onShowPanel:o[0]||(o[0]=e=>t.$emit("show-panel",e))},{description:y(()=>[...o[4]||(o[4]=[d("p",null,[m("Add "),d("strong",null,"at least 1 event and fill in the date and location"),m(" to see design preview.")],-1)])]),action:y(()=>[...o[5]||(o[5]=[m("Add an Event",-1)])]),_:1},8,["module"])):(a(),l("div",{key:1,class:i(["module px-4 py-8",s.module
1ComputedCssClass]),style:M([n.module.content.background.style,s.eventStyle]),"data-type":"events"},[d("div",D,[n.module.content.header.meta.display?b((a(),u(g,{key:0,modelValue:n.module.content.header.html,"onUpdate:modelValue":o[1]||(o[1]=e=>n.module.content.header.html=e),editable:n.editable,tag:p.h1LevelTag,class:i(["w-full mb-4 mt-0",p.h1LevelStyleClass]),"data-test":"events-header"},null,8,["modelValue","editable","tag","class"])),[[c]]):r("",!0),n.module.content.text.meta.display?b((a(),u(g,{key:n.module.content.isbn,modelValue:n.module.content.text.html,"onUpdate:modelValue":o[2]||(o[2]=e=>n.module.content.text.html=e),editable:n.editable,tag:"div","data-test":"events-intro-copy"},null,8,["modelValue","editable"])),[[c]]):r("",!0),b((a(),l("div",{class:i(["relative border-t border-t-solid mt-8 pt-5",{editable:n.editable}]),"data-editable-title":n.editable?"Edit Event List":""},[(a(!0),l(T,null,S(n.module.content.events,(e,C)=>(a(),l("div",{key:e.id,class:"grid grid-cols-1 @md:grid-cols-[10%_20%_30%_15%_15%] @md:gap-4 justify-between pb-5 mb-5 align-items border-b border-b-solid","data-test":"events-instance"},[d("div",{class:i(["event-date self-center block @md:text-center",s.dateLocationComputedCssClasses])},[d("div",O,[e.date?(a(),l("span",P,[m(h(s.dateFormat(e.date,"LLL d y"))+" ",1),d("span",W,"("+h(s.dateFormat(e.date,"ccc"))+")",1)])):(a(),l("span",A,"New Event"))])],2),d("div",{class:i(["event-location leading-tight self-center",s.dateLocationComputedCssClasses])},[e.location?(a(),l("div",{key:0,class:"mb-4 @md:text-center @md:mb-0 @md:px-2",innerHTML:e.location},null,8,j)):r("",!0)],2),d("div",{class:i(["event-info self-center",s.detailsComputedCssClasses])},[d("div",U,[d("div",G,[e.venue?(a(),l("span",{key:0,innerHTML:e.venue},null,8,q)):(a(),l("span",K,"To be announced"))]),e.description?(a(),l("div",{key:0,class:"event-description mt-2 mb-3 @md:mb-0 break-words overflow-wrap-anywhere",innerHTML:e.description},null,8,Q)):r("",!0)])],2),d("div",{class:i(["event-time self-center",s.detailsComputedCssClasses])},[d("div",R,[e.date?(a(),l("span",Y,h(s.dateFormat(e.date,"h:mm a")),1)):r("",!0),o[6]||(o[6]=m()),e.timezone&&e.timezone.abbr?(a(),l("span",Z,h(e.timezone.abbr),1)):r("",!0)])],2),d("div",J,[e.cta.link.href&&e.cta.link.text?b((a(),u(x,{key:0,modelValue:e.cta.link,"onUpdate:modelValue":f=>e.cta.link=f,"data-test":"event-cta",incomplete:!s.isCtaComplete(e.cta.link),theme:n.theme,type:"event","button-style":n.module.content.button,"utag-data":{page_type:t.isSweepstakes?"SPLASH Sweepstakes Page":"SPLASH Campaign Page",module_type:`Event | ${s.ctaTrackingName} | ${e.cta.link.text}`,module_variation:`P${C+1}`,module_variation_identifier:`${e.venue} | ${e.date}`},class:"mt-4 @md:mt-0",style:{"--min-width-desktop":"none"},onTracking:o[3]||(o[3]=f=>t.$emit("tracking",f))},null,8,["modelValue","onUpdate:modelValue","incomplete","theme","button-style","utag-data"])),[[c,{component:"ButtonStyle"}]]):r("",!0)])]))),128))],10,I)),[[c,{component:"Events"}]])])],6))}const ie=Object.assign(L(N,[["render",X],["__scopeId","data-v-a2970453"]]),{__name:"Events"});export{ie as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.