(()=>{"use strict";var e={d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{getRestField:()=>n,getRestFields:()=>d,registerRestField:()=>r}),window.qf.themeEditor,window.qf.blockEditor,window.qf.messagesEditor,window.qf.documentEditor,window.qf.notificationsEditor;const s=window.wp.data,i=window.wp.hooks,o=window.lodash,l={},r=(e,t)=>{if("string"==typeof e)if(t.selectValue){if((0,o.isFunction)(t.selectValue))return l[e]&&console.error(`Rest field "${e}" is already registered.`),t=(0,i.applyFilters)("QuillForms.RestFields.RestFieldSettings",t,e),l[e]={...t},(0,i.doAction)("QuillForms.RestFields.RestFieldRegistered",t,e),t;console.error('The "selectValue" property must be a valid function.')}else console.error('"selectValue" setting is missing!');else console.error("Rest field key must be string.")};function n(e){return l[e]}function d(){return l}r("blocks",{selectValue:()=>(0,s.select)("quillForms/block-editor").getBlocksWithPartialSubmission()}),r("messages",{selectValue:()=>(0,s.select)("quillForms/messages-editor").getMessages()}),r("customCSS",{selectValue:()=>(0,s.select)("quillForms/code-editor").getCustomCSS()}),r("notifications",{selectValue:()=>(0,s.select)("quillForms/notifications-editor").getNotifications()}),r("theme",{selectValue:()=>parseInt((0,s.select)("quillForms/theme-editor").getCurrentThemeId())}),r("title",{selectValue:()=>(0,s.select)("quillForms/document-editor").getPostTitle()}),r("slug",{selectValue:()=>(0,s.select)("quillForms/document-editor").getPostSlug()}),r("settings",{selectValue:()=>(0,s.select)("quillForms/settings-editor").getSettings()}),r("quiz",{selectValue:()=>(0,s.select)("quillForms/quiz-editor").getState()}),(window.qf=window.qf||{}).restFields=t})();