(()=>{"use strict";var e,o={533:function(e,o,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o.__esModule=!0;var a=n(t(5311)),r=t(4676),i=t(9408);window.ModalWorkflow=function(e){var o={},t=e.responses||{},n=e.onError||r.noop,l=!!e.dialogId;return l?(o.dialog=document.getElementById(e.dialogId),o.url=e.url||o.dialog.dataset.url,o.body=o.dialog.querySelector("[data-dialog-body]"),o.body.innerHTML=""):((0,a.default)("body > .modal").remove(),o.triggerElement=document.activeElement,o.triggerElement.setAttribute("disabled",!0),o.container=(0,a.default)('<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">\n  <div class="modal-dialog">\n    <div class="modal-content">\n      <button type="button" class="button close button--icon text-replace" data-dismiss="modal"><svg class="icon icon-cross" aria-hidden="true"><use href="#icon-cross"></use></svg>'+(0,i.gettext)("Close")+'</button>\n      <div class="modal-body"></div>\n    </div>\x3c!-- /.modal-content --\x3e\n  </div>\x3c!-- /.modal-dialog --\x3e\n</div>'),(0,a.default)("body").append(o.container),o.container.modal("hide"),o.container.on("hide.bs.modal",(function(){o.triggerElement.removeAttribute("disabled")})),o.container.on("hidden.bs.modal",(function(){o.triggerElement.focus(),o.container.remove()})),o.url=e.url,o.body=o.container.find(".modal-body")),o.loadUrl=function(e,t){a.default.get(e,t,o.loadResponseText,"text").fail(n)},o.postForm=function(e,t){a.default.post(e,t,o.loadResponseText,"text").fail(n)},o.ajaxifyForm=function(e){(0,a.default)(e).each((function(){var e=this.action;"get"===this.method.toLowerCase()?(0,a.default)(this).on("submit",(function(){return o.loadUrl(e,(0,a.default)(this).serialize()),!1})):(0,a.default)(this).on("submit",(function(){return o.postForm(e,(0,a.default)(this).serialize()),!1}))}))},o.loadResponseText=function(e){var t=JSON.parse(e);o.loadBody(t)},o.loadBody=function(t){t.html&&(l?o.body.innerHTML=t.html:(o.body.html(t.html),o.container.modal("show"))),e.onload&&t.step&&t.step in e.onload&&e.onload[t.step](o,t)},o.respond=function(e){if(e in t){var n=Array.prototype.slice.call(arguments,1);t[e].apply(o,n)}},o.close=function(){l?o.dialog.dispatchEvent(new CustomEvent("wagtail:hide")):o.container.modal("hide")},o.loadUrl(o.url,e.urlParams),o}},5311:e=>{e.exports=jQuery}},t={};function n(e){var a=t[e];if(void 0!==a)return a.exports;var r=t[e]={exports:{}};return o[e].call(r.exports,r,r.exports,n),r.exports}n.m=o,e=[],n.O=(o,t,a,r)=>{if(!t){var i=1/0;for(u=0;u<e.length;u++){for(var[t,a,r]=e[u],l=!0,d=0;d<t.length;d++)(!1&r||i>=r)&&Object.keys(n.O).every((e=>n.O[e](t[d])))?t.splice(d--,1):(l=!1,r<i&&(i=r));if(l){e.splice(u--,1);var s=a();void 0!==s&&(o=s)}}return o}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[t,a,r]},n.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return n.d(o,{a:o}),o},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=922,(()=>{var e={922:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var a,r,[i,l,d]=t,s=0;if(i.some((o=>0!==e[o]))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(d)var u=d(n)}for(o&&o(t);s<i.length;s++)r=i[s],n.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return n.O(u)},t=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var a=n.O(void 0,[751],(()=>n(533)));a=n.O(a)})();