1"use strict";(globalThis.webpackChunkstec=globalThis.webpackChunkstec||[]).push([[7527],{7930(e,t,a){a.r(t),a.d(t,{default:()=>E});var c=a(52779),s=a(93699),l=a(57798),r=a(48596),o=a(98196),n=a(91927),i=a(8403),u=a(73772),m=a(26878),d=a(60799),f=a(43824);const __=u.__;const E=function(){const[e,t]=(0,m.useState)(0),a=(0,m.useRef)(!1),u=(0,m.useRef)([]),{setActiveMenu:E}=(0,n.useDashboardMenu)(),[h,p]=(0,m.useState)(!1);return React.createElement(React.Fragment,null,React.createElement(l.default,{className:"stec-dashboard-light-modal",isOpen:h,onClose:()=>{p(!1)},headerIcon:"fa-solid fa-file-export",title:__("Select export file format","stec"),buttons:[React.createElement(c.default,{key:"ics",className:"blue",label:__("Export to ICS","stec"),onClick:()=>{if(!0!==u.current)return d.toast.error(__("Nothing to export","stec"));const e=`${(0,o.testFetchUrl)("EVENTS/EXPORT")}?format=ics&_wpnonce=${STEC_VARIABLES.api_nonce}`;(0,d.toast)(__("Exporting","stec")),window.location.href=e}}),React.createElement(c.default,{key:"csv",className:"blue",label:__("Export to CSV","stec"),onClick:()=>{if(!0!==u.current)return d.toast.error(__("Nothing to export","stec"));const e=`${(0,o.testFetchUrl)("EVENTS/EXPORT")}?format=csv&_wpnonce=${STEC_VARIABLES.api_nonce}`;(0,d.toast)(__("Exporting","stec")),window.location.href=e}}),React.createElement(c.default,{key:"cancel",className:"red",label:__("Close","stec"),onClick:()=>{p(!1)}})]}),React.createElement(i.StecDiv,{className:"stec-dashboard-top-nav"},React.createElement(c.default,{className:"stcolor stec-dashboard-home-button",label:[React.createElement("i",{key:"icon",className:"fa-solid fa-house"}),__("Home","stec")],onClick:()=>{E({page:"home",params:{}})}}),React.createElement(c.default,{className:"blue",label:[React.createElement("i",{key:"icon",className:"fa-solid fa-list"}),__("Manage events","stec")],onClick:()=>{E({page:"events-list",params:{}})}}),React.createElement(s.default,{promptText:__("Are you sure you want to delete all archived events?","stec"),yesLabel:__("Delete","stec"),className:"red",label:[React.createElement("i",{key:"icon",className:"fa-solid fa-list"}),__("Empty archive","stec")],onClick:()=>{!0!==a.current?d.toast.promise(new Promise(((e,c)=>{a.current=!0,async function(){try{await(0,o.newApiDelete)({route:"EVENTS/EMPTY-ARCHIVE",errorMessage:"auto"});return t((e=>e+1)),e(__("Archive deleted","stec"))}catch(e){return c(e.message)}}()})),{loading:__("Deleting","stec"),success:e=>(a.current=!1,e),error:e=>(a.current=!1,e)}):(0,d.toast)(__("Another action is in progress","stec"))}})),React.createElement(r.default,{key:e,title:[React.createElement("i",{key:"icon",className:"fa-solid fa-list"}),__("Archived events","stec")]},React.createElement(f.default,{hasItemsRef:u,status:"stec_archived"})))}}}]);
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.