1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`f752136167ecc1ef9a26f315f0afb7a9c41893e3`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`8820be51-72d1-4a6e-9333-fe5be689af68`,e._sentryDebugIdIdentifier=`sentry-dbid-8820be51-72d1-4a6e-9333-fe5be689af68`)}catch{}})();import{o as e}from"./chunk-Y50wP6wJ.js";import{t}from"./react-B9pFhFAE.js";import{n,o as r}from"./es-DvOn7i-l.js";import{t as i}from"./prop-types-DwaJvLWC.js";import{i as a,l as o,o as s,u as c}from"./lib-CCkiaf8k.js";import{$f as l,Ai as u,En as d,Rn as f,fo as p}from"./appFlowSaga-B37MZwie.js";import{t as m}from"./jsx-runtime-DIO6X32p.js";import{t as h}from"./IconTickets-Cmyc7PPl.js";n(),t();var g=e(i());a();var _=m(),v=`TICKET_STATUS_TURN_OFF_MODAL`,y=`TICKET_ON_GOING_PURCHASES_MODAL`,b=(e,t)=>`${e}-${t}`,x=({children:e,event:t,id:n,ticketsOpenSessions:r,ticketsStatus:i,updateTicketsStatus:a})=>{let{formatMessage:c}=o(),{name:p,showModal:m}=d(b(v,n)),{name:g,showModal:x}=d(b(y,n)),S=()=>a({eventId:t.id},{body:JSON.stringify({enable_ticket:!i.enable_ticket})});return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f,{name:p,type:u.CONFIRMATION,header:(0,_.jsx)(s,{id:`header.event.status.tickets.status.turned.off.header`}),message:(0,_.jsx)(s,{id:`header.event.status.tickets.status.turned.off.message`}),modalClassName:l.GREEN_LIGHT,icon:(0,_.jsx)(h,{}),confirmText:(0,_.jsx)(s,{id:`common.change`}),onConfirm:()=>{r({eventId:t.id}).then(e=>{i.enable_ticket&&e.count_open_sessions?x():S()})}}),(0,_.jsx)(f,{name:g,type:u.PROTECTION,header:(0,_.jsx)(s,{id:`header.event.status.tickets.status.ongoing.purchases.header`}),message:(0,_.jsx)(s,{id:`header.event.status.tickets.status.ongoing.purchases.message`}),theme:l.GREEN_LIGHT,icon:(0,_.jsx)(h,{}),word:c({id:`modals.change`}),onSuccess:S,buttonSubmitClassName:`button-blue-light`}),e(()=>{i.enable_ticket?m():S()})]})};x.propTypes={children:g.default.func.isRequired,event:g.default.object.isRequired,id:g.default.string.isRequired,ticketsOpenSessions:g.default.func.isRequired,ticketsStatus:g.default.object.isRequired,updateTicketsStatus:g.default.func.isRequired},a();var S=r(e=>({event:e.event,ticketsStatus:e.ticketsStatus}),{ticketsOpenSessions:p.actions.ticketsOpenSessions,updateTicketsStatus:p.actions.ticketsStatus.put})(c(x));export{S as t};
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.