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,EAAoB,CAAEqB,aAC7CP,QAAUb,EACVe,UAAQ,EACRC,iBACCA,EAAIC,cAAgB,aAAeA,KAGrCV,EAAAA,EAAAA,KAACW,EAAAA,SAAQ,KACTX,EAAAA,EAAAA,KAACC,EAAAA,uBAAsB,CACtBf,OAAQC,EAAAA,EAAAA,IAAI,iBAAkB,cAC9BgB,MAAQZ,EAASuB,QACjBT,SAAWS,GAAWtB,EAAoB,CAAEsB,YAC5CR,QAAU,CACT,CAAEH,MAAO,GAAIjB,MAAO,SACjBI,EAAOyB,oBAGZf,EAAAA,EAAAA,KAACW,EAAAA,SAAQ,KACTX,EAAAA,EAAAA,KAACC,EAAAA,uBAAsB,CACtBf,OAAQC,EAAAA,EAAAA,IAAI,yBAA0B,cACtCgB,MAAQZ,EAASyB,iBACjBX,SAAWW,GAAoBxB,EAAoB,CAClDwB,qBAEDV,QAAU,CACT,CAAEH,MAAO,GAAIjB,MAAO,SACjBI,EAAO2B,8BAId,EG1ECC,KAAMC,EACNC,QAAS,uGACTC,WAAY,CACX,EAAI9B,eACIA,GAAUa,UAAmB,CAAEM,SAAU,YAEjD,EAAInB,eACIA,GAAUqB,WAAoB,CAAEF,SAAU,aAElD,EAAInB,eACIA,GAAUsB,UAAmB,CAAEH,SAAU,cCnB7C,EAA+BrC,OAAW,GAAS,OCIzDiD,EAAAA,EAAAA,gBAAgBC,IAEhBC,EAAAA,EAAAA,WACC,wCACA,qCACA,SAAWC,EAAWC,EAAiBC,GACtC,MAAK,uBAAyBD,EAG5B,2BAA6BC,EAAMC,MAEnC,CAAE,YAAa,cAAeC,SAAUF,EAAMG,iBAGzCL,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/external window [\"wp\",\"i18n\"]","webpack://jet-engine-relations/external window [\"wp\",\"components\"]","webpack://jet-engine-relations/external window [\"jfb\",\"components\"]","webpack://jet-engine-relations/external window [\"jfb\",\"actions\"]","webpack://jet-engine-relations/external window [\"jfb\",\"blocksToActions\"]","webpack://jet-engine-relations/../src-jfb-v2/RelationAction/Edit.jsx","webpack://jet-engine-relations/external window [\"wp\",\"primitives\"]","webpack://jet-engine-relations/../node_modules/@wordpress/icons/build-module/library/connection.js","webpack://jet-engine-relations/../src-jfb-v2/RelationAction/index.js","webpack://jet-engine-relations/external window [\"wp\",\"hooks\"]","webpack://jet-engine-relations/../src-jfb-v2/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 __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"jfb\"][\"components\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"jfb\"][\"actions\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"jfb\"][\"blocksToActions\"];","import { __ } from '@wordpress/i18n';\nimport { Flex } from '@wordpress/components';\nimport {\n\tWideLine,\n} from 'jet-form-builder-components';\nimport {\n\tValidatedSelectControl,\n} from 'jet-form-builder-actions';\nimport { useFields } from 'jet-form-builder-blocks-to-actions';\n\nfunction EditConnectRelationAction( props ) {\n\n\tconst {\n\t\t source,\n\t\t settings,\n\t\t onChangeSettingObj,\n\t } = props;\n\n\tconst formFields = useFields( {\n\t\twithInner: false,\n\t\tplaceholder: '--',\n\t} );\n\n\treturn <Flex direction=\"column\">\n\t\t<ValidatedSelectControl\n\t\t\tlabel={ __( 'Relation', 'jet-engine' ) }\n\t\t\tlabelPosition=\"side\"\n\t\t\tvalue={ settings.relation }\n\t\t\tonChange={ relation => onChangeSettingObj( { relation } ) }\n\t\t\toptions={ [\n\t\t\t\t{ value: '', label: '--' },\n\t\t\t\t...source.relations,\n\t\t\t] }\n\t\t\trequired\n\t\t\tisErrorSupported={\n\t\t\t\t( { property } ) => 'relation' === property\n\t\t\t}\n\t\t/>\n\t\t<WideLine/>\n\t\t<ValidatedSelectControl\n\t\t\tlabel={ __( 'Parent Item ID', 'jet-engine' ) }\n\t\t\tvalue={ settings.parent_id }\n\t\t\tonChange={ parent_id => onChangeSettingObj( { parent_id } ) }\n\t\t\toptions={ formFields }\n\t\t\trequired\n\t\t\tisErrorSupported={\n\t\t\t\t( { property } ) => 'parent_id' === property\n\t\t\t}\n\t\t/>\n\t\t<WideLine/>\n\t\t<ValidatedSelectControl\n\t\t\tlabel={ __( 'Child Item ID', 'jet-engine' ) }\n\t\t\tvalue={ settings.child_id }\n\t\t\tonChange={ child_id => onChangeSettingObj( { child_id } ) }\n\t\t\toptions={ formFields }\n\t\t\trequired\n\t\t\tisErrorSupported={\n\t\t\t\t( { property } ) => 'child_id' === property\n\t\t\t}\n\t\t/>\n\t\t<WideLine/>\n\t\t<ValidatedSelectControl\n\t\t\tlabel={ __( 'Update Context', 'jet-engine' ) }\n\t\t\tvalue={ settings.context }\n\t\t\tonChange={ context => onChangeSettingObj( { context } ) }\n\t\t\toptions={ [\n\t\t\t\t{ value: '', label: '--' },\n\t\t\t\t...source.context_options,\n\t\t\t] }\n\t\t/>\n\t\t<WideLine/>\n\t\t<ValidatedSelectControl\n\t\t\tlabel={ __( 'How to Store New Items', 'jet-engine' ) }\n\t\t\tvalue={ settings.store_items_type }\n\t\t\tonChange={ store_items_type => onChangeSettingObj( {\n\t\t\t\tstore_items_type,\n\t\t\t} ) }\n\t\t\toptions={ [\n\t\t\t\t{ value: '', label: '--' },\n\t\t\t\t...source.store_items_type_options,\n\t\t\t] }\n\t\t/>\n\t</Flex>;\n}\n\nexport default EditConnectRelationAction;","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"primitives\"];","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst connection = /*#__PURE__*/_jsx(SVG, {\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fillRule: \"evenodd\",\n children: /*#__PURE__*/_jsx(Path, {\n d: \"M19.53 4.47a.75.75 0 0 1 0 1.06L17.06 8l.77.769a3.155 3.155 0 0 1 .685 3.439 3.15 3.15 0 0 1-.685 1.022v.001L13.23 17.83v.001a3.15 3.15 0 0 1-4.462 0L8 17.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L6.94 16l-.77-.769a3.154 3.154 0 0 1-.685-3.439 3.15 3.15 0 0 1 .685-1.023l4.599-4.598a3.152 3.152 0 0 1 4.462 0l.769.768 2.47-2.47a.75.75 0 0 1 1.06 0Zm-2.76 7.7L15 13.94 10.06 9l1.771-1.77a1.65 1.65 0 0 1 2.338 0L16.77 9.83a1.649 1.649 0 0 1 0 2.338h-.001ZM13.94 15 9 10.06l-1.77 1.771a1.65 1.65 0 0 0 0 2.338l2.601 2.602a1.649 1.649 0 0 0 2.338 0v-.001L13.94 15Z\"\n })\n});\nexport default connection;\n//# sourceMappingURL=connection.js.map","import { __ } from '@wordpress/i18n';\nimport EditConnectRelationAction from './Edit';\nimport { connection } from '@wordpress/icons';\n\nexport default {\n\ttype: 'connect_relation_items',\n\tlabel: __( 'Connect Relation Items', 'jet-engine' ),\n\tcategory: 'content',\n\tedit: EditConnectRelationAction,\n\ticon: connection,\n\tdocHref: 'https://crocoblock.com/knowledge-base/jetengine/jetengine-how-to-connect-relation-items-using-forms/',\n\tvalidators: [\n\t\t( { settings } ) => {\n\t\t\treturn settings?.relation ? false : { property: 'relation' };\n\t\t},\n\t\t( { settings } ) => {\n\t\t\treturn settings?.parent_id ? false : { property: 'parent_id' };\n\t\t},\n\t\t( { settings } ) => {\n\t\t\treturn settings?.child_id ? false : { property: 'child_id' };\n\t\t},\n\t],\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"hooks\"];","import action from './RelationAction';\nimport { registerAction } from 'jet-form-builder-actions';\nimport { addFilter } from '@wordpress/hooks';\n\nregisterAction( action );\n\naddFilter(\n\t'jet.fb.preset.editor.custom.condition',\n\t'jet-engine/connect-relation-items',\n\tfunction ( isVisible, customCondition, state ) {\n\t\tif ( 'relation_query_var' === customCondition ) {\n\n\t\t\treturn (\n\t\t\t\t'connect_relation_items' === state.from\n\t\t\t\t&&\n\t\t\t\t[ 'query_var', 'object_var' ].includes( state.rel_object_from )\n\t\t\t);\n\t\t}\n\t\treturn isVisible;\n\t},\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__","SVG","viewBox","xmlns","fillRule","children","Path","label","__","category","edit","source","settings","onChangeSettingObj","formFields","useFields","withInner","placeholder","_jsxs","Flex","direction","_jsx","ValidatedSelectControl","labelPosition","value","relation","onChange","options","relations","required","isErrorSupported","property","WideLine","parent_id","child_id","context","context_options","store_items_type","store_items_type_options","icon","connection","docHref","validators","registerAction","action","addFilter","isVisible","customCondition","state","from","includes","rel_object_from"],"sourceRoot":""}
geri dön