"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2378],{44114:function(e,t,l){l.d(t,{Z:function(){return a}});var n=l(85893),i=l(8971);l(67294);function a(e){var t=e.selectOptions,l=e.name,a=e.onChangeHandler,o=e.required,s=e.setAlert,r=e.title,d=e.defaultValue,c=e.info,u=e.id;try{var m=function(e){if(!(e.type.match(/enter/i)&&window.innerWidth<1200)){var t=e.target.closest(".info-wrapper"),l=t.querySelector(".info-dropdown");!e.type.match(/leave/i)||l.classList.contains("hidden")?e.type.match(/leave/i)&&l.classList.contains("hidden")||(t&&l.classList.contains("hidden")?l.classList.remove("hidden"):l.classList.add("hidden")):l.classList.add("hidden")}};return(0,n.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[r&&(0,n.jsxs)("label",{htmlFor:l,children:[r,o?"":" (optional)"]}),(0,n.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,n.jsx)("select",{name:l,id:u||l,className:"w-full bg-white",required:o,onChange:function(e){s&&s(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:d||void 0,children:t.map((function(e,t){var l=e.payload,i=e.title;return(0,n.jsx)("option",{value:l,selected:!!e.default,children:i},t+1)}))}),(0,n.jsx)(i.Z,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,n.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:m,onMouseLeave:m,onClick:m,children:[(0,n.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,n.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,n.jsx)("span",{children:c})}),(0,n.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(h){return console.log("ERROR in FormSelect =>",h),(0,n.jsx)("div",{children:"Form Select Error"})}}},61781:function(e,t,l){l.d(t,{Z:function(){return a}});var n=l(85893),i=(l(67294),l(42065));function a(){return(0,n.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:function(e){window.history.back()},children:(0,n.jsx)(i.Z,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},424:function(e,t,l){l.d(t,{Z:function(){return o}});var n=l(828),i=l(85893),a=l(67294);function o(e){var t,l,o,s=e.confirmedDelegetedUser,r=e.linksArray,d=e.user,c=(null===s||void 0===s||s.delegated,null===s||void 0===s||null===(t=s.priviledges)||void 0===t||t.match(/Edit Tables/i),null===s||void 0===s||null===(l=s.priviledges)||void 0===l||l.match(/Delete Tables/i),null===s||void 0===s||null===(o=s.priviledges)||void 0===o||o.match(/Create Tables/i),a.useState(r||null)),u=(0,n.Z)(c,2),m=u[0],h=u[1];return a.useEffect((function(){var e;if(!r){var t=window.location.pathname,l=t.split("/"),n=[];n.push({title:"Home",path:t.match(/admin/)?"/admin":"/"});null===(e=window.location.search)||void 0===e||e.match(/delegated=true/);l.forEach((function(e,t,l){(null===e||void 0===e?void 0:e.match(/./))&&1!=t&&(e.match(/^\d+$/)&&d||n.push({title:e,path:function(){for(var e="",n=0;nt||!i.match(/./)||(e+="/".concat(i))}return e}()}))})),h(n)}}),[]),m&&m[1]?(0,i.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:m.map((function(e,t,l){return t===m.length-1?(0,i.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},t):(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,i.jsx)("span",{className:"opacity-20",children:"|"})]},t)}))}):(0,i.jsx)(a.Fragment,{})}},92378:function(e,t,l){l.d(t,{Z:function(){return F}});var n=l(828),i=l(85893),a=l(67294),o=l(27901),s=l(95264),r=l(90918),d=l(45449),c=l(64914),u=l(34999),m=l(96673),h=l(77533),v=l(54689),x=l(50594);function f(e){var t,l=e.targetElement,n=e.setOpenStyleModal;return l?(0,i.jsxs)("div",{className:"flex flex-col items-stretch p-6 max-w-lg",children:[(0,i.jsxs)("div",{className:"w-full justify-between",children:[(0,i.jsx)("span",{className:"text-xl",children:"Element Style"}),(0,i.jsx)("button",{className:"w-10 h-10 plain-text",onClick:function(){n(!1)},children:(0,i.jsx)(x.Z,{})})]}),(0,i.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-css-block",children:[(0,i.jsx)("input",{type:"text",placeholder:"CSS key"}),(0,i.jsx)("input",{type:"text",placeholder:"CSS Value",onKeyDownCapture:function(e){var t,n=e.target;if(null===(t=e.key)||void 0===t?void 0:t.match(/enter/i)){var i,a,o=null===(i=n.closest(".add-css-block"))||void 0===i?void 0:i.children[0],s=null===(a=n.closest(".add-css-block"))||void 0===a?void 0:a.children[1],r=null===o||void 0===o?void 0:o.value,d=null===s||void 0===s?void 0:s.value;if(!(null===r||void 0===r?void 0:r.match(/./))||!(null===d||void 0===d?void 0:d.match(/./)))return;l.style[r]=d}}}),(0,i.jsx)("button",{onClick:function(e){var t,n,i=e.target,a=null===(t=i.closest(".add-css-block"))||void 0===t?void 0:t.children[0],o=null===(n=i.closest(".add-css-block"))||void 0===n?void 0:n.children[1],s=null===a||void 0===a?void 0:a.value,r=null===o||void 0===o?void 0:o.value;(null===s||void 0===s?void 0:s.match(/./))&&(null===r||void 0===r?void 0:r.match(/./))&&(l.style[s]=r)},children:"Add"})]}),(0,i.jsxs)("div",{className:"flex-wrap",children:[(0,i.jsx)("button",{onClick:function(e){l.removeAttribute("style")},className:"secondary grow",children:"Reset"}),(0,i.jsx)("button",{onClick:function(e){l.style.display="flex",l.style.alignItems="center",l.style.gap="10px"},className:"outlined black grow",children:"Flex"}),(0,i.jsx)("button",{onClick:function(e){l.style.backgroundColor="rgb(241 245 249)"},className:"outlined black grow",children:"BG-Slate-100"}),(0,i.jsx)("button",{onClick:function(e){l.style.backgroundColor="#F6F4F8"},className:"outlined black grow",children:"BG-Main-light"}),(0,i.jsx)("button",{onClick:function(e){l.style.padding="10px"},className:"outlined black grow",children:"Padding-10px"}),(0,i.jsx)("button",{onClick:function(e){l.style.padding="10px 20px"},className:"outlined black grow",children:"Padding-10px-20px"}),(0,i.jsx)("button",{onClick:function(e){l.style.borderRadius="5px"},className:"outlined black grow",children:"Border-Radius-5px"}),(0,i.jsx)("button",{onClick:function(e){l.style.border="1px solid rgb(241 245 249)"},className:"outlined black grow",children:"Border-Slate-100"}),(0,i.jsx)("button",{onClick:function(e){l.style.border="1px solid rgb(226 232 240)"},className:"outlined black grow",children:"Border-Slate-200"}),(0,i.jsx)("button",{onClick:function(e){l.style.border="1px solid rgb(203 213 225)"},className:"outlined black grow",children:"Border-Slate-300"})]}),(0,i.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add class Name"}),(0,i.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-class-name-block",children:[(0,i.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:function(e){var t,n,i=null===(t=e.target.closest(".add-class-name-block"))||void 0===t?void 0:t.children[0];if(null===(n=e.key)||void 0===n?void 0:n.match(/enter/i)){var a=null===i||void 0===i?void 0:i.value;if(!(null===a||void 0===a?void 0:a.match(/./)))return;l.classList.add(a)}}}),(0,i.jsx)("button",{onClick:function(e){var t,n=null===(t=e.target.closest(".add-class-name-block"))||void 0===t?void 0:t.children[0],i=null===n||void 0===n?void 0:n.value;(null===i||void 0===i?void 0:i.match(/./))&&l.classList.add(i)},children:"Add"}),(0,i.jsx)("button",{onClick:function(e){var t,n=null===(t=e.target.closest(".add-class-name-block"))||void 0===t?void 0:t.children[0],i=null===n||void 0===n?void 0:n.value;(null===i||void 0===i?void 0:i.match(/./))&&l.classList.remove(i)},className:"outlined",children:"Remove"})]}),(null===l||void 0===l||null===(t=l.nodeName)||void 0===t?void 0:t.match(/^a$/i))?(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add URL"}),(0,i.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded href-block",children:[(0,i.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:function(e){var t,n,i=null===(t=e.target.closest(".href-block"))||void 0===t?void 0:t.children[0];if(null===(n=e.key)||void 0===n?void 0:n.match(/enter/i)){var a=null===i||void 0===i?void 0:i.value;if(!(null===a||void 0===a?void 0:a.match(/./)))return;l.href=a}},defaultValue:null===l||void 0===l?void 0:l.href}),(0,i.jsx)("button",{onClick:function(e){var t,n=null===(t=e.target.closest(".href-block"))||void 0===t?void 0:t.children[0],i=null===n||void 0===n?void 0:n.value;(null===i||void 0===i?void 0:i.match(/./))&&(l.href=i)},children:"Add"})]})]}):(0,i.jsx)(a.Fragment,{})]}):null}function p(e){var t=e.targetElement,l=e.back;if(t){var n=t.nextElementSibling,i=t.previousElementSibling;!l&&n?n.after(t):l&&i&&i.before(t)}}function g(e){var t,l,n,i=e.editor,a=e.node,o=e.setTargetElement;i.getDoc().querySelectorAll(".target-node").forEach((function(e){e.classList.remove("target-node")}));var s=null===(t=i.getWin().getSelection())||void 0===t||null===(l=t.anchorNode)||void 0===l?void 0:l.parentElement,r=a||(s||null);r&&(null===r||void 0===r||null===(n=r.classList)||void 0===n||n.add("target-node"),o&&o(r))}var b=l(2896),j=l(75307),y=l(71685),w=l(90629),k=l(86729);function N(e){var t=e.targetElement,l=e.setTargetElement,o=e.editor,r=e.setOpenSnippetsModal,d=(0,n.Z)(a.useState(!0),2),c=d[0],u=d[1],m=(0,n.Z)(a.useState([]),2),h=m[0],v=m[1];return a.useEffect((function(){(0,k.Z)("/api/admin/docs/get-snippets",{method:"post",body:{}}).then((function(e){e.success&&(v(e.result),u(!1))}))}),[]),(0,i.jsxs)(w.Z,{className:"m-auto p-6 flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto relative",children:[(0,i.jsxs)("div",{className:"w-full justify-between",children:[(0,i.jsx)("span",{className:"text-xl",children:"Snippets"}),(0,i.jsx)("button",{className:"w-10 h-10 plain-text",onClick:function(){r(!1)},children:(0,i.jsx)(x.Z,{})})]}),(0,i.jsxs)("div",{className:"flex-wrap relative w-full min-h-[100px] items-start",children:[c&&(0,i.jsx)(s.Z,{}),h&&Array.isArray(h)&&h[0]&&h.map((function(e,n){return(0,i.jsxs)("div",{className:"flex flex-col w-full items-start p-4 border border-slate-200 border-solid rounded cursor-pointer hover:shadow-lg transition-all hover:bg-slate-100",onClick:function(n){if(t){var i=document.createElement("div");i.innerHTML=Object.values(e)[0];var a=i.firstChild;a&&(t.appendChild(a),g({editor:o,node:a,setTargetElement:l})),r(!1)}else o.insertContent(Object.values(e)[0],{}),r(!1)},children:[(0,i.jsx)("span",{className:"font-semibold text-lg",children:Object.keys(e)[0]}),(0,i.jsx)("div",{className:"w-full block border border-slate-300 border-solid rounded-sm",dangerouslySetInnerHTML:{__html:Object.values(e)[0]}})]},n)}))]})]})}var E=l(89798),C=l(84534),S=l(52521),Z=l(8317),T=l(51645);function L(e){var t=e.editorRef,l=(0,n.Z)(a.useState(null),2),o=l[0],s=l[1],r=(0,n.Z)(a.useState(!1),2),x=r[0],w=r[1],k=(0,n.Z)(a.useState(!1),2),L=k[0],A=k[1];return(0,i.jsxs)("div",{className:"absolute top-[60px] z-50 -left-[38px] w-[40px] flex flex-col items-end",style:{boxShadow:"0 0 40px rgba(15, 23, 42, 0.2)"},children:[(0,i.jsxs)(d.Z,{column:!0,className:"gap-[1px]",children:[(0,i.jsx)("div",{onClick:function(){g({editor:t.current,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button secondary",children:(0,i.jsx)(j.Z,{})}),(0,i.jsx)("div",{onClick:function(){p({targetElement:o,back:!0})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,i.jsx)(T.Z,{})}),(0,i.jsx)("div",{onClick:function(){p({targetElement:o})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,i.jsx)(Z.Z,{})}),(0,i.jsx)("div",{onClick:function(){A(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(c.Z,{})}),(0,i.jsx)("div",{onClick:function(){w(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(u.Z,{})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement;if(t.getWin(),l){var i=l.cloneNode(!0);i.nodeName.match(/html|document|body/i)||(l.insertAdjacentElement("afterend",i),l.classList.remove("target-node"),n(i))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(m.Z,{})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement,i=(t.getWin(),l);if(i&&!i.nodeName.match(/html|document|body/i)){var a=i.parentElement;a||(n(i),g({editor:t,node:i,setTargetElement:n})),(null===a||void 0===a?void 0:a.nodeName.match(/html|document|body/i))?(n(i),g({editor:t,node:i,setTargetElement:n})):a&&(n(a),g({editor:t,node:a,setTargetElement:n}))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(b.Z,{})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement,i=(t.getWin(),l);if(i){var a=i.children[0];a?(n(a),g({editor:t,node:a,setTargetElement:n})):(n(i),g({editor:t,node:i,setTargetElement:n}))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(b.Z,{className:"rotate-180"})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement,i=l;if(i){var a=i.previousElementSibling;a?(n(a),g({editor:t,node:a,setTargetElement:n})):(n(i),g({editor:t,node:i,setTargetElement:n}))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(C.Z,{})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement,i=l;if(i){var a=i.nextElementSibling;a?(n(a),g({editor:t,node:a,setTargetElement:n})):(n(i),g({editor:t,node:i,setTargetElement:n}))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(E.Z,{})}),(0,i.jsx)("div",{onClick:function(){if(o){var e=o.parentNode;e.removeChild(o),g({editor:t.current,node:e,setTargetElement:s})}},style:{width:"40px",height:"40px"},className:"button bg-red-500",children:(0,i.jsx)(S.Z,{})}),(0,i.jsx)("div",{onClick:function(){t.current.getDoc().querySelectorAll(".target-node").forEach((function(e){e.classList.remove("target-node")})),s(null)},style:{width:"40px",height:"40px"},className:"button white",children:(0,i.jsx)(y.Z,{className:"rotate-180"})})]}),(0,i.jsx)(h.ZP,{open:x,onClose:function(){w(!1)},anchor:"right",children:(0,i.jsx)(f,{targetElement:o,setOpenStyleModal:w})}),(0,i.jsx)(v.Z,{open:L,onClose:function(){A(!1)},children:(0,i.jsx)(N,{targetElement:o,setTargetElement:s,editor:t.current,setOpenSnippetsModal:A})})]})}function A(e){e.user;var t=e.blockObject,l=e.placeholder,o=e.editorRef,s=e.height,d=e.extend,c=(0,n.Z)(a.useState(!1),2);c[0],c[1];return(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(r.M,{tinymceScriptSrc:"/tinymce/tinymce.min.js",onInit:function(e,t){if(d){var l=t.getBody();l.style.padding="40px",l.className="RTE-DOCS"}o&&(o.current=t)},initialValue:t&&t.content?t.content:"",init:{height:s||400,width:"100%",relative_urls:!1,remove_script_host:!1,menubar:!1,plugins:d?["advlist","autolink","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount","codesample"]:["link"],toolbar:d?"undo redo | blocks | bold italic forecolor | codesample link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat":"undo redo | blocks | link",content_style:"body { font-family:Helvetica,Arial,sans-serif; font-size:18px }",placeholder:l||"Type something ...",content_css:d?"/styles/tiny.css":void 0,statusbar:!!d}}),d&&o&&(0,i.jsx)(L,{editorRef:o})]})}var O,_=l(61781),R=l(44114),D=l(424);function F(e){var t=e.data,l=e.user,r=!!(null===t||void 0===t?void 0:t.title),d=(0,n.Z)(a.useState(!1),2),c=d[0],u=d[1],m=(0,n.Z)(a.useState(null===t||void 0===t?void 0:t.level),2),h=m[0],v=m[1],x=(0,n.Z)(a.useState(null===t||void 0===t?void 0:t.page_order),2),f=x[0],p=x[1],g=(0,n.Z)(a.useState(null),2),b=g[0],j=g[1],y=(0,n.Z)(a.useState(null),2),w=y[0],N=y[1],E=a.useRef(),C=a.useRef();return a.useEffect((function(){parseInt(h)>1?(window.clearTimeout(O),O=window.setTimeout((function(){(0,k.Z)("/api/admin/docs/grab-parent-pages",{method:"post",body:{pagesLevel:parseInt(h)-1,currentPageId:null===t||void 0===t?void 0:t.id}}).then((function(e){if(e.success&&e.result&&Array.isArray(e.result)&&e.result[0])if(j(e.result),t.parent_id){var l=e.result.filter((function(e){return e.id==t.parent_id}));l[0]?N(l[0]):N(e.result[0])}else N(e.result[0])}))}),500)):(j(null),N(null))}),[h]),(0,i.jsx)(a.Fragment,{children:(0,i.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,i.jsxs)("div",{className:"mb-1",children:[(0,i.jsx)(_.Z,{}),(0,i.jsx)("h2",{className:"text-xl m-0",children:r?"Update page":"Create a new Docs Page"})]}),(0,i.jsx)("div",{className:"mb-4",children:(0,i.jsx)(D.Z,{user:l})}),(0,i.jsxs)("div",{className:"paper flex-col items-stretch gap-10 w-full relative",children:[c&&(0,i.jsx)(s.Z,{}),(0,i.jsxs)("form",{onSubmit:function(e){var l,n,i,a,o,s=function(e){var t=e.href;(null===t||void 0===t?void 0:t.match(/\~/))&&(e.href=t.replace(/.*?\~\//,"/")),(null===t||void 0===t?void 0:t.match(/\.\.\//))&&(e.href=t.replace(/.*?\.\.\//,"/"))};e.preventDefault(),u(!0);var d=e.target.title,c=null===(l=C.current)||void 0===l?void 0:l.getDoc(),m=null===(n=E.current)||void 0===n?void 0:n.getDoc();null===c||void 0===c||c.querySelectorAll(".target-node").forEach((function(e){return e.classList.remove("target-node")})),null===c||void 0===c||c.querySelectorAll("a").forEach((function(e){s(e)})),null===m||void 0===m||m.querySelectorAll("a").forEach((function(e){s(e)}));var v=null===(i=E.current)||void 0===i?void 0:i.getContent(),x=null===(a=C.current)||void 0===a?void 0:a.getBody().innerHTML,p=null===(o=C.current)||void 0===o?void 0:o.getBody().innerText,g={title:d.value,description:v,content:x,text_content:p,level:h,page_order:f};r&&(g.id=t.id),(null===w||void 0===w?void 0:w.id)&&(g.parent_id=w.id),(0,k.Z)("/api/admin/docs/".concat(r?"update-page":"add-page"),{method:"post",body:g}).then((function(e){e.success?window.location.reload():(alert("Operation Failed!"),setTimeout((function(){u(!1)}),1e3))}))},className:"flex flex-col gap-4 w-full",children:[(0,i.jsx)(o.Z,{placeholder:"Enter a title",fontSize:"30px",name:"title",defaultValue:r?t.title:null}),(0,i.jsxs)("div",{className:"card no-hover",children:[(0,i.jsx)(o.Z,{numberText:!0,placeholder:"Level",defaultValue:r?h:"1",maxWidth:"140px",minValue:1,maxValue:4,step:1,name:"page-level",title:"Page Level",setValue:v}),(0,i.jsx)(o.Z,{numberText:!0,placeholder:"Level",defaultValue:r?f:"1",maxWidth:"140px",minValue:1,step:1,name:"page-order",title:"Page Order",setValue:p}),b&&Array.isArray(b)&&(0,i.jsx)(R.Z,{selectOptions:b.map((function(e){return{title:e.title,payload:e.id,default:(null===w||void 0===w?void 0:w.id)==e.id}})),title:"Parent Page",required:!0,onChangeHandler:function(e){var t=b.filter((function(t){return t.id==e.target.value}));t[0]?N(t[0]):window.alert("No Matching parent page!")}})]}),(0,i.jsx)(A,{placeholder:"Describe this page briefly",editorRef:E,blockObject:r?{content:t.description}:null,height:200}),(0,i.jsx)(A,{placeholder:"Page Content",editorRef:C,blockObject:r?{content:t.content}:null,height:600,extend:!0}),(0,i.jsx)("button",{type:"submit",children:r?"Update Page":"Add Page"})]})]})]})})}}}]);