(()=>{"use strict";var t,e={"0zfD":(t,e,a)=>{a.d(e,{ajaxNonce:()=>c,ajaxUrl:()=>i});const n=window?.tec?.tickets?.seating?.ajaxData,{ajaxUrl:i,ajaxNonce:c,ACTION_GET_SEAT_TYPES_BY_LAYOUT_ID:o,ACTION_INVALIDATE_MAPS_LAYOUTS_CACHE:r,ACTION_INVALIDATE_LAYOUTS_CACHE:s,ACTION_DELETE_MAP:_,ACTION_DELETE_LAYOUT:T,ACTION_ADD_NEW_LAYOUT:E,ACTION_DUPLICATE_LAYOUT:A,ACTION_POST_RESERVATIONS:d,ACTION_CLEAR_RESERVATIONS:O,ACTION_FETCH_ATTENDEES:l,ACTION_DELETE_RESERVATIONS:w,ACTION_SEAT_TYPES_UPDATED:N,ACTION_SEAT_TYPE_DELETED:u,ACTION_RESERVATIONS_UPDATED_FROM_SEAT_TYPES:I,ACTION_RESERVATION_CREATED:S,ACTION_RESERVATION_UPDATED:f,ACTION_EVENT_LAYOUT_UPDATED:g,ACTION_REMOVE_EVENT_LAYOUT:C}=n},"Lc+o":(t,e,a)=>{function n(t,e){return e?window?.tec?.tickets?.seating?.utilsData?.localizedStrings?.[e]?.[t]||"":window?.tec?.tickets?.seating?.utilsData?.localizedStrings?.[t]||""}a.d(e,{getLocalizedString:()=>n,onReady:()=>i});const i=t=>{"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t)}},PRgm:(t,e,a)=>{var n=a("0zfD"),i=a("Lc+o");function c(t){return(0,i.getLocalizedString)(t,"maps")}async function o(t){t.preventDefault(),await async function(t){const e=t.getAttribute("data-map-id"),a=t.closest(".tec-tickets__seating-tab__card");if(a.style.opacity=.5,confirm(c("delete-confirmation"))){const t=await async function(t){const e=new URL(n.ajaxUrl);return e.searchParams.set("_ajax_nonce",n.ajaxNonce),e.searchParams.set("mapId",t),e.searchParams.set("action","tec_tickets_seating_service_delete_map"),200===(await fetch(e.toString(),{method:"POST"})).status}(e);t?window.location.reload():(a.style.opacity=1,alert(c("delete-failed")))}else a.style.opacity=1}(t.target)}(0,i.onReady)((()=>{document.querySelectorAll(".delete-map").forEach((function(t){t.addEventListener("click",o)}))}))}},a={};function n(t){var i=a[t];if(void 0!==i)return i.exports;var c=a[t]={exports:{}};return e[t](c,c.exports,n),c.exports}n.m=e,t=[],n.O=(e,a,i,c)=>{if(!a){var o=1/0;for(T=0;T<t.length;T++){for(var[a,i,c]=t[T],r=!0,s=0;s<a.length;s++)(!1&c||o>=c)&&Object.keys(n.O).every((t=>n.O[t](a[s])))?a.splice(s--,1):(r=!1,c<o&&(o=c));if(r){t.splice(T--,1);var _=i();void 0!==_&&(e=_)}}return e}c=c||0;for(var T=t.length;T>0&&t[T-1][2]>c;T--)t[T]=t[T-1];t[T]=[a,i,c]},n.d=(t,e)=>{for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={1490:0,4193:0,5126:0,6898:0};n.O.j=e=>0===t[e];var e=(e,a)=>{var i,c,[o,r,s]=a,_=0;if(o.some((e=>0!==t[e]))){for(i in r)n.o(r,i)&&(n.m[i]=r[i]);if(s)var T=s(n)}for(e&&e(a);_<o.length;_++)c=o[_],n.o(t,c)&&t[c]&&t[c][0](),t[c]=0;return n.O(T)},a=globalThis.webpackChunkevent_tickets=globalThis.webpackChunkevent_tickets||[];a.forEach(e.bind(null,0)),a.push=e.bind(null,a.push.bind(a))})();var i=n.O(void 0,[6898],(()=>n("PRgm")));i=n.O(i),window.tec=window.tec||{},window.tec.tickets=window.tec.tickets||{},window.tec.tickets.seating=window.tec.tickets.seating||{},window.tec.tickets.seating.admin=window.tec.tickets.seating.admin||{},window.tec.tickets.seating.admin.maps=i})();