(()=>{"use strict";var e={21020:(e,t,r)=>{var o=r(51609),n=Symbol.for("react.element"),l=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var o,u={},d=null,a=null;for(o in void 0!==r&&(d=""+r),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(a=t.ref),t)l.call(t,o)&&!i.hasOwnProperty(o)&&(u[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===u[o]&&(u[o]=t[o]);return{$$typeof:n,type:e,key:d,ref:a,props:u,_owner:s.current}}t.jsx=u,t.jsxs=u},74848:(e,t,r)=>{e.exports=r(21020)},88975:(e,t,r)=>{t.N_=t._H=void 0;var o=r(83721);t.N_=e=>({type:o.SET_POST_TITLE,title:e}),t._H=e=>({type:o.SET_POST_SLUG,slug:e})},83721:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SET_POST_TITLE=t.SET_POST_SLUG=void 0,t.SET_POST_TITLE="SET_POST_TITLE",t.SET_POST_SLUG="SET_POST_SLUG"},51609:e=>{e.exports=window.React}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,r),l.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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})};var o={};r.r(o),r.d(o,{PanelRender:()=>b});var n={};r.r(n),r.d(n,{setPostSlug:()=>_,setPostTitle:()=>c});var l={};r.r(l),r.d(l,{getPostSlug:()=>S,getPostTitle:()=>T});var s={};r.r(s),r.d(s,{getPostSlug:()=>P,getPostTitle:()=>v});const i=window.wp.data,u="SET_POST_TITLE",d="SET_POST_SLUG",a=(0,i.combineReducers)({postSlug:function(e="",t){return t.type===d?t.slug:e},postTitle:function(e="",t){return t.type===u?t.title:e}}),c=e=>({type:u,title:e}),_=e=>({type:d,slug:e});function S(e){return e.postSlug}function T(e){return e.postTitle}const p=window.qf.config;var f=r.n(p),g=r(88975);function P(e){const t=f().getInitialPayload();return(0,g._H)(t.slug)}function v(e){const t=f().getInitialPayload();return(0,g.N_)(t?.title?.rendered?t?.title?.rendered:"")}(0,i.registerStore)("quillForms/document-editor",{reducer:a,actions:n,selectors:l,resolvers:s});const m=window.qf.builderPanels,y=(window.qf.messagesEditor,window.qf.adminComponents),w=window.wp.i18n;var O=r(74848);const E=()=>{const{setPostTitle:e}=(0,i.useDispatch)("quillForms/document-editor"),{title:t}=(0,i.useSelect)((e=>({title:e("quillForms/document-editor").getPostTitle()})));return(0,O.jsx)(y.BaseControl,{children:(0,O.jsxs)(y.ControlWrapper,{orientation:"vertical",children:[(0,O.jsx)(y.ControlLabel,{label:(0,w.__)("Title","quillforms")}),(0,O.jsx)(y.TextControl,{value:t,onChange:t=>e(t)})]})})},x=()=>{const{setPostSlug:e}=(0,i.useDispatch)("quillForms/document-editor"),{slug:t}=(0,i.useSelect)((e=>({slug:e("quillForms/document-editor").getPostSlug()})));return(0,O.jsx)(y.BaseControl,{children:(0,O.jsxs)(y.ControlWrapper,{orientation:"vertical",children:[(0,O.jsx)(y.ControlLabel,{label:(0,w.__)("Slug","quillforms")}),(0,O.jsx)(y.TextControl,{value:t,onChange:t=>e(t)})]})})},b=()=>(0,O.jsxs)("div",{className:"document-editor-panel-render",children:[(0,O.jsx)(E,{}),(0,O.jsx)(x,{})]});(0,m.registerBuilderSubPanel)("settings/document",{title:"Document",render:b}),(window.qf=window.qf||{}).documentEditor=o})();