(()=>{"use strict";var e,o={8080:(e,o,t)=>{var a=t(1669),n=t.n(a),r=t(2898);function i(e,o,t){const a=document.createElement("input");a.type="hidden",a.name=o,a.value=t,e.appendChild(a)}window._addHiddenInput=i;const l=document.currentScript,c=l.dataset.activate,d=l.dataset.confirmCancellationUrl;document.addEventListener("DOMContentLoaded",(()=>{if("dashboard"===c?function(){const e=document.querySelectorAll("[data-workflow-action-url]"),o=r.HE.CSRF_TOKEN;e.forEach((e=>{e.addEventListener("click",(t=>{if(t.preventDefault(),"launchModal"in e.dataset)ModalWorkflow({url:e.dataset.workflowActionUrl,onload:{action(e){const o=document.createElement("input");o.type="hidden",o.name="next",o.value=window.location,n()("form",e.body).append(o),e.ajaxifyForm(n()("form",e.body))},success(e,o){window.location.href=o.redirect}}});else{const t=document.createElement("form");t.action=e.dataset.workflowActionUrl,t.method="POST",i(t,"csrfmiddlewaretoken",o),i(t,"next",window.location),document.body.appendChild(t),t.submit()}}),{capture:!0})}))}():"editor"===c&&function(e){const o=n()("[data-edit-form]").get(0);document.querySelectorAll("[data-workflow-action-name]").forEach((e=>{e.addEventListener("click",(t=>{"workflowActionModalUrl"in e.dataset?(t.preventDefault(),t.stopPropagation(),ModalWorkflow({url:e.dataset.workflowActionModalUrl,onload:{action(e){e.ajaxifyForm(n()("form",e.body))},success(t,a){i(o,"action-workflow-action","true"),i(o,"workflow-action-name",e.dataset.workflowActionName),i(o,"workflow-action-extra-data",JSON.stringify(a.cleaned_data)),n()(o).submit()}}})):(i(o,"action-workflow-action","true"),i(o,"workflow-action-name",e.dataset.workflowActionName))}),{capture:!0})}))}(),d){let e=!1;n()("[name=action-publish]").click((o=>{e||(o.stopImmediatePropagation(),o.preventDefault(),window.ModalWorkflow({url:d,onload:{confirm(t,a){n()("[data-confirm-cancellation]",t.body).click((a=>{e=!0,t.close(),o.currentTarget.click()})),n()("[data-cancel-dialog]",t.body).click((e=>{t.close()}))},no_confirmation_needed(t,a){t.close(),e=!0,o.currentTarget.click()}},triggerElement:o.currentTarget}))}))}}))},1669:e=>{e.exports=jQuery}},t={};function a(e){var n=t[e];if(void 0!==n)return n.exports;var r=t[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.m=o,e=[],a.O=(o,t,n,r)=>{if(!t){var i=1/0;for(u=0;u<e.length;u++){for(var[t,n,r]=e[u],l=!0,c=0;c<t.length;c++)(!1&r||i>=r)&&Object.keys(a.O).every((e=>a.O[e](t[c])))?t.splice(c--,1):(l=!1,r<i&&(i=r));if(l){e.splice(u--,1);var d=n();void 0!==d&&(o=d)}}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,n,r]},a.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return a.d(o,{a:o}),o},a.d=(e,o)=>{for(var t in o)a.o(o,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.j=327,(()=>{var e={327:0};a.O.j=o=>0===e[o];var o=(o,t)=>{var n,r,[i,l,c]=t,d=0;if(i.some((o=>0!==e[o]))){for(n in l)a.o(l,n)&&(a.m[n]=l[n]);if(c)var u=c(a)}for(o&&o(t);d<i.length;d++)r=i[d],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return a.O(u)},t=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var n=a.O(void 0,[321],(()=>a(8080)));n=a.O(n)})();