"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5730],{2735:function(e,r,t){t.d(r,{Qj:function(){return O},zx:function(){return N}});var o=t(65443),n=t.n(o),a=t(94159),l=t(6285);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var r=1;rn()("leading-none","align-middle","py-2","px-4","no-select",e.className,{[u]:"pill"===e.buttonStyle,[b]:"roundrect"===e.buttonStyle,[g]:"authn"===e.buttonStyle,[h]:"cherry"===e.color,[m]:"strawberry"===e.color,[p]:"mango"===e.color,[v]:"not-black"===e.color,[f]:"red"===e.color,[x]:"accent"===e.color,[y]:"green"===e.color,[w]:"secondary"===e.color,[E]:"authn-primary"===e.color,[S]:"authn-other"===e.color}),N=a.forwardRef((({buttonStyle:e,color:r,className:t,...o},n)=>{const l=k({buttonStyle:e,color:r,className:t,...o});return a.createElement("button",c({},o,{className:l,ref:n}),o.children)}));N.displayName="Button";const O=a.forwardRef((({buttonStyle:e,color:r,...t},o)=>{const n=k({buttonStyle:e,color:r,...t});return a.createElement("a",c({},t,{className:n,ref:o}),t.children)}));O.displayName="LinkButton"},3152:function(e,r,t){t.r(r),t.d(r,{PurgeImmediatelyForm:function(){return i}});var o=t(94159),n=t(99838),a=t(2735),l=t(70496),c=t(71860);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var r=1;r{const{register:r,handleSubmit:t,watch:i}=(0,n.cI)(),d=i(),u=c.S.moderation.project.purge.useMutation();return o.createElement("form",{className:"flex max-w-fit flex-col gap-2 rounded-lg border border-accent p-3",onSubmit:t((async()=>{await u.mutateAsync({projectHandle:e.handle})}))},o.createElement("h4",{className:"h4"},"purge page immediately"),o.createElement(l.v,{level:"warning",className:"prose"},o.createElement("p",null,o.createElement("b",null,"HEADS UP!")," This will perform the following irreverseable operations ",o.createElement("b",null,"immediately"),":",o.createElement("ul",null,o.createElement("li",null,"hard-delete all of this page's posts without shares;"),o.createElement("li",null,"transfer all of this page's posts with shares to @deactivated and soft-delete them;"),o.createElement("li",null,"hard-delete all of this page's comments without replies;"),o.createElement("li",null,"transfer all of this page's comments with replies to @deactivated and soft-delete them;"),o.createElement("li",null,"hard-delete this page and its relationships."))),o.createElement("p",null,"Only use this form if you're doing it at user request, and only if a deferred deletion is inappropriate for the circumstances of the situation!")),o.createElement("label",null,"I've read the warnings and I'm still gonna do it:"),o.createElement("input",s({type:"checkbox"},r("confirmed",{required:!0}))),o.createElement(a.zx,{type:"submit",buttonStyle:"pill",color:"cherry",className:"w-fit",disabled:!d.confirmed},"purge page"))}}}]); //# sourceMappingURL=client-preact-components-pages-moderation-manage-page-purge-immediately.d54a0c6ef2c469a6296e.js.map