PageSourceSearch

https://zygo.co.il/_next/static/chunks/pages/organizer-panel-events/[id]/coupons-0b526bb44614e7ae.js

js zygo.co.il collected 2026-09-26 03:31:54 UTC 3,165 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3473],{90729:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/organizer-panel-events/[id]/coupons",function(){return s(41889)}])},41889:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return h}});var n=s(85893),o=s(57415),i=s(19421),r=s(67294),a=s(8822),p=s(77539),d=s(2738);class l extends r.Component{async loadEvent(){let e=await this.props.zygoContext.api.zygoApi.zygoProducers.getFullEvent(this.props.id);return{event:e.event,permissions:e.premissions}}loadEventSummary(){return this.props.zygoContext.api.zygoApi.zygoProducers.getSummeryOfEvent(this.props.id)}componentDidMount(){this.loadEventAndSummary().then(()=>{this.loadCopouns().then(e=>{this.setState({loading:!1,coupons:e})})}),this.reloadListener=window.addEventListener("beforeunload",e=>{this.props.zygoContext.store.event_pannel.clear()})}componentWillUnmount(){window.removeEventListener("beforeunload",this.reloadListener)}async loadEventAndSummary(){if(this.setState({loading:!0}),this.props.zygoContext.store.event_pannel.isInit()){let e=this.props.zygoContext.store.event_pannel.getEvent(),t=this.props.zygoContext.store.event_pannel.getPermissions(),s=this.props.zygoContext.store.event_pannel.getEventSummary();this.setState({event:e,permissions:t,summary:s})}else{let[e,t]=await Promise.all([this.loadEvent(),this.loadEventSummary()]);this.props.zygoContext.store.event_pannel.init(e.event,e.permissions,t),this.setState({event:e.event,permissions:e.permissions,summary:t});return}}async loadCopouns(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return await this.props.zygoContext.api.zygoApi.zygoPromoCodes.getPromoCodesByEventId(this.props.id,e)}async reloadCopouns(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({loading:!0,past:e});let t=await this.props.zygoContext.api.zygoApi.zygoPromoCodes.getPromoCodesByEventId(this.props.id,e);this.setState({loading:!1,coupons:t})}render(){var e;return(0,n.jsx)(o.Z,{styles:{headerColor:"rgba(249, 250, 251, 1)"},children:(0,n.jsx)(a.EC.Provider,{value:this.state.summary,children:(0,n.jsx)(p.Z,{loading:this.state.loading,children:(0,n.jsx)(i.Z,{event:this.state.event,children:(0,n.jsx)("div",{style:{minHeight:"70vh"},children:(0,n.jsx)(a.D2,{event_id:this.props.id,currency:null!==(e=this.state.event.currency)&&void 0!==e?e:"ILS",coupons:this.state.coupons,onChangeSegment:e=>{this.reloadCopouns(e)},past:this.state.past,onAddCode:e=>{this.setState({coupons:[...this.state.coupons,e]}),this.loadCopouns()},onRemoveCode:e=>{this.setState({coupons:this.state.coupons.filter(t=>t.id!=e)}),this.loadCopouns()}})})})})})})}constructor(e){super(e),this.state={tab:"dashboard",loading:!0,event:{},permissions:[],summary:{inEvent:0,rejected:0,inWaitingList:0,leavers:0,income:0,hiddens:0,cashMoney:0,scanned:0,not_scanned:0,expenses:0,female:0,male:0},coupons:[],past:!1}}}var h=!0;t.default=(0,d.FA)(l)}},function(e){e.O(0,[7353,674,2678,5643,5054,4740,1215,3437,5675,7868,3728,6881,7935,4439,6669,9054,2465,5199,3157,978,4091,4181,4193,9,7651,1083,2888,9774,179],function(){return e(e.s=90729)}),_N_E=e.O()}]);

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.