PageSourceSearch

https://events.pimcon.org/static/Embeddable-_Uj3tBKS.js

js pimcon.org collected 2026-09-28 23:49:59 UTC 2,466 bytes, 1 lines download raw bytes

1import{r as h}from"./vendor-react-nj2ukvvY.js";const p=(o,e)=>Object.keys(o).length!==Object.keys(e).length?!0:Object.keys(e).some(r=>{let t=o[r],n=e[r];if(t&&n){if(typeof t=="function"&&typeof n=="function")return t.toString()!==n.toString();if(typeof t=="object"&&typeof n=="object")return p(t,n)}return t!==n});var f=function(o,e,r,t){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function u(i){try{c(t.next(i))}catch(d){a(d)}}function l(i){try{c(t.throw(i))}catch(d){a(d)}}function c(i){i.done?s(i.value):n(i.value).then(u,l)}c((t=t.apply(o,[])).next())})},y=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(o);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(o,t[n])&&(r[t[n]]=o[t[n]]);return r};class g extends h.Component{constructor(e){super(e),this.container=h.createRef()}componentDidMount(){return f(this,void 0,void 0,function*(){this.rendering||(this.rendering=this.createAndRenderChart())})}componentDidUpdate(e){return f(this,void 0,void 0,function*(){p(this.props,e)&&this.chart&&(this.destroyChart(),this.createAndRenderChart())})}createAndRenderChart(){return f(this,void 0,void 0,function*(){const e=yield this.getSeatsio(),r=this.extractConfigFromProps();r.container=this.container.current,this.chart=this.createChart(e,r).render(),this.props.onRenderStarted&&this.props.onRenderStarted(this.chart)})}extractConfigFromProps(){let e=this.props,{chartJsUrl:r,divId:t,onRenderStarted:n,region:s}=e;return y(e,["chartJsUrl","divId","onRenderStarted","region"])}componentWillUnmount(){this.destroyChart()}destroyChart(){this.chart&&this.chart.state!=="DESTROYED"&&this.chart.destroy()}getSeatsio(){return typeof seatsio>"u"?this.loadSeatsio():seatsio.region!==this.props.region?(seatsio=void 0,this.loadSeatsio()):Promise.resolve(seatsio)}loadSeatsio(){return new Promise((e,r)=>{let t=document.createElement("script");t.onload=()=>{seatsio.region=this.props.region,e(seatsio)},t.onerror=()=>r(`Could not load ${t.src}`),t.src=this.props.chartJsUrl.replace("{region}",this.props.region),document.head.appendChild(t)})}render(){return h.createElement("div",{ref:this.container,style:{height:"100%",width:"100%"}})}}g.defaultProps={chartJsUrl:"https://cdn-{region}.seatsio.net/chart.js"};export{g as E};

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.