rumine-web/static/wagtailadmin/js/task-chooser-modal.js

1 line
2.4 KiB
JavaScript
Raw Normal View History

2024-03-13 07:49:06 +01:00
(()=>{"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){const r=n()("form.task-search",e.body)[0];!function t(o){n()("a.task-choice",o).on("click",(function(){return e.loadUrl(this.href),!1})),n()(".pagination a",o).on("click",(function(){const e=this.href;return r.dispatchEvent(new CustomEvent("navigate",{detail:{url:e}})),!1})),(0,a.U)(),e.body[0].addEventListener("w-swap:success",(({srcElement:e})=>t(n()(e))),{once:!0})}(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]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,e=[],o.O=(t,r,n,a)=>{if(!r){var i=1/0;for(d=0;d<e.length;d++){for(var[r,n,a]=e[d],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(d--,1);var c=n();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),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 d=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(d)},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)})();