PageSourceSearch

https://events.pimcon.org/static/Countdown-BJ39sYb1.js

js pimcon.org collected 2026-09-28 23:47:27 UTC 2,546 bytes, 3 lines download raw bytes

1import{r as h,R as g}from"./vendor-react-nj2ukvvY.js";import{c as D,eg as S,eh as f,db as w,ei as E,W as F,ej as T,ek as C,G}from"./index-M7kQB6UT.js";import{m as W}from"./vendor-moment-CqZOA61p.js";import{A as _}from"./AEPoweredBy-CfsNrO9W.js";import{A as y}from"./index-CLQn-qYn.js";import"./vendor-apollo-AvuNUkOJ.js";import"./vendor-lodash-CuICpPff.js";let p=null;class k extends h.Component{constructor(a){super(a),this.doGetWidgetSettings=(t,o,n=!1,i="")=>{this.props.doGetWidgetSettings(t,o,n,i).then(s=>{const e=JSON.parse(s.configurationData);e&&(this.setState({widgetSettings:e}),T("WIDGET",i,o))}).catch(s=>console.error(s))},this.doGetEventTicketSettingForDisplay=(t,o="")=>new Promise((i,s)=>{this.props.doGetEventTicketSettingForDisplayFromCache(t,o).then(e=>i(e)).catch(e=>s(e))}),this.state={eventData:null,widgetSettings:null}}UNSAFE_componentWillReceiveProps(a){const{countdown:t,isFromHost:o}=a,{widgetSettings:n}=this.state;o&&(!n||t!==n)&&this.setState({widgetSettings:t})}async UNSAFE_componentWillMount(){const{embed:a,widgetType:t,widgetId:o,params:n,event_Url:i,eventData:s,isCustomBeeFreeAddon:e}=this.props,m=n&&n.params||i,{eventId:c}=s||n||{};if(a&&t&&o&&C(t,c,o),a&&t&&this.doGetWidgetSettings(t,o,!1,c),e&&c&&this.doGetWidgetSettings("WIDGET_COUNTDOWN",null,!0,c),(a||e)&&m){let l=null;
1if(!s){const r=await this.props.doGetEventDataFromCache(m);r!=null&&r.errorMessage||r&&r.data&&(l=r.data)}this.setState({eventData:l||s},()=>{e||this.doGetEventTicketSettingForDisplay(m)})}}render(){const{embed:a,eventTicketData:t,isFromHost:o,eventData:n,isCustomBeeFreeAddon:i}=this.props,{eventData:s,widgetSettings:e}=this.state,{eventDesignDetails:m,equivalentTimezone:c}=n||{},{poweredByAeActivated:l}=m||{},{outerBackgroundColor:r,endingTime:u}=e||{},{endDate:v}=t||{};return u?p=W(u).valueOf():v&&(p=v),g.createElement("div",{className:G("widget-countdown-container","widget_countdown_custom_css  ae_widget_countdown_container"),style:{backgroundColor:r}},o?null:g.createElement("style",{dangerouslySetInnerHTML:{__html:`
2                body{ background: #fff !important;}
3            `}}),g.createElement(y,{date:p,embed:a,timeZone:c,message:"Time Until Event Ends",widgetSettings:e,isFromWidget:!0,rootClassName:"widget-time-zone"}),l&&!i&&g.createElement(_,{eventData:s}))}}const A={doGetEventTicketSettingForDisplayFromCache:E,doGetEventData:w,doGetEventDataFromCac
3he:f,doGetWidgetSettings:S},N=d=>({eventData:d.event&&d.event.data,eventTicketData:d.event&&d.event.ticket_data}),H=D(N,A)(F(k));export{H 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.