(()=>{var e={372:()=>{function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var r=wp.components,o=(r.TextControl,r.SelectControl),i=wp.element,l=i.useState,a=i.useEffect,c=i.Fragment,u=JetFBHooks,s=u.withRequestFields,p=(u.withLoadingSelect,wp.data),d=p.withSelect,f=(p.withDispatch,wp.compose.compose),m=JetFBActions,b=m.addAction,y=m.getFormFieldsBlocks,h=m.Tools.withPlaceholder;b("connect_relation_items",f(d(s))((function(n){var r,i,u=n.settings,s=n.label,p=(n.help,n.source),d=n.onChangeSettingObj,f=n.requestFields,m=(r=l([]),i=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return a}}(r,i)||t(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=m[0],_=m[1];return a((function(){_([].concat(e(y([],"--")),e(f)))}),[]),wp.element.createElement(c,null,wp.element.createElement(o,{label:s("relation"),labelPosition:"side",value:u.relation,onChange:function(e){return d({relation:e})},options:h(p.relations)}),wp.element.createElement(o,{label:s("parent_id"),labelPosition:"side",value:u.parent_id,onChange:function(e){return d({parent_id:e})},options:b}),wp.element.createElement(o,{label:s("child_id"),labelPosition:"side",value:u.child_id,onChange:function(e){return d({child_id:e})},options:b}),wp.element.createElement(o,{label:s("context"),labelPosition:"side",value:u.context,onChange:function(e){return d({context:e})},options:h(p.context_options)}),wp.element.createElement(o,{label:s("store_items_type"),labelPosition:"side",value:u.store_items_type,onChange:function(e){return d({store_items_type:e})},options:h(p.store_items_type_options)}))})))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(372),(0,wp.hooks.addFilter)("jet.fb.preset.editor.custom.condition","jet-form-builder",(function(e,t,n){return"relation_query_var"===t?"connect_relation_items"===n.from&&["query_var","object_var"].includes(n.rel_object_from):e}))})()})();