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iBK,EAAOmB,8BAGrC,KC5EA,MAAM,UAAEC,GAAczC,GAAG0C,MAEzBD,EAAW,wCAAyC,oBAAoB,SAAUE,EAAWC,EAAiBC,GAC7G,MAAK,uBAAyBD,EAG5B,2BAA6BC,EAAMC,MAChC,CAAE,YAAa,cAAeC,SAAUF,EAAMG,iBAG5CL,CACR","sources":["webpack://jet-engine-relations/../node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://jet-engine-relations/../node_modules/react/jsx-runtime.js","webpack://jet-engine-relations/external window \"React\"","webpack://jet-engine-relations/webpack/bootstrap","webpack://jet-engine-relations/../src-jfb/action.js","webpack://jet-engine-relations/../src-jfb/index.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","module.exports = window[\"React\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","const {\n\t\t TextControl,\n\t\t SelectControl,\n\t } = wp.components;\n\nconst {\n\t\t useState,\n\t\t useEffect,\n\t\t Fragment,\n\t } = wp.element;\n\nconst { withRequestFields, withLoadingSelect } = JetFBHooks;\n\nconst {\n\t\t withSelect,\n\t\t withDispatch,\n\t } = wp.data;\n\nconst { compose } = wp.compose;\n\nconst {\n\t\t addAction,\n\t\t getFormFieldsBlocks,\n\t\t Tools: { withPlaceholder },\n\t } = JetFBActions;\n\nfunction RelationAction( {\n\t\t\t\t\t\t\t settings,\n\t\t\t\t\t\t\t label,\n\t\t\t\t\t\t\t help,\n\t\t\t\t\t\t\t source,\n\t\t\t\t\t\t\t onChangeSettingObj,\n\t\t\t\t\t\t\t requestFields,\n\t\t\t\t\t\t } ) {\n\n\tconst [ formFieldsList, setFormFields ] = useState( [] );\n\n\tuseEffect( () => {\n\t\tsetFormFields( [ ...getFormFieldsBlocks( [], '--' ), ...requestFields ] );\n\t}, [] );\n\n\treturn <Fragment>\n\t\t<SelectControl\n\t\t\tlabel={ label( 'relation' ) }\n\t\t\tlabelPosition='side'\n\t\t\tvalue={ settings.relation }\n\t\t\tonChange={ relation => onChangeSettingObj( { relation } ) }\n\t\t\toptions={ withPlaceholder( source.relations ) }\n\t\t/>\n\t\t<SelectControl\n\t\t\tlabel={ label( 'parent_id' ) }\n\t\t\tlabelPosition='side'\n\t\t\tvalue={ settings.parent_id }\n\t\t\tonChange={ parent_id => onChangeSettingObj( { parent_id } ) }\n\t\t\toptions={ formFieldsList }\n\t\t/>\n\t\t<SelectControl\n\t\t\tlabel={ label( 'child_id' ) }\n\t\t\tlabelPosition='side'\n\t\t\tvalue={ settings.child_id }\n\t\t\tonChange={ child_id => onChangeSettingObj( { child_id } ) }\n\t\t\toptions={ formFieldsList }\n\t\t/>\n\t\t<SelectControl\n\t\t\tlabel={ label( 'context' ) }\n\t\t\tlabelPosition='side'\n\t\t\tvalue={ settings.context }\n\t\t\tonChange={ context => onChangeSettingObj( { context } ) }\n\t\t\toptions={ withPlaceholder( source.context_options ) }\n\t\t/>\n\t\t<SelectControl\n\t\t\tlabel={ label( 'store_items_type' ) }\n\t\t\tlabelPosition='side'\n\t\t\tvalue={ settings.store_items_type }\n\t\t\tonChange={ store_items_type => onChangeSettingObj( { store_items_type } ) }\n\t\t\toptions={ withPlaceholder( source.store_items_type_options ) }\n\t\t/>\n\t</Fragment>;\n}\n\naddAction( 'connect_relation_items', compose(\n\twithSelect( withRequestFields )\n)( RelationAction ) );","import './action';\n\nconst { addFilter } = wp.hooks;\n\naddFilter( 'jet.fb.preset.editor.custom.condition', 'jet-form-builder', function( isVisible, customCondition, state ) {\n\tif ( 'relation_query_var' === customCondition ) {\n\n\t\treturn (\n\t\t\t'connect_relation_items' === state.from\n\t\t\t&& [ 'query_var', 'object_var' ].includes( state.rel_object_from )\n\t\t);\n\t}\n\treturn isVisible;\n} )"],"names":["f","k","Symbol","for","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","type","props","_owner","current","exports","jsx","jsxs","module","window","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","TextControl","SelectControl","wp","components","useState","useEffect","Fragment","element","withRequestFields","withLoadingSelect","JetFBHooks","withSelect","withDispatch","data","compose","addAction","getFormFieldsBlocks","Tools","withPlaceholder","JetFBActions","settings","label","help","source","onChangeSettingObj","requestFields","formFieldsList","setFormFields","_jsxs","children","_jsx","labelPosition","value","relation","onChange","options","relations","parent_id","child_id","context","context_options","store_items_type","store_items_type_options","addFilter","hooks","isVisible","customCondition","state","from","includes","rel_object_from"],"sourceRoot":""}
geri dön