(()=>{"use strict";var e,t={3622:function(e,t,a){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=r(a(5311));(0,i.default)((function(){(0,i.default)('[data-a11y-dialog-show="set-privacy"]').on("click",(function(){return ModalWorkflow({dialogId:"set-privacy",url:this.getAttribute("data-url"),onload:{set_privacy:function(e){(0,i.default)("form",e.body).on("submit",(function(){return e.postForm(this.action,(0,i.default)(this).serialize()),!1}));var t=(0,i.default)("input[name='restriction_type'][value='password']",e.body),a=(0,i.default)("input[name='restriction_type'][value='groups']",e.body),r=(0,i.default)('[name="password"]',e.body).parents("[data-field-wrapper]"),o=(0,i.default)("#groups-fields",e.body);function n(){t.is(":checked")?(r.show(),o.hide()):a.is(":checked")?(r.hide(),o.show()):(r.hide(),o.hide())}n(),(0,i.default)("input[name='restriction_type']",e.body).on("change",n)},set_privacy_done:function(e,t){e.respond("setPermission",t.is_public),e.close()}},responses:{setPermission:function(e){e?((0,i.default)("[data-privacy-sidebar-public]").removeClass("w-hidden"),(0,i.default)("[data-privacy-sidebar-private]").addClass("w-hidden"),(0,i.default)(".privacy-indicator").removeClass("private").addClass("public"),(0,i.default)(".privacy-indicator-icon use").attr("href","#icon-view")):((0,i.default)("[data-privacy-sidebar-public]").addClass("w-hidden"),(0,i.default)("[data-privacy-sidebar-private]").removeClass("w-hidden"),(0,i.default)(".privacy-indicator").removeClass("public").addClass("private"),(0,i.default)(".privacy-indicator-icon use").attr("href","#icon-no-view"))}}}),!1}))}))},5311:e=>{e.exports=jQuery}},a={};function r(e){var i=a[e];if(void 0!==i)return i.exports;var o=a[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,a,i,o)=>{if(!a){var n=1/0;for(u=0;u<e.length;u++){for(var[a,i,o]=e[u],d=!0,s=0;s<a.length;s++)(!1&o||n>=o)&&Object.keys(r.O).every((e=>r.O[e](a[s])))?a.splice(s--,1):(d=!1,o<n&&(n=o));if(d){e.splice(u--,1);var l=i();void 0!==l&&(t=l)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[a,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.j=598,(()=>{var e={598:0};r.O.j=t=>0===e[t];var t=(t,a)=>{var i,o,[n,d,s]=a,l=0;if(n.some((t=>0!==e[t]))){for(i in d)r.o(d,i)&&(r.m[i]=d[i]);if(s)var u=s(r)}for(t&&t(a);l<n.length;l++)o=n[l],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},a=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var i=r.O(void 0,[751],(()=>r(3622)));i=r.O(i)})();