(()=>{"use strict";var e,t={8432:(e,t,r)=>{var o=r(5311),n=r.n(o),a=r(5781),i=r(6024);const s=e=>{n()("#tab-new a.task-type-choice, #tab-new a.choose-different-task-type",e.body).on("click",(function(){return e.loadUrl(this.href),!1})),n()("form.task-create",e.body).on("submit",(function(){return(0,i.lB)(e,this,{errorContainerSelector:"#tab-new"}),!1}))},l={chooser(e,t){function r(t){n()("a.task-choice",t).on("click",(function(){return e.loadUrl(this.href),!1})),n()(".pagination a",t).on("click",(function(){return o.fetchResults(this.href),!1})),(0,a.U)()}const o=new i.J6({form:n()("form.task-search",e.body),containerElement:e.body,resultsContainerSelector:"#search-results",onLoadResults:e=>{r(e)},inputDelay:50});o.attachSearchInput("#id_q"),o.attachSearchFilter("#id_task_type"),r(e.body),s(e)},task_chosen(e,t){e.respond("taskChosen",t.result),e.close()},reshow_create_tab(e,t){n()("#tab-new",e.body).html(t.htmlFragment),s(e)}};window.TASK_CHOOSER_MODAL_ONLOAD_HANDLERS=l},5311:e=>{e.exports=jQuery}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,r,n,a)=>{if(!r){var i=1/0;for(u=0;u<e.length;u++){for(var[r,n,a]=e[u],s=!0,l=0;l<r.length;l++)(!1&a||i>=a)&&Object.keys(o.O).every((e=>o.O[e](r[l])))?r.splice(l--,1):(s=!1,a<i&&(i=a));if(s){e.splice(u--,1);var c=n();void 0!==c&&(t=c)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.j=342,(()=>{var e={342:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[i,s,l]=r,c=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(l)var u=l(o)}for(t&&t(r);c<i.length;c++)a=i[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(u)},r=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[751],(()=>o(8432)));n=o.O(n)})();