amis-editor-core 6.4.0 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-editor-core v6.4.0
2
+ * amis-editor-core v6.4.1
3
3
  * Copyright 2018-2024 @fex
4
4
  */
5
5
 
6
- import{utils as e,hasIcon as t,mapObject as n,Icon as r,findTree as a,render as o,autobind as i,closeContextMenus as c,resizeSensor as s,toast as d,resolveRenderer as l,InputBox as u,Html as p,Button as f,registerIcon as h,TooltipWrapper as m,Tabs as v,Tab as g,filterSchema as b,resolveVariable as y,Spinner as E,createObjectFromChain as w,alert as C,confirm as S,animation as I,openContextMenus as x,DataSchema as R,getTheme as N,Modal as O,Overlay as k,PopOver as A,Drawer as M,FormItem as P,prompt as F}from'amis';export{Icon,registerIcon}from'amis';import{extendLocale as D,i18n as B}from'i18n-runtime';import{__assign as $,__awaiter as T,__generator as j,__spreadArray as L,__read as H,__rest as z,__extends as K,__decorate as _,__metadata as V,__values as U}from'tslib';import*as W from'react';import Z,{memo as q,Component as Y}from'react';import X from'classnames';import{getGlobalData as J}from'amis-theme-editor-helper';import{isExpression as G,resolveVariableAndFilter as Q,clearStoresCache as ee,findTree as te,LazyComponent as ne,mapObject as re,mapTree as ae,createObject as oe,extractObjectChain as ie,extendObject as ce,getVariable as se,isObject as de,ErrorBoundary as le,attachmentAdpator as ue,DataSchema as pe,DATASCHEMA_TYPE_MAP as fe,eachTree as he,getRenderers as me,importLazyComponent as ve}from'amis-core';import{isObservable as ge,reaction as be}from'mobx';import ye from'deep-diff';import Ee from'lodash/isPlainObject';import we from'lodash/isEqual';import Ce from'lodash/isNumber';import Se from'lodash/debounce';import Ie from'lodash/merge';import{observer as xe}from'mobx-react';import{findDOMNode as Re,render as Ne,unmountComponentAtNode as Oe}from'react-dom';import{isAlive as ke,types as Ae,getParent as Me,getRoot as Pe,getEnv as Fe,cast as De,destroy as Be}from'mobx-state-tree';import $e from'lodash/omit';import Te,{useFrame as je}from'react-frame-component';import Le from'lodash/find';import He from'lodash/isString';import{matchSorter as ze}from'match-sorter';import Ke from'lodash/uniq';import _e from'lodash/findIndex';import{stringify as Ve,parse as Ue}from'json-ast-comments';import We from'lodash/groupBy';import Ze from'lodash/flatten';import qe from'lodash/memoize';import Ye from'axios';import Xe from'lodash/sortBy';import Je from'lodash/cloneDeep';import Ge from'lodash/reverse';import Qe from'lodash/pick';import{Editor as et}from'amis-ui';import tt from'lodash/isArray';import nt from'moment';D('en-US',{'4e7f76261f8c4c6d78998f85fc1f4c6e':'Margin','16a20243f9b741c08216dc9548de2968':'Overall','23ecf42cada8bf2715792d718544d107':'xs','391b8fa9c747a1799353ab856e666ad5':'sm',fd6e80f1e0199d6ecc3ee81ae04aa9ef:'default',aed1dfbc31703955e64806b799b67645:'md',ab18e30c0dc4093ceeda8961fac3d1f4:'lg','461d364c67ec6a45e011ed13f2f7154f':'Top margin','31e3752986d64c8b36897c8641c8628d':'Right margin',eabe91d9426b6446f707cea3e7ab2418:'Bottom margin','2e46d251ee6188bb1b3ff20656276572':'Left margin','3dc4038d0f0a2d2b3c2b2e29a5ec6dde':'None',a8b0c20416853bda54120bf19477ad11:'All',af767b7e4ae069d54f9ea839858d4c6d:'Top','4d9c32c23df5d234e629c922c58d8e12':'Right','3850a186c3235bc646d4c2f79cebac36':'Bottom',d2aff1417831aa621c16cd5b95306b4b:'Left','841d77223f0ec8cd0b530ed8e0775b20':'Padding','961534b4ea37e4e88aada736b299d063':'Border',d4d2a66820d30e07b44c850eb3f116c0:'Position','58f966670529f4753fb3c5a0647606be':'Size','6b36c6f7ec834692ec6c8e3816349fdd':'Color',fbae87bcc352f6933541fb77a07418ed:'Primary color',d8c7e04c8e2be23dd3b81a31db6e04f1:'Information','900c70fa5f7dbc014e6f762d5e0e885c':'Warning','540f84ddc0883866b229f71c2844199a':'Danger','330363dfc524cff2488f2ebde0500896':'Success','2fc96b2704b05d6a9f299c442573ee77':'White',adb7e5312abdb9a44297e48d63815fa3:'Dark color','48d0a09bdd5fe7e89f0a445b0ffdf14f':'Light color','0d98c74797e49d00bcc4c17c9d557a2b':'Others','0103eb2d3dca70270d1a74e9ec987ac9':'Rounded corner','8456bc40d48da5af833f1c63385e9879':'Font',b3b2682579133673d3fe08c156d565dc:'Normal','56dce5d1cbb97439d291c458e50107e0':'Bold','49a79f4047b81186c069ed1c9c151c66':'Light color','8e1b944f4389bdaab6f11d5bc83190c8':'Background',c28479019e24e0e4745f4948e9e97ee7:'Width',f72ce9ad683cc82e0eab557ffc9c67a0:'Make it exceptionally small',b95c462d7697958c25861193fc89ae07:'Make it big','3386da5f56fac758ed0f18e024ecb943':'Make it exceptionally big ',ffaa96ef7232cb6d8ee4d7e673dbf4ac:'Fill','47eac1ac32a8aa9081dffbdc4d374318':'Enter the css class name','939d5345ad4345dbaabe14798f6ac0f1':'Submit','55c56d01a7747ffe0346d42145b62d97':'The [Amis-editor] responds to the dynamic plugin addition event:',d6f73c6f3b92be5a64f7ea0163501284:'Cutting the region node is not allowed.','4fda4f585214d469c04466e2fc98b796':'Cutting the root node is not allowed.','657bbe06d3922b23552817df7fa8268e':'Cutting the current element is not allowed.','416445a316595bdeb44b661c7de875a8':'You cannot move the current element upward.','6ac88d87b2fd118ba7beab8c17880470':'You cannot move the current element downward.',fdb3cba60407b2f1aea0230cca644573:'You cannot delete the region node directly.','8a4b4e2e3b0382007e0c69ed1fe6fe71':'Deleting the root node is not allowed..','22f031f3de2e55c430a818d8c588f7a1':'Deleting the current element is not allowed.','3b6d5995e9f2ecd3df059b3f1bea201e':'A call error occurs or domain crossing occurs.','09f33be5ec04eb48b3102e4e31af5b38':'A call error occurs.','283c2a52955ad87574fd6c0cc932c443':'You can call the node only in the Iframe.',a71002967924a83e32b38a80705290fb:'System error','058ebdf2884474ebff2977ba2f0e275e':'System message','88f000a0fdc38ce3808cef072b00893c':'The rendering is in progress...','279321f97f11da7bc90facca156b3444':'A code error exists, which takes place at \\n {{@1}}.','7e4b38ba0ab9cbfcabd9dd859e36b601':'Currently, some data in the code are modified. Because the data is incorrect in its format and not saved, are you sure to abandon the modification?',af86ad9dd8a221f931dcdc5a63382b6f:'Check the modification.','43d586cd6cf1a512c0bcb85ed9efde51':'Confirm',bb79667f37035e9562ec6bcffd6cf8ef:'Component','5cb297585d4c81bb8fdbd31210a30d6f':'System component','6fce1c9aa3654ae2f0eedcc068a7e189':'Customize the component.','06e004ef21414c06d3e4ff2cefaf6a04':'Code','7f7c624a843b0d539a4ea59a696702f9':'Batch operation',b80ed82d124c6fd9242dcacdda2a2f8b:'Change the component type.','41150516bf0d90646edc5239593366e9':'Select the component and plug it into?',d87481b371771b4f150da76e311bbbef:'The component can be filtered by entering the keywords.',becdc848350872592201e31bab03892a:'It is impossible to preview it.',f26225bde6a250894a04db4c53ea03d0:'Details','751dfe6f476903c21381c9acf88332e2':'No component is available. Perhaps you should change the container.',e22c9a05b424b761efce11f17726fdd7:'Replace','9bdb07e72d3a9a6084201a7398523f5a':'Insert','625fb26b4b3340f7872b411f401e754c':'Cancel','95509c09bdef4bb7842a9b957ab1f971':'Disable the floating mode.','426480bb614633c8c3ba8faa0338b72f':'Enable the floating mode.',fbf7967f9baf6a22bd6ca7f4e6390bf9:'{{@ 1}}-[Public configuration]','93383ef1ab4a433df97a56a73e571b9f':'Outline','962d43ff8d39c381d8e2c73838412111':'Query the page element.','0c95d1856ffdeeade7cebe0ef928f361':'You can change the container by dragging the target into the navigating node.',c482df2a3ac8e014febd8a5fc9cadaea:'The loading is in progress, so you need to wait for a while...',c44c6c179c44e794b103053886847dc4:'No preview image is available.',e4cefe7df36e92da1d7e875b92655507:'Click to unfold.','7ae451de83aa6f5f140e941904377391':'Click to fold.','84c8f0087acfc9b9862371d0bd59b830':'Click to add 「{{@1}}」.',f3430f4fdd8b9643daa74f4a5716dd15:'&nbsp; details &nbsp;',b797a8992ef41320919e45a069f2b459:'No available component is found. You can continue to search for the component by changing the keyword.','0bd36c8db19e3a93506f39ebc8ff0ab9':'When the form, list, and other components have a name, they appear here for your selection.',bb28ec819520ced0ffb4c3da01f112e2:'Click to clear the current area.',e83a256e4f5bb4ff8b3d804b5473217a:'Confirm','22c799040acdb2601b437ed5449de076':'Container',bd9fcf46b4e5993f97fe04ee9ebcd7ed:'Undo',c3c873d33f1c6482c79b0ffd862786cd:'Redo',e9509c688a0df6b088503d21569b6e8f:'A type error exists so that no rendering is possible.','2168c5735883bd040eaf09909d0911b8':'Query the component by entering the keyword.',e9c38f88375807704270aa3572454976:'Search history','288f0c404c4e546aa3683ff5054e85e2':'Clear','4b9bc9abf2a2beb3772d903a3d01d1de':'Click to delete this search record.','9d3128a1675de32cdd290b31140a7290':'The query result is empty. You can continue search by changing the keyword.',accb901a02b1415b40d95cdd31b8da1d:'Component classification','79d3abe929f67f0644a78bf32adb3a89':'Copy',b7d817611230d382f6ef92b41848a342:'Copy the currently selected element.',eafbece1016a6af76cce466e55ad9f00:'Paste',e0b9bb8e41eccd3ce6b282664643d7f8:'Paste the copied element to the currently selected node.','43fc77886b7fbcd658f0ccdba36bd5a0':'Cut',a6be4ad12e9612811963c44466af3218:'Cut the currently selected element.','58887132871b71b015c3a391e7755815':'Restore the previous operation undone.',be5fbbe34ce9979bfb6576d9eddc5612:'Save','1f81fd4598e9151538f29c41b8aa0020':'Save all current operations.','645dbc5504e722a30896486085a06b32':'Preview','5bc425ac8b75c571093a63eb6073c354':'Enable the preview mode.','2f4aaddde33c9b93c36fd2503f3d122b':'Delete','426cd14ebd62a4922186527d07ba37f3':'Delete the current node.','499e58e764420aeed2d1476a56d8fa34':'Move upward',d040485f0e3887f0b297f8f772db03e4:'Move upward the current node.','08ad565f066d30572d1f8e2ee17cbe12':'Move downward','6348dc0e83d6ab391a8816f67d0e5ceb':'Move downward the current node.',fbec96e028142496df88ed2c63b44512:'Click to check the current shortcut key available.','9c3f1278ffa822835bb3a677f02bca27':'Current shortcut key available','4e98a5dcd3defffb23629fce3add04f6':'No shortcut key is available temporarily.','186733ed7ec817040b8f9cbc610ba49a':'Program error',e777eb796f8a02e97a891fde43d10ce4:'{{@1}} variable','5d665bc55779aafdefcc4050e3a8429e':'A {{@1}}({{@2}}) rendering error occurs:',a30dd4945df5b44b264fa3be6ee9682e:'Current renderer information:','63f94190d2d4ea22263e6e9f07c96558':'Error object:',f66335b5bff0e26fdff2a3303e0f9bb0:'Error information:','966e23b5c1efe8e18fc4f0c326d47314':')A rendering error occurs. For details about the error, check the console output.',f942c7a6a35c4eb1381d2966462d0489:'<div class="wrapper-sm b-a b-light m-b-sm">Be dragged into the placeholder area</div>','245897371cda2055f5c17c6cf298ed48':'Tip: No redirection is allowed in the preview mode.',e1b7255934e3189b1f5d440fc1aa0230:'An exception occurs during the plugin registration because a plugin with the same name already exists:','979a50681e278dcc0be18f68459e8217':'System variable','75c142934800d6ee31fcf3fdff9e5d53':'The [Amis-editor] has a {{@1}} plugin.','0e24e1bbc19612a350f81296d9fb7802':'First select an element as the insertion position.',bd690facb536d759814ee64f2760fecb:'Adding a component is not allowed at the current node.','02f180cd26ff0951ddfda490080ee5ea':'The configuration item has been copied.','1ff035555ac8a68dc5b0ea2d0af55f00':'The clipboard content is empty.','6cb01692eea2fa7066d20fe2b6ccaea3':'False data','7f2f0461a58c43667d7245ce92bb2e77':'Hold and drag it to adjust its position.','78c1c38b91c672da1113fa2564c14ea6':'Insert a component forward.','87f48bbadfbef5ef4554e06b7e141d37':'Insert a component backward.','95b351c86267f3aedf89520959bce689':'Edit','0ec9eaf9c3525eb110db58aae5912210':'More','417db09508befe7dbe9f84a517a6edec':'Repeat a copy.','99b81127ef28368151621cdfccce69f8':'Cancel the multi-selection.','205f45ee17394bd5668412780eaa55e2':'Insert a component.','4c725f0159023c485ead728680e277ba':'Select {{@1}}.','7ad78e0991f34ff3a345c59a2fc31572':'Select a level.',aafda9e8f6b7b613680677c513edb7a6:'Cancel the selection.',b58d101f52531c845f15db63d7212115:'Copy the configuration.','74e2bc6615b7dbbb11fd5e1e212263ae':'Cut the configuration.',e2f401af580d1354ae00ec4ca19e2e24:'Paste the configuration.','21462ae22216eec41dc688cc4a8ae64b':'Move forward',ed2bc13d8bbd99e16e017dd5f5393393:'Move backward','9e54f3e4ee3330299c5fdc910c2e8d3c':'Undo',ae8e86e426c2ba00da274b66dc372a8b:'Redo','2b6bc0f293f5ca01b006206c2535ccbc':'Operation',aa920263020f14211a44ea172efc7253:'Context data','48ac479789304b37afa2f1b06642f4da':'Current','9bc16c658ab8a8c4eddc5e24d85bef20':'Upper layer','004d4be2ba8e6b8eed9333d15bc80a88':'Upper {{@1}} layer',e366ccf1556c0672dcecba135ed5472e:'Setting','0cbec43d00e491a663ff0525ffe31868':'Quickly build 「{{@1}}」.','1dd554cdfc1ddf7dce13453805523c16':'Change',a82240ce09faf0b972a8aa5c9e93d209:'Insert the component panel.',eadc8c8d4a8776893672330598babca0:'A position error occurs. The target position is not found.',f3c057f37fb9a4e7dd44b04919c12578:'Click to add an element in the left component panel.','54ea89b497ec3bb319c68844dfa3687f':'API','51e213e66b37d716a35baebc9193035c':'This API is used to store the data. After submission of the form, you can import the data into this API. <br/>\n API response body requirements (If data exists in the data, the data is merged into the form context):<br/>\n {{@1}}\n}, null, \'<br/>\')}','388e0ff896ea4f23e71d36c06443f157':'API response body requirements: <br/>\n {{@1}},\n page: 0,\n total: 0\n}, null, \'<br/>\')}',b4bc91701b86fe8543d649e97daea602:'Initialize the API',f8747759c73697367bc8a570977c4a62:'API response body requirements:<br/>\n {{@1}}\n}, null, \'<br/>\')}',d2b46e7989e18239d7036affd4d521db:'{{@1}}field','9caecd931b956381e0763d05aa42835c':'Field','47cd88592f6ef2b258f02c0690d267ed':'Hide, which is selected by default','32c65d8d7431e76029678ec7bb73a5ab':'Title','020586d0c69f8211840ddf9ee9bbf6ab':'Bind the field','226b0912184333c81babf2f1894ec0c1':'Type','97d07614380da93d257f9fbf81aa56fb':'Text','20def7942674282277c3714ed7ea6ce0':'Image','4ff1e74e43a3586339251494117185ad':'Date',c7bff79d059a0b7ff9b02441959d8be2:'Progress','3fea7ca76cdece641436d7ab0d02ab1b':'Status','9da188491dd34c4382a5b9f006194e41':'Mapping',b3e55578af5dd473bab62641bb2f5f8e:'Input type','9b6425cd2d496c9cb5a6c6b8ff125d1b':'Input box','15d169d28cd48c97fe751e4cc92ca926':'Multi-line text','9597dcaf432ceba92a160d61cb1ef65f':'Digital input','9913107b19cb6012250134ff91377430':'Radiobox','454e60f5759903d7d3dba58e3f9bd590':'Select-box',db98f889ce6bc235e66bd4b2a788d137:'Checkbox','006ded9fa277cf030592021f595a07d5':'Select',a6beb974cc0b50eebd18120b8110a88b:'Switch',b339aa87104709397ba68e7ebbc6e5ba:'Table','481e034e6026969aae4ce7ce7c8a7b6f':'File upload','6bfb9bb2218ff32b6139e98bc93707c0':'Image upload','24b6d4c0892a8f3ee2a982e3ab0afe38':'Rich text editor','4484fa04e7b71db4c8293e5bcb53eca4':'Add a field.','4cc6a76c146c0360a41ceaf5e212c891':'Generate a field automatically based on the API.',a9fea442707e26dee478b34a2f2ce263:'First fill in the API.','91aa2166ee4811414381c8d94e6567e6':'Because the API return format is incorrect, check the API response format requirements.','3712972d84adf48acbd6ad24b4d75ad0':'List','66ab5e9f24c8f46012a25c89919fb191':'Add',e73cefac9d030927da1618c7b15c98c9:'Edit in batch','7fb62b30119c3797a843a48368463314':'Delete in batch','8d9a071ee2ef45e045968e117a205c07':'Import','55405ea6ff6fd823ffab7e6b10ddfa95':'Export',c26996a6506adf397f0668d376d0b40b:'Simple query','6ff4bf3d567e977aa4c90c27dff1e6db':'Fuzzy query','9c4666fd08c2738eb9611a3721cb5f0f':'Advanced query',a094e5b7699ea4b61094cc4120170423:'Data source',eeb6908870e058bc23d52c1e405a054e:'Previous step','38ce27d84639f3a6e07c00b3b4995c0e':'Next step','392342f7750a565f9a79c678c6b12421':'<Hidden state>','8e44aba21d01c1e08cc79f4ebaf0b3f2':'The layout container component does not support dragging and inserting child elements.','52e6abbe5c11e7cbf14788c1540f8bf2':'Copied','372ea9fd27fb7cfacfe1b4ca3046f8d0':'Configuration Item','2a6287664de5ab46c65220c7182878ff':'Cut',db805d4e361ac2d3fc6047eaea1a7c69:'Free container','969e9e56b3812abffa3994f35ea31835':'Adsorption vessel','5b804b05e14aaacc75033a4f77fc2844':'Source code','69a53230577258b6d97ee932befcc168':'<Column>:',cc6aeb073ebc3cb29734a49164f8964c:'Page variables',b71e8739cb9bcba8057a8fa8b59512da:'<Column>','34d240d1ded259c32f7fee21e99c5671':'Preview/Edit','6722089d251c1e4aabe9d58c26a2208a':'Turn preview mode on/off','107542a61cdccbb2981ad0c8bafc3440':'Replace component','813a5158d9f7171d20e7df340c5b48f9':'Component Context',d2655fdad2c9f8b6f6d7050d65226428:'Exception registering plugin \'{{@1}}\', there is already a plugin with the same name:',e9d4c83c9cdc23c65d11f74866636661:'Configuration panel loading','5ae147607b7896f8fd827337027607a9':'{{@1}} (Drawer type pop-up window)','7336083e6c61fe75fb5ec3f5ef101ac7':'Drawer pop-up window',e5fd721b2921aa63bb7574c6bbead312:'{{@1}} (Confirmation dialog box)',fa6b01f51cc2b8e16bfbb914b6c08ace:'Confirmation dialog box','05e70c7ef060f6c3ddcb4220702cde0f':'{{@1}} (pop up)','6cff4b6d794cc17f5d24dbe0d21e5732':'pop-up notification',c65e6ddd7b48846aa1e5224d4e5743c1:'View structure','67bcc69dd0a75d50c5cbb7f107ee9f63':'Component Outline','80e73cda4bd12532252652b4e19bb39b':'Popup Outline','21efd88b67a39834582ad99aabb9dc60':'There is currently no data available','451d71974652fdd1840a73c980f80fe8':'Skip Wizard',bc63dada3cdf28357dd4fe56ff5c567f:'Current layer {{@1}}','0383d6f467ed0dd89860a7b8cc793ce9':'Upper {{@1}} layer {{@2}}',b818d2fd22f70de2d912f19048e2cde2:'Intercepted {{@1}} rendering error',e9a11b908a9b4f3d9dc947d9a64c0dab:'A rendering error occurred. Please refer to the console output for detailed error information.'}),D('zh-CN',{'54ea89b497ec3bb319c68844dfa3687f':'接口','51e213e66b37d716a35baebc9193035c':'用来保存数据, 表单提交后将数据传入此接口。 <br/>\n 接口响应体要求(如果data中有数据,该数据将被合并到表单上下文中):<br/>\n {{@1}}\n}, null, \'<br/>\')}','388e0ff896ea4f23e71d36c06443f157':'接口响应体要求:<br/>\n {{@1}},\n page: 0,\n total: 0\n}, null, \'<br/>\')}',b4bc91701b86fe8543d649e97daea602:'初始化接口',f8747759c73697367bc8a570977c4a62:'接口响应体要求:<br/>\n {{@1}}\n}, null, \'<br/>\')}',d2b46e7989e18239d7036affd4d521db:'{{@1}}字段','9caecd931b956381e0763d05aa42835c':'字段','47cd88592f6ef2b258f02c0690d267ed':'隐藏,默认选中','32c65d8d7431e76029678ec7bb73a5ab':'标题','020586d0c69f8211840ddf9ee9bbf6ab':'绑定字段','226b0912184333c81babf2f1894ec0c1':'类型','97d07614380da93d257f9fbf81aa56fb':'文本','20def7942674282277c3714ed7ea6ce0':'图片','4ff1e74e43a3586339251494117185ad':'日期',c7bff79d059a0b7ff9b02441959d8be2:'进度','3fea7ca76cdece641436d7ab0d02ab1b':'状态','9da188491dd34c4382a5b9f006194e41':'映射',b3e55578af5dd473bab62641bb2f5f8e:'输入类型','9b6425cd2d496c9cb5a6c6b8ff125d1b':'输入框','15d169d28cd48c97fe751e4cc92ca926':'多行文本','9597dcaf432ceba92a160d61cb1ef65f':'数字输入','9913107b19cb6012250134ff91377430':'单选框','454e60f5759903d7d3dba58e3f9bd590':'勾选框',db98f889ce6bc235e66bd4b2a788d137:'复选框','006ded9fa277cf030592021f595a07d5':'下拉框',a6beb974cc0b50eebd18120b8110a88b:'开关',b339aa87104709397ba68e7ebbc6e5ba:'表格','481e034e6026969aae4ce7ce7c8a7b6f':'文件上传','6bfb9bb2218ff32b6139e98bc93707c0':'图片上传','24b6d4c0892a8f3ee2a982e3ab0afe38':'富文本编辑器','4484fa04e7b71db4c8293e5bcb53eca4':'添加字段','4cc6a76c146c0360a41ceaf5e212c891':'基于接口自动生成字段',a9fea442707e26dee478b34a2f2ce263:'请先填写接口','91aa2166ee4811414381c8d94e6567e6':'API返回格式不正确,请查看接口响应格式要求','3712972d84adf48acbd6ad24b4d75ad0':'列表','66ab5e9f24c8f46012a25c89919fb191':'新增',f26225bde6a250894a04db4c53ea03d0:'详情','95b351c86267f3aedf89520959bce689':'编辑','2f4aaddde33c9b93c36fd2503f3d122b':'删除',e73cefac9d030927da1618c7b15c98c9:'批量编辑','7fb62b30119c3797a843a48368463314':'批量删除','8d9a071ee2ef45e045968e117a205c07':'导入','55405ea6ff6fd823ffab7e6b10ddfa95':'导出',c26996a6506adf397f0668d376d0b40b:'简单查询','6ff4bf3d567e977aa4c90c27dff1e6db':'模糊查询','9c4666fd08c2738eb9611a3721cb5f0f':'高级查询',a094e5b7699ea4b61094cc4120170423:'数据来源','4e7f76261f8c4c6d78998f85fc1f4c6e':'外边距','16a20243f9b741c08216dc9548de2968':'整体','23ecf42cada8bf2715792d718544d107':'极小','391b8fa9c747a1799353ab856e666ad5':'小',fd6e80f1e0199d6ecc3ee81ae04aa9ef:'正常',aed1dfbc31703955e64806b799b67645:'中',ab18e30c0dc4093ceeda8961fac3d1f4:'大','461d364c67ec6a45e011ed13f2f7154f':'上边距','31e3752986d64c8b36897c8641c8628d':'右边距',eabe91d9426b6446f707cea3e7ab2418:'下边距','2e46d251ee6188bb1b3ff20656276572':'左边距','3dc4038d0f0a2d2b3c2b2e29a5ec6dde':'置无',a8b0c20416853bda54120bf19477ad11:'全部',af767b7e4ae069d54f9ea839858d4c6d:'上','4d9c32c23df5d234e629c922c58d8e12':'右','3850a186c3235bc646d4c2f79cebac36':'下',d2aff1417831aa621c16cd5b95306b4b:'左','841d77223f0ec8cd0b530ed8e0775b20':'内边距','961534b4ea37e4e88aada736b299d063':'边框',d4d2a66820d30e07b44c850eb3f116c0:'位置','58f966670529f4753fb3c5a0647606be':'大小','6b36c6f7ec834692ec6c8e3816349fdd':'颜色',fbae87bcc352f6933541fb77a07418ed:'主色',d8c7e04c8e2be23dd3b81a31db6e04f1:'信息','900c70fa5f7dbc014e6f762d5e0e885c':'警告','540f84ddc0883866b229f71c2844199a':'危险','330363dfc524cff2488f2ebde0500896':'成功','2fc96b2704b05d6a9f299c442573ee77':'白色',adb7e5312abdb9a44297e48d63815fa3:'暗色','48d0a09bdd5fe7e89f0a445b0ffdf14f':'浅色','0d98c74797e49d00bcc4c17c9d557a2b':'其他','0103eb2d3dca70270d1a74e9ec987ac9':'圆角','8456bc40d48da5af833f1c63385e9879':'字体',b3b2682579133673d3fe08c156d565dc:'细','56dce5d1cbb97439d291c458e50107e0':'粗','49a79f4047b81186c069ed1c9c151c66':'淡色','8e1b944f4389bdaab6f11d5bc83190c8':'背景',c28479019e24e0e4745f4948e9e97ee7:'宽度',f72ce9ad683cc82e0eab557ffc9c67a0:'特小',b95c462d7697958c25861193fc89ae07:'加大','3386da5f56fac758ed0f18e024ecb943':'特大',ffaa96ef7232cb6d8ee4d7e673dbf4ac:'占满','47eac1ac32a8aa9081dffbdc4d374318':'请输入 css 类名','939d5345ad4345dbaabe14798f6ac0f1':'提交','55c56d01a7747ffe0346d42145b62d97':'[amis-editor]响应动态添加插件事件:',d6f73c6f3b92be5a64f7ea0163501284:'区域节点不允许剪切。','4fda4f585214d469c04466e2fc98b796':'根节点不允许剪切。','657bbe06d3922b23552817df7fa8268e':'当前元素不允许剪切。','416445a316595bdeb44b661c7de875a8':'当前元素不能向上移动','6ac88d87b2fd118ba7beab8c17880470':'当前元素不能向下移动',fdb3cba60407b2f1aea0230cca644573:'区域节点不可以直接删除。','8a4b4e2e3b0382007e0c69ed1fe6fe71':'根节点不允许删除。','22f031f3de2e55c430a818d8c588f7a1':'当前元素不允许删除。','3b6d5995e9f2ecd3df059b3f1bea201e':'调用错误,或者存在跨域。','09f33be5ec04eb48b3102e4e31af5b38':'调用错误','283c2a52955ad87574fd6c0cc932c443':'只能在 Iframe 里面调用',a71002967924a83e32b38a80705290fb:'系统错误','058ebdf2884474ebff2977ba2f0e275e':'系统消息','88f000a0fdc38ce3808cef072b00893c':'渲染中...','279321f97f11da7bc90facca156b3444':'代码有误,错误的地方是\\n {{@1}}','7e4b38ba0ab9cbfcabd9dd859e36b601':'当前有部分已更改数据因为格式不正确尚未保存,您确认要丢弃这部分更改吗?',af86ad9dd8a221f931dcdc5a63382b6f:'查看更改','43d586cd6cf1a512c0bcb85ed9efde51':'请确认',bb79667f37035e9562ec6bcffd6cf8ef:'组件','5cb297585d4c81bb8fdbd31210a30d6f':'系统组件','6fce1c9aa3654ae2f0eedcc068a7e189':'自定义组件','06e004ef21414c06d3e4ff2cefaf6a04':'代码','7f7c624a843b0d539a4ea59a696702f9':'批量操作',b80ed82d124c6fd9242dcacdda2a2f8b:'更改组件类型','41150516bf0d90646edc5239593366e9':'选中组件插入到',d87481b371771b4f150da76e311bbbef:'输入关键字可过滤组件',becdc848350872592201e31bab03892a:'无法预览','751dfe6f476903c21381c9acf88332e2':'没有可用组件,也许你该切换容器试试。',e22c9a05b424b761efce11f17726fdd7:'替换','9bdb07e72d3a9a6084201a7398523f5a':'插入','625fb26b4b3340f7872b411f401e754c':'取消','95509c09bdef4bb7842a9b957ab1f971':'关闭悬浮模式','426480bb614633c8c3ba8faa0338b72f':'开启悬浮模式',fbf7967f9baf6a22bd6ca7f4e6390bf9:'{{@1}}-[公共配置]','93383ef1ab4a433df97a56a73e571b9f':'大纲','962d43ff8d39c381d8e2c73838412111':'查询页面元素','0c95d1856ffdeeade7cebe0ef928f361':'将目标拖入导航中的节点可以切换容器',c482df2a3ac8e014febd8a5fc9cadaea:'加载中,请稍等...',c44c6c179c44e794b103053886847dc4:'没有预览图',e4cefe7df36e92da1d7e875b92655507:'点击展开','7ae451de83aa6f5f140e941904377391':'点击折叠','84c8f0087acfc9b9862371d0bd59b830':'点击添加「{{@1}}」',f3430f4fdd8b9643daa74f4a5716dd15:'&nbsp;详情&nbsp;',b797a8992ef41320919e45a069f2b459:'没有找到可用组件,您可以换个关键字继续查找。','0bd36c8db19e3a93506f39ebc8ff0ab9':'当表单、列表等组件有名字时会出现在这里方便选择',bb28ec819520ced0ffb4c3da01f112e2:'点击清空当前区域',eeb6908870e058bc23d52c1e405a054e:'上一步','38ce27d84639f3a6e07c00b3b4995c0e':'下一步',e83a256e4f5bb4ff8b3d804b5473217a:'确认','22c799040acdb2601b437ed5449de076':'容器',bd9fcf46b4e5993f97fe04ee9ebcd7ed:'撤销',c3c873d33f1c6482c79b0ffd862786cd:'重做',e9509c688a0df6b088503d21569b6e8f:'类型错误,无法渲染','2168c5735883bd040eaf09909d0911b8':'输入关键字查询组件',e9c38f88375807704270aa3572454976:'搜索历史','288f0c404c4e546aa3683ff5054e85e2':'清空','4b9bc9abf2a2beb3772d903a3d01d1de':'点击删除这条搜索记录','9d3128a1675de32cdd290b31140a7290':'搜索结果为空,您可以换个关键字继续查找。',accb901a02b1415b40d95cdd31b8da1d:'组件分类','79d3abe929f67f0644a78bf32adb3a89':'复制',b7d817611230d382f6ef92b41848a342:'复制当前选中元素',eafbece1016a6af76cce466e55ad9f00:'粘贴',e0b9bb8e41eccd3ce6b282664643d7f8:'将复制的元素插入到当前选中节点','43fc77886b7fbcd658f0ccdba36bd5a0':'剪切',a6be4ad12e9612811963c44466af3218:'剪切当前选中元素','58887132871b71b015c3a391e7755815':'恢复上一次撤销的操作',be5fbbe34ce9979bfb6576d9eddc5612:'保存','1f81fd4598e9151538f29c41b8aa0020':'保存当前所有操作','645dbc5504e722a30896486085a06b32':'预览','5bc425ac8b75c571093a63eb6073c354':'开启预览模式','426cd14ebd62a4922186527d07ba37f3':'删除当前节点','499e58e764420aeed2d1476a56d8fa34':'向上移动',d040485f0e3887f0b297f8f772db03e4:'向上移动当前节点','08ad565f066d30572d1f8e2ee17cbe12':'向下移动','6348dc0e83d6ab391a8816f67d0e5ceb':'向下移动当前节点',fbec96e028142496df88ed2c63b44512:'点击查看当前可用快捷键','9c3f1278ffa822835bb3a677f02bca27':'当前可用快捷键','4e98a5dcd3defffb23629fce3add04f6':'暂无快捷键','186733ed7ec817040b8f9cbc610ba49a':'程序错误',e777eb796f8a02e97a891fde43d10ce4:'{{@1}}变量','5d665bc55779aafdefcc4050e3a8429e':'{{@1}}({{@2}})渲染发生错误:',a30dd4945df5b44b264fa3be6ee9682e:'当前渲染器信息:','63f94190d2d4ea22263e6e9f07c96558':'错误对象:',f66335b5bff0e26fdff2a3303e0f9bb0:'错误信息:','966e23b5c1efe8e18fc4f0c326d47314':')渲染发生错误,详细错误信息请查看控制台输出。','245897371cda2055f5c17c6cf298ed48':'温馨提示:预览模式下禁止跳转',e1b7255934e3189b1f5d440fc1aa0230:'注册插件异常,已存在同名插件:','979a50681e278dcc0be18f68459e8217':'系统变量','75c142934800d6ee31fcf3fdff9e5d53':'[amis-editor]当前已有{{@1}}插件','0e24e1bbc19612a350f81296d9fb7802':'请先选择一个元素作为插入的位置。',bd690facb536d759814ee64f2760fecb:'当前节点不允许追加新组件。','02f180cd26ff0951ddfda490080ee5ea':'配置项已复制','1ff035555ac8a68dc5b0ea2d0af55f00':'剪切板内容为空','6cb01692eea2fa7066d20fe2b6ccaea3':'假数据','7f2f0461a58c43667d7245ce92bb2e77':'按住拖动调整位置','78c1c38b91c672da1113fa2564c14ea6':'向前插入组件','87f48bbadfbef5ef4554e06b7e141d37':'向后插入组件','0ec9eaf9c3525eb110db58aae5912210':'更多','417db09508befe7dbe9f84a517a6edec':'重复一份','99b81127ef28368151621cdfccce69f8':'取消多选','205f45ee17394bd5668412780eaa55e2':'插入组件','4c725f0159023c485ead728680e277ba':'选中{{@1}}','7ad78e0991f34ff3a345c59a2fc31572':'选中层级',aafda9e8f6b7b613680677c513edb7a6:'取消选中',b58d101f52531c845f15db63d7212115:'复制配置','74e2bc6615b7dbbb11fd5e1e212263ae':'剪切配置',e2f401af580d1354ae00ec4ca19e2e24:'粘贴配置','21462ae22216eec41dc688cc4a8ae64b':'向前移动',ed2bc13d8bbd99e16e017dd5f5393393:'向后移动','9e54f3e4ee3330299c5fdc910c2e8d3c':'撤销(Undo)',ae8e86e426c2ba00da274b66dc372a8b:'重做(Redo)','2b6bc0f293f5ca01b006206c2535ccbc':'操作',aa920263020f14211a44ea172efc7253:'上下文数据','48ac479789304b37afa2f1b06642f4da':'当前','9bc16c658ab8a8c4eddc5e24d85bef20':'上层','004d4be2ba8e6b8eed9333d15bc80a88':'上{{@1}}层',e366ccf1556c0672dcecba135ed5472e:'设置','0cbec43d00e491a663ff0525ffe31868':'快速构建「{{@1}}」','1dd554cdfc1ddf7dce13453805523c16':'变更',a82240ce09faf0b972a8aa5c9e93d209:'插入组件面板',eadc8c8d4a8776893672330598babca0:'位置错误,目标位置没有找到',f3c057f37fb9a4e7dd44b04919c12578:'请从左侧组件面板中点击添加新的元素。',f942c7a6a35c4eb1381d2966462d0489:'<div class="wrapper-sm b-a b-light m-b-sm">拖入占位</div>','392342f7750a565f9a79c678c6b12421':'<隐藏状态>','8e44aba21d01c1e08cc79f4ebaf0b3f2':'布局容器组件不支持拖拽插入子元素。','52e6abbe5c11e7cbf14788c1540f8bf2':'已复制','372ea9fd27fb7cfacfe1b4ca3046f8d0':'配置项','2a6287664de5ab46c65220c7182878ff':'已剪切',db805d4e361ac2d3fc6047eaea1a7c69:'自由容器','969e9e56b3812abffa3994f35ea31835':'吸附容器','5b804b05e14aaacc75033a4f77fc2844':'源码','69a53230577258b6d97ee932befcc168':'<列>:',cc6aeb073ebc3cb29734a49164f8964c:'页面变量',b71e8739cb9bcba8057a8fa8b59512da:'<列>','34d240d1ded259c32f7fee21e99c5671':'预览/编辑','6722089d251c1e4aabe9d58c26a2208a':'开启/关闭预览模式','107542a61cdccbb2981ad0c8bafc3440':'替换组件','813a5158d9f7171d20e7df340c5b48f9':'组件上下文',d2655fdad2c9f8b6f6d7050d65226428:'注册插件「{{@1}}」异常,已存在同名插件:',e9d4c83c9cdc23c65d11f74866636661:'配置面板加载中','5ae147607b7896f8fd827337027607a9':'{{@1}}(抽屉式弹窗)','7336083e6c61fe75fb5ec3f5ef101ac7':'抽屉式弹窗',e5fd721b2921aa63bb7574c6bbead312:'{{@1}}(确认对话框)',fa6b01f51cc2b8e16bfbb914b6c08ace:'确认对话框','05e70c7ef060f6c3ddcb4220702cde0f':'{{@1}}(弹窗)','6cff4b6d794cc17f5d24dbe0d21e5732':'弹窗',c65e6ddd7b48846aa1e5224d4e5743c1:'视图结构','67bcc69dd0a75d50c5cbb7f107ee9f63':'组件大纲','80e73cda4bd12532252652b4e19bb39b':'弹窗大纲','21efd88b67a39834582ad99aabb9dc60':'暂无数据','451d71974652fdd1840a73c980f80fe8':'跳过向导',bc63dada3cdf28357dd4fe56ff5c567f:'当前层{{@1}}','0383d6f467ed0dd89860a7b8cc793ce9':'上{{@1}}层{{@2}}',b818d2fd22f70de2d912f19048e2cde2:'拦截到{{@1}}渲染错误',e9a11b908a9b4f3d9dc947d9a64c0dab:'渲染发生错误,详细错误信息请查看控制台输出。'});var rt=e.guid,at=e.omitControls,ot=e.isObjectShallowModified,it=e.cloneObject,ct=e.anyChanged,st=e.noop,dt=e.makeHorizontalDeeper,lt=e.findIndex,ut=e.isEmpty,pt=e.eachTree,ft=e.createObject,ht={},mt={};function vt(e){return e}function gt(e){return rn(e)?(Object.keys(e).forEach((function(t){void 0===e[t]&&delete e[t]})),e):e}var bt=[];function yt(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n={}),Array.isArray(e)){var r=!1,a=e.map((function(e){var a=yt(e,t,n);return a!==e&&(r=!0),a}));return r?a:e}if(!rn(e)||e.constructor!==Object)return'string'==typeof e&&Object.keys(n).forEach((function(t){var r=n[t];e=e.replaceAll(t,r)})),e;var o={},i=!1;if(e.$$id||(i=!0,o.$$id=rt()),bt.length>2&&e[bt[0]]&&e[bt[1]]&&e[bt[2]]&&(i=!0,bt.forEach((function(e){o[e]=void 0}))),e.type&&(e=En(e=yn(e)),t&&(i=!0,(!e.__origin||'scaffold'!==e.__origin)&&'string'==typeof e.id&&e.id.startsWith('u:')))){var c=on();e.id&&(n[e.id]=c),o.id=c}return Object.keys(e).forEach((function(r){var a=e[r],c=yt(a,t,n);c!==a&&(i=!0,o[r]=c)})),i&&(e=gt($($({},e),o))),e}function Et(e,t){if(Array.isArray(e)){var n=!1,r=e.map((function(e){var r=Et(e,t);return r!==e&&(n=!0),r}));return n?r:e}if(!Ee(e))return e;var a=!1,o={};return e.$$id&&(a=!0,o.$$id=void 0),Object.keys(e).forEach((function(n){var r=e[n];if('function'==typeof t?t(n,r):!1!==t&&'__'===n.substring(0,2))return o[n]=void 0,void(a=!0);var i=Et(r,t);i!==r&&(a=!0,o[n]=i)})),a&&(e=gt($($({},e),o))),e}function wt(e,t,n){var r=e;return n&&n.push(e),t.forEach((function(e){r=r[e],n&&n.push(r)})),r}function Ct(e,t,n){void 0===n&&(n='$$id');for(var r=[],a=!1,o=[{path:'.',data:e}],i=function(){var e=o.shift(),i=e.data,c=e.path;if(i[n]===t)return a=!0,r=c.split('.').filter((function(e){return e})),'break';Object.keys(i).forEach((function(e){var t=i[e];Array.isArray(t)?t.forEach((function(t,n){rn(t)&&o.push({data:t,path:''.concat(c,'.').concat(e,'.').concat(n)})})):rn(t)&&o.push({data:t,path:''.concat(c,'.').concat(e)})}))};o.length;){if('break'===i())break}return a?r:null}function St(e,t,n){var r=Ct(e,t,n);return null===r?null:wt(e,r)}function It(e,t,n){void 0===n&&(n=!1);var r=Ct(e,t);if(null===r||!r.length)return null;var a=e,o=[a];for(r.pop(),r.forEach((function(e){a=a[e],o.unshift(a)}));n&&Array.isArray(o[0]);)o.shift();return o[0]}function xt(e,t,n,r){void 0===r&&(r=!1);var a=Ct(e,t);if(null===a)return e;var o=[],i=wt(e,a,o);if(Array.isArray(n)&&o[o.length-2]&&Array.isArray(o[o.length-2])){var c=o[o.length-2].indexOf(o[o.length-1]);o[o.length-2]=o[o.length-2].concat(),o[o.length-2].splice.apply(o[o.length-2],[c,1].concat(n)),o.pop()}else o[o.length-1]=i=$($($({},r?null:i),n),{$$id:t});for(;o.length>1;){var s=o.pop();Array.isArray(o[o.length-1])?o[o.length-1]=o[o.length-1].concat():o[o.length-1]=$({},o[o.length-1]),o[o.length-1][a[o.length-1]]=s}return o[0]}function Rt(e,t,n,r){var a=Ct(e,t);if(null===a)return e;Array.isArray(n)&&n.push.apply(n,a);var o=a.pop(),i=[],c=wt(e,a,i);for(Array.isArray(c)?(i[i.length-1]=c=c.concat(),c.splice(o,1),r&&!c.length&&(i[i.length-1]=void 0)):(i[i.length-1]=c=$({},c),delete c[o]);i.length>1;){var s=i.pop();Array.isArray(i[i.length-1])?i[i.length-1]=i[i.length-1].concat():i[i.length-1]=$({},i[i.length-1]),void 0===s?delete i[i.length-1][a[i.length-1]]:i[i.length-1][a[i.length-1]]=s}return i[0]}function Nt(e,t){if(!rn(e)||!rn(t))return t;if(!ot(e,t))return e;var n={};return e.$$id&&(n.$$id=e.$$id),Object.keys(t).forEach((function(r){Array.isArray(t[r])&&Array.isArray(e[r])&&t[r]!==e[r]?n[r]=t[r].map((function(t,n){return e[r][n]?Nt(e[r][n],t):t})):void 0===e[r]?n[r]=t[r]:n[r]=Nt(e[r],t[r])})),n}function Ot(e,t,n){var r=Ct(e,t);if(null===r)return e;var a=parseInt(r.pop(),10),o=[],i=wt(e,r,o);if(!Array.isArray(i))return e;for(o[o.length-1]=i=i.concat(),n(i,i[a],a);o.length>1;){var c=o.pop();Array.isArray(o[o.length-1])?o[o.length-1]=o[o.length-1].concat():o[o.length-1]=$({},o[o.length-1]),o[o.length-1][r[o.length-1]]=c}return o[0]}function kt(e,t){var n=It(e,t);return!(!n||!Array.isArray(n))&&lt(n,(function(e){return e.$$id===t}))>0}function At(e,t){return Ot(e,t,(function(e,t,n){0!==n&&(e.splice(n,1),e.splice(n-1,0,t))}))}function Mt(e,t){var n=It(e,t);if(!n||!Array.isArray(n))return!1;var r=lt(n,(function(e){return e.$$id===t}));return~r&&r<n.length-1}function Pt(e,t){return Ot(e,t,(function(e,t,n){n!==e.length-1&&(e.splice(n,1),e.splice(n+1,0,t))}))}function Ft(e,t,n){return void 0===n&&(n={}),Ot(e,t,(function(e,t,r){var a=yt(Et(t));e.splice(r+1,0,Dt(a,n))}))}function Dt(e,t){void 0===t&&(t={});var n={};Qt(e,(function(e,r,a){var o='string'==typeof e&&0===e.indexOf('u:');if(('id'===r||'componentId'===r)&&o&&a)if(t[e])a[r]=t[e];else if(n[e])a[r]=n[e],t[e]=n[e];else{var i=on();a[r]=i,'id'===r?t[e]=i:'componentId'===r&&(n[e]=i)}return e}));var r={},a=!1;return Object.keys(n).forEach((function(e){t[e]||(r[n[e]]=e,a=!0)})),a&&Qt(e,(function(e,t,n){var a='string'==typeof e&&0===e.indexOf('u:');return'componentId'===t&&a&&r[e]&&(n.componentId=r[e]),e})),e}function Bt(e){Object.isFrozen(e)||(Array.isArray(e)&&e.forEach((function(e){return Bt(e)})),rn(e)&&!ge(e)&&(!e.type||e.__origin&&'scaffold'===e.__origin||(e.id=on()),Object.keys(e).forEach((function(t){var n=e[t];(rn(n)||Array.isArray(n))&&Bt(n)}))))}function $t(e){var t=document.createElement('div');return t.innerHTML=e.trim(),t.firstChild}function Tt(e,t,n){return void 0===n&&(n={}),(null==e?void 0:e.$$commonSchema)===t?n[t]=e:Ee(e)?Object.keys(e).forEach((function(r){Tt(e[r],t,n)})):Array.isArray(e)&&e.map((function(e){return Tt(e,t,n)})),n}function jt(e,t){if(Array.isArray(e))return e.map((function(e){return jt(e,t)}));if(Ee(e)){var n={},r=!1;return Object.keys(e).forEach((function(a){var o=e[a],i=jt(o,t);if(e.$$commonSchema?n[a]&&(n[a]=i):n[a]=i,i!==o&&(r=!0),'$$commonSchema'!==a||t){if('$$commonSchema'===a&&t){var c=Tt(t,o);c[o]&&(e=n=$({},c[o]))}}else e=n={$$commonSchema:o}})),r?n:e}return e}function Lt(e){if(Array.isArray(e))return e.map((function(e){return Lt(e)}));if(Ee(e)){var t={},n=!1;return Object.keys(e).forEach((function(r){var a=e[r];~['visible','visibleOn','hidden','hiddenOn','toggled'].indexOf(r)&&(r='$$'.concat(r),n=!0);var o=Lt(a);t[r]=o,o!==a&&(n=!0)})),n?t:e}return e}function Ht(e){return function(t){return!~e.indexOf(t)}}function zt(e,t){var n=t?'function'==typeof t?t:function(e){return e[t]}:function(e){return e};return function(t,r){var a=e.indexOf(n(t)),o=e.indexOf(n(r));return(a=~a?a:999999)>(o=~o?o:999999)?1:a===o?0:-1}}function Kt(e,t){var n=localStorage.getItem('amis-editor-'.concat(e));return n&&(n=JSON.parse(n)),n||t}function _t(e,t){t=JSON.stringify(t),localStorage.setItem('amis-editor-'.concat(e),t)}function Vt(e){return e.replace(/\-[a-z0-9]+$/g,'')}var Ut=e.autobind;function Wt(e){for(;e&&(e.classList.add('ae-is-draging'),!(null==(e=e.parentElement)?void 0:e.hasAttribute('data-region'))););}function Zt(e){for(;e&&(e.classList.remove('ae-is-draging'),!(null==(e=e.parentElement)?void 0:e.hasAttribute('data-region'))););}function qt(e){return e.replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}))}var Yt=function(e,t){var n;return be(e,(function(e){we(e,n)||(t(e,n),n=e)}))};function Xt(e,t){void 0===t&&(t=1);for(var n=[];t-- >0;)n.push(e);return n}function Jt(e,t,n){return ye.diff(e,t,n)}function Gt(e,t){return t?t.reduce((function(t,n){return function(e,t,n){if(e&&Array.isArray(null==n?void 0:n.path)){e=e===t?$({},e):e;var r=n.path.concat();'A'!==n.kind&&r.pop(),r.reduce((function(e,t){var n=e.target,r=e.source[t],a=n[t];return r===a&&(a=Array.isArray(a)?a.concat():$({},a),n[t]=a),{source:r,target:a}}),{target:e,source:t}),ye.applyChange(e,t,n)}return e}(t,e,n)}),e):e}function Qt(e,t,n){Object.keys(e).forEach((function(r){var a=e[r];(null==n?void 0:n(a,r))||(Ee(a)||Array.isArray(a)?Qt(a,t,n):t(a,r,e))}))}var en=function(e){return Ce(e)||!isNaN(parseFloat(String(e).toString()))},tn=function(e,t){return void 0===t&&(t='px'),e?en(e)?''.concat(parseFloat(String(e).toString())).concat(t):e:void 0};function nn(e){return'String'===Object.prototype.toString.call(e).slice(8,-1)}function rn(e){return'Object'===Object.prototype.toString.call(e).slice(8,-1)}function an(e,t,n){void 0===e&&(e={}),void 0===n&&(n=3);var r={type:'object',properties:{}};return ge(e)||n<=0||Object.keys(e).forEach((function(a){var o=e[a],i=Array.isArray(o)?'array':typeof o;~['string','number'].indexOf(i)?r.properties[a]={type:i,title:(null==t?void 0:t(i,a))||a}:~['object','array'].indexOf(i)&&o?r.properties[a]=$({type:i,title:(null==t?void 0:t(i,a))||a},'object'===i?an(o,t,n-1):'object'==typeof o[0]?{items:an(o[0],t,n-1)}:{}):r.properties[a]={type:'',title:(null==t?void 0:t(i,a))||a}})),r}function on(){return'u:'+rt()}function cn(e){return e.pluginIcon&&t(e.pluginIcon)}function sn(e){return!(!e||'flex'!==e.type)}function dn(e,t){if('auto'===e)return'auto';var n=parseInt(e),r=t;Ce(t)||(r=parseInt(t));var a=e.substring(n.toString().length);return a||(a='px'),''.concat(n+r).concat(a)}function ln(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,'')}function un(e){return['divider','crud2','crud','list','picker','table','table-view','grid','cards','card','form','progress','diff-editor','editor','input-range','flex'].includes(e)}function pn(){var e,t;return null!==(t=null===(e=null===window||void 0===window?void 0:window.editorStore)||void 0===e?void 0:e.i18nEnabled)&&void 0!==t&&t}function fn(e,t,r){var a;return t=t||(null===(a=null===window||void 0===window?void 0:window.editorStore)||void 0===a?void 0:a.appCorpusData),Ee(t)?n(e,(function(e){return t[e]||e}),r):e}function hn(e){var t,n;return nn(e)&&(null===(n=null===(t=null===window||void 0===window?void 0:window.editorStore)||void 0===t?void 0:t.appCorpusData)||void 0===n?void 0:n[e])||e}function mn(e){var t,n,r,a;return!!e&&('page'===e.rendererName&&('aside'===e.name||'body'===e.name)||(!!(null===(n=null===(t=e.node)||void 0===t?void 0:t.schema)||void 0===n?void 0:n.isFreeContainer)||!(!(null===(r=e.$$editor)||void 0===r?void 0:r.needFillPlaceholder)&&!(null===(a=e.regionConfig)||void 0===a?void 0:a.needFillPlaceholder))))}function vn(e){mt=J(ht=e),bt=Object.keys(gn())}function gn(){return $({themeConfig:ht},mt)}var bn={'background-color':'background'};function yn(e){if(!(null==e?void 0:e.style)||ut(e.style)||!['tpl','page','container','chart','flex','grid'].includes(e.type))return e;var t=$({},e.style),n={},r={},a={},o={};if(Object.keys(t).forEach((function(e){['background','background-color','radius','boxShadow'].includes(e)?(n[(bn[e]||e)+':default']=t[e],delete t[e]):['color','fontSize','fontWeight','font-family','lineHeight'].includes(e)?(o[e]=t[e],delete t[e]):e.includes('border')?(r[e]=t[e],delete t[e]):(e.includes('padding')||e.includes('margin'))&&(a[e]=t[e],delete t[e])})),n=Object.assign(ut(n)?{}:n,ut(r)?{}:{'border:default':r},ut(a)?{}:{'padding-and-margin:default':a},ut(o)?{}:{'font:default':o}),ut(n))return e;var i={baseControlClassName:n};return e.themeCss?i.baseControlClassName=Ie(e.themeCss.baseControlClassName,n):i={baseControlClassName:n},$($({},e),{style:t,themeCss:i})}function En(e){if(!(null==e?void 0:e.type))return e;var t=$({},e);return Object.keys(t).forEach((function(e){(e.startsWith('.')||e.startsWith('#'))&&delete t[e],'editorState'===e&&delete t[e]})),t}function wn(e,t){var n,r,a,o,i,c,s,d,l;return T(this,void 0,void 0,(function(){var u,p,f,h,m,v,g;return j(this,(function(b){switch(b.label){case 0:return[4,null==t?void 0:t.getContextSchemas(e)];case 1:return b.sent(),[4,null===(n=null==t?void 0:t.dataSchema)||void 0===n?void 0:n.getDataPropsAsOptions()];case 2:return u=null!==(r=b.sent())&&void 0!==r?r:[],p=[],(null===(a=null==t?void 0:t.store)||void 0===a?void 0:a.isSubEditor)?(p=(null===(s=null===(c=null===(i=null===(o=t.config)||void 0===o?void 0:o.hostNode)||void 0===i?void 0:i.info)||void 0===c?void 0:c.getSubEditorVariable)||void 0===s?void 0:s.call(c,null===(d=t.config)||void 0===d?void 0:d.hostNode.schema))||[],[4,t.config.getHostNodeDataSchema()]):[3,4];case 3:f=b.sent(),(null==(h=((null==f?void 0:f.getDataPropsAsOptions())||[]).filter((function(e){return e.label===B('813a5158d9f7171d20e7df340c5b48f9')})).reduce((function(e,t){return e.push.apply(e,L([],H(t.children||[]),!1)),e}),[]))?void 0:h.length)&&(m=!1,u=u.map((function(e){return e.label!==B('813a5158d9f7171d20e7df340c5b48f9')||m||(m=!0,e.children=e.children.concat(h)),e})),m||(u=L([{label:B('813a5158d9f7171d20e7df340c5b48f9'),children:h}],H(u),!1))),b.label=4;case 4:return v=Sn(u),g=(null===(l=null==t?void 0:t.variableManager)||void 0===l?void 0:l.getVariableFormulaOptions())||[],[2,L(L(L([],H(p),!1),H(v),!1),H(g),!1).filter((function(e){var t;return null===(t=e.children)||void 0===t?void 0:t.length}))]}}))}))}function Cn(e){return T(this,void 0,void 0,(function(){var t,n,r,a,o,i,c,s;return j(this,(function(d){switch(d.label){case 0:return t=[],n=e.props,r=n.variables,a=n.requiredDataPropsVariables,r&&!a?[3,2]:(o=e.props.formProps||e.props,i=o.node,c=o.manager,[4,wn(i,c)]);case 1:s=d.sent(),Array.isArray(s)&&(e.isUnmount||(t=s)),d.label=2;case 2:return r&&(Array.isArray(r)?t=L(L([],H(r),!1),H(t),!1):'function'==typeof r?t=L(L([],H(r(e)),!1),H(t),!1):G(r)&&(t=L(L([],H(Q(e.props.variables,e.props.data,'| raw')),!1),H(t),!1))),e.appLocale&&e.appCorpusData?[2,fn(t,e.appCorpusData)]:[2,t]}}))}))}var Sn=function(e){var t=L([],H(e),!1),n=t.findIndex((function(e){return e.label===B('813a5158d9f7171d20e7df340c5b48f9')}));return~n&&t.splice(n,1,$($({},t[n]),{children:t[n].children.map((function(e,t){return $($({},e),{label:0===t?'当前层'.concat(e.label?'('+e.label+')':''):B('af767b7e4ae069d54f9ea839858d4c6d').concat(t,'层').concat(e.label?'('+e.label+')':'')})}))})),t},In=Se((function(e){var t=document.querySelector(e);t&&(t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():t.scrollIntoView())}),200);function xn(e,t,n,r){e=$($({},e),{definitions:$({},e.definitions)}),n&&Ee(n)&&(e=Nn(e,n,t));for(var a=1;e.definitions['modal-ref-'.concat(a)]||r&&!r('modal-ref-'.concat(a));)a++;return t=$($({type:'dialog',body:[{type:'tpl',tpl:'这是一个弹窗'}],title:'未命名弹窗'.concat(a)},t),{$$id:rt()}),e.definitions['modal-ref-'.concat(a)]=yt(t),[e,'modal-ref-'.concat(a)]}function Rn(e,t,n){void 0===t&&(t={});var r={definitions:t};return e.forEach((function(t,a){var o;n&&(n.$$ref?n.$$ref===t.$$ref:n.$$id===t.$$id)||!t.$$ref&&t.$$id&&(St(r.definitions,t.$$id)||n&&St(n,t.$$id))||(t.$$ref?r.definitions[t.$$ref]=yt(t):(o=H(xn(r,$($({},t),{$$originId:t.$$id}),void 0,(function(t){return!e.find((function(e){return e.$$ref&&e.$$ref===t}))})),1),r=o[0]))})),r.definitions}function Nn(e,t,n){var r=[];Qt(n,(function(e,t){'$ref'===t&&r.push(e)}));var a=e;return Object.keys(t).forEach((function(n){var o,i,c,s;a===e&&(a=$($({},a),{definitions:$({},a.definitions)}));var d=t[n],l=d.$$originId,u=z(d,['$$originId']);if(l){var p=It(a,l);if(r.includes(n)){if(a.$$id===l)return void(a=xt(a,l,yt(u),!0));if(!p)throw new Error('Can not find modal action.');var f='drawer'===u.type?'drawer':'dialog';(a=xt(a,p.$$id,$($({},p),((o={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:null!==(c=u.actionType)&&void 0!==c?c:f})[f]=yt({$ref:n}),o)),!0)).definitions[n]=yt(u)}else if(p){var h=p[f='drawer'===u.type?'drawer':'dialog']||{},m=Jt(h,u,(function(e,t){return'$$id'===t}));if(m){var v=Gt(h,m);delete v.$$originId,a=xt(a,p.$$id,$($({},p),((i={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:null!==(s=u.actionType)&&void 0!==s?s:f})[f]=v,i)),!0)}}}else r.includes(n)&&(a.definitions[n]=yt(u))})),a}var On=Object.freeze({__proto__:null,guid:rt,isObjectShallowModified:ot,anyChanged:ct,noop:st,makeHorizontalDeeper:dt,omitControls:at,isEmpty:ut,cloneObject:it,eachTree:pt,createObject:ft,get themeConfig(){return ht},get themeOptionsData(){return mt},__uri:vt,cleanUndefined:gt,JSONPipeIn:yt,JSONPipeOut:Et,JSONGetByPath:wt,JSONGetPathById:Ct,JSONGetById:St,JSONGetParentById:It,JSONUpdate:xt,JSONDelete:Rt,JSONMerge:Nt,JSONChangeInArray:Ot,JSONCanMoveUp:kt,JSONMoveUpById:At,JSONCanMoveDown:Mt,JSONMoveDownById:Pt,JSONDuplicate:Ft,reGenerateID:Dt,JsonGenerateID:Bt,createElementFromHTML:$t,deepFind:Tt,filterSchemaForConfig:jt,filterSchemaForEditor:Lt,blackList:Ht,sortByList:zt,persistGet:Kt,persistSet:_t,normalizeId:Vt,autobind:Ut,addDragingClass:Wt,removeDragingClass:Zt,camelize:qt,reactionWithOldValue:Yt,repeatArray:Xt,diff:Jt,patchDiff:Gt,JSONTraverse:Qt,isNumeric:en,string2CSSUnit:tn,isString:nn,isObject:rn,jsonToJsonSchema:an,generateNodeId:on,isHasPluginIcon:cn,isLayoutPlugin:sn,unitFormula:dn,stringRegExp:ln,needDefaultWidth:un,getI18nEnabled:pn,translateSchema:fn,appTranslate:hn,needFillPlaceholder:mn,setThemeConfig:vn,getThemeConfig:gn,style2ThemeCss:yn,clearDirtyCssKey:En,resolveVariablesFromScope:wn,getVariables:Cn,updateComponentContext:Sn,scrollToActive:In,addModal:xn,modalsToDefinitions:Rn,mergeDefinitions:Nn}),kn=xe((function(e){var t=e.className,n=e.store,a=e.id,o=e.title,i=e.children,c=e.node;e.toolbarContainer;var s=e.onSwitch,d=e.manager,l=Z.useCallback((function(e){return f(e,'horizontal')}),[]),u=Z.useCallback((function(e){return f(e,'vertical')}),[]),p=Z.useCallback((function(e){return f(e,'both')}),[]),f=Z.useCallback((function(e,t){var r,o,i;if((1===e.button&&null!==window.event||0===e.button)&&!e.defaultPrevented&&(e.preventDefault(),c)){var s=document.querySelector('[data-editor-id="'.concat(a,'"]'));if(s){d.disableHover=!0;var l=d['both'===t?'onSizeChangeStart':'vertical'===t?'onHeightChangeStart':'onWidthChangeStart'](e,{dom:s,node:c,store:n,resizer:'both'===t?b.current:'vertical'===t?v.current:h.current}),u=null===(r=l.data)||void 0===r?void 0:r.onMove,p=null===(o=l.data)||void 0===o?void 0:o.onEnd;if(u||p){null===(i=C.current)||void 0===i||i.setAttribute('data-resizing','');var f=function(e){e.preventDefault(),null==u||u(e)},m=function(e){var t;e.preventDefault(),d.disableHover=!1,null===(t=C.current)||void 0===t||t.removeAttribute('data-resizing'),window.removeEventListener('mousemove',f),window.removeEventListener('mouseup',m),document.body.style.cursor='default';var n=function(e){window.removeEventListener('click',n,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener('click',n,!0),setTimeout((function(){return window.removeEventListener('click',n,!0)}),350),null==p||p(e)};window.addEventListener('mousemove',f),window.addEventListener('mouseup',m),document.body.style.cursor='both'===t?'nwse-resize':'vertical'===t?'ns-resize':'ew-resize'}}}}),[]),h=Z.useRef(),m=Z.useCallback((function(e){var t;e?e.addEventListener('mousedown',l):null===(t=h.current)||void 0===t||t.removeEventListener('mousedown',l),h.current=e}),[]),v=Z.useRef(),g=Z.useCallback((function(e){var t;e?e.addEventListener('mousedown',u):null===(t=v.current)||void 0===t||t.removeEventListener('mousedown',u),v.current=e}),[]),b=Z.useRef(),y=Z.useCallback((function(e){var t;e?e.addEventListener('mousedown',p):null===(t=b.current)||void 0===t||t.removeEventListener('mousedown',p),b.current=e}),[]),E=Z.useCallback((function(){d.disableHover||n.setHoverId(a)}),[]),w=Z.useCallback((function(e){d.disableHover||d.startDrag(a,e)}),[]),C=Z.createRef(),S=n.sortedToolbars,I=n.sortedSecondaryToolbars,x=n.sortedSpecialToolbars,R=n.isActive(a),N=n.parentIsFreeContainer(),O=n.isHoved(a)||n.dropId===a||n.insertOrigId===a||N===a,k=n.draggableContainer(a),A=document.getElementById('aePreviewHighlightBox').offsetWidth;if(!ke(c))return Z.createElement('div',null);var M=A-c.x<176;return Z.createElement('div',{className:X('ae-Editor-hlbox',{shake:a===n.insertOrigId,selected:R||~n.selections.indexOf(a),hover:O,regionOn:c.childRegions.some((function(e){return n.isRegionHighlighted(e.id,e.region)})),isFreeContainerElem:!!N||k},t),'data-hlbox-id':a,style:{display:c.w&&c.h?'block':'none',top:c.y,left:c.x,width:c.w,height:c.h},ref:C,onMouseEnter:E,draggable:!!N||k,onDragStart:w},R?Z.createElement('div',{className:'ae-Editor-toolbarPopover '.concat(M?'is-right-elem':'')},Z.createElement('div',{className:'ae-Editor-nav'},c.host?Z.createElement('div',{className:'ae-Editor-tip parent',onClick:function(){return null==s?void 0:s(c.host.id)}},c.host.label):null,Z.createElement('div',{key:'tip',className:'ae-Editor-tip current'},o),c.firstChild?Z.createElement('div',{className:'ae-Editor-tip child',onClick:function(){return null==s?void 0:s(c.firstChild.id)}},c.firstChild.label):null),Z.createElement('div',{className:'ae-Editor-toolbar',key:'toolbar'},S.map((function(e){return Z.createElement('button',{key:e.id,type:'button',draggable:e.draggable,onDragStart:e.onDragStart,'data-id':e.id,'data-tooltip':e.tooltip||void 0,'data-position':e.placement||'top',onClick:e.onClick},e.iconSvg?Z.createElement(r,{className:'icon',icon:e.iconSvg}):~e.icon.indexOf('<')?Z.createElement('span',{dangerouslySetInnerHTML:{__html:e.icon}}):Z.createElement('i',{className:e.icon}))})))):null,R&&I.length?Z.createElement('div',{className:'ae-Editor-toolbar sencondary',key:'sencondary-toolbar'},I.map((function(e){return Z.createElement('button',{key:e.id,type:'button',className:e.className,'data-id':e.id,'data-tooltip':e.tooltip||void 0,'data-position':e.placement||'top',onClick:e.onClick},e.iconSvg?Z.createElement(r,{className:'icon',icon:e.iconSvg}):~e.icon.indexOf('<')?Z.createElement('span',{dangerouslySetInnerHTML:{__html:e.icon}}):Z.createElement('i',{className:e.icon}))}))):null,R&&x.length?Z.createElement('div',{className:'ae-Editor-toolbar special',key:'special-toolbar'},x.map((function(e){return Z.createElement('button',{key:e.id,type:'button',className:e.className,'data-id':e.id,'data-tooltip':e.tooltip||void 0,'data-position':e.placement||'top',onClick:e.onClick},e.iconSvg?Z.createElement(r,{className:'icon',icon:e.iconSvg}):~e.icon.indexOf('<')?Z.createElement('span',{dangerouslySetInnerHTML:{__html:e.icon}}):Z.createElement('i',{className:e.icon}))}))):null,i,c.widthMutable?Z.createElement(Z.Fragment,null,Z.createElement('span',{className:'ae-border-WResizer',ref:m}),Z.createElement('span',{className:'ae-WResizer',ref:m})):null,c.heightMutable?Z.createElement(Z.Fragment,null,Z.createElement('span',{className:'ae-border-HResizer',ref:g}),Z.createElement('span',{className:'ae-HResizer',ref:g})):null,c.widthMutable&&c.heightMutable?Z.createElement('span',{className:'ae-Resizer',ref:y}):null)})),An=xe((function(e){var t=e.manager,n=e.store,a=e.id,o=e.name,i=e.title,c=e.node,s=e.isOnlyChildRegion,d=Z.useCallback((function(){t.emptyRegion(a,o)}),[a,o,t]),l=n.isRegionHighlighted(a,o),u=n.isRegionHighlightHover(a,o),p=n.isRegionDragEnter(a,o),f=n.getNodeById(a),h=c.x-f.x,m=c.y-f.y;return Z.createElement('div',{'data-renderer':c.host.info.renderer.name,'data-region':o,className:X('ae-Editor-rhlbox',p?'is-dragenter':'',!s&&u?'region-hover':'',s||l?'is-highlight':'',h<87&&m<21&&c.x<190?'region-label-within':''),style:{width:c.w,height:c.h,borderWidth:''.concat(Math.max(0,m),'px ').concat(Math.max(0,f.w-h-c.w),'px ').concat(Math.max(0,f.h-m-c.h),'px ').concat(Math.max(0,h),'px')}},Z.createElement('div',{'data-node-id':a,'data-node-region':o,className:'region-tip '.concat(s?'is-only-child-region':'',' ignore-hover-elem')},i,Z.createElement('span',{className:'margin-space'},'|'),Z.createElement('button',{type:'button',className:'clear-icon-btn',title:'','data-tooltip':B('bb28ec819520ced0ffb4c3da01f112e2'),'data-position':'bottom',onClick:d},Z.createElement(r,{icon:'clear-btn'}))))})),Mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.render=function(){return Z.createElement('div',{className:'ae-ErrorRenderer'},B('e9509c688a0df6b088503d21569b6e8f'))},t}(Z.Component);var Pn=function(e){function t(t){var n=e.call(this,t)||this;return n.ref=Z.createRef(),n.scrollElem=null,n.state={visible:void 0!==t.visible&&t.visible},n}return K(t,e),t.prototype.componentDidMount=function(){this.bindScrollEvent()},t.prototype.componentWillUnmount=function(){this.scrollElem&&this.scrollElem.removeEventListener('scroll',this.handleScroll)},t.prototype.getDefaultTarget=function(){return this.ref.current&&this.ref.current.ownerDocument?this.ref.current.ownerDocument:window},t.prototype.handleScroll=function(e){var t=this.props.visibilityHeight||400,n=function(e,t){var n;if('undefined'==typeof window)return 0;var r,a=t?'scrollTop':'scrollLeft',o=0,i=null!=(r=e)&&r===r.window;return i?o=e[t?'pageYOffset':'pageXOffset']:e instanceof Document?o=e.documentElement[a]:e&&(o=e[a]),e&&!i&&'number'!=typeof o&&(o=null===(n=(e.ownerDocument||e).documentElement)||void 0===n?void 0:n[a]),o}(e.target,!0);this.setState({visible:n>t})},t.prototype.bindScrollEvent=function(){var e=this.props.target;this.scrollElem=e()||this.getDefaultTarget(),this.scrollElem&&(this.scrollElem.addEventListener('scroll',this.handleScroll),this.handleScroll({target:this.scrollElem}))},t.prototype.scrollToTop=function(e){var t=this.props.onClick;this.scrollElem&&(this.scrollElem.scrollTo({top:0,behavior:'smooth'}),'function'==typeof t&&t(e))},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=X('editor-backTop',void 0===n?'':n,this.state.visible?'':'hidden'),a=$e(this.props,['className','children','visibilityHeight','target','visible']),o=Z.createElement('div',{className:'backTop-content'},Z.createElement('div',{className:'backTop-icon'},'UP'));return Z.createElement('div',$({},a,{className:r,onClick:this.scrollToTop,ref:this.ref}),t||o)},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getDefaultTarget',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleScroll',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'bindScrollEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'scrollToTop',null),t}(Z.Component),Fn=function(e){function t(t){var n=e.call(this,t)||this;n.initialContent='',n.dialogMountRef=Z.createRef();var r=[].slice.call(document.querySelectorAll('link[rel="stylesheet"], style')).map((function(e){return e.outerHTML}));return r.push('<style>body {height:auto !important;min-height:100%;display: flex;flex-direction: column;}</style>'),n.initialContent='<!DOCTYPE html><html><head>'.concat(r.join(''),'</head><body><div class="ae-IFramePreview AMISCSSWrapper"></div></body></html>'),n}return K(t,e),t.prototype.componentDidMount=function(){if(this.props.autoFocus){var e=this.props.manager.store;setTimeout((function(){if(ke(e)){var t=a(e.outline,(function(e){return!e.isRegion&&e.clickable}));t&&e.setActiveId(t.id)}}),350)}else this.props.manager.buildRenderersAndPanels()},t.prototype.iframeRefFunc=function(e){var t=this.props.store;this.iframeRef=e,ke(t)&&t.setIframe(e)},t.prototype.getModalContainer=function(){return this.props.store.getDoc().body},t.prototype.isMobile=function(){return!0},t.prototype.getDialogMountRef=function(){return this.dialogMountRef.current},t.prototype.iframeContentDidMount=function(){var e;null===(e=this.iframeRef.contentWindow)||void 0===e||e.document.body.classList.add('is-modalOpened')},t.prototype.render=function(){var e=this.props,t=e.editable,n=e.store,r=e.appLocale;e.autoFocus;var a=e.env,i=e.data,c=e.manager,s=z(e,['editable','store','appLocale','autoFocus','env','data','manager']);return Z.createElement(Te,{className:'ae-PreviewIFrame',initialContent:this.initialContent,ref:this.iframeRefFunc,contentDidMount:this.iframeContentDidMount},Z.createElement(Dn,{store:n,editable:t,manager:c}),Z.createElement('div',{ref:this.dialogMountRef,className:'ae-Dialog-preview-mount-node'},o(t?n.filteredSchema:n.filteredSchemaForPreview,$($({},s),{key:t?'edit-mode':'preview-mode',theme:a.theme,data:i,context:n.ctx,locale:r,editorDialogMountNode:this.getDialogMountRef}),$($({},a),{session:''.concat(a.session,'-iframe-preview'),useMobileUI:!0,isMobile:this.isMobile,getModalContainer:this.getModalContainer})),Z.createElement($n,null)))},_([i,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'iframeRefFunc',null),_([i,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getModalContainer',null),_([i,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'isMobile',null),_([i,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getDialogMountRef',null),_([i,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'iframeContentDidMount',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component);function Dn(e){var t=e.store,n=e.editable,r=e.manager,a=je().document,o=Z.useRef(n),i=Z.useCallback((function(){t.setHoverId('')}),[]),d=Z.useCallback((function(e){var n=e.target.closest('[data-editor-id]');n&&t.setHoverId(n.getAttribute('data-editor-id'))}),[]),l=Z.useCallback((function(){c()}),[]),u=Z.useCallback((function(e){var n=e.target.closest('[data-editor-id]');if(c(),!e.defaultPrevented&&(n&&t.setActiveId(n.getAttribute('data-editor-id')),o.current)){var a=r.trigger('prevent-click',{data:e});a.prevented||a.stoped||(e.preventDefault(),e.stopPropagation())}}),[]),p=Z.useCallback((function(e){o.current&&(e.preventDefault(),e.stopPropagation())}),[]),f=Z.useCallback((function(){r.store.getIframe().style.cssText+='height: '.concat(a.body.offsetHeight,'px')}),[]);return Z.useEffect((function(){t.setDoc(a);var e=null==a?void 0:a.querySelector('.frame-content');a.addEventListener('click',l),e.addEventListener('mouseleave',i),e.addEventListener('mousemove',d),e.addEventListener('click',u,!0),e.addEventListener('mouseover',p);var n=s(a.body,(function(){f()}));return f(),function(){a.removeEventListener('click',l),e.removeEventListener('mouseleave',i),e.removeEventListener('mousemove',d),e.removeEventListener('click',u),e.removeEventListener('mouseover',p),t.setDoc(document),n()}}),[a]),Z.useEffect((function(){var e;null===(e=null==a?void 0:a.querySelector('body>div:first-child'))||void 0===e||e.classList.toggle('is-edting',n),o.current=n}),[n]),null}var Bn,$n=q((function(){var e=window.spiriteIcons;return e?Z.createElement('div',{id:'amis-icon-manage-mount-node',style:{display:'none'},dangerouslySetInnerHTML:{__html:e}}):null})),Tn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.env=$($({},t.props.manager.env),{notify:function(e,n,r){t.props.editable?console.warn('[Notify]',e,n):d[e]?d[e](n,r||B('error'===e?'a71002967924a83e32b38a80705290fb':'058ebdf2884474ebff2977ba2f0e275e')):console.warn('[Notify]',e,n)},theme:t.props.theme,session:'preview-'.concat(t.props.manager.id),rendererResolver:t.rendererResolver.bind(t)}),t.doingSelection=!1,t.unReaction=Yt((function(){return[t.getHighlightNodes(),t.props.store.activeId]}),(function(e,n){var r=H(e,1)[0],a=t.props.store;setTimeout((function(){t.calculateHighlightBox(r)}),50);var o=null==n?void 0:n[0];Array.isArray(o)&&(o=o.filter((function(e){return!~r.indexOf(e)})),a.resetHighlightBox(o))})),t}return K(t,e),t.prototype.componentDidMount=function(){this.currentDom=Re(this),this.currentDom.addEventListener('mouseleave',this.handleMouseLeave),this.currentDom.addEventListener('mousemove',this.handleMouseMove),this.currentDom.addEventListener('click',this.handleClick,!0),this.currentDom.addEventListener('mouseover',this.handeMouseOver),this.currentDom.addEventListener('mousedown',this.handeMouseDown),this.props.manager.on('after-update',this.handlePanelChange)},t.prototype.componentWillUnmount=function(){var e,t,n=this;this.currentDom&&(this.currentDom.removeEventListener('mouseleave',this.handleMouseLeave),this.currentDom.removeEventListener('mousemove',this.handleMouseMove),this.currentDom.removeEventListener('click',this.handleClick,!0),this.currentDom.removeEventListener('mouseover',this.handeMouseOver),this.currentDom.removeEventListener('mousedown',this.handeMouseDown),this.props.manager.off('after-update',this.handlePanelChange),null===(e=this.dialogReaction)||void 0===e||e.call(this)),null===(t=this.scrollLayer)||void 0===t||t.removeEventListener('scroll',this.handlePanelChange),setTimeout((function(){return ee([n.env.session])}),500)},t.prototype.contentsRef=function(e){var t;e?(this.scrollLayer=e,this.scrollLayer.addEventListener('scroll',this.handlePanelChange),this.layer=e.querySelector('.ae-Preview-widgets'),this.props.store.setLayer(this.layer),this.unSensor=s(e,this.handlePanelChange)):(delete this.scrollLayer,delete this.layer,null===(t=this.unSensor)||void 0===t||t.call(this),delete this.unSensor)},t.prototype.handlePanelChange=function(){var e=this;setTimeout((function(){return e.calculateHighlightBox(e.getHighlightNodes())}),50)},t.prototype.getHighlightNodes=function(){return this.props.store.highlightNodes.map((function(e){return e.id}))},t.prototype.calculateHighlightBox=function(e){var t=this.props.store;this.layer&&t.calculateHighlightBox(e)},t.prototype.handeMouseDown=function(e){var t,n=this,r=1===e.button&&null!==window.event||0===e.button;if(this.props.editable&&r&&!e.defaultPrevented&&!e.defaultPrevented&&!(null===(t=e.target)||void 0===t?void 0:t.closest('[draggable]'))){var a=this.layer;if(a){var o=null,i=a.getBoundingClientRect(),c=e.pageX,s=e.pageY,d=c-i.left,l=s-i.top,u=function(e){o||((o=document.createElement('div')).classList.add('ae-Editor-selectionCursor'),a.appendChild(o)),n.doingSelection=!0;var t=e.pageX-c,r=e.pageY-s;o.style.cssText='left: '.concat(d+Math.min(t,0),'px; top: ').concat(l+Math.min(r,0),'px; width: ').concat(Math.abs(t),'px; height: ').concat(Math.abs(r),'px;')},p=function(e){n.doingSelection=!1,window.removeEventListener('mousemove',u),window.removeEventListener('mouseup',p),o&&a.removeChild(o);var t=e.pageX-c,r=e.pageY-s,i={x:d+Math.min(t,0),y:l+Math.min(r,0),w:Math.abs(t),h:Math.abs(r)};if(!(i.w<10&&i.h<10)){var f=function(e){window.removeEventListener('click',f,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener('click',f,!0),setTimeout((function(){return window.removeEventListener('click',f,!0)}),350),n.doSelection(i)}};window.addEventListener('mousemove',u),window.addEventListener('mouseup',p)}}},t.prototype.doSelection=function(e){var t=this.layer,n=Re(this);if(t&&n){var r=[],a=t.getBoundingClientRect(),o=e.x+a.left,i=e.y+a.top,c=(e.w,e.h,e.x+a.left+e.w),s=e.y+a.top+e.h,d=n.querySelectorAll('[data-editor-id]');[].slice.apply(d).forEach((function(e){if(!r.some((function(t){return t.contains(e)}))){var t=e.getBoundingClientRect();o<=t.left&&i<=t.top&&c>=t.right&&s>=t.bottom&&(~r.indexOf(e)||r.push(e))}}));var l=r.map((function(e){return e.getAttribute('data-editor-id')})).filter((function(e,t,n){return n.indexOf(e)===t}));l.length&&this.props.manager.setSelection(l)}},t.prototype.handleClick=function(e){var t,n=this.props.store,r=e.target.closest('[data-editor-id]');if(!e.target.closest('.ae-editor-action-btn'))if(e.defaultPrevented)e.stopPropagation();else{if(r){var a=r.getAttribute('data-editor-id'),o='',i=e.target.closest('[data-region-host]');if(i){var c=i.getAttribute('data-region-host');c&&c===a&&i.getAttribute('data-region')&&(o=i.getAttribute('data-region'))}e.metaKey?this.props.manager.toggleSelection(a):n.setActiveId(a,o)}if(!(null===(t=this.layer)||void 0===t?void 0:t.contains(e.target))&&this.props.editable){var s=this.props.manager.trigger('prevent-click',{data:e});s.prevented||s.stoped||(e.preventDefault(),e.stopPropagation())}}},t.prototype.handleNavSwitch=function(e){this.props.store.setActiveId(e)},t.prototype.handleMouseMove=function(e){var t;if(!this.doingSelection&&!this.props.manager.disableHover){var n=this.props.store,r=e.target;if(!(null===(t=this.layer)||void 0===t?void 0:t.contains(r))&&!e.target.closest('.ignore-hover-elem')){var a=r.closest('[data-editor-id]');if(a){var o=a.getAttribute('data-editor-id'),i='',c=e.target.closest('[data-region-host]');if(c){var s=c.getAttribute('data-region-host');s&&s===o&&c.getAttribute('data-region')&&(i=c.getAttribute('data-region'))}n.setMouseMoveRegion(i),n.setHoverId(o)}}}},t.prototype.handleMouseLeave=function(){var e=this.props.store;e.setMouseMoveRegion(''),e.setHoverId('')},t.prototype.handeMouseOver=function(e){this.props.editable&&(e.preventDefault(),e.stopPropagation())},t.prototype.handleDragEnter=function(e){this.props.editable&&this.props.manager.dnd.dragEnter(e.nativeEvent)},t.prototype.handleDragLeave=function(e){this.props.editable&&this.props.manager.dnd.dragLeave(e.nativeEvent)},t.prototype.handleDragOver=function(e){this.props.editable&&this.props.manager.dnd.dragOver(e.nativeEvent)},t.prototype.handleDrop=function(e){this.props.editable&&this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.getCurrentTarget=function(){return this.props.isMobile?this.currentDom.querySelector('.ae-Preview-inner'):this.currentDom.querySelector('.ae-Preview-body')},t.prototype.rendererResolver=function(e,t,n){var r=this.props,a=r.editable,o=r.manager,i=l(e,t);if(!1===a)return i;i=i||{name:'error',test:function(){return!0},component:Mn};var c=o.getEditorInfo(i,e,t);return c&&(i=$($({},i),{component:o.makeWrapper(c,i)})),i},t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.editable,o=t.store,i=t.manager,c=t.amisEnv;t.theme;var s=t.isMobile,d=t.autoFocus,l=t.toolbarContainer,u=t.appLocale,p=z(t,['className','editable','store','manager','amisEnv','theme','isMobile','autoFocus','toolbarContainer','appLocale']),f=$($({},this.env),c);return Z.createElement('div',{id:'editor-preview-body',onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:X('ae-Preview','AMISCSSWrapper',n,s?'is-mobile-body hoverShowScrollBar':'is-pc-body')},Z.createElement('div',{className:X('ae-Preview-body',n,a?'is-edting':'',s?'is-mobile':'is-pc hoverShowScrollBar'),ref:this.contentsRef},s&&Z.createElement(Z.Fragment,null,Z.createElement('div',{className:'mobile-sound'}),Z.createElement('div',{className:'mobile-receiver'}),Z.createElement('div',{className:'mobile-left-btn'}),Z.createElement('div',{className:'mobile-right-btn'}),Z.createElement('div',{className:'mobile-open-btn'})),Z.createElement('div',{className:'ae-Preview-inner'},s?Z.createElement(Fn,$({},p,{key:'mobile',editable:a,store:o,env:f,manager:i,autoFocus:d,appLocale:u})):Z.createElement(jn,$({},p,{editable:a,autoFocus:d,store:o,env:f,manager:i,key:'pc',appLocale:u})),Z.createElement('div',{className:'ae-Preview-widgets',id:'aePreviewHighlightBox'},o.highlightNodes.map((function(t){return Z.createElement(kn,{node:t,key:t.id,store:o,id:t.id,title:t.label,toolbarContainer:l,onSwitch:e.handleNavSwitch,manager:i},t.childRegions.map((function(e){return!t.memberImmutable(e.region)&&o.isRegionActive(e.id,e.region)?Z.createElement(An,{manager:i,key:e.region,store:o,node:e,id:e.id,name:e.region,title:e.label,preferTag:e.preferTag,isOnlyChildRegion:1===t.childRegions.length}):null})))})))),this.currentDom&&Z.createElement(Pn,{key:s?'mobile-back-up':'pc-back-up',className:'ae-editor-action-btn',target:this.getCurrentTarget.bind(this),onClick:function(e){console.log(e)}},Z.createElement(r,{icon:'back-up',className:'back-top-icon'}))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'contentsRef',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handlePanelChange',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Array]),V('design:returntype',void 0)],t.prototype,'calculateHighlightBox',null),_([Ut,V('design:type',Function),V('design:paramtypes',[MouseEvent]),V('design:returntype',void 0)],t.prototype,'handeMouseDown',null),_([Ut,V('design:type',Function),V('design:paramtypes',[MouseEvent]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleNavSwitch',null),_([Ut,V('design:type',Function),V('design:paramtypes',[MouseEvent]),V('design:returntype',void 0)],t.prototype,'handleMouseMove',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleMouseLeave',null),_([Ut,V('design:type',Function),V('design:paramtypes',[MouseEvent]),V('design:returntype',void 0)],t.prototype,'handeMouseOver',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragEnter',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragLeave',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragOver',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDrop',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getCurrentTarget',null),t=_([xe],t)}(Y),jn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dialogMountRef=Z.createRef(),t}return K(t,e),t.prototype.componentDidMount=function(){var e=this.props.store;this.props.autoFocus?setTimeout((function(){if(ke(e)){var t=te(e.outline,(function(e){return!e.isRegion&&e.clickable}));t&&ke(e)&&e.setActiveId(t.id)}}),350):this.props.manager.buildRenderersAndPanels()},t.prototype.componentDidUpdate=function(e){var t=this.props;t.editable!==e.editable&&t.editable&&this.props.manager.trigger('preview2editor',{data:this.props.manager})},t.prototype.getDialogMountRef=function(){return this.dialogMountRef.current},t.prototype.render=function(){var e=this.props,t=e.editable,n=e.store,r=e.appLocale;e.autoFocus;var a=e.env,i=e.data;e.manager;var c=z(e,['editable','store','appLocale','autoFocus','env','data','manager']);return Z.createElement('div',{ref:this.dialogMountRef,className:'ae-Dialog-preview-mount-node'},o(t?n.filteredSchema:n.filteredSchemaForPreview,$($({},c),{key:t?'edit-mode':'preview-mode',theme:a.theme,data:i,context:n.ctx,locale:r,editorDialogMountNode:this.getDialogMountRef}),a))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getDialogMountRef',null),t=_([xe],t)}(Z.Component),Ln=function(e){function t(t){var n=e.call(this,t)||this;return n.env=$({session:'preview'},n.props.env),n.state={scale:!0},n.rootRef=n.rootRef.bind(n),n.syncHeight=n.syncHeight.bind(n),n.handleClick=n.handleClick.bind(n),n}return K(t,e),t.prototype.componentWillUnmount=function(){this.unSensor&&this.unSensor()},t.prototype.rootRef=function(e){var t;this.ref=e,e&&(this.syncHeight(),this.unSensor=s(null===(t=e.firstChild)||void 0===t?void 0:t.firstChild,this.syncHeight))},t.prototype.syncHeight=function(){if(this.ref){var e=this.state.scale,t=this.ref.firstChild;this.ref.style.cssText='height: '.concat(t.scrollHeight/(e?2:1),'px;')}},t.prototype.handleClick=function(e){e.preventDefault(),this.setState({scale:!this.state.scale})},t.prototype.render=function(){var e=this,t=this.props,n=t.schema,a=t.theme;return Z.createElement(ne,{unMountOnHidden:!1,schema:n,component:function(t){var n=t.schema;return Z.createElement('div',{className:'ae-RenderersPicker-thumb '.concat(e.state.scale?'is-scaled':'')},Z.createElement('div',{className:'ae-Editor-rendererThumbWrap'},Z.createElement('div',{className:'ae-Editor-rendererThumbIcon',onClick:e.handleClick},Z.createElement(r,{icon:e.state.scale?'zoom-in':'zoom-out'})),Z.createElement('div',{ref:e.rootRef,className:'ae-Editor-rendererThumb'},Z.createElement('div',{className:'ae-Editor-rendererThumbInner'},o($($({},n),{mode:'horizontal'===n.mode?'normal':n.mode}),{theme:a},e.env)))))}})},t}(Z.Component),Hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.handleLeftClick=function(e){var t=e.currentTarget.getAttribute('data-value');this.props.store.setInsertTag(t)},t.prototype.handleClick=function(e){var t=e.currentTarget.getAttribute('data-value');this.props.store.setInsertSelected(t)},t.prototype.hadnlDBClick=function(e){var t=e.currentTarget.getAttribute('data-value'),n=this.props.store;n.setInsertSelected(t);var r=this.props.manager;'replace'===n.insertMode?r.replace():r.insert()},t.prototype.handleInsert=function(){this.props.manager.insert()},t.prototype.handleReplace=function(){this.props.manager.replace()},t.prototype.handleCancel=function(){this.props.store.closeInsertPanel()},t.prototype.render=function(){var e,t,n=this,a=this.props.store,o=this.props.manager,i=null===(e=a.getNodeById(a.insertId))||void 0===e?void 0:e.info,c=null===(t=Le(i.regions,(function(e){return e.key===a.insertRegion})))||void 0===t?void 0:t.label,s=a.groupedInsertRenderers,d=Object.keys(s),l=a.insertTag||B('a8b0c20416853bda54120bf19477ad11'),h=s[l]||s[B('a8b0c20416853bda54120bf19477ad11')];return Z.createElement('div',{className:'ae-InsertPanel'},'replace'===a.insertMode?Z.createElement('div',{className:'ae-InsertPanel-title'},B('b80ed82d124c6fd9242dcacdda2a2f8b')):Z.createElement('div',{className:'ae-InsertPanel-title'},Z.createElement('span',null,B('41150516bf0d90646edc5239593366e9')),' ',Z.createElement('code',null,i.name,' > ',c)),Z.createElement('div',{className:'m-b-xs'},Z.createElement(u,{className:'editor-InputSearch',value:a.insertRenderersKeywords,onChange:a.changeInsertRenderersKeywords,placeholder:B('d87481b371771b4f150da76e311bbbef'),clearable:!1},a.insertRenderersKeywords?Z.createElement('a',{onClick:a.resetInsertRenderersKeywords},Z.createElement(r,{icon:'close',className:'icon'})):Z.createElement(r,{icon:'search',className:'icon'}))),Z.createElement('div',{className:'ae-RenderersPicker-list'},Z.createElement('ul',null,d.map((function(e){return Z.createElement('li',{key:e,className:l===e?'is-active':''},Z.createElement('a',{'data-value':e,onClick:n.handleLeftClick},e))}))),Z.createElement('div',{className:'ae-RenderersPicker-content'},Array.isArray(h)&&h.length?Z.createElement('ul',null,h.map((function(e){return Z.createElement('li',{key:e.id,className:a.insertSelected===e.id?'is-active':'','data-value':e.id,onClick:n.handleClick,onDoubleClick:n.hadnlDBClick},Z.createElement(Ln,{theme:o.env.theme,env:o.env,schema:e.previewSchema||{type:'tpl',tpl:B('becdc848350872592201e31bab03892a')}}),Z.createElement('div',{className:'ae-RenderersPicker-info'},Z.createElement('h4',null,e.name),Z.createElement('div',null,Z.createElement(p,{html:e.description}),e.docLink?Z.createElement('a',{target:'_blank',href:a.amisDocHost+e.docLink},Z.createElement('span',null,B('f26225bde6a250894a04db4c53ea03d0'))):null)))}))):Z.createElement('div',null,B('751dfe6f476903c21381c9acf88332e2')))),Z.createElement('div',{className:'ae-InsertPanel-footer'},'replace'===a.insertMode?Z.createElement(f,{className:'action-btn action-btn-primary',onClick:this.handleReplace,disabled:!a.insertSelected,level:'primary'},B('e22c9a05b424b761efce11f17726fdd7')):Z.createElement(f,{className:'action-btn action-btn-primary',onClick:this.handleInsert,disabled:!a.insertSelected,level:'primary'},B('9bdb07e72d3a9a6084201a7398523f5a')),Z.createElement(f,{className:'action-btn',onClick:this.handleCancel},B('625fb26b4b3340f7872b411f401e754c'))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleLeftClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'hadnlDBClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleInsert',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleReplace',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleCancel',null),t=_([xe],t)}(Z.Component);function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zn.apply(this,arguments)}var Kn;function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_n.apply(this,arguments)}var Vn;function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Un.apply(this,arguments)}var Wn;function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}var qn;function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yn.apply(this,arguments)}var Xn;function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jn.apply(this,arguments)}var Gn,Qn,er;function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tr.apply(this,arguments)}var nr,rr,ar;function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},or.apply(this,arguments)}var ir,cr,sr,dr,lr,ur,pr,fr;function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}var mr;function vr(){return vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vr.apply(this,arguments)}var gr;function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},br.apply(this,arguments)}var yr;function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Er.apply(this,arguments)}var wr;function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cr.apply(this,arguments)}var Sr;function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ir.apply(this,arguments)}var xr;function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(this,arguments)}var Nr;function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(this,arguments)}var kr;function Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ar.apply(this,arguments)}var Mr,Pr;function Fr(){return Fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fr.apply(this,arguments)}var Dr,Br,$r;function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tr.apply(this,arguments)}var jr;function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}var Hr;function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(this,arguments)}var Kr;function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_r.apply(this,arguments)}var Vr;function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ur.apply(this,arguments)}var Wr;function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zr.apply(this,arguments)}var qr,Yr;function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xr.apply(this,arguments)}var Jr;function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gr.apply(this,arguments)}var Qr;function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(this,arguments)}var ta;function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na.apply(this,arguments)}var ra;function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aa.apply(this,arguments)}var oa;function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ia.apply(this,arguments)}var ca;function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(this,arguments)}var da;function la(){return la=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},la.apply(this,arguments)}var ua;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(this,arguments)}var fa,ha;function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ma.apply(this,arguments)}var va;function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ga.apply(this,arguments)}var ba,ya=function(e){return W.createElement('svg',ga({viewBox:'0 0 16 16',fill:'currentColor',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),va||(va=W.createElement('path',{d:'m12.233 5-4.24 4.24L3.753 5l-.713.713 4.95 4.95.003-.003.003.003 4.95-4.95z'})))};function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ea.apply(this,arguments)}var wa;function Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ca.apply(this,arguments)}var Sa;function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ia.apply(this,arguments)}var xa;function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ra.apply(this,arguments)}var Na;function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oa.apply(this,arguments)}var ka;function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aa.apply(this,arguments)}var Ma;function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pa.apply(this,arguments)}var Fa;function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Da.apply(this,arguments)}var Ba;function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$a.apply(this,arguments)}var Ta;function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ja.apply(this,arguments)}var La;function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha.apply(this,arguments)}h('arrow-to-right',(function(e){return W.createElement('svg',zn({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Bn||(Bn=W.createElement('path',{d:'M755.627 481.707 584.96 311.04a42.667 42.667 0 1 0-60.587 60.587l98.134 97.706H128a42.667 42.667 0 0 0 0 85.334h494.507l-98.134 97.706a42.667 42.667 0 0 0 0 60.587 42.667 42.667 0 0 0 60.587 0l170.667-170.667a42.667 42.667 0 0 0 8.96-14.08 42.667 42.667 0 0 0 0-32.426 42.667 42.667 0 0 0-8.96-14.08zM896 170.667a42.667 42.667 0 0 0-42.667 42.666v597.334a42.667 42.667 0 0 0 85.334 0V213.333A42.667 42.667 0 0 0 896 170.667z'})))})),h('left-arrow-to-left',(function(e){return W.createElement('svg',_n({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Kn||(Kn=W.createElement('path',{d:'M896 469.333H401.493l98.134-97.706a42.667 42.667 0 1 0-60.587-60.587L268.373 481.707a42.667 42.667 0 0 0-8.96 14.08 42.667 42.667 0 0 0 0 32.426 42.667 42.667 0 0 0 8.96 14.08L439.04 712.96a42.667 42.667 0 0 0 60.587 0 42.667 42.667 0 0 0 0-60.587l-98.134-97.706H896a42.667 42.667 0 0 0 0-85.334zM128 128a42.667 42.667 0 0 0-42.667 42.667v682.666a42.667 42.667 0 0 0 85.334 0V170.667A42.667 42.667 0 0 0 128 128z'})))})),h('top-arrow-to-top',(function(e){return W.createElement('svg',Un({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Vn||(Vn=W.createElement('path',{d:'M542.293 268.373a42.667 42.667 0 0 0-14.08-8.96 42.667 42.667 0 0 0-32.426 0 42.667 42.667 0 0 0-14.08 8.96L311.04 439.04a42.667 42.667 0 1 0 60.587 60.587l97.706-98.134V896a42.667 42.667 0 0 0 85.334 0V401.493l97.706 98.134a42.667 42.667 0 0 0 60.587 0 42.667 42.667 0 0 0 0-60.587zm268.374-183.04H213.333a42.667 42.667 0 0 0 0 85.334h597.334a42.667 42.667 0 0 0 0-85.334z'})))})),h('arrow-to-bottom',(function(e){return W.createElement('svg',Zn({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Wn||(Wn=W.createElement('path',{d:'M810.667 853.333H213.333a42.667 42.667 0 0 0 0 85.334h597.334a42.667 42.667 0 0 0 0-85.334zm-328.96-97.706a42.667 42.667 0 0 0 14.08 8.96 40.107 40.107 0 0 0 32.426 0 42.667 42.667 0 0 0 14.08-8.96L712.96 584.96a42.667 42.667 0 0 0-60.587-60.587l-97.706 98.134V128a42.667 42.667 0 0 0-85.334 0v494.507l-97.706-98.134a42.667 42.667 0 1 0-60.587 60.587z'})))})),h('collapse-open',(function(e){return W.createElement('svg',Yn({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),qn||(qn=W.createElement('path',{fill:'#83868C',fillRule:'nonzero',d:'M8 11 4 6h8z'})))})),h('harmmer',(function(e){return W.createElement('svg',vr({className:'icon',viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg'},e),mr||(mr=W.createElement('path',{d:'m947.9 761.4-264-263.9c-16.3-16.3-43.1-16.3-59.4 0l-19.8 19.8-161-161L708.1 91.9H428L303.6 216.2l-12.3-12.3h-59.4v59.4l12.3 12.3L63.9 456l140 140 180.3-180.3 161.1 161.1-19.8 19.8c-16.3 16.3-16.3 43.1 0 59.4l263.9 263.9c16.3 16.3 43.1 16.3 59.4 0l99-99c16.4-16.4 16.4-43.1.1-59.5z'})))})),h('dialog',(function(e){return W.createElement('svg',br({className:'icon',viewBox:'0 0 1155 1024',xmlns:'http://www.w3.org/2000/svg'},e),gr||(gr=W.createElement('path',{d:'M1076.512 315.077H840.204V78.769A78.77 78.77 0 0 0 761.435 0H78.77A78.77 78.77 0 0 0 0 78.77V498.87a78.77 78.77 0 0 0 78.77 78.77h14.939l-9.295 23.368a78.77 78.77 0 0 0 73.124 107.913 76.879 76.879 0 0 0 38.23-9.977l119.309-66.166v181.169a78.77 78.77 0 0 0 78.769 78.769h347.188l218.453 121.305a76.879 76.879 0 0 0 38.256 9.977 78.77 78.77 0 0 0 73.15-107.914l-9.295-23.368h14.914a78.77 78.77 0 0 0 78.769-78.77V393.847a78.77 78.77 0 0 0-78.77-78.77zm-761.435 78.769v148.873l-157.539 87.434 52.513-131.282H78.77V78.77h682.666v236.308h-367.59a78.77 78.77 0 0 0-78.768 78.769zm761.435 420.102H945.23l52.513 131.282-236.308-131.282h-367.59V393.846h682.667v420.102zm-577.64-262.564h472.614a39.385 39.385 0 0 0 0-78.77H498.871a39.385 39.385 0 0 0 0 78.77zm0 157.538h472.614a39.385 39.385 0 0 0 0-78.769H498.871a39.385 39.385 0 0 0 0 78.77z'})))})),h('setting',(function(e){return W.createElement('svg',Er({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),yr||(yr=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h16v16H0z'}),W.createElement('path',{d:'M11.5 2 15 8.063l-3.5 6.062h-7L1 8.063 4.5 2h7Zm-.578 1H5.077L2.155 8.064l2.922 5.06h5.845l2.924-5.06L10.922 3ZM8 6.064a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0 1a1.001 1.001 0 0 0 0 2 1.001 1.001 0 0 0 0-2Z',fill:'#84868C',fillRule:'nonzero'}))))})),h('picker-icon',(function(e){return W.createElement('svg',Cr({xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),wr||(wr=W.createElement('g',{fill:'none',fillRule:'evenodd',stroke:'currentColor',strokeLinecap:'round',strokeLinejoin:'round'},W.createElement('path',{d:'M14.5 14.5h-13v-13h13v1.998'}),W.createElement('path',{d:'m12.775 4.943 1.768 1.768-1.766 1.765M13.85 6.71H8m1.694 2.525-1.768 1.768 1.766 1.766m-1.074-1.767 5.882-.001'}))))})),h('edit-full-btn',(function(e){return W.createElement('svg',Gr({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Jr||(Jr=W.createElement('g',{fill:'none',fillRule:'evenodd',stroke:'currentColor',strokeLinejoin:'round'},W.createElement('path',{d:'m11.536 3.05 1.414 1.414-7.778 7.779-1.395.019-.02-1.434zM9.414 4.464l2.122 2.122M1.5 14h13'}))))})),h('event-setting',(function(e){return W.createElement('svg',pa({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ua||(ua=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h16v16H0z'}),W.createElement('path',{d:'M7.356 14H2.333c-.552 0-1-.504-1-1.125v-9.75c0-.621.448-1.125 1-1.125h11.334c.552 0 1 .504 1 1.125v4.522',stroke:'#151B26',strokeLinecap:'round',strokeLinejoin:'round'}),W.createElement('path',{d:'M1.333 3a1 1 0 0 1 1-1h11.334a1 1 0 0 1 1 1v3H1.333V3Z',stroke:'#151B26'}),W.createElement('path',{d:'M3.333 3.333a.667.667 0 1 1 0 1.334.667.667 0 0 1 0-1.334Zm2 0a.667.667 0 1 1 0 1.334.667.667 0 0 1 0-1.334Z',fill:'#151B26',fillRule:'nonzero'}),W.createElement('g',{stroke:'#151B26',strokeLinejoin:'round'},W.createElement('path',{d:'m13.192 14.017 1.5-2.5-1.5-2.5h-3l-1.5 2.5 1.5 2.5z'}),W.createElement('path',{d:'M11.692 12.42a.912.912 0 0 0 .92-.903.912.912 0 0 0-.92-.903.912.912 0 0 0-.921.903c0 .498.412.903.92.903Z'})))))})),h('add-btn',(function(e){return W.createElement('svg',ea({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Qr||(Qr=W.createElement('path',{d:'M8.5 2v5.5H14v1H8.5V14h-1V8.5H2v-1h5.5V2h1Z',fill:'currentColor',fillRule:'evenodd'})))})),h('close-btn',(function(e){return W.createElement('svg',na({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ta||(ta=W.createElement('path',{stroke:'currentColor',strokeLinejoin:'round',d:'M13.664 10.507 8.007 4.85 2.35 10.507',fill:'none',fillRule:'evenodd'})))})),h('open-btn-r',(function(e){return W.createElement('svg',aa({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ra||(ra=W.createElement('path',{stroke:'currentColor',strokeLinejoin:'round',d:'m2.35 5.497 5.657 5.657 5.657-5.657',fill:'none',fillRule:'evenodd'})))})),h('delete-easy-btn',(function(e){return W.createElement('svg',ia({viewBox:'0 0 17 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),oa||(oa=W.createElement('path',{d:'M14.333 3.499V4.5H12.83l.001 10h-9v-10H2.332V3.499h12ZM11.831 4.5h-7v9h7v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1Zm.001-5.999v.999h-4V1.5h4Z',fill:'currentColor',fillRule:'evenodd'})))})),h('delete-bold-btn',(function(e){return W.createElement('svg',sa({viewBox:'0 0 13 14',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ca||(ca=W.createElement('path',{d:'M12.833 2.499V3.5H11.33l.001 10h-9v-10H.832V2.499h12ZM10.331 3.5h-7v9h7v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1ZM8.832.5v.999h-4V.5h4Z',fill:'currentColor',fillRule:'evenodd'})))})),h('drag-six-circle-btn',(function(e){return W.createElement('svg',la({viewBox:'0 0 7 12',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),da||(da=W.createElement('path',{d:'M5.167 10a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm-4 10a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z',fill:'#84868C',fillRule:'evenodd'})))})),h('drag-btn',(function(e){return W.createElement('svg',Ar({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),kr||(kr=W.createElement('g',{fill:'#FFF',fillRule:'nonzero'},W.createElement('path',{d:'m10.263 4.52-.283.283a.2.2 0 0 1-.283 0L8 3.105 6.303 4.803a.2.2 0 0 1-.283 0l-.283-.283a.2.2 0 0 1 0-.283l1.98-1.98a.4.4 0 0 1 .503-.051l.063.051 1.98 1.98a.2.2 0 0 1 0 .283ZM5.737 11.473l.283-.283a.2.2 0 0 1 .283 0L8 12.888l1.697-1.698a.2.2 0 0 1 .283 0l.283.283a.2.2 0 0 1 0 .283l-1.98 1.98a.4.4 0 0 1-.503.05l-.063-.05-1.98-1.98a.2.2 0 0 1 0-.283ZM11.48 10.263l-.283-.283a.2.2 0 0 1 0-.283L12.895 8l-1.698-1.697a.2.2 0 0 1 0-.283l.283-.283a.2.2 0 0 1 .283 0l1.98 1.98a.4.4 0 0 1 .051.503l-.051.063-1.98 1.98a.2.2 0 0 1-.283 0ZM4.546 5.737l.282.283a.2.2 0 0 1 0 .283L3.131 8l1.697 1.697a.2.2 0 0 1 0 .283l-.282.283a.2.2 0 0 1-.283 0l-1.98-1.98a.4.4 0 0 1-.051-.503l.05-.063 1.98-1.98a.2.2 0 0 1 .284 0Z'}),W.createElement('path',{d:'M8.4 3v4.7h4.7v.8H8.4V13h-.8V8.5H3.1v-.8l4.5-.001V3h.8Z'}))))})),h('more-btn',(function(e){return W.createElement('svg',Rr({viewBox:'0 0 14 14',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),xr||(xr=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h14v14H0z'}),W.createElement('circle',{fill:'#FFF',cx:2.8,cy:7,r:1}),W.createElement('circle',{fill:'#FFF',cx:11.2,cy:7,r:1}),W.createElement('circle',{fill:'#FFF',cx:7,cy:7,r:1}))))})),h('copy-btn',(function(e){return W.createElement('svg',Ir({viewBox:'0 0 15 15',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Sr||(Sr=W.createElement('path',{d:'M11 1.6a2.4 2.4 0 0 1 2.394 2.236L13.4 4v5a2.4 2.4 0 0 1-2.236 2.394L11 11.4l-.633.001A2.4 2.4 0 0 1 8 13.4H4A2.4 2.4 0 0 1 1.6 11V6A2.4 2.4 0 0 1 4 3.6h.632a2.392 2.392 0 0 1 2.195-1.994L6.99 1.6H11ZM8 4.4H4A1.6 1.6 0 0 0 2.4 6v5A1.6 1.6 0 0 0 4 12.6h4A1.6 1.6 0 0 0 9.6 11V6A1.6 1.6 0 0 0 8 4.4Zm-2.2 5.7c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.717a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2H5.8ZM11 2.4H6.99c-.743 0-1.368.51-1.542 1.2H8A2.4 2.4 0 0 1 10.4 6l-.001 4.6H11a1.6 1.6 0 0 0 1.593-1.454L12.6 9V4a1.6 1.6 0 0 0-1.454-1.593L11 2.4ZM8.3 8.1c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.717a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2H8.3Zm0-2c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.717a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2H8.3Z',fill:'#FFF',fillRule:'nonzero'})))})),h('delete-btn',(function(e){return W.createElement('svg',Or({viewBox:'0 0 14 14',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Nr||(Nr=W.createElement('path',{d:'M9.25 1.1a.4.4 0 0 1 .392.32l.008.08v1.153h3.15c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2h-1.65v7.044a2.4 2.4 0 0 1-2.236 2.395l-.164.005h-3.5a2.4 2.4 0 0 1-2.394-2.235l-.006-.165-.001-7.044H1.2a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2h3.149L4.35 1.5a.4.4 0 0 1 .32-.392l.08-.008h4.5Zm1.1 2.353H3.649l.001 7.044a1.6 1.6 0 0 0 1.454 1.594l.146.006h3.5a1.6 1.6 0 0 0 1.593-1.454l.007-.146V3.453ZM4.816 4.997l.4.006a.2.2 0 0 1 .198.202l-.065 5.1a.2.2 0 0 1-.202.198l-.4-.006a.2.2 0 0 1-.198-.202l.065-5.1a.2.2 0 0 1 .202-.198Zm2 0 .4.006a.2.2 0 0 1 .198.202l-.065 5.1a.2.2 0 0 1-.202.198l-.4-.006a.2.2 0 0 1-.198-.202l.065-5.1a.2.2 0 0 1 .202-.198Zm2 0 .4.006a.2.2 0 0 1 .198.202l-.065 5.1a.2.2 0 0 1-.202.198l-.4-.006a.2.2 0 0 1-.198-.202l.065-5.1a.2.2 0 0 1 .202-.198ZM8.85 1.9h-3.7v.753h3.7V1.9Z'})))})),h('up-btn',(function(e){return W.createElement('svg',Fr({viewBox:'0 0 28 29',xmlns:'http://www.w3.org/2000/svg',xmlnsXlink:'http://www.w3.org/1999/xlink',className:'icon'},e),Mr||(Mr=W.createElement('defs',null,W.createElement('radialGradient',{cx:'69.986%',cy:'19.319%',fx:'69.986%',fy:'19.319%',r:'49.554%',gradientTransform:'scale(-1 -.71033) rotate(-39.868 -.641 1.89)',id:'up-btn_svg__e'},W.createElement('stop',{stopColor:'#FFF',offset:'0%'}),W.createElement('stop',{stopColor:'#FFF',stopOpacity:0,offset:'100%'})),W.createElement('radialGradient',{cx:'77.918%',cy:'13.589%',fx:'77.918%',fy:'13.589%',r:'45.882%',id:'up-btn_svg__j'},W.createElement('stop',{stopColor:'#FFF',offset:'0%'}),W.createElement('stop',{stopColor:'#FFF',stopOpacity:0,offset:'100%'})),W.createElement('linearGradient',{x1:'50%',y1:'0%',x2:'50%',y2:'100%',id:'up-btn_svg__a'},W.createElement('stop',{stopColor:'#0752E9',offset:'0%'}),W.createElement('stop',{stopColor:'#2468F2',offset:'100%'})),W.createElement('linearGradient',{x1:'50%',y1:'0%',x2:'50%',y2:'100%',id:'up-btn_svg__g'},W.createElement('stop',{stopColor:'#0752E9',offset:'0%'}),W.createElement('stop',{stopColor:'#2468F2',offset:'100%'})),W.createElement('filter',{x:'-75%',y:'-75%',width:'250%',height:'250%',filterUnits:'objectBoundingBox',id:'up-btn_svg__c'},W.createElement('feGaussianBlur',{stdDeviation:7,in:'SourceGraphic'})),W.createElement('filter',{x:'-100%',y:'-100%',width:'300%',height:'300%',filterUnits:'objectBoundingBox',id:'up-btn_svg__h'},W.createElement('feGaussianBlur',{stdDeviation:2,in:'SourceGraphic'})),W.createElement('circle',{id:'up-btn_svg__f',cx:3,cy:2.5,r:2.5}),W.createElement('path',{d:'m8 0 .335.276a13.981 13.981 0 0 1 5.075 11.687c1.592 1.198 2.59 3.019 2.59 5.35 0 1.991-.727 3.812-1.93 5.212l-.72-2.16a3 3 0 0 0-2.846-2.051H5.496a3 3 0 0 0-2.846 2.051l-.72 2.16A7.969 7.969 0 0 1 0 17.314c0-2.332.998-4.153 2.59-5.352A13.977 13.977 0 0 1 7.665.276L8 0Z',id:'up-btn_svg__b'}))),Pr||(Pr=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M14 5c7.732 0 14 6.268 14 14 0 3.728-1.457 7.116-3.834 9.625A6.967 6.967 0 0 1 20 30a6.976 6.976 0 0 1-2.799-.582 10.339 10.339 0 0 1-2.974 3.889l-.113.09-.114.088a10.34 10.34 0 0 1-3.201-4.068A6.963 6.963 0 0 1 8 30c-1.56 0-3.002-.51-4.166-1.374A13.954 13.954 0 0 1 0 19C0 11.268 6.268 5 14 5Z',fill:'url(#up-btn_svg__a)',transform:'translate(0 -5)'}),W.createElement('g',{transform:'translate(6 1.5)'},W.createElement('mask',{id:'up-btn_svg__d',fill:'#fff'},W.createElement('use',{xlinkHref:'#up-btn_svg__b'})),W.createElement('use',{fill:'#F2F2FF',xlinkHref:'#up-btn_svg__b'}),W.createElement('circle',{fill:'#2468F2',filter:'url(#up-btn_svg__c)',mask:'url(#up-btn_svg__d)',cx:19,cy:-2,r:14}),W.createElement('path',{d:'m8 0 .335.276a13.981 13.981 0 0 1 5.075 11.687c1.592 1.198 2.59 3.019 2.59 5.35 0 1.991-.727 3.812-1.93 5.212l-.72-2.16a3 3 0 0 0-2.662-2.046l-.184-.005H5.496a3 3 0 0 0-2.783 1.879l-.063.172-.72 2.16A7.969 7.969 0 0 1 0 17.314c0-2.332.998-4.153 2.59-5.352A13.977 13.977 0 0 1 7.497.416L8 0Zm0 .647-.179.15a13.472 13.472 0 0 0-4.75 10.762l.018.372.017.268-.215.162C1.354 13.52.5 15.226.5 17.314c0 1.39.38 2.72 1.077 3.874l.178.28.425-1.275.069-.187a3.5 3.5 0 0 1 3.043-2.186l.204-.006h5.024l.198.006a3.5 3.5 0 0 1 3.04 2.205l.067.182.42 1.261.012-.017a7.459 7.459 0 0 0 1.236-3.818l.007-.32c0-1.992-.778-3.638-2.185-4.79l-.205-.16-.215-.163.016-.268A13.478 13.478 0 0 0 8.303.904L8 .647Z',fillOpacity:.7,fill:'url(#up-btn_svg__e)',mask:'url(#up-btn_svg__d)'})),W.createElement('g',{transform:'translate(11 6.814)'},W.createElement('mask',{id:'up-btn_svg__i',fill:'#fff'},W.createElement('use',{xlinkHref:'#up-btn_svg__f'})),W.createElement('use',{fill:'url(#up-btn_svg__g)',xlinkHref:'#up-btn_svg__f'}),W.createElement('path',{fill:'#2468F2',filter:'url(#up-btn_svg__h)',mask:'url(#up-btn_svg__i)',d:'M3-3h6v6H3z'})),W.createElement('path',{d:'M8 11.314a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm0 .5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z',fillOpacity:.7,fill:'url(#up-btn_svg__j)',transform:'translate(6 -4.5)'}))))})),h('clear-btn',(function(e){return W.createElement('svg',Tr({className:'icon',viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg'},e),Dr||(Dr=W.createElement('path',{d:'M452.225 146.9 111.637 487.488a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.9-34.059 0-47.132L405.093 99.768a33.223 33.223 0 0 1 47.132 0 33.223 33.223 0 0 1 0 47.132zM924.232 618.735 583.644 959.323a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.06 0-47.132L877.1 571.603a33.223 33.223 0 0 1 47.132 0c13.073 13.073 12.9 34.23 0 47.132zM451.193 620.799 348.157 723.835a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.058 0-47.131L404.06 573.667a33.223 33.223 0 0 1 47.132 0c13.073 13.073 13.073 34.23 0 47.132zM298.444 524.987l-74.654 74.654a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.9-34.059 0-47.132l74.655-74.654a33.223 33.223 0 0 1 47.131 0c12.902 13.073 12.902 34.231 0 47.132zM545.285 772l-74.654 74.653a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.058 0-47.131l74.654-74.655a33.223 33.223 0 0 1 47.132 0 33.223 33.223 0 0 1 0 47.132z'})),Br||(Br=W.createElement('path',{d:'M536.34 959.323 64.505 487.66a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.06-12.9 47.132 0l471.835 471.835a33.223 33.223 0 0 1 0 47.132c-13.073 12.9-34.059 12.9-47.132-.172zM732.264 763.57 260.43 291.737a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.06-12.901 47.132 0L779.224 716.44a33.223 33.223 0 0 1 0 47.132c-12.901 13.073-34.059 12.9-46.96 0zM912.363 219.49 804.682 111.637a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.059-12.9 47.132 0l107.68 107.853a33.223 33.223 0 0 1 0 47.132c-13.072 13.073-34.23 13.073-47.131 0zM587.256 328.719 405.437 146.9a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.06-12.9 47.132 0L634.56 281.76a33.223 33.223 0 0 1 0 47.132c-13.073 12.901-34.23 12.901-47.304-.172zM877.1 618.563l-181.819-181.82a33.223 33.223 0 0 1 0-47.131c13.073-13.073 34.059-12.901 47.132 0l181.99 181.99a33.223 33.223 0 0 1 0 47.133c-13.072 12.9-34.23 12.9-47.303-.172z'})),$r||($r=W.createElement('path',{d:'M959.323 219.49 742.24 436.572a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.059 0-47.132l217.082-217.082a33.223 33.223 0 0 1 47.132 0c13.073 12.901 13.073 34.059 0 47.132zM851.642 111.637 634.388 328.72a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.9-34.059 0-47.132L804.51 64.505a33.223 33.223 0 0 1 47.132 0c13.073 13.073 12.9 34.06 0 47.132z'})))})),h('open-btn',ya),h('merge-icon',(function(e){return W.createElement('svg',Lr({viewBox:'0 0 24 24',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),jr||(jr=W.createElement('g',{fillRule:'evenodd'},W.createElement('rect',{x:1,y:1,width:22,height:3,rx:1.5}),W.createElement('rect',{x:1,y:7,width:22,height:3,rx:1.5}),W.createElement('rect',{x:1,y:20,width:22,height:3,rx:1.5}),W.createElement('path',{d:'m12.376 17.07 2.398-2.74a.5.5 0 0 0-.376-.83H9.602a.5.5 0 0 0-.376.83l2.398 2.74a.5.5 0 0 0 .752 0Z'}))))})),h('cancel-icon',(function(e){return W.createElement('svg',zr({viewBox:'0 0 24 24',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Hr||(Hr=W.createElement('g',{fillRule:'evenodd'},W.createElement('path',{d:'M9 10.333v-3h12V4H9V1h13a2 2 0 0 1 2 2v5.333a2 2 0 0 1-1.85 1.995l-.15.005H9ZM2 1h7v3H0V3a2 2 0 0 1 2-2Z'}),W.createElement('path',{d:'M2 1h1v9.333H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2ZM2 13.667h1V23H2a2 2 0 0 1-2-2v-5.333a2 2 0 0 1 2-2ZM6 1h3v9.333H6zM6 13.667h3V23H6zM21 13.667h1a2 2 0 0 1 2 2V21a2 2 0 0 1-2 2h-1v-9.333Z'}),W.createElement('path',{d:'M0 7.333h9v3H2a2 2 0 0 1-2-2v-1ZM9 13.667h13a2 2 0 0 1 2 2v1H9v-3ZM2 13.667h7v3H0v-1a2 2 0 0 1 2-2ZM9 20h15v1a2 2 0 0 1-2 2H9v-3ZM0 20h9v3H2a2 2 0 0 1-2-2v-1Z'}))))})),h('copy-icon',(function(e){return W.createElement('svg',_r({viewBox:'0 0 24 23',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Kr||(Kr=W.createElement('g',{fillRule:'evenodd'},W.createElement('rect',{x:1.5,y:7.5,width:15,height:14,rx:2}),W.createElement('path',{d:'M6 2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4v-2.6h3v-12H9V6H6V2Z',fillRule:'nonzero'}))))})),h('delete-icon',(function(e){return W.createElement('svg',Ur({viewBox:'0 0 24 23',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Vr||(Vr=W.createElement('g',{fillRule:'evenodd'},W.createElement('path',{opacity:.66,d:'M11 9.5v9H8v-9zM16 9.5v9h-3v-9z'}),W.createElement('path',{d:'M16 0a2 2 0 0 1 2 2v3h4.5a1.5 1.5 0 0 1 0 3H21v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8H1.5a1.5 1.5 0 0 1 0-3H6V2a2 2 0 0 1 2-2h8Zm2 8H6v12h12V8Zm-3-5H9v2h6V3Z',fillRule:'nonzero',opacity:.6}))))})),h('fixed-icon',(function(e){return W.createElement('svg',Zr({xmlns:'http://www.w3.org/2000/svg',fill:'currentColor',viewBox:'0 0 1024 1024','data-spm-anchor-id':'a1z1go8z.25060599.0.i11.71e369e4cItcn5',className:'icon'},e),Wr||(Wr=W.createElement('path',{d:'m750.848 28.928 245.248 242.944a66.048 66.048 0 1 1-93.184 93.184l-25.6-19.456-249.6 353.792 78.336 78.336a66.048 66.048 0 0 1-93.184 92.672l-460.8-464.64a66.048 66.048 0 0 1 93.184-93.184l76.8 78.336 354.048-249.856-18.176-18.944a66.048 66.048 0 1 1 93.184-93.184zM380.672 732.416l-91.904-90.88c-74.24 89.6-191.488 219.904-212.736 247.04a419.84 419.84 0 0 0-70.656 128 419.84 419.84 0 0 0 128-70.144c27.136-21.248 157.44-138.496 246.528-214.016z','data-spm-anchor-id':'a1z1go8z.25060599.0.i9.71e369e4cItcn5'})))})),h('no-fixed-icon',(function(e){return W.createElement('svg',Xr({xmlns:'http://www.w3.org/2000/svg',fill:'currentColor',viewBox:'0 0 1024 1024','data-spm-anchor-id':'a1z1go8z.25060599.0.i10.71e369e4cItcn5',className:'icon'},e),qr||(qr=W.createElement('path',{d:'M160.256 816.64C116.224 872.448 102.4 921.6 102.4 921.6s49.152-13.824 104.96-57.856c22.016-17.408 128-112.64 200.704-174.08l-73.728-73.728c-61.44 72.704-157.184 178.688-174.08 200.704zm488.448-607.232-206.336 145.92 226.304 226.304 145.92-206.336 15.872 15.872c20.992 20.992 54.784 20.992 75.776 0s20.992-54.784 0-75.776l-197.12-197.12c-20.992-20.992-54.784-20.992-75.776 0-20.992 20.992-20.992 54.784 0 75.776l15.36 15.36zm-400.896 125.44c-9.728 2.048-18.944 6.656-26.624 14.336-20.992 20.992-20.992 54.784 0 75.776L599.04 802.816c20.992 20.992 54.784 20.992 75.776 0 7.68-7.68 12.288-16.896 14.336-26.624L247.808 334.848z','data-spm-anchor-id':'a1z1go8z.25060599.0.i12.71e369e4cItcn5'})),Yr||(Yr=W.createElement('path',{d:'M840.704 879.104c-9.728 0-19.456-3.584-27.136-11.264l-657.92-657.408c-14.848-14.848-14.848-39.424 0-54.272 14.848-14.848 39.424-14.848 54.272 0l657.92 657.92c14.848 14.848 14.848 39.424 0 54.272-7.168 7.168-16.896 10.752-27.136 10.752z','data-spm-anchor-id':'a1z1go8z.25060599.0.i13.71e369e4cItcn5'})))})),h('editor-shortcut',(function(e){return W.createElement('svg',Ha({className:'icon',viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg'},e),La||(La=W.createElement('path',{d:'M32 160h960v704H32V160zm64 64v576h832V224H96zm64 160h96v64h-96v-64zm0-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm96 0h96v64h-96v-64zm-128-96h64v64h-64v-64zm96 0h128v64H736v-64zM160 480h128v64H160v-64zm160 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h160v64H704v-64zm-544 96h160v64H160v-64zm192 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h224v64H640v-64zm-480 96h128v64H160v-64zm576 0h128v64H736v-64zm-416 0h384v64H320v-64z',fill:'currentColor'})))})),h('display-inline',(function(e){return W.createElement('svg',Jn({xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 20 8',className:'icon'},e),Xn||(Xn=W.createElement('path',{d:'M14.814 6.25c.258.248.567.435.927.56s.76.19 1.18.19c.29 0 .51-.014.68-.042.167-.028.34-.07.53-.123.143-.04.28-.09.41-.146l.41-.19V5.13h-.153c-.07.06-.157.134-.265.22a3.337 3.337 0 0 1-.35.237 2.11 2.11 0 0 1-.484.22 1.798 1.798 0 0 1-1.1-.01 1.403 1.403 0 0 1-.523-.3 1.566 1.566 0 0 1-.38-.57c-.1-.24-.152-.54-.152-.9 0-.346.048-.638.14-.878s.217-.437.368-.58c.16-.155.33-.26.52-.33a1.786 1.786 0 0 1 1.117-.013c.165.055.317.124.458.205a4.385 4.385 0 0 1 .643.47h.17V1.52c-.107-.05-.23-.107-.37-.168a3.613 3.613 0 0 0-1.003-.27 4.736 4.736 0 0 0-.65-.04c-.436 0-.837.07-1.205.207s-.674.33-.923.59c-.26.26-.458.58-.59.95S14 3.57 14 4.02c0 .488.07.918.213 1.29s.343.683.6.933zm-3.264.608c.272-.075.52-.2.75-.377a1.5 1.5 0 0 0 .46-.56 1.72 1.72 0 0 0 .17-.77c0-.4-.11-.72-.332-.96-.22-.244-.52-.404-.896-.48v-.04a1.46 1.46 0 0 0 .623-.516c.147-.22.22-.474.22-.763 0-.25-.052-.47-.16-.66a1.152 1.152 0 0 0-.49-.46 2.06 2.06 0 0 0-.64-.212A7.67 7.67 0 0 0 10.237 1H8v5.97h2.515c.418 0 .763-.037 1.035-.112zM9.478 2.095h.14c.29 0 .517.002.678.006.162.01.296.03.404.07a.46.46 0 0 1 .253.23.69.69 0 0 1 .072.298.85.85 0 0 1-.062.34.492.492 0 0 1-.263.24 1.052 1.052 0 0 1-.39.08c-.166.006-.366.01-.6.01h-.232v-1.27zm.108 3.78h-.108V4.388h.324c.222 0 .434 0 .638.004a1.8 1.8 0 0 1 .48.056c.17.05.29.127.36.23.07.104.106.25.106.44 0 .144-.03.272-.087.383s-.17.2-.32.27-.32.1-.5.11c-.18.004-.48.004-.9.004zm-6.64-.106h2.187l.41 1.2h1.574L4.935 1.03H3.182L1 6.97h1.535l.412-1.2zM4.04 2.55l.727 2.13H3.313l.727-2.13z'})))})),h('display-block',(function(e){return W.createElement('svg',tr({xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 22 14',className:'icon'},e),Gn||(Gn=W.createElement('path',{opacity:.15,d:'M19 3v8H3V3h16m1-1H2v10h18V2z'})),Qn||(Qn=W.createElement('path',{d:'M19.8 1H2.2A1.2 1.2 0 0 0 1 2.2v9.6A1.2 1.2 0 0 0 2.2 13h17.6a1.2 1.2 0 0 0 1.2-1.2V2.2A1.2 1.2 0 0 0 19.8 1zm.2 11H2V2h18v10z'})),er||(er=W.createElement('path',{opacity:.35,d:'M3 3h16v8H3z'})))})),h('display-inline-block',(function(e){return W.createElement('svg',or({xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 28 14',className:'icon'},e),nr||(nr=W.createElement('path',{d:'M25 3v8H3V3h22m1-1H2v10h24V2z',opacity:.15})),rr||(rr=W.createElement('path',{opacity:.35,d:'M8.418 9.8H7.66L7.25 11h1.58l-.232-.676-.18-.525zM3 11h.567l2.916-7.94h3.15L11 6.78V3H3v8zm15.12-1.002a3.302 3.302 0 0 1-.48-.586c-.173.343-.42.653-.73.888.002 0 .004-.002.005-.003l-.008.006.003-.003a3.145 3.145 0 0 1-1.092.55c-.4.11-.825.15-1.303.15h6.017a4.416 4.416 0 0 1-1.12-.215 3.51 3.51 0 0 1-1.292-.787zM14.237 3c.49 0 .853.014 1.167.06.335.05.656.16.953.314h.003l.004.003c.365.19.694.492.898.866.13.234.197.49.24.747.16-.298.343-.58.578-.82v-.002c.358-.366.8-.643 1.287-.826a4.373 4.373 0 0 1 1.557-.272 5.67 5.67 0 0 1 1.442.18l.01.002.01.003c.205.06.4.126.59.208.15.064.283.125.407.185l.562.274v3.016h-1.54l-.28-.24a7.018 7.018 0 0 0-.233-.188 2.703 2.703 0 0 0-.26-.175 1.594 1.594 0 0 0-.277-.125h-.006l-.2-.03a.772.772 0 0 0-.26.042l-.16.102a.63.63 0 0 0-.13.22 1.486 1.486 0 0 0-.075.516c0 .266.04.436.074.513a.59.59 0 0 0 .13.212l.15.09h.003a.868.868 0 0 0 .265.045l.236-.037h.008a1.04 1.04 0 0 0 .25-.113l.007-.004.01-.005.24-.16a6.41 6.41 0 0 0 .216-.17l.285-.254h1.536v3.017l-.59.266c-.15.066-.292.13-.422.184a4.19 4.19 0 0 1-.53.19 5.918 5.918 0 0 1-.636.15c-.076.012-.16.02-.24.026H25V3H14.237z'})),ar||(ar=W.createElement('path',{d:'M25.8 1H2.2A1.2 1.2 0 0 0 1 2.2v9.6A1.2 1.2 0 0 0 2.2 13h23.6a1.2 1.2 0 0 0 1.2-1.2V2.2A1.2 1.2 0 0 0 25.8 1zm.2 11H2V2h24v10zm-7.186-2.72c.258.248.567.435.927.56s.76.19 1.18.19c.29 0 .51-.014.68-.042.167-.028.34-.07.53-.123.143-.04.28-.09.41-.146l.412-.19V8.16h-.154c-.07.06-.157.134-.265.22a3.337 3.337 0 0 1-.35.237 2.11 2.11 0 0 1-.485.22 1.798 1.798 0 0 1-1.1-.01 1.403 1.403 0 0 1-.523-.3c-.15-.14-.28-.33-.38-.57a2.36 2.36 0 0 1-.152-.9c0-.347.047-.64.14-.88s.216-.433.367-.58c.157-.15.33-.26.517-.325a1.786 1.786 0 0 1 1.116-.014c.164.056.316.125.457.206a4.868 4.868 0 0 1 .644.466h.17V4.54a13.03 13.03 0 0 0-.367-.168 3.667 3.667 0 0 0-1.005-.27 4.736 4.736 0 0 0-.65-.04c-.436 0-.837.07-1.205.207s-.675.333-.924.59c-.26.262-.457.58-.59.95S18 6.6 18 7.055c0 .488.07.918.213 1.29s.343.683.6.933zm-3.264.607c.272-.076.52-.2.75-.38.195-.15.35-.338.46-.567.113-.23.17-.488.17-.778 0-.4-.11-.722-.332-.967-.22-.245-.52-.406-.896-.484v-.03a1.46 1.46 0 0 0 .623-.51 1.36 1.36 0 0 0 .22-.77c0-.25-.052-.47-.16-.665a1.15 1.15 0 0 0-.49-.465 2.065 2.065 0 0 0-.64-.215A7.67 7.67 0 0 0 14.237 4H12v6h2.515c.418 0 .763-.037 1.035-.113zM13.478 5.1h.14c.29 0 .517.002.678.006s.296.027.404.07c.12.05.206.123.253.223a.69.69 0 0 1 .072.29.86.86 0 0 1-.062.34c-.042.1-.13.18-.263.24a1.05 1.05 0 0 1-.39.08c-.166.007-.366.01-.6.01h-.233V5.1zm.108 3.8h-.108V7.405h.324c.222 0 .434 0 .638.004.203 0 .363.02.48.05.17.05.29.13.36.23s.106.25.106.44c0 .144-.03.272-.087.384s-.17.2-.32.27a1.257 1.257 0 0 1-.5.104c-.18.003-.48.004-.9.004zm-6.64-.1h2.187l.41 1.2h1.574L8.935 4.06H7.182L5 10h1.535l.412-1.2zM8.04 5.58l.727 2.13H7.313l.727-2.13z'})))})),h('display-flex',(function(e){return W.createElement('svg',hr({xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 23 14',className:'icon'},e),ir||(ir=W.createElement('path',{d:'M21 2v10H2V2h19zm1-1H1v12h21V1z',opacity:.15})),cr||(cr=W.createElement('path',{d:'M1.2 0A1.2 1.2 0 0 0 0 1.2v11.6A1.2 1.2 0 0 0 1.2 14h20.6a1.2 1.2 0 0 0 1.2-1.2V1.2A1.2 1.2 0 0 0 21.8 0H1.2zM22 13H1V1h21v12z'})),sr||(sr=W.createElement('path',{opacity:.4,d:'M3 3h5v8H3z'})),dr||(dr=W.createElement('path',{d:'M4 4v6h3V4H4zm4-1v8H3V3h5z'})),lr||(lr=W.createElement('path',{opacity:.4,d:'M9 3h5v8H9z'})),ur||(ur=W.createElement('path',{d:'M10 4v6h3V4h-3zm4-1v8H9V3h5z'})),pr||(pr=W.createElement('path',{opacity:.4,d:'M15 3h5v8h-5z'})),fr||(fr=W.createElement('path',{d:'M16 4v6h3V4h-3zm4-1v8h-5V3h5z'})))})),h('back-up',(function(e){return W.createElement('svg',ma({viewBox:'0 0 32 32',xmlns:'http://www.w3.org/2000/svg',xmlnsXlink:'http://www.w3.org/1999/xlink',className:'icon'},e),fa||(fa=W.createElement('defs',null,W.createElement('linearGradient',{x1:'100%',y1:'101.089%',x2:'0%',y2:'-14.125%',id:'back-up_svg__c'},W.createElement('stop',{stopColor:'#FFF',offset:'0%'}),W.createElement('stop',{stopColor:'#FFF8F8',offset:'46.533%'}),W.createElement('stop',{stopColor:'#DDFEEB',offset:'100%'})),W.createElement('linearGradient',{x1:'100%',y1:'51.269%',x2:'0%',y2:'48.407%',id:'back-up_svg__f'},W.createElement('stop',{stopColor:'#FFF',offset:'0%'}),W.createElement('stop',{stopColor:'#FFF8F8',offset:'46.533%'}),W.createElement('stop',{stopColor:'#DDFEEB',offset:'100%'})),W.createElement('filter',{x:'-24.3%',y:'-19.2%',width:'148.6%',height:'153.6%',filterUnits:'objectBoundingBox',id:'back-up_svg__a'},W.createElement('feOffset',{dy:1,in:'SourceAlpha',result:'shadowOffsetOuter1'}),W.createElement('feGaussianBlur',{stdDeviation:1,in:'shadowOffsetOuter1',result:'shadowBlurOuter1'}),W.createElement('feColorMatrix',{values:'0 0 0 0 0.179423161 0 0 0 0 0.342133642 0 0 0 0 0.637515745 0 0 0 0.650991587 0',in:'shadowBlurOuter1'})),W.createElement('filter',{x:'-25%',y:'-125%',width:'150%',height:'450%',filterUnits:'objectBoundingBox',id:'back-up_svg__d'},W.createElement('feOffset',{dy:1,in:'SourceAlpha',result:'shadowOffsetOuter1'}),W.createElement('feGaussianBlur',{stdDeviation:1,in:'shadowOffsetOuter1',result:'shadowBlurOuter1'}),W.createElement('feColorMatrix',{values:'0 0 0 0 0.179423161 0 0 0 0 0.342133642 0 0 0 0 0.637515745 0 0 0 0.650991587 0',in:'shadowBlurOuter1'})),W.createElement('rect',{id:'back-up_svg__e',x:0,y:0,width:14,height:2,rx:1}),W.createElement('path',{d:'M15.962 12.004c.157.01.312.056.452.139l.101.07.095.082L23 18.322a1 1 0 0 1-1.32 1.498l-.094-.083-4.61-4.315.001 8.788c0 .466-.447.843-1 .843-.512 0-.935-.325-.993-.745l-.007-.098v-8.866l-4.372 4.393a1 1 0 0 1-1.497-1.32l.083-.095 6.004-6.027a.996.996 0 0 1 .648-.29h.119Z',id:'back-up_svg__b'}))),ha||(ha=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('rect',{fill:'#2468F2',width:32,height:32,rx:16}),W.createElement('g',{fillRule:'nonzero'},W.createElement('use',{fill:'#000',filter:'url(#back-up_svg__a)',xlinkHref:'#back-up_svg__b'}),W.createElement('use',{fill:'url(#back-up_svg__c)',xlinkHref:'#back-up_svg__b'})),W.createElement('g',{transform:'translate(9 7.702)',fillRule:'nonzero'},W.createElement('use',{fill:'#000',filter:'url(#back-up_svg__d)',xlinkHref:'#back-up_svg__e'}),W.createElement('use',{fill:'url(#back-up_svg__f)',xlinkHref:'#back-up_svg__e'})))))})),h('down-arrow',ya),h('editor-search',(function(e){return W.createElement('svg',Ea({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ba||(ba=W.createElement('path',{d:'M7.5 12A4.505 4.505 0 0 1 3 7.5C3 5.019 5.019 3 7.5 3S12 5.019 12 7.5 9.981 12 7.5 12Zm6.294 1.089-2.071-2.07A5.482 5.482 0 0 0 13 7.5C13 4.468 10.533 2 7.5 2A5.506 5.506 0 0 0 2 7.5C2 10.532 4.467 13 7.5 13a5.475 5.475 0 0 0 3.516-1.274l2.071 2.071.707-.708Z',fill:'currentColor',fillRule:'evenodd'})))})),h('editor-help',(function(e){return W.createElement('svg',Ca({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),wa||(wa=W.createElement('path',{d:'m7.976 1 .241.003A7 7 0 1 1 7.977 1Zm.004 1-.225.005A6 6 0 1 0 7.98 2Zm.03 8.8a.6.6 0 1 1 .004 1.2.6.6 0 0 1-.005-1.2Zm-.024-6.787c1.3-.004 2.368 1.003 2.455 2.258l.007.18c.01.33-.07.742-.325 1.15-.258.414-.656.734-1.2.922l-.272.085c-.12.049-.144.159-.146.744v.407l-1 .003v-.296c.007-1.197.136-1.59.83-1.81l.12-.034c.406-.11.663-.3.82-.55.111-.18.16-.366.171-.51l.002-.102a1.453 1.453 0 0 0-2.9-.13l-.007.14-1 .002a2.453 2.453 0 0 1 2.445-2.46Z'})))})),h('editor-fixed',(function(e){return W.createElement('svg',Ia({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Sa||(Sa=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h16v16H0z'}),W.createElement('path',{d:'m14.333 5.928-4.26-4.26a.572.572 0 0 0-.813 0L6.475 4.455A5.698 5.698 0 0 0 2.27 5.67a.574.574 0 0 0-.047.854l3.142 3.142-3.724 3.72a.273.273 0 0 0-.08.17l-.059.643c-.015.163.114.301.275.301.009 0 .017 0 .026-.002l.643-.059a.273.273 0 0 0 .17-.079l3.724-3.724 3.14 3.141a.572.572 0 0 0 .855-.046 5.711 5.711 0 0 0 1.214-4.209l2.785-2.785a.573.573 0 0 0 0-.81Zm-3.667 2.718-.424.423.066.595a4.494 4.494 0 0 1-.526 2.661L3.678 6.217a4.471 4.471 0 0 1 2.66-.526l.595.066.424-.424 2.311-2.312 3.311 3.311-2.313 2.314Zm0 0-.424.423.066.595a4.494 4.494 0 0 1-.526 2.661L3.678 6.217a4.471 4.471 0 0 1 2.66-.526l.595.066.424-.424 2.311-2.312 3.311 3.311-2.313 2.314Z',fill:'currentColor',fillRule:'nonzero'}))))})),h('editor-no-fixed',(function(e){return W.createElement('svg',Ra({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),xa||(xa=W.createElement('g',{fillRule:'nonzero',fill:'none'},W.createElement('path',{d:'M0 0h16v16H0z'}),W.createElement('path',{d:'m14.333 5.928-4.26-4.26a.572.572 0 0 0-.813 0L6.475 4.455A5.698 5.698 0 0 0 2.27 5.67a.574.574 0 0 0-.047.854l3.142 3.142-3.724 3.72a.273.273 0 0 0-.08.17l-.059.643c-.015.163.114.301.275.301.009 0 .017 0 .026-.002l.643-.059a.273.273 0 0 0 .17-.079l3.724-3.724 3.14 3.141a.572.572 0 0 0 .855-.046 5.711 5.711 0 0 0 1.214-4.209l2.785-2.785a.573.573 0 0 0 0-.81Zm-3.667 2.718-.424.423.066.595a4.494 4.494 0 0 1-.526 2.661L3.678 6.217a4.471 4.471 0 0 1 2.66-.526l.595.066.424-.424 2.311-2.312 3.311 3.311-2.313 2.314Z',fill:'currentColor'}))))})),h('editor-renderer',(function(e){return W.createElement('svg',Oa({viewBox:'0 0 48 48',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Na||(Na=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h48v48H0z'}),W.createElement('g',{strokeWidth:1.25,stroke:'currentColor',strokeLinejoin:'round'},W.createElement('path',{d:'M16.701 16.702h5.848v5.848h-5.848zM25.456 16.702h5.848v5.848h-5.848zM16.701 25.451h5.848v5.848h-5.848zM25.456 25.451h5.848v5.848h-5.848z'})))))})),h('editor-outline',(function(e){return W.createElement('svg',Aa({viewBox:'0 0 48 48',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ka||(ka=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h48v48H0z'}),W.createElement('g',{transform:'translate(14 14)'},W.createElement('path',{d:'M0 0h20v20H0z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',d:'M3.121 5.625v11.25M3.121 10.625h2.5M3.121 16.875h2.5'}),W.createElement('circle',{fill:'currentColor',cx:3.125,cy:4.375,r:1.875}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinejoin:'round',d:'M8.747 3.125h8.728v2.5H8.747zM8.747 8.75h8.728v2.5H8.747zM8.747 14.375h8.728v2.5H8.747z'})))))})),h('editor-code',(function(e){return W.createElement('svg',Pa({viewBox:'0 0 48 48',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ma||(Ma=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h48v48H0z'}),W.createElement('path',{d:'M14 14h20v20H14z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinejoin:'round',d:'M16.5 17.75h15v12.5h-15z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',d:'m25.709 20.841-3.362 6.284'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',strokeLinejoin:'round',d:'m27.643 22.233 1.768 1.768-1.766 1.766M20.582 22.233l-1.768 1.768 1.766 1.766'}))))})),h('editor-common-config',(function(e){return W.createElement('svg',Da({viewBox:'0 0 20 20',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Fa||(Fa=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h20v20H0z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinejoin:'round',d:'m10 1.25 7.578 4.375v8.75L10 18.75l-7.578-4.375v-8.75z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',d:'m5.824 7.826 3.955 2.418M14.054 7.826l-4.275 2.418M9.779 14.845v-4.601'}))))})),h('editor-double-arrow',(function(e){return W.createElement('svg',$a({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ba||(Ba=W.createElement('path',{d:'m3.713 3.001 4.95 4.95-.003.003.003.003-4.95 4.95L3 12.194l4.24-4.24L3 3.714l.713-.713Zm3.997 0 4.95 4.948-.004.004.004.003-4.95 4.95-.713-.714 4.24-4.239-4.24-4.24L7.71 3Z',fill:'currentColor',fillRule:'evenodd'})))})),h('search-clear',(function(e){return W.createElement('svg',ja({viewBox:'0 0 12 12',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ta||(Ta=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M6 12A6 6 0 1 1 6 0a6 6 0 0 1 0 12Z',fill:'currentColor'}),W.createElement('path',{fill:'#FFF',d:'M8.475 4.232 6.707 6l1.768 1.768-.707.707L6 6.707 4.232 8.475l-.707-.707L5.293 6 3.525 4.232l.707-.707L6 5.293l1.768-1.768z'}))))}));var za=function(e){function t(t){var n=e.call(this,t)||this;n.ref=Z.createRef(),n.localStorageKey='amis-editor-search-panel',n.curTagFolded={},t.searchPanelUUID&&(n.localStorageKey=t.searchPanelUUID);var r=[],a={};if(t.allResult&&t.allResult.length>0){var o=n.getResultTags(t.allResult);r=o.curResultTags,a=o.curResultByTag}return n.state={resultTags:r,resultByTag:a,curKeyword:t.externalKeyword||'',searchResult:[],searchResultByTag:{},visible:!1,curKeywordSearchHistory:n.getSearchHistory(),toggleTagFolderStatus:!0},n}return K(t,e),t.prototype.componentDidMount=function(){var e,t;(null===(t=null===(e=this.ref.current)||void 0===e?void 0:e.childNodes[0])||void 0===t?void 0:t.childNodes[0])&&(this.curInputBox=this.ref.current.childNodes[0].childNodes[0],this.curInputBox.addEventListener('keyup',this.bindEnterEvent))},t.prototype.componentWillUnmount=function(){this.curInputBox&&this.curInputBox.removeEventListener('keyup',this.bindEnterEvent)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this,n=e.externalKeyword,r=e.allResult;if(n!==this.state.curKeyword&&this.setState({curKeyword:n},(function(){t.groupedResultByKeyword(n)})),r!==this.props.allResult){var a=[],o={};if(r&&r.length>0){var i=this.getResultTags(r);a=i.curResultTags,o=i.curResultByTag}this.setState({resultTags:a,resultByTag:o})}},t.prototype.getSearchHistory=function(){var e=[];if(window.localStorage){var t=window.localStorage.getItem(this.localStorageKey);if(t){var n=JSON.parse(t);n&&Array.isArray(n)&&(e=n)}}return e},t.prototype.getResultTags=function(e){var t=[],n={},r=this.props.tagKey||'tags';return e.forEach((function(e){!He(e)&&e[r]&&(Array.isArray(e[r])?e[r].concat():e[r]?[e[r]]:[B('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(r){t.indexOf(r)<0&&t.push(r),n[r]||(n[r]=[]),n[r].push(e)}))})),{curResultTags:t,curResultByTag:n}},t.prototype.groupedResultByKeyword=function(e){void 0===e&&(e='');var t=this.props.allResult,n=[],r={},a=e||this.state.curKeyword,o=this.props.tagKey||'tags';if(a&&new RegExp(ln(a),'i'),t.length&&He(t[0]))ze(t,e).forEach((function(e){n.push(e)}));else{var i=new Map;ze(t,e,{keys:['name','description','scaffold.type','searchKeywords']}).forEach((function(e){i.set(e.id,e)})),t.forEach((function(e){i.has(e.id)&&(e[o]?(Array.isArray(e[o])?e[o].concat():e[o]?[e[o]]:[B('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(t){r[t]=r[t]||[],r[t].push(e)})):n.push(e))}))}this.setState({searchResult:n,searchResultByTag:r})},t.prototype.bindFocusEvent=function(){this.setState({visible:!0})},t.prototype.bindBlurEvent=function(){var e=this,t=this.state.curKeyword;this.setState({visible:!1},(function(){t&&e.addSearchHistory(t),e.props.onChange(t)}))},t.prototype.updateCurKeyword=function(e){var t=this,n=e;n=n?n.trim():n,this.setState({curKeyword:n},(function(){t.groupedResultByKeyword(n),t.props.immediateChange&&t.props.onChange(n)}))},t.prototype.changeTagFoldStatus=function(e,t){t.preventDefault(),t.stopPropagation(),this.curInputBox.focus(),this.curTagFolded[e]=!this.curTagFolded[e],this.setState({toggleTagFolderStatus:!this.state.toggleTagFolderStatus})},t.prototype.bindEnterEvent=function(e){var t=this;e.preventDefault();var n=this.state.curKeyword;13===(null==e?void 0:e.keyCode)&&this.setState({visible:!1},(function(){t.addSearchHistory(n),t.props.onChange(n)}))},t.prototype.bindClearActionEvent=function(){var e=this;this.setState({curKeyword:'',searchResult:[],searchResultByTag:{}},(function(){e.props.onChange('')}))},t.prototype.bindTagClickEvent=function(e){var t,n=this,r=this.state.resultByTag[e];this.setState({visible:!1,curKeyword:e,searchResult:r,searchResultByTag:(t={},t[e]=r,t)},(function(){n.props.onTagChange&&n.props.onTagChange(e)}))},t.prototype.addSearchHistory=function(e){var t=this.state.curKeywordSearchHistory;t.indexOf(e)>-1||(10===t.length?(t.shift(),t.push(e)):t.push(e),this.updateSearchHistory())},t.prototype.clickKeywordEvent=function(e){var t=this;this.setState({visible:!1,curKeyword:e},(function(){t.groupedResultByKeyword(e),t.props.onChange(e)}))},t.prototype.deleteSearchHistory=function(e,t){e.preventDefault(),e.stopPropagation(),this.curInputBox.focus();var n=this.state.curKeywordSearchHistory,r=n.indexOf(t);n.splice(r,1),this.updateSearchHistory()},t.prototype.clearSearchHistory=function(e){var t=this;e.preventDefault(),e.stopPropagation(),this.curInputBox.focus();var n=this.state.curKeywordSearchHistory;n&&n.length>0&&this.setState({curKeywordSearchHistory:[]},(function(){t.updateSearchHistory()}))},t.prototype.updateSearchHistory=function(){if(window.localStorage){var e=this.state.curKeywordSearchHistory;window.localStorage.setItem(this.localStorageKey,JSON.stringify(e))}},t.prototype.renderNameByKeyword=function(e,t){if(t&&~e.indexOf(t)){var n=e.indexOf(t),r=n+t.length;return Z.createElement('span',null,e.substring(0,n),Z.createElement('span',{className:'is-keyword'},t),e.substring(r))}return e},t.prototype.resultIsHasScroll=function(e,t){var n=this,r=0;return(e?Object.keys(e):[]).map((function(t){n.curTagFolded[t]?r+=1:r+=e[t].length+1})),r>t},t.prototype.render=function(){var e=this,t=this.props,n=t.allResult,a=t.closeAutoComplete,o=t.immediateChange,i=this.state,c=i.resultTags,s=i.curKeyword,d=i.searchResult,l=i.searchResultByTag,p=i.visible,f=l?Object.keys(l):[],h=L([],H(this.state.curKeywordSearchHistory),!1).reverse(),m=!1;return p&&n&&n.length>0&&(m=!0),a&&s&&(m=!1),a&&(!c||c&&0===c.length)&&(!h||h&&0===h.length)&&(m=!1),Z.createElement('div',{className:'editor-InputSearch-panel',ref:this.ref},Z.createElement(u,{className:'editor-InputSearch',value:s,onChange:this.updateCurKeyword,placeholder:B('2168c5735883bd040eaf09909d0911b8'),clearable:!1,onFocus:this.bindFocusEvent,onBlur:this.bindBlurEvent},Z.createElement(Z.Fragment,null,o&&(s?Z.createElement(r,{icon:'search-clear',className:'icon delete-btn-icon',onClick:this.bindClearActionEvent}):Z.createElement(r,{icon:'editor-search',className:'icon',onClick:this.bindBlurEvent})),!o&&Z.createElement(Z.Fragment,null,s&&Z.createElement(r,{icon:'search-clear',className:'icon delete-btn-icon margin-right',onClick:this.bindClearActionEvent}),Z.createElement(r,{icon:'editor-search',className:'icon',onClick:this.bindBlurEvent})))),Z.createElement('div',{className:'editor-InputSearch-content '.concat(m?'':'hidden-status')},!s&&h&&h.length>0&&Z.createElement('div',{className:'search-history '.concat(c&&c.length>0?'has-border-bottom':'')},Z.createElement('div',{className:'header'},Z.createElement('div',{className:'header-title'},B('e9c38f88375807704270aa3572454976')),Z.createElement('div',{className:'header-clear-icon',onClick:function(t){return e.clearSearchHistory(t)}},B('288f0c404c4e546aa3683ff5054e85e2'))),Z.createElement('div',{className:'history-cont '.concat(h.length>6?'hasScrollBtn':'')},h.map((function(t,n){return Z.createElement('div',{className:'history-item',key:''.concat(t,'-').concat(n),onClick:function(){return e.clickKeywordEvent(t)}},Z.createElement('div',{className:'history-keyword'},t),Z.createElement('div',{className:'delete-icon',title:B('4b9bc9abf2a2beb3772d903a3d01d1de')},Z.createElement(r,{icon:'close',onClick:function(n){return e.deleteSearchHistory(n,t)}})))})))),s&&0===d.length&&0===f.length&&Z.createElement('div',{className:'search-result-list'},Z.createElement('div',{className:'search-result-placeholder'},B('9d3128a1675de32cdd290b31140a7290'))),s&&d.length>0&&Z.createElement('div',{className:'search-result-list '.concat(d.length>6?'hasScrollBtn':'')},d.length>1&&Z.createElement('div',{className:'subRenderers-list only-one-tag'},d.map((function(t,n){return Z.createElement('div',{className:'subRenderers-item',key:'subRenderers-only-one-tag-'.concat(n),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))),s&&f.length>0&&Z.createElement('div',{className:'search-result-list '.concat(this.resultIsHasScroll(l,6)?'hasScrollBtn':'')},f.length>1&&f.map((function(t,n){return Z.createElement('div',{className:'multiple-subRenderers-list',key:''.concat(t,'-subRenderers-list')},Z.createElement('div',{className:X('subRenderers-header',{'is-folded':!!e.curTagFolded[t]}),title:e.curTagFolded[t]?B('e4cefe7df36e92da1d7e875b92655507'):B('7ae451de83aa6f5f140e941904377391'),onClick:function(n){e.changeTagFoldStatus(t,n)}},t,Z.createElement(r,{icon:'right-arrow-bold'})),Z.createElement('div',{className:X('subRenderers-list',{'is-folded':!!e.curTagFolded[t]})},l[t]&&l[t].map((function(t,n){return Z.createElement('div',{className:'subRenderers-item',key:n,onClick:function(){return e.clickKeywordEvent(t.name)}},e.renderNameByKeyword(t.name,s))}))))})),1===f.length&&f.map((function(t,n){return Z.createElement('div',{className:'subRenderers-list only-one-tag',key:'subRenderers-tag-'.concat(t)},l[t]&&l[t].map((function(t,n){return Z.createElement('div',{className:'subRenderers-item',key:'subRenderers-only-one-tag-'.concat(n),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))}))),!s&&c&&c.length>0&&Z.createElement('div',{className:'tag-list'},Z.createElement('div',{className:'header'},B('accb901a02b1415b40d95cdd31b8da1d')),Z.createElement('div',{className:'tag-list-cont'},c.length?c.map((function(t,n){return Z.createElement('div',{className:'tag-item',key:''.concat(t,'-').concat(n),onClick:function(){return e.bindTagClickEvent(t)}},t)})):null))))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'bindFocusEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'bindBlurEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'updateCurKeyword',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,Object]),V('design:returntype',void 0)],t.prototype,'changeTagFoldStatus',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'bindEnterEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'bindClearActionEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'bindTagClickEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'addSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'clickKeywordEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,String]),V('design:returntype',void 0)],t.prototype,'deleteSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'clearSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'updateSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,String]),V('design:returntype',void 0)],t.prototype,'renderNameByKeyword',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Number]),V('design:returntype',void 0)],t.prototype,'resultIsHasScroll',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),Ka=function(e){function t(t){var n=e.call(this,t)||this;n.localStorageKey='amis-editor-renderer-search-history';var r=t.store.subRenderersByOrder;r=r.filter((function(e){return!e.disabledRendererPlugin}));var a=t.store,o=a.subRenderersKeywords,i=a.subRenderersTag;return n.state={subRenderersByOrder:r,defaultKeyword:o||i||''},n.lastSubRenderersTag=t.store.subRenderersTag,n.changeSubRenderersTag=n.changeSubRenderersTag.bind(n),n}return K(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.store.subRenderersTag,n=e.store.subRenderersKeywords;t===this.lastSubRenderersTag||n||(this.lastSubRenderersTag=t,this.setState({defaultKeyword:t}))},t.prototype.changeSubRenderersTag=function(e){this.lastSubRenderersTag=e,this.props.store.changeSubRenderersTag(e)},t.prototype.render=function(){var e=this.state,t=e.subRenderersByOrder,n=e.defaultKeyword,r=this.props.store.changeSubRenderersKeywords;return Z.createElement(za,{allResult:t,externalKeyword:n,searchPanelUUID:this.localStorageKey,onChange:r,onTagChange:this.changeSubRenderersTag,immediateChange:!0,closeAutoComplete:!0})},t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),_a=function(e){function t(t){var n=e.call(this,t)||this;n.localStorageKey='amis-editor-custom-renderer-search-history';var r=t.store.customRenderersByOrder;r=r.filter((function(e){return!e.disabledRendererPlugin}));var a=t.store,o=a.customRenderersKeywords,i=a.customRenderersTag;return n.state={customRenderersByOrder:r,defaultKeyword:o||i||''},n}return K(t,e),t.prototype.render=function(){var e=this.state,t=e.customRenderersByOrder,n=e.defaultKeyword,r=this.props.store,a=r.changeCustomRenderersKeywords,o=r.changeCustomRenderersTag;return t&&t.length>0?Z.createElement(za,{allResult:t,externalKeyword:n,immediateChange:!0,closeAutoComplete:!0,searchPanelUUID:this.localStorageKey,onChange:a,onTagChange:o}):null},t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),Va=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={toggleCollapseFolderStatus:!1},t.curCollapseFolded={},t}return K(t,e),t.prototype.handleRegionFilterClick=function(e){var t=e.currentTarget.getAttribute('data-value'),n=this.props,r=n.store,a=n.manager;t=t===r.subRendererRegion?'':t,a.switchToRegion(t)},t.prototype.handleDragStart=function(e,t){var n=e.currentTarget.getAttribute('data-id');e.dataTransfer.setData('dnd-dom/[data-id="'.concat(n,'"]'),'')},t.prototype.handleClick=function(e){var t=e.currentTarget.getAttribute('data-dnd-id');this.props.manager.addElem(t)},t.prototype.changeCollapseFoldStatus=function(e,t){this.curCollapseFolded[e]=!this.curCollapseFolded[e],this.setState({toggleCollapseFolderStatus:!this.state.toggleCollapseFolderStatus}),t.preventDefault(),t.stopPropagation()},t.prototype.renderThumb=function(e){var t=this.props.manager;return e?o(e,{onAction:st},t.env):Z.createElement('p',null,B('c44c6c179c44e794b103053886847dc4'))},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.searchRendererType,o=t.className,i=t.testIdBuilder,c=this.props.groupedRenderers||{},s=Object.keys(c);return Z.createElement('div',{className:X('ae-RendererList',o)},'renderer'===a&&Z.createElement(Ka,{store:n}),'custom-renderer'===a&&Z.createElement(_a,{store:n}),Z.createElement('hr',{className:'margin-top'}),Z.createElement('div',{className:'ae-RendererList-groupWrap hoverShowScrollBar'},s.length?s.map((function(t,a){var o=c[t];return o&&o.length?Z.createElement(Z.Fragment,{key:t},Z.createElement('div',{key:''.concat(t,'-head'),className:'ae-RendererList-head collapse-header',onClick:function(n){e.changeCollapseFoldStatus(t,n)}},t,Z.createElement('div',{className:X('expander-icon',{'is-folded':!!e.curCollapseFolded[t]}),title:e.curCollapseFolded[t]?B('e4cefe7df36e92da1d7e875b92655507'):B('7ae451de83aa6f5f140e941904377391')},Z.createElement(r,{icon:'right-arrow-bold'}))),Z.createElement('div',{key:''.concat(t,'-content'),className:X('ae-RendererList-group collapse-content',{'is-folded':!!e.curCollapseFolded[t]})},o.map((function(t){var o=''.concat(a,'_').concat(t.id),c=cn(t),s='editor-renderer-'.concat(t.plugin.rendererName);return Z.createElement('div',$({key:o,className:'ae-RendererList-item',draggable:!0,'data-id':o,'data-dnd-type':'subrenderer','data-dnd-id':t.id,'data-dnd-data':JSON.stringify(t.scaffold||{type:t.type}),onDragStart:function(n){return e.handleDragStart(n,t.name)}},null==i?void 0:i.getChild(s).getTestId()),Z.createElement('div',{className:'icon-box','data-dnd-id':t.id,title:'点击添加「'.concat(t.name,'」'),onClick:e.handleClick},c&&Z.createElement(r,{icon:t.pluginIcon}),!c&&Z.createElement('i',{className:X('fa-fw',t.icon||'fa fa-circle-thin')})),Z.createElement('div',{className:'ae-RendererInfo','data-dnd-id':t.id,onClick:e.handleClick},t.name),Z.createElement(m,{tooltipClassName:'ae-RendererThumb',trigger:'hover',rootClose:!0,placement:'right',tooltip:{offset:[10,0],children:function(){return Z.createElement('div',null,Z.createElement('div',{className:'ae-Renderer-title'},t.name),t.description||t.docLink?Z.createElement('div',{className:'ae-Renderer-info'},Z.createElement(p,{html:t.description?t.description:''}),t.docLink&&Z.createElement('a',{target:'_blank',href:n.amisDocHost+t.docLink},B('f26225bde6a250894a04db4c53ea03d0'))):null,Z.createElement('div',{className:'ae-Renderer-preview'},e.renderThumb(t.previewSchema)))}}},Z.createElement('div',{className:'ae-RendererIcon'},Z.createElement(r,{icon:'editor-help',className:'icon'}))))})))):null})):Z.createElement('span',null,B('b797a8992ef41320919e45a069f2b459'))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleRegionFilterClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,String]),V('design:returntype',void 0)],t.prototype,'handleDragStart',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,Object]),V('design:returntype',void 0)],t.prototype,'changeCollapseFoldStatus',null),t=_([xe],t)}(Z.Component),Ua=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.handleSelect=function(e){e&&this.props.store.changeRenderersTabsKey(e)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.manager,r=t.renderersTabsKey||'base-renderers',a=t.theme,o=t.customRenderersByOrder||[],i=t.groupedSubRenderers||{},c=t.groupedCustomRenderers||{};return Z.createElement('div',{className:'ae-RendererPanel'},Z.createElement('div',{className:'panel-header'},B('bb79667f37035e9562ec6bcffd6cf8ef')),Z.createElement('div',{className:'ae-RendererPanel-content'},t.showCustomRenderersPanel&&o.length>0&&Z.createElement(v,{theme:a,tabsMode:'line',className:'ae-RendererList-tabs',linksClassName:'ae-RendererList-tabs-header',contentClassName:'ae-RendererList-tabs-content',activeKey:r,onSelect:this.handleSelect},Z.createElement(g,{key:'base-renderers',eventKey:'base-renderers',title:B('5cb297585d4c81bb8fdbd31210a30d6f'),className:'ae-RendererList-tabs-panel base-renderers',mountOnEnter:!0,unmountOnExit:!1},Z.createElement(Va,{groupedRenderers:i,store:t,manager:n,searchRendererType:'renderer'})),Z.createElement(g,{key:'custom-renderers',eventKey:'custom-renderers',title:B('6fce1c9aa3654ae2f0eedcc068a7e189'),className:'ae-RendererList-tabs-panel custom-renderers',mountOnEnter:!0,unmountOnExit:!1},Z.createElement(Va,{groupedRenderers:c,store:t,manager:n,searchRendererType:'custom-renderer'}))),(!t.showCustomRenderersPanel||Object.keys(c).length<1)&&Z.createElement(Va,{className:'only-base-component',groupedRenderers:i,store:t,manager:n,searchRendererType:'renderer'})))},_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleSelect',null),t=_([xe],t)}(Z.Component),Wa=Ae.model('EditorNode',{parentId:'',parentRegion:'',isCommonConfig:!1,id:'',type:'',label:'',regionInfo:Ae.maybe(Ae.frozen()),path:'',schemaPath:'',region:'',preferTag:'',state:Ae.optional(Ae.frozen(),{}),widthMutable:!1,heightMutable:!1,memberIndex:-1,folded:!1,patched:!1,x:0,y:0,w:0,h:0,dialogTitle:'',dialogType:'',children:Ae.optional(Ae.array(Ae.late((function(){return Wa}))),[])}).volatile((function(){return{getData:Ae.frozen()}})).views((function(e){var t,n;return{get info(){return t},getNodeById:function(t,n){for(var r=e.children.concat(),a=void 0;r.length;){var o=r.shift();if(o.id===t&&(!n||o.region===n||o.type===n)){a=o;break}o.children.length&&r.push.apply(r,o.uniqueChildren)}return a},setInfo:function(e){t=e},updateSharedContext:function(e){e&&(null==t?void 0:t.hasOwnProperty('sharedContext'))&&(t.sharedContext=e)},get rendererConfig(){return n},setRendererConfig:function(e){n=e},get isVitualRenderer(){return!!~e.memberIndex},get clickable(){var e,t;return!1!==(null===(e=this.info)||void 0===e?void 0:e.editable)||!(null===(t=this.info)||void 0===t?void 0:t.hostId)},get draggable(){var e;return!(!this.moveable||!1===(null===(e=this.info)||void 0===e?void 0:e.draggable))},get moveable(){var e,t;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.movable)||!Array.isArray(this.schemaParent)||(null===(t=this.host)||void 0===t?void 0:t.memberImmutable(this.parent.region)))},get canMoveUp(){return!(this.isRegion||!this.moveable||!Array.isArray(this.schemaParent)||!this.prevSibling)},get canMoveDown(){return!(this.isRegion||!this.moveable||!Array.isArray(this.schemaParent)||!this.nextSibling)},get removable(){var e;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.removable)||!Array.isArray(this.schemaParent)||!this.host||this.host.memberImmutable(this.parent.region))},get duplicatable(){var e;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.duplicatable)||!Array.isArray(this.schemaParent)||this.host.memberImmutable(this.parent.region))},get replaceable(){var e;return!this.isRegion&&!1!==(null===(e=this.info)||void 0===e?void 0:e.replaceable)},memberImmutable:function(e){var t,n;return!!(!0===(null===(t=this.info)||void 0===t?void 0:t.memberImmutable)||Array.isArray(null===(n=this.info)||void 0===n?void 0:n.memberImmutable)&&~this.info.memberImmutable.indexOf(e))},get isRegion(){return!!e.region},get childRegions(){var e,t,n=this.uniqueChildren.filter((function(e,t,n){return e.isRegion}));if(null===(e=this.info)||void 0===e?void 0:e.multifactor){var r=this.sameIdChild;null===(t=null==r?void 0:r.childRegions)||void 0===t||t.forEach((function(e){return n.push(e)}))}return n},get uniqueChildren(){var t=[],n={};if(e.children.forEach((function(e){var r=e.isRegion?''.concat(e.region,'-').concat(e.id):e.id;n[r]||(n[r]=!0,t.push(e))})),Array.isArray(this.schema)){var r=this.schema.map((function(e){return null==e?void 0:e.$$id})).filter((function(e){return e}));t=t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)}))}return t},get sameIdChild(){var t;return null===(t=this.uniqueChildren)||void 0===t?void 0:t.find((function(t){return!t.isRegion&&t.id===e.id}))},get singleRegion(){return!(1!==this.uniqueChildren.length||!this.uniqueChildren[0].isRegion)},isExists:function(t){return e.children.some((function(e){return e.id===t}))},getChildById:function(t){return e.children.find((function(e){return e.id===t}))},get parent(){try{var t=Me(e,2);return'root'!==(null==t?void 0:t.id)?t:null}catch(e){return null}},get ancestorField(){var t,n,r,a,o=Me(e,4);if('root'===(null==o?void 0:o.id))return null;var i=null!==(n=null===(t=null==o?void 0:o.getComponent())||void 0===t?void 0:t.props)&&void 0!==n?n:{},c=null!==(r=null==i?void 0:i.body)&&void 0!==r?r:[],s=Object.keys(null!==(a=null==i?void 0:i.data)&&void 0!==a?a:{});return Ke(L(L([],H(c.map((function(e){var t;return null!==(t=null==e?void 0:e.name)&&void 0!==t?t:''}))),!1),H(s),!1))},get host(){var t=e.parent;return(null==t?void 0:t.isRegion)&&(t=t.parent),t},get firstChild(){var t=e;if(!t.children.length)return null;for(var n=t.children[0];n;){if(!n.isRegion&&n.id!==t.id)return n;n=n.children.length?n.children[0]:null}return null},get index(){return this.parent.uniqueChildren.indexOf(e)},get prevSibling(){for(var t=this.parent.uniqueChildren,n=t.indexOf(e)-1;n>=0&&t[n];){if(t[n].id!==e.id)return t[n];n--}return null},get nextSibling(){for(var t=this.parent.uniqueChildren,n=t.length,r=t.indexOf(e)+1;r<n&&t[r];){if(t[r].id!==e.id)return t[r];r++}return null},get schema(){if(!ke(e))return null;var t=Pe(e).getSchema(e.id);return this.isRegion&&t?t[e.region]:t},get schemaParent(){var t=Pe(e);return this.isRegion?t.getSchema(e.id):t.getSchemaParentById(e.id)},get isSecondFactor(){var t;return(null===(t=this.parent)||void 0===t?void 0:t.id)===e.id}}})).actions((function(e){function t(e,n){var r=!1,a={};if(e)return n.forEach((function(n){var o=n.split('.');n=o.shift();var i=e[n];if('string'==typeof i)return r=!0,void(a[n]=[yt({type:'tpl',tpl:i,wrapperComponent:'',inline:!1})]);if(Array.isArray(i)){var c=!1,s=i.map((function(e){if('string'==typeof e&&e)return c=!0,yt({type:'tpl',tpl:e,wrapperComponent:'',inline:!1});if(o.length){var n=t(e,[o.join('.')]);n!==e&&(c=!0,e=n)}return e}));c&&(r=!0,a[n]=s)}else i&&(a[n]=[yt(i)],r=!0)})),r&&(e=$($({},e),a)),e}function n(t){var n=Array.isArray(t)?t:t?[t]:[];if(n.length){var r=Pe(e).getIframe(),a=Pe(e).getLayer().getBoundingClientRect(),o=function(e){for(var t=e.concat(),n=t.shift(),r=n.getBoundingClientRect(),a={left:r.left,top:r.top,width:r.width,height:r.height,right:r.right,bottom:r.bottom},o=n.parentElement.closest('.ae-Preview-inner,[data-region]');t.length;){var i=t.shift(),c=i.getBoundingClientRect(),s=i.parentElement.closest('.ae-Preview-inner,[data-region],[data-editor-id]');if(!o&&s)o=s;else if(s&&o&&s!==o)continue;a.left=Math.min(a.left,c.left),a.top=Math.min(a.top,c.top),a.right=Math.max(a.right,c.right),a.bottom=Math.max(a.bottom,c.bottom),a.width=a.right-a.left,a.height=a.bottom-a.top}return a}(n),i={left:o.left-a.left,top:o.top-a.top};if(r){var c=r.getBoundingClientRect();i.left+=c.left,i.top+=c.top}var s=o.height;s&&(e.x=i.left+0,e.y=i.top+0,e.w=o.width,e.h=s)}}var r;return{getClosestParentByType:function(t){for(var n=e;n===n.parent;){if(n.schema.type===t)return n;if('root'===n.id)return;n=n.parent}},getParentNodeByCB:function(t){var n=e;if(!t||'function'!=typeof t)return n;for(;n;){if(t(n))break;if('root'===n.id)return n;n=n.parent}return n},updateIsCommonConfig:function(t){e.isCommonConfig=!!t},addChild:function(t){e.children.push($($({},t),{parentId:e.id,parentRegion:e.region}));var n=e.children[e.children.length-1];return n.setInfo(t.info),n},removeChild:function(t){var n=e.children.findIndex((function(e){return e===t}));e.children[n]&&e.children.splice(n,1)},toggleFold:function(t){t.stopPropagation(),t.preventDefault(),e.folded=!e.folded},patch:function(n,a,o){var i,c;if(void 0===a&&(a=!1),!e.patched||a){e.patched=!0;var s=n,d=e.info;if(!1!==d.editable){var l=s.getSchema(d.id),u=l;(null==u?void 0:u.id)||(u=$($({},u),{id:'u:'+rt()})),(Array.isArray(d.regions)&&d.regions.length||Array.isArray(d.patchContainers))&&(u=t(u,d.patchContainers||d.regions.map((function(e){return e.key})))),u=b(u,{component:d.renderer.component}),(u=(null===(c=null===(i=d.plugin)||void 0===i?void 0:i.patchSchema)||void 0===c?void 0:c.call(i,u,{component:d.renderer.component},null==r?void 0:r.props))||u)!==l&&(o?o(d.id,u):s.changeValueById(d.id,u,void 0,!0,!0))}}},updateSchema:function(t){var n=e.info;if(!1!==n.editable){var r=Pe(e),a=r.getSchema(n.id);a=$($({},a),t),r.changeValueById(n.id,a)}},updateSchemaStyle:function(t){var n=e.info;if(!1!==n.editable){var r=Pe(e),a=r.getSchema(n.id);a=$($({},a),{style:$($({},a.style),t)}),r.changeValueById(n.id,a)}},setComponent:function(e){r=e},getComponent:function(){return r},calculateHighlightBox:function(t){var r;if(void 0===t&&(t=Pe(e)),t.calculateStarted){var a=Pe(e).getDoc();if(e.isRegion){n(o=a.querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))}else{var o=[].slice.call(a.querySelectorAll('[data-editor-id="'.concat(e.id,'"]')));n('button'===(null===(r=e.info)||void 0===r?void 0:r.renderer.name)?null==o?void 0:o[0]:o),e.childRegions.forEach((function(e){return e.calculateHighlightBox(t)}))}}},resetHighlightBox:function(t){e.x=0,e.y=0,e.w=0,e.h=0,e.childRegions.forEach((function(e){return e.resetHighlightBox(t)}))},updateState:function(t,n){void 0===n&&(n=!1),e.state=$($({},n?null:e.state),t)},setWidthMutable:function(t){e.widthMutable=!!t},setHeightMutable:function(t){e.heightMutable=!!t}}})),Za=Z.createContext(null),qa=Ae.model('EditorRoot',{isMobile:!1,isSubEditor:!1,amisDocHost:Ae.optional(Ae.string,'https://baidu.gitee.io'),root:Ae.optional(Wa,{id:'root',label:'Root'}),theme:'cxd',hoverId:'',hoverRegion:'',activeId:'',activeRegion:'',mouseMoveRegion:'',selections:Ae.optional(Ae.frozen(),[]),contextId:'',dragMode:'move',dragId:'',dragType:'',dragSchema:Ae.frozen(),dropId:'',dropRegion:'',planDropId:'',planDropRegion:'',insertId:'',insertRegion:'',insertRenderers:Ae.optional(Ae.frozen(),[]),insertRenderersKeywords:'',insertTag:B('a8b0c20416853bda54120bf19477ad11'),insertSelected:'',insertMode:'insert',insertOrigId:'',insertBeforeId:'',showInsertRenderer:!1,schema:Ae.frozen(),versionId:0,schemaHistory:Ae.optional(Ae.array(Ae.frozen()),[]),toolbars:Ae.optional(Ae.frozen(),[]),panels:Ae.optional(Ae.frozen(),[]),showCustomRenderersPanel:!1,renderersTabsKey:'base-renderers',outlineTabsKey:'component-outline',subRenderers:Ae.optional(Ae.frozen(),[]),subRenderersKeywords:'',subRenderersTag:'',subRendererRegion:'',customRenderersKeywords:'',customRenderersTag:'',panelKey:'',leftPanelKey:'',leftPanelOpenStatus:!0,jsonSchemaUri:'',scaffoldForm:Ae.maybe(Ae.frozen()),scaffoldFormStep:0,scaffoldStepManipulated:!1,scaffoldFormBuzy:!1,scaffoldError:'',popOverForm:Ae.maybe(Ae.frozen()),subEditorContext:Ae.maybe(Ae.frozen()),superEditorData:Ae.maybe(Ae.frozen()),calculateStarted:!1,targetNames:Ae.optional(Ae.array(Ae.frozen()),[]),ctx:Ae.frozen(),i18nEnabled:Ae.optional(Ae.boolean,!1),appLocale:Ae.optional(Ae.string,'zh-CN'),appCorpusData:Ae.optional(Ae.frozen(),{}),appLocaleState:Ae.optional(Ae.number,0)}).views((function(e){return{get filteredSchema(){var t,n,r,a=e.schema;return Lt(null!==(r=null===(n=(t=Fe(e)).schemaFilter)||void 0===n?void 0:n.call(t,a))&&void 0!==r?r:a)},get filteredSchemaForPreview(){var t,n,r,a=Et(e.schema);return null!==(r=null===(n=(t=Fe(e)).schemaFilter)||void 0===n?void 0:n.call(t,a,!0))&&void 0!==r?r:a},isRootSchema:function(e){var t=this.getSchema();return!(!t||t.$$id!==e)},getRootId:function(){var e=this.getSchema();return null==e?void 0:e.$$id},isHoved:function(t){return t&&e.hoverId===t},isActive:function(t){return t&&!this.dragging&&!e.insertOrigId&&e.insertBeforeId!==t&&e.activeId===t},isContextOn:function(t){return t&&e.contextId===t},get activeContainerId(){var t;if(!e.activeId)return'';for(var n=this.getNodeById(e.activeId);n;){if(n.childRegions.length||(null===(t=n.info)||void 0===t?void 0:t.regions))return n.id;n=n.host}return''},isRegionHighlighted:function(t,n){return!e.insertOrigId&&t===e.hoverId&&n===e.hoverRegion||t===e.activeId&&e.activeRegion===n||t===e.dropId&&e.dropRegion===n||!e.insertOrigId&&t===e.insertId&&e.insertRegion===n},isRegionHighlightHover:function(t,n){return t===e.hoverId&&n===e.mouseMoveRegion},isRegionActive:function(t,n){return this.isActive(t)||t===e.dropId||this.isRegionHighlighted(t,n)||this.isRegionHighlightHover(t,n)},isRegionDragEnter:function(t,n){return this.isRegionActive(t,n)&&n===e.dropRegion},get highlightNodes(){var t=this,n=[];!e.hoverId||e.dragId||e.contextId||e.activeId===e.hoverId&&!e.hoverRegion||e.selections.includes(e.hoverId)||n.push(e.hoverId),e.contextId&&n.push(e.contextId),!e.activeId&&!e.selections.length||e.dragId&&!this.draggableContainer(e.dragId)||e.insertOrigId||e.insertId||e.hoverId&&e.hoverRegion||(e.activeId?n.push(e.activeId):n.push.apply(n,e.selections));var r=this.parentIsFreeContainer(e.activeId);return r&&n.push(r),'insert'===e.insertMode&&e.insertId&&n.push(e.insertId),e.insertOrigId&&n.push(e.insertOrigId),e.dropId&&n.push(e.dropId),e.insertBeforeId&&n.push(e.insertBeforeId),n.filter((function(e,t,n){return e&&t===n.indexOf(e)})).map((function(e){return t.getNodeById(e)})).filter((function(e){return e}))},getNodeById:function(t,n){return e.root.getNodeById(t,n)},get activeNodeInfo(){var t;return null===(t=this.getNodeById(e.activeId))||void 0===t?void 0:t.info},getSchema:function(t,n){return t?St(e.schema,t,n):e.schema},getSchemaByPath:function(t){return wt(e.schema,t)},getSchemaParentById:function(t,n){return void 0===n&&(n=!1),It(e.schema,t,n)},getSchemaPath:function(t){var n=Ct(e.schema,t);return Array.isArray(n)?n.join('/'):''},getSimpleSchema:function(e){return Et(e)},getPanelKey:function(){var t,n=e.panelKey;if('none'===n)return n;var r=this.getPanels();return Le(r,(function(e){return n&&e.key===n}))?n:(null===(t=r[0])||void 0===t?void 0:t.key)||'none'},getLeftPanelKey:function(){var t=e.leftPanelKey;if(this.dragging)return'outline';if('none'===t)return t;var n=this.getLeftPanels();return Le(n,(function(e){return t&&e.key===t}))?t:'renderers'},get leftPanels(){return e.panels.filter((function(e){return'left'===e.position}))},get rightPanels(){return e.panels.filter((function(e){return'left'!==e.position&&'contextmenu'!==e.key}))},get contextMenuPanel(){return e.panels.find((function(e){return'contextmenu'===e.key}))},getPanels:function(){return[].concat(this.rightPanels||[]).sort((function(e,t){return e.order-t.order}))},getLeftPanels:function(){var t=[].concat(this.leftPanels||[]);return e.insertId&&e.insertRegion&&t.push({key:'insert',icon:'fa fa-bolt',position:'left',title:'replace'===e.insertMode?B('1dd554cdfc1ddf7dce13453805523c16'):B('9bdb07e72d3a9a6084201a7398523f5a'),component:Hn,order:9999}),t.push({key:'insertRenderer',icon:'fa fa-bolt',position:'left',title:B('a82240ce09faf0b972a8aa5c9e93d209'),component:Ua,order:9999}),t.sort((function(e,t){return e.order-t.order}))},get sortedToolbars(){return e.toolbars.filter((function(e){return'secondary'!==e.level&&'special'!==e.level})).sort((function(e,t){return e.order-t.order}))},get sortedSecondaryToolbars(){return e.toolbars.filter((function(e){return'secondary'===e.level})).sort((function(e,t){return e.order-t.order}))},get sortedSpecialToolbars(){return e.toolbars.filter((function(e){return'special'===e.level})).sort((function(e,t){return e.order-t.order}))},get value(){if(e.activeId)return this.getValueOf(e.activeId)},getValueOf:function(t){return Et(St(e.schema,t),!1)},get valueWithoutHiddenProps(){if(e.activeId){var t=e.isSubEditor,n=Fe(e).isHiddenProps;return Et(St(e.schema,e.activeId),(function(e,r){return!(!t||'definitions'!==e)||('function'==typeof n?n(e,r):'$$'===e.substring(0,2)&&'$$comments'!==e&&'$$commonSchema'!==e||'function'==typeof r||'__'===e.substring(0,2))}))}},get outline(){return e.root.children},get bcn(){var t=[];return e.activeId&&te(e.root.children,(function(n,r,a,o){return n.id===e.activeId&&(t=o.concat(n),!0)})),t.filter((function(e){return!e.isSecondFactor}))},get activePath(){return this.getNodePathById(e.activeId)},getNodePathById:function(t){var n=[];if(!t)return n;var r=function(e,a){return void 0===a&&(a=[]),e.every((function(e){return e.id===t?(n=a.concat(e),!1):!e.children||!e.children.length||r(e.children,a.concat(e))}))};return r(e.root.children),n},get dragging(){return!this.draggableContainer(e.dragId)&&!(!e.dragId&&!e.dropId)},get needPatch(){var t=function(e){return e.some((function(e){return!e.patched&&!e.isRegion||!!e.uniqueChildren.length&&t(e.uniqueChildren)}))};return t(e.root.children)},get schemaRaw(){return Et(e.schema)},get subRenderersByOrder(){return e.subRenderers.filter((function(t){return!(!t.disabledRendererPlugin&&e.showCustomRenderersPanel)||t.isBaseComponent})).sort((function(e,t){return e.order-t.order}))},get customRenderersByOrder(){return e.subRenderers.filter((function(e){return!e.disabledRendererPlugin&&!e.isBaseComponent})).sort((function(e,t){return e.order-t.order}))},groupedRenderersByKeyword:function(e,t){void 0===t&&(t='');var n=e,r={},a=new Map;return ze(n,t,{keys:['name','description','scaffold.type','searchKeywords']}).forEach((function(e){a.set(e.id,e)})),n.forEach((function(e){a.has(e.id)&&(Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:[B('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(t){r[t]=r[t]||[],r[t].push(e)}))})),r},groupedSubRenderersByKeyword:function(e,t){var n=e||this.subRenderersByOrder;return this.groupedRenderersByKeyword(n,t)},get groupedSubRenderers(){if(e.subRenderersTag){var t={},n=this.groupedSubRenderersByKeyword()[e.subRenderersTag];return n&&(t[e.subRenderersTag]=n),t}return this.groupedSubRenderersByKeyword(this.subRenderersByOrder,e.subRenderersKeywords)},groupedCustomRenderersByKeyword:function(e,t){var n=e||this.customRenderersByOrder;return this.groupedRenderersByKeyword(n,t)},get groupedCustomRenderers(){if(e.customRenderersTag){var t={},n=this.groupedCustomRenderersByKeyword()[e.customRenderersTag];return n&&(t[e.customRenderersTag]=n),t}return this.groupedCustomRenderersByKeyword(this.customRenderersByOrder,e.customRenderersKeywords)},getSubRendererById:function(t){return Le(e.subRenderers||[],(function(e){return e.id===t}))},get groupedInsertRenderers(){var t,n=((t={})[B('a8b0c20416853bda54120bf19477ad11')]=[],t),r=e.insertRenderersKeywords,a=new RegExp(ln(r),'i');return e.insertRenderers.concat().sort((function(e,t){return e.order-t.order})).forEach((function(e){r&&!['name','description','scaffold.type'].some((function(t){return y(t,e)&&a.test(y(t,e))}))||((Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:[B('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(t){n[t]=n[t]||[],n[t].push(e)})),n[B('a8b0c20416853bda54120bf19477ad11')].push(e))})),n},get selectedInsertRendererInfo(){return Le(e.insertRenderers,(function(t){return t.id===e.insertSelected}))},get subEditorSlotPath(){var t,n=null===(t=e.subEditorContext)||void 0===t?void 0:t.slot;if(!n)return'';var r=[],a=function(e,t){return void 0===t&&(t=[]),!(!Array.isArray(e)||!e.some((function(e,n){return a(e,t.concat(''.concat(n)))})))||(Ee(e)?Object.keys(e).some((function(n){return a(e[n],t.concat(n))})):'$$'===e&&(r=t.concat(),!0))};return a(n),r.length?r.join('/'):''},get subEditorValue(){if(e.subEditorContext)return e.subEditorContext.slot?$($({},re(e.subEditorContext.slot,(function(t){return'$$'===t?e.subEditorContext.value:t}))),{isSlot:!0}):e.subEditorContext.value},get canUndo(){return 0!==e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}))},get canRedo(){return e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}))<e.schemaHistory.length-1},isFlexContainer:function(t){var n,r,a=null!=t?t:e.activeId,o=this.getSchema(a);return'flex'===(null===(n=null==o?void 0:o.style)||void 0===n?void 0:n.display)||'inline-flex'===(null===(r=null==o?void 0:o.style)||void 0===r?void 0:r.display)},isFlexItem:function(t){var n,r,a=null!=t?t:e.activeId,o=this.getSchemaParentById(a,!0);return'flex'===(null==o?void 0:o.type)||'flex'===(null===(n=null==o?void 0:o.style)||void 0===n?void 0:n.display)||'inline-flex'===(null===(r=null==o?void 0:o.style)||void 0===r?void 0:r.display)},isFlexColumnItem:function(t){var n,r,a,o,i=null!=t?t:e.activeId,c=this.getSchemaParentById(i,!0),s='flex'===(null==c?void 0:c.type)||'flex'===(null===(n=null==c?void 0:c.style)||void 0===n?void 0:n.display)||'inline-flex'===(null===(r=null==c?void 0:c.style)||void 0===r?void 0:r.display),d='column'===(null==c?void 0:c.direction)||'column-reverse'===(null==c?void 0:c.direction)||'column'===(null===(a=null==c?void 0:c.style)||void 0===a?void 0:a.flexDirection)||'column-reverse'===(null===(o=null==c?void 0:c.style)||void 0===o?void 0:o.flexDirection);return!(!s||!d)},draggableContainer:function(t){var n=t||e.activeId,r=this.getSchema(n),a=(null==r?void 0:r.style)||{};return'fixed'===(null==a?void 0:a.position)||'absolute'===(null==a?void 0:a.position)},parentIsFreeContainer:function(t){var n=null!=t?t:e.activeId,r=this.getNodeById(n),a=null==r?void 0:r.parent;if(!a)return!1;var o=this.getSchema(a.id);return!!(null==o?void 0:o.isFreeContainer)&&a.id},get getSuperEditorData(){return e.superEditorData||{}},getComponentTreeSource:function(){var t;return ae(null!==(t=e.root.children)&&void 0!==t?t:[],(function(t){var n,r,a,o=t.id?St(e.schema,t.id):e.schema,i='',c=hn(null==t?void 0:t.label),s=hn(null==o?void 0:o.label),d=hn(null==o?void 0:o.title);if(null==t?void 0:t.region)i=c;else{var l='cell'!==t.type?'<'.concat(c,'>'):B('b71e8739cb9bcba8057a8fa8b59512da');i=''.concat(l).concat(null!==(n=null!=s?s:d)&&void 0!==n?n:c)}return i=null!=i?i:c,{id:t.id,label:i,value:null!==(r=null==o?void 0:o.id)&&void 0!==r?r:t.id,type:null!==(a=null==o?void 0:o.type)&&void 0!==a?a:t.type,schema:o,disabled:!!t.region,visible:!t.region||!!(null==t?void 0:t.children.length),children:null==t?void 0:t.children}}),1,!0)},get scaffoldData(){var t;return oe(e.ctx,$($({},(null===(t=e.scaffoldForm)||void 0===t?void 0:t.value)||{}),{__step:e.scaffoldFormStep}))},get modals(){var t=e.schema,n=[];if(Qt(t,(function(e,t,r){if('actionType'===t&&['dialog','drawer','confirmDialog'].includes(e)){var a=r['drawer'===e?'drawer':'dialog']||r.args;!a||a.$ref||n.find((function(e){return e.$$id===a.$$id}))||n.push($($({},a),{actionType:e}))}return e})),Object.keys(t.definitions||{}).reverse().forEach((function(e){var r=t.definitions[e];if(['dialog','drawer'].includes(r.type)){if(r.$$originId&&n.find((function(e){return e.$$id===r.$$originId})))return;n.unshift($($({},r),{$$ref:e}))}})),['dialog','drawer','confirmDialog'].includes(t.type)){var r=n.findIndex((function(e){return e.$$id===t.$$id}));~r&&n.splice(r,1),n.unshift($($({},t),{definitions:void 0}))}return n},get modalOptions(){return this.modals.map((function(e){var t;return{label:''.concat((null===(t=e.editorSetting)||void 0===t?void 0:t.displayName)||e.title||'未命名弹窗'),tip:'confirmDialog'===e.actionType?'确认框':'drawer'===e.type?'抽屉弹窗':B('6cff4b6d794cc17f5d24dbe0d21e5732'),value:e.$$id,$$ref:e.$$ref}}))}}})).actions((function(e){Fe(e);var t=0,n=null,r=void 0,a=document,o=void 0,i=Se((function(){return e.updateTargetName()}),250,{leading:!1,trailing:!0});return{setLayer:function(e){r=e},getLayer:function(){return r},setDoc:function(e){a=e},getDoc:function(){return a},setIframe:function(e){o=e},getIframe:function(){return o},setIsMobile:function(t){e.isMobile=!!t},setCtx:function(t){(null==t?void 0:t.__super)&&(t=ie(t).reduce((function(e,t){return Object.assign(e,t)}),{})),e.ctx=t},setTheme:function(t){e.theme=t},setIsSubEditor:function(t){e.isSubEditor=t},setShowCustomRenderersPanel:function(t){e.showCustomRenderersPanel=t},setSchema:function(t){var n,r=yt(t||{});if(e.schema&&Object.keys(e.schema).length>1){var a=Jt(e.schema,r,(function(e,t){return'$$id'===t})),o=Gt(e.schema,a);if('A'===(null===(n=null==a?void 0:a[0])||void 0===n?void 0:n.kind)&&('D'===a[0].item.kind||'N'===a[0].item.kind)&&Array.isArray(a[0].path)){var c=a[0].path,s=c.pop(),d=c.reduce((function(e,t){return e[t]}),o);d[s]=d[s].map((function(e){return Ee(d[s])?$($({},e),{$$id:rt()}):e}))}e.schema=o}else e.schema=r;this.resetHistory(),i()},insertSchema:function(t){var n,r=t.context.id,a=t.context.region,o=St(e.schema,r);if(o){var i=yt(t.context.data);(null==o?void 0:o.isFreeContainer)&&(i.style={position:'absolute',inset:'10px auto auto 10px'},un(i.type)&&(i.style.width='300px'));var c=Array.isArray(o[a])?o[a].concat():o[a]?[o[a]]:[];if(t.context.beforeId){var s=_e(c,(function(e){return(null==e?void 0:e.$$id)===t.context.beforeId}));~s?c.splice(s,0,i):c.push(i)}else c.push(i);return this.traceableSetSchema(xt(e.schema,r,((n={})[a]=c,n))),t.context.data=i,i}},moveSchema:function(t){var n,r=t.context,a=e.schema;if(r.sourceId!==r.beforeId){var o=St(a,r.sourceId);a=Rt(a,r.sourceId,void 0,!0);var i=r.region,c=St(a,r.id)[i];if(c=Array.isArray(c)?c.concat():c?[c]:[],r.beforeId){var s=_e(c,(function(e){return e.$$id===r.beforeId}));if(!~s)throw new Error(B('eadc8c8d4a8776893672330598babca0'));c.splice(s,0,o)}else c.push(o);this.traceableSetSchema(xt(a,r.id,((n={})[i]=c,n)))}},setActiveId:function(t,n,r){void 0===n&&(n=''),void 0===r&&(r=[]);var a=t?e.getNodeById(t):void 0;!1===(null==a?void 0:a.clickable)||t&&!a||(e.activeId=t,e.activeRegion=n,e.selections=r)},setSelections:function(t){e.activeId='',e.activeRegion='',e.selections=t?t.concat():[]},clearSelection:function(){e.selections=[]},setHoverId:function(t,n){var r=t?e.getNodeById(t):void 0;!1!==(null==r?void 0:r.clickable)&&(e.hoverId=t,e.hoverRegion=n||'')},setMouseMoveRegion:function(t){e.mouseMoveRegion=t},setInsertId:function(t){e.insertId=t},setContextId:function(t){e.contextId=t},setDragId:function(t,n,r,a){void 0===n&&(n='move'),void 0===r&&(r='schema'),e.dragId=t,e.dragMode=n,e.dragType=r,e.dragSchema=a||(t?e.getSchema(t):null)},setDropId:function(t,n){void 0===n&&(n=''),e.dropId=t,e.dropRegion=n,e.planDropId='',e.planDropRegion=''},setPlanDropId:function(t,n){e.planDropId=t,e.planDropRegion=n},setActiveToolbars:function(t){e.toolbars=t},setPanels:function(t){e.panels=t},setSubRenderers:function(t){e.subRenderers=t},changeSubRenderersKeywords:function(t){e.subRenderersKeywords=t,e.subRenderersTag=''},changeSubRenderersTag:function(t){e.subRenderersKeywords='',e.subRenderersTag=t},resetSubRenderersKeywords:function(){e.subRenderersKeywords='',e.subRenderersTag=''},changeCustomRenderersKeywords:function(t){e.customRenderersKeywords=t,e.customRenderersTag=''},changeCustomRenderersTag:function(t){e.customRenderersKeywords='',e.customRenderersTag=t},resetCustomRenderersKeywords:function(){e.customRenderersKeywords='',e.customRenderersTag=''},changeSubRendererRegion:function(t){e.subRendererRegion=t},changePanelKey:function(t){t!==e.getPanelKey()&&(e.panelKey=t)},changeLeftPanelKey:function(t){'insert'!==t&&'insert'!==e.panelKey&&t!==e.getLeftPanelKey()&&(e.leftPanelKey=t)},changeRenderersTabsKey:function(t){t!==e.renderersTabsKey&&(e.renderersTabsKey=t)},changeOutlineTabsKey:function(t){t!==e.outlineTabsKey&&(e.outlineTabsKey=t)},changeLeftPanelOpenStatus:function(t){t!==e.leftPanelOpenStatus&&(e.leftPanelOpenStatus=t)},showRendererPanel:function(t,n){'renderers'!==e.getLeftPanelKey()?e.leftPanelKey='renderers':t!==e.subRenderersTag&&t||d.info(n||B('f3c057f37fb9a4e7dd44b04919c12578')),e.renderersTabsKey='base-renderers',t&&this.changeSubRenderersTag(t),this.changeLeftPanelOpenStatus(!0)},changeValue:function(t,n,r,a){void 0===a&&(a=e.activeId),a&&this.changeValueById(a,t,n,void 0,void 0,r)},definitionOnchangeValue:function(t,n){this.changeValueById(e.getRootId(),t,n)},changeValueById:function(t,n,r,a,o,i){var c=St(e.schema,t);if(c)if(r){var s=Gt(c,r),d=xt(e.schema,t,yt(s),!0);d=(null==i?void 0:i(d,n,t,r))||d,this.traceableSetSchema(d,o)}else{d=xt(e.schema,t,yt(n),a);d=(null==i?void 0:i(d,n,t))||d,this.traceableSetSchema(xt(e.schema,t,yt(n),a),o)}},batchChangeValue:function(t){this.traceableSetSchema(t.reduce((function(e,t){return xt(e,t.id,yt(t.value),!0)}),e.schema),!0)},updateContainerStyleByDrag:function(t,n,r){var a=t||e.dragId;if(a){var o=e.getSchema(a),i=(null==o?void 0:o.style)||{};if(a&&'fixed'===(null==i?void 0:i.position)||'absolute'===(null==i?void 0:i.position)){var c=(i.inset||'auto').split(' '),s={top:c[0]||'auto',right:c[1]||'auto',bottom:c[2]||c[0]||'auto',left:c[3]||c[1]||'auto'},d=''.concat('auto'!==s.top?dn(s.top,r):'auto',' ').concat('auto'!==s.right?dn(s.right,-n):'auto',' ').concat('auto'!==s.bottom?dn(s.bottom,-r):'auto',' ').concat('auto'!==s.left?dn(s.left,n):'auto');this.changeValueById(a,$($({},o),{style:$($({},i),{inset:d})})),this.calculateHighlightBox([a])}}},moveUp:function(t){t&&this.traceableSetSchema(At(e.schema,t))},moveDown:function(t){t&&this.traceableSetSchema(Pt(e.schema,t))},del:function(t){var n,r;if(t===e.activeId){var a=null===(n=e.getNodeById(t))||void 0===n?void 0:n.host;this.setActiveId(a?a.id:'')}else if(e.activeId){var o=St(e.schema,t);if(St(o,e.activeId)){a=null===(r=e.getNodeById(t))||void 0===r?void 0:r.host;this.setActiveId(a?a.id:'')}}this.traceableSetSchema(Rt(e.schema,t))},delMulti:function(t){var n=this;(Array.isArray(t)?t:[t]).forEach((function(t){var r,a;if(t===e.activeId){var o=null===(r=e.getNodeById(t))||void 0===r?void 0:r.host;n.setActiveId(o?o.id:'')}else if(e.activeId){var i=St(e.schema,t);if(St(i,e.activeId)){o=null===(a=e.getNodeById(t))||void 0===a?void 0:a.host;n.setActiveId(o?o.id:'')}}})),this.traceableSetSchema(t.reduce((function(e,t){return Rt(e,t)}),e.schema))},duplicate:function(t){this.traceableSetSchema((Array.isArray(t)?t:[t]).reduce((function(e,t){return Ft(e,t)}),e.schema))},emptyRegion:function(t,n){var r;this.traceableSetSchema(xt(e.schema,t,((r={})[n]=[],r)))},replaceChild:function(t,n){this.traceableSetSchema(xt(e.schema,t,yt(n),!0))},setInsertRegion:function(t,n,r,a,o,i){void 0===n&&(n=''),void 0===r&&(r=B('a8b0c20416853bda54120bf19477ad11')),void 0===a&&(a='insert'),void 0===o&&(o=''),e.insertId=n,e.insertRegion=t,e.insertTag=r,e.insertMode=a,e.insertOrigId=o,e.insertBeforeId=i||''},closeInsertPanel:function(){e.insertOrigId='',e.insertId='',e.insertRegion='',e.insertSelected='',e.insertRenderersKeywords='',e.insertBeforeId=''},showInsertRendererPanel:function(){e.showInsertRenderer=!0},closeInsertRendererPanel:function(){e.showInsertRenderer=!1},setInsertRenderers:function(t){e.insertRenderers=t},changeInsertRenderersKeywords:function(t){e.insertRenderersKeywords=t},resetInsertRenderersKeywords:function(){e.insertRenderersKeywords=''},setInsertTag:function(t){e.insertTag=t},setInsertSelected:function(t){e.insertSelected=t},setJSONSchemaUri:function(t){e.jsonSchemaUri=t},addModal:function(t,n){var r=H(xn(e.schema,t,n),1)[0];this.traceableSetSchema(r)},countModalActionRefs:function(t){var n=0,r=It(e.schema,t);if(null==r?void 0:r.actionType)return r.type?0:1;if(r!==e.schema.definitions)return n;var a=Object.keys(r).find((function(e){var n;return(null===(n=r[e])||void 0===n?void 0:n.$$id)===t}));return Qt(e.schema,(function(e,t,r){var o;return'actionType'===t&&['dialog','drawer','confirmDialog'].includes(e)&&(null===(o=r['drawer'===e?'drawer':'dialog'])||void 0===o?void 0:o.$ref)===a&&n++,e})),n},removeModal:function(t){var n=e.schema,r=It(n,t);if(r===n.definitions){var a=Object.keys(r).find((function(e){var n;return(null===(n=r[e])||void 0===n?void 0:n.$$id)===t}));Qt(n,(function(e,t,r){var o;return'actionType'===t&&['dialog','drawer','confirmDialog'].includes(e)&&(null===(o=r['drawer'===e?'drawer':'dialog'])||void 0===o?void 0:o.$ref)===a&&(n=Rt(n,r.$$id)),e})),n=Rt(n,t)}else n=Rt(n,r.$$id);this.traceableSetSchema(n)},updateModal:function(t,n,r){var a,o,i,c=e.schema,s=It(c,t);if(!s)throw new Error('modal not found');n=yt(n),r&&Ee(r)&&(c=Nn(c,r,n));var d='drawer'===(n.actionType||n.type)?'drawer':'dialog';if(c=xt(c,t,n,!0),s.actionType)c=xt(c,s.$$id,((a={actionType:n.actionType||n.type,args:void 0,dialog:void 0,drawer:void 0})[d]=n,a),!0);else{var l=Object.keys(s).find((function(e){var n;return(null===(n=s[e])||void 0===n?void 0:n.$$id)===t}));Qt(c,(function(e,t,r){var a,o;return'actionType'===t&&['dialog','drawer','confirmDialog'].includes(e)&&(null===(o=r['drawer'===e?'drawer':'dialog'])||void 0===o?void 0:o.$ref)===l&&d!==('drawer'===e?'drawer':'dialog')&&(c=xt(c,r.$$id,((a={actionType:n.actionType||n.type,args:void 0,dialog:void 0,drawer:void 0})[d]=r['drawer'===e?'drawer':'dialog'],a),!0)),e}))}var u=[];if(Qt(n,(function(e,n,r){'$ref'===n&&r.$$originId===t&&u.push(r.$$id)})),u.length){var p;o=H(xn(c,n),2),c=o[0],p=o[1],c=xt(c,s.$$id,((i={})[d]=yt({$ref:p}),i),!0),u.forEach((function(e){c=xt(c,e,{$ref:p,$$originId:void 0},!0)}))}this.traceableSetSchema(c)},openSubEditor:function(t){var n=e.activeId;n&&(e.subEditorContext=$($({},t),{hostNode:e.getNodeById(n),data:oe(e.ctx,ce(t.data,{__curCmptTreeWrap:{label:t.title,disabled:!0},__superCmptTreeSource:e.getComponentTreeSource()}))}))},confirmSubEditor:function(t){var n,r=H(t,1)[0],a=e.subEditorContext,o=a.onChange,i=a.slot,c=r.schema,s=(null===(n=r.__pristine)||void 0===n?void 0:n.schema)||c;if(i){var d=e.subEditorSlotPath.replace(/(?:\/)/g,'.');c=se(c,d),s=se(s,d),Array.isArray(c)&&1===c.length&&!Array.isArray(s)&&(c=c[0])}o(c,o.length>1?Jt(s,c):void 0),e.subEditorContext=void 0},closeSubEditor:function(){e.subEditorContext=void 0},subEditorOnChange:function(){n&&(e.subEditorContext=$($({},e.subEditorContext),{canUndo:n.canUndo(),canRedo:n.canRedo()}))},undoSubEditor:function(){n&&n.undo()},redoSubEditor:function(){n&&n.redo()},subEditorRef:function(e){n=e},getSubEditorRef:function(){return n},openScaffoldForm:function(t){e.scaffoldForm=t,e.scaffoldStepManipulated=!1},closeScaffoldForm:function(){e.scaffoldForm=void 0},setScaffoldBuzy:function(t){e.scaffoldFormBuzy=!!t},setScaffoldStep:function(t){e.scaffoldFormStep=t},setScaffoldStepManipulated:function(t){e.scaffoldStepManipulated=t},setScaffoldError:function(t){void 0===t&&(t=''),e.scaffoldError=t},updateScaffoldData:function(t,n){e.scaffoldForm&&t&&(e.scaffoldForm=$($({},e.scaffoldForm),{value:n?t:$($({},e.scaffoldForm.value),t)}))},openPopOverForm:function(t){e.popOverForm=t},closePopOverForm:function(){e.popOverForm=void 0},calculateHighlightBox:function(t){e.calculateStarted=!0,t.forEach((function(t){var n=e.getNodeById(t);null==n||n.calculateHighlightBox(e)}))},resetHighlightBox:function(t){t.forEach((function(t){var n=e.getNodeById(t);null==n||n.resetHighlightBox(e)}))},updateTargetName:function(){var t=[];Qt(e.schema,(function(e,n,r){return'name'===n&&e&&r&&('crud'===r.type||'form'===r.type||'page'===r.type||'service'===r.type||'chart'===r.type||'wizard'===r.type)&&t.push({type:r.type,name:e,editorId:r.$$id}),e})),e.targetNames=De(t)},traceableSetSchema:function(n,r){var a=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));~a&&e.schemaHistory.splice(a+1,e.schemaHistory.length-a-1),r&&e.schemaHistory.pop(),e.schemaHistory.push({versionId:e.versionId=t++,schema:n}),e.schema=n,i()},undo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t>0){var n=e.schemaHistory[t-1];e.versionId=n.versionId,e.schema=n.schema,i(),this.autoSelectRoot()}},redo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t<e.schemaHistory.length-1){var n=e.schemaHistory[t+1];e.versionId=n.versionId,e.schema=n.schema,i(),this.autoSelectRoot()}},autoSelectRoot:function(){e.getSchema(e.activeId)||this.setActiveId(e.getRootId())},resetHistory:function(){t=0,e.versionId=t++,e.schemaHistory.replace([{versionId:e.versionId,schema:e.schema}]),this.autoSelectRoot()},applyPatches:function(t){var n=e.schema;t.forEach((function(e){var t,r;if('update'===e.op)n=xt(n,e.target,e.value);else if('replace'===e.op)n=xt(n,e.target,e.value,!0);else if('delete'===e.op)n=Rt(n,e.target);else if('push'===e.op){var a=(o=St(n,e.target))[e.key];(a=Array.isArray(a)?a.concat():a?[a]:[]).push(e.value),o=$($({},o),((t={})[e.key]=a,t)),n=xt(n,e.target,o)}else if('splice'===e.op){var o;a=(o=St(n,e.target))[e.key];(a=Array.isArray(a)?a.concat():a?[a]:[]).splice.apply(a,L([],H(e.args),!1)),o=$($({},o),((r={})[e.key]=a,r)),n=xt(n,e.target,o)}})),this.traceableSetSchema(n)},updateAppLocaleState:function(){e.appLocaleState+=1},setAppLocale:function(t){t&&(e.appLocale=t,this.updateAppLocaleState())},setAppCorpusData:function(t){void 0===t&&(t={}),e.appCorpusData=t,this.updateAppLocaleState()},beforeDestroy:function(){i.cancel()}}})),Ya=function(e,t){var n=(t||{}).fallback,r=Z.lazy((function(){return T(void 0,void 0,void 0,(function(){var t;return j(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return t=n.sent(),[2,{default:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Z.createElement(Z.Fragment,null,t.apply(void 0,L([],H(e),!1)))}}]}}))}))}));return function(e){return Z.createElement(Z.Suspense,{fallback:n&&Z.isValidElement(n)?n:Z.createElement(E,{show:!0,overlay:!0,size:'sm',tip:B('e9d4c83c9cdc23c65d11f74866636661'),tipPlacement:'bottom',className:'flex'})},Z.createElement(r,$({},e)))}};function Xa(e,t){var n={context:t,type:e,prevented:!1,stoped:!1,preventDefault:function(){n.prevented=!0},stopPropagation:function(){n.stoped=!0},get data(){return n.context.data},setData:function(e){n.context.data=e}};return n}var Ja=function(){function e(e){this.manager=e}return e.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema,r=this;if(n.$$id&&r.name&&r.rendererName&&r.rendererName===t.name){var a=r.name;return(null==n?void 0:n.isFreeContainer)?a=B('db805d4e361ac2d3fc6047eaea1a7c69'):(null==n?void 0:n.isSorptionContainer)&&(a=B('969e9e56b3812abffa3994f35ea31835')),{name:a,regions:r.regions,patchContainers:r.patchContainers,vRendererConfig:r.vRendererConfig,wrapperProps:r.wrapperProps,wrapperResolve:r.wrapperResolve,filterProps:r.filterProps,$schema:r.$schema,renderRenderer:r.renderRenderer,multifactor:r.multifactor,scaffoldForm:r.scaffoldForm,disabledRendererPlugin:r.disabledRendererPlugin,isBaseComponent:r.isBaseComponent,isListComponent:r.isListComponent,rendererName:r.rendererName,memberImmutable:r.memberImmutable,getSubEditorVariable:r.getSubEditorVariable}}},e.prototype.buildEditorPanel=function(e,t){var n,r,a,o,i,c,s=this,d=this,l=this.manager.store;if(l.activeId&&!e.selections.length){if(!e.info.hostId&&(d.panelControls||d.panelControlsCreator||d.panelBody||d.panelBodyCreator||d.panelBodyAsyncCreator)&&e.info.plugin===this){var u=!(!d.panelBodyAsyncCreator||'function'!=typeof d.panelBodyAsyncCreator),p=d.panelBodyAsyncCreator?d.panelBodyAsyncCreator(e):d.panelBodyCreator?d.panelBodyCreator(e):d.panelBody;this.manager.trigger('after-build-panel-body',{context:e,data:p,plugin:d});var f={definitions:d.panelDefinitions,submitOnChange:d.panelSubmitOnChange,api:d.panelApi,controls:d.panelControlsCreator?d.panelControlsCreator(e):d.panelControls,justify:d.panelJustify,panelById:l.activeId,pipeOut:null===(r=null===(n=d.panelFormPipeOut)||void 0===n?void 0:n.bind)||void 0===r?void 0:r.call(n,d)};t.push({key:'config',icon:d.panelIcon||d.icon||'fa fa-cog',pluginIcon:d.pluginIcon,title:d.panelTitle||B('e366ccf1556c0672dcecba135ed5472e'),render:u?Ya((function(){return T(s,void 0,void 0,(function(){var e;return j(this,(function(t){switch(t.label){case 0:return[4,p];case 1:return e=t.sent(),[2,this.manager.makeSchemaFormRender($($({},f),{body:e}))]}}))}))}),$e(d.async,'enable')):this.manager.makeSchemaFormRender($($({},f),{body:p}))})}else e.info.plugin===this&&e.info.hostId&&((null===(a=d.vRendererConfig)||void 0===a?void 0:a.panelControls)||(null===(o=d.vRendererConfig)||void 0===o?void 0:o.panelControlsCreator)||(null===(i=d.vRendererConfig)||void 0===i?void 0:i.panelBody)||(null===(c=d.vRendererConfig)||void 0===c?void 0:c.panelBodyCreator))&&t.push({key:e.info.multifactor?'vconfig':'config',icon:d.vRendererConfig.panelIcon||'fa fa-cog',title:d.vRendererConfig.panelTitle||B('e366ccf1556c0672dcecba135ed5472e'),render:this.manager.makeSchemaFormRender({submitOnChange:d.panelSubmitOnChange,api:d.panelApi,definitions:d.vRendererConfig.panelDefinitions,controls:d.vRendererConfig.panelControlsCreator?d.vRendererConfig.panelControlsCreator(e):d.vRendererConfig.panelControls,body:d.vRendererConfig.panelBodyCreator?d.vRendererConfig.panelBodyCreator(e):d.vRendererConfig.panelBody,justify:d.vRendererConfig.panelJustify,panelById:l.activeId})});if(e.info.plugin===this&&e.info.multifactor){var h=e.node.sameIdChild;if(h)this.manager.collectPanels(h,!1,!0).forEach((function(e){var n,r;'config'!==e.key&&'vconfig'!==e.key||t.push($($({},e),{key:'sub-'.concat(e.key),icon:(null===(r=null===(n=h.info)||void 0===n?void 0:n.plugin)||void 0===r?void 0:r.icon)||e.icon}))}))}}},e.prototype.buildSubRenderers=function(e,t,n){var r=this;return Array.isArray(r.scaffolds)?r.scaffolds.map((function(e){var t,n,a,o,i,c,s,d;return{name:null!==(t=e.name)&&void 0!==t?t:r.name,icon:null!==(n=e.icon)&&void 0!==n?n:r.icon,pluginIcon:r.pluginIcon,description:null!==(a=e.description)&&void 0!==a?a:r.description,previewSchema:null!==(o=e.previewSchema)&&void 0!==o?o:r.previewSchema,tags:null!==(i=e.tags)&&void 0!==i?i:r.tags,docLink:null!==(c=e.docLink)&&void 0!==c?c:r.docLink,type:null!==(s=e.type)&&void 0!==s?s:r.type,scaffold:null!==(d=e.scaffold)&&void 0!==d?d:r.scaffold,scaffoldForm:r.scaffoldForm,disabledRendererPlugin:r.disabledRendererPlugin,isBaseComponent:r.isBaseComponent,rendererName:r.rendererName}})):r.name&&r.description?{searchKeywords:r.searchKeywords,name:r.name,icon:r.icon,description:r.description,previewSchema:r.previewSchema,tags:r.tags,docLink:r.docLink,type:r.type,scaffold:r.scaffold,scaffoldForm:r.scaffoldForm,disabledRendererPlugin:r.disabledRendererPlugin,isBaseComponent:r.isBaseComponent,pluginIcon:r.pluginIcon,rendererName:r.rendererName}:void 0},e.prototype.renderPlaceholder=function(e,t,n){return Z.createElement('div',{key:t,className:'wrapper-sm b-a b-light m-b-sm',style:n,children:Z.createElement('span',{className:'text-muted',children:e})})},e.prototype.getPlugin=function(e){return Le(this.manager.plugins,(function(t){return'string'==typeof e?t.rendererName===e:t instanceof e}))},e.prototype.buildDataSchemas=function(e,t,n,r){return{type:'string',title:'string'==typeof e.schema.label?e.schema.label:e.schema.name,originalValue:e.schema.value}},e.scene=['global'],e}(),Ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.onActive=function(e){var t,n=e.context;if((null===(t=n.info)||void 0===t?void 0:t.plugin)===this&&n.node){var r=n.node,a=r.schema||{};a.isFixedWidth&&r.setWidthMutable(!0),a.isFixedHeight&&r.setHeightMutable(!0)}},t.prototype.onWidthChangeStart=function(e){return this.onSizeChangeStart(e,'horizontal')},t.prototype.onHeightChangeStart=function(e){return this.onSizeChangeStart(e,'vertical')},t.prototype.onSizeChangeStart=function(e,t){var n;void 0===t&&(t='both');var r=e.context,a=r.node,o=r.store;if((null===(n=a.info)||void 0===n?void 0:n.plugin)===this){var i=r.resizer,c=r.dom,s=o.getDoc()||document,d=c.parentElement.getBoundingClientRect(),l=c.getBoundingClientRect(),u=r.nativeEvent.pageX,p=r.nativeEvent.pageY;e.setData({onMove:function(e){var n=e.pageY-p,r=e.pageX-u,o=Math.max(50,l.height+n),c=Math.max(100,Math.min(l.width+r,d.width)),f={width:c,height:o},h=s.querySelector('[data-hlbox-id=\''.concat(a.id,'\']')),m=s.querySelector('[data-editor-id=\''.concat(a.id,'\']'));'both'===t?(i.setAttribute('data-value',''.concat(c,'px x ').concat(o,'px')),h.style.height=''.concat(o,'px'),h.style.width=''.concat(c,'px'),m.style.height=''.concat(o,'px'),m.style.width=''.concat(c,'px')):'vertical'===t?(i.setAttribute('data-value',''.concat(o,'px')),h.style.height=''.concat(o,'px'),m.style.height=''.concat(o,'px'),delete f.width):(i.setAttribute('data-value',''.concat(c,'px')),h.style.width=''.concat(c,'px'),m.style.width=''.concat(c,'px'),delete f.height),a.updateState(f),requestAnimationFrame((function(){a.calculateHighlightBox()}))},onEnd:function(e){var n=e.pageY-p,r=e.pageX-u,o=Math.max(50,l.height+n),c={width:Math.max(100,Math.min(l.width+r,d.width)),height:o};'vertical'===t?delete c.width:'horizontal'===t&&delete c.height,i.removeAttribute('data-value'),a.updateSchemaStyle(c),requestAnimationFrame((function(){a.calculateHighlightBox()}))}})}},t}(Ja),Qa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.omitMockProps=['id','$$id','enable','maxDisplayRows'],t}return K(t,e),t.prototype.componentDidMount=function(){this.markDom(this.props.$$editor.id),this.props.$$node&&requestAnimationFrame((function(){}))},t.prototype.componentDidUpdate=function(e){this.markDom(this.props.$$editor.id)},t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.markDom=function(e){var t,n,r=this,a=Re(this);if(a&&e){var o=this.props.$$editor,i=!1!==this.props.$$visible&&!0!==this.props.$$hidden,c=o.wrapperResolve?o.wrapperResolve(a):a;(Array.isArray(c)?c:c?[c]:[]).forEach((function(t){t.setAttribute('data-editor-id',e),t.setAttribute('name',r.props.id),t.setAttribute('data-visible',i?'':'false'),t.setAttribute('data-hide-text',i?'':B('392342f7750a565f9a79c678c6b12421'))})),null===(n=null===(t=o.plugin)||void 0===t?void 0:t.markDom)||void 0===n||n.call(t,c,this.props)}},t.prototype.render=function(){var e,t=this.props,n=t.$$editor,r=t.$$node,a=t.store,o=z(t,['$$editor','$$node','store']),i=n.renderer;n.filterProps&&(o=n.filterProps.call(n.plugin,o,r));var c=$e(null===(e=null==o?void 0:o.editorSetting)||void 0===e?void 0:e.mock,this.omitMockProps);return de(c)&&!ut(c)&&(o=Ie(o,c)),n.renderRenderer?n.renderRenderer.call(n.plugin,$($($($($($({},o),{store:a}),null==r?void 0:r.state),{$$editor:n}),n.wrapperProps),{ref:this.refFn}),n):Z.createElement(i.component,$({},o,{store:a},null==r?void 0:r.state,{$$editor:n},n.wrapperProps,{ref:this.refFn}))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'refFn',null),t=_([xe],t)}(Z.Component),eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.UNSAFE_componentWillMount=function(){this.parentNode=this.context;var e=this.props,t=e.$$editor,n=e.manager;if(!this.parentNode&&t&&t.id){var r=n.store.getNodeById(t.id);r&&(this.parentNode=r)}this.parentNode&&(this.editorNode=this.parentNode.addChild({id:this.parentNode.id,type:this.parentNode.type,label:this.props.label,path:''.concat(this.parentNode.path,'/').concat(this.props.name),region:this.props.name,regionInfo:this.props.regionConfig,preferTag:this.props.preferTag}))},t.prototype.componentDidMount=function(){this.editorNode&&ke(this.editorNode)&&this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},t.prototype.componentDidUpdate=function(e){this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},t.prototype.componentWillUnmount=function(){this.editorNode&&ke(this.editorNode)&&this.parentNode&&this.parentNode.removeChild(this.editorNode)},t.prototype.markDom=function(e,t,n){var r=Re(this);if(r){var a=this.props.wrapperResolve,o=a?a(r):r.parentElement;o.setAttribute('data-region',t),o.setAttribute('data-region-host',e),n&&o.setAttribute('data-renderer',n)}},t.prototype.render=function(){var e='wrapper'===this.props.rendererName||'container'===this.props.rendererName,t=!1;return mn(this.props)&&(t=!0),Z.createElement(Za.Provider,{value:this.editorNode},this.props.children,Z.createElement('span',{className:'ae-Region-placeholder '.concat(e?'layout-content':'',' ').concat(t?'fill-placeholder':'')},this.props.placeholder||this.props.label))},t.contextType=Za,t}(Z.Component),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.renderChild=function(e,t,n){var r=this.props,a=r.render,o=r.$$editor,i=r.$$node,c=a(e,t,n);if(null==i?void 0:i.memberImmutable(e))return c;var s=Le(o.regions,(function(t){return t.key===e&&!t.matchRegion&&!t.renderMethod}));if(s){var d=s.wrapper||eo;return Z.createElement(d,{key:null==n?void 0:n.key,preferTag:s.preferTag,name:s.key,label:s.label,placeholder:s.placeholder,regionConfig:s,editorStore:o.plugin.manager.store,wrapperResolve:s.wrapperResolve,manager:o.plugin.manager,children:c,rendererName:o.renderer.name,$$editor:o,node:i})}return c},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=z(e,['$$editor','$$node']),a={},o=t.plugin.manager.store;return t.id&&(o.isActive(t.id)||o.dropId===t.id)&&Array.isArray(t.regions)&&t.regions.forEach((function(e){var t=e.key;if(!e.optional&&!(null==n?void 0:n.memberImmutable(t))){var o=[];'actions'!==t||void 0!==r.submitText&&!r.submitText||(o=[{type:'submit',label:r.submitText||B('939d5345ad4345dbaabe14798f6ac0f1'),primary:!0}]);var i=Array.isArray(r[t])?r[t]:r[t]?[r[t]]:o;i.length||(i=i.concat()).push({children:function(){return null}}),a[t]=i}})),Z.createElement(Qa,$({},r,a,{$$editor:t,$$node:n,render:this.renderChild,ref:this.refFn}))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'refFn',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,Object,Object]),V('design:returntype',void 0)],t.prototype,'renderChild',null),t=_([xe],t)}(Z.Component),no=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.componentWillUnmount=function(){var e=Re(this);if(e){var t=this.props.$$editor,n=t.wrapperResolve?t.wrapperResolve(e):e;(Array.isArray(n)?n:n?[n]:[]).forEach((function(e){e.classList.remove('ae-Editor-common-config')}))}},t.prototype.markDom=function(e){var t=Re(this);if(t&&e){var n=this.props.$$editor,r=n.wrapperResolve?n.wrapperResolve(t):t;this.props.$$commonSchema&&(Array.isArray(r)?r:r?[r]:[]).forEach((function(t){t.setAttribute('data-editor-id',e),t.classList.add('ae-Editor-common-config')}))}},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=e.$schema,a=e.store,o=z(e,['$$editor','$$node','$schema','store']),i=t.renderer;return o=Et(o,!1),t.filterProps&&(o=t.filterProps.call(t.plugin,o,n)),t.renderRenderer?t.renderRenderer.call(t.plugin,$($($($({},o),{store:a,$schema:r,$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):Z.createElement(i.component,$({},o,{store:a,$schema:r,$$editor:t},t.wrapperProps,{ref:this.refFn}))},t}(Qa);function ro(e){var t=this,n=e.propKey,r=e.body,a=e.definitions,i=e.controls,c=e.onChange,s=e.value,d=e.env,l=e.api,u=e.popOverContainer,p=e.submitOnChange,f=e.node,h=e.manager,m=e.justify,v=e.ctx,g=e.pipeIn,b=e.pipeOut,y=Z.useMemo((function(){var e,t='body';Array.isArray(i)&&(r=i,t='controls'),r=Array.isArray(r)?r.concat():[],!1===p&&r.push({type:'submit',label:B('be5fbbe34ce9979bfb6576d9eddc5612'),level:'primary',block:!0,className:'ae-Settings-actions'});var o=((e={key:n,definitions:a})[t]=r,e.className=X('config-form-content','ae-Settings-content','hoverShowScrollBar',!1===p?'with-actions':''),e.wrapperComponent='div',e.type='form',e.title='',e.mode='normal',e.api=l,e.wrapWithPanel=!1,e.submitOnChange=!1!==p,e.messages={validateFailed:''},e);return m&&(o.mode='horizontal',o.horizontal={left:4,right:8,justify:!0}),o}),[r,i,p]),E=Z.useMemo((function(){return gn()}),[]),C=Z.useRef([]),S=Z.useCallback((function(e,t){void 0===t&&(t=!1);var n=e,r=function(){C.current=C.current.filter((function(e){var t;return(null!==(t=e.__raw)&&void 0!==t?t:e)!==n}))};return t&&(e=function(e,t,a,o){var i=n(e,t,a,o);return r(),i},e.__raw=n),C.current.push(e),r}),[]),I=Z.useMemo((function(){s=s||{};var e=g?g(s):s;return w([v,E,e])}),[s,E,v]);return o(y,{onFinished:function(e){return T(t,void 0,void 0,(function(){var t,n;return j(this,(function(r){switch(r.label){case 0:return b?[4,b(e,s)]:[3,2];case 1:return t=r.sent(),[3,3];case 2:t=e,r.label=3;case 3:return(n=Jt(s,e=t))?(c(e,n,(function(e,t,n,r){return C.current.reduce((function(e,a){return a(e,t,n,r)}),e)})),[2]):[2]}}))}))},data:I,node:f,manager:h,popOverContainer:u,subscribeSchemaSubmit:S},$({},$e(d,'replaceText')))}function ao(e,t,n){for(var r=e.Renderer;r.ComposedComponent;)r=r.ComposedComponent;var a=r.prototype;if(Array.isArray(t)){var o=We(t,(function(e){return e.renderMethod}));Object.keys(o).forEach((function(e){var t;if(!a['__'.concat(e)]&&a[e]){var n,r,i=o[e],c=null===(t=i[0])||void 0===t?void 0:t.renderMethodOverride;a['__'.concat(e)]=a[e],a[e]=(n=a['__'.concat(e)],r=(null==c?void 0:c(i.concat(),oo))||function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.props.$$editor,r=this.super.apply(this,e);if(n&&!this.props.$$commonSchema&&Array.isArray(n.regions)&&i.every((function(e){return Le(n.regions,(function(t){return t.key===e.key}))}))){var a=i.map((function(e){var t=Le(n.regions,(function(t){return t.key===e.key&&(!e.rendererName||e.rendererName===t.rendererName)}));return t?$($({},e),{label:t.label,preferTag:t.preferTag}):e}));return oo(this,r,a,n,n.plugin.manager)}return r},'function'!=typeof n?n:function(){var e=this.super;this.super=n.bind(this);var t=r.apply(this,arguments);return this.super=e,t})}}))}else n&&Object.keys(n).forEach((function(e){var t,r;a['__'.concat(e)]||'function'!=typeof a[e]||(a['__'.concat(e)]=a[e],a[e]=(t=a['__'.concat(e)],r=n[e],'function'!=typeof t?t:function(){var e=this.super;this.super=t.bind(this);var n=r.apply(this,arguments);return this.super=e,n}))}))}function oo(e,t,n,r,a){if(!0===r.memberImmutable)return t;if(Array.isArray(r.memberImmutable)&&n.every((function(e){return r.memberImmutable.includes(e.key)})))return t;var o=Le(n,(function(e){return!e.matchRegion}));if(o){var i=o.wrapper||eo;return'inner'===o.insertPosition&&Z.isValidElement(t)?Z.cloneElement(t,{children:Z.createElement(i,{key:o.key,preferTag:o.preferTag,name:o.key,label:o.label,placeholder:o.placeholder,regionConfig:o,editorStore:a.store,manager:a,children:t.props.children,wrapperResolve:o.wrapperResolve,rendererName:r.renderer.name})}):Z.createElement(i,{key:o.key,preferTag:o.preferTag,name:o.key,label:o.label,placeholder:o.placeholder,regionConfig:o,editorStore:a.store,manager:a,children:t,wrapperResolve:o.wrapperResolve,rendererName:r.renderer.name})}if(n.length){var c=H(function(e,t,n){var r=-1,a=void 0;return n.some((function(n,o){return!!n.matchRegion(t,e)&&(r=o,a=n,!0)})),[a,r]}(e,t,n),2),s=c[0],d=c[1];if(s){i=s.wrapper||eo;if(n.splice(d,1),'outter'===s.insertPosition)return Z.createElement(i,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,placeholder:s.placeholder,regionConfig:s,editorStore:a.store,manager:a,children:t,wrapperResolve:s.wrapperResolve});if(Z.isValidElement(t)){var l=t.props.children;return Z.cloneElement(t,{children:Z.createElement(i,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,placeholder:s.placeholder,regionConfig:s,editorStore:a.store,manager:a,children:l,wrapperResolve:s.wrapperResolve})})}}else if(Z.isValidElement(t)&&t.props.children){l=t.props.children;return l=Array.isArray(l)?l.map((function(t){return oo(e,t,n,r,a)})):oo(e,l,n,r,a),Z.cloneElement(t,{children:l})}}return t}function io(e,t,n){if(!Z.isValidElement(e))return e;var r=t(e,n);if(r===e&&e.props.children){var a=e.props.children;if(Array.isArray(a)){var o=[],i=!1;a.forEach((function(e,n){var r=io(e,t,n);r!==e&&(i=!0,Z.isValidElement(r)&&!r.key&&(r=Z.cloneElement(r,{key:n}))),o.push(r)})),i&&(r=Z.cloneElement(r,{children:o}))}else{var c=io(a,t,n);c!==a&&(r=Z.cloneElement(r,{children:c}))}}return r}var co=document.createElement('div');var so={updateLocation:function(){},jumpTo:function(){d.info(B('245897371cda2055f5c17c6cf298ed48'))},fetcher:function(e){return T(void 0,void 0,void 0,(function(){var t,n,r,a,o,i,c;return j(this,(function(s){switch(s.label){case 0:return t=e.url,n=e.method,r=e.data,a=e.config,o=e.headers,(a=a||{}).url=t,a.withCredentials=!0,a.cancelExecutor&&(a.cancelToken=new Ye.CancelToken(a.cancelExecutor)),a.headers=o?$($({},a.headers),o):null!==(c=a.headers)&&void 0!==c?c:{},a.method=n,a.data=r,'get'===n&&r?a.params=r:r&&r instanceof FormData||!r||'string'==typeof r||r instanceof Blob||r instanceof ArrayBuffer||(r=JSON.stringify(r),a.headers['Content-Type']='application/json'),[4,Ye(a)];case 1:return i=s.sent(),[4,ue(i,(function(e){return e}),e)];case 2:return[2,i=s.sent()]}}))}))},isCancel:function(e){return Ye.isCancel(e)},alert:C,confirm:S,notify:function(e,t){d[e]?d[e](t,B('error'===e?'a71002967924a83e32b38a80705290fb':'058ebdf2884474ebff2977ba2f0e275e')):console.warn('[Notify]',e,t)},forceSilenceInsideError:!1},lo=function(){function e(e,t){this.dnd=e,this.region=t,this.exchangeX=0,this.exchangeY=0,this.dndContainer=this.dnd.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]'))}return e.prototype.enter=function(e,t){var n=this.dnd.dragElement;if(n&&n.closest('[data-region]')===this.dndContainer){var r=Array.isArray(this.region.schema)?this.region.schema:[],a=this.getChild(this.dndContainer,n),i=n.getAttribute('data-editor-id'),c=_e(r,(function(e){return e.$$id===i}));~c&&r[c+1]&&(this.dropBeforeId=r[c+1].$$id),this.dndContainer.insertBefore(t,a);var s=n.outerHTML.replace('ae-is-draging','').replace(/\bdata\-editor\-id=(?:'.+?'|".+?")/g,'');t.innerHTML=s}else{var d=this.dnd.manager,l=d.store;!function(e,t,n,r){e.innerHTML='';var a=t.host.getComponent(),i=(null==a?void 0:a.renderControl)&&'body'===t.region;try{Ne(o({children:function(e){var r=e.render;return i?r('',{type:'form',wrapWithPanel:!1,mode:a.props.mode,body:[n]}):r(t.region,n)}},{},$($({},r.env),{theme:(null==a?void 0:a.props.theme)||r.env.theme,session:'ghost-thumb'}),''),co)}catch(e){}var c=co.innerHTML||B('f942c7a6a35c4eb1381d2966462d0489');e.innerHTML=c,Oe(co),co.innerHTML=''}(t,this.region,fn(l.dragSchema),d),this.dndContainer.appendChild(t)}},e.prototype.leave=function(e,t){this.dndContainer.removeChild(t)},e.prototype.over=function(e,t){var n,r,a=this.getTarget(e),o=this.dndContainer,i=this.region.schema,c=Array.isArray(i)?i:[],s=e.clientX-this.exchangeX,d=e.clientY-this.exchangeY;if(a&&!I.animating){var l=a.getAttribute('data-editor-id'),u=this.getChild(o,a),p=_e(c,(function(e){return e.$$id===l})),f=Array.prototype.indexOf.call(o.children,t),h=Array.prototype.indexOf.call(o.children,u);~f&&f>h&&(!this.exchangeY||d<0||s<0)?(this.exchangeX=e.clientX,this.exchangeY=e.clientY,this.dropBeforeId=null===(n=c[p])||void 0===n?void 0:n.$$id,f!==h-1&&(I.capture(o),o.insertBefore(t,u),I.animateAll())):~f&&f<h&&(!this.exchangeY||d>0||s>0)&&(this.exchangeX=e.clientX,this.exchangeY=e.clientY,c[p+1]?this.dropBeforeId=null===(r=c[p+1])||void 0===r?void 0:r.$$id:delete this.dropBeforeId,f!==h+1&&(I.capture(o),o.insertBefore(t,u.nextSibling),I.animateAll()))}t.parentNode!==o&&(delete this.dropBeforeId,I.capture(o),o.appendChild(t),I.animateAll())},e.prototype.getDropBeforeId=function(){return this.dropBeforeId},e.prototype.getTarget=function(e){for(var t,n,r=e.target.closest('[data-editor-id]');r;){if((null===(t=r.parentElement)||void 0===t?void 0:t.closest('[data-region]'))===this.dndContainer)return'grid'===r.getAttribute('data-renderer')?r.parentElement:r;r=(null===(n=r.parentElement)||void 0===n?void 0:n.closest('[data-editor-id]'))||null}return null},e.prototype.getChild=function(e,t){for(var n=t;n&&n.parentElement!==e;)n=n.parentElement;return n},e.prototype.dispose=function(){delete this.dropBeforeId},e}(),uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.enter=function(e,t){t.innerHTML='',t.classList.add('use-position'),t.classList.add('is-horizontal');var n=this.dnd.dragElement,r=this.dndContainer.getBoundingClientRect(),a=Array.isArray(this.region.schema)?this.region.schema:[];if(n&&n.closest('[data-region]')===this.dndContainer){var o=n.getAttribute('data-editor-id'),i=_e(a,(function(e){return e.$$id===o}));if(~i&&a[i+1]&&(this.dropBeforeId=a[i+1].$$id),n.nextElementSibling){var c=n.nextElementSibling.getBoundingClientRect();t.style.cssText+='top: 0; left: '.concat(c.x-r.x,'px;')}else t.style.cssText+='top: 0; left: 100%;'}else t.style.cssText+='top: 0; left: -999999%;';this.dndContainer.appendChild(t)},t.prototype.leave=function(e,t){t.classList.remove('use-position'),t.classList.remove('is-horizontal')},t.prototype.over=function(e,t){var n,r,a=this.getTarget(e);if(a){if('table'===(null===(n=this.dndContainer)||void 0===n?void 0:n.getAttribute('data-renderer'))){var o=null===(r=a.parentElement)||void 0===r?void 0:r.closest('th[data-editor-id], td[data-editor-id]');o&&this.dndContainer.contains(o)&&(a=o)}var i=this.dndContainer.getBoundingClientRect();!Array.isArray(this.region.schema)||this.region.schema;var c=a.getBoundingClientRect();a.nextElementSibling&&a.nextElementSibling.hasAttribute('data-editor-id')?(t.style.cssText+='left: '.concat(c.x-i.x,'px;'),this.dropBeforeId=a.getAttribute('data-editor-id')):e.clientX>c.x+c.width/2?(t.style.cssText+='top: 0; left: '.concat(c.right-i.x,'px;'),delete this.dropBeforeId):(t.style.cssText+='left: '.concat(c.x-i.x,'px;'),this.dropBeforeId=a.getAttribute('data-editor-id'))}},t}(lo),po=Se((function(e){d.warning(e)}),500),fo=function(){function e(e,t){this.manager=e,this.store=t,this.toDispose=[],this.dragEnterCount=0,this.lastX=0,this.lastY=0,this.lastMoveAt=0,this.startX=0,this.startY=0,this.toDispose.push(Yt((function(){return'schema'===t.dragType?t.dragId:''}),this.updateDragElements),Yt((function(){return{id:t.dropId,region:t.dropRegion}}),this.updateDropRegion),Yt((function(){return{id:t.planDropId,region:t.planDropRegion}}),this.updatePlanDropRegion)),this.dragGhost=document.createElement('div'),this.dragGhost.classList.add('ae-DragGhost'),this.dragGhost.classList.add('is-ghost')}return e.prototype.createDragImage=function(e,t){var n=document.createElement('div');return n.classList.add('ae-DragImage'),n.innerHTML='<span>'.concat((null==t?void 0:t.label)||e,'</span>'),document.body.appendChild(n),this.dragImage=n,n},e.prototype.disposeDragImage=function(){var e,t=this.dragImage;null===(e=null==t?void 0:t.parentElement)||void 0===e||e.removeChild(t),delete this.dragImage},e.prototype.switchToRegion=function(e,t,n){var r,a,o,i,c,s=this.store;if(!t||!n||s.dropId===t&&s.dropRegion===n)return!1;var d=s.getNodeById(t,n),l=d.regionInfo,u=s.dragSchema;if(!1===(null===(r=null==l?void 0:l.accept)||void 0===r?void 0:r.call(l,u))||(null===(a=d.host)||void 0===a?void 0:a.memberImmutable(n)))return!1;var p={mode:s.dragMode,sourceType:s.dragType,sourceId:s.dragId,data:s.dragSchema,targetId:t,targetRegion:n};return!this.manager.trigger('dnd-accept',p).prevented&&(null===(o=this.dndMode)||void 0===o||o.leave(e,this.dragGhost),null===(i=this.dndMode)||void 0===i||i.dispose(),s.setDropId(t,n),this.makeDNDModeInstance(d),null===(c=this.dndMode)||void 0===c||c.enter(e,this.dragGhost),!0)},e.prototype.makeDNDModeInstance=function(e){var t;if(!e||!ke(e))return this.dndMode||null;var n=null===(t=e.regionInfo)||void 0===t?void 0:t.dndMode,r=lo;return'position-h'===n&&(r=uo),this.dndMode=new r(this,e),this.dndMode},e.prototype.startDrag=function(e,t){var n,r=this,a=this.store.getNodeById(e),o=this.store.getDoc().querySelector('[data-editor-id="'.concat(e,'"]'));if(a&&o){if(null===(n=t.target)||void 0===n||n.addEventListener('dragend',this.dragEnd),this.lastX=t.clientX,this.lastY=t.clientY,this.manager.draggableContainer(a.id))return this.curDragId=e,this.startX=t.clientX,void(this.startY=t.clientY);this.dragElement=o,t.dataTransfer.effectAllowed='move',t.dataTransfer.setDragImage(this.createDragImage(e,a),0,0),t.dataTransfer.setData('dnd/ae-node-'.concat(e).toLowerCase(),''),setTimeout((function(){r.store.setDragId(e);var n=a.parent;r.switchToRegion(t,n.id,n.region)}),4)}else t.preventDefault()},e.prototype.dragEnter=function(e){var t,n=this.store;this.dragEnterCount++;var r=n.activeId;if(r)if(a=n.getNodeById(r)){if(!n.dragId&&1===this.dragEnterCount){var a,o=e.dataTransfer.types;if(o.length>0)for(var i=function(t){if(/^dnd-dom\/(.*)$/.test(o[t])){var r=RegExp.$1,a=document.querySelector(r);if(a){a.addEventListener('dragend',c.dragEnd);var i=a.getAttribute('data-dnd-id'),s=a.getAttribute('data-dnd-type'),d=a.getAttribute('data-dnd-data'),l=d?JSON.parse(d):{type:'tpl',tpl:'Unknown'};n.setDragId(i,'copy',s,l);var u=n.activeContainerId;if(u){var p=n.getNodeById(u);if(null==p?void 0:p.childRegions.length){var f=0;p.childRegions.forEach((function(e,t){e.region&&(f=t)})),c.switchToRegion(e,p.id,p.childRegions[f].region)}}return'break'}}},c=this,s=o.length-1;s>=0;s--){if('break'===i(s))break}if(this.curDragId&&this.manager.draggableContainer(this.curDragId)){if(a=n.getNodeById(r)){var d=a.parentId?n.getNodeById(a.parentId):void 0;(null===(t=null==d?void 0:d.schema)||void 0===t?void 0:t.isFreeContainer)&&n.setDropId(a.parentId,'body')}}else;}}else po(B('0e24e1bbc19612a350f81296d9fb7802'));else po(B('0e24e1bbc19612a350f81296d9fb7802'))},e.prototype.dragOver=function(e){var t,n=this.store,r=e.target;e.preventDefault();var a=e.clientX-this.lastX,o=e.clientY-this.lastY,i=Math.max(Math.abs(a),Math.abs(o)),c=Date.now(),s=r.closest('[data-region][data-region-host]'),d=null==s?void 0:s.getAttribute('data-region-host'),l=null==s?void 0:s.getAttribute('data-region');if(i>0&&this.curDragId&&this.manager.draggableContainer(this.curDragId)){var u=n.getDoc(),p=null===parent||void 0===parent?void 0:parent.window.document,f=u.querySelector('[data-hlbox-id=\''.concat(this.curDragId,'\']'));if(n.isMobile&&!f&&p&&(f=p.querySelector('[data-hlbox-id=\''.concat(this.curDragId,'\']'))),f){var h=(f.style.inset||'auto').split(' '),m={top:f.style.top||h[0]||'auto',right:f.style.right||h[1]||'auto',bottom:f.style.bottom||h[2]||h[0]||'auto',left:f.style.left||h[3]||h[1]||'auto'};f.style.inset=''.concat('auto'!==m.top?dn(m.top,o):'auto',' ').concat('auto'!==m.right?dn(m.right,-a):'auto',' ').concat('auto'!==m.bottom?dn(m.bottom,-o):'auto',' ').concat('auto'!==m.left?dn(m.left,a):'auto')}var v=u.querySelector('[data-editor-id=\''.concat(this.curDragId,'\']'));if(v){var g=(v.style.inset||'auto').split(' '),b={top:g[0]||'auto',right:g[1]||'auto',bottom:g[2]||g[0]||'auto',left:g[3]||g[1]||'auto'};v.style.inset=''.concat('auto'!==b.top?dn(b.top,o):'auto',' ').concat('auto'!==b.right?dn(b.right,-a):'auto',' ').concat('auto'!==b.bottom?dn(b.bottom,-o):'auto',' ').concat('auto'!==b.left?dn(b.left,a):'auto')}return this.lastX=e.clientX,void(this.lastY=e.clientY)}if(n.dropId&&r)if(i<5){if(!s||d===n.dropId)return;c-this.lastMoveAt>200&&l&&d&&this.switchToRegion(e,d,l)}else n.setPlanDropId('',''),this.lastMoveAt=c,this.lastX=e.clientX,this.lastY=e.clientY,n.dropId===d&&l&&l!==n.dropRegion&&this.switchToRegion(e,n.dropId,l),null===(t=this.dndMode)||void 0===t||t.over(e,this.dragGhost)},e.prototype.drop=function(e){var t;return T(this,void 0,void 0,(function(){var n,r,a,o,i,c,s,d;return j(this,(function(l){switch(l.label){case 0:return n=this.store,this.curDragId&&this.manager.draggableContainer(this.curDragId)?(r=e.clientX-this.startX,a=e.clientY-this.startY,this.manager.updateContainerStyleByDrag(this.curDragId,r,a),this.curDragId='',this.store.setDropId(''),[2]):n.dropId?(o=null===(t=this.dndMode)||void 0===t?void 0:t.getDropBeforeId(),'move'!==n.dragMode?[3,1]:(this.manager.move(n.dropId,n.dropRegion,n.dragId,o),[3,4])):[2];case 1:return'copy'!==n.dragMode?[3,4]:(i=n.dragSchema,c=n.dropId,s=n.dropRegion,d=void 0,'subrenderer'!==n.dragType?[3,3]:(null==(d=Le(n.subRenderers,(function(e){return e.id===n.dragId})))?void 0:d.scaffoldForm)?[4,this.manager.scaffold(d.scaffoldForm,i)]:[3,3]);case 2:i=l.sent(),l.label=3;case 3:this.manager.addChild(c,s,i,o,d,{id:n.dragId,type:n.dragType,data:n.dragSchema}),l.label=4;case 4:return[2]}}))}))},e.prototype.dragLeave=function(e){this.dragEnterCount--},e.prototype.dragEnd=function(e){var t,n;null===(t=e.target)||void 0===t||t.removeEventListener('dragend',this.dragEnd),null===(n=this.dndMode)||void 0===n||n.leave(e,this.dragGhost),delete this.dndMode,this.dragGhost.innerHTML='',this.store.setDragId(''),this.store.setDropId(''),this.disposeDragImage(),this.dragEnterCount=0},e.prototype.updateDragElements=function(e){e&&this.manager.draggableContainer(e)||(e?[].slice.call(this.store.getDoc().querySelectorAll('[data-editor-id="'.concat(e,'"]'))).forEach((function(e){return e.classList.add('ae-is-draging')})):[].slice.call(this.store.getDoc().querySelectorAll('.ae-is-draging')).forEach((function(e){return e.classList.remove('ae-is-draging')})))},e.prototype.updateDropRegion=function(e,t){var n,r;this.store.dragId&&this.manager.draggableContainer(this.store.dragId)||((null==t?void 0:t.id)&&t.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]')))||void 0===n||n.classList.remove('is-dragenter')),e.id&&e.region&&(null===(r=this.store.getDoc().querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===r||r.classList.add('is-dragenter')))},e.prototype.updatePlanDropRegion=function(e,t){var n,r;this.store.dragId&&this.manager.draggableContainer(this.store.dragId)||((null==t?void 0:t.id)&&t.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]')))||void 0===n||n.classList.remove('is-entering')),e.id&&e.region&&(null===(r=this.store.getDoc().querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===r||r.classList.add('is-entering')))},e.prototype.dispose=function(){this.disposeDragImage(),this.toDispose.forEach((function(e){return e()})),this.toDispose=[]},_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',void 0)],e.prototype,'dragEnter',null),_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',void 0)],e.prototype,'dragOver',null),_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',Promise)],e.prototype,'drop',null),_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',void 0)],e.prototype,'dragLeave',null),_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',void 0)],e.prototype,'dragEnd',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],e.prototype,'updateDragElements',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Object]),V('design:returntype',void 0)],e.prototype,'updateDropRegion',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Object]),V('design:returntype',void 0)],e.prototype,'updatePlanDropRegion',null),e}(),ho=function(){function e(e,t,n){this.variables=Array.isArray(t)?Xe(Je(t),[function(e){var t;return null!==(t=e.order)&&void 0!==t?t:1}]):[],this.dataSchema=e instanceof pe?e:new pe([]),this.options=Qe(n,['beforeScopeInsert','afterScopeInsert','onContextSchemaChange','onContextOptionChange']),this.init()}return e.prototype.init=function(){var e,t=this,n=this.variables,r=this.dataSchema,a=null!==(e=this.options)&&void 0!==e?e:{},o=a.beforeScopeInsert,i=a.afterScopeInsert;n.forEach((function(e){var n,a=e.parentId,c=e.name,s=e.title,d=e.schema;r.hasScope(a)&&(r.switchTo(a),r.hasScope(c)&&r.removeScope(c),o&&'function'==typeof o&&(d=o(t,d)),r.addScope({type:'object',$id:c,properties:(n={},n[c]=$($({},d),{title:s}),n)},c),r.switchTo(c),i&&'function'==typeof i&&i(t))})),r.switchToRoot()},e.prototype.getVariableContextSchema=function(){var e,t,n=this,r=[],a=(null!==(e=this.options)&&void 0!==e?e:{}).onContextSchemaChange;return this.variables&&(null===(t=this.variables)||void 0===t?void 0:t.length)>0&&(r=this.variables.map((function(e){if(n.dataSchema.hasScope(e.name)){var t=n.dataSchema.getScope(e.name);return t.schemas.length>0?t.schemas[0]:null}return null})).filter((function(e){return null!==e}))),a&&'function'==typeof a&&(r=a(this,r)),r},e.prototype.getVariableFormulaOptions=function(e){var t,n,r=this;void 0===e&&(e=!1);var a=(null!==(t=this.options)&&void 0!==t?t:{}).onContextOptionChange,o=[];return this.variables&&(null===(n=this.variables)||void 0===n?void 0:n.length)>0&&this.variables.forEach((function(e){if(r.dataSchema.hasScope(e.name)){var t=r.dataSchema.getScope(e.name),n=ae(t.getDataPropsAsOptions(),(function(e){var t;return $($({},e),{tag:null!==(t=fe[e.type])&&void 0!==t?t:e.type})}));t.tag?o.push({label:t.tag,children:n}):o.push.apply(o,L([],H(n),!1))}})),a&&'function'==typeof a&&(o=a(this,o,'formula')),he(o,(function(e){'array'===e.type&&delete e.children})),e?o:Ge(o)},e.prototype.getVariableOptions=function(){var e,t,n,r,a=(null!==(e=this.options)&&void 0!==e?e:{}).onContextOptionChange,o=null!==(r=null===(n=null===(t=this.getVariableFormulaOptions(!1))||void 0===t?void 0:t[0])||void 0===n?void 0:n.children)&&void 0!==r?r:[];return o=ae(o,(function(e,t,n,r){return $($({},e),{valueExpression:'string'!=typeof e.value||e.value.startsWith('${')?e.value:'${'.concat(e.value,'}')})})),a&&'function'==typeof a&&(o=a(this,o,'normal')),o},e.prototype.getPageVariablesOptions=function(){var e,t=[],n=null===(e=this.dataSchema)||void 0===e?void 0:e.root;return n&&(t=n.getDataPropsAsOptions().filter((function(e){return['__query','__page'].includes(e.value)}))),he(t,(function(e){'array'===e.type&&delete e.children})),t},e.prototype.getNameByPath=function(e,t,n){var r,a;if(void 0===t&&(t='value'),void 0===n&&(n='label'),!e||'string'!=typeof e)return'';var o=L(L([],H(this.getVariableOptions()),!1),H(this.getPageVariablesOptions()),!1),i=te(o,(function(n){return n[null!=t?t:'value']===e}));return i&&null!==(a=null!==(r=i[null!=n?n:'label'])&&void 0!==r?r:i[null!=t?t:'value'])&&void 0!==a?a:''},e}(),mo=[];function vo(){window.AMISEditorCustomPlugins&&Object.keys(window.AMISEditorCustomPlugins).forEach((function(e){var t=window.AMISEditorCustomPlugins[e];t&&go(t)}))}function go(e){var t=Array.from(new Set(['global'].concat(e.scene||'global')));e.scene=t;var n=null;if(~(n=e.prototype&&e.prototype.isNpmCustomWidget?mo.findIndex((function(t){return Array.isArray(t)?t[0].prototype.name===e.prototype.name:t.prototype.name===e.prototype.name})):mo.findIndex((function(t){return t===e})))||(e.id=e.id||e.name||rt()),null!=e.priority&&Number.isInteger(e.priority))if(~(n=~n?n:mo.findIndex((function(t){return!Array.isArray(t)&&t.id===e.id&&(null==t?void 0:t.prototype)instanceof Ja})))){var r=mo[n],a=r.priority&&Number.isInteger(r.priority)?r.priority:0;e.priority>a?mo.splice(n,1,e):console.warn('注册插件「'.concat(e.id,'」异常,已存在同名插件:'),e)}else mo.push(e);else~n?console.warn('注册插件「'.concat(e.id,'」异常,已存在同名插件:'),e):mo.push(e)}function bo(e){void 0===e&&(e={});var t=e.scene,n=void 0===t?'global':t;return mo.filter((function(e){var t;return null===(t=(Array.isArray(e)?e[0]:e).scene)||void 0===t?void 0:t.includes(n)}))}function yo(e){var t=_e(mo,(function(t){return Array.isArray(t)?t[0].id===e:t.id===e}));~t&&mo.splice(t,1)}var Eo=function(){function e(e,t,n){var r=this;this.config=e,this.store=t,this.parent=n,this.toDispose=[],this.id=rt(),this.disableHover=!1,this.broadcasts=[],this.pluginEvents={},this.pluginActions={},this.listeners=[],this.lazyPatchSchema=Se(this.patchSchema.bind(this),250,{leading:!1,trailing:!0}),this.patching=!1,this.patchingInvalid=!1,this.env=$($($({},so),$e(e.amisEnv,'replaceText')),{theme:e.theme}),this.env.beforeDispatchEvent=this.beforeDispatchEvent.bind(this,this.env.beforeDispatchEvent),this.hackIn=ao,vo(),((null==e?void 0:e.plugins)||[]).forEach((function(e){if(!Array.isArray(e)&&e.priority&&Number.isInteger(e.priority)){var t=mo.findIndex((function(t){return!Array.isArray(t)&&!Array.isArray(e)&&t.id===e.id&&(null==t?void 0:t.prototype)instanceof Ja}));if(~t){var n=mo[t],r=n.priority&&Number.isInteger(n.priority)?n.priority:0;e.priority>r&&mo.splice(t,1)}}})),this.plugins=(e.disableBultinPlugin?[]:mo).concat(this.normalizeScene(null==e?void 0:e.plugins)).filter((function(t){return t=Array.isArray(t)?t[0]:t,!e.disablePluginList||('function'==typeof e.disablePluginList?!e.disablePluginList(t.id||'',t):!e.disablePluginList.includes(t.id||'unkown'))})).map((function(e){var t,n={};Array.isArray(e)&&(n='function'==typeof e[1]?e[1]():e[1],e=e[0]);var a=new e(r,n);return a.order=null!==(t=a.order)&&void 0!==t?t:0,a.rendererName&&(r.pluginEvents[a.rendererName]=a.events||[],r.pluginActions[a.rendererName]=a.actions||[]),a})).sort((function(e,t){return e.order-t.order})),this.hackRenderers(),this.dnd=new fo(this,t),this.dataSchema=new R(e.schemas||[]),this.variableManager=new ho(this.dataSchema,null==e?void 0:e.variables,null==e?void 0:e.variableOptions),this.toDispose.push(Yt((function(){return t.activeId}),(function(e,t){return T(r,void 0,void 0,(function(){return j(this,(function(n){switch(n.label){case 0:return this.store.insertId&&this.store.closeInsertPanel(),this.buildJSONSchemaUri(),this.buildToolbars(),[4,this.buildRenderers()];case 1:return n.sent(),this.buildPanels(),In('[data-node-id="'.concat(e,'"]')),this.trigger('active',e?$($({},this.buildEventContext(e)),{active:!0}):{id:t,active:!1}),[2]}}))}))})),be((function(){return t.selections.join(',')}),(function(){r.buildPanels()})),be((function(){return t.needPatch}),(function(e){e&&r.lazyPatchSchema()})),Yt((function(){return{id:t.hoverId,region:t.hoverRegion}}),(function(e,n){var r,a,o=t.getDoc();e.id&&e.region?null===(r=o.querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===r||r.classList.add('is-region-active'):(null==n?void 0:n.id)&&(null==n?void 0:n.region)&&(null===(a=o.querySelector('[data-region="'.concat(n.region,'"][data-region-host="').concat(n.id,'"]')))||void 0===a||a.classList.remove('is-region-active'))})))}return e.prototype.normalizeScene=function(e){return(null==e?void 0:e.map((function(e){var t;Array.isArray(e)&&(t=e[1],e=e[0]);var n=Array.from(new Set(['global'].concat(e.scene||'global')));return e.scene=n,t?[e,t]:e})))||[]},e.prototype.dynamicAddPlugin=function(e){var t;if(e)if(this.plugins.some((function(t){return t&&t.name===e})))console.warn('[amis-editor]当前已有'.concat(e,'插件'));else{var n=mo.find((function(t){return t.prototype&&t.prototype.name===e}));if(!n&&window.AMISEditorCustomPlugins&&(n=window.AMISEditorCustomPlugins[e]),n){var r=new n(this);r.order=null!==(t=r.order)&&void 0!==t?t:0,this.plugins.push(r),this.plugins.sort((function(e,t){return e.order-t.order})),r.rendererName&&(this.pluginEvents[r.rendererName]=r.events||[],this.pluginActions[r.rendererName]=r.actions||[]),this.buildRenderers()}}},e.prototype.buildRenderersAndPanels=function(){var e=this;setTimeout((function(){return T(e,void 0,void 0,(function(){var e,t;return j(this,(function(n){switch(n.label){case 0:return(e=this.store).activeId||!(null===(t=null==e?void 0:e.schema)||void 0===t?void 0:t.$$id)?[3,2]:[4,this.buildRenderers()];case 1:n.sent(),this.buildPanels(e.schema.$$id),n.label=2;case 2:return[2]}}))}))}),200)},e.prototype.buildEventContext=function(e){var t='string'==typeof e?this.store.getNodeById(e):e,n=this.store.getSchema(t.id);return{node:t,id:t.id,info:t.info,path:t.path,schemaPath:t.schemaPath,schema:n,data:''}},e.prototype.buildJSONSchemaUri=function(){var e=this.store.activeId,t='';if(e){var n=this.buildEventContext(e),r=this.trigger('before-resolve-json-schema',n);if(t=r.context.data,!r.prevented){this.plugins.forEach((function(e){var r;if(!t){var a=null===(r=e.buildJSONSchema)||void 0===r?void 0:r.call(e,n);a&&(t=a)}})),n.data=t;var a=this.trigger('after-resolve-json-schema',n);t=a.data}}this.store.setJSONSchemaUri(t)},e.prototype.buildToolbars=function(){var e=this.store.activeId,t=[];if(e){var n=this.buildEventContext(e);this.plugins.forEach((function(e){var r,a=$({},n);null===(r=e.buildEditorToolbar)||void 0===r||r.call(e,a,t)})),this.trigger('build-toolbars',$($({},n),{data:t}))}this.store.setActiveToolbars(t.map((function(e){return $($({},e),{order:e.order||0,id:rt()})})))},e.prototype.collectPanels=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var a=[];if(e){var o=$($({},this.buildEventContext(e)),{secondFactor:n,data:a,selections:this.store.selections.map((function(e){return r.buildEventContext(e)}))});this.plugins.forEach((function(e){var t;null===(t=e.buildEditorPanel)||void 0===t||t.call(e,o,a)})),t&&this.trigger('build-panels',o),a=o.data||a,o.changeLeftPanelKey&&this.store.changeLeftPanelKey(o.changeLeftPanelKey)}return a},e.prototype.buildPanels=function(e){var t,n,r=e||this.store.activeId,a=[];if(!r&&(null===(t=this.store)||void 0===t?void 0:t.filteredSchema)&&(r=null===(n=this.store)||void 0===n?void 0:n.filteredSchema.$$id),r||this.store.selections.length){r=r||this.store.selections[0];var o=this.store.getNodeById(r);a=o?this.collectPanels(o,!0):a}this.store.setPanels(a.map((function(e){return $($({},e),{order:e.order||0})})))},e.prototype.collectRenderers=function(e,t){var n,r,a,o;return void 0===t&&(t=this.store.activeContainerId),T(this,void 0,void 0,(function(){var i,c,s,d,l,u,p,f,h,m,v,g,b;return j(this,(function(y){switch(y.label){case 0:if(i=[],!(c=t)&&(null===(n=this.store)||void 0===n?void 0:n.schema)&&(c=null===(r=this.store)||void 0===r?void 0:r.schema.$$id),!c)return[2,i];if(!(s=this.store.getNodeById(c)))return[2,i];d=this.store.getSchema(c),l={node:s,id:s.id,info:s.info,path:s.path,schemaPath:s.schemaPath,schema:d,region:e},u=[],p=function(e,t){var n,r;return j(this,(function(t){switch(t.label){case 0:return n=f.plugins[e],[4,null===(a=n.buildSubRenderers)||void 0===a?void 0:a.call(n,l,i,me())];case 1:return(r=t.sent())&&(Array.isArray(r)?r:[r]).forEach((function(e){return i.push($($({},e),{id:rt(),plugin:n,parent:s.info,order:e.order||0}))})),n.asyncUpdateCustomSubRenderersInfo&&u.push(n),[2]}}))},f=this,h=0,m=this.plugins.length,y.label=1;case 1:return h<m?[5,p(h,m)]:[3,4];case 2:y.sent(),y.label=3;case 3:return h++,[3,1];case 4:if(!u.length)return[3,8];v=0,g=u.length,y.label=5;case 5:return v<g?(b=u[v],[4,null===(o=b.asyncUpdateCustomSubRenderersInfo)||void 0===o?void 0:o.call(b,l,i,me())]):[3,8];case 6:y.sent(),y.label=7;case 7:return v++,[3,5];case 8:return[2,i.filter((function(e){return!e.disabledRendererPlugin}))]}}))}))},e.prototype.buildRenderers=function(e){return T(this,void 0,void 0,(function(){var t;return j(this,(function(n){switch(n.label){case 0:return[4,this.collectRenderers(e)];case 1:return t=n.sent(),this.store.setSubRenderers(t),this.store.changeSubRendererRegion(e||''),[2]}}))}))},e.prototype.rebuild=function(){return T(this,void 0,void 0,(function(){return j(this,(function(e){switch(e.label){case 0:return[4,this.buildRenderers()];case 1:return e.sent(),this.buildToolbars(),this.buildPanels(),[2]}}))}))},e.prototype.updateConfigPanel=function(e){var t,n=this,r=this.store,a=r.activeId,o=r.getSchema,i=r.getNodeById,c=e;if(!c&&this.store.activeId){var s=o(a);c=s.type}if(c&&this.store.activeId){var d=this.store.panels.concat(),l=i(a);if(c&&l){var u=this.plugins.find((function(e){return e.rendererName===c}));d.splice(d.findIndex((function(e){return'config'===e.key})),1);var p=$($({},this.buildEventContext(l)),{data:d,selections:this.store.selections.map((function(e){return n.buildEventContext(e)}))});u&&(null===(t=u.buildEditorPanel)||void 0===t||t.call(u,p,d),this.store.setPanels(d.map((function(e){return $($({},e),{order:e.order||0})}))))}}},e.prototype.switchToRegion=function(e){this.store.activeId&&this.buildRenderers(e)},e.prototype.showInsertPanel=function(e,t,n,r,a,o){var i,c,s;return void 0===t&&(t=this.store.activeId),void 0===r&&(r='insert'),void 0===a&&(a=''),T(this,void 0,void 0,(function(){var d,l;return j(this,(function(u){switch(u.label){case 0:return void 0===n&&t&&(d=this.store.getNodeById(t),n=null===(s=null===(c=null===(i=null==d?void 0:d.info)||void 0===i?void 0:i.regions)||void 0===c?void 0:c.find((function(t){return t.key===e})))||void 0===s?void 0:s.preferTag),[4,this.collectRenderers(e,t)];case 1:return l=u.sent(),this.store.setInsertRenderers(l),this.store.setInsertRegion(e,t,n,r,a,o),[2]}}))}))},e.prototype.showReplacePanel=function(e,t){var n=this.store.getNodeById(e),r=null==n?void 0:n.parent;if(n&&r&&r.isRegion&&r.parent){var a=r.parent;this.showInsertPanel(r.region,a.id,t,'replace',n.id)}},e.prototype.showRendererPanel=function(e,t){this.store.showRendererPanel(e,t)},e.prototype.on=function(e,t){var n=this;return this.listeners.push({type:e,fn:t}),function(){return n.off(e,t)}},e.prototype.off=function(e,t){var n=_e(this.listeners,(function(n){return n.type===e&&n.fn===t}));~n&&this.listeners.splice(n,1)},e.prototype.trigger=function(e,t){var n=Xa(e,t),r=qt(/^(?:before|after)/.test(e)?e:'on-'.concat(e)),a=this.listeners.filter((function(t){return t.type===e}));this.plugins.forEach((function(t){return t[r]&&a.push({type:e,fn:t[r].bind(t)})})),this.config[r]&&a.push({fn:this.config[r],type:e});var o=[];return a.some((function(e){var t=e.fn.call(null,n);return!1===t?(n.preventDefault(),n.stopPropagation()):(null==t?void 0:t.then)?o.push(t):void 0!==t&&n.setData(t),n.stoped})),o.length&&(n.pending=Promise.all(o)),n},e.prototype.addElem=function(e,t,n){var r,a;return void 0===n&&(n=!0),T(this,void 0,void 0,(function(){var o,i,c,s,l,u,p,f,h,m,v,g,b,y,E;return j(this,(function(w){switch(w.label){case 0:if(!e)return[2];if(o='',nn(e)?o=e.toString():rn(e)&&(i=e),c=this.store,l=c.activeId,u=c.getNodeById(l),o&&(s=c.getSubRendererById(o),'fixed'===((null===(r=null==s?void 0:s.scaffold)||void 0===r?void 0:r.style)||{}).position&&(l=c.getRootId(),u=c.getNodeById(l))),!s&&!i)return[2];if(!u)return d.warning(B('0e24e1bbc19612a350f81296d9fb7802')),[2];if(p=i||(null==s?void 0:s.scaffold),this.isSpecialLayout(p),f=u.parent,h=null,m=null,v=null,c.activeRegion)m=l,v=c.activeRegion;else if(u.schema.columns&&'grid'!==u.type)m=l,v='columns';else if(u.schema.items&&sn(u.schema))m=l,v='items';else if(u.schema.fields&&'doc-entity'===u.schema.type)m=l,v='fields';else if(u.schema.body)m=l,v='body';else if(f){if(m=f.id,v=f.region,!f.region&&f.schema.body)v='body';else if(!f.region&&f.schema.items)v='items';else if(!f.region&&!f.schema.body&&!f.schema.items)return d.warning(B('bd690facb536d759814ee64f2760fecb')),[2];g=c.getSchemaParentById(l),b=-1,g.some((function(e,t){var n=!1;return(null==e?void 0:e.$$id)===l&&(b=t,n=!0),n})),h=null===(a=g[b+1])||void 0===a?void 0:a.$$id}else m=l,v='body';return y=i,!s||i?[3,2]:(y=s.scaffold||{type:s.type},s.scaffoldForm?[4,this.scaffold(s.scaffoldForm,y)]:[3,2]);case 1:y=w.sent(),w.label=2;case 2:return(E=this.addChild(m,v,y,h,s||u.info,{id:c.dragId,type:c.dragType,data:c.dragSchema},t))&&n&&setTimeout((function(){c.setActiveId(E.$$id)}),100),[2]}}))}))},e.prototype.canAppendSiblings=function(){var e=this.store,t=e.activeId,n=e.getNodeById(t),r=n.parent;return!!(n&&r&&r.schema)&&(!r.memberImmutable('')&&!!(r.schema.body||'flex'===r.schema.type&&r.schema.items||n.schema.columns))},e.prototype.appendSiblingSchema=function(e,t,n,r){var a,o;return T(this,void 0,void 0,(function(){var i,c,s,l,u,p,f,h,m,v;return j(this,(function(g){if(!e)return[2];if(i=this.store,c=i.activeId,!(s=i.getNodeById(c)))return d.warning(B('0e24e1bbc19612a350f81296d9fb7802')),[2];if(l=s.parent,u=null,p=null,f=null,l){if(p=l.id,f=l.region,!l.region&&l.schema.body)f='body';else if(!l.region&&'flex'===(null===(a=l.schema)||void 0===a?void 0:a.type)&&l.schema.items)f='items';else if(!l.region&&!l.schema.body)return d.warning(B('bd690facb536d759814ee64f2760fecb')),[2];h=i.getSchemaParentById(c),m=-1,h.some((function(e,t){var n=!1;return e.$$id===c&&(m=t,n=!0),n})),u=null===(o=h[t?m:m+1])||void 0===o?void 0:o.$$id,(v=this.addChild(p,f,e,u,s.info,{id:i.dragId,type:i.dragType,data:i.dragSchema},r))&&!n&&setTimeout((function(){i.setActiveId(v.$$id)}),100)}return[2]}))}))},e.prototype.insert=function(){return T(this,void 0,void 0,(function(){var e,t,n,r,a,o,i;return j(this,(function(c){switch(c.label){case 0:return e=this.store,(t=e.selectedInsertRendererInfo)?(n=e.insertId,r=e.insertRegion,a=e.insertBeforeId,o=t.scaffold||{type:t.type},t.scaffoldForm?[4,this.scaffold(t.scaffoldForm,o)]:[3,2]):[2];case 1:o=c.sent(),c.label=2;case 2:return(i=this.addChild(n,r,o,a,t))&&(e.closeInsertPanel(),setTimeout((function(){e.setActiveId(i.$$id)}),100)),[2]}}))}))},e.prototype.replace=function(){return T(this,void 0,void 0,(function(){var e,t,n,r,a,o=this;return j(this,(function(i){switch(i.label){case 0:return e=this.store,(t=e.selectedInsertRendererInfo)?(n=e.insertOrigId,r=t.scaffold||{type:t.type},a=e.insertRegion,t.scaffoldForm?[4,this.scaffold(t.scaffoldForm,r)]:[3,2]):[2];case 1:r=i.sent(),i.label=2;case 2:return this.replaceChild(n,r,t,a)&&(e.closeInsertPanel(),setTimeout((function(){o.rebuild()}),4)),[2]}}))}))},e.prototype.isFlexContainer=function(e){return this.store.isFlexContainer(e)},e.prototype.isFlexItem=function(e){return this.store.isFlexItem(e)},e.prototype.isFlexColumnItem=function(e){return this.store.isFlexColumnItem(e)},e.prototype.isSpecialLayout=function(e){var t=(null==e?void 0:e.style)||{};return'fixed'===(null==t?void 0:t.position)||'absolute'===(null==t?void 0:t.position)},e.prototype.draggableContainer=function(e){return this.store.draggableContainer(e)},e.prototype.updateContainerStyleByDrag=function(e,t,n){this.store.updateContainerStyleByDrag(e,t,n)},e.prototype.getEditorInfo=function(e,t,n){var r=null,a=n.$$id?this.store.getSchemaPath(n.$$id):'',o={renderer:e,path:t,schemaPath:a,schema:n},i=this.trigger('before-resolve-editor-info',o);return i.prevented?i.context.data:(this.plugins.some((function(t){var i,c=null===(i=t.getRendererInfo)||void 0===i?void 0:i.call(t,o);return!!c&&(r=$($({id:n.$$id},c),{type:n.type,plugin:t,renderer:e,dialogTitle:'dialog'===n.type||'drawer'===n.type?n.title:'',dialogType:n.dialogType,schemaPath:a}),!0)})),this.trigger('after-resolve-editor-info',$($({},o),{data:r})).context.data)},e.prototype.panelChangeValue=function(e,t,n,r){void 0===r&&(r=this.store.activeId);var a=this.store,o=$($({},this.buildEventContext(r)),{value:e,diff:t});this.trigger('before-update',o).prevented||(a.changeValue(e,t,n,r),this.trigger('after-update',$($({},o),{schema:o.node.schema})))},e.prototype.openSubEditor=function(e){if(['dialog','drawer','confirmDialog'].includes(e.value.type)&&this.parent)for(var t=this.parent,n=e.value.$$originId||e.value.$$id;t;){if(t.store.schema.$$id===n)return void d.warning('所选弹窗已经被打开,不能多次打开');t=t.parent}this.store.openSubEditor(e)},e.prototype.openContextMenu=function(e,t,n){var r=this,a=[],o=this.buildEventContext(e),i=$($({},o),{selections:this.store.selections.map((function(e){return r.buildEventContext(e)})),region:t,data:a});(a=this.buildContextMenus(i)).length&&(this.store.setContextId(e),x({x:n.x,y:n.y},a,(function(e){return e.state.isOpened&&r.store.setContextId('')})))},e.prototype.buildContextMenus=function(e){return this.plugins.forEach((function(t){var n;null===(n=t.buildEditorContextMenu)||void 0===n||n.call(t,e,e.data)})),this.trigger('build-context-menus',e),e.data},e.prototype.closeContextMenu=function(){},e.prototype.moveUp=function(){var e,t=this.store;if(t.activeId){var n=t.getNodeById(t.activeId),r=n.parent,a=n.host,o=this.buildEventContext(a),i=$($({},o),{sourceId:n.id,direction:'up',beforeId:null===(e=n.prevSibling)||void 0===e?void 0:e.id,region:r.region});this.trigger('before-move',i).prevented||(t.moveUp(n.id),this.trigger('after-move',i),this.trigger('after-update',i))}},e.prototype.moveDown=function(){var e,t,n=this.store;if(n.activeId){var r=n.getNodeById(n.activeId),a=r.parent,o=r.host,i=this.buildEventContext(o),c=$($({},i),{sourceId:r.id,direction:'down',beforeId:null===(t=null===(e=r.nextSibling)||void 0===e?void 0:e.nextSibling)||void 0===t?void 0:t.id,region:a.region});this.trigger('before-move',c).prevented||(n.moveDown(r.id),this.trigger('after-move',c),this.trigger('after-update',c))}},e.prototype.del=function(e){if(e&&e.length){var t=Array.isArray(e)?e[0]:e,n=$($({},this.buildEventContext(t)),{data:Array.isArray(e)?e.concat():[]});this.trigger('before-delete',n).prevented||(Array.isArray(n.data)&&n.data.length?this.store.delMulti(n.data):this.store.del(t),this.trigger('after-delete',n))}},e.prototype.duplicate=function(e){this.store.duplicate(e)},e.prototype.copy=function(e,t){void 0===t&&(t=B('52e6abbe5c11e7cbf14788c1540f8bf2'));var n=this.store.getValueOf(e);this.clipboardData=Ve(n),d.info(B('372ea9fd27fb7cfacfe1b4ca3046f8d0')+t)},e.prototype.cut=function(e){this.copy(e,B('2a6287664de5ab46c65220c7182878ff')),this.del(e)},e.prototype.paste=function(e,t){return T(this,void 0,void 0,(function(){var n,r=this;return j(this,(function(a){return this.clipboardData?(n=Dt(Ue(this.clipboardData)),t?(this.addChild(e,t,n),[2]):(this.replaceChild(e,n)&&setTimeout((function(){r.store.highlightNodes.forEach((function(e){e.calculateHighlightBox()})),r.updateConfigPanel(n.type)})),[2])):(C(B('1ff035555ac8a68dc5b0ea2d0af55f00')),[2])}))}))},e.prototype.emptyRegion=function(e,t){var n=this;this.store.emptyRegion(e,t),setTimeout((function(){n.store.activeId&&n.store.getNodeById(n.store.activeId)||n.store.setActiveId(e)}),100)},e.prototype.addChild=function(e,t,n,r,a,o,i){var c=this.store,s=-1,d=this.buildEventContext(e),l=yt(n,null==i||i);if(r){var u=d.schema[t];Array.isArray(u)&&(s=_e(u,(function(e){return(null==e?void 0:e.$$id)===r})))}var p=$($({},d),{beforeId:r,index:s,region:t,data:l,subRenderer:a,dragInfo:o}),f=this.trigger('before-insert',p);if(!f.prevented){var h=c.insertSchema(f);return this.trigger('after-insert',p),h}return null},e.prototype.move=function(e,t,n,r){var a=this.store,o=$($({},this.buildEventContext(e)),{beforeId:r,region:t,sourceId:n}),i=this.trigger('before-move',o);return!i.prevented&&(a.moveSchema(i),this.trigger('after-move',o),!0)},e.prototype.replaceChild=function(e,t,n,r,a){var o=yt(t,null==a||a),i=$($({},this.buildEventContext(e)),{data:$({},o),subRenderer:n,region:r}),c=this.trigger('before-replace',i);return!(c.prevented||!c.context.data)&&(this.store.replaceChild(e,c.context.data),this.trigger('after-replace',i),!0)},e.prototype.setActiveId=function(e){this.store.setActiveId(e)},e.prototype.openConfigPanel=function(e){var t=this.store;t.activeId!==e&&t.setActiveId(e),t.changePanelKey('config')},e.prototype.openCodePanel=function(e){var t=this.store;t.activeId!==e&&t.setActiveId(e),t.changePanelKey('code')},e.prototype.toggleSelection=function(e){var t=this.store,n=t.selections.concat();!n.length&&t.activeId&&n.push(t.activeId);var r=n.indexOf(e);~r?n.splice(r,1):n.push(e),this.setSelection(n,e)},e.prototype.setSelection=function(e,t){var n=this;void 0===t&&(t=e[0]);var r=this.store,a=this.buildEventContext(t),o=$($({},a),{selections:e.map((function(e){return n.buildEventContext(e)})),data:e});this.trigger('selection-change',o).prevented||(1===(e=o.data).length?r.setActiveId(e[0]):r.setSelections(e))},e.prototype.startDrag=function(e,t){t.persist(),this.dnd.startDrag(e,t.nativeEvent)},e.prototype.scaffold=function(e,t){return T(this,void 0,void 0,(function(){var n,r,a=this;return j(this,(function(o){switch(o.label){case 0:return e.pipeIn?[4,e.pipeIn(t)]:[3,2];case 1:return r=o.sent(),[3,3];case 2:r=t,o.label=3;case 3:return n=r,[2,new Promise((function(t){a.store.openScaffoldForm($($({},e),{value:n,callback:t}))}))]}}))}))},e.prototype.reScaffold=function(e,t,n){return T(this,void 0,void 0,(function(){var r;return j(this,(function(a){switch(a.label){case 0:return[4,this.scaffold(t,n)];case 1:return r=a.sent(),this.replaceChild(e,r),[2]}}))}))},e.prototype.reScaffoldV2=function(e){var t;return T(this,void 0,void 0,(function(){var n,r,a,o;return j(this,(function(i){switch(i.label){case 0:return n=this.buildEventContext(e),r=null===(t=n.info)||void 0===t?void 0:t.scaffoldForm,a=n.schema,[4,this.scaffold(r,a)];case 1:return o=i.sent(),this.replaceChild(e,o),[2]}}))}))},e.prototype.patchSchema=function(e){var t=this;if(void 0===e&&(e=!1),this.patching)this.patchingInvalid=!0;else{this.patching=!0,this.patchingInvalid=!1;var n=[],r=function(a){a.forEach((function(a){a.uniqueChildren&&a.uniqueChildren.length&&r(a.uniqueChildren),ke(a)&&!a.isRegion&&a.patch(t.store,e,(function(e,t){return n.unshift({id:e,value:t})}))}))};r(this.store.root.children),this.store.batchChangeValue(n),this.patching=!1,this.patchingInvalid&&this.patchSchema(e)}},e.prototype.hackRenderers=function(e){var t=this;void 0===e&&(e=me());var n=[];e.forEach((function(e){t.plugins.filter((function(t){var n;return Array.isArray(null==t?void 0:t.regions)&&t.regions.some((function(n){var r;return n.renderMethod&&(null!==(r=n.rendererName)&&void 0!==r?r:t.rendererName)===e.name}))||t.overrides&&(null!==(n=t.overrideTargetRendererName)&&void 0!==n?n:t.rendererName)===e.name})).forEach((function(t){var r,a,o=null===(r=t.regions)||void 0===r?void 0:r.filter((function(n){var r;return n.renderMethod&&(null!==(r=n.rendererName)&&void 0!==r?r:t.rendererName)===e.name}));(null==o?void 0:o.length)&&n.push({renderer:e,regions:o}),t.overrides&&(null!==(a=t.overrideTargetRendererName)&&void 0!==a?a:t.rendererName)===e.name&&n.push({renderer:e,overrides:t.overrides})}))})),n.forEach((function(e){var n=e.regions,r=e.renderer,a=e.overrides;return t.hackIn(r,n,a)}))},e.prototype.makeWrapper=function(e,t){return function(e,t,n){var r=e.store,a=n.component,o=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return K(i,o),i.prototype.UNSAFE_componentWillMount=function(){var a,o,i=this,c=this.context||r.root;if(t.id&&(this.editorNode=c.addChild({id:t.id,type:t.type,label:t.name,isCommonConfig:!!this.props.$$commonSchema,path:this.props.$path,schemaPath:t.schemaPath,dialogTitle:t.dialogTitle,dialogType:t.dialogType,info:t,getData:function(){return i.props.data}}),this.editorNode.setRendererConfig(n),(n.storeType||t.isListComponent)&&!e.dataSchema.hasScope(''.concat(t.id,'-').concat(t.type)))){for(var s=c,d=void 0;s&&!d;)s===r.root?d=e.dataSchema.getScope('root'):e.dataSchema.hasScope(''.concat(s.id,'-').concat(s.type))&&(d=e.dataSchema.getScope(''.concat(s.id,'-').concat(s.type))),s='root'===s.parentId?r.root:s.parent;if(!d)throw new Error(B('186733ed7ec817040b8f9cbc610ba49a'));if(e.dataSchema.switchTo(d.id),this.scopeId=''.concat(t.id,'-').concat(t.type),e.dataSchema.addScope([],this.scopeId),t.name){var l=null===(a=e.store.getNodeById(t.id))||void 0===a?void 0:a.schema,u=hn(null!==(o=null==l?void 0:l.title)&&void 0!==o?o:null==l?void 0:l.name);e.dataSchema.current.tag=''.concat(t.name).concat(u?' : '.concat(u):''),e.dataSchema.current.group=B('813a5158d9f7171d20e7df340c5b48f9')}}},i.prototype.componentDidUpdate=function(e){var t=this.props;this.editorNode&&t.$$commonSchema!==e.$$commonSchema&&this.editorNode.updateIsCommonConfig(!!this.props.$$commonSchema)},i.prototype.componentWillUnmount=function(){this.editorNode&&ke(this.editorNode)&&(this.context||r.root).removeChild(this.editorNode),this.scopeId&&e.dataSchema.removeScope(this.scopeId)},i.prototype.wrapperRef=function(e){for(var n,r;null==e?void 0:e.getWrappedInstance;)e=e.getWrappedInstance();this.editorNode&&ke(this.editorNode)&&(this.editorNode.setComponent(e),null===(r=null===(n=t.plugin)||void 0===n?void 0:n.componentRef)||void 0===r||r.call(n,this.editorNode,e))},i.prototype.renderChild=function(e,n,r){var a=this.props.render;return(null==n?void 0:n.$$id)&&((r=r||{}).key=''.concat(r.key,'-').concat(n.$$id)),a(e,n,$($({},r),{$$editor:t}))},i.prototype.render=function(){var e=this.props;e.$$id;var n=z(e,['$$id']),r=this.props.$$commonSchema?no:t.regions?to:Qa;return Z.createElement(Za.Provider,{value:this.editorNode||this.context},Z.createElement(le,{customErrorMsg:'拦截到'.concat(t.type,'渲染错误'),fallback:function(){return Z.createElement('div',{className:'renderer-error-boundary'},null==t?void 0:t.type,B('e9a11b908a9b4f3d9dc947d9a64c0dab'))}},Z.createElement(r,$({},n,{render:this.renderChild,$$editor:t,$$node:this.editorNode,ref:this.wrapperRef}))))},i.displayName=a.displayName,i.propsList=(a&&a.propsList||[]).concat(['$$id']),i.contextType=Za,_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],i.prototype,'wrapperRef',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,Object,Object]),V('design:returntype',void 0)],i.prototype,'renderChild',null),_([xe],i)}(Z.Component);return o}(this,e,t)},e.prototype.makeSchemaFormRender=function(e){return function(e,t){var n=$($({},e.env),{session:'schema-form'}),r=qe((function(e){return e?Ze(Array.isArray(e)?e:[e]):void 0}));return function(a){var o=a.value,i=a.onChange,c=a.popOverContainer,s=a.id,d=a.store,l=a.node,u=$({},e.store.ctx);if((null==t?void 0:t.panelById)&&(null==t?void 0:t.panelById)!==(null==l?void 0:l.id))return Z.createElement(Z.Fragment,null);s&&Object.defineProperty(u,'__props__',{get:function(){var e,t=d.getNodeById(s);return(null===(e=null==t?void 0:t.getComponent())||void 0===e?void 0:e.props)||{}}});var p=''.concat(s,'-').concat(null==l?void 0:l.type).concat(t.formKey?'-':'').concat(t.formKey?t.formKey:''),f=r(t.body),h=r(t.controls);return Z.createElement(ro,{key:p,propKey:p,api:t.api,definitions:t.definitions,body:f,controls:h,value:o,ctx:u,pipeIn:t.pipeIn,pipeOut:t.pipeOut,submitOnChange:t.submitOnChange,onChange:i,env:n,popOverContainer:c,node:l,manager:e,justify:t.justify})}}(this,e)},e.prototype.onWidthChangeStart=function(e,t){return this.trigger('width-change-start',$($({},t),{nativeEvent:e}))},e.prototype.onHeightChangeStart=function(e,t){return this.trigger('height-change-start',$($({},t),{nativeEvent:e}))},e.prototype.onSizeChangeStart=function(e,t){return this.trigger('size-change-start',$($({},t),{nativeEvent:e}))},e.prototype.openNodePopOverForm=function(e){var t,n,r,a,o='string'==typeof e?this.store.getNodeById(e):e;if(o&&((null===(n=null===(t=o.info)||void 0===t?void 0:t.plugin)||void 0===n?void 0:n.popOverBody)||(null===(a=null===(r=o.info)||void 0===r?void 0:r.plugin)||void 0===a?void 0:a.popOverBodyCreator))){var i=o.info.plugin,c=this.store,s={node:o,body:i.popOverBodyCreator?i.popOverBodyCreator(this.buildEventContext(o)):i.popOverBody,value:c.getValueOf(o.id),callback:this.panelChangeValue,target:function(){return document.querySelector('[data-hlbox-id="'.concat(o.id,'"]'))}};c.openPopOverForm(s)}},e.prototype.addBroadcast=function(e){this.broadcasts.push(e)},e.prototype.removeBroadcast=function(e){var t=_e(this.broadcasts,(function(t){return t.eventName===e}));this.broadcasts.splice(t,1)},e.prototype.getContextSchemas=function(e,t){var n,r,a,o,i,c,s,d,l;return void 0===t&&(t=!1),T(this,void 0,void 0,(function(){var u,p,f,h,m,v,g,b,y,E,w,C,S,I,x,R,N,O,k,A,M,P,F,D,B,T=this;return j(this,(function(j){switch(j.label){case 0:if(!(u='string'==typeof e?this.store.getNodeById(e):e))return[2,[]];for(v in p=void 0,f=u,h=u,m=u,this.dataSchema.idMap)/\-currentRow$/.test(v)&&this.dataSchema.removeScope(v);for(;!p&&f;)E=null===(n=f.info)||void 0===n?void 0:n.id,N=null===(r=f.info)||void 0===r?void 0:r.type,p=this.dataSchema.hasScope(''.concat(E,'-').concat(N))?this.dataSchema.getScope(''.concat(E,'-').concat(N)):void 0,(null==(f=f.parent)?void 0:f.isRegion)&&(h=f);b=[],j.label=1;case 1:return p?(y=H(p.id.split('-'),1),E=y[0],N=p.id.replace(''.concat(E,'-'),''),w=this.store.getNodeById(E,N),g||!w||w.isSecondFactor||(g=p),w?[4,null===(i=null===(o=null===(a=null==w?void 0:w.info)||void 0===a?void 0:a.plugin)||void 0===o?void 0:o.buildDataSchemas)||void 0===i?void 0:i.call(o,w,h,m)]:[3,3]):[3,4];case 2:(k=j.sent())&&(A=$($({},k),(null==k?void 0:k.$id)?{}:{$id:''.concat(w.id,'-').concat(w.type)}),p.removeSchema(A.$id),p.addSchema(A)),(null===(c=null==w?void 0:w.info)||void 0===c?void 0:c.isListComponent)&&(b.unshift(p),E===e&&(g=p.parent)),j.label=3;case 3:return p=t?void 0:p.parent,[3,1];case 4:if(!(b.length>1))return[3,12];j.label=5;case 5:j.trys.push([5,10,11,12]),C=U(b),S=C.next(),j.label=6;case 6:return S.done?[3,9]:(I=S.value,x=H(I.id.split('-'),2),R=x[0],N=x[1],(O=this.store.getNodeById(R,N))?[4,null===(l=null===(d=null===(s=null==O?void 0:O.info)||void 0===s?void 0:s.plugin)||void 0===d?void 0:d.buildDataSchemas)||void 0===l?void 0:l.call(d,O,h,m)]:[3,8]);case 7:(k=j.sent())&&(A=$($({},k),(null==k?void 0:k.$id)?{}:{$id:''.concat(O.id,'-').concat(O.type)}),I.removeSchema(A.$id),I.addSchema(A)),j.label=8;case 8:return S=C.next(),[3,6];case 9:return[3,12];case 10:return M=j.sent(),D={error:M},[3,12];case 11:try{S&&!S.done&&(B=C.return)&&B.call(C)}finally{if(D)throw D.error}return[7];case 12:return P=Object.keys(this.dataSchema.idMap).find((function(e){var t;return/\-currentRow$/.test(e)&&!(null===(t=T.dataSchema.idMap[e].children)||void 0===t?void 0:t.length)}))||(null==g?void 0:g.id),P&&this.dataSchema.switchTo(P),u.info.isListComponent&&(F=b[b.length-1],this.dataSchema.switchTo(F.parent)),[2,t?this.dataSchema.current.schemas:this.dataSchema.getSchemas()]}}))}))},e.prototype.getAvailableContextFields=function(e){var t,n,r,a,o,i,c,s;return T(this,void 0,void 0,(function(){var d,l,u,p,f,h;return j(this,(function(m){if(!e)return[2];for(d=void 0,l=e;!d&&l&&((d=this.dataSchema.hasScope(''.concat(l.id,'-').concat(l.type))?this.dataSchema.getScope(''.concat(l.id,'-').concat(l.type)):void 0)||!['combo','input-table'].includes(null===(t=null==l?void 0:l.info)||void 0===t?void 0:t.type));)null==(l=l.parent)||l.isRegion;if(!d)return!l&&this.store.isSubEditor?[2,null===(r=null===(n=this.config)||void 0===n?void 0:n.getAvaiableContextFields)||void 0===r?void 0:r.call(n,e)]:[2,null===(o=null==l?void 0:(a=l.info.plugin).getAvailableContextFields)||void 0===o?void 0:o.call(a,l,e)];for(;d;){if(u=H(d.id.split('-'),1),p=u[0],f=d.id.substring(p.length+1),(h=this.store.getNodeById(p,f))&&!(null===(i=h.info)||void 0===i?void 0:i.isListComponent))return[2,null===(s=null==h?void 0:(c=h.info.plugin).getAvailableContextFields)||void 0===s?void 0:s.call(c,h,e)];d=d.parent}return[2]}))}))},e.prototype.beforeDispatchEvent=function(e,t,n,r,a,o){var i,c,s,d;null==e||e(t,n,r,a,o);var l=n.props.$$id||(null===(i=n.props.$$editor)||void 0===i?void 0:i.id);if(l){var u=this.store.getNodeById(l,n.props.type);null===(d=null===(s=null===(c=null==u?void 0:u.info)||void 0===c?void 0:c.plugin)||void 0===s?void 0:s.rendererBeforeDispatchEvent)||void 0===d||d.call(s,u,t,Et(a))}},e.prototype.dispose=function(){this.trigger('dispose',{data:this}),delete this.parent,this.toDispose.forEach((function(e){return e()})),this.toDispose=[],this.plugins.forEach((function(e){var t;return null===(t=e.dispose)||void 0===t?void 0:t.call(e)})),this.plugins.splice(0,this.plugins.length),this.listeners.splice(0,this.listeners.length),this.broadcasts.splice(0,this.broadcasts.length),this.lazyPatchSchema.cancel(),this.dnd.dispose()},_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Object,Function,Object]),V('design:returntype',void 0)],e.prototype,'panelChangeValue',null),e}(),wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.afterResolveEditorInfo=function(e){var t,n,r,a,o,i,c=this.props.store,s=e.context;if(null===(t=c.subEditorContext)||void 0===t?void 0:t.slot){var d=c.subEditorSlotPath;!~s.schemaPath.indexOf(d)&&s.data?(s.data.editable=!1,s.data.memberImmutable=!Array.isArray(null===(a=c.subEditorContext)||void 0===a?void 0:a.value),s.data.memberImmutable||(s.data.name=B('22c799040acdb2601b437ed5449de076'))):s.schemaPath===d&&s.data&&(Array.isArray(null===(o=c.subEditorContext)||void 0===o?void 0:o.value)||(s.data.movable=!1,s.data.removable=!1),s.data.typeMutable=null===(i=c.subEditorContext)||void 0===i?void 0:i.typeMutable)}else s.data&&!s.schemaPath&&(null===(n=c.subEditorContext)||void 0===n?void 0:n.memberImmutable)&&(s.data.memberImmutable=null===(r=c.subEditorContext)||void 0===r?void 0:r.memberImmutable)},t.prototype.handleBuildPanels=function(e){var t,n;if(null===(n=this.props.store.subEditorContext)||void 0===n?void 0:n.slot){var r=e.context;if(r.info.memberImmutable){var a=r.data.concat();r.data.splice(0,r.data.length);var o=a.filter((function(e){return'renderers'!==e.key}));o&&(t=r.data).push.apply(t,L([],H(o),!1)),r.changeLeftPanelKey='outline'}}},t.prototype.buildSchema=function(){var e,t,n=this,r=this.props,a=r.store,o=r.manager,i=r.amisEnv,c=a.subEditorContext,s=o.config,d=a.superEditorData;c&&(d=oe(a.superEditorData,null==c?void 0:c.data));var l=(null===(e=o.config)||void 0===e?void 0:e.variables)||[];return{size:'full',title:null===(t=a.subEditorContext)||void 0===t?void 0:t.title,onClose:a.closeSubEditor,onConfirm:a.confirmSubEditor,body:a.subEditorContext?{type:'form',mode:'normal',wrapperComponent:'div',onValidate:function(e){return T(n,void 0,void 0,(function(){var t,n,r;return j(this,(function(o){switch(o.label){case 0:return[4,null===(r=null===(n=a.subEditorContext)||void 0===n?void 0:n.validate)||void 0===r?void 0:r.call(n,e)];case 1:return(t=o.sent())?[2,{schema:t}]:[2]}}))}))},onChange:a.subEditorOnChange,body:[{name:'schema',asFormItem:!0,children:function(e){var t,r,u,p,f=e.value,h=e.onChange;return Z.createElement(Mo,{autoFocus:!0,value:f,ref:a.subEditorRef,onChange:h,data:null===(t=a.subEditorContext)||void 0===t?void 0:t.data,hostManager:o,hostNode:null===(r=a.subEditorContext)||void 0===r?void 0:r.hostNode,superEditorData:d,schemaFilter:o.config.schemaFilter,theme:o.env.theme,afterResolveEditorInfo:n.afterResolveEditorInfo,onBuildPanels:n.handleBuildPanels,isMobile:a.isMobile,isSubEditor:!0,ctx:a.ctx,schemas:null===(u=o.config)||void 0===u?void 0:u.schemas,variables:l,amisEnv:i||s.amisEnv,appLocale:s.appLocale,i18nEnabled:s.i18nEnabled,plugins:s.plugins,actionOptions:s.actionOptions,showCustomRenderersPanel:null===(p=a.showCustomRenderersPanel)||void 0===p||p,isHiddenProps:s.isHiddenProps,$schemaUrl:s.$schemaUrl,onFormulaEditorOpen:function(e,t,r){return T(n,void 0,void 0,(function(){var n,a;return j(this,(function(i){return(n=null===(a=null==o?void 0:o.config)||void 0===a?void 0:a.onFormulaEditorOpen)&&'function'==typeof n?[2,n(e,t,r,{node:null==c?void 0:c.hostNode,manager:o})]:[2]}))}))},getHostNodeDataSchema:function(){return T(n,void 0,void 0,(function(){return j(this,(function(e){switch(e.label){case 0:return[4,o.getContextSchemas(o.store.activeId)];case 1:return e.sent(),[2,o.dataSchema]}}))}))},getAvaiableContextFields:function(e){return o.getAvailableContextFields(e)}})}}]}:{type:'tpl',tpl:'Loading...'},actions:[[{children:c?Z.createElement('div',{className:'ae-DialogToolbar'},Z.createElement('button',{type:'button','data-tooltip':B('bd9fcf46b4e5993f97fe04ee9ebcd7ed'),'data-position':'top',disabled:!c.canUndo,onClick:a.undoSubEditor},Z.createElement('i',{className:'fa fa-undo'})),Z.createElement('button',{type:'button','data-tooltip':B('c3c873d33f1c6482c79b0ffd862786cd'),'data-position':'top',disabled:!c.canRedo,onClick:a.redoSubEditor},Z.createElement('i',{className:'fa fa-rotate-right'}))):null},{type:'submit',label:B('be5fbbe34ce9979bfb6576d9eddc5612'),level:'primary'},{type:'button',label:B('625fb26b4b3340f7872b411f401e754c'),actionType:'close'}]],closeOnEsc:!1,bodyClassName:'ae-dialog subEditor-dialog'}},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,r=e.manager;return o($({type:'dialog'},this.buildSchema()),{show:!!t.subEditorContext,data:{schema:t.subEditorValue}},$($({},$e(r.env,'replaceText')),{session:'editor-dialog',theme:n}))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'afterResolveEditorInfo',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleBuildPanels',null),t=_([xe],t)}(Z.Component),Co=function(e){function t(t){var n=e.call(this,t)||this;return n.breadcrumbRef=Z.createRef(),n.bcnContentRef=Z.createRef(),n.state={showLeftScrollBtn:!1,showRightScrollBtn:!1},n.unReaction=be((function(){return n.props.store.bcn}),(function(){n.refreshHandleScroll(!0)})),n}return K(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.getCurBreadcrumb(),n=this.getBreadcrumbContainer();t&&n&&(this.unSensor=s(n,(function(){e.refreshHandleScroll()})))},t.prototype.componentWillUnmount=function(){this.unReaction(),this.unSensor&&(this.unSensor(),delete this.unSensor)},t.prototype.refreshHandleScroll=function(e){var t=this;setTimeout((function(){t.HandleScroll(e)}),0)},t.prototype.getCurBreadcrumb=function(){return this.bcnContentRef.current},t.prototype.getBreadcrumbContainer=function(){return this.breadcrumbRef.current},t.prototype.getScrollLeft=function(){var e=this.getCurBreadcrumb();return e?e.style.left:'0'},t.prototype.toNumber=function(e){return e?Number.parseInt(e):0},t.prototype.HandleScroll=function(e){var t=this.getCurBreadcrumb(),n=this.getBreadcrumbContainer();if(t&&n){var r=this.toNumber(this.getScrollLeft()),a=t.offsetWidth-n.offsetWidth;e&&(t.style.left='0'),this.setState({showLeftScrollBtn:r<0,showRightScrollBtn:r>-a})}},t.prototype.handleScrollToLeft=function(){var e=this.getCurBreadcrumb();if(e){var t=this.toNumber(this.getScrollLeft());t>=-50&&t<0?(e.style.left='0',this.refreshHandleScroll()):t<-50&&(e.style.left=''.concat(t+50,'px'),this.refreshHandleScroll())}},t.prototype.handleScrollToRight=function(){var e=this.getCurBreadcrumb(),t=this.getBreadcrumbContainer();if(e&&t){var n=this.toNumber(this.getScrollLeft()),r=e.offsetWidth-t.offsetWidth;e.style.left=n-50>-r?''.concat(n-50,'px'):'-'.concat(r,'px'),this.refreshHandleScroll()}},t.prototype.handleClick=function(e){var t,n=e.currentTarget,r=n.getAttribute('data-node-id'),a=n.getAttribute('data-node-region'),o=this.props.store;this.props.manager;var i=o.getNodeById(r);!1!==(null===(t=null==i?void 0:i.info)||void 0===t?void 0:t.editable)&&(a?o.setActiveId(r,a):o.setActiveId(r))},t.prototype.handleMouseEnter=function(e){var t=e.currentTarget,n=t.getAttribute('data-node-id'),r=t.getAttribute('data-node-region');this.props.store.setHoverId(n,r)},t.prototype.render=function(){var e=this,t=this.props.store,n=this.state,a=n.showLeftScrollBtn,o=n.showRightScrollBtn,i=t.bcn;return Z.createElement('div',{className:'ae-Breadcrumb',ref:this.breadcrumbRef},a&&Z.createElement('div',{className:'ae-Breadcrumb-scrollLeft-btn',onClick:this.handleScrollToLeft},Z.createElement(r,{icon:'editor-double-arrow',className:'icon'})),Z.createElement('div',{className:'ae-Breadcrumb-content',ref:this.bcnContentRef},i.length?Z.createElement('ul',null,i.map((function(t,n){var r,a=null===(r=t.parent)||void 0===r?void 0:r.uniqueChildren;return Z.createElement('li',{key:n},Z.createElement('span',{'data-node-id':t.id,'data-node-region':t.region,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter},t.label),(null==a?void 0:a.length)>1?Z.createElement('ul',{className:'hoverShowScrollBar'},a.map((function(n){return Z.createElement('li',{key:''.concat(n.id,'-').concat(n.region)},Z.createElement('span',{'data-node-id':n.id,'data-node-region':n.region,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,className:n.id===t.id&&n.region===t.region?'is-active':''},n.label))}))):null)}))):null),o&&Z.createElement('div',{className:'ae-Breadcrumb-scrollRight-btn',onClick:this.handleScrollToRight},Z.createElement(r,{icon:'editor-double-arrow',className:'icon'})))},_([Ut,V('design:type',Function),V('design:paramtypes',[Boolean]),V('design:returntype',void 0)],t.prototype,'refreshHandleScroll',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getCurBreadcrumb',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getBreadcrumbContainer',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',String)],t.prototype,'getScrollLeft',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',Number)],t.prototype,'toNumber',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Boolean]),V('design:returntype',void 0)],t.prototype,'HandleScroll',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleScrollToLeft',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleScrollToRight',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleMouseEnter',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),So=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.handleConfirm=function(e){var t,n,r,a,o=H(e,1)[0];return T(this,void 0,void 0,(function(){var e,i,c;return j(this,(function(s){switch(s.label){case 0:return e=this.props.store,i=null===(t=e.scaffoldForm)||void 0===t?void 0:t.pipeOut,o=$($({},null===(n=e.scaffoldForm)||void 0===n?void 0:n.value),o),i&&'function'==typeof i?[4,i(o)]:[3,2];case 1:c=s.sent(),o=$({},c),s.label=2;case 2:return null===(r=e.scaffoldForm)||void 0===r||r.callback(o),e.closeScaffoldForm(),(null===(a=e.scaffoldForm)||void 0===a?void 0:a.stepsBody)&&e.setScaffoldStep(0),[2]}}))}))},t.prototype.buildSchema=function(){var e,t,n,r=this.props.store.scaffoldForm,a=null!==(t=r.controls)&&void 0!==t?t:r.body;return r.stepsBody&&(a=L([{type:'steps',name:'__step',className:'ae-Steps',steps:a.map((function(e,t){return{title:e.title,value:t,iconClassName:'ae-Steps-Icon'}}))}],H(a.map((function(e,t){return{type:'container',visibleOn:'__step === '.concat(t),body:e.body}}))),!1)),n=rn(r.mode)?r.mode:{mode:r.mode||'normal'},$($({type:'form',wrapWithPanel:!1,initApi:r.initApi,api:r.api},n),((e={wrapperComponent:'div'})[r.controls?'controls':'body']=a,e))},t.prototype.scopeRef=function(e){this.amisScope=e},t.prototype.goToNextStep=function(){var e,t=this.props.store,n=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0].props.store,r=t.scaffoldFormStep+1;n.setValueByName('__step',r),t.updateScaffoldData(null==n?void 0:n.data,!0),t.setScaffoldStep(r),t.setScaffoldStepManipulated(!0)},t.prototype.goToPrevStep=function(){var e,t=this.props.store,n=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0].props.store,r=t.scaffoldFormStep-1;n.setValueByName('__step',r),t.updateScaffoldData(null==n?void 0:n.data,!0),t.setScaffoldStep(r)},t.prototype.handleConfirmClick=function(){var e;return T(this,void 0,void 0,(function(){var t,n,r,a;return j(this,(function(o){switch(o.label){case 0:if(!(t=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0]))return[2];n=this.props.store,o.label=1;case 1:return o.trys.push([1,4,,5]),n.setScaffoldBuzy(!0),[4,t.doAction({type:'submit'},t.props.data,!0)];case 2:return r=o.sent(),[4,this.handleConfirm([r])];case 3:return o.sent(),[3,5];case 4:return a=o.sent(),console.log(a.stack),n.setScaffoldError(a.message),[3,5];case 5:return n.setScaffoldBuzy(!1),n.setScaffoldStep(0),[2]}}))}))},t.prototype.handleCancelClick=function(){this.props.store.closeScaffoldForm(),this.props.store.setScaffoldStep(0)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,a=e.manager,i=t.scaffoldForm,c=N(n||'cxd').classnames,s=!!(null==i?void 0:i.stepsBody),d=!!(null==i?void 0:i.canSkip),l=s&&t.scaffoldFormStep===i.body.length-1,u=s&&0===t.scaffoldFormStep;return Z.createElement(O,{theme:n,size:(null==i?void 0:i.size)||'md',contentClassName:null==i?void 0:i.className,show:!!i,onHide:this.handleCancelClick,className:'ae-scaffoldForm-Modal :AMISCSSWrapper',closeOnEsc:!t.scaffoldFormBuzy},Z.createElement('div',{className:c('Modal-header')},t.scaffoldFormBuzy?null:Z.createElement('a',{'data-position':'left',onClick:this.handleCancelClick,className:c('Modal-close')},Z.createElement(r,{icon:'close',className:'icon'})),Z.createElement('div',{className:c('Modal-title')},null==i?void 0:i.title)),Z.createElement('div',{className:c('Modal-body')},i?o(this.buildSchema(),{data:t.scaffoldData,onValidate:i.validate,scopeRef:this.scopeRef,manager:a},$($({},a.env),{session:'scaffold-dialog',theme:n})):Z.createElement('p',null,'Loading...')),Z.createElement('div',{className:c('Modal-footer')},t.scaffoldFormBuzy||t.scaffoldError?Z.createElement('div',{className:c('Dialog-info'),key:'info'},Z.createElement(E,{size:'sm',key:'info',show:t.scaffoldFormBuzy}),t.scaffoldError?Z.createElement('span',{className:c('Dialog-error')},t.scaffoldError):null):null,s&&d&&u&&Z.createElement(f,{onClick:this.handleConfirmClick,disabled:t.scaffoldFormBuzy},B('451d71974652fdd1840a73c980f80fe8')),s&&!u&&Z.createElement(f,{level:'primary',onClick:this.goToPrevStep,disabled:t.scaffoldFormBuzy},B('eeb6908870e058bc23d52c1e405a054e')),s&&!l&&Z.createElement(f,{level:'primary',onClick:this.goToNextStep,disabled:t.scaffoldFormBuzy},B('38ce27d84639f3a6e07c00b3b4995c0e')),(!s||l)&&Z.createElement(f,{level:'primary',onClick:this.handleConfirmClick,disabled:t.scaffoldFormBuzy},B('e83a256e4f5bb4ff8b3d804b5473217a')),Z.createElement(f,{onClick:this.handleCancelClick},B('625fb26b4b3340f7872b411f401e754c'))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',Promise)],t.prototype,'handleConfirm',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'scopeRef',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'goToNextStep',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'goToPrevStep',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',Promise)],t.prototype,'handleConfirmClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleCancelClick',null),t=_([xe],t)}(Z.Component),Io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.overlay=Z.createRef(),t}return K(t,e),t.prototype.buildSchema=function(){var e=this,t=this.props.store.popOverForm;return{type:'form',wrapWithPanel:!1,mode:'normal',wrapperComponent:'div',body:t.body,submitOnChange:!0,autoFocus:!0,onFinished:function(n){var r;null===(r=t.callback)||void 0===r||r.call(t,n,Jt(t.value,n)),setTimeout((function(){var t;return null===(t=e.overlay.current)||void 0===t?void 0:t.updatePosition()}),200)}}},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,r=e.manager,a=t.popOverForm;return Z.createElement(k,{target:null==a?void 0:a.target,placement:'left-bottom-left-top left-top-left-bottom right-bottom-right-top right-top-right-bottom center',show:!!a,ref:this.overlay},Z.createElement(A,{overlay:!0,className:'ae-Editor-popOverForm',onHide:t.closePopOverForm},a?o(this.buildSchema(),{data:oe(t.ctx,null==a?void 0:a.value),node:null==a?void 0:a.node,manager:r},$($({},r.env),{session:'popover-form',theme:n})):Z.createElement('p',null,'Loading...')))},t=_([xe],t)}(Z.Component),xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.render=function(){var e=this.props.store.contextMenuPanel,t=e&&e.menus?e.menus:[];return t&&t.length>0?Z.createElement('div',{className:'context-menu-setting'},Z.createElement('div',{className:'setting-header'},B('7f7c624a843b0d539a4ea59a696702f9')),Z.createElement('div',{className:'setting-body'},t.map((function(e){return e.label&&Z.createElement('div',{key:e.label,className:'setting-item '.concat(e.disabled?'disabled':''),onClick:e.disabled?null:e.onSelect},Z.createElement('div',{className:'icon-box'},Z.createElement(r,{icon:e.icon,className:'menu-icon'})),Z.createElement('div',{className:'setting-info'},e.label))})))):null},t=_([xe],t)}(Z.Component),Ro=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.getPopOverContainer=function(){return Re(this)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.manager,r=e.node,a=e.panelItem,o=e.theme,i=t.activeId;return Z.createElement(M,{position:'left',size:'md',theme:o,show:!!a,onHide:t.closeInsertPanel,className:'ae-InsertPanel-drawer'},a&&a.component?Z.createElement(a.component,{key:a.key,id:i,info:null==r?void 0:r.info,path:null==r?void 0:r.path,value:t.value,onChange:n.panelChangeValue,store:t,manager:n,popOverContainer:this.getPopOverContainer}):null)},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=_([xe],t)}(Z.Component),No=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.getPopOverContainer=function(){return Re(this)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.manager,r=e.node,a=e.panelItem,o=e.theme,i=t.activeId,c=t.showInsertRenderer;return Z.createElement(M,{position:'left',size:'md',theme:o,show:c,onHide:t.closeInsertRendererPanel,className:'ae-InsertRendererPanel-drawer',bodyClassName:'ae-drawer-renderers'},a.title&&Z.createElement('div',{className:'ae-drawer-title'},a.title),a&&a.component?Z.createElement(a.component,{key:a.key,id:i,info:null==r?void 0:r.info,path:null==r?void 0:r.path,value:t.value,onChange:n.panelChangeValue,store:t,manager:n,popOverContainer:this.getPopOverContainer}):null)},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=_([xe],t)}(Z.Component),Oo=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isFixedStatus:!1},n}return K(t,e),t.prototype.handleHidden=function(){var e=this.props.store,t=e.changeLeftPanelOpenStatus,n=e.leftPanelOpenStatus,r=e.changeLeftPanelKey,a=!n;t(a),r(a?'outline':'none')},t.prototype.handleFixed=function(){this.setState({isFixedStatus:!this.state.isFixedStatus})},t.prototype.handleSelect=function(e){var t=this.props.store,n=t.changeLeftPanelOpenStatus,r=t.changeLeftPanelKey;e&&(n(!0),r(e))},t.prototype.getPopOverContainer=function(){return Re(this)},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.manager,o=t.theme,i=this.state.isFixedStatus,c=n.leftPanelOpenStatus,s=n.getLeftPanels(),d=n.activeId,l=n.getNodeById(d),u=n.getLeftPanelKey(),p=n.insertId&&n.insertRegion&&Le(s,(function(e){return'insert'===e.key})),f=Le(s,(function(e){return'insertRenderer'===e.key}));return Z.createElement(Z.Fragment,null,s.length>0&&Z.createElement('div',{className:X('editor-left-panel width-draggable',c?'':'hidden-status',i?'fixed-status':'')},Z.createElement('div',{className:'editor-panel-btn','editor-tooltip':B(i?'95509c09bdef4bb7842a9b957ab1f971':'426480bb614633c8c3ba8faa0338b72f'),'tooltip-position':'right'},Z.createElement(r,{icon:i?'editor-fixed':'editor-no-fixed',className:'panel-btn',onClick:this.handleFixed})),Z.createElement(v,{className:'editorPanel-tabs',linksClassName:'editorPanel-tabs-header',contentClassName:'editorPanel-tabs-content',theme:o,activeKey:u,onSelect:this.handleSelect,tabsMode:'sidebar',sidePosition:'left'},s.map((function(t){return'insert'!==t.key&&'insertRenderer'!==t.key?Z.createElement(g,{key:t.key,eventKey:t.key,title:t.title,className:'editorPanel-tabs-pane ae-Editor-'.concat(t.key,'Pane'),mountOnEnter:!0,unmountOnExit:!1},function(t){return t.render?t.render({id:d,info:null==l?void 0:l.info,path:null==l?void 0:l.path,node:l,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):t.component?Z.createElement(t.component,{node:l,key:t.key,id:d,info:null==l?void 0:l.info,path:null==l?void 0:l.path,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):null}(t)):null}))),Z.createElement('div',{className:X('left-panel-arrow',c?'':'hidden-status'),onClick:this.handleHidden})),i&&Z.createElement('div',{className:'editor-left-panel-fixed-placeholder'}),Z.createElement(Ro,{store:n,manager:a,node:l,panelItem:p,theme:o}),Z.createElement(No,{store:n,manager:a,node:l,panelItem:f,theme:o}))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleHidden',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleFixed',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleSelect',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),ko=function(e){function t(t){var n=e.call(this,t)||this;return n.handleResizeMouseDown=n.handleResizeMouseDown.bind(n),n.handleResizeMouseMove=n.handleResizeMouseMove.bind(n),n.handleResizeMouseUp=n.handleResizeMouseUp.bind(n),n}return K(t,e),t.prototype.handleResizeMouseDown=function(e){3==e.nativeEvent.which||(this.dragWrap=e.currentTarget.parentElement,document.addEventListener('mousemove',this.handleResizeMouseMove),document.addEventListener('mouseup',this.handleResizeMouseUp),this.startX=e.clientX,this.startWidth=this.dragWrap.offsetWidth,e.preventDefault())},t.prototype.handleResizeMouseMove=function(e){var t=this.props.isLeftDragIcon,n=e.clientX-this.startX;this.dragWrap.style.cssText+='width: '.concat(Math.max(t?this.startWidth-n:this.startWidth+n,260),'px')},t.prototype.handleResizeMouseUp=function(){document.removeEventListener('mousemove',this.handleResizeMouseMove),document.removeEventListener('mouseup',this.handleResizeMouseUp)},t.prototype.render=function(){var e=this.props,t=e.isLeftDragIcon,n=e.className;return Z.createElement('div',{onMouseDown:this.handleResizeMouseDown,className:X('width-draggable-icon',n,t?'leftBtn':'')})},t}(Z.Component),Ao=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpenStatus:!0,isFixedStatus:!1},n}return K(t,e),t.prototype.handleFixed=function(){this.setState({isFixedStatus:!this.state.isFixedStatus})},t.prototype.handleSelect=function(e){this.props.store.changePanelKey(e)},t.prototype.handleHidden=function(){this.setState({isOpenStatus:!this.state.isOpenStatus})},t.prototype.getPopOverContainer=function(){return Re(this)},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.manager,o=t.theme,i=this.state,c=i.isOpenStatus,s=i.isFixedStatus,d=n.getPanels(),l=n.activeId,u=n.getNodeById(l),p=n.getPanelKey(),f=function(t){return t.render?t.render({id:l,info:null==u?void 0:u.info,path:null==u?void 0:u.path,node:u,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):t.component?Z.createElement(t.component,{node:u,key:t.key,id:l,info:null==u?void 0:u.info,path:null==u?void 0:u.path,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):null};return d.length>0?Z.createElement('div',{className:X('editor-right-panel width-draggable','AMISCSSWrapper',d.length>1?'mul-tabs-panel':'',c?'':'hidden-status',s?'fixed-status':'')},Z.createElement('div',{className:'editor-panel-btn','editor-tooltip':B(s?'95509c09bdef4bb7842a9b957ab1f971':'426480bb614633c8c3ba8faa0338b72f'),'tooltip-position':'left'},Z.createElement(r,{icon:s?'editor-fixed':'editor-no-fixed',className:'panel-btn',onClick:this.handleFixed})),Z.createElement('div',{className:'editorPanel-inner'},1===d.length?f(d[0]):Z.createElement(v,{theme:o,tabsMode:'sidebar',sidePosition:'right',className:'editorPanel-tabs',linksClassName:'editorPanel-tabs-header',contentClassName:'editorPanel-tabs-content',activeKey:p,onSelect:this.handleSelect},d.map((function(e){var t=cn(e);return Z.createElement(g,{key:e.key,eventKey:e.key,title:Z.createElement('span',{className:'editor-tab-icon','editor-tooltip':e.title,'tooltip-position':'left'},t&&Z.createElement(r,{icon:e.pluginIcon,className:'pluginIcon'}),!t&&Z.createElement('i',{className:'fa '.concat(e.icon)})),className:'editorPanel-tabs-pane ae-Editor-'.concat(e.key,'Pane'),mountOnEnter:!0,unmountOnExit:!1},f(e))})))),Z.createElement(ko,{isLeftDragIcon:!0}),Z.createElement('div',{className:X('right-panel-arrow',c?'':'hidden-status'),onClick:this.handleHidden})):null},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleFixed',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleSelect',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleHidden',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),Mo=function(e){function t(t){var n,r,a=this;(a=e.call(this,t)||this).mainRef=Z.createRef(),a.toDispose=[],a.isInternalChange=!1;var o=t.value,i=t.isSubEditor,c=void 0!==i&&i;t.onChange;var s=t.showCustomRenderersPanel,d=t.superEditorData,l=t.hostManager,u=z(t,['value','isSubEditor','onChange','showCustomRenderersPanel','superEditorData','hostManager']),p=$({},u);return a.store=qa.create({isMobile:t.isMobile,theme:t.theme,isSubEditor:c,amisDocHost:t.amisDocHost,superEditorData:d,appLocale:t.appLocale,appCorpusData:null===(n=null==t?void 0:t.amisEnv)||void 0===n?void 0:n.replaceText,i18nEnabled:null!==(r=null==t?void 0:t.i18nEnabled)&&void 0!==r&&r},p),a.store.setCtx(t.ctx),a.store.setSchema(o),void 0!==s&&a.store.setShowCustomRenderersPanel(s),a.manager=new Eo(p,a.store,l),t.isSubEditor&&window.editorStore||(window.editorStore=a.store),document.addEventListener('keydown',a.handleKeyDown),window.addEventListener('message',a.handleMessage,!1),a.toDispose.push(be((function(){return a.store.schemaRaw}),(function(e){a.lastResult=e,a.isInternalChange||t.onChange(e)}))),a.toDispose.push(a.manager.on('preview2editor',(function(){return a.manager.rebuild()}))),a}return K(t,e),t.prototype.componentDidMount=function(){var e=this.manager.store;this.props.isSubEditor?setTimeout((function(){e.calculateHighlightBox(e.highlightNodes.map((function(e){return e.id})))}),500):this.manager.trigger('init',{data:this.manager})},t.prototype.componentDidUpdate=function(e){var t,n,r,a=this.props;a.value!==e.value&&a.value!==this.lastResult&&(this.isInternalChange=!0,this.store.setSchema(a.value),this.isInternalChange=!1),a.isMobile!==e.isMobile&&this.store.setIsMobile(a.isMobile),a.ctx!==e.ctx&&this.store.setCtx(a.ctx),a.appLocale!==e.appLocale&&this.store.setAppLocale(a.appLocale),(null===(t=null==a?void 0:a.amisEnv)||void 0===t?void 0:t.replaceText)!==(null===(n=null==e?void 0:e.amisEnv)||void 0===n?void 0:n.replaceText)&&this.store.setAppCorpusData(null===(r=null==a?void 0:a.amisEnv)||void 0===r?void 0:r.replaceText)},t.prototype.componentWillUnmount=function(){var e=this;document.removeEventListener('keydown',this.handleKeyDown),window.removeEventListener('message',this.handleMessage),this.toDispose.forEach((function(e){return e()})),this.toDispose=[],this.manager.dispose(),setTimeout((function(){return Be(e.store)}),4)},t.prototype.handleKeyDown=function(e){var t;if(!this.props.isSubEditor){var n=this.manager.store;if('BODY'===e.target.tagName&&('z'===e.key||'Z'===e.key)&&(e.metaKey||e.ctrlKey)&&e.shiftKey)return e.preventDefault(),void this.redo();if('BODY'===e.target.tagName&&('z'===e.key||'Z'===e.key)&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void this.undo();if('BODY'===e.target.tagName&&('s'===e.key||'S'===e.key)&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void this.save();if('BODY'!==e.target.tagName||'c'!==e.key&&'C'!==e.key||!e.metaKey&&!e.ctrlKey){if('BODY'===e.target.tagName&&('v'===e.key||'V'===e.key)&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void(this.curCopySchemaData&&this.paste());if('BODY'===e.target.tagName&&'x'===e.key&&(e.metaKey||e.ctrlKey))e.preventDefault(),this.store.activeId&&((r=n.getNodeById(this.store.activeId))&&n.activeRegion?d.warning(B('d6f73c6f3b92be5a64f7ea0163501284')):n.isRootSchema(this.store.activeId)?d.warning(B('4fda4f585214d469c04466e2fc98b796')):r&&r.moveable?(this.copy(),this.manager.del(this.store.activeId)):d.warning(B('657bbe06d3922b23552817df7fa8268e')));else if('BODY'===e.target.tagName&&'p'===e.key&&(e.metaKey||e.ctrlKey))e.preventDefault(),this.preview();else if('BODY'===e.target.tagName&&'ArrowUp'===e.key&&(e.metaKey||e.ctrlKey)){if(e.preventDefault(),this.store.activeId)(r=n.getNodeById(this.store.activeId))&&r.canMoveUp?this.manager.moveUp():d.warning(B('416445a316595bdeb44b661c7de875a8'))}else if('BODY'===e.target.tagName&&'ArrowDown'===e.key&&(e.metaKey||e.ctrlKey)){if(e.preventDefault(),this.store.activeId)(r=n.getNodeById(this.store.activeId))&&r.canMoveDown?this.manager.moveDown():d.warning(B('6ac88d87b2fd118ba7beab8c17880470'))}else if('BODY'===e.target.tagName&&('Backspace'===e.key||'Delete'===e.key)){var r;if(e.preventDefault(),this.store.activeId)(r=n.getNodeById(this.store.activeId))&&n.activeRegion&&(null===(t=r.info)||void 0===t?void 0:t.regions)&&r.info.regions.length>1?d.warning(B('fdb3cba60407b2f1aea0230cca644573')):n.isRootSchema(this.store.activeId)?d.warning(B('8a4b4e2e3b0382007e0c69ed1fe6fe71')):r&&(r.removable||void 0===r.removable)?this.manager.del(this.store.activeId):d.warning(B('22f031f3de2e55c430a818d8c588f7a1'));return}}else this.copy()}},t.prototype.handleMessage=function(e){e.data&&'amis-widget-register-event'===e.data.type&&e.data.editorPluginName&&(console.info(B('55c56d01a7747ffe0346d42145b62d97'),e.data.editorPluginName),this.manager.dynamicAddPlugin(e.data.editorPluginName))},t.prototype.handleContextMenu=function(e){var t,n,r;return T(this,void 0,void 0,(function(){var a,o,i,s,d,l,u;return j(this,(function(p){switch(p.label){case 0:return e.persist(),[4,c()];case 1:if(p.sent(),a='',o='',this.store.activeId?a=null===(t=e.target.closest('[data-editor-id="'.concat(this.store.activeId,'"]')))||void 0===t?void 0:t.getAttribute('data-editor-id'):this.store.selections.length&&(a=null===(n=e.target.closest(this.store.selections.map((function(e){return'[data-editor-id="'.concat(e,'"]')})).join(',')))||void 0===n?void 0:n.getAttribute('data-editor-id')),a||(a=null===(r=e.target.closest('[data-editor-id]'))||void 0===r?void 0:r.getAttribute('data-editor-id')),!a){if(i=e.target.closest('[data-node-id]'),!(a=null==i?void 0:i.getAttribute('data-node-id')))return[2];o=i.getAttribute('data-node-region')}return e.preventDefault(),e.stopPropagation(),s=this.manager,d=0,l=0,e.target.ownerDocument!==document&&(u=s.store.getIframe().getBoundingClientRect(),d=u.left,l=u.top),s.openContextMenu(a,o,{x:window.scrollX+e.clientX+d,y:window.scrollY+e.clientY+l}),[2]}}))}))},t.prototype.canUndo=function(){return this.store.canUndo},t.prototype.canRedo=function(){return this.store.canRedo},t.prototype.undo=function(){this.props.onUndo?this.props.onUndo():this.store.undo()},t.prototype.redo=function(){this.props.onRedo?this.props.onRedo():this.store.redo()},t.prototype.save=function(){this.props.onSave&&this.props.onSave()},t.prototype.preview=function(){this.props.onPreview&&this.props.onPreview(!this.props.preview)},t.prototype.copy=function(){this.store.activeId&&(this.curCopySchemaData=this.store.getSchema(this.store.activeId))},t.prototype.paste=function(){if(this.store.activeId&&this.curCopySchemaData){if(!this.curCopySchemaData)return;var e=this.store.getSimpleSchema(this.curCopySchemaData);this.store.activeId===this.curCopySchemaData.$$id?this.manager.appendSiblingSchema(Dt(e),!1):this.manager.addElem(Dt(e),!1)}},t.prototype.getToolbarContainer=function(){return this.mainRef.current},t.prototype.render=function(){var e=this.props,t=e.preview,n=e.isMobile,r=e.className,a=e.theme,o=e.appLocale,i=e.data,c=e.previewProps,s=e.autoFocus;e.isSubEditor;var d=e.amisEnv;return Z.createElement('div',{ref:this.mainRef,className:X('ae-Editor',{preview:t},r)},Z.createElement('div',{className:'ae-Editor-inner',onContextMenu:this.handleContextMenu},!t&&Z.createElement(Oo,{store:this.store,manager:this.manager,theme:a}),Z.createElement('div',{className:'ae-Main'},!t&&Z.createElement(Co,{store:this.store,manager:this.manager}),Z.createElement(Tn,$({},c,{editable:!t,isMobile:n,store:this.store,manager:this.manager,theme:a,appLocale:o,data:i,amisEnv:d,autoFocus:s,toolbarContainer:this.getToolbarContainer}))),!t&&Z.createElement(Ao,{store:this.store,manager:this.manager,theme:a,appLocale:o,amisEnv:d}),!t&&Z.createElement(xo,{store:this.store})),Z.createElement(wo,{store:this.store,manager:this.manager,theme:a,amisEnv:d}),Z.createElement(So,{store:this.store,manager:this.manager,theme:a}),Z.createElement(Io,{store:this.store,manager:this.manager,theme:a}))},t.defaultProps={autoFocus:!0},_([Ut,V('design:type',Function),V('design:paramtypes',[KeyboardEvent]),V('design:returntype',void 0)],t.prototype,'handleKeyDown',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleMessage',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',Promise)],t.prototype,'handleContextMenu',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getToolbarContainer',null),t}(Y),Po=[{label:B('4e7f76261f8c4c6d78998f85fc1f4c6e'),children:[{label:B('16a20243f9b741c08216dc9548de2968'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-lg'}]},{label:B('461d364c67ec6a45e011ed13f2f7154f'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-t-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-t-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-t'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-t-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-t-lg'}]},{label:B('31e3752986d64c8b36897c8641c8628d'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-r-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-r-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-r'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-r-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-r-lg'}]},{label:B('eabe91d9426b6446f707cea3e7ab2418'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-b-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-b-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-b'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-b-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-b-lg'}]},{label:B('2e46d251ee6188bb1b3ff20656276572'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-l-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-l-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-l'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-l-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-l-lg'}]},{label:B('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),children:[{label:B('a8b0c20416853bda54120bf19477ad11'),value:'m-none'},'|',{label:B('af767b7e4ae069d54f9ea839858d4c6d'),value:'m-t-none'},{label:B('4d9c32c23df5d234e629c922c58d8e12'),value:'m-r-none'},{label:B('3850a186c3235bc646d4c2f79cebac36'),value:'m-b-none'},{label:B('d2aff1417831aa621c16cd5b95306b4b'),value:'m-l-none'}]}]},{label:B('841d77223f0ec8cd0b530ed8e0775b20'),children:[{label:B('16a20243f9b741c08216dc9548de2968'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-lg'}]},{label:B('461d364c67ec6a45e011ed13f2f7154f'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-t-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-t-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-t'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-t-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-t-lg'}]},{label:B('31e3752986d64c8b36897c8641c8628d'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-r-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-r-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-r'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-r-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-r-lg'}]},{label:B('eabe91d9426b6446f707cea3e7ab2418'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-b-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-b-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-b'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-b-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-b-lg'}]},{label:B('2e46d251ee6188bb1b3ff20656276572'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-l-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-l-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-l'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-l-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-l-lg'}]},{label:B('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),children:[{label:B('a8b0c20416853bda54120bf19477ad11'),value:'p-none'},'|',{label:B('af767b7e4ae069d54f9ea839858d4c6d'),value:'p-t-none'},{label:B('4d9c32c23df5d234e629c922c58d8e12'),value:'p-r-none'},{label:B('3850a186c3235bc646d4c2f79cebac36'),value:'p-b-none'},{label:B('d2aff1417831aa621c16cd5b95306b4b'),value:'p-l-none'}]}]},{label:B('961534b4ea37e4e88aada736b299d063'),className:'w2x',children:[{label:B('d4d2a66820d30e07b44c850eb3f116c0'),children:[{label:B('a8b0c20416853bda54120bf19477ad11'),value:'b-a'},'|',{label:B('af767b7e4ae069d54f9ea839858d4c6d'),value:'b-t'},{label:B('4d9c32c23df5d234e629c922c58d8e12'),value:'b-r'},{label:B('3850a186c3235bc646d4c2f79cebac36'),value:'b-b'},{label:B('d2aff1417831aa621c16cd5b95306b4b'),value:'b-l'},'|',{label:B('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),value:'no-border'}]},{label:B('58f966670529f4753fb3c5a0647606be'),children:[{label:'2x',value:'b-2x'},{label:'3x',value:'b-3x'},{label:'4x',value:'b-4x'},{label:'5x',value:'b-5x'}]},{label:B('6b36c6f7ec834692ec6c8e3816349fdd'),children:[{label:B('fbae87bcc352f6933541fb77a07418ed'),value:'b-primary',className:'bg-primary'},{label:B('d8c7e04c8e2be23dd3b81a31db6e04f1'),value:'b-info',className:'bg-info'},{label:B('900c70fa5f7dbc014e6f762d5e0e885c'),value:'b-warning',className:'bg-warning'},{label:B('540f84ddc0883866b229f71c2844199a'),value:'b-danger',className:'bg-danger'},{label:B('330363dfc524cff2488f2ebde0500896'),value:'b-success',className:'bg-success'},{label:B('2fc96b2704b05d6a9f299c442573ee77'),value:'b-white',className:'bg-white'},{label:B('adb7e5312abdb9a44297e48d63815fa3'),value:'b-dark',className:'bg-dark'},{label:B('48d0a09bdd5fe7e89f0a445b0ffdf14f'),value:'b-light',className:'bg-light'}]}]},{label:B('0d98c74797e49d00bcc4c17c9d557a2b'),className:'w2x',children:[{label:B('0103eb2d3dca70270d1a74e9ec987ac9'),children:[{label:B('a8b0c20416853bda54120bf19477ad11'),value:'r'},'|',{label:B('af767b7e4ae069d54f9ea839858d4c6d'),value:'r-t'},{label:B('4d9c32c23df5d234e629c922c58d8e12'),value:'r-r'},{label:B('3850a186c3235bc646d4c2f79cebac36'),value:'r-b'},{label:B('d2aff1417831aa621c16cd5b95306b4b'),value:'r-l'},'|',{label:'2x',value:'r-2x'},{label:'3x',value:'r-3x'}]},{label:B('8456bc40d48da5af833f1c63385e9879'),children:[{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'font-normal'},{label:B('b3b2682579133673d3fe08c156d565dc'),value:'font-thin'},{label:B('56dce5d1cbb97439d291c458e50107e0'),value:'font-bold'},'|',{label:B('23ecf42cada8bf2715792d718544d107'),value:'text-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'text-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'text-base'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'text-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'text-lg'}]},{label:B('6b36c6f7ec834692ec6c8e3816349fdd'),children:[{label:B('fbae87bcc352f6933541fb77a07418ed'),value:'text-primary',className:'text-primary'},{label:B('d8c7e04c8e2be23dd3b81a31db6e04f1'),value:'text-info',className:'text-info'},{label:B('900c70fa5f7dbc014e6f762d5e0e885c'),value:'text-warning',className:'text-warning'},{label:B('540f84ddc0883866b229f71c2844199a'),value:'text-danger',className:'text-danger'},{label:B('330363dfc524cff2488f2ebde0500896'),value:'text-success',className:'text-success'},{label:B('2fc96b2704b05d6a9f299c442573ee77'),value:'text-white',className:'text-white bg-dark'},{label:B('adb7e5312abdb9a44297e48d63815fa3'),value:'text-dark',className:'text-dark'},{label:B('49a79f4047b81186c069ed1c9c151c66'),value:'text-muted',className:'text-muted'}]},{label:B('8e1b944f4389bdaab6f11d5bc83190c8'),children:[{label:B('fbae87bcc352f6933541fb77a07418ed'),value:'bg-primary',className:'bg-primary'},{label:B('d8c7e04c8e2be23dd3b81a31db6e04f1'),value:'bg-info',className:'bg-info'},{label:B('900c70fa5f7dbc014e6f762d5e0e885c'),value:'bg-warning',className:'bg-warning'},{label:B('540f84ddc0883866b229f71c2844199a'),value:'bg-danger',className:'bg-danger'},{label:B('330363dfc524cff2488f2ebde0500896'),value:'bg-success',className:'bg-success'},{label:B('2fc96b2704b05d6a9f299c442573ee77'),value:'bg-white',className:'bg-white'},{label:B('adb7e5312abdb9a44297e48d63815fa3'),value:'bg-dark',className:'bg-dark'},{label:B('48d0a09bdd5fe7e89f0a445b0ffdf14f'),value:'bg-light',className:'bg-light'},'|',{label:B('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),value:'no-bg'}]},{label:B('c28479019e24e0e4745f4948e9e97ee7'),children:[{label:B('f72ce9ad683cc82e0eab557ffc9c67a0'),value:'w-xxs'},{label:B('23ecf42cada8bf2715792d718544d107'),value:'w-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'w-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'w'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'w-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'w-lg'},{label:B('b95c462d7697958c25861193fc89ae07'),value:'w-xl'},{label:B('3386da5f56fac758ed0f18e024ecb943'),value:'w-xxl'},{label:B('ffaa96ef7232cb6d8ee4d7e673dbf4ac'),value:'w-full'}]}]}];!function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={isFocused:!1,isOpened:!1},e.values=[],e}K(n,t),n.prototype.open=function(){this.setState({isOpened:!0})},n.prototype.close=function(){this.setState({isOpened:!1})},n.prototype.toggle=function(){this.setState({isOpened:!this.state.isOpened})},n.prototype.handleFocus=function(e){this.setState({isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},n.prototype.handleBlur=function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},n.prototype.handleChange=function(e){(0,this.props.onChange)(e.currentTarget.value)},n.prototype.getParent=function(){return Re(this)},n.prototype.getTarget=function(){return Re(this)},n.prototype.handlePopOverChange=function(e){var t=this.props.value||'',n=t.replace(/\s+/g,' ').split(/\s+/),r=n.indexOf(e.value),a=this.props.onChange;if(~r)n.splice(r,1),t=n.join(' ');else{if(/(?:^|\s)(m|p)\-(t|r|b|l)(?:\-(?:xs|sm|md|lg))?(?:$|\s)/.test(e.value)){var o=new RegExp('(?:^|\\s)'.concat(RegExp.$1,'\\-').concat(RegExp.$2,'(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))'),'ig');t=t.replace(o,'')}else if(/(?:^|\s)(m|p)(?:\-(xs|sm|md|lg))?(?:$|\s)/.test(e.value)){o=new RegExp('(?:^|\\s)'.concat(RegExp.$1,'(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))'),'ig');t=t.replace(o,'')}else if(/(?:^|\s)(m|p)(?:\-(t|r|b|l))?\-none(?:$|\s)/.test(e.value)){o=new RegExp(RegExp.$2?'(?:^|\\s)'.concat(RegExp.$1,'(?:(?:\\-').concat(RegExp.$2,'(?:\\-(?:xs|sm|md|lg)))|\\-none)?(?=(\\s|$))'):'(?:^|\\s)'.concat(RegExp.$1,'(?:[^\\s$]+)?(?=(\\s|$))'),'ig');t=t.replace(o,'$1')}else/(?:^|\s)w(?:\-\w+)?(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)w(?:\-\w+)?(?=(\s|$))/g,''):'b-a'===e.value?t=(t=t.replace(/(?:^|\s)b\-(?:t|r|b|l)(?=(\s|$))/g,'')).replace(/(?:^|\s)no\-border(?=(\s|$))/g,''):/(?:^|\s)b\-(?:t|r|b|l)?(?:$|\s)/.test(e.value)?t=(t=t.replace(/(?:^|\s)b\-a(?=(\s|$))/g,'')).replace(/(?:^|\s)no\-border(?=(\s|$))/g,''):/(?:^|\s)b\-\dx(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)b\-\dx(?=(\s|$))/g,''):'no-border'===e.value?t=t.replace(/(?:^|\s)b\-(?:\dx|\w+)(?=(\s|$))/g,''):/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,''):'r'===e.value?t=t.replace(/(?:^|\s)r\-(?:t|r|b|l)(?=(\s|$))/g,''):/(?:^|\s)r\-(?:t|r|b|l)?(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)r(?=(\s|$))/g,''):/(?:^|\s)r\-\dx(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)r\-\dx(?=(\s|$))/g,''):/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?=(\s|$))/g,''):/(?:^|\s)font\-(?:normal|thin|bold)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)font\-(?:normal|thin|bold)(?=(\s|$))/g,''):/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,''):/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=(t=t.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,'')).replace(/(?:^|\s)no\-bg(?=(\s|$))/g,''):'no-bg'===e.value&&(t=t.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,''));t=t.replace(/\s+/g,' ').trim(),t+=(t?' ':'')+e.value}a(t)},n.prototype.renderGroup=function(e,t){var n=this,r=this.props.classnames;return Z.createElement('div',{key:t,className:r('ae-ClassNameControl-group',e.className)},Z.createElement('label',{className:r('ae-ClassNameControl-groupLabel',e.labelClassName)},e.label),e.children&&e.children.length?e.children[0].value?this.renderOptions(e.children,t):e.children.map((function(e,t){return n.renderGroup(e,t)})):null)},n.prototype.renderOptions=function(e,t){var n=this,r=this.props.classnames;return function(e){for(var t=[],n=t[0]=[],r=0,a=e.length;r<a;r++){var o=e[r];'|'===o?(n=[],t.push(n)):n.push(o)}return t}(e).map((function(e,t){return Z.createElement('div',{className:r('ButtonGroup'),key:t},e.map((function(e,t){return Z.createElement('div',{key:t,onClick:function(){return n.handlePopOverChange(e)},className:r('Button Button--size-xs',e.className,~n.values.indexOf(e.value)?'Button--primary':'Button--default')},e.label)})))}))},n.prototype.renderPopover=function(){var e=this,t=this.props.value;return this.values='string'==typeof t?t.split(' '):[],Z.createElement('div',null,Po.map((function(t,n){return e.renderGroup(t,n)})))},n.prototype.render=function(){var e,t=this.props,n=t.classnames,r=t.readOnly,a=t.disabled,o=t.value,i=t.className,c=t.name,s=t.popOverContainer;return Z.createElement('div',{className:i},Z.createElement('div',{className:n('TextControl',(e={},e['TextControl--withAddOn']=!0,e['is-focused']=this.state.isFocused,e['is-disabled']=a,e))},Z.createElement('div',{className:n('TextControl-input')},Z.createElement('input',{name:c,placeholder:B('47eac1ac32a8aa9081dffbdc4d374318'),disabled:a,readOnly:r,type:'text',autoComplete:'off',onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,value:null==o?'':'string'==typeof o?o:JSON.stringify(o)})),Z.createElement('div',{className:n('TextControl-button')},Z.createElement(f,{onClick:this.toggle},Z.createElement('i',{className:'fa fa-cog'})))),Z.createElement(k,{placement:'right-bottom-right-top right-top-right-bottom right-bottom-right-top',target:this.getTarget,container:s||this.getParent,rootClose:!1,show:this.state.isOpened,watchTargetSizeChange:!1},Z.createElement(A,{className:'ae-ClassNamePicker-popover',onHide:this.close,overlay:!0},this.renderPopover())))},_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'open',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'close',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'toggle',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],n.prototype,'handleFocus',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],n.prototype,'handleBlur',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],n.prototype,'handleChange',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'getParent',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'getTarget',null),n=_([P({type:'ae-classname'})],n)}(Z.Component);var Fo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return K(t,e),t.prototype.buildEditorPanel=function(e,t){var n=this.manager.store;e.selections.length||n.subRenderers.length&&t.push({key:'renderers',icon:'png-icon renderers-png',title:Z.createElement('span',{className:'editor-tab-icon','editor-tooltip':B('bb79667f37035e9562ec6bcffd6cf8ef')},Z.createElement(r,{icon:'editor-renderer'})),component:Ua,position:'left',order:-9999})},t.scene=['layout'],t}(Ja);function Do(e,t){return function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return K(r,n),r.prototype.render=function(){return Z.createElement(Z.Fragment,null,Z.createElement(e,$({},this.props)),Z.createElement(ko,{isLeftDragIcon:t}))},r}(Z.Component)}go(Fo),go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return K(t,e),t.prototype.buildEditorToolbar=function(e,t){var n,r,a,o,i=this,c=e.id,s=e.schema,d=e.info,l=this.manager.store,u=l.getNodeById(c),p=l.getSchemaParentById(c),f=this.manager.draggableContainer(c),h=(null==s?void 0:s.isSorptionContainer)||!1,m=u.parent;if(Array.isArray(p)&&(null==m?void 0:m.isRegion)||f){var v=u.host;!u.draggable&&!f||h||t.push({id:'drag',iconSvg:'drag-btn',icon:'fa fa-arrows',tooltip:B('7f2f0461a58c43667d7245ce92bb2e77'),placement:'bottom',draggable:!0,order:-1e3,onDragStart:this.manager.startDrag.bind(this.manager,c)});var g=null==p?void 0:p.indexOf(s);if(!(null==v?void 0:v.memberImmutable(m.region))&&l.panels.some((function(e){return'renderers'===e.key}))){var b=null===(n=p[g+1])||void 0===n?void 0:n.$$id;t.push({id:'insert-before',iconSvg:'left-arrow-to-left',tooltip:B('78c1c38b91c672da1113fa2564c14ea6'),placement:'bottom',onClick:function(){return i.manager.showInsertPanel(m.region,m.id,m.preferTag,'insert',void 0,c)}},{id:'insert-after',iconSvg:'arrow-to-right',tooltip:B('87f48bbadfbef5ef4554e06b7e141d37'),placement:'bottom',onClick:function(){return i.manager.showInsertPanel(m.region,m.id,m.preferTag,'insert',void 0,b)}})}}u.isVitualRenderer||!u.info.plugin.popOverBody&&!u.info.plugin.popOverBodyCreator||t.push({id:'edit',icon:'fa fa-pencil',tooltip:B('95b351c86267f3aedf89520959bce689'),placement:'bottom',onClick:function(e){return i.manager.openNodePopOverForm(u.id)}}),(u.removable||void 0===u.removable)&&t.push({id:'delete',iconSvg:'delete-btn',icon:'fa',tooltip:B('2f4aaddde33c9b93c36fd2503f3d122b'),placement:'bottom',order:999,onClick:this.manager.del.bind(this.manager,c)}),t.push({id:'more',iconSvg:'more-btn',icon:'fa fa-cog',tooltip:B('0ec9eaf9c3525eb110db58aae5912210'),placement:'bottom',order:1e3,onClick:function(e){if(!e.defaultPrevented){var t=e.target.parentElement.getBoundingClientRect(),n=window.scrollX+t.left+t.width-150;n<0&&(n=window.scrollX+t.left),i.manager.openContextMenu(c,'',{x:n,y:window.scrollY+t.top+t.height+8})}}}),(null!==(a=null===(r=d.scaffoldForm)||void 0===r?void 0:r.canRebuild)&&void 0!==a?a:null===(o=d.plugin.scaffoldForm)||void 0===o?void 0:o.canRebuild)&&t.push({id:'build',iconSvg:'harmmer',tooltip:'快速构建「'.concat(d.plugin.name,'」'),placement:'bottom',onClick:function(){return i.manager.reScaffoldV2(c)}})},t.prototype.buildEditorContextMenu=function(e,t){var n,r,a,o,i,c=this,s=e.id,d=e.schema,l=e.region,u=e.info,p=e.selections,f=this.manager,h=f.store,m=h.getSchemaParentById(s),v=h.getNodeById(s),g=h.getNodePathById(s),b=g.pop();if(v.host,v.parent,p.length)t.push({id:'copy',label:B('417db09508befe7dbe9f84a517a6edec'),icon:'copy-icon',disabled:p.some((function(e){return!e.node.duplicatable})),onSelect:function(){return f.duplicate(p.map((function(e){return e.id})))}}),t.push({id:'unselect',label:B('99b81127ef28368151621cdfccce69f8'),icon:'cancel-icon',onSelect:function(){return h.setActiveId(s)}}),t.push({id:'delete',label:B('2f4aaddde33c9b93c36fd2503f3d122b'),icon:'delete-icon',disabled:p.some((function(e){return!e.node.removable})),className:'text-danger',onSelect:function(){return f.del(p.map((function(e){return e.id})))}});else if(l){(w=h.panels.find((function(e){return'renderers'===e.key})))&&(t.push({id:'insert',label:B('205f45ee17394bd5668412780eaa55e2'),onHighlight:function(e){return e&&h.setHoverId(s,l)},onSelect:function(){return h.showInsertRendererPanel()}}),t.push({id:'clear',label:B('288f0c404c4e546aa3683ff5054e85e2'),onSelect:function(){return f.emptyRegion(s,l)}}),t.push({id:'paste',label:B('eafbece1016a6af76cce466e55ad9f00'),onSelect:function(){return f.paste(s,l)}}))}else{if(t.push({id:'select',label:'选中'.concat(b.label),disabled:h.activeId===b.id,data:s,onSelect:function(e){return h.setActiveId(e)},onHighlight:function(e,t){return e&&h.setHoverId(t)}}),g.length){var y=g.filter((function(e){var t;return!e.isRegion&&!1!==(null===(t=e.info)||void 0===t?void 0:t.editable)})).reverse().map((function(e){return{label:e.label,data:e.id,onSelect:function(e){return h.setActiveId(e)},onHighlight:function(e,t){return e&&h.setHoverId(t)}}}));y.length&&t.push({label:B('7ad78e0991f34ff3a345c59a2fc31572'),children:y})}t.push({id:'unselect',label:B('aafda9e8f6b7b613680677c513edb7a6'),disabled:!h.activeId||h.activeId!==s,onSelect:function(){return h.setActiveId('')}}),t.push('|'),t.push({id:'copy',label:B('417db09508befe7dbe9f84a517a6edec'),disabled:!v.duplicatable,onSelect:function(){return f.duplicate(s)}}),t.push({id:'copy-config',label:B('b58d101f52531c845f15db63d7212115'),onSelect:function(){return f.copy(s)}}),t.push({id:'cat-config',label:B('74e2bc6615b7dbbb11fd5e1e212263ae'),disabled:!v.removable,onSelect:function(){return f.cut(s)}}),t.push({id:'paste-config',label:B('e2f401af580d1354ae00ec4ca19e2e24'),disabled:!Array.isArray(m)||!v.parent||!1===(null===(n=v.info)||void 0===n?void 0:n.typeMutable)||!v.replaceable,onSelect:function(){return f.paste(s)}}),t.push({id:'delete',label:B('2f4aaddde33c9b93c36fd2503f3d122b'),disabled:!v.removable,className:'text-danger',onSelect:function(){return f.del(s)}}),t.push('|');var E=Array.isArray(m)?m.indexOf(d):-1;t.push({id:'move-forward',label:B('21462ae22216eec41dc688cc4a8ae64b'),disabled:!(Array.isArray(m)&&E>0&&v.moveable),onSelect:function(){return f.moveUp()}}),t.push({id:'move-backward',label:B('ed2bc13d8bbd99e16e017dd5f5393393'),disabled:!(Array.isArray(m)&&E<m.length-1&&v.moveable),onSelect:function(){return f.moveDown()}}),t.push('|'),t.push({id:'undo',label:B('9e54f3e4ee3330299c5fdc910c2e8d3c'),disabled:!h.canUndo,onSelect:function(){return h.undo()}}),t.push({id:'redo',label:B('ae8e86e426c2ba00da274b66dc372a8b'),disabled:!h.canRedo,onSelect:function(){return h.redo()}}),t.push('|');var w=h.panels.find((function(e){return'renderers'===e.key}));b.childRegions.length&&w&&(b.childRegions.length>1?t.push({id:'insert',label:B('205f45ee17394bd5668412780eaa55e2'),children:b.childRegions.map((function(e){return{label:''.concat(e.label),data:e.region,onHighlight:function(e,t){return e?h.setHoverId(s,t):h.setHoverId('')},onSelect:function(){return h.showInsertRendererPanel()}}}))}):t.push({id:'insert',label:B('205f45ee17394bd5668412780eaa55e2'),data:b.childRegions[0].region,onHighlight:function(e,t){return e?h.setHoverId(s,t):h.setHoverId('')},onSelect:function(){return h.showInsertRendererPanel()}})),'container'===v.type&&t.push({id:'clear',label:'清空容器',disabled:!(null===(r=v.schema.body)||void 0===r?void 0:r.length),onSelect:function(){return f.emptyRegion(s,'body')}}),t.push({id:'replace',label:B('107542a61cdccbb2981ad0c8bafc3440'),disabled:!(v.host&&!1!==(null===(a=v.info)||void 0===a?void 0:a.typeMutable)&&v.parent.isRegion&&h.panels.some((function(e){return'renderers'===e.key}))&&v.replaceable),onSelect:function(){return f.showReplacePanel(s)}})}p.length||!(null===(o=u.plugin.scaffoldForm)||void 0===o?void 0:o.canRebuild)&&!(null===(i=u.scaffoldForm)||void 0===i?void 0:i.canRebuild)||t.push({id:'build',label:'快速构建「'.concat(u.plugin.name,'」'),disabled:d.$$commonSchema,onSelect:function(){return c.manager.reScaffold(s,u.scaffoldForm||u.plugin.scaffoldForm,d)}})},t.prototype.buildEditorPanel=function(e,t){if(e.selections.length){var n=this.manager.store,r=[],a=$($({},e),{data:r,region:''});(r=this.manager.buildContextMenus(a)).length&&t.push({key:'contextmenu',icon:'fa fa-cog',title:B('2b6bc0f293f5ca01b006206c2535ccbc'),menus:r,render:this.manager.makeSchemaFormRender({body:[{type:'button-group',buttons:r.filter((function(e){return'|'!==e})).map((function(e){return $($({},e),{type:'button',onClick:e.onSelect})}))}],panelById:n.activeId})})}},t.prototype.afterInsert=function(e){var t,n,r=this,a=e.context;if(a.node&&(null===(n=null===(t=a.subRenderer)||void 0===t?void 0:t.plugin)||void 0===n?void 0:n.popOverBody)){var o=a.data.$$id;o&&setTimeout((function(){r.manager.setActiveId(o),requestAnimationFrame((function(){r.manager.openNodePopOverForm(o)}))}),200)}},t.scene=['layout'],t}(Ja));var Bo=/^\/schemas\/(.*).json$/;function $o(e,t,n,r){return T(this,void 0,void 0,(function(){var a,o,i,c,s,d,l;return j(this,(function(u){switch(u.label){case 0:return a=Array.isArray(r)?r.concat():[],'production'===process.env.NODE_ENV?[3,3]:a.some((function(t){return t.uri===e}))?[3,2]:(i=(o=a).push,l={uri:e},[4,import('amis/schema.json').then((function(e){return e.default}))]);case 1:i.apply(o,[(l.schema=u.sent(),l)]),u.label=2;case 2:u.label=3;case 3:return Bo.test(t)&&(c=RegExp.$1,s=''.concat(e.replace(/^(\w+\:\/\/[^\/]+)\/.*$/,'$1'),'/schemas/').concat(c,'.json'),d=_e(a,(function(e){var t;return(null===(t=e.fileMatch)||void 0===t?void 0:t[0])===n})),~d&&a.splice(d,1),a.push({uri:s,fileMatch:[n],schema:{$schema:'http://json-schema.org/draft-07/schema#',$ref:''.concat(e,'#/definitions/').concat(c)}})),[2,a]}}))}))}var To=Se((function(e){d.warning('代码有误,错误的地方是\n '.concat(e.toString().split('\n')[1]))}),3e3),jo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={wrongSchema:'',value:t.props.value,contents:t.obj2str(t.props.value,t.props)},t.toDispose=[],t.uri='isuda://schema/'.concat(rt(),'.json'),t.emitChange=Se((function(){var e=t.props,n=e.onChange,r=e.value,a=t.str2obj(t.state.contents);if(a&&(Ee(a)||tt(a))){t.setState({wrongSchema:''}),delete a.$schema,a=jt(a,t.props.value);var o=Jt(t.lastResult||r,a);t.lastResult=a,n(a,o)}else t.setState({wrongSchema:t.state.contents})}),250,{trailing:!0,leading:!1}),t.editorFactory=function(e,n,r){var a=n.Uri.parse(t.uri);return t.model=n.editor.createModel(t.state.contents,'json',a),n.editor.create(e,$($({autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,scrollbar:{alwaysConsumeMouseWheel:!1},minimap:{enabled:!1}},r),{model:t.model}))},t.editorDidMount=function(e,n){t.editor=e,t.monaco=n,t.changeJsonOptions(t.props),t.props.onPaste&&t.toDispose.push(t.editor.onDidPaste(t.props.onPaste).dispose)},t.editorWillUnmount=function(e,n){t.toDispose.forEach((function(e){return e()})),t.toDispose=[]},t.handleChange=function(e){t.setState({contents:e},t.emitChange)},t.handleBlur=function(){return T(t,void 0,void 0,(function(){var e,t,n;return j(this,(function(r){switch(r.label){case 0:return e=this.state,t=e.wrongSchema,n=e.value,t?[4,F([{className:'w-full',type:'tpl',label:!1,tpl:B('7e4b38ba0ab9cbfcabd9dd859e36b601')},{type:'switch',label:!1,option:B('af86ad9dd8a221f931dcdc5a63382b6f'),name:'diff',value:!1},{visibleOn:'this.diff',label:!1,type:'diff-editor',allowFullscreen:!0,disabled:!0,name:'newValue',size:'xxl',language:'json',diffValue:'${oldValue}'}],{oldValue:n,newValue:t},B('43d586cd6cf1a512c0bcb85ed9efde51'))]:[2];case 1:return r.sent()?this.setState({wrongSchema:'',contents:Ve(n)}):this.editor.focus(),[2]}}))}))},t}return K(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;e.$schema!==t.$schema&&this.monaco&&this.changeJsonOptions(t),ot(t.value,e.value)&&ot(t.value,this.lastResult)&&(this.lastResult=null,this.setState({value:t.value,contents:this.obj2str(t.value,t)}))},t.prototype.obj2str=function(e,t){var n;return e=jt(e),tt(e)||(e=$({type:null==e?void 0:e.type},e)),tt(e)||(!e.type&&(null===(n=t.$schema)||void 0===n?void 0:n.match(/PageSchema/i))?e.type='page':e.type||delete e.type,delete e.$schema),Ve(e)},t.prototype.str2obj=function(e){try{if(''===e)return{};var t=Ue(e);return To&&To.cancel(),t}catch(e){return To(e),null}},t.prototype.changeJsonOptions=function(e){var t;return void 0===e&&(e=this.props),T(this,void 0,void 0,(function(){var n,r,a;return j(this,(function(o){switch(o.label){case 0:return n=this.monaco,0===(r=e.$schemaUrl||''.concat(window.location.protocol,'//').concat(window.location.host,'/schema.json')).indexOf('/')&&(r=''.concat(window.location.protocol,'//').concat(window.location.host).concat(r)),[4,$o(r,e.$schema,n.Uri.parse(this.uri).toString(),null===(t=n.languages.json)||void 0===t?void 0:t.jsonDefaults.diagnosticsOptions.schemas)];case 1:return a=o.sent(),n.languages.json.jsonDefaults.setDiagnosticsOptions({schemas:a,validate:!0,enableSchemaRequest:!0,allowComments:!0}),[2]}}))}))},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.className,r=e.theme;return Z.createElement(et,{className:X('amis-code-editor',n),value:this.state.contents,onChange:this.handleChange,onBlur:this.handleBlur,language:'json',theme:r,editorFactory:this.editorFactory,editorDidMount:this.editorDidMount,editorWillUnmount:this.editorWillUnmount,options:{automaticLayout:!0,lineNumbers:'off',glyphMargin:!1,tabSize:2,wordWrap:'on',lineDecorationsWidth:0,lineNumbersMinChars:0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1},readOnly:t}})},t}(Z.Component),Lo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.handleCodePaste=function(){var e=this;setTimeout((function(){e.props.manager.patchSchema(!0)}),500)},t.prototype.render=function(){var e=this.props,t=e.onChange,n=e.manager,r=e.store;return Z.createElement('div',{className:'ae-CodePanel'},Z.createElement('div',{className:'panel-header'},B('5b804b05e14aaacc75033a4f77fc2844')),Z.createElement('div',{className:'ae-CodePanel-content'},Z.createElement(jo,{value:r.valueWithoutHiddenProps,onChange:t,$schema:r.jsonSchemaUri,$schemaUrl:n.config.$schemaUrl,onPaste:this.handleCodePaste})))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleCodePaste',null),t}(Z.Component);go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return K(t,e),t.prototype.buildJSONSchema=function(e){return e.info.$schema},t.prototype.buildEditorPanel=function(e,t){e.info;var n=e.selections;this.manager.store.jsonSchemaUri&&!n.length&&t.push({key:'code',icon:'png-icon code-png',title:Z.createElement('span',{className:'editor-tab-icon','editor-tooltip':B('06e004ef21414c06d3e4ff2cefaf6a04')},Z.createElement(r,{icon:'editor-code'})),position:'left',component:Do(Lo),order:5e3})},t.scene=['layout'],t}(Ja));var Ho=Z.lazy((function(){return import('react-json-view').then(ve)}));go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dataViewer={type:'json',name:'ctx',asFormItem:!0,className:'m-b-none',component:function(e){for(var t=e.value,n=H(Z.useState(0),2),r=n[0],a=n[1],o=t||{},i=[o];Object.getPrototypeOf(o)!==Object.prototype;){var c=Object.getPrototypeOf(o);if('[object Object]'!==Object.prototype.toString.call(c))break;i.push(c),o=c}return Z.createElement('div',{className:'aeDataChain'},Z.createElement('div',{className:'aeDataChain-aside'},Z.createElement('ul',null,i.map((function(e,t){return Z.createElement('li',{className:t===r?'is-active':'',key:t,onClick:function(){return a(t)}},0===t?B('48ac479789304b37afa2f1b06642f4da'):1===t?B('9bc16c658ab8a8c4eddc5e24d85bef20'):B('af767b7e4ae069d54f9ea839858d4c6d').concat(t,'层'))})))),Z.createElement('div',{className:'aeDataChain-main'},Z.createElement(Z.Suspense,{fallback:Z.createElement('div',null,'...')},Z.createElement(Ho,{name:!1,src:i[r],enableClipboard:!1,iconStyle:'square',collapsed:2}))))}},t}return K(t,e),t.prototype.buildEditorToolbar=function(e,t){var n=this;e.id,e.schema;var r=e.node.getComponent();r&&r.props&&r.props.data&&r.props.store&&(r.props.store,t.push({icon:'fa fa-bug',order:-1e3,placement:'bottom',tooltip:B('aa920263020f14211a44ea172efc7253'),onClick:function(){return n.openDebugForm(r.props.data)}}))},t.prototype.openDebugForm=function(e){return T(this,void 0,void 0,(function(){return j(this,(function(t){switch(t.label){case 0:return[4,this.manager.scaffold({title:B('aa920263020f14211a44ea172efc7253'),body:[$({},this.dataViewer)]},{ctx:e})];case 1:return t.sent(),[2]}}))}))},t.scene=['layout'],t.id='data-debug',t}(Ja)),go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t.rendererName='error',t.name='Error',t.isBaseComponent=!0,t}return K(t,e),t.scene=['layout'],t}(Ja));var zo=xe((function(e){var t=this,n=e.classnames,a=e.store,o=e.manager,i=a.modals.filter((function(e){return!e.disabled})),c=Z.useCallback((function(){var e={type:'dialog',title:'未命名弹窗',definitions:Rn(a.modals),body:[{type:'tpl',tpl:'弹窗内容'}]};o.openSubEditor({title:'编辑弹窗',value:e,onChange:function(e,t){var n=e.definitions,r=z(e,['definitions']);a.addModal(r,n)}})}),[]),s=Z.useCallback((function(e){var t=parseInt(e.currentTarget.getAttribute('data-index'),10),n=a.modals[t],r=n.$$id;o.openSubEditor({title:'编辑弹窗',value:$($({type:'dialog'},n),{definitions:Rn(a.modals,{},n)}),onChange:function(e,t){var n=e.definitions,o=z(e,['definitions']);a.updateModal(r,o,n)}})}),[]),d=Z.useCallback((function(e){return T(t,void 0,void 0,(function(){var t,n,r,o;return j(this,(function(i){switch(i.label){case 0:return e.stopPropagation(),e.preventDefault(),t=parseInt(e.currentTarget.closest('[data-index]').getAttribute('data-index'),10),n=a.modals[t],r=a.countModalActionRefs(n.$$id),[4,S(r?'当前弹窗已关联 '.concat(r,' 个事件,删除后,所配置的事件动作将一起被删除。'):'','确认删除弹窗「'.concat((null===(o=n.editorSetting)||void 0===o?void 0:o.displayName)||n.title,'」?'))];case 1:return i.sent()&&a.removeModal(n.$$id),[2]}}))}))}),[]),l=Z.useCallback((function(e){var t,n;e.stopPropagation(),e.preventDefault();var r=parseInt(e.currentTarget.closest('[data-index]').getAttribute('data-index'),10),o=a.modals[r];a.addModal($($({},o),{title:''.concat(o.title,' - 复制'),editorSetting:$($({},o.editorSetting),{displayName:(null===(t=o.editorSetting)||void 0===t?void 0:t.displayName)?''.concat(null===(n=o.editorSetting)||void 0===n?void 0:n.displayName,' - 复制'):''})}))}),[]);return Z.createElement('div',{className:n('ae-DialogList-wrap','hoverShowScrollBar')},Z.createElement(f,{size:'sm',level:'enhance',block:!0,onClick:c},'新增弹窗'),i.length?Z.createElement('ul',{className:'ae-DialogList'},i.map((function(e,t){var n;return Z.createElement('li',{className:'ae-DialogList-item','data-index':t,key:e.$$id||t,onClick:s},Z.createElement('span',null,''.concat((null===(n=e.editorSetting)||void 0===n?void 0:n.displayName)||e.title||'未命名弹窗')),Z.createElement('a',{onClick:l,className:'ae-DialogList-iconBtn'},Z.createElement(r,{className:'icon',icon:'copy'})),Z.createElement('a',{onClick:d,className:'ae-DialogList-iconBtn'},Z.createElement(r,{className:'icon',icon:'trash'})))}))):Z.createElement('div',{className:'ae-DialogList-placeholder'},'暂无弹窗'))})),Ko=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={curSearchElemKey:''},t}return K(t,e),t.prototype.handleClick=function(e){var t=this.props.store,n=e.currentTarget,r=n.getAttribute('data-node-id'),a=n.getAttribute('data-node-region');this.props.manager,a?t.activeId===r&&t.activeRegion===a?t.setActiveId(r):t.setActiveId(r,a):t.setActiveId(r)},t.prototype.handleDialogNodeClick=function(e,t){},t.prototype.handleEnter=function(e){var t=e.currentTarget,n=t.getAttribute('data-node-id'),r=t.getAttribute('data-node-region');this.props.store.setHoverId(n,r)},t.prototype.handleTabChange=function(e){var t=this.props.store;e&&ke(t)&&t.changeOutlineTabsKey(e)},t.prototype.handleDragStart=function(e){var t=e.currentTarget.getAttribute('data-node-id');t&&this.props.manager.startDrag(t,e)},t.prototype.handleDragOver=function(e){var t=e.target.closest('[data-node-id][data-node-region]');if(t){var n=this.props.manager,r=t.getAttribute('data-node-id'),a=t.getAttribute('data-node-region');e.preventDefault(),r&&a&&n.dnd.switchToRegion(e.nativeEvent,r,a)}},t.prototype.handleDrop=function(e){this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.handleSearchElemKeyChange=function(e){this.setState({curSearchElemKey:e})},t.prototype.clearSearchElemKey=function(){this.setState({curSearchElemKey:''})},t.prototype.renderTitleByKeyword=function(e,t){if(t&&~e.indexOf(t)){var n=e.indexOf(t),r=n+t.length;return Z.createElement('span',null,e.substring(0,n),Z.createElement('span',{className:'has-keywords'},t),e.substring(r))}return e},t.prototype.renderItem=function(e,t,n){var a,o=this,i=this.props.store,c=this.state.curSearchElemKey,s=!i.dragging&&e.singleRegion?e.uniqueChildren[0].uniqueChildren:e.uniqueChildren,d=s.length;return!i.dragging||e.isRegion||e.children.length?Z.createElement('li',{className:X('ae-Outline-node',{'is-folded':e.folded,'is-active':i.activeId===e.id&&!e.region||e.isRegion&&i.dropId===e.id&&i.dropRegion===e.region||e.isRegion&&i.activeId===e.id&&i.activeRegion===e.region,'is-region':e.isRegion,'is-hover':!e.isRegion&&(i.isHoved(e.id)||i.isContextOn(e.id)),'has-children':d,'is-dragging':i.dragId===e.id&&'schema'===i.dragType}),key:t},Z.createElement('a',{onClick:this.handleClick,onMouseEnter:this.handleEnter,'data-node-id':e.id,'data-node-region':e.region,'data-node-common-config':null===(a=e.schema)||void 0===a?void 0:a.$$commonSchema,draggable:e.draggable,onDragStart:this.handleDragStart},d?Z.createElement('span',{onClick:e.toggleFold,className:X('ae-Outline-expander ae-Outline-node-icon',{'is-folded':e.folded}),'data-node-id':e.id,'data-node-region':e.region},Z.createElement(r,{icon:'down-arrow'})):null,Z.createElement('span',{className:'ae-Outline-node-text'},e.isCommonConfig?''.concat(e.label,'-[公共配置]'):this.renderTitleByKeyword(this.getDialogNodeLabel(e,n),c))),d?Z.createElement('ul',{className:'ae-Outline-sublist'},s.map((function(e,t){return o.renderItem(e,t,n)}))):null):null},t.prototype.getDialogNodeLabel=function(e,t){return t?this.getDialogLabel(e,!0,'dialogTitle'):e.label},t.prototype.getDialogLabel=function(e,t,n){void 0===n&&(n='title');var r='';if(t&&(r=e.label),('dialog'===e.type||'drawer'===e.type)&&(!t||t&&!e.region)){var a=fn(e[n]);r='drawer'===e.type?''.concat(a||B('7336083e6c61fe75fb5ec3f5ef101ac7'),'(抽屉式弹窗)'):'confirm'===e.dialogType?''.concat(a||B('fa6b01f51cc2b8e16bfbb914b6c08ace'),'(确认对话框)'):''.concat(a||B('6cff4b6d794cc17f5d24dbe0d21e5732'),'(弹窗)')}return r},t.prototype.renderDialogItem=function(e,t){var n=this,r=this.getDialogLabel(e,!1);return Z.createElement('li',{className:X('ae-Outline-node'),key:t},Z.createElement('a',{onClick:function(t){return n.handleDialogNodeClick(t,e)}},Z.createElement('span',{className:'ae-Outline-node-text'},this.renderTitleByKeyword(r,this.state.curSearchElemKey))))},t.prototype.render=function(){var e=this,t=this.state.curSearchElemKey,n=this.props,a=n.store,o=n.manager,i=a.outlineTabsKey||'component-outline',c=a.outline;return Z.createElement('div',{className:'ae-Outline-panel'},Z.createElement('div',{className:'panel-header'},B('c65e6ddd7b48846aa1e5224d4e5743c1')),Z.createElement(v,{className:'ae-outline-tabs',linksClassName:'ae-outline-tabs-header',contentClassName:'ae-outline-tabs-content',tabsMode:'line',onSelect:this.handleTabChange,activeKey:i},Z.createElement(g,{className:'ae-outline-tabs-panel',key:'component-outline',eventKey:'component-outline',title:B('67bcc69dd0a75d50c5cbb7f107ee9f63')},Z.createElement(u,{className:'editor-InputSearch',value:t,onChange:this.handleSearchElemKeyChange,placeholder:B('962d43ff8d39c381d8e2c73838412111'),clearable:!1},t?Z.createElement('a',{onClick:this.clearSearchElemKey},Z.createElement(r,{icon:'close',className:'icon'})):Z.createElement(r,{icon:'editor-search',className:'icon'})),Z.createElement('hr',{className:'margin-top'}),Z.createElement('div',{className:X('ae-Outline','hoverShowScrollBar',{'ae-Outline--draging':a.dragging}),onDragOver:this.handleDragOver,onDrop:this.handleDrop},a.dragging?Z.createElement('div',{className:'ae-Outline-tip'},B('0c95d1856ffdeeade7cebe0ef928f361')):null,c.length?Z.createElement('ul',{className:'ae-Outline-list'},c.map((function(t,n){return e.renderItem(t,n)}))):Z.createElement('div',null,B('c482df2a3ac8e014febd8a5fc9cadaea')))),a.isSubEditor?null:Z.createElement(g,{className:'ae-outline-tabs-panel',key:'dialog-outline',eventKey:'dialog-outline',title:'弹窗列表'},Z.createElement(zo,{manager:o,store:a,classnames:X}))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Object]),V('design:returntype',void 0)],t.prototype,'handleDialogNodeClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleEnter',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleTabChange',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragStart',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragOver',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDrop',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleSearchElemKeyChange',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'clearSearchElemKey',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,String]),V('design:returntype',void 0)],t.prototype,'renderTitleByKeyword',null),t=_([xe],t)}(Z.Component);go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return K(t,e),t.prototype.buildEditorPanel=function(e,t){var n=this.manager.store;if(n&&e.selections.length){var a=n.changeLeftPanelOpenStatus,o=n.changeLeftPanelKey;a(!0),o('outline')}t.push({key:'outline',icon:'png-icon outline-png',title:Z.createElement('span',{className:'editor-tab-icon','editor-tooltip':B('93383ef1ab4a433df97a56a73e571b9f')},Z.createElement(r,{icon:'editor-outline'})),component:Do(Ko),position:'left',order:4e3})},t.scene=['layout'],t}(Ja)),go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=9999,t}return K(t,e),t.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema,r=e.path;if(n.$$id&&t){if(/(^|\/)static\-field/.test(r))return;if('card-item'===t.name||'list-item-field'===t.name||'card-item-field'===t.name)return;return{name:'Unknown',$schema:'/schemas/UnkownSchema.json'}}},t.scene=['layout'],t}(Ja));var _o={};function Vo(e,t,n){var r=_o[e]||{};return'function'==typeof r?r(t,n):t?$($({},r),t):r}function Uo(e,t){_o[e]=t}function Wo(e){try{if('undefined'===e)return;return JSON.parse(e)}catch(t){return e}}function Zo(e){return Array.isArray(e)?e.length?e:void 0:'string'==typeof e?e||void 0:'object'==typeof e?Object.keys(e).length?e:void 0:e}function qo(e,t){return void 0===t&&(t=!0),t?function(t){return void 0===t?e:t}:function(t){return t||e}}function Yo(e,t,n){return{type:'tooltip-wrapper',tooltip:t,tooltipTheme:'dark',placement:'top',tooltipStyle:$({fontSize:'12px'},n||{}),className:'ae-formItemControl-label-tip',body:e}}function Xo(e){var t,n='data:image/svg+xml,%3C%3Fxml version=\'1.0\' standalone=\'no\'%3F%3E%3C!DOCTYPE svg PUBLIC \'-//W3C//DTD SVG 1.1//EN\' \'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\'%3E%3Csvg t=\'1631083237695\' class=\'icon\' viewBox=\'0 0 1024 1024\' version=\'1.1\' xmlns=\'http://www.w3.org/2000/svg\' p-id=\'2420\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' width=\'1024\' height=\'1024\'%3E%3Cdefs%3E%3Cstyle type=\'text/css\'%3E%3C/style%3E%3C/defs%3E%3Cpath d=\'M959.872 128c0.032 0.032 0.096 0.064 0.128 0.128v767.776c-0.032 0.032-0.064 0.096-0.128 0.128H64.096c-0.032-0.032-0.096-0.064-0.128-0.128V128.128c0.032-0.032 0.064-0.096 0.128-0.128h895.776zM960 64H64C28.8 64 0 92.8 0 128v768c0 35.2 28.8 64 64 64h896c35.2 0 64-28.8 64-64V128c0-35.2-28.8-64-64-64z\' p-id=\'2421\' fill=\'%23bfbfbf\'%3E%3C/path%3E%3Cpath d=\'M832 288c0 53.024-42.976 96-96 96s-96-42.976-96-96 42.976-96 96-96 96 42.976 96 96zM896 832H128V704l224-384 256 320h64l224-192z\' p-id=\'2422\' fill=\'%23bfbfbf\'%3E%3C/path%3E%3C/svg%3E';return'date'===e.type||'datetime'===e.type||'time'===e.type||'month'===e.type||'static-date'===e.type||'static-datetime'===e.type||'static-time'===e.type||'static-month'===e.type||'input-date'===e.type||'input-datetime'===e.type||'input-time'===e.type||'input-month'===e.type?nt().format('X'):'image'===e.type||'static-image'===e.type?n:'images'===e.type||'static-images'===e.type?[n]:'number'===e.type||'input-number'===e.type?(1e3*Math.random()).toFixed(null!==(t=e.precision)&&void 0!==t?t:0):B('6cb01692eea2fa7066d20fe2b6ccaea3')}function Jo(e,t){return function(n){go(function(n){function r(r){var a=n.call(this,r)||this;return a.rendererName=e,a.name=a.tipName||t.name,a.description=t.description,a.scaffold=t.scaffold||{type:t.type},a.previewSchema=t.previewSchema||a.scaffold,a.settingsSchema&&(a.panelTitle=a.settingsSchema.title,a.panelControls=a.settingsSchema.body),a}return K(r,n),r}(n))}}var Go=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t}(Ja),Qo=function(e){function t(t){var n=e.call(this,t)||this;return n.manager.on('build-panels',n.buildPanels),n}return K(t,e),t.prototype.componentWillUnmount=function(){this.manager.off('build-panels',this.buildPanels)},t.prototype.buildPanels=function(e){var t=e.context.data;Array.isArray(t)&&t.splice(0,t.length)},t.prototype.render=function(){var e=this.props,t=e.preview,n=e.className,r=e.theme,a=e.data,o=e.isMobile,i=e.autoFocus,c=e.previewProps;return Z.createElement('div',{className:X('ae-Editor',{preview:t},n)},Z.createElement('div',{className:'ae-Editor-inner',onContextMenu:this.handleContextMenu},Z.createElement('div',{className:'ae-Main'},Z.createElement(Tn,$({},c,{isMobile:o,editable:!t,store:this.store,manager:this.manager,theme:r,data:a,autoFocus:i,appLocale:this.props.appLocale})))),Z.createElement(wo,{store:this.store,manager:this.manager,theme:r}),Z.createElement(So,{store:this.store,manager:this.manager,theme:r}))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'buildPanels',null),t}(Mo),ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.UNSAFE_componentWillMount=function(){var e=this,t=this.props;t.data,t.path;var n=t.widthMutable,r=z(t,['data','path','widthMutable']),a=this.context;this.editorNode=a.addChild({id:r.id,type:r.type,label:r.name,path:this.props.path,schemaPath:r.schemaPath,info:r,getData:function(){return e.props.data},widthMutable:n,memberIndex:r.memberIndex})},t.prototype.componentDidMount=function(){this.markDom(this.editorNode.id)},t.prototype.componentDidUpdate=function(){this.markDom(this.editorNode.id)},t.prototype.componentWillUnmount=function(){this.editorNode&&ke(this.editorNode)&&this.context.removeChild(this.editorNode)},t.prototype.markDom=function(e){var t=Re(this);if(t){var n=this.editorNode.info,r=n.wrapperResolve?n.wrapperResolve(t):t;(Array.isArray(r)?r:r?[r]:[]).forEach((function(t){return t.setAttribute('data-editor-id',e)}))}},t.prototype.render=function(){return Z.createElement(Za.Provider,{value:this.editorNode},this.props.children)},t.contextType=Za,t}(Z.Component),ti=[{title:B('79d3abe929f67f0644a78bf32adb3a89'),letters:['⌘','c'],tooltip:B('b7d817611230d382f6ef92b41848a342')},{title:B('eafbece1016a6af76cce466e55ad9f00'),letters:['⌘','v'],tooltip:B('e0b9bb8e41eccd3ce6b282664643d7f8')},{title:B('43fc77886b7fbcd658f0ccdba36bd5a0'),letters:['⌘','x'],tooltip:B('a6be4ad12e9612811963c44466af3218')},{title:B('bd9fcf46b4e5993f97fe04ee9ebcd7ed'),letters:['⌘','z'],tooltip:B('58887132871b71b015c3a391e7755815')},{title:B('c3c873d33f1c6482c79b0ffd862786cd'),letters:['⌘','Shift','z'],tooltip:B('58887132871b71b015c3a391e7755815')},{title:B('be5fbbe34ce9979bfb6576d9eddc5612'),letters:['⌘','s'],tooltip:B('1f81fd4598e9151538f29c41b8aa0020')},{title:B('34d240d1ded259c32f7fee21e99c5671'),letters:['⌘','p'],tooltip:B('6722089d251c1e4aabe9d58c26a2208a')},{title:B('2f4aaddde33c9b93c36fd2503f3d122b'),letters:['Delete'],tooltip:B('426cd14ebd62a4922186527d07ba37f3')},{title:B('2f4aaddde33c9b93c36fd2503f3d122b'),letters:['Backspace'],tooltip:B('426cd14ebd62a4922186527d07ba37f3')},{title:B('499e58e764420aeed2d1476a56d8fa34'),letters:['⌘','↑'],tooltip:B('d040485f0e3887f0b297f8f772db03e4')},{title:B('08ad565f066d30572d1f8e2ee17cbe12'),letters:['⌘','↓'],tooltip:B('6348dc0e83d6ab391a8816f67d0e5ceb')}],ni=function(e){function t(t){var n=e.call(this,t)||this;return n.state={visible:!1},n}return K(t,e),t.prototype.closeShortcutKeyModal=function(){this.setState({visible:!1})},t.prototype.showShortcutKeyModal=function(){this.setState({visible:!0})},t.prototype.render=function(){var e=this.props,t=e.title,n=e.size,a=e.closeOnEsc,o=e.closeOnOutside,i=this.props.ShortcutKeyList||ti;return Z.createElement(Z.Fragment,null,Z.createElement('div',{className:'shortcut-icon-btn','editor-tooltip':B('fbec96e028142496df88ed2c63b44512'),'tooltip-position':'bottom'},Z.createElement(r,{icon:'editor-shortcut',onClick:this.showShortcutKeyModal})),Z.createElement(O,{size:n||'xs',show:this.state.visible,closeOnEsc:null==a||a,closeOnOutside:null==o||o,onHide:this.closeShortcutKeyModal,contentClassName:'shortcut-list-modal'},Z.createElement('div',{className:'shortcut-modal-header'},Z.createElement('div',{className:'shortcut-modal-title'},t||B('9c3f1278ffa822835bb3a677f02bca27')),Z.createElement(r,{icon:'close',className:'shortcut-modal-icon',onClick:this.closeShortcutKeyModal})),Z.createElement('div',{className:'shortcut-modal-body'},i&&i.length>0&&Z.createElement('div',{className:'shortcut-list'},i.map((function(e,t){return Z.createElement('div',{className:'shortcut-item',key:t},e.tooltip&&Z.createElement('div',{className:'shortcut-title','editor-tooltip':e.tooltip},e.title),!e.tooltip&&Z.createElement('div',{className:'shortcut-title'},e.title),Z.createElement('div',{className:'shortcut-letters'},e.letters.map((function(e){return Z.createElement('div',{className:'shortcut-letter',key:e},e)}))))}))),!i||0===i.length&&Z.createElement('span',null,B('4e98a5dcd3defffb23629fce3add04f6')))))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'closeShortcutKeyModal',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'showShortcutKeyModal',null),t}(Z.Component),ri='6.4.0';export{Fo as AvailableRenderersPlugin,Ja as BasePlugin,Go as BasicEditor,jo as CodeEditor,to as ContainerWrapper,Mo as Editor,Eo as EditorManager,Fn as IFrameEditor,Mt as JSONCanMoveDown,kt as JSONCanMoveUp,Ot as JSONChangeInArray,Rt as JSONDelete,Ft as JSONDuplicate,St as JSONGetById,wt as JSONGetByPath,It as JSONGetParentById,Ct as JSONGetPathById,Nt as JSONMerge,Pt as JSONMoveDownById,At as JSONMoveUpById,yt as JSONPipeIn,Et as JSONPipeOut,Qt as JSONTraverse,xt as JSONUpdate,Bt as JsonGenerateID,Ga as LayoutBasePlugin,Qo as MiniEditor,eo as RegionWrapper,Jo as RendererEditor,ro as SchemaFrom,za as SearchPanel,ni as ShortcutKey,ei as VRenderer,Do as WidthDraggableContainer,vt as __uri,Wt as addDragingClass,xn as addModal,ct as anyChanged,hn as appTranslate,vo as autoPreRegisterEditorCustomPlugins,Ut as autobind,Ht as blackList,qt as camelize,gt as cleanUndefined,En as clearDirtyCssKey,it as cloneObject,$t as createElementFromHTML,Xa as createEvent,ft as createObject,Tt as deepFind,Mo as default,qo as defaultValue,Jt as diff,pt as eachTree,jt as filterSchemaForConfig,Lt as filterSchemaForEditor,on as generateNodeId,bo as getEditorPlugins,pn as getI18nEnabled,Vo as getSchemaTpl,gn as getThemeConfig,Cn as getVariables,rt as guid,ut as isEmpty,cn as isHasPluginIcon,sn as isLayoutPlugin,en as isNumeric,rn as isObject,ot as isObjectShallowModified,nn as isString,an as jsonToJsonSchema,dt as makeHorizontalDeeper,io as mapReactElement,Nn as mergeDefinitions,Xo as mockValue,Rn as modalsToDefinitions,un as needDefaultWidth,mn as needFillPlaceholder,st as noop,Vt as normalizeId,at as omitControls,Gt as patchDiff,Kt as persistGet,_t as persistSet,Dt as reGenerateID,Yt as reactionWithOldValue,go as registerEditorPlugin,Zt as removeDragingClass,Xt as repeatArray,wn as resolveVariablesFromScope,In as scrollToActive,Uo as setSchemaTpl,vn as setThemeConfig,zt as sortByList,tn as string2CSSUnit,ln as stringRegExp,yn as style2ThemeCss,ht as themeConfig,mt as themeOptionsData,Yo as tipedLabel,fn as translateSchema,yo as unRegisterEditorPlugin,Zo as undefinedPipeOut,dn as unitFormula,Sn as updateComponentContext,On as utils,Wo as valuePipeOut,ri as version};
6
+ import{utils as e,hasIcon as t,mapObject as n,Icon as r,findTree as a,render as o,autobind as i,closeContextMenus as c,resizeSensor as s,toast as d,resolveRenderer as l,InputBox as u,Html as p,Button as f,registerIcon as h,TooltipWrapper as m,Tabs as v,Tab as g,filterSchema as b,resolveVariable as y,Spinner as E,createObjectFromChain as w,alert as C,confirm as S,animation as I,openContextMenus as x,DataSchema as R,getTheme as N,Modal as O,Overlay as k,PopOver as A,Drawer as M,FormItem as P,prompt as F}from'amis';export{Icon,registerIcon}from'amis';import{extendLocale as D,i18n as B}from'i18n-runtime';import{__assign as $,__awaiter as T,__generator as j,__spreadArray as L,__read as H,__rest as z,__extends as K,__decorate as _,__metadata as V,__values as U}from'tslib';import*as W from'react';import Z,{memo as q,Component as Y}from'react';import X from'classnames';import{getGlobalData as J}from'amis-theme-editor-helper';import{isExpression as G,resolveVariableAndFilter as Q,clearStoresCache as ee,findTree as te,LazyComponent as ne,mapObject as re,mapTree as ae,createObject as oe,extractObjectChain as ie,extendObject as ce,getVariable as se,isObject as de,ErrorBoundary as le,attachmentAdpator as ue,DataSchema as pe,DATASCHEMA_TYPE_MAP as fe,eachTree as he,getRenderers as me,importLazyComponent as ve}from'amis-core';import{isObservable as ge,reaction as be}from'mobx';import ye from'deep-diff';import Ee from'lodash/isPlainObject';import we from'lodash/isEqual';import Ce from'lodash/isNumber';import Se from'lodash/debounce';import Ie from'lodash/merge';import{observer as xe}from'mobx-react';import{findDOMNode as Re,render as Ne,unmountComponentAtNode as Oe}from'react-dom';import{isAlive as ke,types as Ae,getParent as Me,getRoot as Pe,getEnv as Fe,cast as De,destroy as Be}from'mobx-state-tree';import $e from'lodash/omit';import Te,{useFrame as je}from'react-frame-component';import Le from'lodash/find';import He from'lodash/isString';import{matchSorter as ze}from'match-sorter';import Ke from'lodash/uniq';import _e from'lodash/findIndex';import{stringify as Ve,parse as Ue}from'json-ast-comments';import We from'lodash/groupBy';import Ze from'lodash/flatten';import qe from'lodash/memoize';import Ye from'axios';import Xe from'lodash/sortBy';import Je from'lodash/cloneDeep';import Ge from'lodash/reverse';import Qe from'lodash/pick';import{Editor as et}from'amis-ui';import tt from'lodash/isArray';import nt from'moment';D('en-US',{'4e7f76261f8c4c6d78998f85fc1f4c6e':'Margin','16a20243f9b741c08216dc9548de2968':'Overall','23ecf42cada8bf2715792d718544d107':'xs','391b8fa9c747a1799353ab856e666ad5':'sm',fd6e80f1e0199d6ecc3ee81ae04aa9ef:'default',aed1dfbc31703955e64806b799b67645:'md',ab18e30c0dc4093ceeda8961fac3d1f4:'lg','461d364c67ec6a45e011ed13f2f7154f':'Top margin','31e3752986d64c8b36897c8641c8628d':'Right margin',eabe91d9426b6446f707cea3e7ab2418:'Bottom margin','2e46d251ee6188bb1b3ff20656276572':'Left margin','3dc4038d0f0a2d2b3c2b2e29a5ec6dde':'None',a8b0c20416853bda54120bf19477ad11:'All',af767b7e4ae069d54f9ea839858d4c6d:'Top','4d9c32c23df5d234e629c922c58d8e12':'Right','3850a186c3235bc646d4c2f79cebac36':'Bottom',d2aff1417831aa621c16cd5b95306b4b:'Left','841d77223f0ec8cd0b530ed8e0775b20':'Padding','961534b4ea37e4e88aada736b299d063':'Border',d4d2a66820d30e07b44c850eb3f116c0:'Position','58f966670529f4753fb3c5a0647606be':'Size','6b36c6f7ec834692ec6c8e3816349fdd':'Color',fbae87bcc352f6933541fb77a07418ed:'Primary color',d8c7e04c8e2be23dd3b81a31db6e04f1:'Information','900c70fa5f7dbc014e6f762d5e0e885c':'Warning','540f84ddc0883866b229f71c2844199a':'Danger','330363dfc524cff2488f2ebde0500896':'Success','2fc96b2704b05d6a9f299c442573ee77':'White',adb7e5312abdb9a44297e48d63815fa3:'Dark color','48d0a09bdd5fe7e89f0a445b0ffdf14f':'Light color','0d98c74797e49d00bcc4c17c9d557a2b':'Others','0103eb2d3dca70270d1a74e9ec987ac9':'Rounded corner','8456bc40d48da5af833f1c63385e9879':'Font',b3b2682579133673d3fe08c156d565dc:'Normal','56dce5d1cbb97439d291c458e50107e0':'Bold','49a79f4047b81186c069ed1c9c151c66':'Light color','8e1b944f4389bdaab6f11d5bc83190c8':'Background',c28479019e24e0e4745f4948e9e97ee7:'Width',f72ce9ad683cc82e0eab557ffc9c67a0:'Make it exceptionally small',b95c462d7697958c25861193fc89ae07:'Make it big','3386da5f56fac758ed0f18e024ecb943':'Make it exceptionally big ',ffaa96ef7232cb6d8ee4d7e673dbf4ac:'Fill','47eac1ac32a8aa9081dffbdc4d374318':'Enter the css class name','939d5345ad4345dbaabe14798f6ac0f1':'Submit','55c56d01a7747ffe0346d42145b62d97':'The [Amis-editor] responds to the dynamic plugin addition event:',d6f73c6f3b92be5a64f7ea0163501284:'Cutting the region node is not allowed.','4fda4f585214d469c04466e2fc98b796':'Cutting the root node is not allowed.','657bbe06d3922b23552817df7fa8268e':'Cutting the current element is not allowed.','416445a316595bdeb44b661c7de875a8':'You cannot move the current element upward.','6ac88d87b2fd118ba7beab8c17880470':'You cannot move the current element downward.',fdb3cba60407b2f1aea0230cca644573:'You cannot delete the region node directly.','8a4b4e2e3b0382007e0c69ed1fe6fe71':'Deleting the root node is not allowed..','22f031f3de2e55c430a818d8c588f7a1':'Deleting the current element is not allowed.','3b6d5995e9f2ecd3df059b3f1bea201e':'A call error occurs or domain crossing occurs.','09f33be5ec04eb48b3102e4e31af5b38':'A call error occurs.','283c2a52955ad87574fd6c0cc932c443':'You can call the node only in the Iframe.',a71002967924a83e32b38a80705290fb:'System error','058ebdf2884474ebff2977ba2f0e275e':'System message','88f000a0fdc38ce3808cef072b00893c':'The rendering is in progress...','279321f97f11da7bc90facca156b3444':'A code error exists, which takes place at \\n {{@1}}.','7e4b38ba0ab9cbfcabd9dd859e36b601':'Currently, some data in the code are modified. Because the data is incorrect in its format and not saved, are you sure to abandon the modification?',af86ad9dd8a221f931dcdc5a63382b6f:'Check the modification.','43d586cd6cf1a512c0bcb85ed9efde51':'Confirm',bb79667f37035e9562ec6bcffd6cf8ef:'Component','5cb297585d4c81bb8fdbd31210a30d6f':'System component','6fce1c9aa3654ae2f0eedcc068a7e189':'Customize the component.','06e004ef21414c06d3e4ff2cefaf6a04':'Code','7f7c624a843b0d539a4ea59a696702f9':'Batch operation',b80ed82d124c6fd9242dcacdda2a2f8b:'Change the component type.','41150516bf0d90646edc5239593366e9':'Select the component and plug it into?',d87481b371771b4f150da76e311bbbef:'The component can be filtered by entering the keywords.',becdc848350872592201e31bab03892a:'It is impossible to preview it.',f26225bde6a250894a04db4c53ea03d0:'Details','751dfe6f476903c21381c9acf88332e2':'No component is available. Perhaps you should change the container.',e22c9a05b424b761efce11f17726fdd7:'Replace','9bdb07e72d3a9a6084201a7398523f5a':'Insert','625fb26b4b3340f7872b411f401e754c':'Cancel','95509c09bdef4bb7842a9b957ab1f971':'Disable the floating mode.','426480bb614633c8c3ba8faa0338b72f':'Enable the floating mode.',fbf7967f9baf6a22bd6ca7f4e6390bf9:'{{@ 1}}-[Public configuration]','93383ef1ab4a433df97a56a73e571b9f':'Outline','962d43ff8d39c381d8e2c73838412111':'Query the page element.','0c95d1856ffdeeade7cebe0ef928f361':'You can change the container by dragging the target into the navigating node.',c482df2a3ac8e014febd8a5fc9cadaea:'The loading is in progress, so you need to wait for a while...',c44c6c179c44e794b103053886847dc4:'No preview image is available.',e4cefe7df36e92da1d7e875b92655507:'Click to unfold.','7ae451de83aa6f5f140e941904377391':'Click to fold.','84c8f0087acfc9b9862371d0bd59b830':'Click to add 「{{@1}}」.',f3430f4fdd8b9643daa74f4a5716dd15:'&nbsp; details &nbsp;',b797a8992ef41320919e45a069f2b459:'No available component is found. You can continue to search for the component by changing the keyword.','0bd36c8db19e3a93506f39ebc8ff0ab9':'When the form, list, and other components have a name, they appear here for your selection.',bb28ec819520ced0ffb4c3da01f112e2:'Click to clear the current area.',e83a256e4f5bb4ff8b3d804b5473217a:'Confirm','22c799040acdb2601b437ed5449de076':'Container',bd9fcf46b4e5993f97fe04ee9ebcd7ed:'Undo',c3c873d33f1c6482c79b0ffd862786cd:'Redo',e9509c688a0df6b088503d21569b6e8f:'A type error exists so that no rendering is possible.','2168c5735883bd040eaf09909d0911b8':'Query the component by entering the keyword.',e9c38f88375807704270aa3572454976:'Search history','288f0c404c4e546aa3683ff5054e85e2':'Clear','4b9bc9abf2a2beb3772d903a3d01d1de':'Click to delete this search record.','9d3128a1675de32cdd290b31140a7290':'The query result is empty. You can continue search by changing the keyword.',accb901a02b1415b40d95cdd31b8da1d:'Component classification','79d3abe929f67f0644a78bf32adb3a89':'Copy',b7d817611230d382f6ef92b41848a342:'Copy the currently selected element.',eafbece1016a6af76cce466e55ad9f00:'Paste',e0b9bb8e41eccd3ce6b282664643d7f8:'Paste the copied element to the currently selected node.','43fc77886b7fbcd658f0ccdba36bd5a0':'Cut',a6be4ad12e9612811963c44466af3218:'Cut the currently selected element.','58887132871b71b015c3a391e7755815':'Restore the previous operation undone.',be5fbbe34ce9979bfb6576d9eddc5612:'Save','1f81fd4598e9151538f29c41b8aa0020':'Save all current operations.','645dbc5504e722a30896486085a06b32':'Preview','5bc425ac8b75c571093a63eb6073c354':'Enable the preview mode.','2f4aaddde33c9b93c36fd2503f3d122b':'Delete','426cd14ebd62a4922186527d07ba37f3':'Delete the current node.','499e58e764420aeed2d1476a56d8fa34':'Move upward',d040485f0e3887f0b297f8f772db03e4:'Move upward the current node.','08ad565f066d30572d1f8e2ee17cbe12':'Move downward','6348dc0e83d6ab391a8816f67d0e5ceb':'Move downward the current node.',fbec96e028142496df88ed2c63b44512:'Click to check the current shortcut key available.','9c3f1278ffa822835bb3a677f02bca27':'Current shortcut key available','4e98a5dcd3defffb23629fce3add04f6':'No shortcut key is available temporarily.','186733ed7ec817040b8f9cbc610ba49a':'Program error',e777eb796f8a02e97a891fde43d10ce4:'{{@1}} variable','5d665bc55779aafdefcc4050e3a8429e':'A {{@1}}({{@2}}) rendering error occurs:',a30dd4945df5b44b264fa3be6ee9682e:'Current renderer information:','63f94190d2d4ea22263e6e9f07c96558':'Error object:',f66335b5bff0e26fdff2a3303e0f9bb0:'Error information:','966e23b5c1efe8e18fc4f0c326d47314':')A rendering error occurs. For details about the error, check the console output.',f942c7a6a35c4eb1381d2966462d0489:'<div class="wrapper-sm b-a b-light m-b-sm">Be dragged into the placeholder area</div>','245897371cda2055f5c17c6cf298ed48':'Tip: No redirection is allowed in the preview mode.',e1b7255934e3189b1f5d440fc1aa0230:'An exception occurs during the plugin registration because a plugin with the same name already exists:','979a50681e278dcc0be18f68459e8217':'System variable','75c142934800d6ee31fcf3fdff9e5d53':'The [Amis-editor] has a {{@1}} plugin.','0e24e1bbc19612a350f81296d9fb7802':'First select an element as the insertion position.',bd690facb536d759814ee64f2760fecb:'Adding a component is not allowed at the current node.','02f180cd26ff0951ddfda490080ee5ea':'The configuration item has been copied.','1ff035555ac8a68dc5b0ea2d0af55f00':'The clipboard content is empty.','6cb01692eea2fa7066d20fe2b6ccaea3':'False data','7f2f0461a58c43667d7245ce92bb2e77':'Hold and drag it to adjust its position.','78c1c38b91c672da1113fa2564c14ea6':'Insert a component forward.','87f48bbadfbef5ef4554e06b7e141d37':'Insert a component backward.','95b351c86267f3aedf89520959bce689':'Edit','0ec9eaf9c3525eb110db58aae5912210':'More','417db09508befe7dbe9f84a517a6edec':'Repeat a copy.','99b81127ef28368151621cdfccce69f8':'Cancel the multi-selection.','205f45ee17394bd5668412780eaa55e2':'Insert a component.','4c725f0159023c485ead728680e277ba':'Select {{@1}}.','7ad78e0991f34ff3a345c59a2fc31572':'Select a level.',aafda9e8f6b7b613680677c513edb7a6:'Cancel the selection.',b58d101f52531c845f15db63d7212115:'Copy the configuration.','74e2bc6615b7dbbb11fd5e1e212263ae':'Cut the configuration.',e2f401af580d1354ae00ec4ca19e2e24:'Paste the configuration.','21462ae22216eec41dc688cc4a8ae64b':'Move forward',ed2bc13d8bbd99e16e017dd5f5393393:'Move backward','9e54f3e4ee3330299c5fdc910c2e8d3c':'Undo',ae8e86e426c2ba00da274b66dc372a8b:'Redo','2b6bc0f293f5ca01b006206c2535ccbc':'Operation',aa920263020f14211a44ea172efc7253:'Context data','48ac479789304b37afa2f1b06642f4da':'Current','9bc16c658ab8a8c4eddc5e24d85bef20':'Upper layer','004d4be2ba8e6b8eed9333d15bc80a88':'Upper {{@1}} layer',e366ccf1556c0672dcecba135ed5472e:'Setting','0cbec43d00e491a663ff0525ffe31868':'Quickly build 「{{@1}}」.','1dd554cdfc1ddf7dce13453805523c16':'Change',a82240ce09faf0b972a8aa5c9e93d209:'Insert the component panel.',eadc8c8d4a8776893672330598babca0:'A position error occurs. The target position is not found.',f3c057f37fb9a4e7dd44b04919c12578:'Click to add an element in the left component panel.','54ea89b497ec3bb319c68844dfa3687f':'API','51e213e66b37d716a35baebc9193035c':'This API is used to store the data. After submission of the form, you can import the data into this API. <br/>\n API response body requirements (If data exists in the data, the data is merged into the form context):<br/>\n {{@1}}\n}, null, \'<br/>\')}','388e0ff896ea4f23e71d36c06443f157':'API response body requirements: <br/>\n {{@1}},\n page: 0,\n total: 0\n}, null, \'<br/>\')}',b4bc91701b86fe8543d649e97daea602:'Initialize the API',f8747759c73697367bc8a570977c4a62:'API response body requirements:<br/>\n {{@1}}\n}, null, \'<br/>\')}',d2b46e7989e18239d7036affd4d521db:'{{@1}}field','9caecd931b956381e0763d05aa42835c':'Field','47cd88592f6ef2b258f02c0690d267ed':'Hide, which is selected by default','32c65d8d7431e76029678ec7bb73a5ab':'Title','020586d0c69f8211840ddf9ee9bbf6ab':'Bind the field','226b0912184333c81babf2f1894ec0c1':'Type','97d07614380da93d257f9fbf81aa56fb':'Text','20def7942674282277c3714ed7ea6ce0':'Image','4ff1e74e43a3586339251494117185ad':'Date',c7bff79d059a0b7ff9b02441959d8be2:'Progress','3fea7ca76cdece641436d7ab0d02ab1b':'Status','9da188491dd34c4382a5b9f006194e41':'Mapping',b3e55578af5dd473bab62641bb2f5f8e:'Input type','9b6425cd2d496c9cb5a6c6b8ff125d1b':'Input box','15d169d28cd48c97fe751e4cc92ca926':'Multi-line text','9597dcaf432ceba92a160d61cb1ef65f':'Digital input','9913107b19cb6012250134ff91377430':'Radiobox','454e60f5759903d7d3dba58e3f9bd590':'Select-box',db98f889ce6bc235e66bd4b2a788d137:'Checkbox','006ded9fa277cf030592021f595a07d5':'Select',a6beb974cc0b50eebd18120b8110a88b:'Switch',b339aa87104709397ba68e7ebbc6e5ba:'Table','481e034e6026969aae4ce7ce7c8a7b6f':'File upload','6bfb9bb2218ff32b6139e98bc93707c0':'Image upload','24b6d4c0892a8f3ee2a982e3ab0afe38':'Rich text editor','4484fa04e7b71db4c8293e5bcb53eca4':'Add a field.','4cc6a76c146c0360a41ceaf5e212c891':'Generate a field automatically based on the API.',a9fea442707e26dee478b34a2f2ce263:'First fill in the API.','91aa2166ee4811414381c8d94e6567e6':'Because the API return format is incorrect, check the API response format requirements.','3712972d84adf48acbd6ad24b4d75ad0':'List','66ab5e9f24c8f46012a25c89919fb191':'Add',e73cefac9d030927da1618c7b15c98c9:'Edit in batch','7fb62b30119c3797a843a48368463314':'Delete in batch','8d9a071ee2ef45e045968e117a205c07':'Import','55405ea6ff6fd823ffab7e6b10ddfa95':'Export',c26996a6506adf397f0668d376d0b40b:'Simple query','6ff4bf3d567e977aa4c90c27dff1e6db':'Fuzzy query','9c4666fd08c2738eb9611a3721cb5f0f':'Advanced query',a094e5b7699ea4b61094cc4120170423:'Data source',eeb6908870e058bc23d52c1e405a054e:'Previous step','38ce27d84639f3a6e07c00b3b4995c0e':'Next step','392342f7750a565f9a79c678c6b12421':'<Hidden state>','8e44aba21d01c1e08cc79f4ebaf0b3f2':'The layout container component does not support dragging and inserting child elements.','52e6abbe5c11e7cbf14788c1540f8bf2':'Copied','372ea9fd27fb7cfacfe1b4ca3046f8d0':'Configuration Item','2a6287664de5ab46c65220c7182878ff':'Cut',db805d4e361ac2d3fc6047eaea1a7c69:'Free container','969e9e56b3812abffa3994f35ea31835':'Adsorption vessel','5b804b05e14aaacc75033a4f77fc2844':'Source code','69a53230577258b6d97ee932befcc168':'<Column>:',cc6aeb073ebc3cb29734a49164f8964c:'Page variables',b71e8739cb9bcba8057a8fa8b59512da:'<Column>','34d240d1ded259c32f7fee21e99c5671':'Preview/Edit','6722089d251c1e4aabe9d58c26a2208a':'Turn preview mode on/off','107542a61cdccbb2981ad0c8bafc3440':'Replace component','813a5158d9f7171d20e7df340c5b48f9':'Component Context',d2655fdad2c9f8b6f6d7050d65226428:'Exception registering plugin \'{{@1}}\', there is already a plugin with the same name:',e9d4c83c9cdc23c65d11f74866636661:'Configuration panel loading','5ae147607b7896f8fd827337027607a9':'{{@1}} (Drawer type pop-up window)','7336083e6c61fe75fb5ec3f5ef101ac7':'Drawer pop-up window',e5fd721b2921aa63bb7574c6bbead312:'{{@1}} (Confirmation dialog box)',fa6b01f51cc2b8e16bfbb914b6c08ace:'Confirmation dialog box','05e70c7ef060f6c3ddcb4220702cde0f':'{{@1}} (pop up)','6cff4b6d794cc17f5d24dbe0d21e5732':'pop-up notification',c65e6ddd7b48846aa1e5224d4e5743c1:'View structure','67bcc69dd0a75d50c5cbb7f107ee9f63':'Component Outline','80e73cda4bd12532252652b4e19bb39b':'Popup Outline','21efd88b67a39834582ad99aabb9dc60':'There is currently no data available','451d71974652fdd1840a73c980f80fe8':'Skip Wizard',bc63dada3cdf28357dd4fe56ff5c567f:'Current layer {{@1}}','0383d6f467ed0dd89860a7b8cc793ce9':'Upper {{@1}} layer {{@2}}',b818d2fd22f70de2d912f19048e2cde2:'Intercepted {{@1}} rendering error',e9a11b908a9b4f3d9dc947d9a64c0dab:'A rendering error occurred. Please refer to the console output for detailed error information.'}),D('zh-CN',{'54ea89b497ec3bb319c68844dfa3687f':'接口','51e213e66b37d716a35baebc9193035c':'用来保存数据, 表单提交后将数据传入此接口。 <br/>\n 接口响应体要求(如果data中有数据,该数据将被合并到表单上下文中):<br/>\n {{@1}}\n}, null, \'<br/>\')}','388e0ff896ea4f23e71d36c06443f157':'接口响应体要求:<br/>\n {{@1}},\n page: 0,\n total: 0\n}, null, \'<br/>\')}',b4bc91701b86fe8543d649e97daea602:'初始化接口',f8747759c73697367bc8a570977c4a62:'接口响应体要求:<br/>\n {{@1}}\n}, null, \'<br/>\')}',d2b46e7989e18239d7036affd4d521db:'{{@1}}字段','9caecd931b956381e0763d05aa42835c':'字段','47cd88592f6ef2b258f02c0690d267ed':'隐藏,默认选中','32c65d8d7431e76029678ec7bb73a5ab':'标题','020586d0c69f8211840ddf9ee9bbf6ab':'绑定字段','226b0912184333c81babf2f1894ec0c1':'类型','97d07614380da93d257f9fbf81aa56fb':'文本','20def7942674282277c3714ed7ea6ce0':'图片','4ff1e74e43a3586339251494117185ad':'日期',c7bff79d059a0b7ff9b02441959d8be2:'进度','3fea7ca76cdece641436d7ab0d02ab1b':'状态','9da188491dd34c4382a5b9f006194e41':'映射',b3e55578af5dd473bab62641bb2f5f8e:'输入类型','9b6425cd2d496c9cb5a6c6b8ff125d1b':'输入框','15d169d28cd48c97fe751e4cc92ca926':'多行文本','9597dcaf432ceba92a160d61cb1ef65f':'数字输入','9913107b19cb6012250134ff91377430':'单选框','454e60f5759903d7d3dba58e3f9bd590':'勾选框',db98f889ce6bc235e66bd4b2a788d137:'复选框','006ded9fa277cf030592021f595a07d5':'下拉框',a6beb974cc0b50eebd18120b8110a88b:'开关',b339aa87104709397ba68e7ebbc6e5ba:'表格','481e034e6026969aae4ce7ce7c8a7b6f':'文件上传','6bfb9bb2218ff32b6139e98bc93707c0':'图片上传','24b6d4c0892a8f3ee2a982e3ab0afe38':'富文本编辑器','4484fa04e7b71db4c8293e5bcb53eca4':'添加字段','4cc6a76c146c0360a41ceaf5e212c891':'基于接口自动生成字段',a9fea442707e26dee478b34a2f2ce263:'请先填写接口','91aa2166ee4811414381c8d94e6567e6':'API返回格式不正确,请查看接口响应格式要求','3712972d84adf48acbd6ad24b4d75ad0':'列表','66ab5e9f24c8f46012a25c89919fb191':'新增',f26225bde6a250894a04db4c53ea03d0:'详情','95b351c86267f3aedf89520959bce689':'编辑','2f4aaddde33c9b93c36fd2503f3d122b':'删除',e73cefac9d030927da1618c7b15c98c9:'批量编辑','7fb62b30119c3797a843a48368463314':'批量删除','8d9a071ee2ef45e045968e117a205c07':'导入','55405ea6ff6fd823ffab7e6b10ddfa95':'导出',c26996a6506adf397f0668d376d0b40b:'简单查询','6ff4bf3d567e977aa4c90c27dff1e6db':'模糊查询','9c4666fd08c2738eb9611a3721cb5f0f':'高级查询',a094e5b7699ea4b61094cc4120170423:'数据来源','4e7f76261f8c4c6d78998f85fc1f4c6e':'外边距','16a20243f9b741c08216dc9548de2968':'整体','23ecf42cada8bf2715792d718544d107':'极小','391b8fa9c747a1799353ab856e666ad5':'小',fd6e80f1e0199d6ecc3ee81ae04aa9ef:'正常',aed1dfbc31703955e64806b799b67645:'中',ab18e30c0dc4093ceeda8961fac3d1f4:'大','461d364c67ec6a45e011ed13f2f7154f':'上边距','31e3752986d64c8b36897c8641c8628d':'右边距',eabe91d9426b6446f707cea3e7ab2418:'下边距','2e46d251ee6188bb1b3ff20656276572':'左边距','3dc4038d0f0a2d2b3c2b2e29a5ec6dde':'置无',a8b0c20416853bda54120bf19477ad11:'全部',af767b7e4ae069d54f9ea839858d4c6d:'上','4d9c32c23df5d234e629c922c58d8e12':'右','3850a186c3235bc646d4c2f79cebac36':'下',d2aff1417831aa621c16cd5b95306b4b:'左','841d77223f0ec8cd0b530ed8e0775b20':'内边距','961534b4ea37e4e88aada736b299d063':'边框',d4d2a66820d30e07b44c850eb3f116c0:'位置','58f966670529f4753fb3c5a0647606be':'大小','6b36c6f7ec834692ec6c8e3816349fdd':'颜色',fbae87bcc352f6933541fb77a07418ed:'主色',d8c7e04c8e2be23dd3b81a31db6e04f1:'信息','900c70fa5f7dbc014e6f762d5e0e885c':'警告','540f84ddc0883866b229f71c2844199a':'危险','330363dfc524cff2488f2ebde0500896':'成功','2fc96b2704b05d6a9f299c442573ee77':'白色',adb7e5312abdb9a44297e48d63815fa3:'暗色','48d0a09bdd5fe7e89f0a445b0ffdf14f':'浅色','0d98c74797e49d00bcc4c17c9d557a2b':'其他','0103eb2d3dca70270d1a74e9ec987ac9':'圆角','8456bc40d48da5af833f1c63385e9879':'字体',b3b2682579133673d3fe08c156d565dc:'细','56dce5d1cbb97439d291c458e50107e0':'粗','49a79f4047b81186c069ed1c9c151c66':'淡色','8e1b944f4389bdaab6f11d5bc83190c8':'背景',c28479019e24e0e4745f4948e9e97ee7:'宽度',f72ce9ad683cc82e0eab557ffc9c67a0:'特小',b95c462d7697958c25861193fc89ae07:'加大','3386da5f56fac758ed0f18e024ecb943':'特大',ffaa96ef7232cb6d8ee4d7e673dbf4ac:'占满','47eac1ac32a8aa9081dffbdc4d374318':'请输入 css 类名','939d5345ad4345dbaabe14798f6ac0f1':'提交','55c56d01a7747ffe0346d42145b62d97':'[amis-editor]响应动态添加插件事件:',d6f73c6f3b92be5a64f7ea0163501284:'区域节点不允许剪切。','4fda4f585214d469c04466e2fc98b796':'根节点不允许剪切。','657bbe06d3922b23552817df7fa8268e':'当前元素不允许剪切。','416445a316595bdeb44b661c7de875a8':'当前元素不能向上移动','6ac88d87b2fd118ba7beab8c17880470':'当前元素不能向下移动',fdb3cba60407b2f1aea0230cca644573:'区域节点不可以直接删除。','8a4b4e2e3b0382007e0c69ed1fe6fe71':'根节点不允许删除。','22f031f3de2e55c430a818d8c588f7a1':'当前元素不允许删除。','3b6d5995e9f2ecd3df059b3f1bea201e':'调用错误,或者存在跨域。','09f33be5ec04eb48b3102e4e31af5b38':'调用错误','283c2a52955ad87574fd6c0cc932c443':'只能在 Iframe 里面调用',a71002967924a83e32b38a80705290fb:'系统错误','058ebdf2884474ebff2977ba2f0e275e':'系统消息','88f000a0fdc38ce3808cef072b00893c':'渲染中...','279321f97f11da7bc90facca156b3444':'代码有误,错误的地方是\\n {{@1}}','7e4b38ba0ab9cbfcabd9dd859e36b601':'当前有部分已更改数据因为格式不正确尚未保存,您确认要丢弃这部分更改吗?',af86ad9dd8a221f931dcdc5a63382b6f:'查看更改','43d586cd6cf1a512c0bcb85ed9efde51':'请确认',bb79667f37035e9562ec6bcffd6cf8ef:'组件','5cb297585d4c81bb8fdbd31210a30d6f':'系统组件','6fce1c9aa3654ae2f0eedcc068a7e189':'自定义组件','06e004ef21414c06d3e4ff2cefaf6a04':'代码','7f7c624a843b0d539a4ea59a696702f9':'批量操作',b80ed82d124c6fd9242dcacdda2a2f8b:'更改组件类型','41150516bf0d90646edc5239593366e9':'选中组件插入到',d87481b371771b4f150da76e311bbbef:'输入关键字可过滤组件',becdc848350872592201e31bab03892a:'无法预览','751dfe6f476903c21381c9acf88332e2':'没有可用组件,也许你该切换容器试试。',e22c9a05b424b761efce11f17726fdd7:'替换','9bdb07e72d3a9a6084201a7398523f5a':'插入','625fb26b4b3340f7872b411f401e754c':'取消','95509c09bdef4bb7842a9b957ab1f971':'关闭悬浮模式','426480bb614633c8c3ba8faa0338b72f':'开启悬浮模式',fbf7967f9baf6a22bd6ca7f4e6390bf9:'{{@1}}-[公共配置]','93383ef1ab4a433df97a56a73e571b9f':'大纲','962d43ff8d39c381d8e2c73838412111':'查询页面元素','0c95d1856ffdeeade7cebe0ef928f361':'将目标拖入导航中的节点可以切换容器',c482df2a3ac8e014febd8a5fc9cadaea:'加载中,请稍等...',c44c6c179c44e794b103053886847dc4:'没有预览图',e4cefe7df36e92da1d7e875b92655507:'点击展开','7ae451de83aa6f5f140e941904377391':'点击折叠','84c8f0087acfc9b9862371d0bd59b830':'点击添加「{{@1}}」',f3430f4fdd8b9643daa74f4a5716dd15:'&nbsp;详情&nbsp;',b797a8992ef41320919e45a069f2b459:'没有找到可用组件,您可以换个关键字继续查找。','0bd36c8db19e3a93506f39ebc8ff0ab9':'当表单、列表等组件有名字时会出现在这里方便选择',bb28ec819520ced0ffb4c3da01f112e2:'点击清空当前区域',eeb6908870e058bc23d52c1e405a054e:'上一步','38ce27d84639f3a6e07c00b3b4995c0e':'下一步',e83a256e4f5bb4ff8b3d804b5473217a:'确认','22c799040acdb2601b437ed5449de076':'容器',bd9fcf46b4e5993f97fe04ee9ebcd7ed:'撤销',c3c873d33f1c6482c79b0ffd862786cd:'重做',e9509c688a0df6b088503d21569b6e8f:'类型错误,无法渲染','2168c5735883bd040eaf09909d0911b8':'输入关键字查询组件',e9c38f88375807704270aa3572454976:'搜索历史','288f0c404c4e546aa3683ff5054e85e2':'清空','4b9bc9abf2a2beb3772d903a3d01d1de':'点击删除这条搜索记录','9d3128a1675de32cdd290b31140a7290':'搜索结果为空,您可以换个关键字继续查找。',accb901a02b1415b40d95cdd31b8da1d:'组件分类','79d3abe929f67f0644a78bf32adb3a89':'复制',b7d817611230d382f6ef92b41848a342:'复制当前选中元素',eafbece1016a6af76cce466e55ad9f00:'粘贴',e0b9bb8e41eccd3ce6b282664643d7f8:'将复制的元素插入到当前选中节点','43fc77886b7fbcd658f0ccdba36bd5a0':'剪切',a6be4ad12e9612811963c44466af3218:'剪切当前选中元素','58887132871b71b015c3a391e7755815':'恢复上一次撤销的操作',be5fbbe34ce9979bfb6576d9eddc5612:'保存','1f81fd4598e9151538f29c41b8aa0020':'保存当前所有操作','645dbc5504e722a30896486085a06b32':'预览','5bc425ac8b75c571093a63eb6073c354':'开启预览模式','426cd14ebd62a4922186527d07ba37f3':'删除当前节点','499e58e764420aeed2d1476a56d8fa34':'向上移动',d040485f0e3887f0b297f8f772db03e4:'向上移动当前节点','08ad565f066d30572d1f8e2ee17cbe12':'向下移动','6348dc0e83d6ab391a8816f67d0e5ceb':'向下移动当前节点',fbec96e028142496df88ed2c63b44512:'点击查看当前可用快捷键','9c3f1278ffa822835bb3a677f02bca27':'当前可用快捷键','4e98a5dcd3defffb23629fce3add04f6':'暂无快捷键','186733ed7ec817040b8f9cbc610ba49a':'程序错误',e777eb796f8a02e97a891fde43d10ce4:'{{@1}}变量','5d665bc55779aafdefcc4050e3a8429e':'{{@1}}({{@2}})渲染发生错误:',a30dd4945df5b44b264fa3be6ee9682e:'当前渲染器信息:','63f94190d2d4ea22263e6e9f07c96558':'错误对象:',f66335b5bff0e26fdff2a3303e0f9bb0:'错误信息:','966e23b5c1efe8e18fc4f0c326d47314':')渲染发生错误,详细错误信息请查看控制台输出。','245897371cda2055f5c17c6cf298ed48':'温馨提示:预览模式下禁止跳转',e1b7255934e3189b1f5d440fc1aa0230:'注册插件异常,已存在同名插件:','979a50681e278dcc0be18f68459e8217':'系统变量','75c142934800d6ee31fcf3fdff9e5d53':'[amis-editor]当前已有{{@1}}插件','0e24e1bbc19612a350f81296d9fb7802':'请先选择一个元素作为插入的位置。',bd690facb536d759814ee64f2760fecb:'当前节点不允许追加新组件。','02f180cd26ff0951ddfda490080ee5ea':'配置项已复制','1ff035555ac8a68dc5b0ea2d0af55f00':'剪切板内容为空','6cb01692eea2fa7066d20fe2b6ccaea3':'假数据','7f2f0461a58c43667d7245ce92bb2e77':'按住拖动调整位置','78c1c38b91c672da1113fa2564c14ea6':'向前插入组件','87f48bbadfbef5ef4554e06b7e141d37':'向后插入组件','0ec9eaf9c3525eb110db58aae5912210':'更多','417db09508befe7dbe9f84a517a6edec':'重复一份','99b81127ef28368151621cdfccce69f8':'取消多选','205f45ee17394bd5668412780eaa55e2':'插入组件','4c725f0159023c485ead728680e277ba':'选中{{@1}}','7ad78e0991f34ff3a345c59a2fc31572':'选中层级',aafda9e8f6b7b613680677c513edb7a6:'取消选中',b58d101f52531c845f15db63d7212115:'复制配置','74e2bc6615b7dbbb11fd5e1e212263ae':'剪切配置',e2f401af580d1354ae00ec4ca19e2e24:'粘贴配置','21462ae22216eec41dc688cc4a8ae64b':'向前移动',ed2bc13d8bbd99e16e017dd5f5393393:'向后移动','9e54f3e4ee3330299c5fdc910c2e8d3c':'撤销(Undo)',ae8e86e426c2ba00da274b66dc372a8b:'重做(Redo)','2b6bc0f293f5ca01b006206c2535ccbc':'操作',aa920263020f14211a44ea172efc7253:'上下文数据','48ac479789304b37afa2f1b06642f4da':'当前','9bc16c658ab8a8c4eddc5e24d85bef20':'上层','004d4be2ba8e6b8eed9333d15bc80a88':'上{{@1}}层',e366ccf1556c0672dcecba135ed5472e:'设置','0cbec43d00e491a663ff0525ffe31868':'快速构建「{{@1}}」','1dd554cdfc1ddf7dce13453805523c16':'变更',a82240ce09faf0b972a8aa5c9e93d209:'插入组件面板',eadc8c8d4a8776893672330598babca0:'位置错误,目标位置没有找到',f3c057f37fb9a4e7dd44b04919c12578:'请从左侧组件面板中点击添加新的元素。',f942c7a6a35c4eb1381d2966462d0489:'<div class="wrapper-sm b-a b-light m-b-sm">拖入占位</div>','392342f7750a565f9a79c678c6b12421':'<隐藏状态>','8e44aba21d01c1e08cc79f4ebaf0b3f2':'布局容器组件不支持拖拽插入子元素。','52e6abbe5c11e7cbf14788c1540f8bf2':'已复制','372ea9fd27fb7cfacfe1b4ca3046f8d0':'配置项','2a6287664de5ab46c65220c7182878ff':'已剪切',db805d4e361ac2d3fc6047eaea1a7c69:'自由容器','969e9e56b3812abffa3994f35ea31835':'吸附容器','5b804b05e14aaacc75033a4f77fc2844':'源码','69a53230577258b6d97ee932befcc168':'<列>:',cc6aeb073ebc3cb29734a49164f8964c:'页面变量',b71e8739cb9bcba8057a8fa8b59512da:'<列>','34d240d1ded259c32f7fee21e99c5671':'预览/编辑','6722089d251c1e4aabe9d58c26a2208a':'开启/关闭预览模式','107542a61cdccbb2981ad0c8bafc3440':'替换组件','813a5158d9f7171d20e7df340c5b48f9':'组件上下文',d2655fdad2c9f8b6f6d7050d65226428:'注册插件「{{@1}}」异常,已存在同名插件:',e9d4c83c9cdc23c65d11f74866636661:'配置面板加载中','5ae147607b7896f8fd827337027607a9':'{{@1}}(抽屉式弹窗)','7336083e6c61fe75fb5ec3f5ef101ac7':'抽屉式弹窗',e5fd721b2921aa63bb7574c6bbead312:'{{@1}}(确认对话框)',fa6b01f51cc2b8e16bfbb914b6c08ace:'确认对话框','05e70c7ef060f6c3ddcb4220702cde0f':'{{@1}}(弹窗)','6cff4b6d794cc17f5d24dbe0d21e5732':'弹窗',c65e6ddd7b48846aa1e5224d4e5743c1:'视图结构','67bcc69dd0a75d50c5cbb7f107ee9f63':'组件大纲','80e73cda4bd12532252652b4e19bb39b':'弹窗大纲','21efd88b67a39834582ad99aabb9dc60':'暂无数据','451d71974652fdd1840a73c980f80fe8':'跳过向导',bc63dada3cdf28357dd4fe56ff5c567f:'当前层{{@1}}','0383d6f467ed0dd89860a7b8cc793ce9':'上{{@1}}层{{@2}}',b818d2fd22f70de2d912f19048e2cde2:'拦截到{{@1}}渲染错误',e9a11b908a9b4f3d9dc947d9a64c0dab:'渲染发生错误,详细错误信息请查看控制台输出。'});var rt=e.guid,at=e.omitControls,ot=e.isObjectShallowModified,it=e.cloneObject,ct=e.anyChanged,st=e.noop,dt=e.makeHorizontalDeeper,lt=e.findIndex,ut=e.isEmpty,pt=e.eachTree,ft=e.createObject,ht={},mt={};function vt(e){return e}function gt(e){return rn(e)?(Object.keys(e).forEach((function(t){void 0===e[t]&&delete e[t]})),e):e}var bt=[];function yt(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n={}),Array.isArray(e)){var r=!1,a=e.map((function(e){var a=yt(e,t,n);return a!==e&&(r=!0),a}));return r?a:e}if(!rn(e)||e.constructor!==Object)return'string'==typeof e&&Object.keys(n).forEach((function(t){var r=n[t];e=e.replaceAll(t,r)})),e;var o={},i=!1;if(e.$$id||(i=!0,o.$$id=rt()),bt.length>2&&e[bt[0]]&&e[bt[1]]&&e[bt[2]]&&(i=!0,bt.forEach((function(e){o[e]=void 0}))),e.type&&(e=En(e=yn(e)),t&&(i=!0,(!e.__origin||'scaffold'!==e.__origin)&&'string'==typeof e.id&&e.id.startsWith('u:')))){var c=on();e.id&&(n[e.id]=c),o.id=c}return Object.keys(e).forEach((function(r){var a=e[r],c=yt(a,t,n);c!==a&&(i=!0,o[r]=c)})),i&&(e=gt($($({},e),o))),e}function Et(e,t){if(Array.isArray(e)){var n=!1,r=e.map((function(e){var r=Et(e,t);return r!==e&&(n=!0),r}));return n?r:e}if(!Ee(e))return e;var a=!1,o={};return e.$$id&&(a=!0,o.$$id=void 0),Object.keys(e).forEach((function(n){var r=e[n];if('function'==typeof t?t(n,r):!1!==t&&'__'===n.substring(0,2))return o[n]=void 0,void(a=!0);var i=Et(r,t);i!==r&&(a=!0,o[n]=i)})),a&&(e=gt($($({},e),o))),e}function wt(e,t,n){var r=e;return n&&n.push(e),t.forEach((function(e){r=r[e],n&&n.push(r)})),r}function Ct(e,t,n){void 0===n&&(n='$$id');for(var r=[],a=!1,o=[{path:'.',data:e}],i=function(){var e=o.shift(),i=e.data,c=e.path;if(i[n]===t)return a=!0,r=c.split('.').filter((function(e){return e})),'break';Object.keys(i).forEach((function(e){var t=i[e];Array.isArray(t)?t.forEach((function(t,n){rn(t)&&o.push({data:t,path:''.concat(c,'.').concat(e,'.').concat(n)})})):rn(t)&&o.push({data:t,path:''.concat(c,'.').concat(e)})}))};o.length;){if('break'===i())break}return a?r:null}function St(e,t,n){var r=Ct(e,t,n);return null===r?null:wt(e,r)}function It(e,t,n){void 0===n&&(n=!1);var r=Ct(e,t);if(null===r||!r.length)return null;var a=e,o=[a];for(r.pop(),r.forEach((function(e){a=a[e],o.unshift(a)}));n&&Array.isArray(o[0]);)o.shift();return o[0]}function xt(e,t,n,r){void 0===r&&(r=!1);var a=Ct(e,t);if(null===a)return e;var o=[],i=wt(e,a,o);if(Array.isArray(n)&&o[o.length-2]&&Array.isArray(o[o.length-2])){var c=o[o.length-2].indexOf(o[o.length-1]);o[o.length-2]=o[o.length-2].concat(),o[o.length-2].splice.apply(o[o.length-2],[c,1].concat(n)),o.pop()}else o[o.length-1]=i=$($($({},r?null:i),n),{$$id:t});for(;o.length>1;){var s=o.pop();Array.isArray(o[o.length-1])?o[o.length-1]=o[o.length-1].concat():o[o.length-1]=$({},o[o.length-1]),o[o.length-1][a[o.length-1]]=s}return o[0]}function Rt(e,t,n,r){var a=Ct(e,t);if(null===a)return e;Array.isArray(n)&&n.push.apply(n,a);var o=a.pop(),i=[],c=wt(e,a,i);for(Array.isArray(c)?(i[i.length-1]=c=c.concat(),c.splice(o,1),r&&!c.length&&(i[i.length-1]=void 0)):(i[i.length-1]=c=$({},c),delete c[o]);i.length>1;){var s=i.pop();Array.isArray(i[i.length-1])?i[i.length-1]=i[i.length-1].concat():i[i.length-1]=$({},i[i.length-1]),void 0===s?delete i[i.length-1][a[i.length-1]]:i[i.length-1][a[i.length-1]]=s}return i[0]}function Nt(e,t){if(!rn(e)||!rn(t))return t;if(!ot(e,t))return e;var n={};return e.$$id&&(n.$$id=e.$$id),Object.keys(t).forEach((function(r){Array.isArray(t[r])&&Array.isArray(e[r])&&t[r]!==e[r]?n[r]=t[r].map((function(t,n){return e[r][n]?Nt(e[r][n],t):t})):void 0===e[r]?n[r]=t[r]:n[r]=Nt(e[r],t[r])})),n}function Ot(e,t,n){var r=Ct(e,t);if(null===r)return e;var a=parseInt(r.pop(),10),o=[],i=wt(e,r,o);if(!Array.isArray(i))return e;for(o[o.length-1]=i=i.concat(),n(i,i[a],a);o.length>1;){var c=o.pop();Array.isArray(o[o.length-1])?o[o.length-1]=o[o.length-1].concat():o[o.length-1]=$({},o[o.length-1]),o[o.length-1][r[o.length-1]]=c}return o[0]}function kt(e,t){var n=It(e,t);return!(!n||!Array.isArray(n))&&lt(n,(function(e){return e.$$id===t}))>0}function At(e,t){return Ot(e,t,(function(e,t,n){0!==n&&(e.splice(n,1),e.splice(n-1,0,t))}))}function Mt(e,t){var n=It(e,t);if(!n||!Array.isArray(n))return!1;var r=lt(n,(function(e){return e.$$id===t}));return~r&&r<n.length-1}function Pt(e,t){return Ot(e,t,(function(e,t,n){n!==e.length-1&&(e.splice(n,1),e.splice(n+1,0,t))}))}function Ft(e,t,n){return void 0===n&&(n={}),Ot(e,t,(function(e,t,r){var a=yt(Et(t));e.splice(r+1,0,Dt(a,n))}))}function Dt(e,t){void 0===t&&(t={});var n={};Qt(e,(function(e,r,a){var o='string'==typeof e&&0===e.indexOf('u:');if(('id'===r||'componentId'===r)&&o&&a)if(t[e])a[r]=t[e];else if(n[e])a[r]=n[e],t[e]=n[e];else{var i=on();a[r]=i,'id'===r?t[e]=i:'componentId'===r&&(n[e]=i)}return e}));var r={},a=!1;return Object.keys(n).forEach((function(e){t[e]||(r[n[e]]=e,a=!0)})),a&&Qt(e,(function(e,t,n){var a='string'==typeof e&&0===e.indexOf('u:');return'componentId'===t&&a&&r[e]&&(n.componentId=r[e]),e})),e}function Bt(e){Object.isFrozen(e)||(Array.isArray(e)&&e.forEach((function(e){return Bt(e)})),rn(e)&&!ge(e)&&(!e.type||e.__origin&&'scaffold'===e.__origin||(e.id=on()),Object.keys(e).forEach((function(t){var n=e[t];(rn(n)||Array.isArray(n))&&Bt(n)}))))}function $t(e){var t=document.createElement('div');return t.innerHTML=e.trim(),t.firstChild}function Tt(e,t,n){return void 0===n&&(n={}),(null==e?void 0:e.$$commonSchema)===t?n[t]=e:Ee(e)?Object.keys(e).forEach((function(r){Tt(e[r],t,n)})):Array.isArray(e)&&e.map((function(e){return Tt(e,t,n)})),n}function jt(e,t){if(Array.isArray(e))return e.map((function(e){return jt(e,t)}));if(Ee(e)){var n={},r=!1;return Object.keys(e).forEach((function(a){var o=e[a],i=jt(o,t);if(e.$$commonSchema?n[a]&&(n[a]=i):n[a]=i,i!==o&&(r=!0),'$$commonSchema'!==a||t){if('$$commonSchema'===a&&t){var c=Tt(t,o);c[o]&&(e=n=$({},c[o]))}}else e=n={$$commonSchema:o}})),r?n:e}return e}function Lt(e){if(Array.isArray(e))return e.map((function(e){return Lt(e)}));if(Ee(e)){var t={},n=!1;return Object.keys(e).forEach((function(r){var a=e[r];~['visible','visibleOn','hidden','hiddenOn','toggled'].indexOf(r)&&(r='$$'.concat(r),n=!0);var o=Lt(a);t[r]=o,o!==a&&(n=!0)})),n?t:e}return e}function Ht(e){return function(t){return!~e.indexOf(t)}}function zt(e,t){var n=t?'function'==typeof t?t:function(e){return e[t]}:function(e){return e};return function(t,r){var a=e.indexOf(n(t)),o=e.indexOf(n(r));return(a=~a?a:999999)>(o=~o?o:999999)?1:a===o?0:-1}}function Kt(e,t){var n=localStorage.getItem('amis-editor-'.concat(e));return n&&(n=JSON.parse(n)),n||t}function _t(e,t){t=JSON.stringify(t),localStorage.setItem('amis-editor-'.concat(e),t)}function Vt(e){return e.replace(/\-[a-z0-9]+$/g,'')}var Ut=e.autobind;function Wt(e){for(;e&&(e.classList.add('ae-is-draging'),!(null==(e=e.parentElement)?void 0:e.hasAttribute('data-region'))););}function Zt(e){for(;e&&(e.classList.remove('ae-is-draging'),!(null==(e=e.parentElement)?void 0:e.hasAttribute('data-region'))););}function qt(e){return e.replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}))}var Yt=function(e,t){var n;return be(e,(function(e){we(e,n)||(t(e,n),n=e)}))};function Xt(e,t){void 0===t&&(t=1);for(var n=[];t-- >0;)n.push(e);return n}function Jt(e,t,n){return ye.diff(e,t,n)}function Gt(e,t){return t?t.reduce((function(t,n){return function(e,t,n){if(e&&Array.isArray(null==n?void 0:n.path)){e=e===t?$({},e):e;var r=n.path.concat();'A'!==n.kind&&r.pop(),r.reduce((function(e,t){var n=e.target,r=e.source[t],a=n[t];return r===a&&(a=Array.isArray(a)?a.concat():$({},a),n[t]=a),{source:r,target:a}}),{target:e,source:t}),ye.applyChange(e,t,n)}return e}(t,e,n)}),e):e}function Qt(e,t,n){Object.keys(e).forEach((function(r){var a=e[r];(null==n?void 0:n(a,r))||(Ee(a)||Array.isArray(a)?Qt(a,t,n):t(a,r,e))}))}var en=function(e){return Ce(e)||!isNaN(parseFloat(String(e).toString()))},tn=function(e,t){return void 0===t&&(t='px'),e?en(e)?''.concat(parseFloat(String(e).toString())).concat(t):e:void 0};function nn(e){return'String'===Object.prototype.toString.call(e).slice(8,-1)}function rn(e){return'Object'===Object.prototype.toString.call(e).slice(8,-1)}function an(e,t,n){void 0===e&&(e={}),void 0===n&&(n=3);var r={type:'object',properties:{}};return ge(e)||n<=0||Object.keys(e).forEach((function(a){var o=e[a],i=Array.isArray(o)?'array':typeof o;~['string','number'].indexOf(i)?r.properties[a]={type:i,title:(null==t?void 0:t(i,a))||a}:~['object','array'].indexOf(i)&&o?r.properties[a]=$({type:i,title:(null==t?void 0:t(i,a))||a},'object'===i?an(o,t,n-1):'object'==typeof o[0]?{items:an(o[0],t,n-1)}:{}):r.properties[a]={type:'',title:(null==t?void 0:t(i,a))||a}})),r}function on(){return'u:'+rt()}function cn(e){return e.pluginIcon&&t(e.pluginIcon)}function sn(e){return!(!e||'flex'!==e.type)}function dn(e,t){if('auto'===e)return'auto';var n=parseInt(e),r=t;Ce(t)||(r=parseInt(t));var a=e.substring(n.toString().length);return a||(a='px'),''.concat(n+r).concat(a)}function ln(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,'')}function un(e){return['divider','crud2','crud','list','picker','table','table-view','grid','cards','card','form','progress','diff-editor','editor','input-range','flex'].includes(e)}function pn(){var e,t;return null!==(t=null===(e=null===window||void 0===window?void 0:window.editorStore)||void 0===e?void 0:e.i18nEnabled)&&void 0!==t&&t}function fn(e,t,r){var a;return t=t||(null===(a=null===window||void 0===window?void 0:window.editorStore)||void 0===a?void 0:a.appCorpusData),Ee(t)?n(e,(function(e){return t[e]||e}),r):e}function hn(e){var t,n;return nn(e)&&(null===(n=null===(t=null===window||void 0===window?void 0:window.editorStore)||void 0===t?void 0:t.appCorpusData)||void 0===n?void 0:n[e])||e}function mn(e){var t,n,r,a;return!!e&&('page'===e.rendererName&&('aside'===e.name||'body'===e.name)||(!!(null===(n=null===(t=e.node)||void 0===t?void 0:t.schema)||void 0===n?void 0:n.isFreeContainer)||!(!(null===(r=e.$$editor)||void 0===r?void 0:r.needFillPlaceholder)&&!(null===(a=e.regionConfig)||void 0===a?void 0:a.needFillPlaceholder))))}function vn(e){mt=J(ht=e),bt=Object.keys(gn())}function gn(){return $({themeConfig:ht},mt)}var bn={'background-color':'background'};function yn(e){if(!(null==e?void 0:e.style)||ut(e.style)||!['tpl','page','container','chart','flex','grid'].includes(e.type))return e;var t=$({},e.style),n={},r={},a={},o={};if(Object.keys(t).forEach((function(e){['background','background-color','radius','boxShadow'].includes(e)?(n[(bn[e]||e)+':default']=t[e],delete t[e]):['color','fontSize','fontWeight','font-family','lineHeight'].includes(e)?(o[e]=t[e],delete t[e]):e.includes('border')?(r[e]=t[e],delete t[e]):(e.includes('padding')||e.includes('margin'))&&(a[e]=t[e],delete t[e])})),n=Object.assign(ut(n)?{}:n,ut(r)?{}:{'border:default':r},ut(a)?{}:{'padding-and-margin:default':a},ut(o)?{}:{'font:default':o}),ut(n))return e;var i={baseControlClassName:n};return e.themeCss?i.baseControlClassName=Ie(e.themeCss.baseControlClassName,n):i={baseControlClassName:n},$($({},e),{style:t,themeCss:i})}function En(e){if(!(null==e?void 0:e.type))return e;var t=$({},e);return Object.keys(t).forEach((function(e){(e.startsWith('.')||e.startsWith('#'))&&delete t[e],'editorState'===e&&delete t[e]})),t}function wn(e,t){var n,r,a,o,i,c,s,d,l;return T(this,void 0,void 0,(function(){var u,p,f,h,m,v,g;return j(this,(function(b){switch(b.label){case 0:return[4,null==t?void 0:t.getContextSchemas(e)];case 1:return b.sent(),[4,null===(n=null==t?void 0:t.dataSchema)||void 0===n?void 0:n.getDataPropsAsOptions()];case 2:return u=null!==(r=b.sent())&&void 0!==r?r:[],p=[],(null===(a=null==t?void 0:t.store)||void 0===a?void 0:a.isSubEditor)?(p=(null===(s=null===(c=null===(i=null===(o=t.config)||void 0===o?void 0:o.hostNode)||void 0===i?void 0:i.info)||void 0===c?void 0:c.getSubEditorVariable)||void 0===s?void 0:s.call(c,null===(d=t.config)||void 0===d?void 0:d.hostNode.schema))||[],[4,t.config.getHostNodeDataSchema()]):[3,4];case 3:f=b.sent(),(null==(h=((null==f?void 0:f.getDataPropsAsOptions())||[]).filter((function(e){return e.label===B('813a5158d9f7171d20e7df340c5b48f9')})).reduce((function(e,t){return e.push.apply(e,L([],H(t.children||[]),!1)),e}),[]))?void 0:h.length)&&(m=!1,u=u.map((function(e){return e.label!==B('813a5158d9f7171d20e7df340c5b48f9')||m||(m=!0,e.children=e.children.concat(h)),e})),m||(u=L([{label:B('813a5158d9f7171d20e7df340c5b48f9'),children:h}],H(u),!1))),b.label=4;case 4:return v=Sn(u),g=(null===(l=null==t?void 0:t.variableManager)||void 0===l?void 0:l.getVariableFormulaOptions())||[],[2,L(L(L([],H(p),!1),H(v),!1),H(g),!1).filter((function(e){var t;return null===(t=e.children)||void 0===t?void 0:t.length}))]}}))}))}function Cn(e){return T(this,void 0,void 0,(function(){var t,n,r,a,o,i,c,s;return j(this,(function(d){switch(d.label){case 0:return t=[],n=e.props,r=n.variables,a=n.requiredDataPropsVariables,r&&!a?[3,2]:(o=e.props.formProps||e.props,i=o.node,c=o.manager,[4,wn(i,c)]);case 1:s=d.sent(),Array.isArray(s)&&(e.isUnmount||(t=s)),d.label=2;case 2:return r&&(Array.isArray(r)?t=L(L([],H(r),!1),H(t),!1):'function'==typeof r?t=L(L([],H(r(e)),!1),H(t),!1):G(r)&&(t=L(L([],H(Q(e.props.variables,e.props.data,'| raw')),!1),H(t),!1))),e.appLocale&&e.appCorpusData?[2,fn(t,e.appCorpusData)]:[2,t]}}))}))}var Sn=function(e){var t=L([],H(e),!1),n=t.findIndex((function(e){return e.label===B('813a5158d9f7171d20e7df340c5b48f9')}));return~n&&t.splice(n,1,$($({},t[n]),{children:t[n].children.map((function(e,t){return $($({},e),{label:0===t?'当前层'.concat(e.label?'('+e.label+')':''):B('af767b7e4ae069d54f9ea839858d4c6d').concat(t,'层').concat(e.label?'('+e.label+')':'')})}))})),t},In=Se((function(e){var t=document.querySelector(e);t&&(t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():t.scrollIntoView())}),200);function xn(e,t,n,r){e=$($({},e),{definitions:$({},e.definitions)}),n&&Ee(n)&&(e=Nn(e,n,t));for(var a=1;e.definitions['modal-ref-'.concat(a)]||r&&!r('modal-ref-'.concat(a));)a++;return t=$($({type:'dialog',body:[{type:'tpl',tpl:'这是一个弹窗'}],title:'未命名弹窗'.concat(a)},t),{$$id:rt()}),e.definitions['modal-ref-'.concat(a)]=yt(t),[e,'modal-ref-'.concat(a)]}function Rn(e,t,n){void 0===t&&(t={});var r={definitions:t};return e.forEach((function(t,a){var o;n&&(n.$$ref?n.$$ref===t.$$ref:n.$$id===t.$$id)||!t.$$ref&&t.$$id&&(St(r.definitions,t.$$id)||n&&St(n,t.$$id))||(t.$$ref?r.definitions[t.$$ref]=yt(t):(o=H(xn(r,$($({},t),{$$originId:t.$$id}),void 0,(function(t){return!e.find((function(e){return e.$$ref&&e.$$ref===t}))})),1),r=o[0]))})),r.definitions}function Nn(e,t,n){var r=[];Qt(n,(function(e,t){'$ref'===t&&r.push(e)}));var a=e;return Object.keys(t).forEach((function(n){var o,i,c,s;a===e&&(a=$($({},a),{definitions:$({},a.definitions)}));var d=t[n],l=d.$$originId,u=z(d,['$$originId']);if(l){var p=It(a,l);if(r.includes(n)){if(a.$$id===l)return void(a=xt(a,l,yt(u),!0));if(!p)throw new Error('Can not find modal action.');var f='drawer'===u.type?'drawer':'dialog';(a=xt(a,p.$$id,$($({},p),((o={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:null!==(c=u.actionType)&&void 0!==c?c:f})[f]=yt({$ref:n}),o)),!0)).definitions[n]=yt(u)}else if(p){var h=p[f='drawer'===u.type?'drawer':'dialog']||{},m=Jt(h,u,(function(e,t){return'$$id'===t}));if(m){var v=Gt(h,m);delete v.$$originId,a=xt(a,p.$$id,$($({},p),((i={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:null!==(s=u.actionType)&&void 0!==s?s:f})[f]=v,i)),!0)}}}else r.includes(n)&&(a.definitions[n]=yt(u))})),a}var On=Object.freeze({__proto__:null,guid:rt,isObjectShallowModified:ot,anyChanged:ct,noop:st,makeHorizontalDeeper:dt,omitControls:at,isEmpty:ut,cloneObject:it,eachTree:pt,createObject:ft,get themeConfig(){return ht},get themeOptionsData(){return mt},__uri:vt,cleanUndefined:gt,JSONPipeIn:yt,JSONPipeOut:Et,JSONGetByPath:wt,JSONGetPathById:Ct,JSONGetById:St,JSONGetParentById:It,JSONUpdate:xt,JSONDelete:Rt,JSONMerge:Nt,JSONChangeInArray:Ot,JSONCanMoveUp:kt,JSONMoveUpById:At,JSONCanMoveDown:Mt,JSONMoveDownById:Pt,JSONDuplicate:Ft,reGenerateID:Dt,JsonGenerateID:Bt,createElementFromHTML:$t,deepFind:Tt,filterSchemaForConfig:jt,filterSchemaForEditor:Lt,blackList:Ht,sortByList:zt,persistGet:Kt,persistSet:_t,normalizeId:Vt,autobind:Ut,addDragingClass:Wt,removeDragingClass:Zt,camelize:qt,reactionWithOldValue:Yt,repeatArray:Xt,diff:Jt,patchDiff:Gt,JSONTraverse:Qt,isNumeric:en,string2CSSUnit:tn,isString:nn,isObject:rn,jsonToJsonSchema:an,generateNodeId:on,isHasPluginIcon:cn,isLayoutPlugin:sn,unitFormula:dn,stringRegExp:ln,needDefaultWidth:un,getI18nEnabled:pn,translateSchema:fn,appTranslate:hn,needFillPlaceholder:mn,setThemeConfig:vn,getThemeConfig:gn,style2ThemeCss:yn,clearDirtyCssKey:En,resolveVariablesFromScope:wn,getVariables:Cn,updateComponentContext:Sn,scrollToActive:In,addModal:xn,modalsToDefinitions:Rn,mergeDefinitions:Nn}),kn=xe((function(e){var t=e.className,n=e.store,a=e.id,o=e.title,i=e.children,c=e.node;e.toolbarContainer;var s=e.onSwitch,d=e.manager,l=Z.useCallback((function(e){return f(e,'horizontal')}),[]),u=Z.useCallback((function(e){return f(e,'vertical')}),[]),p=Z.useCallback((function(e){return f(e,'both')}),[]),f=Z.useCallback((function(e,t){var r,o,i;if((1===e.button&&null!==window.event||0===e.button)&&!e.defaultPrevented&&(e.preventDefault(),c)){var s=document.querySelector('[data-editor-id="'.concat(a,'"]'));if(s){d.disableHover=!0;var l=d['both'===t?'onSizeChangeStart':'vertical'===t?'onHeightChangeStart':'onWidthChangeStart'](e,{dom:s,node:c,store:n,resizer:'both'===t?b.current:'vertical'===t?v.current:h.current}),u=null===(r=l.data)||void 0===r?void 0:r.onMove,p=null===(o=l.data)||void 0===o?void 0:o.onEnd;if(u||p){null===(i=C.current)||void 0===i||i.setAttribute('data-resizing','');var f=function(e){e.preventDefault(),null==u||u(e)},m=function(e){var t;e.preventDefault(),d.disableHover=!1,null===(t=C.current)||void 0===t||t.removeAttribute('data-resizing'),window.removeEventListener('mousemove',f),window.removeEventListener('mouseup',m),document.body.style.cursor='default';var n=function(e){window.removeEventListener('click',n,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener('click',n,!0),setTimeout((function(){return window.removeEventListener('click',n,!0)}),350),null==p||p(e)};window.addEventListener('mousemove',f),window.addEventListener('mouseup',m),document.body.style.cursor='both'===t?'nwse-resize':'vertical'===t?'ns-resize':'ew-resize'}}}}),[]),h=Z.useRef(),m=Z.useCallback((function(e){var t;e?e.addEventListener('mousedown',l):null===(t=h.current)||void 0===t||t.removeEventListener('mousedown',l),h.current=e}),[]),v=Z.useRef(),g=Z.useCallback((function(e){var t;e?e.addEventListener('mousedown',u):null===(t=v.current)||void 0===t||t.removeEventListener('mousedown',u),v.current=e}),[]),b=Z.useRef(),y=Z.useCallback((function(e){var t;e?e.addEventListener('mousedown',p):null===(t=b.current)||void 0===t||t.removeEventListener('mousedown',p),b.current=e}),[]),E=Z.useCallback((function(){d.disableHover||n.setHoverId(a)}),[]),w=Z.useCallback((function(e){d.disableHover||d.startDrag(a,e)}),[]),C=Z.createRef(),S=n.sortedToolbars,I=n.sortedSecondaryToolbars,x=n.sortedSpecialToolbars,R=n.isActive(a),N=n.parentIsFreeContainer(),O=n.isHoved(a)||n.dropId===a||n.insertOrigId===a||N===a,k=n.draggableContainer(a),A=document.getElementById('aePreviewHighlightBox').offsetWidth;if(!ke(c))return Z.createElement('div',null);var M=A-c.x<176;return Z.createElement('div',{className:X('ae-Editor-hlbox',{shake:a===n.insertOrigId,selected:R||~n.selections.indexOf(a),hover:O,regionOn:c.childRegions.some((function(e){return n.isRegionHighlighted(e.id,e.region)})),isFreeContainerElem:!!N||k},t),'data-hlbox-id':a,style:{display:c.w&&c.h?'block':'none',top:c.y,left:c.x,width:c.w,height:c.h},ref:C,onMouseEnter:E,draggable:!!N||k,onDragStart:w},R?Z.createElement('div',{className:'ae-Editor-toolbarPopover '.concat(M?'is-right-elem':'')},Z.createElement('div',{className:'ae-Editor-nav'},c.host?Z.createElement('div',{className:'ae-Editor-tip parent',onClick:function(){return null==s?void 0:s(c.host.id)}},c.host.label):null,Z.createElement('div',{key:'tip',className:'ae-Editor-tip current'},o),c.firstChild?Z.createElement('div',{className:'ae-Editor-tip child',onClick:function(){return null==s?void 0:s(c.firstChild.id)}},c.firstChild.label):null),Z.createElement('div',{className:'ae-Editor-toolbar',key:'toolbar'},S.map((function(e){return Z.createElement('button',{key:e.id,type:'button',draggable:e.draggable,onDragStart:e.onDragStart,'data-id':e.id,'data-tooltip':e.tooltip||void 0,'data-position':e.placement||'top',onClick:e.onClick},e.iconSvg?Z.createElement(r,{className:'icon',icon:e.iconSvg}):~e.icon.indexOf('<')?Z.createElement('span',{dangerouslySetInnerHTML:{__html:e.icon}}):Z.createElement('i',{className:e.icon}))})))):null,R&&I.length?Z.createElement('div',{className:'ae-Editor-toolbar sencondary',key:'sencondary-toolbar'},I.map((function(e){return Z.createElement('button',{key:e.id,type:'button',className:e.className,'data-id':e.id,'data-tooltip':e.tooltip||void 0,'data-position':e.placement||'top',onClick:e.onClick},e.iconSvg?Z.createElement(r,{className:'icon',icon:e.iconSvg}):~e.icon.indexOf('<')?Z.createElement('span',{dangerouslySetInnerHTML:{__html:e.icon}}):Z.createElement('i',{className:e.icon}))}))):null,R&&x.length?Z.createElement('div',{className:'ae-Editor-toolbar special',key:'special-toolbar'},x.map((function(e){return Z.createElement('button',{key:e.id,type:'button',className:e.className,'data-id':e.id,'data-tooltip':e.tooltip||void 0,'data-position':e.placement||'top',onClick:e.onClick},e.iconSvg?Z.createElement(r,{className:'icon',icon:e.iconSvg}):~e.icon.indexOf('<')?Z.createElement('span',{dangerouslySetInnerHTML:{__html:e.icon}}):Z.createElement('i',{className:e.icon}))}))):null,i,c.widthMutable?Z.createElement(Z.Fragment,null,Z.createElement('span',{className:'ae-border-WResizer',ref:m}),Z.createElement('span',{className:'ae-WResizer',ref:m})):null,c.heightMutable?Z.createElement(Z.Fragment,null,Z.createElement('span',{className:'ae-border-HResizer',ref:g}),Z.createElement('span',{className:'ae-HResizer',ref:g})):null,c.widthMutable&&c.heightMutable?Z.createElement('span',{className:'ae-Resizer',ref:y}):null)})),An=xe((function(e){var t=e.manager,n=e.store,a=e.id,o=e.name,i=e.title,c=e.node,s=e.isOnlyChildRegion,d=Z.useCallback((function(){t.emptyRegion(a,o)}),[a,o,t]),l=n.isRegionHighlighted(a,o),u=n.isRegionHighlightHover(a,o),p=n.isRegionDragEnter(a,o),f=n.getNodeById(a),h=c.x-f.x,m=c.y-f.y;return Z.createElement('div',{'data-renderer':c.host.info.renderer.name,'data-region':o,className:X('ae-Editor-rhlbox',p?'is-dragenter':'',!s&&u?'region-hover':'',s||l?'is-highlight':'',h<87&&m<21&&c.x<190?'region-label-within':''),style:{width:c.w,height:c.h,borderWidth:''.concat(Math.max(0,m),'px ').concat(Math.max(0,f.w-h-c.w),'px ').concat(Math.max(0,f.h-m-c.h),'px ').concat(Math.max(0,h),'px')}},Z.createElement('div',{'data-node-id':a,'data-node-region':o,className:'region-tip '.concat(s?'is-only-child-region':'',' ignore-hover-elem')},i,Z.createElement('span',{className:'margin-space'},'|'),Z.createElement('button',{type:'button',className:'clear-icon-btn',title:'','data-tooltip':B('bb28ec819520ced0ffb4c3da01f112e2'),'data-position':'bottom',onClick:d},Z.createElement(r,{icon:'clear-btn'}))))})),Mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.render=function(){return Z.createElement('div',{className:'ae-ErrorRenderer'},B('e9509c688a0df6b088503d21569b6e8f'))},t}(Z.Component);var Pn=function(e){function t(t){var n=e.call(this,t)||this;return n.ref=Z.createRef(),n.scrollElem=null,n.state={visible:void 0!==t.visible&&t.visible},n}return K(t,e),t.prototype.componentDidMount=function(){this.bindScrollEvent()},t.prototype.componentWillUnmount=function(){this.scrollElem&&this.scrollElem.removeEventListener('scroll',this.handleScroll)},t.prototype.getDefaultTarget=function(){return this.ref.current&&this.ref.current.ownerDocument?this.ref.current.ownerDocument:window},t.prototype.handleScroll=function(e){var t=this.props.visibilityHeight||400,n=function(e,t){var n;if('undefined'==typeof window)return 0;var r,a=t?'scrollTop':'scrollLeft',o=0,i=null!=(r=e)&&r===r.window;return i?o=e[t?'pageYOffset':'pageXOffset']:e instanceof Document?o=e.documentElement[a]:e&&(o=e[a]),e&&!i&&'number'!=typeof o&&(o=null===(n=(e.ownerDocument||e).documentElement)||void 0===n?void 0:n[a]),o}(e.target,!0);this.setState({visible:n>t})},t.prototype.bindScrollEvent=function(){var e=this.props.target;this.scrollElem=e()||this.getDefaultTarget(),this.scrollElem&&(this.scrollElem.addEventListener('scroll',this.handleScroll),this.handleScroll({target:this.scrollElem}))},t.prototype.scrollToTop=function(e){var t=this.props.onClick;this.scrollElem&&(this.scrollElem.scrollTo({top:0,behavior:'smooth'}),'function'==typeof t&&t(e))},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=X('editor-backTop',void 0===n?'':n,this.state.visible?'':'hidden'),a=$e(this.props,['className','children','visibilityHeight','target','visible']),o=Z.createElement('div',{className:'backTop-content'},Z.createElement('div',{className:'backTop-icon'},'UP'));return Z.createElement('div',$({},a,{className:r,onClick:this.scrollToTop,ref:this.ref}),t||o)},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getDefaultTarget',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleScroll',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'bindScrollEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'scrollToTop',null),t}(Z.Component),Fn=function(e){function t(t){var n=e.call(this,t)||this;n.initialContent='',n.dialogMountRef=Z.createRef();var r=[].slice.call(document.querySelectorAll('link[rel="stylesheet"], style')).map((function(e){return e.outerHTML}));return r.push('<style>body {height:auto !important;min-height:100%;display: flex;flex-direction: column;}</style>'),n.initialContent='<!DOCTYPE html><html><head>'.concat(r.join(''),'</head><body><div class="ae-IFramePreview AMISCSSWrapper"></div></body></html>'),n}return K(t,e),t.prototype.componentDidMount=function(){if(this.props.autoFocus){var e=this.props.manager.store;setTimeout((function(){if(ke(e)){var t=a(e.outline,(function(e){return!e.isRegion&&e.clickable}));t&&e.setActiveId(t.id)}}),350)}else this.props.manager.buildRenderersAndPanels()},t.prototype.iframeRefFunc=function(e){var t=this.props.store;this.iframeRef=e,ke(t)&&t.setIframe(e)},t.prototype.getModalContainer=function(){return this.props.store.getDoc().body},t.prototype.isMobile=function(){return!0},t.prototype.getDialogMountRef=function(){return this.dialogMountRef.current},t.prototype.iframeContentDidMount=function(){var e;null===(e=this.iframeRef.contentWindow)||void 0===e||e.document.body.classList.add('is-modalOpened')},t.prototype.render=function(){var e=this.props,t=e.editable,n=e.store,r=e.appLocale;e.autoFocus;var a=e.env,i=e.data,c=e.manager,s=z(e,['editable','store','appLocale','autoFocus','env','data','manager']);return Z.createElement(Te,{className:'ae-PreviewIFrame',initialContent:this.initialContent,ref:this.iframeRefFunc,contentDidMount:this.iframeContentDidMount},Z.createElement(Dn,{store:n,editable:t,manager:c}),Z.createElement('div',{ref:this.dialogMountRef,className:'ae-Dialog-preview-mount-node'},o(t?n.filteredSchema:n.filteredSchemaForPreview,$($({},s),{key:t?'edit-mode':'preview-mode',theme:a.theme,data:i,context:n.ctx,locale:r,editorDialogMountNode:this.getDialogMountRef}),$($({},a),{session:''.concat(a.session,'-iframe-preview'),useMobileUI:!0,isMobile:this.isMobile,getModalContainer:this.getModalContainer})),Z.createElement($n,null)))},_([i,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'iframeRefFunc',null),_([i,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getModalContainer',null),_([i,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'isMobile',null),_([i,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getDialogMountRef',null),_([i,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'iframeContentDidMount',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component);function Dn(e){var t=e.store,n=e.editable,r=e.manager,a=je().document,o=Z.useRef(n),i=Z.useCallback((function(){t.setHoverId('')}),[]),d=Z.useCallback((function(e){var n=e.target.closest('[data-editor-id]');n&&t.setHoverId(n.getAttribute('data-editor-id'))}),[]),l=Z.useCallback((function(){c()}),[]),u=Z.useCallback((function(e){var n=e.target.closest('[data-editor-id]');if(c(),!e.defaultPrevented&&(n&&t.setActiveId(n.getAttribute('data-editor-id')),o.current)){var a=r.trigger('prevent-click',{data:e});a.prevented||a.stoped||(e.preventDefault(),e.stopPropagation())}}),[]),p=Z.useCallback((function(e){o.current&&(e.preventDefault(),e.stopPropagation())}),[]),f=Z.useCallback((function(){r.store.getIframe().style.cssText+='height: '.concat(a.body.offsetHeight,'px')}),[]);return Z.useEffect((function(){t.setDoc(a);var e=null==a?void 0:a.querySelector('.frame-content');a.addEventListener('click',l),e.addEventListener('mouseleave',i),e.addEventListener('mousemove',d),e.addEventListener('click',u,!0),e.addEventListener('mouseover',p);var n=s(a.body,(function(){f()}));return f(),function(){a.removeEventListener('click',l),e.removeEventListener('mouseleave',i),e.removeEventListener('mousemove',d),e.removeEventListener('click',u),e.removeEventListener('mouseover',p),t.setDoc(document),n()}}),[a]),Z.useEffect((function(){var e;null===(e=null==a?void 0:a.querySelector('body>div:first-child'))||void 0===e||e.classList.toggle('is-edting',n),o.current=n}),[n]),null}var Bn,$n=q((function(){var e=window.spiriteIcons;return e?Z.createElement('div',{id:'amis-icon-manage-mount-node',style:{display:'none'},dangerouslySetInnerHTML:{__html:e}}):null})),Tn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.env=$($({},t.props.manager.env),{notify:function(e,n,r){t.props.editable?console.warn('[Notify]',e,n):d[e]?d[e](n,r||B('error'===e?'a71002967924a83e32b38a80705290fb':'058ebdf2884474ebff2977ba2f0e275e')):console.warn('[Notify]',e,n)},theme:t.props.theme,session:'preview-'.concat(t.props.manager.id),rendererResolver:t.rendererResolver.bind(t)}),t.doingSelection=!1,t.unReaction=Yt((function(){return[t.getHighlightNodes(),t.props.store.activeId]}),(function(e,n){var r=H(e,1)[0],a=t.props.store;setTimeout((function(){t.calculateHighlightBox(r)}),50);var o=null==n?void 0:n[0];Array.isArray(o)&&(o=o.filter((function(e){return!~r.indexOf(e)})),a.resetHighlightBox(o))})),t}return K(t,e),t.prototype.componentDidMount=function(){this.currentDom=Re(this),this.currentDom.addEventListener('mouseleave',this.handleMouseLeave),this.currentDom.addEventListener('mousemove',this.handleMouseMove),this.currentDom.addEventListener('click',this.handleClick,!0),this.currentDom.addEventListener('mouseover',this.handeMouseOver),this.currentDom.addEventListener('mousedown',this.handeMouseDown),this.props.manager.on('after-update',this.handlePanelChange)},t.prototype.componentWillUnmount=function(){var e,t,n=this;this.currentDom&&(this.currentDom.removeEventListener('mouseleave',this.handleMouseLeave),this.currentDom.removeEventListener('mousemove',this.handleMouseMove),this.currentDom.removeEventListener('click',this.handleClick,!0),this.currentDom.removeEventListener('mouseover',this.handeMouseOver),this.currentDom.removeEventListener('mousedown',this.handeMouseDown),this.props.manager.off('after-update',this.handlePanelChange),null===(e=this.dialogReaction)||void 0===e||e.call(this)),null===(t=this.scrollLayer)||void 0===t||t.removeEventListener('scroll',this.handlePanelChange),setTimeout((function(){return ee([n.env.session])}),500)},t.prototype.contentsRef=function(e){var t;e?(this.scrollLayer=e,this.scrollLayer.addEventListener('scroll',this.handlePanelChange),this.layer=e.querySelector('.ae-Preview-widgets'),this.props.store.setLayer(this.layer),this.unSensor=s(e,this.handlePanelChange)):(delete this.scrollLayer,delete this.layer,null===(t=this.unSensor)||void 0===t||t.call(this),delete this.unSensor)},t.prototype.handlePanelChange=function(){var e=this;setTimeout((function(){return e.calculateHighlightBox(e.getHighlightNodes())}),50)},t.prototype.getHighlightNodes=function(){return this.props.store.highlightNodes.map((function(e){return e.id}))},t.prototype.calculateHighlightBox=function(e){var t=this.props.store;this.layer&&t.calculateHighlightBox(e)},t.prototype.handeMouseDown=function(e){var t,n=this,r=1===e.button&&null!==window.event||0===e.button;if(this.props.editable&&r&&!e.defaultPrevented&&!e.defaultPrevented&&!(null===(t=e.target)||void 0===t?void 0:t.closest('[draggable]'))){var a=this.layer;if(a){var o=null,i=a.getBoundingClientRect(),c=e.pageX,s=e.pageY,d=c-i.left,l=s-i.top,u=function(e){o||((o=document.createElement('div')).classList.add('ae-Editor-selectionCursor'),a.appendChild(o)),n.doingSelection=!0;var t=e.pageX-c,r=e.pageY-s;o.style.cssText='left: '.concat(d+Math.min(t,0),'px; top: ').concat(l+Math.min(r,0),'px; width: ').concat(Math.abs(t),'px; height: ').concat(Math.abs(r),'px;')},p=function(e){n.doingSelection=!1,window.removeEventListener('mousemove',u),window.removeEventListener('mouseup',p),o&&a.removeChild(o);var t=e.pageX-c,r=e.pageY-s,i={x:d+Math.min(t,0),y:l+Math.min(r,0),w:Math.abs(t),h:Math.abs(r)};if(!(i.w<10&&i.h<10)){var f=function(e){window.removeEventListener('click',f,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener('click',f,!0),setTimeout((function(){return window.removeEventListener('click',f,!0)}),350),n.doSelection(i)}};window.addEventListener('mousemove',u),window.addEventListener('mouseup',p)}}},t.prototype.doSelection=function(e){var t=this.layer,n=Re(this);if(t&&n){var r=[],a=t.getBoundingClientRect(),o=e.x+a.left,i=e.y+a.top,c=(e.w,e.h,e.x+a.left+e.w),s=e.y+a.top+e.h,d=n.querySelectorAll('[data-editor-id]');[].slice.apply(d).forEach((function(e){if(!r.some((function(t){return t.contains(e)}))){var t=e.getBoundingClientRect();o<=t.left&&i<=t.top&&c>=t.right&&s>=t.bottom&&(~r.indexOf(e)||r.push(e))}}));var l=r.map((function(e){return e.getAttribute('data-editor-id')})).filter((function(e,t,n){return n.indexOf(e)===t}));l.length&&this.props.manager.setSelection(l)}},t.prototype.handleClick=function(e){var t,n=this.props.store,r=e.target.closest('[data-editor-id]');if(!e.target.closest('.ae-editor-action-btn'))if(e.defaultPrevented)e.stopPropagation();else{if(r){var a=r.getAttribute('data-editor-id'),o='',i=e.target.closest('[data-region-host]');if(i){var c=i.getAttribute('data-region-host');c&&c===a&&i.getAttribute('data-region')&&(o=i.getAttribute('data-region'))}e.metaKey?this.props.manager.toggleSelection(a):n.setActiveId(a,o)}if(!(null===(t=this.layer)||void 0===t?void 0:t.contains(e.target))&&this.props.editable){var s=this.props.manager.trigger('prevent-click',{data:e});s.prevented||s.stoped||(e.preventDefault(),e.stopPropagation())}}},t.prototype.handleNavSwitch=function(e){this.props.store.setActiveId(e)},t.prototype.handleMouseMove=function(e){var t;if(!this.doingSelection&&!this.props.manager.disableHover){var n=this.props.store,r=e.target;if(!(null===(t=this.layer)||void 0===t?void 0:t.contains(r))&&!e.target.closest('.ignore-hover-elem')){var a=r.closest('[data-editor-id]');if(a){var o=a.getAttribute('data-editor-id'),i='',c=e.target.closest('[data-region-host]');if(c){var s=c.getAttribute('data-region-host');s&&s===o&&c.getAttribute('data-region')&&(i=c.getAttribute('data-region'))}n.setMouseMoveRegion(i),n.setHoverId(o)}}}},t.prototype.handleMouseLeave=function(){var e=this.props.store;e.setMouseMoveRegion(''),e.setHoverId('')},t.prototype.handeMouseOver=function(e){this.props.editable&&(e.preventDefault(),e.stopPropagation())},t.prototype.handleDragEnter=function(e){this.props.editable&&this.props.manager.dnd.dragEnter(e.nativeEvent)},t.prototype.handleDragLeave=function(e){this.props.editable&&this.props.manager.dnd.dragLeave(e.nativeEvent)},t.prototype.handleDragOver=function(e){this.props.editable&&this.props.manager.dnd.dragOver(e.nativeEvent)},t.prototype.handleDrop=function(e){this.props.editable&&this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.getCurrentTarget=function(){return this.props.isMobile?this.currentDom.querySelector('.ae-Preview-inner'):this.currentDom.querySelector('.ae-Preview-body')},t.prototype.rendererResolver=function(e,t,n){var r=this.props,a=r.editable,o=r.manager,i=l(e,t);if(!1===a)return i;i=i||{name:'error',test:function(){return!0},component:Mn};var c=o.getEditorInfo(i,e,t);return c&&(i=$($({},i),{component:o.makeWrapper(c,i)})),i},t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.editable,o=t.store,i=t.manager,c=t.amisEnv;t.theme;var s=t.isMobile,d=t.autoFocus,l=t.toolbarContainer,u=t.appLocale,p=z(t,['className','editable','store','manager','amisEnv','theme','isMobile','autoFocus','toolbarContainer','appLocale']),f=$($({},this.env),c);return Z.createElement('div',{id:'editor-preview-body',onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:X('ae-Preview','AMISCSSWrapper',n,s?'is-mobile-body hoverShowScrollBar':'is-pc-body')},Z.createElement('div',{className:X('ae-Preview-body',n,a?'is-edting':'',s?'is-mobile':'is-pc hoverShowScrollBar'),ref:this.contentsRef},s&&Z.createElement(Z.Fragment,null,Z.createElement('div',{className:'mobile-sound'}),Z.createElement('div',{className:'mobile-receiver'}),Z.createElement('div',{className:'mobile-left-btn'}),Z.createElement('div',{className:'mobile-right-btn'}),Z.createElement('div',{className:'mobile-open-btn'})),Z.createElement('div',{className:'ae-Preview-inner'},s?Z.createElement(Fn,$({},p,{key:'mobile',editable:a,store:o,env:f,manager:i,autoFocus:d,appLocale:u})):Z.createElement(jn,$({},p,{editable:a,autoFocus:d,store:o,env:f,manager:i,key:'pc',appLocale:u})),Z.createElement('div',{className:'ae-Preview-widgets',id:'aePreviewHighlightBox'},o.highlightNodes.map((function(t){return Z.createElement(kn,{node:t,key:t.id,store:o,id:t.id,title:t.label,toolbarContainer:l,onSwitch:e.handleNavSwitch,manager:i},t.childRegions.map((function(e){return!t.memberImmutable(e.region)&&o.isRegionActive(e.id,e.region)?Z.createElement(An,{manager:i,key:e.region,store:o,node:e,id:e.id,name:e.region,title:e.label,preferTag:e.preferTag,isOnlyChildRegion:1===t.childRegions.length}):null})))})))),this.currentDom&&Z.createElement(Pn,{key:s?'mobile-back-up':'pc-back-up',className:'ae-editor-action-btn',target:this.getCurrentTarget.bind(this),onClick:function(e){console.log(e)}},Z.createElement(r,{icon:'back-up',className:'back-top-icon'}))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'contentsRef',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handlePanelChange',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Array]),V('design:returntype',void 0)],t.prototype,'calculateHighlightBox',null),_([Ut,V('design:type',Function),V('design:paramtypes',[MouseEvent]),V('design:returntype',void 0)],t.prototype,'handeMouseDown',null),_([Ut,V('design:type',Function),V('design:paramtypes',[MouseEvent]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleNavSwitch',null),_([Ut,V('design:type',Function),V('design:paramtypes',[MouseEvent]),V('design:returntype',void 0)],t.prototype,'handleMouseMove',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleMouseLeave',null),_([Ut,V('design:type',Function),V('design:paramtypes',[MouseEvent]),V('design:returntype',void 0)],t.prototype,'handeMouseOver',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragEnter',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragLeave',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragOver',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDrop',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getCurrentTarget',null),t=_([xe],t)}(Y),jn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dialogMountRef=Z.createRef(),t}return K(t,e),t.prototype.componentDidMount=function(){var e=this.props.store;this.props.autoFocus?setTimeout((function(){if(ke(e)){var t=te(e.outline,(function(e){return!e.isRegion&&e.clickable}));t&&ke(e)&&e.setActiveId(t.id)}}),350):this.props.manager.buildRenderersAndPanels()},t.prototype.componentDidUpdate=function(e){var t=this.props;t.editable!==e.editable&&t.editable&&this.props.manager.trigger('preview2editor',{data:this.props.manager})},t.prototype.getDialogMountRef=function(){return this.dialogMountRef.current},t.prototype.render=function(){var e=this.props,t=e.editable,n=e.store,r=e.appLocale;e.autoFocus;var a=e.env,i=e.data;e.manager;var c=z(e,['editable','store','appLocale','autoFocus','env','data','manager']);return Z.createElement('div',{ref:this.dialogMountRef,className:'ae-Dialog-preview-mount-node'},o(t?n.filteredSchema:n.filteredSchemaForPreview,$($({},c),{key:t?'edit-mode':'preview-mode',theme:a.theme,data:i,context:n.ctx,locale:r,editorDialogMountNode:this.getDialogMountRef}),a))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getDialogMountRef',null),t=_([xe],t)}(Z.Component),Ln=function(e){function t(t){var n=e.call(this,t)||this;return n.env=$({session:'preview'},n.props.env),n.state={scale:!0},n.rootRef=n.rootRef.bind(n),n.syncHeight=n.syncHeight.bind(n),n.handleClick=n.handleClick.bind(n),n}return K(t,e),t.prototype.componentWillUnmount=function(){this.unSensor&&this.unSensor()},t.prototype.rootRef=function(e){var t;this.ref=e,e&&(this.syncHeight(),this.unSensor=s(null===(t=e.firstChild)||void 0===t?void 0:t.firstChild,this.syncHeight))},t.prototype.syncHeight=function(){if(this.ref){var e=this.state.scale,t=this.ref.firstChild;this.ref.style.cssText='height: '.concat(t.scrollHeight/(e?2:1),'px;')}},t.prototype.handleClick=function(e){e.preventDefault(),this.setState({scale:!this.state.scale})},t.prototype.render=function(){var e=this,t=this.props,n=t.schema,a=t.theme;return Z.createElement(ne,{unMountOnHidden:!1,schema:n,component:function(t){var n=t.schema;return Z.createElement('div',{className:'ae-RenderersPicker-thumb '.concat(e.state.scale?'is-scaled':'')},Z.createElement('div',{className:'ae-Editor-rendererThumbWrap'},Z.createElement('div',{className:'ae-Editor-rendererThumbIcon',onClick:e.handleClick},Z.createElement(r,{icon:e.state.scale?'zoom-in':'zoom-out'})),Z.createElement('div',{ref:e.rootRef,className:'ae-Editor-rendererThumb'},Z.createElement('div',{className:'ae-Editor-rendererThumbInner'},o($($({},n),{mode:'horizontal'===n.mode?'normal':n.mode}),{theme:a},e.env)))))}})},t}(Z.Component),Hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.handleLeftClick=function(e){var t=e.currentTarget.getAttribute('data-value');this.props.store.setInsertTag(t)},t.prototype.handleClick=function(e){var t=e.currentTarget.getAttribute('data-value');this.props.store.setInsertSelected(t)},t.prototype.hadnlDBClick=function(e){var t=e.currentTarget.getAttribute('data-value'),n=this.props.store;n.setInsertSelected(t);var r=this.props.manager;'replace'===n.insertMode?r.replace():r.insert()},t.prototype.handleInsert=function(){this.props.manager.insert()},t.prototype.handleReplace=function(){this.props.manager.replace()},t.prototype.handleCancel=function(){this.props.store.closeInsertPanel()},t.prototype.render=function(){var e,t,n=this,a=this.props.store,o=this.props.manager,i=null===(e=a.getNodeById(a.insertId))||void 0===e?void 0:e.info,c=null===(t=Le(i.regions,(function(e){return e.key===a.insertRegion})))||void 0===t?void 0:t.label,s=a.groupedInsertRenderers,d=Object.keys(s),l=a.insertTag||B('a8b0c20416853bda54120bf19477ad11'),h=s[l]||s[B('a8b0c20416853bda54120bf19477ad11')];return Z.createElement('div',{className:'ae-InsertPanel'},'replace'===a.insertMode?Z.createElement('div',{className:'ae-InsertPanel-title'},B('b80ed82d124c6fd9242dcacdda2a2f8b')):Z.createElement('div',{className:'ae-InsertPanel-title'},Z.createElement('span',null,B('41150516bf0d90646edc5239593366e9')),' ',Z.createElement('code',null,i.name,' > ',c)),Z.createElement('div',{className:'m-b-xs'},Z.createElement(u,{className:'editor-InputSearch',value:a.insertRenderersKeywords,onChange:a.changeInsertRenderersKeywords,placeholder:B('d87481b371771b4f150da76e311bbbef'),clearable:!1},a.insertRenderersKeywords?Z.createElement('a',{onClick:a.resetInsertRenderersKeywords},Z.createElement(r,{icon:'close',className:'icon'})):Z.createElement(r,{icon:'search',className:'icon'}))),Z.createElement('div',{className:'ae-RenderersPicker-list'},Z.createElement('ul',null,d.map((function(e){return Z.createElement('li',{key:e,className:l===e?'is-active':''},Z.createElement('a',{'data-value':e,onClick:n.handleLeftClick},e))}))),Z.createElement('div',{className:'ae-RenderersPicker-content'},Array.isArray(h)&&h.length?Z.createElement('ul',null,h.map((function(e){return Z.createElement('li',{key:e.id,className:a.insertSelected===e.id?'is-active':'','data-value':e.id,onClick:n.handleClick,onDoubleClick:n.hadnlDBClick},Z.createElement(Ln,{theme:o.env.theme,env:o.env,schema:e.previewSchema||{type:'tpl',tpl:B('becdc848350872592201e31bab03892a')}}),Z.createElement('div',{className:'ae-RenderersPicker-info'},Z.createElement('h4',null,e.name),Z.createElement('div',null,Z.createElement(p,{html:e.description}),e.docLink?Z.createElement('a',{target:'_blank',href:a.amisDocHost+e.docLink},Z.createElement('span',null,B('f26225bde6a250894a04db4c53ea03d0'))):null)))}))):Z.createElement('div',null,B('751dfe6f476903c21381c9acf88332e2')))),Z.createElement('div',{className:'ae-InsertPanel-footer'},'replace'===a.insertMode?Z.createElement(f,{className:'action-btn action-btn-primary',onClick:this.handleReplace,disabled:!a.insertSelected,level:'primary'},B('e22c9a05b424b761efce11f17726fdd7')):Z.createElement(f,{className:'action-btn action-btn-primary',onClick:this.handleInsert,disabled:!a.insertSelected,level:'primary'},B('9bdb07e72d3a9a6084201a7398523f5a')),Z.createElement(f,{className:'action-btn',onClick:this.handleCancel},B('625fb26b4b3340f7872b411f401e754c'))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleLeftClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'hadnlDBClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleInsert',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleReplace',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleCancel',null),t=_([xe],t)}(Z.Component);function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zn.apply(this,arguments)}var Kn;function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_n.apply(this,arguments)}var Vn;function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Un.apply(this,arguments)}var Wn;function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}var qn;function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yn.apply(this,arguments)}var Xn;function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jn.apply(this,arguments)}var Gn,Qn,er;function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tr.apply(this,arguments)}var nr,rr,ar;function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},or.apply(this,arguments)}var ir,cr,sr,dr,lr,ur,pr,fr;function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}var mr;function vr(){return vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vr.apply(this,arguments)}var gr;function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},br.apply(this,arguments)}var yr;function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Er.apply(this,arguments)}var wr;function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cr.apply(this,arguments)}var Sr;function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ir.apply(this,arguments)}var xr;function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(this,arguments)}var Nr;function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(this,arguments)}var kr;function Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ar.apply(this,arguments)}var Mr,Pr;function Fr(){return Fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fr.apply(this,arguments)}var Dr,Br,$r;function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tr.apply(this,arguments)}var jr;function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}var Hr;function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(this,arguments)}var Kr;function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_r.apply(this,arguments)}var Vr;function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ur.apply(this,arguments)}var Wr;function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zr.apply(this,arguments)}var qr,Yr;function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xr.apply(this,arguments)}var Jr;function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gr.apply(this,arguments)}var Qr;function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(this,arguments)}var ta;function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na.apply(this,arguments)}var ra;function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aa.apply(this,arguments)}var oa;function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ia.apply(this,arguments)}var ca;function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(this,arguments)}var da;function la(){return la=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},la.apply(this,arguments)}var ua;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(this,arguments)}var fa,ha;function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ma.apply(this,arguments)}var va;function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ga.apply(this,arguments)}var ba,ya=function(e){return W.createElement('svg',ga({viewBox:'0 0 16 16',fill:'currentColor',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),va||(va=W.createElement('path',{d:'m12.233 5-4.24 4.24L3.753 5l-.713.713 4.95 4.95.003-.003.003.003 4.95-4.95z'})))};function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ea.apply(this,arguments)}var wa;function Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ca.apply(this,arguments)}var Sa;function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ia.apply(this,arguments)}var xa;function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ra.apply(this,arguments)}var Na;function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oa.apply(this,arguments)}var ka;function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aa.apply(this,arguments)}var Ma;function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pa.apply(this,arguments)}var Fa;function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Da.apply(this,arguments)}var Ba;function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$a.apply(this,arguments)}var Ta;function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ja.apply(this,arguments)}var La;function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha.apply(this,arguments)}h('arrow-to-right',(function(e){return W.createElement('svg',zn({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Bn||(Bn=W.createElement('path',{d:'M755.627 481.707 584.96 311.04a42.667 42.667 0 1 0-60.587 60.587l98.134 97.706H128a42.667 42.667 0 0 0 0 85.334h494.507l-98.134 97.706a42.667 42.667 0 0 0 0 60.587 42.667 42.667 0 0 0 60.587 0l170.667-170.667a42.667 42.667 0 0 0 8.96-14.08 42.667 42.667 0 0 0 0-32.426 42.667 42.667 0 0 0-8.96-14.08zM896 170.667a42.667 42.667 0 0 0-42.667 42.666v597.334a42.667 42.667 0 0 0 85.334 0V213.333A42.667 42.667 0 0 0 896 170.667z'})))})),h('left-arrow-to-left',(function(e){return W.createElement('svg',_n({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Kn||(Kn=W.createElement('path',{d:'M896 469.333H401.493l98.134-97.706a42.667 42.667 0 1 0-60.587-60.587L268.373 481.707a42.667 42.667 0 0 0-8.96 14.08 42.667 42.667 0 0 0 0 32.426 42.667 42.667 0 0 0 8.96 14.08L439.04 712.96a42.667 42.667 0 0 0 60.587 0 42.667 42.667 0 0 0 0-60.587l-98.134-97.706H896a42.667 42.667 0 0 0 0-85.334zM128 128a42.667 42.667 0 0 0-42.667 42.667v682.666a42.667 42.667 0 0 0 85.334 0V170.667A42.667 42.667 0 0 0 128 128z'})))})),h('top-arrow-to-top',(function(e){return W.createElement('svg',Un({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Vn||(Vn=W.createElement('path',{d:'M542.293 268.373a42.667 42.667 0 0 0-14.08-8.96 42.667 42.667 0 0 0-32.426 0 42.667 42.667 0 0 0-14.08 8.96L311.04 439.04a42.667 42.667 0 1 0 60.587 60.587l97.706-98.134V896a42.667 42.667 0 0 0 85.334 0V401.493l97.706 98.134a42.667 42.667 0 0 0 60.587 0 42.667 42.667 0 0 0 0-60.587zm268.374-183.04H213.333a42.667 42.667 0 0 0 0 85.334h597.334a42.667 42.667 0 0 0 0-85.334z'})))})),h('arrow-to-bottom',(function(e){return W.createElement('svg',Zn({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Wn||(Wn=W.createElement('path',{d:'M810.667 853.333H213.333a42.667 42.667 0 0 0 0 85.334h597.334a42.667 42.667 0 0 0 0-85.334zm-328.96-97.706a42.667 42.667 0 0 0 14.08 8.96 40.107 40.107 0 0 0 32.426 0 42.667 42.667 0 0 0 14.08-8.96L712.96 584.96a42.667 42.667 0 0 0-60.587-60.587l-97.706 98.134V128a42.667 42.667 0 0 0-85.334 0v494.507l-97.706-98.134a42.667 42.667 0 1 0-60.587 60.587z'})))})),h('collapse-open',(function(e){return W.createElement('svg',Yn({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),qn||(qn=W.createElement('path',{fill:'#83868C',fillRule:'nonzero',d:'M8 11 4 6h8z'})))})),h('harmmer',(function(e){return W.createElement('svg',vr({className:'icon',viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg'},e),mr||(mr=W.createElement('path',{d:'m947.9 761.4-264-263.9c-16.3-16.3-43.1-16.3-59.4 0l-19.8 19.8-161-161L708.1 91.9H428L303.6 216.2l-12.3-12.3h-59.4v59.4l12.3 12.3L63.9 456l140 140 180.3-180.3 161.1 161.1-19.8 19.8c-16.3 16.3-16.3 43.1 0 59.4l263.9 263.9c16.3 16.3 43.1 16.3 59.4 0l99-99c16.4-16.4 16.4-43.1.1-59.5z'})))})),h('dialog',(function(e){return W.createElement('svg',br({className:'icon',viewBox:'0 0 1155 1024',xmlns:'http://www.w3.org/2000/svg'},e),gr||(gr=W.createElement('path',{d:'M1076.512 315.077H840.204V78.769A78.77 78.77 0 0 0 761.435 0H78.77A78.77 78.77 0 0 0 0 78.77V498.87a78.77 78.77 0 0 0 78.77 78.77h14.939l-9.295 23.368a78.77 78.77 0 0 0 73.124 107.913 76.879 76.879 0 0 0 38.23-9.977l119.309-66.166v181.169a78.77 78.77 0 0 0 78.769 78.769h347.188l218.453 121.305a76.879 76.879 0 0 0 38.256 9.977 78.77 78.77 0 0 0 73.15-107.914l-9.295-23.368h14.914a78.77 78.77 0 0 0 78.769-78.77V393.847a78.77 78.77 0 0 0-78.77-78.77zm-761.435 78.769v148.873l-157.539 87.434 52.513-131.282H78.77V78.77h682.666v236.308h-367.59a78.77 78.77 0 0 0-78.768 78.769zm761.435 420.102H945.23l52.513 131.282-236.308-131.282h-367.59V393.846h682.667v420.102zm-577.64-262.564h472.614a39.385 39.385 0 0 0 0-78.77H498.871a39.385 39.385 0 0 0 0 78.77zm0 157.538h472.614a39.385 39.385 0 0 0 0-78.769H498.871a39.385 39.385 0 0 0 0 78.77z'})))})),h('setting',(function(e){return W.createElement('svg',Er({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),yr||(yr=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h16v16H0z'}),W.createElement('path',{d:'M11.5 2 15 8.063l-3.5 6.062h-7L1 8.063 4.5 2h7Zm-.578 1H5.077L2.155 8.064l2.922 5.06h5.845l2.924-5.06L10.922 3ZM8 6.064a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0 1a1.001 1.001 0 0 0 0 2 1.001 1.001 0 0 0 0-2Z',fill:'#84868C',fillRule:'nonzero'}))))})),h('picker-icon',(function(e){return W.createElement('svg',Cr({xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),wr||(wr=W.createElement('g',{fill:'none',fillRule:'evenodd',stroke:'currentColor',strokeLinecap:'round',strokeLinejoin:'round'},W.createElement('path',{d:'M14.5 14.5h-13v-13h13v1.998'}),W.createElement('path',{d:'m12.775 4.943 1.768 1.768-1.766 1.765M13.85 6.71H8m1.694 2.525-1.768 1.768 1.766 1.766m-1.074-1.767 5.882-.001'}))))})),h('edit-full-btn',(function(e){return W.createElement('svg',Gr({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Jr||(Jr=W.createElement('g',{fill:'none',fillRule:'evenodd',stroke:'currentColor',strokeLinejoin:'round'},W.createElement('path',{d:'m11.536 3.05 1.414 1.414-7.778 7.779-1.395.019-.02-1.434zM9.414 4.464l2.122 2.122M1.5 14h13'}))))})),h('event-setting',(function(e){return W.createElement('svg',pa({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ua||(ua=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h16v16H0z'}),W.createElement('path',{d:'M7.356 14H2.333c-.552 0-1-.504-1-1.125v-9.75c0-.621.448-1.125 1-1.125h11.334c.552 0 1 .504 1 1.125v4.522',stroke:'#151B26',strokeLinecap:'round',strokeLinejoin:'round'}),W.createElement('path',{d:'M1.333 3a1 1 0 0 1 1-1h11.334a1 1 0 0 1 1 1v3H1.333V3Z',stroke:'#151B26'}),W.createElement('path',{d:'M3.333 3.333a.667.667 0 1 1 0 1.334.667.667 0 0 1 0-1.334Zm2 0a.667.667 0 1 1 0 1.334.667.667 0 0 1 0-1.334Z',fill:'#151B26',fillRule:'nonzero'}),W.createElement('g',{stroke:'#151B26',strokeLinejoin:'round'},W.createElement('path',{d:'m13.192 14.017 1.5-2.5-1.5-2.5h-3l-1.5 2.5 1.5 2.5z'}),W.createElement('path',{d:'M11.692 12.42a.912.912 0 0 0 .92-.903.912.912 0 0 0-.92-.903.912.912 0 0 0-.921.903c0 .498.412.903.92.903Z'})))))})),h('add-btn',(function(e){return W.createElement('svg',ea({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Qr||(Qr=W.createElement('path',{d:'M8.5 2v5.5H14v1H8.5V14h-1V8.5H2v-1h5.5V2h1Z',fill:'currentColor',fillRule:'evenodd'})))})),h('close-btn',(function(e){return W.createElement('svg',na({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ta||(ta=W.createElement('path',{stroke:'currentColor',strokeLinejoin:'round',d:'M13.664 10.507 8.007 4.85 2.35 10.507',fill:'none',fillRule:'evenodd'})))})),h('open-btn-r',(function(e){return W.createElement('svg',aa({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ra||(ra=W.createElement('path',{stroke:'currentColor',strokeLinejoin:'round',d:'m2.35 5.497 5.657 5.657 5.657-5.657',fill:'none',fillRule:'evenodd'})))})),h('delete-easy-btn',(function(e){return W.createElement('svg',ia({viewBox:'0 0 17 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),oa||(oa=W.createElement('path',{d:'M14.333 3.499V4.5H12.83l.001 10h-9v-10H2.332V3.499h12ZM11.831 4.5h-7v9h7v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1Zm.001-5.999v.999h-4V1.5h4Z',fill:'currentColor',fillRule:'evenodd'})))})),h('delete-bold-btn',(function(e){return W.createElement('svg',sa({viewBox:'0 0 13 14',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ca||(ca=W.createElement('path',{d:'M12.833 2.499V3.5H11.33l.001 10h-9v-10H.832V2.499h12ZM10.331 3.5h-7v9h7v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1ZM8.832.5v.999h-4V.5h4Z',fill:'currentColor',fillRule:'evenodd'})))})),h('drag-six-circle-btn',(function(e){return W.createElement('svg',la({viewBox:'0 0 7 12',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),da||(da=W.createElement('path',{d:'M5.167 10a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm-4 10a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z',fill:'#84868C',fillRule:'evenodd'})))})),h('drag-btn',(function(e){return W.createElement('svg',Ar({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),kr||(kr=W.createElement('g',{fill:'#FFF',fillRule:'nonzero'},W.createElement('path',{d:'m10.263 4.52-.283.283a.2.2 0 0 1-.283 0L8 3.105 6.303 4.803a.2.2 0 0 1-.283 0l-.283-.283a.2.2 0 0 1 0-.283l1.98-1.98a.4.4 0 0 1 .503-.051l.063.051 1.98 1.98a.2.2 0 0 1 0 .283ZM5.737 11.473l.283-.283a.2.2 0 0 1 .283 0L8 12.888l1.697-1.698a.2.2 0 0 1 .283 0l.283.283a.2.2 0 0 1 0 .283l-1.98 1.98a.4.4 0 0 1-.503.05l-.063-.05-1.98-1.98a.2.2 0 0 1 0-.283ZM11.48 10.263l-.283-.283a.2.2 0 0 1 0-.283L12.895 8l-1.698-1.697a.2.2 0 0 1 0-.283l.283-.283a.2.2 0 0 1 .283 0l1.98 1.98a.4.4 0 0 1 .051.503l-.051.063-1.98 1.98a.2.2 0 0 1-.283 0ZM4.546 5.737l.282.283a.2.2 0 0 1 0 .283L3.131 8l1.697 1.697a.2.2 0 0 1 0 .283l-.282.283a.2.2 0 0 1-.283 0l-1.98-1.98a.4.4 0 0 1-.051-.503l.05-.063 1.98-1.98a.2.2 0 0 1 .284 0Z'}),W.createElement('path',{d:'M8.4 3v4.7h4.7v.8H8.4V13h-.8V8.5H3.1v-.8l4.5-.001V3h.8Z'}))))})),h('more-btn',(function(e){return W.createElement('svg',Rr({viewBox:'0 0 14 14',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),xr||(xr=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h14v14H0z'}),W.createElement('circle',{fill:'#FFF',cx:2.8,cy:7,r:1}),W.createElement('circle',{fill:'#FFF',cx:11.2,cy:7,r:1}),W.createElement('circle',{fill:'#FFF',cx:7,cy:7,r:1}))))})),h('copy-btn',(function(e){return W.createElement('svg',Ir({viewBox:'0 0 15 15',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Sr||(Sr=W.createElement('path',{d:'M11 1.6a2.4 2.4 0 0 1 2.394 2.236L13.4 4v5a2.4 2.4 0 0 1-2.236 2.394L11 11.4l-.633.001A2.4 2.4 0 0 1 8 13.4H4A2.4 2.4 0 0 1 1.6 11V6A2.4 2.4 0 0 1 4 3.6h.632a2.392 2.392 0 0 1 2.195-1.994L6.99 1.6H11ZM8 4.4H4A1.6 1.6 0 0 0 2.4 6v5A1.6 1.6 0 0 0 4 12.6h4A1.6 1.6 0 0 0 9.6 11V6A1.6 1.6 0 0 0 8 4.4Zm-2.2 5.7c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.717a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2H5.8ZM11 2.4H6.99c-.743 0-1.368.51-1.542 1.2H8A2.4 2.4 0 0 1 10.4 6l-.001 4.6H11a1.6 1.6 0 0 0 1.593-1.454L12.6 9V4a1.6 1.6 0 0 0-1.454-1.593L11 2.4ZM8.3 8.1c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.717a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2H8.3Zm0-2c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.717a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2H8.3Z',fill:'#FFF',fillRule:'nonzero'})))})),h('delete-btn',(function(e){return W.createElement('svg',Or({viewBox:'0 0 14 14',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Nr||(Nr=W.createElement('path',{d:'M9.25 1.1a.4.4 0 0 1 .392.32l.008.08v1.153h3.15c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2h-1.65v7.044a2.4 2.4 0 0 1-2.236 2.395l-.164.005h-3.5a2.4 2.4 0 0 1-2.394-2.235l-.006-.165-.001-7.044H1.2a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2h3.149L4.35 1.5a.4.4 0 0 1 .32-.392l.08-.008h4.5Zm1.1 2.353H3.649l.001 7.044a1.6 1.6 0 0 0 1.454 1.594l.146.006h3.5a1.6 1.6 0 0 0 1.593-1.454l.007-.146V3.453ZM4.816 4.997l.4.006a.2.2 0 0 1 .198.202l-.065 5.1a.2.2 0 0 1-.202.198l-.4-.006a.2.2 0 0 1-.198-.202l.065-5.1a.2.2 0 0 1 .202-.198Zm2 0 .4.006a.2.2 0 0 1 .198.202l-.065 5.1a.2.2 0 0 1-.202.198l-.4-.006a.2.2 0 0 1-.198-.202l.065-5.1a.2.2 0 0 1 .202-.198Zm2 0 .4.006a.2.2 0 0 1 .198.202l-.065 5.1a.2.2 0 0 1-.202.198l-.4-.006a.2.2 0 0 1-.198-.202l.065-5.1a.2.2 0 0 1 .202-.198ZM8.85 1.9h-3.7v.753h3.7V1.9Z'})))})),h('up-btn',(function(e){return W.createElement('svg',Fr({viewBox:'0 0 28 29',xmlns:'http://www.w3.org/2000/svg',xmlnsXlink:'http://www.w3.org/1999/xlink',className:'icon'},e),Mr||(Mr=W.createElement('defs',null,W.createElement('radialGradient',{cx:'69.986%',cy:'19.319%',fx:'69.986%',fy:'19.319%',r:'49.554%',gradientTransform:'scale(-1 -.71033) rotate(-39.868 -.641 1.89)',id:'up-btn_svg__e'},W.createElement('stop',{stopColor:'#FFF',offset:'0%'}),W.createElement('stop',{stopColor:'#FFF',stopOpacity:0,offset:'100%'})),W.createElement('radialGradient',{cx:'77.918%',cy:'13.589%',fx:'77.918%',fy:'13.589%',r:'45.882%',id:'up-btn_svg__j'},W.createElement('stop',{stopColor:'#FFF',offset:'0%'}),W.createElement('stop',{stopColor:'#FFF',stopOpacity:0,offset:'100%'})),W.createElement('linearGradient',{x1:'50%',y1:'0%',x2:'50%',y2:'100%',id:'up-btn_svg__a'},W.createElement('stop',{stopColor:'#0752E9',offset:'0%'}),W.createElement('stop',{stopColor:'#2468F2',offset:'100%'})),W.createElement('linearGradient',{x1:'50%',y1:'0%',x2:'50%',y2:'100%',id:'up-btn_svg__g'},W.createElement('stop',{stopColor:'#0752E9',offset:'0%'}),W.createElement('stop',{stopColor:'#2468F2',offset:'100%'})),W.createElement('filter',{x:'-75%',y:'-75%',width:'250%',height:'250%',filterUnits:'objectBoundingBox',id:'up-btn_svg__c'},W.createElement('feGaussianBlur',{stdDeviation:7,in:'SourceGraphic'})),W.createElement('filter',{x:'-100%',y:'-100%',width:'300%',height:'300%',filterUnits:'objectBoundingBox',id:'up-btn_svg__h'},W.createElement('feGaussianBlur',{stdDeviation:2,in:'SourceGraphic'})),W.createElement('circle',{id:'up-btn_svg__f',cx:3,cy:2.5,r:2.5}),W.createElement('path',{d:'m8 0 .335.276a13.981 13.981 0 0 1 5.075 11.687c1.592 1.198 2.59 3.019 2.59 5.35 0 1.991-.727 3.812-1.93 5.212l-.72-2.16a3 3 0 0 0-2.846-2.051H5.496a3 3 0 0 0-2.846 2.051l-.72 2.16A7.969 7.969 0 0 1 0 17.314c0-2.332.998-4.153 2.59-5.352A13.977 13.977 0 0 1 7.665.276L8 0Z',id:'up-btn_svg__b'}))),Pr||(Pr=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M14 5c7.732 0 14 6.268 14 14 0 3.728-1.457 7.116-3.834 9.625A6.967 6.967 0 0 1 20 30a6.976 6.976 0 0 1-2.799-.582 10.339 10.339 0 0 1-2.974 3.889l-.113.09-.114.088a10.34 10.34 0 0 1-3.201-4.068A6.963 6.963 0 0 1 8 30c-1.56 0-3.002-.51-4.166-1.374A13.954 13.954 0 0 1 0 19C0 11.268 6.268 5 14 5Z',fill:'url(#up-btn_svg__a)',transform:'translate(0 -5)'}),W.createElement('g',{transform:'translate(6 1.5)'},W.createElement('mask',{id:'up-btn_svg__d',fill:'#fff'},W.createElement('use',{xlinkHref:'#up-btn_svg__b'})),W.createElement('use',{fill:'#F2F2FF',xlinkHref:'#up-btn_svg__b'}),W.createElement('circle',{fill:'#2468F2',filter:'url(#up-btn_svg__c)',mask:'url(#up-btn_svg__d)',cx:19,cy:-2,r:14}),W.createElement('path',{d:'m8 0 .335.276a13.981 13.981 0 0 1 5.075 11.687c1.592 1.198 2.59 3.019 2.59 5.35 0 1.991-.727 3.812-1.93 5.212l-.72-2.16a3 3 0 0 0-2.662-2.046l-.184-.005H5.496a3 3 0 0 0-2.783 1.879l-.063.172-.72 2.16A7.969 7.969 0 0 1 0 17.314c0-2.332.998-4.153 2.59-5.352A13.977 13.977 0 0 1 7.497.416L8 0Zm0 .647-.179.15a13.472 13.472 0 0 0-4.75 10.762l.018.372.017.268-.215.162C1.354 13.52.5 15.226.5 17.314c0 1.39.38 2.72 1.077 3.874l.178.28.425-1.275.069-.187a3.5 3.5 0 0 1 3.043-2.186l.204-.006h5.024l.198.006a3.5 3.5 0 0 1 3.04 2.205l.067.182.42 1.261.012-.017a7.459 7.459 0 0 0 1.236-3.818l.007-.32c0-1.992-.778-3.638-2.185-4.79l-.205-.16-.215-.163.016-.268A13.478 13.478 0 0 0 8.303.904L8 .647Z',fillOpacity:.7,fill:'url(#up-btn_svg__e)',mask:'url(#up-btn_svg__d)'})),W.createElement('g',{transform:'translate(11 6.814)'},W.createElement('mask',{id:'up-btn_svg__i',fill:'#fff'},W.createElement('use',{xlinkHref:'#up-btn_svg__f'})),W.createElement('use',{fill:'url(#up-btn_svg__g)',xlinkHref:'#up-btn_svg__f'}),W.createElement('path',{fill:'#2468F2',filter:'url(#up-btn_svg__h)',mask:'url(#up-btn_svg__i)',d:'M3-3h6v6H3z'})),W.createElement('path',{d:'M8 11.314a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm0 .5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z',fillOpacity:.7,fill:'url(#up-btn_svg__j)',transform:'translate(6 -4.5)'}))))})),h('clear-btn',(function(e){return W.createElement('svg',Tr({className:'icon',viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg'},e),Dr||(Dr=W.createElement('path',{d:'M452.225 146.9 111.637 487.488a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.9-34.059 0-47.132L405.093 99.768a33.223 33.223 0 0 1 47.132 0 33.223 33.223 0 0 1 0 47.132zM924.232 618.735 583.644 959.323a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.06 0-47.132L877.1 571.603a33.223 33.223 0 0 1 47.132 0c13.073 13.073 12.9 34.23 0 47.132zM451.193 620.799 348.157 723.835a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.058 0-47.131L404.06 573.667a33.223 33.223 0 0 1 47.132 0c13.073 13.073 13.073 34.23 0 47.132zM298.444 524.987l-74.654 74.654a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.9-34.059 0-47.132l74.655-74.654a33.223 33.223 0 0 1 47.131 0c12.902 13.073 12.902 34.231 0 47.132zM545.285 772l-74.654 74.653a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.058 0-47.131l74.654-74.655a33.223 33.223 0 0 1 47.132 0 33.223 33.223 0 0 1 0 47.132z'})),Br||(Br=W.createElement('path',{d:'M536.34 959.323 64.505 487.66a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.06-12.9 47.132 0l471.835 471.835a33.223 33.223 0 0 1 0 47.132c-13.073 12.9-34.059 12.9-47.132-.172zM732.264 763.57 260.43 291.737a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.06-12.901 47.132 0L779.224 716.44a33.223 33.223 0 0 1 0 47.132c-12.901 13.073-34.059 12.9-46.96 0zM912.363 219.49 804.682 111.637a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.059-12.9 47.132 0l107.68 107.853a33.223 33.223 0 0 1 0 47.132c-13.072 13.073-34.23 13.073-47.131 0zM587.256 328.719 405.437 146.9a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.06-12.9 47.132 0L634.56 281.76a33.223 33.223 0 0 1 0 47.132c-13.073 12.901-34.23 12.901-47.304-.172zM877.1 618.563l-181.819-181.82a33.223 33.223 0 0 1 0-47.131c13.073-13.073 34.059-12.901 47.132 0l181.99 181.99a33.223 33.223 0 0 1 0 47.133c-13.072 12.9-34.23 12.9-47.303-.172z'})),$r||($r=W.createElement('path',{d:'M959.323 219.49 742.24 436.572a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.059 0-47.132l217.082-217.082a33.223 33.223 0 0 1 47.132 0c13.073 12.901 13.073 34.059 0 47.132zM851.642 111.637 634.388 328.72a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.9-34.059 0-47.132L804.51 64.505a33.223 33.223 0 0 1 47.132 0c13.073 13.073 12.9 34.06 0 47.132z'})))})),h('open-btn',ya),h('merge-icon',(function(e){return W.createElement('svg',Lr({viewBox:'0 0 24 24',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),jr||(jr=W.createElement('g',{fillRule:'evenodd'},W.createElement('rect',{x:1,y:1,width:22,height:3,rx:1.5}),W.createElement('rect',{x:1,y:7,width:22,height:3,rx:1.5}),W.createElement('rect',{x:1,y:20,width:22,height:3,rx:1.5}),W.createElement('path',{d:'m12.376 17.07 2.398-2.74a.5.5 0 0 0-.376-.83H9.602a.5.5 0 0 0-.376.83l2.398 2.74a.5.5 0 0 0 .752 0Z'}))))})),h('cancel-icon',(function(e){return W.createElement('svg',zr({viewBox:'0 0 24 24',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Hr||(Hr=W.createElement('g',{fillRule:'evenodd'},W.createElement('path',{d:'M9 10.333v-3h12V4H9V1h13a2 2 0 0 1 2 2v5.333a2 2 0 0 1-1.85 1.995l-.15.005H9ZM2 1h7v3H0V3a2 2 0 0 1 2-2Z'}),W.createElement('path',{d:'M2 1h1v9.333H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2ZM2 13.667h1V23H2a2 2 0 0 1-2-2v-5.333a2 2 0 0 1 2-2ZM6 1h3v9.333H6zM6 13.667h3V23H6zM21 13.667h1a2 2 0 0 1 2 2V21a2 2 0 0 1-2 2h-1v-9.333Z'}),W.createElement('path',{d:'M0 7.333h9v3H2a2 2 0 0 1-2-2v-1ZM9 13.667h13a2 2 0 0 1 2 2v1H9v-3ZM2 13.667h7v3H0v-1a2 2 0 0 1 2-2ZM9 20h15v1a2 2 0 0 1-2 2H9v-3ZM0 20h9v3H2a2 2 0 0 1-2-2v-1Z'}))))})),h('copy-icon',(function(e){return W.createElement('svg',_r({viewBox:'0 0 24 23',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Kr||(Kr=W.createElement('g',{fillRule:'evenodd'},W.createElement('rect',{x:1.5,y:7.5,width:15,height:14,rx:2}),W.createElement('path',{d:'M6 2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4v-2.6h3v-12H9V6H6V2Z',fillRule:'nonzero'}))))})),h('delete-icon',(function(e){return W.createElement('svg',Ur({viewBox:'0 0 24 23',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Vr||(Vr=W.createElement('g',{fillRule:'evenodd'},W.createElement('path',{opacity:.66,d:'M11 9.5v9H8v-9zM16 9.5v9h-3v-9z'}),W.createElement('path',{d:'M16 0a2 2 0 0 1 2 2v3h4.5a1.5 1.5 0 0 1 0 3H21v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8H1.5a1.5 1.5 0 0 1 0-3H6V2a2 2 0 0 1 2-2h8Zm2 8H6v12h12V8Zm-3-5H9v2h6V3Z',fillRule:'nonzero',opacity:.6}))))})),h('fixed-icon',(function(e){return W.createElement('svg',Zr({xmlns:'http://www.w3.org/2000/svg',fill:'currentColor',viewBox:'0 0 1024 1024','data-spm-anchor-id':'a1z1go8z.25060599.0.i11.71e369e4cItcn5',className:'icon'},e),Wr||(Wr=W.createElement('path',{d:'m750.848 28.928 245.248 242.944a66.048 66.048 0 1 1-93.184 93.184l-25.6-19.456-249.6 353.792 78.336 78.336a66.048 66.048 0 0 1-93.184 92.672l-460.8-464.64a66.048 66.048 0 0 1 93.184-93.184l76.8 78.336 354.048-249.856-18.176-18.944a66.048 66.048 0 1 1 93.184-93.184zM380.672 732.416l-91.904-90.88c-74.24 89.6-191.488 219.904-212.736 247.04a419.84 419.84 0 0 0-70.656 128 419.84 419.84 0 0 0 128-70.144c27.136-21.248 157.44-138.496 246.528-214.016z','data-spm-anchor-id':'a1z1go8z.25060599.0.i9.71e369e4cItcn5'})))})),h('no-fixed-icon',(function(e){return W.createElement('svg',Xr({xmlns:'http://www.w3.org/2000/svg',fill:'currentColor',viewBox:'0 0 1024 1024','data-spm-anchor-id':'a1z1go8z.25060599.0.i10.71e369e4cItcn5',className:'icon'},e),qr||(qr=W.createElement('path',{d:'M160.256 816.64C116.224 872.448 102.4 921.6 102.4 921.6s49.152-13.824 104.96-57.856c22.016-17.408 128-112.64 200.704-174.08l-73.728-73.728c-61.44 72.704-157.184 178.688-174.08 200.704zm488.448-607.232-206.336 145.92 226.304 226.304 145.92-206.336 15.872 15.872c20.992 20.992 54.784 20.992 75.776 0s20.992-54.784 0-75.776l-197.12-197.12c-20.992-20.992-54.784-20.992-75.776 0-20.992 20.992-20.992 54.784 0 75.776l15.36 15.36zm-400.896 125.44c-9.728 2.048-18.944 6.656-26.624 14.336-20.992 20.992-20.992 54.784 0 75.776L599.04 802.816c20.992 20.992 54.784 20.992 75.776 0 7.68-7.68 12.288-16.896 14.336-26.624L247.808 334.848z','data-spm-anchor-id':'a1z1go8z.25060599.0.i12.71e369e4cItcn5'})),Yr||(Yr=W.createElement('path',{d:'M840.704 879.104c-9.728 0-19.456-3.584-27.136-11.264l-657.92-657.408c-14.848-14.848-14.848-39.424 0-54.272 14.848-14.848 39.424-14.848 54.272 0l657.92 657.92c14.848 14.848 14.848 39.424 0 54.272-7.168 7.168-16.896 10.752-27.136 10.752z','data-spm-anchor-id':'a1z1go8z.25060599.0.i13.71e369e4cItcn5'})))})),h('editor-shortcut',(function(e){return W.createElement('svg',Ha({className:'icon',viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg'},e),La||(La=W.createElement('path',{d:'M32 160h960v704H32V160zm64 64v576h832V224H96zm64 160h96v64h-96v-64zm0-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm96 0h96v64h-96v-64zm-128-96h64v64h-64v-64zm96 0h128v64H736v-64zM160 480h128v64H160v-64zm160 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h160v64H704v-64zm-544 96h160v64H160v-64zm192 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h224v64H640v-64zm-480 96h128v64H160v-64zm576 0h128v64H736v-64zm-416 0h384v64H320v-64z',fill:'currentColor'})))})),h('display-inline',(function(e){return W.createElement('svg',Jn({xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 20 8',className:'icon'},e),Xn||(Xn=W.createElement('path',{d:'M14.814 6.25c.258.248.567.435.927.56s.76.19 1.18.19c.29 0 .51-.014.68-.042.167-.028.34-.07.53-.123.143-.04.28-.09.41-.146l.41-.19V5.13h-.153c-.07.06-.157.134-.265.22a3.337 3.337 0 0 1-.35.237 2.11 2.11 0 0 1-.484.22 1.798 1.798 0 0 1-1.1-.01 1.403 1.403 0 0 1-.523-.3 1.566 1.566 0 0 1-.38-.57c-.1-.24-.152-.54-.152-.9 0-.346.048-.638.14-.878s.217-.437.368-.58c.16-.155.33-.26.52-.33a1.786 1.786 0 0 1 1.117-.013c.165.055.317.124.458.205a4.385 4.385 0 0 1 .643.47h.17V1.52c-.107-.05-.23-.107-.37-.168a3.613 3.613 0 0 0-1.003-.27 4.736 4.736 0 0 0-.65-.04c-.436 0-.837.07-1.205.207s-.674.33-.923.59c-.26.26-.458.58-.59.95S14 3.57 14 4.02c0 .488.07.918.213 1.29s.343.683.6.933zm-3.264.608c.272-.075.52-.2.75-.377a1.5 1.5 0 0 0 .46-.56 1.72 1.72 0 0 0 .17-.77c0-.4-.11-.72-.332-.96-.22-.244-.52-.404-.896-.48v-.04a1.46 1.46 0 0 0 .623-.516c.147-.22.22-.474.22-.763 0-.25-.052-.47-.16-.66a1.152 1.152 0 0 0-.49-.46 2.06 2.06 0 0 0-.64-.212A7.67 7.67 0 0 0 10.237 1H8v5.97h2.515c.418 0 .763-.037 1.035-.112zM9.478 2.095h.14c.29 0 .517.002.678.006.162.01.296.03.404.07a.46.46 0 0 1 .253.23.69.69 0 0 1 .072.298.85.85 0 0 1-.062.34.492.492 0 0 1-.263.24 1.052 1.052 0 0 1-.39.08c-.166.006-.366.01-.6.01h-.232v-1.27zm.108 3.78h-.108V4.388h.324c.222 0 .434 0 .638.004a1.8 1.8 0 0 1 .48.056c.17.05.29.127.36.23.07.104.106.25.106.44 0 .144-.03.272-.087.383s-.17.2-.32.27-.32.1-.5.11c-.18.004-.48.004-.9.004zm-6.64-.106h2.187l.41 1.2h1.574L4.935 1.03H3.182L1 6.97h1.535l.412-1.2zM4.04 2.55l.727 2.13H3.313l.727-2.13z'})))})),h('display-block',(function(e){return W.createElement('svg',tr({xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 22 14',className:'icon'},e),Gn||(Gn=W.createElement('path',{opacity:.15,d:'M19 3v8H3V3h16m1-1H2v10h18V2z'})),Qn||(Qn=W.createElement('path',{d:'M19.8 1H2.2A1.2 1.2 0 0 0 1 2.2v9.6A1.2 1.2 0 0 0 2.2 13h17.6a1.2 1.2 0 0 0 1.2-1.2V2.2A1.2 1.2 0 0 0 19.8 1zm.2 11H2V2h18v10z'})),er||(er=W.createElement('path',{opacity:.35,d:'M3 3h16v8H3z'})))})),h('display-inline-block',(function(e){return W.createElement('svg',or({xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 28 14',className:'icon'},e),nr||(nr=W.createElement('path',{d:'M25 3v8H3V3h22m1-1H2v10h24V2z',opacity:.15})),rr||(rr=W.createElement('path',{opacity:.35,d:'M8.418 9.8H7.66L7.25 11h1.58l-.232-.676-.18-.525zM3 11h.567l2.916-7.94h3.15L11 6.78V3H3v8zm15.12-1.002a3.302 3.302 0 0 1-.48-.586c-.173.343-.42.653-.73.888.002 0 .004-.002.005-.003l-.008.006.003-.003a3.145 3.145 0 0 1-1.092.55c-.4.11-.825.15-1.303.15h6.017a4.416 4.416 0 0 1-1.12-.215 3.51 3.51 0 0 1-1.292-.787zM14.237 3c.49 0 .853.014 1.167.06.335.05.656.16.953.314h.003l.004.003c.365.19.694.492.898.866.13.234.197.49.24.747.16-.298.343-.58.578-.82v-.002c.358-.366.8-.643 1.287-.826a4.373 4.373 0 0 1 1.557-.272 5.67 5.67 0 0 1 1.442.18l.01.002.01.003c.205.06.4.126.59.208.15.064.283.125.407.185l.562.274v3.016h-1.54l-.28-.24a7.018 7.018 0 0 0-.233-.188 2.703 2.703 0 0 0-.26-.175 1.594 1.594 0 0 0-.277-.125h-.006l-.2-.03a.772.772 0 0 0-.26.042l-.16.102a.63.63 0 0 0-.13.22 1.486 1.486 0 0 0-.075.516c0 .266.04.436.074.513a.59.59 0 0 0 .13.212l.15.09h.003a.868.868 0 0 0 .265.045l.236-.037h.008a1.04 1.04 0 0 0 .25-.113l.007-.004.01-.005.24-.16a6.41 6.41 0 0 0 .216-.17l.285-.254h1.536v3.017l-.59.266c-.15.066-.292.13-.422.184a4.19 4.19 0 0 1-.53.19 5.918 5.918 0 0 1-.636.15c-.076.012-.16.02-.24.026H25V3H14.237z'})),ar||(ar=W.createElement('path',{d:'M25.8 1H2.2A1.2 1.2 0 0 0 1 2.2v9.6A1.2 1.2 0 0 0 2.2 13h23.6a1.2 1.2 0 0 0 1.2-1.2V2.2A1.2 1.2 0 0 0 25.8 1zm.2 11H2V2h24v10zm-7.186-2.72c.258.248.567.435.927.56s.76.19 1.18.19c.29 0 .51-.014.68-.042.167-.028.34-.07.53-.123.143-.04.28-.09.41-.146l.412-.19V8.16h-.154c-.07.06-.157.134-.265.22a3.337 3.337 0 0 1-.35.237 2.11 2.11 0 0 1-.485.22 1.798 1.798 0 0 1-1.1-.01 1.403 1.403 0 0 1-.523-.3c-.15-.14-.28-.33-.38-.57a2.36 2.36 0 0 1-.152-.9c0-.347.047-.64.14-.88s.216-.433.367-.58c.157-.15.33-.26.517-.325a1.786 1.786 0 0 1 1.116-.014c.164.056.316.125.457.206a4.868 4.868 0 0 1 .644.466h.17V4.54a13.03 13.03 0 0 0-.367-.168 3.667 3.667 0 0 0-1.005-.27 4.736 4.736 0 0 0-.65-.04c-.436 0-.837.07-1.205.207s-.675.333-.924.59c-.26.262-.457.58-.59.95S18 6.6 18 7.055c0 .488.07.918.213 1.29s.343.683.6.933zm-3.264.607c.272-.076.52-.2.75-.38.195-.15.35-.338.46-.567.113-.23.17-.488.17-.778 0-.4-.11-.722-.332-.967-.22-.245-.52-.406-.896-.484v-.03a1.46 1.46 0 0 0 .623-.51 1.36 1.36 0 0 0 .22-.77c0-.25-.052-.47-.16-.665a1.15 1.15 0 0 0-.49-.465 2.065 2.065 0 0 0-.64-.215A7.67 7.67 0 0 0 14.237 4H12v6h2.515c.418 0 .763-.037 1.035-.113zM13.478 5.1h.14c.29 0 .517.002.678.006s.296.027.404.07c.12.05.206.123.253.223a.69.69 0 0 1 .072.29.86.86 0 0 1-.062.34c-.042.1-.13.18-.263.24a1.05 1.05 0 0 1-.39.08c-.166.007-.366.01-.6.01h-.233V5.1zm.108 3.8h-.108V7.405h.324c.222 0 .434 0 .638.004.203 0 .363.02.48.05.17.05.29.13.36.23s.106.25.106.44c0 .144-.03.272-.087.384s-.17.2-.32.27a1.257 1.257 0 0 1-.5.104c-.18.003-.48.004-.9.004zm-6.64-.1h2.187l.41 1.2h1.574L8.935 4.06H7.182L5 10h1.535l.412-1.2zM8.04 5.58l.727 2.13H7.313l.727-2.13z'})))})),h('display-flex',(function(e){return W.createElement('svg',hr({xmlns:'http://www.w3.org/2000/svg',viewBox:'0 0 23 14',className:'icon'},e),ir||(ir=W.createElement('path',{d:'M21 2v10H2V2h19zm1-1H1v12h21V1z',opacity:.15})),cr||(cr=W.createElement('path',{d:'M1.2 0A1.2 1.2 0 0 0 0 1.2v11.6A1.2 1.2 0 0 0 1.2 14h20.6a1.2 1.2 0 0 0 1.2-1.2V1.2A1.2 1.2 0 0 0 21.8 0H1.2zM22 13H1V1h21v12z'})),sr||(sr=W.createElement('path',{opacity:.4,d:'M3 3h5v8H3z'})),dr||(dr=W.createElement('path',{d:'M4 4v6h3V4H4zm4-1v8H3V3h5z'})),lr||(lr=W.createElement('path',{opacity:.4,d:'M9 3h5v8H9z'})),ur||(ur=W.createElement('path',{d:'M10 4v6h3V4h-3zm4-1v8H9V3h5z'})),pr||(pr=W.createElement('path',{opacity:.4,d:'M15 3h5v8h-5z'})),fr||(fr=W.createElement('path',{d:'M16 4v6h3V4h-3zm4-1v8h-5V3h5z'})))})),h('back-up',(function(e){return W.createElement('svg',ma({viewBox:'0 0 32 32',xmlns:'http://www.w3.org/2000/svg',xmlnsXlink:'http://www.w3.org/1999/xlink',className:'icon'},e),fa||(fa=W.createElement('defs',null,W.createElement('linearGradient',{x1:'100%',y1:'101.089%',x2:'0%',y2:'-14.125%',id:'back-up_svg__c'},W.createElement('stop',{stopColor:'#FFF',offset:'0%'}),W.createElement('stop',{stopColor:'#FFF8F8',offset:'46.533%'}),W.createElement('stop',{stopColor:'#DDFEEB',offset:'100%'})),W.createElement('linearGradient',{x1:'100%',y1:'51.269%',x2:'0%',y2:'48.407%',id:'back-up_svg__f'},W.createElement('stop',{stopColor:'#FFF',offset:'0%'}),W.createElement('stop',{stopColor:'#FFF8F8',offset:'46.533%'}),W.createElement('stop',{stopColor:'#DDFEEB',offset:'100%'})),W.createElement('filter',{x:'-24.3%',y:'-19.2%',width:'148.6%',height:'153.6%',filterUnits:'objectBoundingBox',id:'back-up_svg__a'},W.createElement('feOffset',{dy:1,in:'SourceAlpha',result:'shadowOffsetOuter1'}),W.createElement('feGaussianBlur',{stdDeviation:1,in:'shadowOffsetOuter1',result:'shadowBlurOuter1'}),W.createElement('feColorMatrix',{values:'0 0 0 0 0.179423161 0 0 0 0 0.342133642 0 0 0 0 0.637515745 0 0 0 0.650991587 0',in:'shadowBlurOuter1'})),W.createElement('filter',{x:'-25%',y:'-125%',width:'150%',height:'450%',filterUnits:'objectBoundingBox',id:'back-up_svg__d'},W.createElement('feOffset',{dy:1,in:'SourceAlpha',result:'shadowOffsetOuter1'}),W.createElement('feGaussianBlur',{stdDeviation:1,in:'shadowOffsetOuter1',result:'shadowBlurOuter1'}),W.createElement('feColorMatrix',{values:'0 0 0 0 0.179423161 0 0 0 0 0.342133642 0 0 0 0 0.637515745 0 0 0 0.650991587 0',in:'shadowBlurOuter1'})),W.createElement('rect',{id:'back-up_svg__e',x:0,y:0,width:14,height:2,rx:1}),W.createElement('path',{d:'M15.962 12.004c.157.01.312.056.452.139l.101.07.095.082L23 18.322a1 1 0 0 1-1.32 1.498l-.094-.083-4.61-4.315.001 8.788c0 .466-.447.843-1 .843-.512 0-.935-.325-.993-.745l-.007-.098v-8.866l-4.372 4.393a1 1 0 0 1-1.497-1.32l.083-.095 6.004-6.027a.996.996 0 0 1 .648-.29h.119Z',id:'back-up_svg__b'}))),ha||(ha=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('rect',{fill:'#2468F2',width:32,height:32,rx:16}),W.createElement('g',{fillRule:'nonzero'},W.createElement('use',{fill:'#000',filter:'url(#back-up_svg__a)',xlinkHref:'#back-up_svg__b'}),W.createElement('use',{fill:'url(#back-up_svg__c)',xlinkHref:'#back-up_svg__b'})),W.createElement('g',{transform:'translate(9 7.702)',fillRule:'nonzero'},W.createElement('use',{fill:'#000',filter:'url(#back-up_svg__d)',xlinkHref:'#back-up_svg__e'}),W.createElement('use',{fill:'url(#back-up_svg__f)',xlinkHref:'#back-up_svg__e'})))))})),h('down-arrow',ya),h('editor-search',(function(e){return W.createElement('svg',Ea({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ba||(ba=W.createElement('path',{d:'M7.5 12A4.505 4.505 0 0 1 3 7.5C3 5.019 5.019 3 7.5 3S12 5.019 12 7.5 9.981 12 7.5 12Zm6.294 1.089-2.071-2.07A5.482 5.482 0 0 0 13 7.5C13 4.468 10.533 2 7.5 2A5.506 5.506 0 0 0 2 7.5C2 10.532 4.467 13 7.5 13a5.475 5.475 0 0 0 3.516-1.274l2.071 2.071.707-.708Z',fill:'currentColor',fillRule:'evenodd'})))})),h('editor-help',(function(e){return W.createElement('svg',Ca({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),wa||(wa=W.createElement('path',{d:'m7.976 1 .241.003A7 7 0 1 1 7.977 1Zm.004 1-.225.005A6 6 0 1 0 7.98 2Zm.03 8.8a.6.6 0 1 1 .004 1.2.6.6 0 0 1-.005-1.2Zm-.024-6.787c1.3-.004 2.368 1.003 2.455 2.258l.007.18c.01.33-.07.742-.325 1.15-.258.414-.656.734-1.2.922l-.272.085c-.12.049-.144.159-.146.744v.407l-1 .003v-.296c.007-1.197.136-1.59.83-1.81l.12-.034c.406-.11.663-.3.82-.55.111-.18.16-.366.171-.51l.002-.102a1.453 1.453 0 0 0-2.9-.13l-.007.14-1 .002a2.453 2.453 0 0 1 2.445-2.46Z'})))})),h('editor-fixed',(function(e){return W.createElement('svg',Ia({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Sa||(Sa=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h16v16H0z'}),W.createElement('path',{d:'m14.333 5.928-4.26-4.26a.572.572 0 0 0-.813 0L6.475 4.455A5.698 5.698 0 0 0 2.27 5.67a.574.574 0 0 0-.047.854l3.142 3.142-3.724 3.72a.273.273 0 0 0-.08.17l-.059.643c-.015.163.114.301.275.301.009 0 .017 0 .026-.002l.643-.059a.273.273 0 0 0 .17-.079l3.724-3.724 3.14 3.141a.572.572 0 0 0 .855-.046 5.711 5.711 0 0 0 1.214-4.209l2.785-2.785a.573.573 0 0 0 0-.81Zm-3.667 2.718-.424.423.066.595a4.494 4.494 0 0 1-.526 2.661L3.678 6.217a4.471 4.471 0 0 1 2.66-.526l.595.066.424-.424 2.311-2.312 3.311 3.311-2.313 2.314Zm0 0-.424.423.066.595a4.494 4.494 0 0 1-.526 2.661L3.678 6.217a4.471 4.471 0 0 1 2.66-.526l.595.066.424-.424 2.311-2.312 3.311 3.311-2.313 2.314Z',fill:'currentColor',fillRule:'nonzero'}))))})),h('editor-no-fixed',(function(e){return W.createElement('svg',Ra({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),xa||(xa=W.createElement('g',{fillRule:'nonzero',fill:'none'},W.createElement('path',{d:'M0 0h16v16H0z'}),W.createElement('path',{d:'m14.333 5.928-4.26-4.26a.572.572 0 0 0-.813 0L6.475 4.455A5.698 5.698 0 0 0 2.27 5.67a.574.574 0 0 0-.047.854l3.142 3.142-3.724 3.72a.273.273 0 0 0-.08.17l-.059.643c-.015.163.114.301.275.301.009 0 .017 0 .026-.002l.643-.059a.273.273 0 0 0 .17-.079l3.724-3.724 3.14 3.141a.572.572 0 0 0 .855-.046 5.711 5.711 0 0 0 1.214-4.209l2.785-2.785a.573.573 0 0 0 0-.81Zm-3.667 2.718-.424.423.066.595a4.494 4.494 0 0 1-.526 2.661L3.678 6.217a4.471 4.471 0 0 1 2.66-.526l.595.066.424-.424 2.311-2.312 3.311 3.311-2.313 2.314Z',fill:'currentColor'}))))})),h('editor-renderer',(function(e){return W.createElement('svg',Oa({viewBox:'0 0 48 48',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Na||(Na=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h48v48H0z'}),W.createElement('g',{strokeWidth:1.25,stroke:'currentColor',strokeLinejoin:'round'},W.createElement('path',{d:'M16.701 16.702h5.848v5.848h-5.848zM25.456 16.702h5.848v5.848h-5.848zM16.701 25.451h5.848v5.848h-5.848zM25.456 25.451h5.848v5.848h-5.848z'})))))})),h('editor-outline',(function(e){return W.createElement('svg',Aa({viewBox:'0 0 48 48',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ka||(ka=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h48v48H0z'}),W.createElement('g',{transform:'translate(14 14)'},W.createElement('path',{d:'M0 0h20v20H0z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',d:'M3.121 5.625v11.25M3.121 10.625h2.5M3.121 16.875h2.5'}),W.createElement('circle',{fill:'currentColor',cx:3.125,cy:4.375,r:1.875}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinejoin:'round',d:'M8.747 3.125h8.728v2.5H8.747zM8.747 8.75h8.728v2.5H8.747zM8.747 14.375h8.728v2.5H8.747z'})))))})),h('editor-code',(function(e){return W.createElement('svg',Pa({viewBox:'0 0 48 48',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ma||(Ma=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h48v48H0z'}),W.createElement('path',{d:'M14 14h20v20H14z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinejoin:'round',d:'M16.5 17.75h15v12.5h-15z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',d:'m25.709 20.841-3.362 6.284'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',strokeLinejoin:'round',d:'m27.643 22.233 1.768 1.768-1.766 1.766M20.582 22.233l-1.768 1.768 1.766 1.766'}))))})),h('editor-common-config',(function(e){return W.createElement('svg',Da({viewBox:'0 0 20 20',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Fa||(Fa=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M0 0h20v20H0z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinejoin:'round',d:'m10 1.25 7.578 4.375v8.75L10 18.75l-7.578-4.375v-8.75z'}),W.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',d:'m5.824 7.826 3.955 2.418M14.054 7.826l-4.275 2.418M9.779 14.845v-4.601'}))))})),h('editor-double-arrow',(function(e){return W.createElement('svg',$a({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ba||(Ba=W.createElement('path',{d:'m3.713 3.001 4.95 4.95-.003.003.003.003-4.95 4.95L3 12.194l4.24-4.24L3 3.714l.713-.713Zm3.997 0 4.95 4.948-.004.004.004.003-4.95 4.95-.713-.714 4.24-4.239-4.24-4.24L7.71 3Z',fill:'currentColor',fillRule:'evenodd'})))})),h('search-clear',(function(e){return W.createElement('svg',ja({viewBox:'0 0 12 12',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ta||(Ta=W.createElement('g',{fill:'none',fillRule:'evenodd'},W.createElement('path',{d:'M6 12A6 6 0 1 1 6 0a6 6 0 0 1 0 12Z',fill:'currentColor'}),W.createElement('path',{fill:'#FFF',d:'M8.475 4.232 6.707 6l1.768 1.768-.707.707L6 6.707 4.232 8.475l-.707-.707L5.293 6 3.525 4.232l.707-.707L6 5.293l1.768-1.768z'}))))}));var za=function(e){function t(t){var n=e.call(this,t)||this;n.ref=Z.createRef(),n.localStorageKey='amis-editor-search-panel',n.curTagFolded={},t.searchPanelUUID&&(n.localStorageKey=t.searchPanelUUID);var r=[],a={};if(t.allResult&&t.allResult.length>0){var o=n.getResultTags(t.allResult);r=o.curResultTags,a=o.curResultByTag}return n.state={resultTags:r,resultByTag:a,curKeyword:t.externalKeyword||'',searchResult:[],searchResultByTag:{},visible:!1,curKeywordSearchHistory:n.getSearchHistory(),toggleTagFolderStatus:!0},n}return K(t,e),t.prototype.componentDidMount=function(){var e,t;(null===(t=null===(e=this.ref.current)||void 0===e?void 0:e.childNodes[0])||void 0===t?void 0:t.childNodes[0])&&(this.curInputBox=this.ref.current.childNodes[0].childNodes[0],this.curInputBox.addEventListener('keyup',this.bindEnterEvent))},t.prototype.componentWillUnmount=function(){this.curInputBox&&this.curInputBox.removeEventListener('keyup',this.bindEnterEvent)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this,n=e.externalKeyword,r=e.allResult;if(n!==this.state.curKeyword&&this.setState({curKeyword:n},(function(){t.groupedResultByKeyword(n)})),r!==this.props.allResult){var a=[],o={};if(r&&r.length>0){var i=this.getResultTags(r);a=i.curResultTags,o=i.curResultByTag}this.setState({resultTags:a,resultByTag:o})}},t.prototype.getSearchHistory=function(){var e=[];if(window.localStorage){var t=window.localStorage.getItem(this.localStorageKey);if(t){var n=JSON.parse(t);n&&Array.isArray(n)&&(e=n)}}return e},t.prototype.getResultTags=function(e){var t=[],n={},r=this.props.tagKey||'tags';return e.forEach((function(e){!He(e)&&e[r]&&(Array.isArray(e[r])?e[r].concat():e[r]?[e[r]]:[B('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(r){t.indexOf(r)<0&&t.push(r),n[r]||(n[r]=[]),n[r].push(e)}))})),{curResultTags:t,curResultByTag:n}},t.prototype.groupedResultByKeyword=function(e){void 0===e&&(e='');var t=this.props.allResult,n=[],r={},a=e||this.state.curKeyword,o=this.props.tagKey||'tags';if(a&&new RegExp(ln(a),'i'),t.length&&He(t[0]))ze(t,e).forEach((function(e){n.push(e)}));else{var i=new Map;ze(t,e,{keys:['name','description','scaffold.type','searchKeywords']}).forEach((function(e){i.set(e.id,e)})),t.forEach((function(e){i.has(e.id)&&(e[o]?(Array.isArray(e[o])?e[o].concat():e[o]?[e[o]]:[B('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(t){r[t]=r[t]||[],r[t].push(e)})):n.push(e))}))}this.setState({searchResult:n,searchResultByTag:r})},t.prototype.bindFocusEvent=function(){this.setState({visible:!0})},t.prototype.bindBlurEvent=function(){var e=this,t=this.state.curKeyword;this.setState({visible:!1},(function(){t&&e.addSearchHistory(t),e.props.onChange(t)}))},t.prototype.updateCurKeyword=function(e){var t=this,n=e;n=n?n.trim():n,this.setState({curKeyword:n},(function(){t.groupedResultByKeyword(n),t.props.immediateChange&&t.props.onChange(n)}))},t.prototype.changeTagFoldStatus=function(e,t){t.preventDefault(),t.stopPropagation(),this.curInputBox.focus(),this.curTagFolded[e]=!this.curTagFolded[e],this.setState({toggleTagFolderStatus:!this.state.toggleTagFolderStatus})},t.prototype.bindEnterEvent=function(e){var t=this;e.preventDefault();var n=this.state.curKeyword;13===(null==e?void 0:e.keyCode)&&this.setState({visible:!1},(function(){t.addSearchHistory(n),t.props.onChange(n)}))},t.prototype.bindClearActionEvent=function(){var e=this;this.setState({curKeyword:'',searchResult:[],searchResultByTag:{}},(function(){e.props.onChange('')}))},t.prototype.bindTagClickEvent=function(e){var t,n=this,r=this.state.resultByTag[e];this.setState({visible:!1,curKeyword:e,searchResult:r,searchResultByTag:(t={},t[e]=r,t)},(function(){n.props.onTagChange&&n.props.onTagChange(e)}))},t.prototype.addSearchHistory=function(e){var t=this.state.curKeywordSearchHistory;t.indexOf(e)>-1||(10===t.length?(t.shift(),t.push(e)):t.push(e),this.updateSearchHistory())},t.prototype.clickKeywordEvent=function(e){var t=this;this.setState({visible:!1,curKeyword:e},(function(){t.groupedResultByKeyword(e),t.props.onChange(e)}))},t.prototype.deleteSearchHistory=function(e,t){e.preventDefault(),e.stopPropagation(),this.curInputBox.focus();var n=this.state.curKeywordSearchHistory,r=n.indexOf(t);n.splice(r,1),this.updateSearchHistory()},t.prototype.clearSearchHistory=function(e){var t=this;e.preventDefault(),e.stopPropagation(),this.curInputBox.focus();var n=this.state.curKeywordSearchHistory;n&&n.length>0&&this.setState({curKeywordSearchHistory:[]},(function(){t.updateSearchHistory()}))},t.prototype.updateSearchHistory=function(){if(window.localStorage){var e=this.state.curKeywordSearchHistory;window.localStorage.setItem(this.localStorageKey,JSON.stringify(e))}},t.prototype.renderNameByKeyword=function(e,t){if(t&&~e.indexOf(t)){var n=e.indexOf(t),r=n+t.length;return Z.createElement('span',null,e.substring(0,n),Z.createElement('span',{className:'is-keyword'},t),e.substring(r))}return e},t.prototype.resultIsHasScroll=function(e,t){var n=this,r=0;return(e?Object.keys(e):[]).map((function(t){n.curTagFolded[t]?r+=1:r+=e[t].length+1})),r>t},t.prototype.render=function(){var e=this,t=this.props,n=t.allResult,a=t.closeAutoComplete,o=t.immediateChange,i=this.state,c=i.resultTags,s=i.curKeyword,d=i.searchResult,l=i.searchResultByTag,p=i.visible,f=l?Object.keys(l):[],h=L([],H(this.state.curKeywordSearchHistory),!1).reverse(),m=!1;return p&&n&&n.length>0&&(m=!0),a&&s&&(m=!1),a&&(!c||c&&0===c.length)&&(!h||h&&0===h.length)&&(m=!1),Z.createElement('div',{className:'editor-InputSearch-panel',ref:this.ref},Z.createElement(u,{className:'editor-InputSearch',value:s,onChange:this.updateCurKeyword,placeholder:B('2168c5735883bd040eaf09909d0911b8'),clearable:!1,onFocus:this.bindFocusEvent,onBlur:this.bindBlurEvent},Z.createElement(Z.Fragment,null,o&&(s?Z.createElement(r,{icon:'search-clear',className:'icon delete-btn-icon',onClick:this.bindClearActionEvent}):Z.createElement(r,{icon:'editor-search',className:'icon',onClick:this.bindBlurEvent})),!o&&Z.createElement(Z.Fragment,null,s&&Z.createElement(r,{icon:'search-clear',className:'icon delete-btn-icon margin-right',onClick:this.bindClearActionEvent}),Z.createElement(r,{icon:'editor-search',className:'icon',onClick:this.bindBlurEvent})))),Z.createElement('div',{className:'editor-InputSearch-content '.concat(m?'':'hidden-status')},!s&&h&&h.length>0&&Z.createElement('div',{className:'search-history '.concat(c&&c.length>0?'has-border-bottom':'')},Z.createElement('div',{className:'header'},Z.createElement('div',{className:'header-title'},B('e9c38f88375807704270aa3572454976')),Z.createElement('div',{className:'header-clear-icon',onClick:function(t){return e.clearSearchHistory(t)}},B('288f0c404c4e546aa3683ff5054e85e2'))),Z.createElement('div',{className:'history-cont '.concat(h.length>6?'hasScrollBtn':'')},h.map((function(t,n){return Z.createElement('div',{className:'history-item',key:''.concat(t,'-').concat(n),onClick:function(){return e.clickKeywordEvent(t)}},Z.createElement('div',{className:'history-keyword'},t),Z.createElement('div',{className:'delete-icon',title:B('4b9bc9abf2a2beb3772d903a3d01d1de')},Z.createElement(r,{icon:'close',onClick:function(n){return e.deleteSearchHistory(n,t)}})))})))),s&&0===d.length&&0===f.length&&Z.createElement('div',{className:'search-result-list'},Z.createElement('div',{className:'search-result-placeholder'},B('9d3128a1675de32cdd290b31140a7290'))),s&&d.length>0&&Z.createElement('div',{className:'search-result-list '.concat(d.length>6?'hasScrollBtn':'')},d.length>1&&Z.createElement('div',{className:'subRenderers-list only-one-tag'},d.map((function(t,n){return Z.createElement('div',{className:'subRenderers-item',key:'subRenderers-only-one-tag-'.concat(n),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))),s&&f.length>0&&Z.createElement('div',{className:'search-result-list '.concat(this.resultIsHasScroll(l,6)?'hasScrollBtn':'')},f.length>1&&f.map((function(t,n){return Z.createElement('div',{className:'multiple-subRenderers-list',key:''.concat(t,'-subRenderers-list')},Z.createElement('div',{className:X('subRenderers-header',{'is-folded':!!e.curTagFolded[t]}),title:e.curTagFolded[t]?B('e4cefe7df36e92da1d7e875b92655507'):B('7ae451de83aa6f5f140e941904377391'),onClick:function(n){e.changeTagFoldStatus(t,n)}},t,Z.createElement(r,{icon:'right-arrow-bold'})),Z.createElement('div',{className:X('subRenderers-list',{'is-folded':!!e.curTagFolded[t]})},l[t]&&l[t].map((function(t,n){return Z.createElement('div',{className:'subRenderers-item',key:n,onClick:function(){return e.clickKeywordEvent(t.name)}},e.renderNameByKeyword(t.name,s))}))))})),1===f.length&&f.map((function(t,n){return Z.createElement('div',{className:'subRenderers-list only-one-tag',key:'subRenderers-tag-'.concat(t)},l[t]&&l[t].map((function(t,n){return Z.createElement('div',{className:'subRenderers-item',key:'subRenderers-only-one-tag-'.concat(n),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))}))),!s&&c&&c.length>0&&Z.createElement('div',{className:'tag-list'},Z.createElement('div',{className:'header'},B('accb901a02b1415b40d95cdd31b8da1d')),Z.createElement('div',{className:'tag-list-cont'},c.length?c.map((function(t,n){return Z.createElement('div',{className:'tag-item',key:''.concat(t,'-').concat(n),onClick:function(){return e.bindTagClickEvent(t)}},t)})):null))))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'bindFocusEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'bindBlurEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'updateCurKeyword',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,Object]),V('design:returntype',void 0)],t.prototype,'changeTagFoldStatus',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'bindEnterEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'bindClearActionEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'bindTagClickEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'addSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'clickKeywordEvent',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,String]),V('design:returntype',void 0)],t.prototype,'deleteSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'clearSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'updateSearchHistory',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,String]),V('design:returntype',void 0)],t.prototype,'renderNameByKeyword',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Number]),V('design:returntype',void 0)],t.prototype,'resultIsHasScroll',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),Ka=function(e){function t(t){var n=e.call(this,t)||this;n.localStorageKey='amis-editor-renderer-search-history';var r=t.store.subRenderersByOrder;r=r.filter((function(e){return!e.disabledRendererPlugin}));var a=t.store,o=a.subRenderersKeywords,i=a.subRenderersTag;return n.state={subRenderersByOrder:r,defaultKeyword:o||i||''},n.lastSubRenderersTag=t.store.subRenderersTag,n.changeSubRenderersTag=n.changeSubRenderersTag.bind(n),n}return K(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.store.subRenderersTag,n=e.store.subRenderersKeywords;t===this.lastSubRenderersTag||n||(this.lastSubRenderersTag=t,this.setState({defaultKeyword:t}))},t.prototype.changeSubRenderersTag=function(e){this.lastSubRenderersTag=e,this.props.store.changeSubRenderersTag(e)},t.prototype.render=function(){var e=this.state,t=e.subRenderersByOrder,n=e.defaultKeyword,r=this.props.store.changeSubRenderersKeywords;return Z.createElement(za,{allResult:t,externalKeyword:n,searchPanelUUID:this.localStorageKey,onChange:r,onTagChange:this.changeSubRenderersTag,immediateChange:!0,closeAutoComplete:!0})},t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),_a=function(e){function t(t){var n=e.call(this,t)||this;n.localStorageKey='amis-editor-custom-renderer-search-history';var r=t.store.customRenderersByOrder;r=r.filter((function(e){return!e.disabledRendererPlugin}));var a=t.store,o=a.customRenderersKeywords,i=a.customRenderersTag;return n.state={customRenderersByOrder:r,defaultKeyword:o||i||''},n}return K(t,e),t.prototype.render=function(){var e=this.state,t=e.customRenderersByOrder,n=e.defaultKeyword,r=this.props.store,a=r.changeCustomRenderersKeywords,o=r.changeCustomRenderersTag;return t&&t.length>0?Z.createElement(za,{allResult:t,externalKeyword:n,immediateChange:!0,closeAutoComplete:!0,searchPanelUUID:this.localStorageKey,onChange:a,onTagChange:o}):null},t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),Va=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={toggleCollapseFolderStatus:!1},t.curCollapseFolded={},t}return K(t,e),t.prototype.handleRegionFilterClick=function(e){var t=e.currentTarget.getAttribute('data-value'),n=this.props,r=n.store,a=n.manager;t=t===r.subRendererRegion?'':t,a.switchToRegion(t)},t.prototype.handleDragStart=function(e,t){var n=e.currentTarget.getAttribute('data-id');e.dataTransfer.setData('dnd-dom/[data-id="'.concat(n,'"]'),'')},t.prototype.handleClick=function(e){var t=e.currentTarget.getAttribute('data-dnd-id');this.props.manager.addElem(t)},t.prototype.changeCollapseFoldStatus=function(e,t){this.curCollapseFolded[e]=!this.curCollapseFolded[e],this.setState({toggleCollapseFolderStatus:!this.state.toggleCollapseFolderStatus}),t.preventDefault(),t.stopPropagation()},t.prototype.renderThumb=function(e){var t=this.props.manager;return e?o(e,{onAction:st},t.env):Z.createElement('p',null,B('c44c6c179c44e794b103053886847dc4'))},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.searchRendererType,o=t.className,i=t.testIdBuilder,c=this.props.groupedRenderers||{},s=Object.keys(c);return Z.createElement('div',{className:X('ae-RendererList',o)},'renderer'===a&&Z.createElement(Ka,{store:n}),'custom-renderer'===a&&Z.createElement(_a,{store:n}),Z.createElement('hr',{className:'margin-top'}),Z.createElement('div',{className:'ae-RendererList-groupWrap hoverShowScrollBar'},s.length?s.map((function(t,a){var o=c[t];return o&&o.length?Z.createElement(Z.Fragment,{key:t},Z.createElement('div',{key:''.concat(t,'-head'),className:'ae-RendererList-head collapse-header',onClick:function(n){e.changeCollapseFoldStatus(t,n)}},t,Z.createElement('div',{className:X('expander-icon',{'is-folded':!!e.curCollapseFolded[t]}),title:e.curCollapseFolded[t]?B('e4cefe7df36e92da1d7e875b92655507'):B('7ae451de83aa6f5f140e941904377391')},Z.createElement(r,{icon:'right-arrow-bold'}))),Z.createElement('div',{key:''.concat(t,'-content'),className:X('ae-RendererList-group collapse-content',{'is-folded':!!e.curCollapseFolded[t]})},o.map((function(t){var o=''.concat(a,'_').concat(t.id),c=cn(t),s='editor-renderer-'.concat(t.plugin.rendererName);return Z.createElement('div',$({key:o,className:'ae-RendererList-item',draggable:!0,'data-id':o,'data-dnd-type':'subrenderer','data-dnd-id':t.id,'data-dnd-data':JSON.stringify(t.scaffold||{type:t.type}),onDragStart:function(n){return e.handleDragStart(n,t.name)}},null==i?void 0:i.getChild(s).getTestId()),Z.createElement('div',{className:'icon-box','data-dnd-id':t.id,title:'点击添加「'.concat(t.name,'」'),onClick:e.handleClick},c&&Z.createElement(r,{icon:t.pluginIcon}),!c&&Z.createElement('i',{className:X('fa-fw',t.icon||'fa fa-circle-thin')})),Z.createElement('div',{className:'ae-RendererInfo','data-dnd-id':t.id,onClick:e.handleClick},t.name),Z.createElement(m,{tooltipClassName:'ae-RendererThumb',trigger:'hover',rootClose:!0,placement:'right',tooltip:{offset:[10,0],children:function(){return Z.createElement('div',null,Z.createElement('div',{className:'ae-Renderer-title'},t.name),t.description||t.docLink?Z.createElement('div',{className:'ae-Renderer-info'},Z.createElement(p,{html:t.description?t.description:''}),t.docLink&&Z.createElement('a',{target:'_blank',href:n.amisDocHost+t.docLink},B('f26225bde6a250894a04db4c53ea03d0'))):null,Z.createElement('div',{className:'ae-Renderer-preview'},e.renderThumb(t.previewSchema)))}}},Z.createElement('div',{className:'ae-RendererIcon'},Z.createElement(r,{icon:'editor-help',className:'icon'}))))})))):null})):Z.createElement('span',null,B('b797a8992ef41320919e45a069f2b459'))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleRegionFilterClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,String]),V('design:returntype',void 0)],t.prototype,'handleDragStart',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,Object]),V('design:returntype',void 0)],t.prototype,'changeCollapseFoldStatus',null),t=_([xe],t)}(Z.Component),Ua=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.handleSelect=function(e){e&&this.props.store.changeRenderersTabsKey(e)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.manager,r=t.renderersTabsKey||'base-renderers',a=t.theme,o=t.customRenderersByOrder||[],i=t.groupedSubRenderers||{},c=t.groupedCustomRenderers||{};return Z.createElement('div',{className:'ae-RendererPanel'},Z.createElement('div',{className:'panel-header'},B('bb79667f37035e9562ec6bcffd6cf8ef')),Z.createElement('div',{className:'ae-RendererPanel-content'},t.showCustomRenderersPanel&&o.length>0&&Z.createElement(v,{theme:a,tabsMode:'line',className:'ae-RendererList-tabs',linksClassName:'ae-RendererList-tabs-header',contentClassName:'ae-RendererList-tabs-content',activeKey:r,onSelect:this.handleSelect},Z.createElement(g,{key:'base-renderers',eventKey:'base-renderers',title:B('5cb297585d4c81bb8fdbd31210a30d6f'),className:'ae-RendererList-tabs-panel base-renderers',mountOnEnter:!0,unmountOnExit:!1},Z.createElement(Va,{groupedRenderers:i,store:t,manager:n,searchRendererType:'renderer'})),Z.createElement(g,{key:'custom-renderers',eventKey:'custom-renderers',title:B('6fce1c9aa3654ae2f0eedcc068a7e189'),className:'ae-RendererList-tabs-panel custom-renderers',mountOnEnter:!0,unmountOnExit:!1},Z.createElement(Va,{groupedRenderers:c,store:t,manager:n,searchRendererType:'custom-renderer'}))),(!t.showCustomRenderersPanel||Object.keys(c).length<1)&&Z.createElement(Va,{className:'only-base-component',groupedRenderers:i,store:t,manager:n,searchRendererType:'renderer'})))},_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleSelect',null),t=_([xe],t)}(Z.Component),Wa=Ae.model('EditorNode',{parentId:'',parentRegion:'',isCommonConfig:!1,id:'',type:'',label:'',regionInfo:Ae.maybe(Ae.frozen()),path:'',schemaPath:'',region:'',preferTag:'',state:Ae.optional(Ae.frozen(),{}),widthMutable:!1,heightMutable:!1,memberIndex:-1,folded:!1,patched:!1,x:0,y:0,w:0,h:0,dialogTitle:'',dialogType:'',children:Ae.optional(Ae.array(Ae.late((function(){return Wa}))),[])}).volatile((function(){return{getData:Ae.frozen()}})).views((function(e){var t,n;return{get info(){return t},getNodeById:function(t,n){for(var r=e.children.concat(),a=void 0;r.length;){var o=r.shift();if(o.id===t&&(!n||o.region===n||o.type===n)){a=o;break}o.children.length&&r.push.apply(r,o.uniqueChildren)}return a},setInfo:function(e){t=e},updateSharedContext:function(e){e&&(null==t?void 0:t.hasOwnProperty('sharedContext'))&&(t.sharedContext=e)},get rendererConfig(){return n},setRendererConfig:function(e){n=e},get isVitualRenderer(){return!!~e.memberIndex},get clickable(){var e,t;return!1!==(null===(e=this.info)||void 0===e?void 0:e.editable)||!(null===(t=this.info)||void 0===t?void 0:t.hostId)},get draggable(){var e;return!(!this.moveable||!1===(null===(e=this.info)||void 0===e?void 0:e.draggable))},get moveable(){var e,t;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.movable)||!Array.isArray(this.schemaParent)||(null===(t=this.host)||void 0===t?void 0:t.memberImmutable(this.parent.region)))},get canMoveUp(){return!(this.isRegion||!this.moveable||!Array.isArray(this.schemaParent)||!this.prevSibling)},get canMoveDown(){return!(this.isRegion||!this.moveable||!Array.isArray(this.schemaParent)||!this.nextSibling)},get removable(){var e;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.removable)||!Array.isArray(this.schemaParent)||!this.host||this.host.memberImmutable(this.parent.region))},get duplicatable(){var e;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.duplicatable)||!Array.isArray(this.schemaParent)||this.host.memberImmutable(this.parent.region))},get replaceable(){var e;return!this.isRegion&&!1!==(null===(e=this.info)||void 0===e?void 0:e.replaceable)},memberImmutable:function(e){var t,n;return!!(!0===(null===(t=this.info)||void 0===t?void 0:t.memberImmutable)||Array.isArray(null===(n=this.info)||void 0===n?void 0:n.memberImmutable)&&~this.info.memberImmutable.indexOf(e))},get isRegion(){return!!e.region},get childRegions(){var e,t,n=this.uniqueChildren.filter((function(e,t,n){return e.isRegion}));if(null===(e=this.info)||void 0===e?void 0:e.multifactor){var r=this.sameIdChild;null===(t=null==r?void 0:r.childRegions)||void 0===t||t.forEach((function(e){return n.push(e)}))}return n},get uniqueChildren(){var t=[],n={};if(e.children.forEach((function(e){var r=e.isRegion?''.concat(e.region,'-').concat(e.id):e.id;n[r]||(n[r]=!0,t.push(e))})),Array.isArray(this.schema)){var r=this.schema.map((function(e){return null==e?void 0:e.$$id})).filter((function(e){return e}));t=t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)}))}return t},get sameIdChild(){var t;return null===(t=this.uniqueChildren)||void 0===t?void 0:t.find((function(t){return!t.isRegion&&t.id===e.id}))},get singleRegion(){return!(1!==this.uniqueChildren.length||!this.uniqueChildren[0].isRegion)},isExists:function(t){return e.children.some((function(e){return e.id===t}))},getChildById:function(t){return e.children.find((function(e){return e.id===t}))},get parent(){try{var t=Me(e,2);return'root'!==(null==t?void 0:t.id)?t:null}catch(e){return null}},get ancestorField(){var t,n,r,a,o=Me(e,4);if('root'===(null==o?void 0:o.id))return null;var i=null!==(n=null===(t=null==o?void 0:o.getComponent())||void 0===t?void 0:t.props)&&void 0!==n?n:{},c=null!==(r=null==i?void 0:i.body)&&void 0!==r?r:[],s=Object.keys(null!==(a=null==i?void 0:i.data)&&void 0!==a?a:{});return Ke(L(L([],H(c.map((function(e){var t;return null!==(t=null==e?void 0:e.name)&&void 0!==t?t:''}))),!1),H(s),!1))},get host(){var t=e.parent;return(null==t?void 0:t.isRegion)&&(t=t.parent),t},get firstChild(){var t=e;if(!t.children.length)return null;for(var n=t.children[0];n;){if(!n.isRegion&&n.id!==t.id)return n;n=n.children.length?n.children[0]:null}return null},get index(){return this.parent.uniqueChildren.indexOf(e)},get prevSibling(){for(var t=this.parent.uniqueChildren,n=t.indexOf(e)-1;n>=0&&t[n];){if(t[n].id!==e.id)return t[n];n--}return null},get nextSibling(){for(var t=this.parent.uniqueChildren,n=t.length,r=t.indexOf(e)+1;r<n&&t[r];){if(t[r].id!==e.id)return t[r];r++}return null},get schema(){if(!ke(e))return null;var t=Pe(e).getSchema(e.id);return this.isRegion&&t?t[e.region]:t},get schemaParent(){var t=Pe(e);return this.isRegion?t.getSchema(e.id):t.getSchemaParentById(e.id)},get isSecondFactor(){var t;return(null===(t=this.parent)||void 0===t?void 0:t.id)===e.id}}})).actions((function(e){function t(e,n){var r=!1,a={};if(e)return n.forEach((function(n){var o=n.split('.');n=o.shift();var i=e[n];if('string'==typeof i)return r=!0,void(a[n]=[yt({type:'tpl',tpl:i,wrapperComponent:'',inline:!1})]);if(Array.isArray(i)){var c=!1,s=i.map((function(e){if('string'==typeof e&&e)return c=!0,yt({type:'tpl',tpl:e,wrapperComponent:'',inline:!1});if(o.length){var n=t(e,[o.join('.')]);n!==e&&(c=!0,e=n)}return e}));c&&(r=!0,a[n]=s)}else i&&(a[n]=[yt(i)],r=!0)})),r&&(e=$($({},e),a)),e}function n(t){var n=Array.isArray(t)?t:t?[t]:[];if(n.length){var r=Pe(e).getIframe(),a=Pe(e).getLayer().getBoundingClientRect(),o=function(e){for(var t=e.concat(),n=t.shift(),r=n.getBoundingClientRect(),a={left:r.left,top:r.top,width:r.width,height:r.height,right:r.right,bottom:r.bottom},o=n.parentElement.closest('.ae-Preview-inner,[data-region]');t.length;){var i=t.shift(),c=i.getBoundingClientRect(),s=i.parentElement.closest('.ae-Preview-inner,[data-region],[data-editor-id]');if(!o&&s)o=s;else if(s&&o&&s!==o)continue;a.left=Math.min(a.left,c.left),a.top=Math.min(a.top,c.top),a.right=Math.max(a.right,c.right),a.bottom=Math.max(a.bottom,c.bottom),a.width=a.right-a.left,a.height=a.bottom-a.top}return a}(n),i={left:o.left-a.left,top:o.top-a.top};if(r){var c=r.getBoundingClientRect();i.left+=c.left,i.top+=c.top}var s=o.height;s&&(e.x=i.left+0,e.y=i.top+0,e.w=o.width,e.h=s)}}var r;return{getClosestParentByType:function(t){for(var n=e;n===n.parent;){if(n.schema.type===t)return n;if('root'===n.id)return;n=n.parent}},getParentNodeByCB:function(t){var n=e;if(!t||'function'!=typeof t)return n;for(;n;){if(t(n))break;if('root'===n.id)return n;n=n.parent}return n},updateIsCommonConfig:function(t){e.isCommonConfig=!!t},addChild:function(t){e.children.push($($({},t),{parentId:e.id,parentRegion:e.region}));var n=e.children[e.children.length-1];return n.setInfo(t.info),n},removeChild:function(t){var n=e.children.findIndex((function(e){return e===t}));e.children[n]&&e.children.splice(n,1)},toggleFold:function(t){t.stopPropagation(),t.preventDefault(),e.folded=!e.folded},patch:function(n,a,o){var i,c;if(void 0===a&&(a=!1),!e.patched||a){e.patched=!0;var s=n,d=e.info;if(!1!==d.editable){var l=s.getSchema(d.id),u=l;(null==u?void 0:u.id)||(u=$($({},u),{id:'u:'+rt()})),(Array.isArray(d.regions)&&d.regions.length||Array.isArray(d.patchContainers))&&(u=t(u,d.patchContainers||d.regions.map((function(e){return e.key})))),u=b(u,{component:d.renderer.component}),(u=(null===(c=null===(i=d.plugin)||void 0===i?void 0:i.patchSchema)||void 0===c?void 0:c.call(i,u,{component:d.renderer.component},null==r?void 0:r.props))||u)!==l&&(o?o(d.id,u):s.changeValueById(d.id,u,void 0,!0,!0))}}},updateSchema:function(t){var n=e.info;if(!1!==n.editable){var r=Pe(e),a=r.getSchema(n.id);a=$($({},a),t),r.changeValueById(n.id,a)}},updateSchemaStyle:function(t){var n=e.info;if(!1!==n.editable){var r=Pe(e),a=r.getSchema(n.id);a=$($({},a),{style:$($({},a.style),t)}),r.changeValueById(n.id,a)}},setComponent:function(e){r=e},getComponent:function(){return r},calculateHighlightBox:function(t){var r;if(void 0===t&&(t=Pe(e)),t.calculateStarted){var a=Pe(e).getDoc();if(e.isRegion){n(o=a.querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))}else{var o=[].slice.call(a.querySelectorAll('[data-editor-id="'.concat(e.id,'"]')));n('button'===(null===(r=e.info)||void 0===r?void 0:r.renderer.name)?null==o?void 0:o[0]:o),e.childRegions.forEach((function(e){return e.calculateHighlightBox(t)}))}}},resetHighlightBox:function(t){e.x=0,e.y=0,e.w=0,e.h=0,e.childRegions.forEach((function(e){return e.resetHighlightBox(t)}))},updateState:function(t,n){void 0===n&&(n=!1),e.state=$($({},n?null:e.state),t)},setWidthMutable:function(t){e.widthMutable=!!t},setHeightMutable:function(t){e.heightMutable=!!t}}})),Za=Z.createContext(null),qa=Ae.model('EditorRoot',{isMobile:!1,isSubEditor:!1,amisDocHost:Ae.optional(Ae.string,'https://baidu.gitee.io'),root:Ae.optional(Wa,{id:'root',label:'Root'}),theme:'cxd',hoverId:'',hoverRegion:'',activeId:'',activeRegion:'',mouseMoveRegion:'',selections:Ae.optional(Ae.frozen(),[]),contextId:'',dragMode:'move',dragId:'',dragType:'',dragSchema:Ae.frozen(),dropId:'',dropRegion:'',planDropId:'',planDropRegion:'',insertId:'',insertRegion:'',insertRenderers:Ae.optional(Ae.frozen(),[]),insertRenderersKeywords:'',insertTag:B('a8b0c20416853bda54120bf19477ad11'),insertSelected:'',insertMode:'insert',insertOrigId:'',insertBeforeId:'',showInsertRenderer:!1,schema:Ae.frozen(),versionId:0,schemaHistory:Ae.optional(Ae.array(Ae.frozen()),[]),toolbars:Ae.optional(Ae.frozen(),[]),panels:Ae.optional(Ae.frozen(),[]),showCustomRenderersPanel:!1,renderersTabsKey:'base-renderers',outlineTabsKey:'component-outline',subRenderers:Ae.optional(Ae.frozen(),[]),subRenderersKeywords:'',subRenderersTag:'',subRendererRegion:'',customRenderersKeywords:'',customRenderersTag:'',panelKey:'',leftPanelKey:'',leftPanelOpenStatus:!0,jsonSchemaUri:'',scaffoldForm:Ae.maybe(Ae.frozen()),scaffoldFormStep:0,scaffoldStepManipulated:!1,scaffoldFormBuzy:!1,scaffoldError:'',popOverForm:Ae.maybe(Ae.frozen()),subEditorContext:Ae.maybe(Ae.frozen()),superEditorData:Ae.maybe(Ae.frozen()),calculateStarted:!1,targetNames:Ae.optional(Ae.array(Ae.frozen()),[]),ctx:Ae.frozen(),i18nEnabled:Ae.optional(Ae.boolean,!1),appLocale:Ae.optional(Ae.string,'zh-CN'),appCorpusData:Ae.optional(Ae.frozen(),{}),appLocaleState:Ae.optional(Ae.number,0)}).views((function(e){return{get filteredSchema(){var t,n,r,a=e.schema;return Lt(null!==(r=null===(n=(t=Fe(e)).schemaFilter)||void 0===n?void 0:n.call(t,a))&&void 0!==r?r:a)},get filteredSchemaForPreview(){var t,n,r,a=Et(e.schema);return null!==(r=null===(n=(t=Fe(e)).schemaFilter)||void 0===n?void 0:n.call(t,a,!0))&&void 0!==r?r:a},isRootSchema:function(e){var t=this.getSchema();return!(!t||t.$$id!==e)},getRootId:function(){var e=this.getSchema();return null==e?void 0:e.$$id},isHoved:function(t){return t&&e.hoverId===t},isActive:function(t){return t&&!this.dragging&&!e.insertOrigId&&e.insertBeforeId!==t&&e.activeId===t},isContextOn:function(t){return t&&e.contextId===t},get activeContainerId(){var t;if(!e.activeId)return'';for(var n=this.getNodeById(e.activeId);n;){if(n.childRegions.length||(null===(t=n.info)||void 0===t?void 0:t.regions))return n.id;n=n.host}return''},isRegionHighlighted:function(t,n){return!e.insertOrigId&&t===e.hoverId&&n===e.hoverRegion||t===e.activeId&&e.activeRegion===n||t===e.dropId&&e.dropRegion===n||!e.insertOrigId&&t===e.insertId&&e.insertRegion===n},isRegionHighlightHover:function(t,n){return t===e.hoverId&&n===e.mouseMoveRegion},isRegionActive:function(t,n){return this.isActive(t)||t===e.dropId||this.isRegionHighlighted(t,n)||this.isRegionHighlightHover(t,n)},isRegionDragEnter:function(t,n){return this.isRegionActive(t,n)&&n===e.dropRegion},get highlightNodes(){var t=this,n=[];!e.hoverId||e.dragId||e.contextId||e.activeId===e.hoverId&&!e.hoverRegion||e.selections.includes(e.hoverId)||n.push(e.hoverId),e.contextId&&n.push(e.contextId),!e.activeId&&!e.selections.length||e.dragId&&!this.draggableContainer(e.dragId)||e.insertOrigId||e.insertId||e.hoverId&&e.hoverRegion||(e.activeId?n.push(e.activeId):n.push.apply(n,e.selections));var r=this.parentIsFreeContainer(e.activeId);return r&&n.push(r),'insert'===e.insertMode&&e.insertId&&n.push(e.insertId),e.insertOrigId&&n.push(e.insertOrigId),e.dropId&&n.push(e.dropId),e.insertBeforeId&&n.push(e.insertBeforeId),n.filter((function(e,t,n){return e&&t===n.indexOf(e)})).map((function(e){return t.getNodeById(e)})).filter((function(e){return e}))},getNodeById:function(t,n){return e.root.getNodeById(t,n)},get activeNodeInfo(){var t;return null===(t=this.getNodeById(e.activeId))||void 0===t?void 0:t.info},getSchema:function(t,n){return t?St(e.schema,t,n):e.schema},getSchemaByPath:function(t){return wt(e.schema,t)},getSchemaParentById:function(t,n){return void 0===n&&(n=!1),It(e.schema,t,n)},getSchemaPath:function(t){var n=Ct(e.schema,t);return Array.isArray(n)?n.join('/'):''},getSimpleSchema:function(e){return Et(e)},getPanelKey:function(){var t,n=e.panelKey;if('none'===n)return n;var r=this.getPanels();return Le(r,(function(e){return n&&e.key===n}))?n:(null===(t=r[0])||void 0===t?void 0:t.key)||'none'},getLeftPanelKey:function(){var t=e.leftPanelKey;if(this.dragging)return'outline';if('none'===t)return t;var n=this.getLeftPanels();return Le(n,(function(e){return t&&e.key===t}))?t:'renderers'},get leftPanels(){return e.panels.filter((function(e){return'left'===e.position}))},get rightPanels(){return e.panels.filter((function(e){return'left'!==e.position&&'contextmenu'!==e.key}))},get contextMenuPanel(){return e.panels.find((function(e){return'contextmenu'===e.key}))},getPanels:function(){return[].concat(this.rightPanels||[]).sort((function(e,t){return e.order-t.order}))},getLeftPanels:function(){var t=[].concat(this.leftPanels||[]);return e.insertId&&e.insertRegion&&t.push({key:'insert',icon:'fa fa-bolt',position:'left',title:'replace'===e.insertMode?B('1dd554cdfc1ddf7dce13453805523c16'):B('9bdb07e72d3a9a6084201a7398523f5a'),component:Hn,order:9999}),t.push({key:'insertRenderer',icon:'fa fa-bolt',position:'left',title:B('a82240ce09faf0b972a8aa5c9e93d209'),component:Ua,order:9999}),t.sort((function(e,t){return e.order-t.order}))},get sortedToolbars(){return e.toolbars.filter((function(e){return'secondary'!==e.level&&'special'!==e.level})).sort((function(e,t){return e.order-t.order}))},get sortedSecondaryToolbars(){return e.toolbars.filter((function(e){return'secondary'===e.level})).sort((function(e,t){return e.order-t.order}))},get sortedSpecialToolbars(){return e.toolbars.filter((function(e){return'special'===e.level})).sort((function(e,t){return e.order-t.order}))},get value(){if(e.activeId)return this.getValueOf(e.activeId)},getValueOf:function(t){return Et(St(e.schema,t),!1)},get valueWithoutHiddenProps(){if(e.activeId){var t=e.isSubEditor,n=Fe(e).isHiddenProps;return Et(St(e.schema,e.activeId),(function(e,r){return!(!t||'definitions'!==e)||('function'==typeof n?n(e,r):'$$'===e.substring(0,2)&&'$$comments'!==e&&'$$commonSchema'!==e||'function'==typeof r||'__'===e.substring(0,2))}))}},get outline(){return e.root.children},get bcn(){var t=[];return e.activeId&&te(e.root.children,(function(n,r,a,o){return n.id===e.activeId&&(t=o.concat(n),!0)})),t.filter((function(e){return!e.isSecondFactor}))},get activePath(){return this.getNodePathById(e.activeId)},getNodePathById:function(t){var n=[];if(!t)return n;var r=function(e,a){return void 0===a&&(a=[]),e.every((function(e){return e.id===t?(n=a.concat(e),!1):!e.children||!e.children.length||r(e.children,a.concat(e))}))};return r(e.root.children),n},get dragging(){return!this.draggableContainer(e.dragId)&&!(!e.dragId&&!e.dropId)},get needPatch(){var t=function(e){return e.some((function(e){return!e.patched&&!e.isRegion||!!e.uniqueChildren.length&&t(e.uniqueChildren)}))};return t(e.root.children)},get schemaRaw(){return Et(e.schema)},get subRenderersByOrder(){return e.subRenderers.filter((function(t){return!(!t.disabledRendererPlugin&&e.showCustomRenderersPanel)||t.isBaseComponent})).sort((function(e,t){return e.order-t.order}))},get customRenderersByOrder(){return e.subRenderers.filter((function(e){return!e.disabledRendererPlugin&&!e.isBaseComponent})).sort((function(e,t){return e.order-t.order}))},groupedRenderersByKeyword:function(e,t){void 0===t&&(t='');var n=e,r={},a=new Map;return ze(n,t,{keys:['name','description','scaffold.type','searchKeywords']}).forEach((function(e){a.set(e.id,e)})),n.forEach((function(e){a.has(e.id)&&(Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:[B('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(t){r[t]=r[t]||[],r[t].push(e)}))})),r},groupedSubRenderersByKeyword:function(e,t){var n=e||this.subRenderersByOrder;return this.groupedRenderersByKeyword(n,t)},get groupedSubRenderers(){if(e.subRenderersTag){var t={},n=this.groupedSubRenderersByKeyword()[e.subRenderersTag];return n&&(t[e.subRenderersTag]=n),t}return this.groupedSubRenderersByKeyword(this.subRenderersByOrder,e.subRenderersKeywords)},groupedCustomRenderersByKeyword:function(e,t){var n=e||this.customRenderersByOrder;return this.groupedRenderersByKeyword(n,t)},get groupedCustomRenderers(){if(e.customRenderersTag){var t={},n=this.groupedCustomRenderersByKeyword()[e.customRenderersTag];return n&&(t[e.customRenderersTag]=n),t}return this.groupedCustomRenderersByKeyword(this.customRenderersByOrder,e.customRenderersKeywords)},getSubRendererById:function(t){return Le(e.subRenderers||[],(function(e){return e.id===t}))},get groupedInsertRenderers(){var t,n=((t={})[B('a8b0c20416853bda54120bf19477ad11')]=[],t),r=e.insertRenderersKeywords,a=new RegExp(ln(r),'i');return e.insertRenderers.concat().sort((function(e,t){return e.order-t.order})).forEach((function(e){r&&!['name','description','scaffold.type'].some((function(t){return y(t,e)&&a.test(y(t,e))}))||((Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:[B('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(t){n[t]=n[t]||[],n[t].push(e)})),n[B('a8b0c20416853bda54120bf19477ad11')].push(e))})),n},get selectedInsertRendererInfo(){return Le(e.insertRenderers,(function(t){return t.id===e.insertSelected}))},get subEditorSlotPath(){var t,n=null===(t=e.subEditorContext)||void 0===t?void 0:t.slot;if(!n)return'';var r=[],a=function(e,t){return void 0===t&&(t=[]),!(!Array.isArray(e)||!e.some((function(e,n){return a(e,t.concat(''.concat(n)))})))||(Ee(e)?Object.keys(e).some((function(n){return a(e[n],t.concat(n))})):'$$'===e&&(r=t.concat(),!0))};return a(n),r.length?r.join('/'):''},get subEditorValue(){if(e.subEditorContext)return e.subEditorContext.slot?$($({},re(e.subEditorContext.slot,(function(t){return'$$'===t?e.subEditorContext.value:t}))),{isSlot:!0}):e.subEditorContext.value},get canUndo(){return 0!==e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}))},get canRedo(){return e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}))<e.schemaHistory.length-1},isFlexContainer:function(t){var n,r,a=null!=t?t:e.activeId,o=this.getSchema(a);return'flex'===(null===(n=null==o?void 0:o.style)||void 0===n?void 0:n.display)||'inline-flex'===(null===(r=null==o?void 0:o.style)||void 0===r?void 0:r.display)},isFlexItem:function(t){var n,r,a=null!=t?t:e.activeId,o=this.getSchemaParentById(a,!0);return'flex'===(null==o?void 0:o.type)||'flex'===(null===(n=null==o?void 0:o.style)||void 0===n?void 0:n.display)||'inline-flex'===(null===(r=null==o?void 0:o.style)||void 0===r?void 0:r.display)},isFlexColumnItem:function(t){var n,r,a,o,i=null!=t?t:e.activeId,c=this.getSchemaParentById(i,!0),s='flex'===(null==c?void 0:c.type)||'flex'===(null===(n=null==c?void 0:c.style)||void 0===n?void 0:n.display)||'inline-flex'===(null===(r=null==c?void 0:c.style)||void 0===r?void 0:r.display),d='column'===(null==c?void 0:c.direction)||'column-reverse'===(null==c?void 0:c.direction)||'column'===(null===(a=null==c?void 0:c.style)||void 0===a?void 0:a.flexDirection)||'column-reverse'===(null===(o=null==c?void 0:c.style)||void 0===o?void 0:o.flexDirection);return!(!s||!d)},draggableContainer:function(t){var n=t||e.activeId,r=this.getSchema(n),a=(null==r?void 0:r.style)||{};return'fixed'===(null==a?void 0:a.position)||'absolute'===(null==a?void 0:a.position)},parentIsFreeContainer:function(t){var n=null!=t?t:e.activeId,r=this.getNodeById(n),a=null==r?void 0:r.parent;if(!a)return!1;var o=this.getSchema(a.id);return!!(null==o?void 0:o.isFreeContainer)&&a.id},get getSuperEditorData(){return e.superEditorData||{}},getComponentTreeSource:function(){var t;return ae(null!==(t=e.root.children)&&void 0!==t?t:[],(function(t){var n,r,a,o=t.id?St(e.schema,t.id):e.schema,i='',c=hn(null==t?void 0:t.label),s=hn(null==o?void 0:o.label),d=hn(null==o?void 0:o.title);if(null==t?void 0:t.region)i=c;else{var l='cell'!==t.type?'<'.concat(c,'>'):B('b71e8739cb9bcba8057a8fa8b59512da');i=''.concat(l).concat(null!==(n=null!=s?s:d)&&void 0!==n?n:c)}return i=null!=i?i:c,{id:t.id,label:i,value:null!==(r=null==o?void 0:o.id)&&void 0!==r?r:t.id,type:null!==(a=null==o?void 0:o.type)&&void 0!==a?a:t.type,schema:o,disabled:!!t.region,visible:!t.region||!!(null==t?void 0:t.children.length),children:null==t?void 0:t.children}}),1,!0)},get scaffoldData(){var t;return oe(e.ctx,$($({},(null===(t=e.scaffoldForm)||void 0===t?void 0:t.value)||{}),{__step:e.scaffoldFormStep}))},get modals(){var t=e.schema,n=[];if(Qt(t,(function(e,t,r){if('actionType'===t&&['dialog','drawer','confirmDialog'].includes(e)){var a=r['drawer'===e?'drawer':'dialog']||r.args;!a||a.$ref||n.find((function(e){return e.$$id===a.$$id}))||n.push($($({},a),{actionType:e}))}return e})),Object.keys(t.definitions||{}).reverse().forEach((function(e){var r=t.definitions[e];if(['dialog','drawer'].includes(r.type)){if(r.$$originId&&n.find((function(e){return e.$$id===r.$$originId})))return;n.unshift($($({},r),{$$ref:e}))}})),['dialog','drawer','confirmDialog'].includes(t.type)){var r=n.findIndex((function(e){return e.$$id===t.$$id}));~r&&n.splice(r,1),n.unshift($($({},t),{definitions:void 0}))}return n},get modalOptions(){return this.modals.map((function(e){var t;return{label:''.concat((null===(t=e.editorSetting)||void 0===t?void 0:t.displayName)||e.title||'未命名弹窗'),tip:'confirmDialog'===e.actionType?'确认框':'drawer'===e.type?'抽屉弹窗':B('6cff4b6d794cc17f5d24dbe0d21e5732'),value:e.$$id,$$ref:e.$$ref}}))}}})).actions((function(e){Fe(e);var t=0,n=null,r=void 0,a=document,o=void 0,i=Se((function(){return e.updateTargetName()}),250,{leading:!1,trailing:!0});return{setLayer:function(e){r=e},getLayer:function(){return r},setDoc:function(e){a=e},getDoc:function(){return a},setIframe:function(e){o=e},getIframe:function(){return o},setIsMobile:function(t){e.isMobile=!!t},setCtx:function(t){(null==t?void 0:t.__super)&&(t=ie(t).reduce((function(e,t){return Object.assign(e,t)}),{})),e.ctx=t},setTheme:function(t){e.theme=t},setIsSubEditor:function(t){e.isSubEditor=t},setShowCustomRenderersPanel:function(t){e.showCustomRenderersPanel=t},setSchema:function(t){var n,r=yt(t||{});if(e.schema&&Object.keys(e.schema).length>1){var a=Jt(e.schema,r,(function(e,t){return'$$id'===t})),o=Gt(e.schema,a);if('A'===(null===(n=null==a?void 0:a[0])||void 0===n?void 0:n.kind)&&('D'===a[0].item.kind||'N'===a[0].item.kind)&&Array.isArray(a[0].path)){var c=a[0].path,s=c.pop(),d=c.reduce((function(e,t){return e[t]}),o);d[s]=d[s].map((function(e){return Ee(d[s])?$($({},e),{$$id:rt()}):e}))}e.schema=o}else e.schema=r;this.resetHistory(),i()},insertSchema:function(t){var n,r=t.context.id,a=t.context.region,o=St(e.schema,r);if(o){var i=yt(t.context.data);(null==o?void 0:o.isFreeContainer)&&(i.style={position:'absolute',inset:'10px auto auto 10px'},un(i.type)&&(i.style.width='300px'));var c=Array.isArray(o[a])?o[a].concat():o[a]?[o[a]]:[];if(t.context.beforeId){var s=_e(c,(function(e){return(null==e?void 0:e.$$id)===t.context.beforeId}));~s?c.splice(s,0,i):c.push(i)}else c.push(i);return this.traceableSetSchema(xt(e.schema,r,((n={})[a]=c,n))),t.context.data=i,i}},moveSchema:function(t){var n,r=t.context,a=e.schema;if(r.sourceId!==r.beforeId){var o=St(a,r.sourceId);a=Rt(a,r.sourceId,void 0,!0);var i=r.region,c=St(a,r.id)[i];if(c=Array.isArray(c)?c.concat():c?[c]:[],r.beforeId){var s=_e(c,(function(e){return e.$$id===r.beforeId}));if(!~s)throw new Error(B('eadc8c8d4a8776893672330598babca0'));c.splice(s,0,o)}else c.push(o);this.traceableSetSchema(xt(a,r.id,((n={})[i]=c,n)))}},setActiveId:function(t,n,r){void 0===n&&(n=''),void 0===r&&(r=[]);var a=t?e.getNodeById(t):void 0;!1===(null==a?void 0:a.clickable)||t&&!a||(e.activeId=t,e.activeRegion=n,e.selections=r)},setSelections:function(t){e.activeId='',e.activeRegion='',e.selections=t?t.concat():[]},clearSelection:function(){e.selections=[]},setHoverId:function(t,n){var r=t?e.getNodeById(t):void 0;!1!==(null==r?void 0:r.clickable)&&(e.hoverId=t,e.hoverRegion=n||'')},setMouseMoveRegion:function(t){e.mouseMoveRegion=t},setInsertId:function(t){e.insertId=t},setContextId:function(t){e.contextId=t},setDragId:function(t,n,r,a){void 0===n&&(n='move'),void 0===r&&(r='schema'),e.dragId=t,e.dragMode=n,e.dragType=r,e.dragSchema=a||(t?e.getSchema(t):null)},setDropId:function(t,n){void 0===n&&(n=''),e.dropId=t,e.dropRegion=n,e.planDropId='',e.planDropRegion=''},setPlanDropId:function(t,n){e.planDropId=t,e.planDropRegion=n},setActiveToolbars:function(t){e.toolbars=t},setPanels:function(t){e.panels=t},setSubRenderers:function(t){e.subRenderers=t},changeSubRenderersKeywords:function(t){e.subRenderersKeywords=t,e.subRenderersTag=''},changeSubRenderersTag:function(t){e.subRenderersKeywords='',e.subRenderersTag=t},resetSubRenderersKeywords:function(){e.subRenderersKeywords='',e.subRenderersTag=''},changeCustomRenderersKeywords:function(t){e.customRenderersKeywords=t,e.customRenderersTag=''},changeCustomRenderersTag:function(t){e.customRenderersKeywords='',e.customRenderersTag=t},resetCustomRenderersKeywords:function(){e.customRenderersKeywords='',e.customRenderersTag=''},changeSubRendererRegion:function(t){e.subRendererRegion=t},changePanelKey:function(t){t!==e.getPanelKey()&&(e.panelKey=t)},changeLeftPanelKey:function(t){'insert'!==t&&'insert'!==e.panelKey&&t!==e.getLeftPanelKey()&&(e.leftPanelKey=t)},changeRenderersTabsKey:function(t){t!==e.renderersTabsKey&&(e.renderersTabsKey=t)},changeOutlineTabsKey:function(t){t!==e.outlineTabsKey&&(e.outlineTabsKey=t)},changeLeftPanelOpenStatus:function(t){t!==e.leftPanelOpenStatus&&(e.leftPanelOpenStatus=t)},showRendererPanel:function(t,n){'renderers'!==e.getLeftPanelKey()?e.leftPanelKey='renderers':t!==e.subRenderersTag&&t||d.info(n||B('f3c057f37fb9a4e7dd44b04919c12578')),e.renderersTabsKey='base-renderers',t&&this.changeSubRenderersTag(t),this.changeLeftPanelOpenStatus(!0)},changeValue:function(t,n,r,a){void 0===a&&(a=e.activeId),a&&this.changeValueById(a,t,n,void 0,void 0,r)},definitionOnchangeValue:function(t,n){this.changeValueById(e.getRootId(),t,n)},changeValueById:function(t,n,r,a,o,i){var c=St(e.schema,t);if(c)if(r){var s=Gt(c,r),d=xt(e.schema,t,yt(s),!0);d=(null==i?void 0:i(d,n,t,r))||d,this.traceableSetSchema(d,o)}else{d=xt(e.schema,t,yt(n),a);d=(null==i?void 0:i(d,n,t))||d,this.traceableSetSchema(xt(e.schema,t,yt(n),a),o)}},batchChangeValue:function(t){this.traceableSetSchema(t.reduce((function(e,t){return xt(e,t.id,yt(t.value),!0)}),e.schema),!0)},updateContainerStyleByDrag:function(t,n,r){var a=t||e.dragId;if(a){var o=e.getSchema(a),i=(null==o?void 0:o.style)||{};if(a&&'fixed'===(null==i?void 0:i.position)||'absolute'===(null==i?void 0:i.position)){var c=(i.inset||'auto').split(' '),s={top:c[0]||'auto',right:c[1]||'auto',bottom:c[2]||c[0]||'auto',left:c[3]||c[1]||'auto'},d=''.concat('auto'!==s.top?dn(s.top,r):'auto',' ').concat('auto'!==s.right?dn(s.right,-n):'auto',' ').concat('auto'!==s.bottom?dn(s.bottom,-r):'auto',' ').concat('auto'!==s.left?dn(s.left,n):'auto');this.changeValueById(a,$($({},o),{style:$($({},i),{inset:d})})),this.calculateHighlightBox([a])}}},moveUp:function(t){t&&this.traceableSetSchema(At(e.schema,t))},moveDown:function(t){t&&this.traceableSetSchema(Pt(e.schema,t))},del:function(t){var n,r;if(t===e.activeId){var a=null===(n=e.getNodeById(t))||void 0===n?void 0:n.host;this.setActiveId(a?a.id:'')}else if(e.activeId){var o=St(e.schema,t);if(St(o,e.activeId)){a=null===(r=e.getNodeById(t))||void 0===r?void 0:r.host;this.setActiveId(a?a.id:'')}}this.traceableSetSchema(Rt(e.schema,t))},delMulti:function(t){var n=this;(Array.isArray(t)?t:[t]).forEach((function(t){var r,a;if(t===e.activeId){var o=null===(r=e.getNodeById(t))||void 0===r?void 0:r.host;n.setActiveId(o?o.id:'')}else if(e.activeId){var i=St(e.schema,t);if(St(i,e.activeId)){o=null===(a=e.getNodeById(t))||void 0===a?void 0:a.host;n.setActiveId(o?o.id:'')}}})),this.traceableSetSchema(t.reduce((function(e,t){return Rt(e,t)}),e.schema))},duplicate:function(t){this.traceableSetSchema((Array.isArray(t)?t:[t]).reduce((function(e,t){return Ft(e,t)}),e.schema))},emptyRegion:function(t,n){var r;this.traceableSetSchema(xt(e.schema,t,((r={})[n]=[],r)))},replaceChild:function(t,n){this.traceableSetSchema(xt(e.schema,t,yt(n),!0))},setInsertRegion:function(t,n,r,a,o,i){void 0===n&&(n=''),void 0===r&&(r=B('a8b0c20416853bda54120bf19477ad11')),void 0===a&&(a='insert'),void 0===o&&(o=''),e.insertId=n,e.insertRegion=t,e.insertTag=r,e.insertMode=a,e.insertOrigId=o,e.insertBeforeId=i||''},closeInsertPanel:function(){e.insertOrigId='',e.insertId='',e.insertRegion='',e.insertSelected='',e.insertRenderersKeywords='',e.insertBeforeId=''},showInsertRendererPanel:function(){e.showInsertRenderer=!0},closeInsertRendererPanel:function(){e.showInsertRenderer=!1},setInsertRenderers:function(t){e.insertRenderers=t},changeInsertRenderersKeywords:function(t){e.insertRenderersKeywords=t},resetInsertRenderersKeywords:function(){e.insertRenderersKeywords=''},setInsertTag:function(t){e.insertTag=t},setInsertSelected:function(t){e.insertSelected=t},setJSONSchemaUri:function(t){e.jsonSchemaUri=t},addModal:function(t,n){var r=H(xn(e.schema,t,n),1)[0];this.traceableSetSchema(r)},countModalActionRefs:function(t){var n=0,r=It(e.schema,t);if(null==r?void 0:r.actionType)return r.type?0:1;if(r!==e.schema.definitions)return n;var a=Object.keys(r).find((function(e){var n;return(null===(n=r[e])||void 0===n?void 0:n.$$id)===t}));return Qt(e.schema,(function(e,t,r){var o;return'actionType'===t&&['dialog','drawer','confirmDialog'].includes(e)&&(null===(o=r['drawer'===e?'drawer':'dialog'])||void 0===o?void 0:o.$ref)===a&&n++,e})),n},removeModal:function(t){var n=e.schema,r=It(n,t);if(r===n.definitions){var a=Object.keys(r).find((function(e){var n;return(null===(n=r[e])||void 0===n?void 0:n.$$id)===t}));Qt(n,(function(e,t,r){var o;return'actionType'===t&&['dialog','drawer','confirmDialog'].includes(e)&&(null===(o=r['drawer'===e?'drawer':'dialog'])||void 0===o?void 0:o.$ref)===a&&(n=Rt(n,r.$$id)),e})),n=Rt(n,t)}else n=Rt(n,r.$$id);this.traceableSetSchema(n)},updateModal:function(t,n,r){var a,o,i,c=e.schema,s=It(c,t);if(!s)throw new Error('modal not found');n=yt(n),r&&Ee(r)&&(c=Nn(c,r,n));var d='drawer'===(n.actionType||n.type)?'drawer':'dialog';if(c=xt(c,t,n,!0),s.actionType)c=xt(c,s.$$id,((a={actionType:n.actionType||n.type,args:void 0,dialog:void 0,drawer:void 0})[d]=n,a));else{var l=Object.keys(s).find((function(e){var n;return(null===(n=s[e])||void 0===n?void 0:n.$$id)===t}));Qt(c,(function(e,t,r){var a,o;return'actionType'===t&&['dialog','drawer','confirmDialog'].includes(e)&&(null===(o=r['drawer'===e?'drawer':'dialog'])||void 0===o?void 0:o.$ref)===l&&d!==('drawer'===e?'drawer':'dialog')&&(c=xt(c,r.$$id,((a={actionType:n.actionType||n.type,args:void 0,dialog:void 0,drawer:void 0})[d]=r['drawer'===e?'drawer':'dialog'],a))),e}))}var u=[];if(Qt(n,(function(e,n,r){'$ref'===n&&r.$$originId===t&&u.push(r.$$id)})),u.length){var p;o=H(xn(c,n),2),c=o[0],p=o[1],c=xt(c,s.$$id,((i={})[d]=yt({$ref:p}),i)),u.forEach((function(e){c=xt(c,e,{$ref:p,$$originId:void 0})}))}this.traceableSetSchema(c)},openSubEditor:function(t){var n=e.activeId;n&&(e.subEditorContext=$($({},t),{hostNode:e.getNodeById(n),data:oe(e.ctx,ce(t.data,{__curCmptTreeWrap:{label:t.title,disabled:!0},__superCmptTreeSource:e.getComponentTreeSource()}))}))},confirmSubEditor:function(t){var n,r=H(t,1)[0],a=e.subEditorContext,o=a.onChange,i=a.slot,c=r.schema,s=(null===(n=r.__pristine)||void 0===n?void 0:n.schema)||c;if(i){var d=e.subEditorSlotPath.replace(/(?:\/)/g,'.');c=se(c,d),s=se(s,d),Array.isArray(c)&&1===c.length&&!Array.isArray(s)&&(c=c[0])}o(c,o.length>1?Jt(s,c):void 0),e.subEditorContext=void 0},closeSubEditor:function(){e.subEditorContext=void 0},subEditorOnChange:function(){n&&(e.subEditorContext=$($({},e.subEditorContext),{canUndo:n.canUndo(),canRedo:n.canRedo()}))},undoSubEditor:function(){n&&n.undo()},redoSubEditor:function(){n&&n.redo()},subEditorRef:function(e){n=e},getSubEditorRef:function(){return n},openScaffoldForm:function(t){e.scaffoldForm=t,e.scaffoldStepManipulated=!1},closeScaffoldForm:function(){e.scaffoldForm=void 0},setScaffoldBuzy:function(t){e.scaffoldFormBuzy=!!t},setScaffoldStep:function(t){e.scaffoldFormStep=t},setScaffoldStepManipulated:function(t){e.scaffoldStepManipulated=t},setScaffoldError:function(t){void 0===t&&(t=''),e.scaffoldError=t},updateScaffoldData:function(t,n){e.scaffoldForm&&t&&(e.scaffoldForm=$($({},e.scaffoldForm),{value:n?t:$($({},e.scaffoldForm.value),t)}))},openPopOverForm:function(t){e.popOverForm=t},closePopOverForm:function(){e.popOverForm=void 0},calculateHighlightBox:function(t){e.calculateStarted=!0,t.forEach((function(t){var n=e.getNodeById(t);null==n||n.calculateHighlightBox(e)}))},resetHighlightBox:function(t){t.forEach((function(t){var n=e.getNodeById(t);null==n||n.resetHighlightBox(e)}))},updateTargetName:function(){var t=[];Qt(e.schema,(function(e,n,r){return'name'===n&&e&&r&&('crud'===r.type||'form'===r.type||'page'===r.type||'service'===r.type||'chart'===r.type||'wizard'===r.type)&&t.push({type:r.type,name:e,editorId:r.$$id}),e})),e.targetNames=De(t)},traceableSetSchema:function(n,r){var a=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));~a&&e.schemaHistory.splice(a+1,e.schemaHistory.length-a-1),r&&e.schemaHistory.pop(),e.schemaHistory.push({versionId:e.versionId=t++,schema:n}),e.schema=n,i()},undo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t>0){var n=e.schemaHistory[t-1];e.versionId=n.versionId,e.schema=n.schema,i(),this.autoSelectRoot()}},redo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t<e.schemaHistory.length-1){var n=e.schemaHistory[t+1];e.versionId=n.versionId,e.schema=n.schema,i(),this.autoSelectRoot()}},autoSelectRoot:function(){e.getSchema(e.activeId)||this.setActiveId(e.getRootId())},resetHistory:function(){t=0,e.versionId=t++,e.schemaHistory.replace([{versionId:e.versionId,schema:e.schema}]),this.autoSelectRoot()},applyPatches:function(t){var n=e.schema;t.forEach((function(e){var t,r;if('update'===e.op)n=xt(n,e.target,e.value);else if('replace'===e.op)n=xt(n,e.target,e.value,!0);else if('delete'===e.op)n=Rt(n,e.target);else if('push'===e.op){var a=(o=St(n,e.target))[e.key];(a=Array.isArray(a)?a.concat():a?[a]:[]).push(e.value),o=$($({},o),((t={})[e.key]=a,t)),n=xt(n,e.target,o)}else if('splice'===e.op){var o;a=(o=St(n,e.target))[e.key];(a=Array.isArray(a)?a.concat():a?[a]:[]).splice.apply(a,L([],H(e.args),!1)),o=$($({},o),((r={})[e.key]=a,r)),n=xt(n,e.target,o)}})),this.traceableSetSchema(n)},updateAppLocaleState:function(){e.appLocaleState+=1},setAppLocale:function(t){t&&(e.appLocale=t,this.updateAppLocaleState())},setAppCorpusData:function(t){void 0===t&&(t={}),e.appCorpusData=t,this.updateAppLocaleState()},beforeDestroy:function(){i.cancel()}}})),Ya=function(e,t){var n=(t||{}).fallback,r=Z.lazy((function(){return T(void 0,void 0,void 0,(function(){var t;return j(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return t=n.sent(),[2,{default:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Z.createElement(Z.Fragment,null,t.apply(void 0,L([],H(e),!1)))}}]}}))}))}));return function(e){return Z.createElement(Z.Suspense,{fallback:n&&Z.isValidElement(n)?n:Z.createElement(E,{show:!0,overlay:!0,size:'sm',tip:B('e9d4c83c9cdc23c65d11f74866636661'),tipPlacement:'bottom',className:'flex'})},Z.createElement(r,$({},e)))}};function Xa(e,t){var n={context:t,type:e,prevented:!1,stoped:!1,preventDefault:function(){n.prevented=!0},stopPropagation:function(){n.stoped=!0},get data(){return n.context.data},setData:function(e){n.context.data=e}};return n}var Ja=function(){function e(e){this.manager=e}return e.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema,r=this;if(n.$$id&&r.name&&r.rendererName&&r.rendererName===t.name){var a=r.name;return(null==n?void 0:n.isFreeContainer)?a=B('db805d4e361ac2d3fc6047eaea1a7c69'):(null==n?void 0:n.isSorptionContainer)&&(a=B('969e9e56b3812abffa3994f35ea31835')),{name:a,regions:r.regions,patchContainers:r.patchContainers,vRendererConfig:r.vRendererConfig,wrapperProps:r.wrapperProps,wrapperResolve:r.wrapperResolve,filterProps:r.filterProps,$schema:r.$schema,renderRenderer:r.renderRenderer,multifactor:r.multifactor,scaffoldForm:r.scaffoldForm,disabledRendererPlugin:r.disabledRendererPlugin,isBaseComponent:r.isBaseComponent,isListComponent:r.isListComponent,rendererName:r.rendererName,memberImmutable:r.memberImmutable,getSubEditorVariable:r.getSubEditorVariable}}},e.prototype.buildEditorPanel=function(e,t){var n,r,a,o,i,c,s=this,d=this,l=this.manager.store;if(l.activeId&&!e.selections.length){if(!e.info.hostId&&(d.panelControls||d.panelControlsCreator||d.panelBody||d.panelBodyCreator||d.panelBodyAsyncCreator)&&e.info.plugin===this){var u=!(!d.panelBodyAsyncCreator||'function'!=typeof d.panelBodyAsyncCreator),p=d.panelBodyAsyncCreator?d.panelBodyAsyncCreator(e):d.panelBodyCreator?d.panelBodyCreator(e):d.panelBody;this.manager.trigger('after-build-panel-body',{context:e,data:p,plugin:d});var f={definitions:d.panelDefinitions,submitOnChange:d.panelSubmitOnChange,api:d.panelApi,controls:d.panelControlsCreator?d.panelControlsCreator(e):d.panelControls,justify:d.panelJustify,panelById:l.activeId,pipeOut:null===(r=null===(n=d.panelFormPipeOut)||void 0===n?void 0:n.bind)||void 0===r?void 0:r.call(n,d)};t.push({key:'config',icon:d.panelIcon||d.icon||'fa fa-cog',pluginIcon:d.pluginIcon,title:d.panelTitle||B('e366ccf1556c0672dcecba135ed5472e'),render:u?Ya((function(){return T(s,void 0,void 0,(function(){var e;return j(this,(function(t){switch(t.label){case 0:return[4,p];case 1:return e=t.sent(),[2,this.manager.makeSchemaFormRender($($({},f),{body:e}))]}}))}))}),$e(d.async,'enable')):this.manager.makeSchemaFormRender($($({},f),{body:p}))})}else e.info.plugin===this&&e.info.hostId&&((null===(a=d.vRendererConfig)||void 0===a?void 0:a.panelControls)||(null===(o=d.vRendererConfig)||void 0===o?void 0:o.panelControlsCreator)||(null===(i=d.vRendererConfig)||void 0===i?void 0:i.panelBody)||(null===(c=d.vRendererConfig)||void 0===c?void 0:c.panelBodyCreator))&&t.push({key:e.info.multifactor?'vconfig':'config',icon:d.vRendererConfig.panelIcon||'fa fa-cog',title:d.vRendererConfig.panelTitle||B('e366ccf1556c0672dcecba135ed5472e'),render:this.manager.makeSchemaFormRender({submitOnChange:d.panelSubmitOnChange,api:d.panelApi,definitions:d.vRendererConfig.panelDefinitions,controls:d.vRendererConfig.panelControlsCreator?d.vRendererConfig.panelControlsCreator(e):d.vRendererConfig.panelControls,body:d.vRendererConfig.panelBodyCreator?d.vRendererConfig.panelBodyCreator(e):d.vRendererConfig.panelBody,justify:d.vRendererConfig.panelJustify,panelById:l.activeId})});if(e.info.plugin===this&&e.info.multifactor){var h=e.node.sameIdChild;if(h)this.manager.collectPanels(h,!1,!0).forEach((function(e){var n,r;'config'!==e.key&&'vconfig'!==e.key||t.push($($({},e),{key:'sub-'.concat(e.key),icon:(null===(r=null===(n=h.info)||void 0===n?void 0:n.plugin)||void 0===r?void 0:r.icon)||e.icon}))}))}}},e.prototype.buildSubRenderers=function(e,t,n){var r=this;return Array.isArray(r.scaffolds)?r.scaffolds.map((function(e){var t,n,a,o,i,c,s,d;return{name:null!==(t=e.name)&&void 0!==t?t:r.name,icon:null!==(n=e.icon)&&void 0!==n?n:r.icon,pluginIcon:r.pluginIcon,description:null!==(a=e.description)&&void 0!==a?a:r.description,previewSchema:null!==(o=e.previewSchema)&&void 0!==o?o:r.previewSchema,tags:null!==(i=e.tags)&&void 0!==i?i:r.tags,docLink:null!==(c=e.docLink)&&void 0!==c?c:r.docLink,type:null!==(s=e.type)&&void 0!==s?s:r.type,scaffold:null!==(d=e.scaffold)&&void 0!==d?d:r.scaffold,scaffoldForm:r.scaffoldForm,disabledRendererPlugin:r.disabledRendererPlugin,isBaseComponent:r.isBaseComponent,rendererName:r.rendererName}})):r.name&&r.description?{searchKeywords:r.searchKeywords,name:r.name,icon:r.icon,description:r.description,previewSchema:r.previewSchema,tags:r.tags,docLink:r.docLink,type:r.type,scaffold:r.scaffold,scaffoldForm:r.scaffoldForm,disabledRendererPlugin:r.disabledRendererPlugin,isBaseComponent:r.isBaseComponent,pluginIcon:r.pluginIcon,rendererName:r.rendererName}:void 0},e.prototype.renderPlaceholder=function(e,t,n){return Z.createElement('div',{key:t,className:'wrapper-sm b-a b-light m-b-sm',style:n,children:Z.createElement('span',{className:'text-muted',children:e})})},e.prototype.getPlugin=function(e){return Le(this.manager.plugins,(function(t){return'string'==typeof e?t.rendererName===e:t instanceof e}))},e.prototype.buildDataSchemas=function(e,t,n,r){return{type:'string',title:'string'==typeof e.schema.label?e.schema.label:e.schema.name,originalValue:e.schema.value}},e.scene=['global'],e}(),Ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.onActive=function(e){var t,n=e.context;if((null===(t=n.info)||void 0===t?void 0:t.plugin)===this&&n.node){var r=n.node,a=r.schema||{};a.isFixedWidth&&r.setWidthMutable(!0),a.isFixedHeight&&r.setHeightMutable(!0)}},t.prototype.onWidthChangeStart=function(e){return this.onSizeChangeStart(e,'horizontal')},t.prototype.onHeightChangeStart=function(e){return this.onSizeChangeStart(e,'vertical')},t.prototype.onSizeChangeStart=function(e,t){var n;void 0===t&&(t='both');var r=e.context,a=r.node,o=r.store;if((null===(n=a.info)||void 0===n?void 0:n.plugin)===this){var i=r.resizer,c=r.dom,s=o.getDoc()||document,d=c.parentElement.getBoundingClientRect(),l=c.getBoundingClientRect(),u=r.nativeEvent.pageX,p=r.nativeEvent.pageY;e.setData({onMove:function(e){var n=e.pageY-p,r=e.pageX-u,o=Math.max(50,l.height+n),c=Math.max(100,Math.min(l.width+r,d.width)),f={width:c,height:o},h=s.querySelector('[data-hlbox-id=\''.concat(a.id,'\']')),m=s.querySelector('[data-editor-id=\''.concat(a.id,'\']'));'both'===t?(i.setAttribute('data-value',''.concat(c,'px x ').concat(o,'px')),h.style.height=''.concat(o,'px'),h.style.width=''.concat(c,'px'),m.style.height=''.concat(o,'px'),m.style.width=''.concat(c,'px')):'vertical'===t?(i.setAttribute('data-value',''.concat(o,'px')),h.style.height=''.concat(o,'px'),m.style.height=''.concat(o,'px'),delete f.width):(i.setAttribute('data-value',''.concat(c,'px')),h.style.width=''.concat(c,'px'),m.style.width=''.concat(c,'px'),delete f.height),a.updateState(f),requestAnimationFrame((function(){a.calculateHighlightBox()}))},onEnd:function(e){var n=e.pageY-p,r=e.pageX-u,o=Math.max(50,l.height+n),c={width:Math.max(100,Math.min(l.width+r,d.width)),height:o};'vertical'===t?delete c.width:'horizontal'===t&&delete c.height,i.removeAttribute('data-value'),a.updateSchemaStyle(c),requestAnimationFrame((function(){a.calculateHighlightBox()}))}})}},t}(Ja),Qa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.omitMockProps=['id','$$id','enable','maxDisplayRows'],t}return K(t,e),t.prototype.componentDidMount=function(){this.markDom(this.props.$$editor.id),this.props.$$node&&requestAnimationFrame((function(){}))},t.prototype.componentDidUpdate=function(e){this.markDom(this.props.$$editor.id)},t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.markDom=function(e){var t,n,r=this,a=Re(this);if(a&&e){var o=this.props.$$editor,i=!1!==this.props.$$visible&&!0!==this.props.$$hidden,c=o.wrapperResolve?o.wrapperResolve(a):a;(Array.isArray(c)?c:c?[c]:[]).forEach((function(t){t.setAttribute('data-editor-id',e),t.setAttribute('name',r.props.id),t.setAttribute('data-visible',i?'':'false'),t.setAttribute('data-hide-text',i?'':B('392342f7750a565f9a79c678c6b12421'))})),null===(n=null===(t=o.plugin)||void 0===t?void 0:t.markDom)||void 0===n||n.call(t,c,this.props)}},t.prototype.render=function(){var e,t=this.props,n=t.$$editor,r=t.$$node,a=t.store,o=z(t,['$$editor','$$node','store']),i=n.renderer;n.filterProps&&(o=n.filterProps.call(n.plugin,o,r));var c=$e(null===(e=null==o?void 0:o.editorSetting)||void 0===e?void 0:e.mock,this.omitMockProps);return de(c)&&!ut(c)&&(o=Ie(o,c)),n.renderRenderer?n.renderRenderer.call(n.plugin,$($($($($($({},o),{store:a}),null==r?void 0:r.state),{$$editor:n}),n.wrapperProps),{ref:this.refFn}),n):Z.createElement(i.component,$({},o,{store:a},null==r?void 0:r.state,{$$editor:n},n.wrapperProps,{ref:this.refFn}))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'refFn',null),t=_([xe],t)}(Z.Component),eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.UNSAFE_componentWillMount=function(){this.parentNode=this.context;var e=this.props,t=e.$$editor,n=e.manager;if(!this.parentNode&&t&&t.id){var r=n.store.getNodeById(t.id);r&&(this.parentNode=r)}this.parentNode&&(this.editorNode=this.parentNode.addChild({id:this.parentNode.id,type:this.parentNode.type,label:this.props.label,path:''.concat(this.parentNode.path,'/').concat(this.props.name),region:this.props.name,regionInfo:this.props.regionConfig,preferTag:this.props.preferTag}))},t.prototype.componentDidMount=function(){this.editorNode&&ke(this.editorNode)&&this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},t.prototype.componentDidUpdate=function(e){this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},t.prototype.componentWillUnmount=function(){this.editorNode&&ke(this.editorNode)&&this.parentNode&&this.parentNode.removeChild(this.editorNode)},t.prototype.markDom=function(e,t,n){var r=Re(this);if(r){var a=this.props.wrapperResolve,o=a?a(r):r.parentElement;o.setAttribute('data-region',t),o.setAttribute('data-region-host',e),n&&o.setAttribute('data-renderer',n)}},t.prototype.render=function(){var e='wrapper'===this.props.rendererName||'container'===this.props.rendererName,t=!1;return mn(this.props)&&(t=!0),Z.createElement(Za.Provider,{value:this.editorNode},this.props.children,Z.createElement('span',{className:'ae-Region-placeholder '.concat(e?'layout-content':'',' ').concat(t?'fill-placeholder':'')},this.props.placeholder||this.props.label))},t.contextType=Za,t}(Z.Component),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.renderChild=function(e,t,n){var r=this.props,a=r.render,o=r.$$editor,i=r.$$node,c=a(e,t,n);if(null==i?void 0:i.memberImmutable(e))return c;var s=Le(o.regions,(function(t){return t.key===e&&!t.matchRegion&&!t.renderMethod}));if(s){var d=s.wrapper||eo;return Z.createElement(d,{key:null==n?void 0:n.key,preferTag:s.preferTag,name:s.key,label:s.label,placeholder:s.placeholder,regionConfig:s,editorStore:o.plugin.manager.store,wrapperResolve:s.wrapperResolve,manager:o.plugin.manager,children:c,rendererName:o.renderer.name,$$editor:o,node:i})}return c},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=z(e,['$$editor','$$node']),a={},o=t.plugin.manager.store;return t.id&&(o.isActive(t.id)||o.dropId===t.id)&&Array.isArray(t.regions)&&t.regions.forEach((function(e){var t=e.key;if(!e.optional&&!(null==n?void 0:n.memberImmutable(t))){var o=[];'actions'!==t||void 0!==r.submitText&&!r.submitText||(o=[{type:'submit',label:r.submitText||B('939d5345ad4345dbaabe14798f6ac0f1'),primary:!0}]);var i=Array.isArray(r[t])?r[t]:r[t]?[r[t]]:o;i.length||(i=i.concat()).push({children:function(){return null}}),a[t]=i}})),Z.createElement(Qa,$({},r,a,{$$editor:t,$$node:n,render:this.renderChild,ref:this.refFn}))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'refFn',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,Object,Object]),V('design:returntype',void 0)],t.prototype,'renderChild',null),t=_([xe],t)}(Z.Component),no=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.componentWillUnmount=function(){var e=Re(this);if(e){var t=this.props.$$editor,n=t.wrapperResolve?t.wrapperResolve(e):e;(Array.isArray(n)?n:n?[n]:[]).forEach((function(e){e.classList.remove('ae-Editor-common-config')}))}},t.prototype.markDom=function(e){var t=Re(this);if(t&&e){var n=this.props.$$editor,r=n.wrapperResolve?n.wrapperResolve(t):t;this.props.$$commonSchema&&(Array.isArray(r)?r:r?[r]:[]).forEach((function(t){t.setAttribute('data-editor-id',e),t.classList.add('ae-Editor-common-config')}))}},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=e.$schema,a=e.store,o=z(e,['$$editor','$$node','$schema','store']),i=t.renderer;return o=Et(o,!1),t.filterProps&&(o=t.filterProps.call(t.plugin,o,n)),t.renderRenderer?t.renderRenderer.call(t.plugin,$($($($({},o),{store:a,$schema:r,$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):Z.createElement(i.component,$({},o,{store:a,$schema:r,$$editor:t},t.wrapperProps,{ref:this.refFn}))},t}(Qa);function ro(e){var t=this,n=e.propKey,r=e.body,a=e.definitions,i=e.controls,c=e.onChange,s=e.value,d=e.env,l=e.api,u=e.popOverContainer,p=e.submitOnChange,f=e.node,h=e.manager,m=e.justify,v=e.ctx,g=e.pipeIn,b=e.pipeOut,y=Z.useMemo((function(){var e,t='body';Array.isArray(i)&&(r=i,t='controls'),r=Array.isArray(r)?r.concat():[],!1===p&&r.push({type:'submit',label:B('be5fbbe34ce9979bfb6576d9eddc5612'),level:'primary',block:!0,className:'ae-Settings-actions'});var o=((e={key:n,definitions:a})[t]=r,e.className=X('config-form-content','ae-Settings-content','hoverShowScrollBar',!1===p?'with-actions':''),e.wrapperComponent='div',e.type='form',e.title='',e.mode='normal',e.api=l,e.wrapWithPanel=!1,e.submitOnChange=!1!==p,e.messages={validateFailed:''},e);return m&&(o.mode='horizontal',o.horizontal={left:4,right:8,justify:!0}),o}),[r,i,p]),E=Z.useMemo((function(){return gn()}),[]),C=Z.useRef([]),S=Z.useCallback((function(e,t){void 0===t&&(t=!1);var n=e,r=function(){C.current=C.current.filter((function(e){var t;return(null!==(t=e.__raw)&&void 0!==t?t:e)!==n}))};return t&&(e=function(e,t,a,o){var i=n(e,t,a,o);return r(),i},e.__raw=n),C.current.push(e),r}),[]),I=Z.useMemo((function(){s=s||{};var e=g?g(s):s;return w([v,E,e])}),[s,E,v]);return o(y,{onFinished:function(e){return T(t,void 0,void 0,(function(){var t,n;return j(this,(function(r){switch(r.label){case 0:return b?[4,b(e,s)]:[3,2];case 1:return t=r.sent(),[3,3];case 2:t=e,r.label=3;case 3:return(n=Jt(s,e=t))?(c(e,n,(function(e,t,n,r){return C.current.reduce((function(e,a){return a(e,t,n,r)}),e)})),[2]):[2]}}))}))},data:I,node:f,manager:h,popOverContainer:u,subscribeSchemaSubmit:S},$({},$e(d,'replaceText')))}function ao(e,t,n){for(var r=e.Renderer;r.ComposedComponent;)r=r.ComposedComponent;var a=r.prototype;if(Array.isArray(t)){var o=We(t,(function(e){return e.renderMethod}));Object.keys(o).forEach((function(e){var t;if(!a['__'.concat(e)]&&a[e]){var n,r,i=o[e],c=null===(t=i[0])||void 0===t?void 0:t.renderMethodOverride;a['__'.concat(e)]=a[e],a[e]=(n=a['__'.concat(e)],r=(null==c?void 0:c(i.concat(),oo))||function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.props.$$editor,r=this.super.apply(this,e);if(n&&!this.props.$$commonSchema&&Array.isArray(n.regions)&&i.every((function(e){return Le(n.regions,(function(t){return t.key===e.key}))}))){var a=i.map((function(e){var t=Le(n.regions,(function(t){return t.key===e.key&&(!e.rendererName||e.rendererName===t.rendererName)}));return t?$($({},e),{label:t.label,preferTag:t.preferTag}):e}));return oo(this,r,a,n,n.plugin.manager)}return r},'function'!=typeof n?n:function(){var e=this.super;this.super=n.bind(this);var t=r.apply(this,arguments);return this.super=e,t})}}))}else n&&Object.keys(n).forEach((function(e){var t,r;a['__'.concat(e)]||'function'!=typeof a[e]||(a['__'.concat(e)]=a[e],a[e]=(t=a['__'.concat(e)],r=n[e],'function'!=typeof t?t:function(){var e=this.super;this.super=t.bind(this);var n=r.apply(this,arguments);return this.super=e,n}))}))}function oo(e,t,n,r,a){if(!0===r.memberImmutable)return t;if(Array.isArray(r.memberImmutable)&&n.every((function(e){return r.memberImmutable.includes(e.key)})))return t;var o=Le(n,(function(e){return!e.matchRegion}));if(o){var i=o.wrapper||eo;return'inner'===o.insertPosition&&Z.isValidElement(t)?Z.cloneElement(t,{children:Z.createElement(i,{key:o.key,preferTag:o.preferTag,name:o.key,label:o.label,placeholder:o.placeholder,regionConfig:o,editorStore:a.store,manager:a,children:t.props.children,wrapperResolve:o.wrapperResolve,rendererName:r.renderer.name})}):Z.createElement(i,{key:o.key,preferTag:o.preferTag,name:o.key,label:o.label,placeholder:o.placeholder,regionConfig:o,editorStore:a.store,manager:a,children:t,wrapperResolve:o.wrapperResolve,rendererName:r.renderer.name})}if(n.length){var c=H(function(e,t,n){var r=-1,a=void 0;return n.some((function(n,o){return!!n.matchRegion(t,e)&&(r=o,a=n,!0)})),[a,r]}(e,t,n),2),s=c[0],d=c[1];if(s){i=s.wrapper||eo;if(n.splice(d,1),'outter'===s.insertPosition)return Z.createElement(i,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,placeholder:s.placeholder,regionConfig:s,editorStore:a.store,manager:a,children:t,wrapperResolve:s.wrapperResolve});if(Z.isValidElement(t)){var l=t.props.children;return Z.cloneElement(t,{children:Z.createElement(i,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,placeholder:s.placeholder,regionConfig:s,editorStore:a.store,manager:a,children:l,wrapperResolve:s.wrapperResolve})})}}else if(Z.isValidElement(t)&&t.props.children){l=t.props.children;return l=Array.isArray(l)?l.map((function(t){return oo(e,t,n,r,a)})):oo(e,l,n,r,a),Z.cloneElement(t,{children:l})}}return t}function io(e,t,n){if(!Z.isValidElement(e))return e;var r=t(e,n);if(r===e&&e.props.children){var a=e.props.children;if(Array.isArray(a)){var o=[],i=!1;a.forEach((function(e,n){var r=io(e,t,n);r!==e&&(i=!0,Z.isValidElement(r)&&!r.key&&(r=Z.cloneElement(r,{key:n}))),o.push(r)})),i&&(r=Z.cloneElement(r,{children:o}))}else{var c=io(a,t,n);c!==a&&(r=Z.cloneElement(r,{children:c}))}}return r}var co=document.createElement('div');var so={updateLocation:function(){},jumpTo:function(){d.info(B('245897371cda2055f5c17c6cf298ed48'))},fetcher:function(e){return T(void 0,void 0,void 0,(function(){var t,n,r,a,o,i,c;return j(this,(function(s){switch(s.label){case 0:return t=e.url,n=e.method,r=e.data,a=e.config,o=e.headers,(a=a||{}).url=t,a.withCredentials=!0,a.cancelExecutor&&(a.cancelToken=new Ye.CancelToken(a.cancelExecutor)),a.headers=o?$($({},a.headers),o):null!==(c=a.headers)&&void 0!==c?c:{},a.method=n,a.data=r,'get'===n&&r?a.params=r:r&&r instanceof FormData||!r||'string'==typeof r||r instanceof Blob||r instanceof ArrayBuffer||(r=JSON.stringify(r),a.headers['Content-Type']='application/json'),[4,Ye(a)];case 1:return i=s.sent(),[4,ue(i,(function(e){return e}),e)];case 2:return[2,i=s.sent()]}}))}))},isCancel:function(e){return Ye.isCancel(e)},alert:C,confirm:S,notify:function(e,t){d[e]?d[e](t,B('error'===e?'a71002967924a83e32b38a80705290fb':'058ebdf2884474ebff2977ba2f0e275e')):console.warn('[Notify]',e,t)},forceSilenceInsideError:!1},lo=function(){function e(e,t){this.dnd=e,this.region=t,this.exchangeX=0,this.exchangeY=0,this.dndContainer=this.dnd.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]'))}return e.prototype.enter=function(e,t){var n=this.dnd.dragElement;if(n&&n.closest('[data-region]')===this.dndContainer){var r=Array.isArray(this.region.schema)?this.region.schema:[],a=this.getChild(this.dndContainer,n),i=n.getAttribute('data-editor-id'),c=_e(r,(function(e){return e.$$id===i}));~c&&r[c+1]&&(this.dropBeforeId=r[c+1].$$id),this.dndContainer.insertBefore(t,a);var s=n.outerHTML.replace('ae-is-draging','').replace(/\bdata\-editor\-id=(?:'.+?'|".+?")/g,'');t.innerHTML=s}else{var d=this.dnd.manager,l=d.store;!function(e,t,n,r){e.innerHTML='';var a=t.host.getComponent(),i=(null==a?void 0:a.renderControl)&&'body'===t.region;try{Ne(o({children:function(e){var r=e.render;return i?r('',{type:'form',wrapWithPanel:!1,mode:a.props.mode,body:[n]}):r(t.region,n)}},{},$($({},r.env),{theme:(null==a?void 0:a.props.theme)||r.env.theme,session:'ghost-thumb'}),''),co)}catch(e){}var c=co.innerHTML||B('f942c7a6a35c4eb1381d2966462d0489');e.innerHTML=c,Oe(co),co.innerHTML=''}(t,this.region,fn(l.dragSchema),d),this.dndContainer.appendChild(t)}},e.prototype.leave=function(e,t){this.dndContainer.removeChild(t)},e.prototype.over=function(e,t){var n,r,a=this.getTarget(e),o=this.dndContainer,i=this.region.schema,c=Array.isArray(i)?i:[],s=e.clientX-this.exchangeX,d=e.clientY-this.exchangeY;if(a&&!I.animating){var l=a.getAttribute('data-editor-id'),u=this.getChild(o,a),p=_e(c,(function(e){return e.$$id===l})),f=Array.prototype.indexOf.call(o.children,t),h=Array.prototype.indexOf.call(o.children,u);~f&&f>h&&(!this.exchangeY||d<0||s<0)?(this.exchangeX=e.clientX,this.exchangeY=e.clientY,this.dropBeforeId=null===(n=c[p])||void 0===n?void 0:n.$$id,f!==h-1&&(I.capture(o),o.insertBefore(t,u),I.animateAll())):~f&&f<h&&(!this.exchangeY||d>0||s>0)&&(this.exchangeX=e.clientX,this.exchangeY=e.clientY,c[p+1]?this.dropBeforeId=null===(r=c[p+1])||void 0===r?void 0:r.$$id:delete this.dropBeforeId,f!==h+1&&(I.capture(o),o.insertBefore(t,u.nextSibling),I.animateAll()))}t.parentNode!==o&&(delete this.dropBeforeId,I.capture(o),o.appendChild(t),I.animateAll())},e.prototype.getDropBeforeId=function(){return this.dropBeforeId},e.prototype.getTarget=function(e){for(var t,n,r=e.target.closest('[data-editor-id]');r;){if((null===(t=r.parentElement)||void 0===t?void 0:t.closest('[data-region]'))===this.dndContainer)return'grid'===r.getAttribute('data-renderer')?r.parentElement:r;r=(null===(n=r.parentElement)||void 0===n?void 0:n.closest('[data-editor-id]'))||null}return null},e.prototype.getChild=function(e,t){for(var n=t;n&&n.parentElement!==e;)n=n.parentElement;return n},e.prototype.dispose=function(){delete this.dropBeforeId},e}(),uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.enter=function(e,t){t.innerHTML='',t.classList.add('use-position'),t.classList.add('is-horizontal');var n=this.dnd.dragElement,r=this.dndContainer.getBoundingClientRect(),a=Array.isArray(this.region.schema)?this.region.schema:[];if(n&&n.closest('[data-region]')===this.dndContainer){var o=n.getAttribute('data-editor-id'),i=_e(a,(function(e){return e.$$id===o}));if(~i&&a[i+1]&&(this.dropBeforeId=a[i+1].$$id),n.nextElementSibling){var c=n.nextElementSibling.getBoundingClientRect();t.style.cssText+='top: 0; left: '.concat(c.x-r.x,'px;')}else t.style.cssText+='top: 0; left: 100%;'}else t.style.cssText+='top: 0; left: -999999%;';this.dndContainer.appendChild(t)},t.prototype.leave=function(e,t){t.classList.remove('use-position'),t.classList.remove('is-horizontal')},t.prototype.over=function(e,t){var n,r,a=this.getTarget(e);if(a){if('table'===(null===(n=this.dndContainer)||void 0===n?void 0:n.getAttribute('data-renderer'))){var o=null===(r=a.parentElement)||void 0===r?void 0:r.closest('th[data-editor-id], td[data-editor-id]');o&&this.dndContainer.contains(o)&&(a=o)}var i=this.dndContainer.getBoundingClientRect();!Array.isArray(this.region.schema)||this.region.schema;var c=a.getBoundingClientRect();a.nextElementSibling&&a.nextElementSibling.hasAttribute('data-editor-id')?(t.style.cssText+='left: '.concat(c.x-i.x,'px;'),this.dropBeforeId=a.getAttribute('data-editor-id')):e.clientX>c.x+c.width/2?(t.style.cssText+='top: 0; left: '.concat(c.right-i.x,'px;'),delete this.dropBeforeId):(t.style.cssText+='left: '.concat(c.x-i.x,'px;'),this.dropBeforeId=a.getAttribute('data-editor-id'))}},t}(lo),po=Se((function(e){d.warning(e)}),500),fo=function(){function e(e,t){this.manager=e,this.store=t,this.toDispose=[],this.dragEnterCount=0,this.lastX=0,this.lastY=0,this.lastMoveAt=0,this.startX=0,this.startY=0,this.toDispose.push(Yt((function(){return'schema'===t.dragType?t.dragId:''}),this.updateDragElements),Yt((function(){return{id:t.dropId,region:t.dropRegion}}),this.updateDropRegion),Yt((function(){return{id:t.planDropId,region:t.planDropRegion}}),this.updatePlanDropRegion)),this.dragGhost=document.createElement('div'),this.dragGhost.classList.add('ae-DragGhost'),this.dragGhost.classList.add('is-ghost')}return e.prototype.createDragImage=function(e,t){var n=document.createElement('div');return n.classList.add('ae-DragImage'),n.innerHTML='<span>'.concat((null==t?void 0:t.label)||e,'</span>'),document.body.appendChild(n),this.dragImage=n,n},e.prototype.disposeDragImage=function(){var e,t=this.dragImage;null===(e=null==t?void 0:t.parentElement)||void 0===e||e.removeChild(t),delete this.dragImage},e.prototype.switchToRegion=function(e,t,n){var r,a,o,i,c,s=this.store;if(!t||!n||s.dropId===t&&s.dropRegion===n)return!1;var d=s.getNodeById(t,n),l=d.regionInfo,u=s.dragSchema;if(!1===(null===(r=null==l?void 0:l.accept)||void 0===r?void 0:r.call(l,u))||(null===(a=d.host)||void 0===a?void 0:a.memberImmutable(n)))return!1;var p={mode:s.dragMode,sourceType:s.dragType,sourceId:s.dragId,data:s.dragSchema,targetId:t,targetRegion:n};return!this.manager.trigger('dnd-accept',p).prevented&&(null===(o=this.dndMode)||void 0===o||o.leave(e,this.dragGhost),null===(i=this.dndMode)||void 0===i||i.dispose(),s.setDropId(t,n),this.makeDNDModeInstance(d),null===(c=this.dndMode)||void 0===c||c.enter(e,this.dragGhost),!0)},e.prototype.makeDNDModeInstance=function(e){var t;if(!e||!ke(e))return this.dndMode||null;var n=null===(t=e.regionInfo)||void 0===t?void 0:t.dndMode,r=lo;return'position-h'===n&&(r=uo),this.dndMode=new r(this,e),this.dndMode},e.prototype.startDrag=function(e,t){var n,r=this,a=this.store.getNodeById(e),o=this.store.getDoc().querySelector('[data-editor-id="'.concat(e,'"]'));if(a&&o){if(null===(n=t.target)||void 0===n||n.addEventListener('dragend',this.dragEnd),this.lastX=t.clientX,this.lastY=t.clientY,this.manager.draggableContainer(a.id))return this.curDragId=e,this.startX=t.clientX,void(this.startY=t.clientY);this.dragElement=o,t.dataTransfer.effectAllowed='move',t.dataTransfer.setDragImage(this.createDragImage(e,a),0,0),t.dataTransfer.setData('dnd/ae-node-'.concat(e).toLowerCase(),''),setTimeout((function(){r.store.setDragId(e);var n=a.parent;r.switchToRegion(t,n.id,n.region)}),4)}else t.preventDefault()},e.prototype.dragEnter=function(e){var t,n=this.store;this.dragEnterCount++;var r=n.activeId;if(r)if(a=n.getNodeById(r)){if(!n.dragId&&1===this.dragEnterCount){var a,o=e.dataTransfer.types;if(o.length>0)for(var i=function(t){if(/^dnd-dom\/(.*)$/.test(o[t])){var r=RegExp.$1,a=document.querySelector(r);if(a){a.addEventListener('dragend',c.dragEnd);var i=a.getAttribute('data-dnd-id'),s=a.getAttribute('data-dnd-type'),d=a.getAttribute('data-dnd-data'),l=d?JSON.parse(d):{type:'tpl',tpl:'Unknown'};n.setDragId(i,'copy',s,l);var u=n.activeContainerId;if(u){var p=n.getNodeById(u);if(null==p?void 0:p.childRegions.length){var f=0;p.childRegions.forEach((function(e,t){e.region&&(f=t)})),c.switchToRegion(e,p.id,p.childRegions[f].region)}}return'break'}}},c=this,s=o.length-1;s>=0;s--){if('break'===i(s))break}if(this.curDragId&&this.manager.draggableContainer(this.curDragId)){if(a=n.getNodeById(r)){var d=a.parentId?n.getNodeById(a.parentId):void 0;(null===(t=null==d?void 0:d.schema)||void 0===t?void 0:t.isFreeContainer)&&n.setDropId(a.parentId,'body')}}else;}}else po(B('0e24e1bbc19612a350f81296d9fb7802'));else po(B('0e24e1bbc19612a350f81296d9fb7802'))},e.prototype.dragOver=function(e){var t,n=this.store,r=e.target;e.preventDefault();var a=e.clientX-this.lastX,o=e.clientY-this.lastY,i=Math.max(Math.abs(a),Math.abs(o)),c=Date.now(),s=r.closest('[data-region][data-region-host]'),d=null==s?void 0:s.getAttribute('data-region-host'),l=null==s?void 0:s.getAttribute('data-region');if(i>0&&this.curDragId&&this.manager.draggableContainer(this.curDragId)){var u=n.getDoc(),p=null===parent||void 0===parent?void 0:parent.window.document,f=u.querySelector('[data-hlbox-id=\''.concat(this.curDragId,'\']'));if(n.isMobile&&!f&&p&&(f=p.querySelector('[data-hlbox-id=\''.concat(this.curDragId,'\']'))),f){var h=(f.style.inset||'auto').split(' '),m={top:f.style.top||h[0]||'auto',right:f.style.right||h[1]||'auto',bottom:f.style.bottom||h[2]||h[0]||'auto',left:f.style.left||h[3]||h[1]||'auto'};f.style.inset=''.concat('auto'!==m.top?dn(m.top,o):'auto',' ').concat('auto'!==m.right?dn(m.right,-a):'auto',' ').concat('auto'!==m.bottom?dn(m.bottom,-o):'auto',' ').concat('auto'!==m.left?dn(m.left,a):'auto')}var v=u.querySelector('[data-editor-id=\''.concat(this.curDragId,'\']'));if(v){var g=(v.style.inset||'auto').split(' '),b={top:g[0]||'auto',right:g[1]||'auto',bottom:g[2]||g[0]||'auto',left:g[3]||g[1]||'auto'};v.style.inset=''.concat('auto'!==b.top?dn(b.top,o):'auto',' ').concat('auto'!==b.right?dn(b.right,-a):'auto',' ').concat('auto'!==b.bottom?dn(b.bottom,-o):'auto',' ').concat('auto'!==b.left?dn(b.left,a):'auto')}return this.lastX=e.clientX,void(this.lastY=e.clientY)}if(n.dropId&&r)if(i<5){if(!s||d===n.dropId)return;c-this.lastMoveAt>200&&l&&d&&this.switchToRegion(e,d,l)}else n.setPlanDropId('',''),this.lastMoveAt=c,this.lastX=e.clientX,this.lastY=e.clientY,n.dropId===d&&l&&l!==n.dropRegion&&this.switchToRegion(e,n.dropId,l),null===(t=this.dndMode)||void 0===t||t.over(e,this.dragGhost)},e.prototype.drop=function(e){var t;return T(this,void 0,void 0,(function(){var n,r,a,o,i,c,s,d;return j(this,(function(l){switch(l.label){case 0:return n=this.store,this.curDragId&&this.manager.draggableContainer(this.curDragId)?(r=e.clientX-this.startX,a=e.clientY-this.startY,this.manager.updateContainerStyleByDrag(this.curDragId,r,a),this.curDragId='',this.store.setDropId(''),[2]):n.dropId?(o=null===(t=this.dndMode)||void 0===t?void 0:t.getDropBeforeId(),'move'!==n.dragMode?[3,1]:(this.manager.move(n.dropId,n.dropRegion,n.dragId,o),[3,4])):[2];case 1:return'copy'!==n.dragMode?[3,4]:(i=n.dragSchema,c=n.dropId,s=n.dropRegion,d=void 0,'subrenderer'!==n.dragType?[3,3]:(null==(d=Le(n.subRenderers,(function(e){return e.id===n.dragId})))?void 0:d.scaffoldForm)?[4,this.manager.scaffold(d.scaffoldForm,i)]:[3,3]);case 2:i=l.sent(),l.label=3;case 3:this.manager.addChild(c,s,i,o,d,{id:n.dragId,type:n.dragType,data:n.dragSchema}),l.label=4;case 4:return[2]}}))}))},e.prototype.dragLeave=function(e){this.dragEnterCount--},e.prototype.dragEnd=function(e){var t,n;null===(t=e.target)||void 0===t||t.removeEventListener('dragend',this.dragEnd),null===(n=this.dndMode)||void 0===n||n.leave(e,this.dragGhost),delete this.dndMode,this.dragGhost.innerHTML='',this.store.setDragId(''),this.store.setDropId(''),this.disposeDragImage(),this.dragEnterCount=0},e.prototype.updateDragElements=function(e){e&&this.manager.draggableContainer(e)||(e?[].slice.call(this.store.getDoc().querySelectorAll('[data-editor-id="'.concat(e,'"]'))).forEach((function(e){return e.classList.add('ae-is-draging')})):[].slice.call(this.store.getDoc().querySelectorAll('.ae-is-draging')).forEach((function(e){return e.classList.remove('ae-is-draging')})))},e.prototype.updateDropRegion=function(e,t){var n,r;this.store.dragId&&this.manager.draggableContainer(this.store.dragId)||((null==t?void 0:t.id)&&t.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]')))||void 0===n||n.classList.remove('is-dragenter')),e.id&&e.region&&(null===(r=this.store.getDoc().querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===r||r.classList.add('is-dragenter')))},e.prototype.updatePlanDropRegion=function(e,t){var n,r;this.store.dragId&&this.manager.draggableContainer(this.store.dragId)||((null==t?void 0:t.id)&&t.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]')))||void 0===n||n.classList.remove('is-entering')),e.id&&e.region&&(null===(r=this.store.getDoc().querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===r||r.classList.add('is-entering')))},e.prototype.dispose=function(){this.disposeDragImage(),this.toDispose.forEach((function(e){return e()})),this.toDispose=[]},_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',void 0)],e.prototype,'dragEnter',null),_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',void 0)],e.prototype,'dragOver',null),_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',Promise)],e.prototype,'drop',null),_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',void 0)],e.prototype,'dragLeave',null),_([Ut,V('design:type',Function),V('design:paramtypes',[DragEvent]),V('design:returntype',void 0)],e.prototype,'dragEnd',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],e.prototype,'updateDragElements',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Object]),V('design:returntype',void 0)],e.prototype,'updateDropRegion',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Object]),V('design:returntype',void 0)],e.prototype,'updatePlanDropRegion',null),e}(),ho=function(){function e(e,t,n){this.variables=Array.isArray(t)?Xe(Je(t),[function(e){var t;return null!==(t=e.order)&&void 0!==t?t:1}]):[],this.dataSchema=e instanceof pe?e:new pe([]),this.options=Qe(n,['beforeScopeInsert','afterScopeInsert','onContextSchemaChange','onContextOptionChange']),this.init()}return e.prototype.init=function(){var e,t=this,n=this.variables,r=this.dataSchema,a=null!==(e=this.options)&&void 0!==e?e:{},o=a.beforeScopeInsert,i=a.afterScopeInsert;n.forEach((function(e){var n,a=e.parentId,c=e.name,s=e.title,d=e.schema;r.hasScope(a)&&(r.switchTo(a),r.hasScope(c)&&r.removeScope(c),o&&'function'==typeof o&&(d=o(t,d)),r.addScope({type:'object',$id:c,properties:(n={},n[c]=$($({},d),{title:s}),n)},c),r.switchTo(c),i&&'function'==typeof i&&i(t))})),r.switchToRoot()},e.prototype.getVariableContextSchema=function(){var e,t,n=this,r=[],a=(null!==(e=this.options)&&void 0!==e?e:{}).onContextSchemaChange;return this.variables&&(null===(t=this.variables)||void 0===t?void 0:t.length)>0&&(r=this.variables.map((function(e){if(n.dataSchema.hasScope(e.name)){var t=n.dataSchema.getScope(e.name);return t.schemas.length>0?t.schemas[0]:null}return null})).filter((function(e){return null!==e}))),a&&'function'==typeof a&&(r=a(this,r)),r},e.prototype.getVariableFormulaOptions=function(e){var t,n,r=this;void 0===e&&(e=!1);var a=(null!==(t=this.options)&&void 0!==t?t:{}).onContextOptionChange,o=[];return this.variables&&(null===(n=this.variables)||void 0===n?void 0:n.length)>0&&this.variables.forEach((function(e){if(r.dataSchema.hasScope(e.name)){var t=r.dataSchema.getScope(e.name),n=ae(t.getDataPropsAsOptions(),(function(e){var t;return $($({},e),{tag:null!==(t=fe[e.type])&&void 0!==t?t:e.type})}));t.tag?o.push({label:t.tag,children:n}):o.push.apply(o,L([],H(n),!1))}})),a&&'function'==typeof a&&(o=a(this,o,'formula')),he(o,(function(e){'array'===e.type&&delete e.children})),e?o:Ge(o)},e.prototype.getVariableOptions=function(){var e,t,n,r,a=(null!==(e=this.options)&&void 0!==e?e:{}).onContextOptionChange,o=null!==(r=null===(n=null===(t=this.getVariableFormulaOptions(!1))||void 0===t?void 0:t[0])||void 0===n?void 0:n.children)&&void 0!==r?r:[];return o=ae(o,(function(e,t,n,r){return $($({},e),{valueExpression:'string'!=typeof e.value||e.value.startsWith('${')?e.value:'${'.concat(e.value,'}')})})),a&&'function'==typeof a&&(o=a(this,o,'normal')),o},e.prototype.getPageVariablesOptions=function(){var e,t=[],n=null===(e=this.dataSchema)||void 0===e?void 0:e.root;return n&&(t=n.getDataPropsAsOptions().filter((function(e){return['__query','__page'].includes(e.value)}))),he(t,(function(e){'array'===e.type&&delete e.children})),t},e.prototype.getNameByPath=function(e,t,n){var r,a;if(void 0===t&&(t='value'),void 0===n&&(n='label'),!e||'string'!=typeof e)return'';var o=L(L([],H(this.getVariableOptions()),!1),H(this.getPageVariablesOptions()),!1),i=te(o,(function(n){return n[null!=t?t:'value']===e}));return i&&null!==(a=null!==(r=i[null!=n?n:'label'])&&void 0!==r?r:i[null!=t?t:'value'])&&void 0!==a?a:''},e}(),mo=[];function vo(){window.AMISEditorCustomPlugins&&Object.keys(window.AMISEditorCustomPlugins).forEach((function(e){var t=window.AMISEditorCustomPlugins[e];t&&go(t)}))}function go(e){var t=Array.from(new Set(['global'].concat(e.scene||'global')));e.scene=t;var n=null;if(~(n=e.prototype&&e.prototype.isNpmCustomWidget?mo.findIndex((function(t){return Array.isArray(t)?t[0].prototype.name===e.prototype.name:t.prototype.name===e.prototype.name})):mo.findIndex((function(t){return t===e})))||(e.id=e.id||e.name||rt()),null!=e.priority&&Number.isInteger(e.priority))if(~(n=~n?n:mo.findIndex((function(t){return!Array.isArray(t)&&t.id===e.id&&(null==t?void 0:t.prototype)instanceof Ja})))){var r=mo[n],a=r.priority&&Number.isInteger(r.priority)?r.priority:0;e.priority>a?mo.splice(n,1,e):console.warn('注册插件「'.concat(e.id,'」异常,已存在同名插件:'),e)}else mo.push(e);else~n?console.warn('注册插件「'.concat(e.id,'」异常,已存在同名插件:'),e):mo.push(e)}function bo(e){void 0===e&&(e={});var t=e.scene,n=void 0===t?'global':t;return mo.filter((function(e){var t;return null===(t=(Array.isArray(e)?e[0]:e).scene)||void 0===t?void 0:t.includes(n)}))}function yo(e){var t=_e(mo,(function(t){return Array.isArray(t)?t[0].id===e:t.id===e}));~t&&mo.splice(t,1)}var Eo=function(){function e(e,t,n){var r=this;this.config=e,this.store=t,this.parent=n,this.toDispose=[],this.id=rt(),this.disableHover=!1,this.broadcasts=[],this.pluginEvents={},this.pluginActions={},this.listeners=[],this.lazyPatchSchema=Se(this.patchSchema.bind(this),250,{leading:!1,trailing:!0}),this.patching=!1,this.patchingInvalid=!1,this.env=$($($({},so),$e(e.amisEnv,'replaceText')),{theme:e.theme}),this.env.beforeDispatchEvent=this.beforeDispatchEvent.bind(this,this.env.beforeDispatchEvent),this.hackIn=ao,vo(),((null==e?void 0:e.plugins)||[]).forEach((function(e){if(!Array.isArray(e)&&e.priority&&Number.isInteger(e.priority)){var t=mo.findIndex((function(t){return!Array.isArray(t)&&!Array.isArray(e)&&t.id===e.id&&(null==t?void 0:t.prototype)instanceof Ja}));if(~t){var n=mo[t],r=n.priority&&Number.isInteger(n.priority)?n.priority:0;e.priority>r&&mo.splice(t,1)}}})),this.plugins=(e.disableBultinPlugin?[]:mo).concat(this.normalizeScene(null==e?void 0:e.plugins)).filter((function(t){return t=Array.isArray(t)?t[0]:t,!e.disablePluginList||('function'==typeof e.disablePluginList?!e.disablePluginList(t.id||'',t):!e.disablePluginList.includes(t.id||'unkown'))})).map((function(e){var t,n={};Array.isArray(e)&&(n='function'==typeof e[1]?e[1]():e[1],e=e[0]);var a=new e(r,n);return a.order=null!==(t=a.order)&&void 0!==t?t:0,a.rendererName&&(r.pluginEvents[a.rendererName]=a.events||[],r.pluginActions[a.rendererName]=a.actions||[]),a})).sort((function(e,t){return e.order-t.order})),this.hackRenderers(),this.dnd=new fo(this,t),this.dataSchema=new R(e.schemas||[]),this.variableManager=new ho(this.dataSchema,null==e?void 0:e.variables,null==e?void 0:e.variableOptions),this.toDispose.push(Yt((function(){return t.activeId}),(function(e,t){return T(r,void 0,void 0,(function(){return j(this,(function(n){switch(n.label){case 0:return this.store.insertId&&this.store.closeInsertPanel(),this.buildJSONSchemaUri(),this.buildToolbars(),[4,this.buildRenderers()];case 1:return n.sent(),this.buildPanels(),In('[data-node-id="'.concat(e,'"]')),this.trigger('active',e?$($({},this.buildEventContext(e)),{active:!0}):{id:t,active:!1}),[2]}}))}))})),be((function(){return t.selections.join(',')}),(function(){r.buildPanels()})),be((function(){return t.needPatch}),(function(e){e&&r.lazyPatchSchema()})),Yt((function(){return{id:t.hoverId,region:t.hoverRegion}}),(function(e,n){var r,a,o=t.getDoc();e.id&&e.region?null===(r=o.querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===r||r.classList.add('is-region-active'):(null==n?void 0:n.id)&&(null==n?void 0:n.region)&&(null===(a=o.querySelector('[data-region="'.concat(n.region,'"][data-region-host="').concat(n.id,'"]')))||void 0===a||a.classList.remove('is-region-active'))})))}return e.prototype.normalizeScene=function(e){return(null==e?void 0:e.map((function(e){var t;Array.isArray(e)&&(t=e[1],e=e[0]);var n=Array.from(new Set(['global'].concat(e.scene||'global')));return e.scene=n,t?[e,t]:e})))||[]},e.prototype.dynamicAddPlugin=function(e){var t;if(e)if(this.plugins.some((function(t){return t&&t.name===e})))console.warn('[amis-editor]当前已有'.concat(e,'插件'));else{var n=mo.find((function(t){return t.prototype&&t.prototype.name===e}));if(!n&&window.AMISEditorCustomPlugins&&(n=window.AMISEditorCustomPlugins[e]),n){var r=new n(this);r.order=null!==(t=r.order)&&void 0!==t?t:0,this.plugins.push(r),this.plugins.sort((function(e,t){return e.order-t.order})),r.rendererName&&(this.pluginEvents[r.rendererName]=r.events||[],this.pluginActions[r.rendererName]=r.actions||[]),this.buildRenderers()}}},e.prototype.buildRenderersAndPanels=function(){var e=this;setTimeout((function(){return T(e,void 0,void 0,(function(){var e,t;return j(this,(function(n){switch(n.label){case 0:return(e=this.store).activeId||!(null===(t=null==e?void 0:e.schema)||void 0===t?void 0:t.$$id)?[3,2]:[4,this.buildRenderers()];case 1:n.sent(),this.buildPanels(e.schema.$$id),n.label=2;case 2:return[2]}}))}))}),200)},e.prototype.buildEventContext=function(e){var t='string'==typeof e?this.store.getNodeById(e):e,n=this.store.getSchema(t.id);return{node:t,id:t.id,info:t.info,path:t.path,schemaPath:t.schemaPath,schema:n,data:''}},e.prototype.buildJSONSchemaUri=function(){var e=this.store.activeId,t='';if(e){var n=this.buildEventContext(e),r=this.trigger('before-resolve-json-schema',n);if(t=r.context.data,!r.prevented){this.plugins.forEach((function(e){var r;if(!t){var a=null===(r=e.buildJSONSchema)||void 0===r?void 0:r.call(e,n);a&&(t=a)}})),n.data=t;var a=this.trigger('after-resolve-json-schema',n);t=a.data}}this.store.setJSONSchemaUri(t)},e.prototype.buildToolbars=function(){var e=this.store.activeId,t=[];if(e){var n=this.buildEventContext(e);this.plugins.forEach((function(e){var r,a=$({},n);null===(r=e.buildEditorToolbar)||void 0===r||r.call(e,a,t)})),this.trigger('build-toolbars',$($({},n),{data:t}))}this.store.setActiveToolbars(t.map((function(e){return $($({},e),{order:e.order||0,id:rt()})})))},e.prototype.collectPanels=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var a=[];if(e){var o=$($({},this.buildEventContext(e)),{secondFactor:n,data:a,selections:this.store.selections.map((function(e){return r.buildEventContext(e)}))});this.plugins.forEach((function(e){var t;null===(t=e.buildEditorPanel)||void 0===t||t.call(e,o,a)})),t&&this.trigger('build-panels',o),a=o.data||a,o.changeLeftPanelKey&&this.store.changeLeftPanelKey(o.changeLeftPanelKey)}return a},e.prototype.buildPanels=function(e){var t,n,r=e||this.store.activeId,a=[];if(!r&&(null===(t=this.store)||void 0===t?void 0:t.filteredSchema)&&(r=null===(n=this.store)||void 0===n?void 0:n.filteredSchema.$$id),r||this.store.selections.length){r=r||this.store.selections[0];var o=this.store.getNodeById(r);a=o?this.collectPanels(o,!0):a}this.store.setPanels(a.map((function(e){return $($({},e),{order:e.order||0})})))},e.prototype.collectRenderers=function(e,t){var n,r,a,o;return void 0===t&&(t=this.store.activeContainerId),T(this,void 0,void 0,(function(){var i,c,s,d,l,u,p,f,h,m,v,g,b;return j(this,(function(y){switch(y.label){case 0:if(i=[],!(c=t)&&(null===(n=this.store)||void 0===n?void 0:n.schema)&&(c=null===(r=this.store)||void 0===r?void 0:r.schema.$$id),!c)return[2,i];if(!(s=this.store.getNodeById(c)))return[2,i];d=this.store.getSchema(c),l={node:s,id:s.id,info:s.info,path:s.path,schemaPath:s.schemaPath,schema:d,region:e},u=[],p=function(e,t){var n,r;return j(this,(function(t){switch(t.label){case 0:return n=f.plugins[e],[4,null===(a=n.buildSubRenderers)||void 0===a?void 0:a.call(n,l,i,me())];case 1:return(r=t.sent())&&(Array.isArray(r)?r:[r]).forEach((function(e){return i.push($($({},e),{id:rt(),plugin:n,parent:s.info,order:e.order||0}))})),n.asyncUpdateCustomSubRenderersInfo&&u.push(n),[2]}}))},f=this,h=0,m=this.plugins.length,y.label=1;case 1:return h<m?[5,p(h,m)]:[3,4];case 2:y.sent(),y.label=3;case 3:return h++,[3,1];case 4:if(!u.length)return[3,8];v=0,g=u.length,y.label=5;case 5:return v<g?(b=u[v],[4,null===(o=b.asyncUpdateCustomSubRenderersInfo)||void 0===o?void 0:o.call(b,l,i,me())]):[3,8];case 6:y.sent(),y.label=7;case 7:return v++,[3,5];case 8:return[2,i.filter((function(e){return!e.disabledRendererPlugin}))]}}))}))},e.prototype.buildRenderers=function(e){return T(this,void 0,void 0,(function(){var t;return j(this,(function(n){switch(n.label){case 0:return[4,this.collectRenderers(e)];case 1:return t=n.sent(),this.store.setSubRenderers(t),this.store.changeSubRendererRegion(e||''),[2]}}))}))},e.prototype.rebuild=function(){return T(this,void 0,void 0,(function(){return j(this,(function(e){switch(e.label){case 0:return[4,this.buildRenderers()];case 1:return e.sent(),this.buildToolbars(),this.buildPanels(),[2]}}))}))},e.prototype.updateConfigPanel=function(e){var t,n=this,r=this.store,a=r.activeId,o=r.getSchema,i=r.getNodeById,c=e;if(!c&&this.store.activeId){var s=o(a);c=s.type}if(c&&this.store.activeId){var d=this.store.panels.concat(),l=i(a);if(c&&l){var u=this.plugins.find((function(e){return e.rendererName===c}));d.splice(d.findIndex((function(e){return'config'===e.key})),1);var p=$($({},this.buildEventContext(l)),{data:d,selections:this.store.selections.map((function(e){return n.buildEventContext(e)}))});u&&(null===(t=u.buildEditorPanel)||void 0===t||t.call(u,p,d),this.store.setPanels(d.map((function(e){return $($({},e),{order:e.order||0})}))))}}},e.prototype.switchToRegion=function(e){this.store.activeId&&this.buildRenderers(e)},e.prototype.showInsertPanel=function(e,t,n,r,a,o){var i,c,s;return void 0===t&&(t=this.store.activeId),void 0===r&&(r='insert'),void 0===a&&(a=''),T(this,void 0,void 0,(function(){var d,l;return j(this,(function(u){switch(u.label){case 0:return void 0===n&&t&&(d=this.store.getNodeById(t),n=null===(s=null===(c=null===(i=null==d?void 0:d.info)||void 0===i?void 0:i.regions)||void 0===c?void 0:c.find((function(t){return t.key===e})))||void 0===s?void 0:s.preferTag),[4,this.collectRenderers(e,t)];case 1:return l=u.sent(),this.store.setInsertRenderers(l),this.store.setInsertRegion(e,t,n,r,a,o),[2]}}))}))},e.prototype.showReplacePanel=function(e,t){var n=this.store.getNodeById(e),r=null==n?void 0:n.parent;if(n&&r&&r.isRegion&&r.parent){var a=r.parent;this.showInsertPanel(r.region,a.id,t,'replace',n.id)}},e.prototype.showRendererPanel=function(e,t){this.store.showRendererPanel(e,t)},e.prototype.on=function(e,t){var n=this;return this.listeners.push({type:e,fn:t}),function(){return n.off(e,t)}},e.prototype.off=function(e,t){var n=_e(this.listeners,(function(n){return n.type===e&&n.fn===t}));~n&&this.listeners.splice(n,1)},e.prototype.trigger=function(e,t){var n=Xa(e,t),r=qt(/^(?:before|after)/.test(e)?e:'on-'.concat(e)),a=this.listeners.filter((function(t){return t.type===e}));this.plugins.forEach((function(t){return t[r]&&a.push({type:e,fn:t[r].bind(t)})})),this.config[r]&&a.push({fn:this.config[r],type:e});var o=[];return a.some((function(e){var t=e.fn.call(null,n);return!1===t?(n.preventDefault(),n.stopPropagation()):(null==t?void 0:t.then)?o.push(t):void 0!==t&&n.setData(t),n.stoped})),o.length&&(n.pending=Promise.all(o)),n},e.prototype.addElem=function(e,t,n){var r,a;return void 0===n&&(n=!0),T(this,void 0,void 0,(function(){var o,i,c,s,l,u,p,f,h,m,v,g,b,y,E;return j(this,(function(w){switch(w.label){case 0:if(!e)return[2];if(o='',nn(e)?o=e.toString():rn(e)&&(i=e),c=this.store,l=c.activeId,u=c.getNodeById(l),o&&(s=c.getSubRendererById(o),'fixed'===((null===(r=null==s?void 0:s.scaffold)||void 0===r?void 0:r.style)||{}).position&&(l=c.getRootId(),u=c.getNodeById(l))),!s&&!i)return[2];if(!u)return d.warning(B('0e24e1bbc19612a350f81296d9fb7802')),[2];if(p=i||(null==s?void 0:s.scaffold),this.isSpecialLayout(p),f=u.parent,h=null,m=null,v=null,c.activeRegion)m=l,v=c.activeRegion;else if(u.schema.columns&&'grid'!==u.type)m=l,v='columns';else if(u.schema.items&&sn(u.schema))m=l,v='items';else if(u.schema.fields&&'doc-entity'===u.schema.type)m=l,v='fields';else if(u.schema.body)m=l,v='body';else if(f){if(m=f.id,v=f.region,!f.region&&f.schema.body)v='body';else if(!f.region&&f.schema.items)v='items';else if(!f.region&&!f.schema.body&&!f.schema.items)return d.warning(B('bd690facb536d759814ee64f2760fecb')),[2];g=c.getSchemaParentById(l),b=-1,g.some((function(e,t){var n=!1;return(null==e?void 0:e.$$id)===l&&(b=t,n=!0),n})),h=null===(a=g[b+1])||void 0===a?void 0:a.$$id}else m=l,v='body';return y=i,!s||i?[3,2]:(y=s.scaffold||{type:s.type},s.scaffoldForm?[4,this.scaffold(s.scaffoldForm,y)]:[3,2]);case 1:y=w.sent(),w.label=2;case 2:return(E=this.addChild(m,v,y,h,s||u.info,{id:c.dragId,type:c.dragType,data:c.dragSchema},t))&&n&&setTimeout((function(){c.setActiveId(E.$$id)}),100),[2]}}))}))},e.prototype.canAppendSiblings=function(){var e=this.store,t=e.activeId,n=e.getNodeById(t),r=n.parent;return!!(n&&r&&r.schema)&&(!r.memberImmutable('')&&!!(r.schema.body||'flex'===r.schema.type&&r.schema.items||n.schema.columns))},e.prototype.appendSiblingSchema=function(e,t,n,r){var a,o;return T(this,void 0,void 0,(function(){var i,c,s,l,u,p,f,h,m,v;return j(this,(function(g){if(!e)return[2];if(i=this.store,c=i.activeId,!(s=i.getNodeById(c)))return d.warning(B('0e24e1bbc19612a350f81296d9fb7802')),[2];if(l=s.parent,u=null,p=null,f=null,l){if(p=l.id,f=l.region,!l.region&&l.schema.body)f='body';else if(!l.region&&'flex'===(null===(a=l.schema)||void 0===a?void 0:a.type)&&l.schema.items)f='items';else if(!l.region&&!l.schema.body)return d.warning(B('bd690facb536d759814ee64f2760fecb')),[2];h=i.getSchemaParentById(c),m=-1,h.some((function(e,t){var n=!1;return e.$$id===c&&(m=t,n=!0),n})),u=null===(o=h[t?m:m+1])||void 0===o?void 0:o.$$id,(v=this.addChild(p,f,e,u,s.info,{id:i.dragId,type:i.dragType,data:i.dragSchema},r))&&!n&&setTimeout((function(){i.setActiveId(v.$$id)}),100)}return[2]}))}))},e.prototype.insert=function(){return T(this,void 0,void 0,(function(){var e,t,n,r,a,o,i;return j(this,(function(c){switch(c.label){case 0:return e=this.store,(t=e.selectedInsertRendererInfo)?(n=e.insertId,r=e.insertRegion,a=e.insertBeforeId,o=t.scaffold||{type:t.type},t.scaffoldForm?[4,this.scaffold(t.scaffoldForm,o)]:[3,2]):[2];case 1:o=c.sent(),c.label=2;case 2:return(i=this.addChild(n,r,o,a,t))&&(e.closeInsertPanel(),setTimeout((function(){e.setActiveId(i.$$id)}),100)),[2]}}))}))},e.prototype.replace=function(){return T(this,void 0,void 0,(function(){var e,t,n,r,a,o=this;return j(this,(function(i){switch(i.label){case 0:return e=this.store,(t=e.selectedInsertRendererInfo)?(n=e.insertOrigId,r=t.scaffold||{type:t.type},a=e.insertRegion,t.scaffoldForm?[4,this.scaffold(t.scaffoldForm,r)]:[3,2]):[2];case 1:r=i.sent(),i.label=2;case 2:return this.replaceChild(n,r,t,a)&&(e.closeInsertPanel(),setTimeout((function(){o.rebuild()}),4)),[2]}}))}))},e.prototype.isFlexContainer=function(e){return this.store.isFlexContainer(e)},e.prototype.isFlexItem=function(e){return this.store.isFlexItem(e)},e.prototype.isFlexColumnItem=function(e){return this.store.isFlexColumnItem(e)},e.prototype.isSpecialLayout=function(e){var t=(null==e?void 0:e.style)||{};return'fixed'===(null==t?void 0:t.position)||'absolute'===(null==t?void 0:t.position)},e.prototype.draggableContainer=function(e){return this.store.draggableContainer(e)},e.prototype.updateContainerStyleByDrag=function(e,t,n){this.store.updateContainerStyleByDrag(e,t,n)},e.prototype.getEditorInfo=function(e,t,n){var r=null,a=n.$$id?this.store.getSchemaPath(n.$$id):'',o={renderer:e,path:t,schemaPath:a,schema:n},i=this.trigger('before-resolve-editor-info',o);return i.prevented?i.context.data:(this.plugins.some((function(t){var i,c=null===(i=t.getRendererInfo)||void 0===i?void 0:i.call(t,o);return!!c&&(r=$($({id:n.$$id},c),{type:n.type,plugin:t,renderer:e,dialogTitle:'dialog'===n.type||'drawer'===n.type?n.title:'',dialogType:n.dialogType,schemaPath:a}),!0)})),this.trigger('after-resolve-editor-info',$($({},o),{data:r})).context.data)},e.prototype.panelChangeValue=function(e,t,n,r){void 0===r&&(r=this.store.activeId);var a=this.store,o=$($({},this.buildEventContext(r)),{value:e,diff:t});this.trigger('before-update',o).prevented||(a.changeValue(e,t,n,r),this.trigger('after-update',$($({},o),{schema:o.node.schema})))},e.prototype.openSubEditor=function(e){if(['dialog','drawer','confirmDialog'].includes(e.value.type)&&this.parent)for(var t=this.parent,n=e.value.$$originId||e.value.$$id;t;){if(t.store.schema.$$id===n)return void d.warning('所选弹窗已经被打开,不能多次打开');t=t.parent}this.store.openSubEditor(e)},e.prototype.openContextMenu=function(e,t,n){var r=this,a=[],o=this.buildEventContext(e),i=$($({},o),{selections:this.store.selections.map((function(e){return r.buildEventContext(e)})),region:t,data:a});(a=this.buildContextMenus(i)).length&&(this.store.setContextId(e),x({x:n.x,y:n.y},a,(function(e){return e.state.isOpened&&r.store.setContextId('')})))},e.prototype.buildContextMenus=function(e){return this.plugins.forEach((function(t){var n;null===(n=t.buildEditorContextMenu)||void 0===n||n.call(t,e,e.data)})),this.trigger('build-context-menus',e),e.data},e.prototype.closeContextMenu=function(){},e.prototype.moveUp=function(){var e,t=this.store;if(t.activeId){var n=t.getNodeById(t.activeId),r=n.parent,a=n.host,o=this.buildEventContext(a),i=$($({},o),{sourceId:n.id,direction:'up',beforeId:null===(e=n.prevSibling)||void 0===e?void 0:e.id,region:r.region});this.trigger('before-move',i).prevented||(t.moveUp(n.id),this.trigger('after-move',i),this.trigger('after-update',i))}},e.prototype.moveDown=function(){var e,t,n=this.store;if(n.activeId){var r=n.getNodeById(n.activeId),a=r.parent,o=r.host,i=this.buildEventContext(o),c=$($({},i),{sourceId:r.id,direction:'down',beforeId:null===(t=null===(e=r.nextSibling)||void 0===e?void 0:e.nextSibling)||void 0===t?void 0:t.id,region:a.region});this.trigger('before-move',c).prevented||(n.moveDown(r.id),this.trigger('after-move',c),this.trigger('after-update',c))}},e.prototype.del=function(e){if(e&&e.length){var t=Array.isArray(e)?e[0]:e,n=$($({},this.buildEventContext(t)),{data:Array.isArray(e)?e.concat():[]});this.trigger('before-delete',n).prevented||(Array.isArray(n.data)&&n.data.length?this.store.delMulti(n.data):this.store.del(t),this.trigger('after-delete',n))}},e.prototype.duplicate=function(e){this.store.duplicate(e)},e.prototype.copy=function(e,t){void 0===t&&(t=B('52e6abbe5c11e7cbf14788c1540f8bf2'));var n=this.store.getValueOf(e);this.clipboardData=Ve(n),d.info(B('372ea9fd27fb7cfacfe1b4ca3046f8d0')+t)},e.prototype.cut=function(e){this.copy(e,B('2a6287664de5ab46c65220c7182878ff')),this.del(e)},e.prototype.paste=function(e,t){return T(this,void 0,void 0,(function(){var n,r=this;return j(this,(function(a){return this.clipboardData?(n=Dt(Ue(this.clipboardData)),t?(this.addChild(e,t,n),[2]):(this.replaceChild(e,n)&&setTimeout((function(){r.store.highlightNodes.forEach((function(e){e.calculateHighlightBox()})),r.updateConfigPanel(n.type)})),[2])):(C(B('1ff035555ac8a68dc5b0ea2d0af55f00')),[2])}))}))},e.prototype.emptyRegion=function(e,t){var n=this;this.store.emptyRegion(e,t),setTimeout((function(){n.store.activeId&&n.store.getNodeById(n.store.activeId)||n.store.setActiveId(e)}),100)},e.prototype.addChild=function(e,t,n,r,a,o,i){var c=this.store,s=-1,d=this.buildEventContext(e),l=yt(n,null==i||i);if(r){var u=d.schema[t];Array.isArray(u)&&(s=_e(u,(function(e){return(null==e?void 0:e.$$id)===r})))}var p=$($({},d),{beforeId:r,index:s,region:t,data:l,subRenderer:a,dragInfo:o}),f=this.trigger('before-insert',p);if(!f.prevented){var h=c.insertSchema(f);return this.trigger('after-insert',p),h}return null},e.prototype.move=function(e,t,n,r){var a=this.store,o=$($({},this.buildEventContext(e)),{beforeId:r,region:t,sourceId:n}),i=this.trigger('before-move',o);return!i.prevented&&(a.moveSchema(i),this.trigger('after-move',o),!0)},e.prototype.replaceChild=function(e,t,n,r,a){var o=yt(t,null==a||a),i=$($({},this.buildEventContext(e)),{data:$({},o),subRenderer:n,region:r}),c=this.trigger('before-replace',i);return!(c.prevented||!c.context.data)&&(this.store.replaceChild(e,c.context.data),this.trigger('after-replace',i),!0)},e.prototype.setActiveId=function(e){this.store.setActiveId(e)},e.prototype.openConfigPanel=function(e){var t=this.store;t.activeId!==e&&t.setActiveId(e),t.changePanelKey('config')},e.prototype.openCodePanel=function(e){var t=this.store;t.activeId!==e&&t.setActiveId(e),t.changePanelKey('code')},e.prototype.toggleSelection=function(e){var t=this.store,n=t.selections.concat();!n.length&&t.activeId&&n.push(t.activeId);var r=n.indexOf(e);~r?n.splice(r,1):n.push(e),this.setSelection(n,e)},e.prototype.setSelection=function(e,t){var n=this;void 0===t&&(t=e[0]);var r=this.store,a=this.buildEventContext(t),o=$($({},a),{selections:e.map((function(e){return n.buildEventContext(e)})),data:e});this.trigger('selection-change',o).prevented||(1===(e=o.data).length?r.setActiveId(e[0]):r.setSelections(e))},e.prototype.startDrag=function(e,t){t.persist(),this.dnd.startDrag(e,t.nativeEvent)},e.prototype.scaffold=function(e,t){return T(this,void 0,void 0,(function(){var n,r,a=this;return j(this,(function(o){switch(o.label){case 0:return e.pipeIn?[4,e.pipeIn(t)]:[3,2];case 1:return r=o.sent(),[3,3];case 2:r=t,o.label=3;case 3:return n=r,[2,new Promise((function(t){a.store.openScaffoldForm($($({},e),{value:n,callback:t}))}))]}}))}))},e.prototype.reScaffold=function(e,t,n){return T(this,void 0,void 0,(function(){var r;return j(this,(function(a){switch(a.label){case 0:return[4,this.scaffold(t,n)];case 1:return r=a.sent(),this.replaceChild(e,r),[2]}}))}))},e.prototype.reScaffoldV2=function(e){var t;return T(this,void 0,void 0,(function(){var n,r,a,o;return j(this,(function(i){switch(i.label){case 0:return n=this.buildEventContext(e),r=null===(t=n.info)||void 0===t?void 0:t.scaffoldForm,a=n.schema,[4,this.scaffold(r,a)];case 1:return o=i.sent(),this.replaceChild(e,o),[2]}}))}))},e.prototype.patchSchema=function(e){var t=this;if(void 0===e&&(e=!1),this.patching)this.patchingInvalid=!0;else{this.patching=!0,this.patchingInvalid=!1;var n=[],r=function(a){a.forEach((function(a){a.uniqueChildren&&a.uniqueChildren.length&&r(a.uniqueChildren),ke(a)&&!a.isRegion&&a.patch(t.store,e,(function(e,t){return n.unshift({id:e,value:t})}))}))};r(this.store.root.children),this.store.batchChangeValue(n),this.patching=!1,this.patchingInvalid&&this.patchSchema(e)}},e.prototype.hackRenderers=function(e){var t=this;void 0===e&&(e=me());var n=[];e.forEach((function(e){t.plugins.filter((function(t){var n;return Array.isArray(null==t?void 0:t.regions)&&t.regions.some((function(n){var r;return n.renderMethod&&(null!==(r=n.rendererName)&&void 0!==r?r:t.rendererName)===e.name}))||t.overrides&&(null!==(n=t.overrideTargetRendererName)&&void 0!==n?n:t.rendererName)===e.name})).forEach((function(t){var r,a,o=null===(r=t.regions)||void 0===r?void 0:r.filter((function(n){var r;return n.renderMethod&&(null!==(r=n.rendererName)&&void 0!==r?r:t.rendererName)===e.name}));(null==o?void 0:o.length)&&n.push({renderer:e,regions:o}),t.overrides&&(null!==(a=t.overrideTargetRendererName)&&void 0!==a?a:t.rendererName)===e.name&&n.push({renderer:e,overrides:t.overrides})}))})),n.forEach((function(e){var n=e.regions,r=e.renderer,a=e.overrides;return t.hackIn(r,n,a)}))},e.prototype.makeWrapper=function(e,t){return function(e,t,n){var r=e.store,a=n.component,o=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return K(i,o),i.prototype.UNSAFE_componentWillMount=function(){var a,o,i=this,c=this.context||r.root;if(t.id&&(this.editorNode=c.addChild({id:t.id,type:t.type,label:t.name,isCommonConfig:!!this.props.$$commonSchema,path:this.props.$path,schemaPath:t.schemaPath,dialogTitle:t.dialogTitle,dialogType:t.dialogType,info:t,getData:function(){return i.props.data}}),this.editorNode.setRendererConfig(n),(n.storeType||t.isListComponent)&&!e.dataSchema.hasScope(''.concat(t.id,'-').concat(t.type)))){for(var s=c,d=void 0;s&&!d;)s===r.root?d=e.dataSchema.getScope('root'):e.dataSchema.hasScope(''.concat(s.id,'-').concat(s.type))&&(d=e.dataSchema.getScope(''.concat(s.id,'-').concat(s.type))),s='root'===s.parentId?r.root:s.parent;if(!d)throw new Error(B('186733ed7ec817040b8f9cbc610ba49a'));if(e.dataSchema.switchTo(d.id),this.scopeId=''.concat(t.id,'-').concat(t.type),e.dataSchema.addScope([],this.scopeId),t.name){var l=null===(a=e.store.getNodeById(t.id))||void 0===a?void 0:a.schema,u=hn(null!==(o=null==l?void 0:l.title)&&void 0!==o?o:null==l?void 0:l.name);e.dataSchema.current.tag=''.concat(t.name).concat(u?' : '.concat(u):''),e.dataSchema.current.group=B('813a5158d9f7171d20e7df340c5b48f9')}}},i.prototype.componentDidUpdate=function(e){var t=this.props;this.editorNode&&t.$$commonSchema!==e.$$commonSchema&&this.editorNode.updateIsCommonConfig(!!this.props.$$commonSchema)},i.prototype.componentWillUnmount=function(){this.editorNode&&ke(this.editorNode)&&(this.context||r.root).removeChild(this.editorNode),this.scopeId&&e.dataSchema.removeScope(this.scopeId)},i.prototype.wrapperRef=function(e){for(var n,r;null==e?void 0:e.getWrappedInstance;)e=e.getWrappedInstance();this.editorNode&&ke(this.editorNode)&&(this.editorNode.setComponent(e),null===(r=null===(n=t.plugin)||void 0===n?void 0:n.componentRef)||void 0===r||r.call(n,this.editorNode,e))},i.prototype.renderChild=function(e,n,r){var a=this.props.render;return(null==n?void 0:n.$$id)&&((r=r||{}).key=''.concat(r.key,'-').concat(n.$$id)),a(e,n,$($({},r),{$$editor:t}))},i.prototype.render=function(){var e=this.props;e.$$id;var n=z(e,['$$id']),r=this.props.$$commonSchema?no:t.regions?to:Qa;return Z.createElement(Za.Provider,{value:this.editorNode||this.context},Z.createElement(le,{customErrorMsg:'拦截到'.concat(t.type,'渲染错误'),fallback:function(){return Z.createElement('div',{className:'renderer-error-boundary'},null==t?void 0:t.type,B('e9a11b908a9b4f3d9dc947d9a64c0dab'))}},Z.createElement(r,$({},n,{render:this.renderChild,$$editor:t,$$node:this.editorNode,ref:this.wrapperRef}))))},i.displayName=a.displayName,i.propsList=(a&&a.propsList||[]).concat(['$$id']),i.contextType=Za,_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],i.prototype,'wrapperRef',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,Object,Object]),V('design:returntype',void 0)],i.prototype,'renderChild',null),_([xe],i)}(Z.Component);return o}(this,e,t)},e.prototype.makeSchemaFormRender=function(e){return function(e,t){var n=$($({},e.env),{session:'schema-form'}),r=qe((function(e){return e?Ze(Array.isArray(e)?e:[e]):void 0}));return function(a){var o=a.value,i=a.onChange,c=a.popOverContainer,s=a.id,d=a.store,l=a.node,u=$({},e.store.ctx);if((null==t?void 0:t.panelById)&&(null==t?void 0:t.panelById)!==(null==l?void 0:l.id))return Z.createElement(Z.Fragment,null);s&&Object.defineProperty(u,'__props__',{get:function(){var e,t=d.getNodeById(s);return(null===(e=null==t?void 0:t.getComponent())||void 0===e?void 0:e.props)||{}}});var p=''.concat(s,'-').concat(null==l?void 0:l.type).concat(t.formKey?'-':'').concat(t.formKey?t.formKey:''),f=r(t.body),h=r(t.controls);return Z.createElement(ro,{key:p,propKey:p,api:t.api,definitions:t.definitions,body:f,controls:h,value:o,ctx:u,pipeIn:t.pipeIn,pipeOut:t.pipeOut,submitOnChange:t.submitOnChange,onChange:i,env:n,popOverContainer:c,node:l,manager:e,justify:t.justify})}}(this,e)},e.prototype.onWidthChangeStart=function(e,t){return this.trigger('width-change-start',$($({},t),{nativeEvent:e}))},e.prototype.onHeightChangeStart=function(e,t){return this.trigger('height-change-start',$($({},t),{nativeEvent:e}))},e.prototype.onSizeChangeStart=function(e,t){return this.trigger('size-change-start',$($({},t),{nativeEvent:e}))},e.prototype.openNodePopOverForm=function(e){var t,n,r,a,o='string'==typeof e?this.store.getNodeById(e):e;if(o&&((null===(n=null===(t=o.info)||void 0===t?void 0:t.plugin)||void 0===n?void 0:n.popOverBody)||(null===(a=null===(r=o.info)||void 0===r?void 0:r.plugin)||void 0===a?void 0:a.popOverBodyCreator))){var i=o.info.plugin,c=this.store,s={node:o,body:i.popOverBodyCreator?i.popOverBodyCreator(this.buildEventContext(o)):i.popOverBody,value:c.getValueOf(o.id),callback:this.panelChangeValue,target:function(){return document.querySelector('[data-hlbox-id="'.concat(o.id,'"]'))}};c.openPopOverForm(s)}},e.prototype.addBroadcast=function(e){this.broadcasts.push(e)},e.prototype.removeBroadcast=function(e){var t=_e(this.broadcasts,(function(t){return t.eventName===e}));this.broadcasts.splice(t,1)},e.prototype.getContextSchemas=function(e,t){var n,r,a,o,i,c,s,d,l;return void 0===t&&(t=!1),T(this,void 0,void 0,(function(){var u,p,f,h,m,v,g,b,y,E,w,C,S,I,x,R,N,O,k,A,M,P,F,D,B,T=this;return j(this,(function(j){switch(j.label){case 0:if(!(u='string'==typeof e?this.store.getNodeById(e):e))return[2,[]];for(v in p=void 0,f=u,h=u,m=u,this.dataSchema.idMap)/\-currentRow$/.test(v)&&this.dataSchema.removeScope(v);for(;!p&&f;)E=null===(n=f.info)||void 0===n?void 0:n.id,N=null===(r=f.info)||void 0===r?void 0:r.type,p=this.dataSchema.hasScope(''.concat(E,'-').concat(N))?this.dataSchema.getScope(''.concat(E,'-').concat(N)):void 0,(null==(f=f.parent)?void 0:f.isRegion)&&(h=f);b=[],j.label=1;case 1:return p?(y=H(p.id.split('-'),1),E=y[0],N=p.id.replace(''.concat(E,'-'),''),w=this.store.getNodeById(E,N),g||!w||w.isSecondFactor||(g=p),w?[4,null===(i=null===(o=null===(a=null==w?void 0:w.info)||void 0===a?void 0:a.plugin)||void 0===o?void 0:o.buildDataSchemas)||void 0===i?void 0:i.call(o,w,h,m)]:[3,3]):[3,4];case 2:(k=j.sent())&&(A=$($({},k),(null==k?void 0:k.$id)?{}:{$id:''.concat(w.id,'-').concat(w.type)}),p.removeSchema(A.$id),p.addSchema(A)),(null===(c=null==w?void 0:w.info)||void 0===c?void 0:c.isListComponent)&&(b.unshift(p),E===e&&(g=p.parent)),j.label=3;case 3:return p=t?void 0:p.parent,[3,1];case 4:if(!(b.length>1))return[3,12];j.label=5;case 5:j.trys.push([5,10,11,12]),C=U(b),S=C.next(),j.label=6;case 6:return S.done?[3,9]:(I=S.value,x=H(I.id.split('-'),2),R=x[0],N=x[1],(O=this.store.getNodeById(R,N))?[4,null===(l=null===(d=null===(s=null==O?void 0:O.info)||void 0===s?void 0:s.plugin)||void 0===d?void 0:d.buildDataSchemas)||void 0===l?void 0:l.call(d,O,h,m)]:[3,8]);case 7:(k=j.sent())&&(A=$($({},k),(null==k?void 0:k.$id)?{}:{$id:''.concat(O.id,'-').concat(O.type)}),I.removeSchema(A.$id),I.addSchema(A)),j.label=8;case 8:return S=C.next(),[3,6];case 9:return[3,12];case 10:return M=j.sent(),D={error:M},[3,12];case 11:try{S&&!S.done&&(B=C.return)&&B.call(C)}finally{if(D)throw D.error}return[7];case 12:return P=Object.keys(this.dataSchema.idMap).find((function(e){var t;return/\-currentRow$/.test(e)&&!(null===(t=T.dataSchema.idMap[e].children)||void 0===t?void 0:t.length)}))||(null==g?void 0:g.id),P&&this.dataSchema.switchTo(P),u.info.isListComponent&&(F=b[b.length-1],this.dataSchema.switchTo(F.parent)),[2,t?this.dataSchema.current.schemas:this.dataSchema.getSchemas()]}}))}))},e.prototype.getAvailableContextFields=function(e){var t,n,r,a,o,i,c,s;return T(this,void 0,void 0,(function(){var d,l,u,p,f,h;return j(this,(function(m){if(!e)return[2];for(d=void 0,l=e;!d&&l&&((d=this.dataSchema.hasScope(''.concat(l.id,'-').concat(l.type))?this.dataSchema.getScope(''.concat(l.id,'-').concat(l.type)):void 0)||!['combo','input-table'].includes(null===(t=null==l?void 0:l.info)||void 0===t?void 0:t.type));)null==(l=l.parent)||l.isRegion;if(!d)return!l&&this.store.isSubEditor?[2,null===(r=null===(n=this.config)||void 0===n?void 0:n.getAvaiableContextFields)||void 0===r?void 0:r.call(n,e)]:[2,null===(o=null==l?void 0:(a=l.info.plugin).getAvailableContextFields)||void 0===o?void 0:o.call(a,l,e)];for(;d;){if(u=H(d.id.split('-'),1),p=u[0],f=d.id.substring(p.length+1),(h=this.store.getNodeById(p,f))&&!(null===(i=h.info)||void 0===i?void 0:i.isListComponent))return[2,null===(s=null==h?void 0:(c=h.info.plugin).getAvailableContextFields)||void 0===s?void 0:s.call(c,h,e)];d=d.parent}return[2]}))}))},e.prototype.beforeDispatchEvent=function(e,t,n,r,a,o){var i,c,s,d;null==e||e(t,n,r,a,o);var l=n.props.$$id||(null===(i=n.props.$$editor)||void 0===i?void 0:i.id);if(l){var u=this.store.getNodeById(l,n.props.type);null===(d=null===(s=null===(c=null==u?void 0:u.info)||void 0===c?void 0:c.plugin)||void 0===s?void 0:s.rendererBeforeDispatchEvent)||void 0===d||d.call(s,u,t,Et(a))}},e.prototype.dispose=function(){this.trigger('dispose',{data:this}),delete this.parent,this.toDispose.forEach((function(e){return e()})),this.toDispose=[],this.plugins.forEach((function(e){var t;return null===(t=e.dispose)||void 0===t?void 0:t.call(e)})),this.plugins.splice(0,this.plugins.length),this.listeners.splice(0,this.listeners.length),this.broadcasts.splice(0,this.broadcasts.length),this.lazyPatchSchema.cancel(),this.dnd.dispose()},_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Object,Function,Object]),V('design:returntype',void 0)],e.prototype,'panelChangeValue',null),e}(),wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.afterResolveEditorInfo=function(e){var t,n,r,a,o,i,c=this.props.store,s=e.context;if(null===(t=c.subEditorContext)||void 0===t?void 0:t.slot){var d=c.subEditorSlotPath;!~s.schemaPath.indexOf(d)&&s.data?(s.data.editable=!1,s.data.memberImmutable=!Array.isArray(null===(a=c.subEditorContext)||void 0===a?void 0:a.value),s.data.memberImmutable||(s.data.name=B('22c799040acdb2601b437ed5449de076'))):s.schemaPath===d&&s.data&&(Array.isArray(null===(o=c.subEditorContext)||void 0===o?void 0:o.value)||(s.data.movable=!1,s.data.removable=!1),s.data.typeMutable=null===(i=c.subEditorContext)||void 0===i?void 0:i.typeMutable)}else s.data&&!s.schemaPath&&(null===(n=c.subEditorContext)||void 0===n?void 0:n.memberImmutable)&&(s.data.memberImmutable=null===(r=c.subEditorContext)||void 0===r?void 0:r.memberImmutable)},t.prototype.handleBuildPanels=function(e){var t,n;if(null===(n=this.props.store.subEditorContext)||void 0===n?void 0:n.slot){var r=e.context;if(r.info.memberImmutable){var a=r.data.concat();r.data.splice(0,r.data.length);var o=a.filter((function(e){return'renderers'!==e.key}));o&&(t=r.data).push.apply(t,L([],H(o),!1)),r.changeLeftPanelKey='outline'}}},t.prototype.buildSchema=function(){var e,t,n=this,r=this.props,a=r.store,o=r.manager,i=r.amisEnv,c=a.subEditorContext,s=o.config,d=a.superEditorData;c&&(d=oe(a.superEditorData,null==c?void 0:c.data));var l=(null===(e=o.config)||void 0===e?void 0:e.variables)||[];return{size:'full',title:null===(t=a.subEditorContext)||void 0===t?void 0:t.title,onClose:a.closeSubEditor,onConfirm:a.confirmSubEditor,body:a.subEditorContext?{type:'form',mode:'normal',wrapperComponent:'div',onValidate:function(e){return T(n,void 0,void 0,(function(){var t,n,r;return j(this,(function(o){switch(o.label){case 0:return[4,null===(r=null===(n=a.subEditorContext)||void 0===n?void 0:n.validate)||void 0===r?void 0:r.call(n,e)];case 1:return(t=o.sent())?[2,{schema:t}]:[2]}}))}))},onChange:a.subEditorOnChange,body:[{name:'schema',asFormItem:!0,children:function(e){var t,r,u,p,f=e.value,h=e.onChange;return Z.createElement(Mo,{autoFocus:!0,value:f,ref:a.subEditorRef,onChange:h,data:null===(t=a.subEditorContext)||void 0===t?void 0:t.data,hostManager:o,hostNode:null===(r=a.subEditorContext)||void 0===r?void 0:r.hostNode,superEditorData:d,schemaFilter:o.config.schemaFilter,theme:o.env.theme,afterResolveEditorInfo:n.afterResolveEditorInfo,onBuildPanels:n.handleBuildPanels,isMobile:a.isMobile,isSubEditor:!0,ctx:a.ctx,schemas:null===(u=o.config)||void 0===u?void 0:u.schemas,variables:l,amisEnv:i||s.amisEnv,appLocale:s.appLocale,i18nEnabled:s.i18nEnabled,plugins:s.plugins,actionOptions:s.actionOptions,showCustomRenderersPanel:null===(p=a.showCustomRenderersPanel)||void 0===p||p,isHiddenProps:s.isHiddenProps,$schemaUrl:s.$schemaUrl,onFormulaEditorOpen:function(e,t,r){return T(n,void 0,void 0,(function(){var n,a;return j(this,(function(i){return(n=null===(a=null==o?void 0:o.config)||void 0===a?void 0:a.onFormulaEditorOpen)&&'function'==typeof n?[2,n(e,t,r,{node:null==c?void 0:c.hostNode,manager:o})]:[2]}))}))},getHostNodeDataSchema:function(){return T(n,void 0,void 0,(function(){return j(this,(function(e){switch(e.label){case 0:return[4,o.getContextSchemas(o.store.activeId)];case 1:return e.sent(),[2,o.dataSchema]}}))}))},getAvaiableContextFields:function(e){return o.getAvailableContextFields(e)}})}}]}:{type:'tpl',tpl:'Loading...'},actions:[[{children:c?Z.createElement('div',{className:'ae-DialogToolbar'},Z.createElement('button',{type:'button','data-tooltip':B('bd9fcf46b4e5993f97fe04ee9ebcd7ed'),'data-position':'top',disabled:!c.canUndo,onClick:a.undoSubEditor},Z.createElement('i',{className:'fa fa-undo'})),Z.createElement('button',{type:'button','data-tooltip':B('c3c873d33f1c6482c79b0ffd862786cd'),'data-position':'top',disabled:!c.canRedo,onClick:a.redoSubEditor},Z.createElement('i',{className:'fa fa-rotate-right'}))):null},{type:'submit',label:B('be5fbbe34ce9979bfb6576d9eddc5612'),level:'primary'},{type:'button',label:B('625fb26b4b3340f7872b411f401e754c'),actionType:'close'}]],closeOnEsc:!1,bodyClassName:'ae-dialog subEditor-dialog'}},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,r=e.manager;return o($({type:'dialog'},this.buildSchema()),{show:!!t.subEditorContext,data:{schema:t.subEditorValue}},$($({},$e(r.env,'replaceText')),{session:'editor-dialog',theme:n}))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'afterResolveEditorInfo',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleBuildPanels',null),t=_([xe],t)}(Z.Component),Co=function(e){function t(t){var n=e.call(this,t)||this;return n.breadcrumbRef=Z.createRef(),n.bcnContentRef=Z.createRef(),n.state={showLeftScrollBtn:!1,showRightScrollBtn:!1},n.unReaction=be((function(){return n.props.store.bcn}),(function(){n.refreshHandleScroll(!0)})),n}return K(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.getCurBreadcrumb(),n=this.getBreadcrumbContainer();t&&n&&(this.unSensor=s(n,(function(){e.refreshHandleScroll()})))},t.prototype.componentWillUnmount=function(){this.unReaction(),this.unSensor&&(this.unSensor(),delete this.unSensor)},t.prototype.refreshHandleScroll=function(e){var t=this;setTimeout((function(){t.HandleScroll(e)}),0)},t.prototype.getCurBreadcrumb=function(){return this.bcnContentRef.current},t.prototype.getBreadcrumbContainer=function(){return this.breadcrumbRef.current},t.prototype.getScrollLeft=function(){var e=this.getCurBreadcrumb();return e?e.style.left:'0'},t.prototype.toNumber=function(e){return e?Number.parseInt(e):0},t.prototype.HandleScroll=function(e){var t=this.getCurBreadcrumb(),n=this.getBreadcrumbContainer();if(t&&n){var r=this.toNumber(this.getScrollLeft()),a=t.offsetWidth-n.offsetWidth;e&&(t.style.left='0'),this.setState({showLeftScrollBtn:r<0,showRightScrollBtn:r>-a})}},t.prototype.handleScrollToLeft=function(){var e=this.getCurBreadcrumb();if(e){var t=this.toNumber(this.getScrollLeft());t>=-50&&t<0?(e.style.left='0',this.refreshHandleScroll()):t<-50&&(e.style.left=''.concat(t+50,'px'),this.refreshHandleScroll())}},t.prototype.handleScrollToRight=function(){var e=this.getCurBreadcrumb(),t=this.getBreadcrumbContainer();if(e&&t){var n=this.toNumber(this.getScrollLeft()),r=e.offsetWidth-t.offsetWidth;e.style.left=n-50>-r?''.concat(n-50,'px'):'-'.concat(r,'px'),this.refreshHandleScroll()}},t.prototype.handleClick=function(e){var t,n=e.currentTarget,r=n.getAttribute('data-node-id'),a=n.getAttribute('data-node-region'),o=this.props.store;this.props.manager;var i=o.getNodeById(r);!1!==(null===(t=null==i?void 0:i.info)||void 0===t?void 0:t.editable)&&(a?o.setActiveId(r,a):o.setActiveId(r))},t.prototype.handleMouseEnter=function(e){var t=e.currentTarget,n=t.getAttribute('data-node-id'),r=t.getAttribute('data-node-region');this.props.store.setHoverId(n,r)},t.prototype.render=function(){var e=this,t=this.props.store,n=this.state,a=n.showLeftScrollBtn,o=n.showRightScrollBtn,i=t.bcn;return Z.createElement('div',{className:'ae-Breadcrumb',ref:this.breadcrumbRef},a&&Z.createElement('div',{className:'ae-Breadcrumb-scrollLeft-btn',onClick:this.handleScrollToLeft},Z.createElement(r,{icon:'editor-double-arrow',className:'icon'})),Z.createElement('div',{className:'ae-Breadcrumb-content',ref:this.bcnContentRef},i.length?Z.createElement('ul',null,i.map((function(t,n){var r,a=null===(r=t.parent)||void 0===r?void 0:r.uniqueChildren;return Z.createElement('li',{key:n},Z.createElement('span',{'data-node-id':t.id,'data-node-region':t.region,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter},t.label),(null==a?void 0:a.length)>1?Z.createElement('ul',{className:'hoverShowScrollBar'},a.map((function(n){return Z.createElement('li',{key:''.concat(n.id,'-').concat(n.region)},Z.createElement('span',{'data-node-id':n.id,'data-node-region':n.region,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,className:n.id===t.id&&n.region===t.region?'is-active':''},n.label))}))):null)}))):null),o&&Z.createElement('div',{className:'ae-Breadcrumb-scrollRight-btn',onClick:this.handleScrollToRight},Z.createElement(r,{icon:'editor-double-arrow',className:'icon'})))},_([Ut,V('design:type',Function),V('design:paramtypes',[Boolean]),V('design:returntype',void 0)],t.prototype,'refreshHandleScroll',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getCurBreadcrumb',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getBreadcrumbContainer',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',String)],t.prototype,'getScrollLeft',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',Number)],t.prototype,'toNumber',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Boolean]),V('design:returntype',void 0)],t.prototype,'HandleScroll',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleScrollToLeft',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleScrollToRight',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleMouseEnter',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),So=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.handleConfirm=function(e){var t,n,r,a,o=H(e,1)[0];return T(this,void 0,void 0,(function(){var e,i,c;return j(this,(function(s){switch(s.label){case 0:return e=this.props.store,i=null===(t=e.scaffoldForm)||void 0===t?void 0:t.pipeOut,o=$($({},null===(n=e.scaffoldForm)||void 0===n?void 0:n.value),o),i&&'function'==typeof i?[4,i(o)]:[3,2];case 1:c=s.sent(),o=$({},c),s.label=2;case 2:return null===(r=e.scaffoldForm)||void 0===r||r.callback(o),e.closeScaffoldForm(),(null===(a=e.scaffoldForm)||void 0===a?void 0:a.stepsBody)&&e.setScaffoldStep(0),[2]}}))}))},t.prototype.buildSchema=function(){var e,t,n,r=this.props.store.scaffoldForm,a=null!==(t=r.controls)&&void 0!==t?t:r.body;return r.stepsBody&&(a=L([{type:'steps',name:'__step',className:'ae-Steps',steps:a.map((function(e,t){return{title:e.title,value:t,iconClassName:'ae-Steps-Icon'}}))}],H(a.map((function(e,t){return{type:'container',visibleOn:'__step === '.concat(t),body:e.body}}))),!1)),n=rn(r.mode)?r.mode:{mode:r.mode||'normal'},$($({type:'form',wrapWithPanel:!1,initApi:r.initApi,api:r.api},n),((e={wrapperComponent:'div'})[r.controls?'controls':'body']=a,e))},t.prototype.scopeRef=function(e){this.amisScope=e},t.prototype.goToNextStep=function(){var e,t=this.props.store,n=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0].props.store,r=t.scaffoldFormStep+1;n.setValueByName('__step',r),t.updateScaffoldData(null==n?void 0:n.data,!0),t.setScaffoldStep(r),t.setScaffoldStepManipulated(!0)},t.prototype.goToPrevStep=function(){var e,t=this.props.store,n=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0].props.store,r=t.scaffoldFormStep-1;n.setValueByName('__step',r),t.updateScaffoldData(null==n?void 0:n.data,!0),t.setScaffoldStep(r)},t.prototype.handleConfirmClick=function(){var e;return T(this,void 0,void 0,(function(){var t,n,r,a;return j(this,(function(o){switch(o.label){case 0:if(!(t=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0]))return[2];n=this.props.store,o.label=1;case 1:return o.trys.push([1,4,,5]),n.setScaffoldBuzy(!0),[4,t.doAction({type:'submit'},t.props.data,!0)];case 2:return r=o.sent(),[4,this.handleConfirm([r])];case 3:return o.sent(),[3,5];case 4:return a=o.sent(),console.log(a.stack),n.setScaffoldError(a.message),[3,5];case 5:return n.setScaffoldBuzy(!1),n.setScaffoldStep(0),[2]}}))}))},t.prototype.handleCancelClick=function(){this.props.store.closeScaffoldForm(),this.props.store.setScaffoldStep(0)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,a=e.manager,i=t.scaffoldForm,c=N(n||'cxd').classnames,s=!!(null==i?void 0:i.stepsBody),d=!!(null==i?void 0:i.canSkip),l=s&&t.scaffoldFormStep===i.body.length-1,u=s&&0===t.scaffoldFormStep;return Z.createElement(O,{theme:n,size:(null==i?void 0:i.size)||'md',contentClassName:null==i?void 0:i.className,show:!!i,onHide:this.handleCancelClick,className:'ae-scaffoldForm-Modal :AMISCSSWrapper',closeOnEsc:!t.scaffoldFormBuzy},Z.createElement('div',{className:c('Modal-header')},t.scaffoldFormBuzy?null:Z.createElement('a',{'data-position':'left',onClick:this.handleCancelClick,className:c('Modal-close')},Z.createElement(r,{icon:'close',className:'icon'})),Z.createElement('div',{className:c('Modal-title')},null==i?void 0:i.title)),Z.createElement('div',{className:c('Modal-body')},i?o(this.buildSchema(),{data:t.scaffoldData,onValidate:i.validate,scopeRef:this.scopeRef,manager:a},$($({},a.env),{session:'scaffold-dialog',theme:n})):Z.createElement('p',null,'Loading...')),Z.createElement('div',{className:c('Modal-footer')},t.scaffoldFormBuzy||t.scaffoldError?Z.createElement('div',{className:c('Dialog-info'),key:'info'},Z.createElement(E,{size:'sm',key:'info',show:t.scaffoldFormBuzy}),t.scaffoldError?Z.createElement('span',{className:c('Dialog-error')},t.scaffoldError):null):null,s&&d&&u&&Z.createElement(f,{onClick:this.handleConfirmClick,disabled:t.scaffoldFormBuzy},B('451d71974652fdd1840a73c980f80fe8')),s&&!u&&Z.createElement(f,{level:'primary',onClick:this.goToPrevStep,disabled:t.scaffoldFormBuzy},B('eeb6908870e058bc23d52c1e405a054e')),s&&!l&&Z.createElement(f,{level:'primary',onClick:this.goToNextStep,disabled:t.scaffoldFormBuzy},B('38ce27d84639f3a6e07c00b3b4995c0e')),(!s||l)&&Z.createElement(f,{level:'primary',onClick:this.handleConfirmClick,disabled:t.scaffoldFormBuzy},B('e83a256e4f5bb4ff8b3d804b5473217a')),Z.createElement(f,{onClick:this.handleCancelClick},B('625fb26b4b3340f7872b411f401e754c'))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',Promise)],t.prototype,'handleConfirm',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'scopeRef',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'goToNextStep',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'goToPrevStep',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',Promise)],t.prototype,'handleConfirmClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleCancelClick',null),t=_([xe],t)}(Z.Component),Io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.overlay=Z.createRef(),t}return K(t,e),t.prototype.buildSchema=function(){var e=this,t=this.props.store.popOverForm;return{type:'form',wrapWithPanel:!1,mode:'normal',wrapperComponent:'div',body:t.body,submitOnChange:!0,autoFocus:!0,onFinished:function(n){var r;null===(r=t.callback)||void 0===r||r.call(t,n,Jt(t.value,n)),setTimeout((function(){var t;return null===(t=e.overlay.current)||void 0===t?void 0:t.updatePosition()}),200)}}},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,r=e.manager,a=t.popOverForm;return Z.createElement(k,{target:null==a?void 0:a.target,placement:'left-bottom-left-top left-top-left-bottom right-bottom-right-top right-top-right-bottom center',show:!!a,ref:this.overlay},Z.createElement(A,{overlay:!0,className:'ae-Editor-popOverForm',onHide:t.closePopOverForm},a?o(this.buildSchema(),{data:oe(t.ctx,null==a?void 0:a.value),node:null==a?void 0:a.node,manager:r},$($({},r.env),{session:'popover-form',theme:n})):Z.createElement('p',null,'Loading...')))},t=_([xe],t)}(Z.Component),xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.render=function(){var e=this.props.store.contextMenuPanel,t=e&&e.menus?e.menus:[];return t&&t.length>0?Z.createElement('div',{className:'context-menu-setting'},Z.createElement('div',{className:'setting-header'},B('7f7c624a843b0d539a4ea59a696702f9')),Z.createElement('div',{className:'setting-body'},t.map((function(e){return e.label&&Z.createElement('div',{key:e.label,className:'setting-item '.concat(e.disabled?'disabled':''),onClick:e.disabled?null:e.onSelect},Z.createElement('div',{className:'icon-box'},Z.createElement(r,{icon:e.icon,className:'menu-icon'})),Z.createElement('div',{className:'setting-info'},e.label))})))):null},t=_([xe],t)}(Z.Component),Ro=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.getPopOverContainer=function(){return Re(this)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.manager,r=e.node,a=e.panelItem,o=e.theme,i=t.activeId;return Z.createElement(M,{position:'left',size:'md',theme:o,show:!!a,onHide:t.closeInsertPanel,className:'ae-InsertPanel-drawer'},a&&a.component?Z.createElement(a.component,{key:a.key,id:i,info:null==r?void 0:r.info,path:null==r?void 0:r.path,value:t.value,onChange:n.panelChangeValue,store:t,manager:n,popOverContainer:this.getPopOverContainer}):null)},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=_([xe],t)}(Z.Component),No=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.getPopOverContainer=function(){return Re(this)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.manager,r=e.node,a=e.panelItem,o=e.theme,i=t.activeId,c=t.showInsertRenderer;return Z.createElement(M,{position:'left',size:'md',theme:o,show:c,onHide:t.closeInsertRendererPanel,className:'ae-InsertRendererPanel-drawer',bodyClassName:'ae-drawer-renderers'},a.title&&Z.createElement('div',{className:'ae-drawer-title'},a.title),a&&a.component?Z.createElement(a.component,{key:a.key,id:i,info:null==r?void 0:r.info,path:null==r?void 0:r.path,value:t.value,onChange:n.panelChangeValue,store:t,manager:n,popOverContainer:this.getPopOverContainer}):null)},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=_([xe],t)}(Z.Component),Oo=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isFixedStatus:!1},n}return K(t,e),t.prototype.handleHidden=function(){var e=this.props.store,t=e.changeLeftPanelOpenStatus,n=e.leftPanelOpenStatus,r=e.changeLeftPanelKey,a=!n;t(a),r(a?'outline':'none')},t.prototype.handleFixed=function(){this.setState({isFixedStatus:!this.state.isFixedStatus})},t.prototype.handleSelect=function(e){var t=this.props.store,n=t.changeLeftPanelOpenStatus,r=t.changeLeftPanelKey;e&&(n(!0),r(e))},t.prototype.getPopOverContainer=function(){return Re(this)},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.manager,o=t.theme,i=this.state.isFixedStatus,c=n.leftPanelOpenStatus,s=n.getLeftPanels(),d=n.activeId,l=n.getNodeById(d),u=n.getLeftPanelKey(),p=n.insertId&&n.insertRegion&&Le(s,(function(e){return'insert'===e.key})),f=Le(s,(function(e){return'insertRenderer'===e.key}));return Z.createElement(Z.Fragment,null,s.length>0&&Z.createElement('div',{className:X('editor-left-panel width-draggable',c?'':'hidden-status',i?'fixed-status':'')},Z.createElement('div',{className:'editor-panel-btn','editor-tooltip':B(i?'95509c09bdef4bb7842a9b957ab1f971':'426480bb614633c8c3ba8faa0338b72f'),'tooltip-position':'right'},Z.createElement(r,{icon:i?'editor-fixed':'editor-no-fixed',className:'panel-btn',onClick:this.handleFixed})),Z.createElement(v,{className:'editorPanel-tabs',linksClassName:'editorPanel-tabs-header',contentClassName:'editorPanel-tabs-content',theme:o,activeKey:u,onSelect:this.handleSelect,tabsMode:'sidebar',sidePosition:'left'},s.map((function(t){return'insert'!==t.key&&'insertRenderer'!==t.key?Z.createElement(g,{key:t.key,eventKey:t.key,title:t.title,className:'editorPanel-tabs-pane ae-Editor-'.concat(t.key,'Pane'),mountOnEnter:!0,unmountOnExit:!1},function(t){return t.render?t.render({id:d,info:null==l?void 0:l.info,path:null==l?void 0:l.path,node:l,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):t.component?Z.createElement(t.component,{node:l,key:t.key,id:d,info:null==l?void 0:l.info,path:null==l?void 0:l.path,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):null}(t)):null}))),Z.createElement('div',{className:X('left-panel-arrow',c?'':'hidden-status'),onClick:this.handleHidden})),i&&Z.createElement('div',{className:'editor-left-panel-fixed-placeholder'}),Z.createElement(Ro,{store:n,manager:a,node:l,panelItem:p,theme:o}),Z.createElement(No,{store:n,manager:a,node:l,panelItem:f,theme:o}))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleHidden',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleFixed',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleSelect',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),ko=function(e){function t(t){var n=e.call(this,t)||this;return n.handleResizeMouseDown=n.handleResizeMouseDown.bind(n),n.handleResizeMouseMove=n.handleResizeMouseMove.bind(n),n.handleResizeMouseUp=n.handleResizeMouseUp.bind(n),n}return K(t,e),t.prototype.handleResizeMouseDown=function(e){3==e.nativeEvent.which||(this.dragWrap=e.currentTarget.parentElement,document.addEventListener('mousemove',this.handleResizeMouseMove),document.addEventListener('mouseup',this.handleResizeMouseUp),this.startX=e.clientX,this.startWidth=this.dragWrap.offsetWidth,e.preventDefault())},t.prototype.handleResizeMouseMove=function(e){var t=this.props.isLeftDragIcon,n=e.clientX-this.startX;this.dragWrap.style.cssText+='width: '.concat(Math.max(t?this.startWidth-n:this.startWidth+n,260),'px')},t.prototype.handleResizeMouseUp=function(){document.removeEventListener('mousemove',this.handleResizeMouseMove),document.removeEventListener('mouseup',this.handleResizeMouseUp)},t.prototype.render=function(){var e=this.props,t=e.isLeftDragIcon,n=e.className;return Z.createElement('div',{onMouseDown:this.handleResizeMouseDown,className:X('width-draggable-icon',n,t?'leftBtn':'')})},t}(Z.Component),Ao=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpenStatus:!0,isFixedStatus:!1},n}return K(t,e),t.prototype.handleFixed=function(){this.setState({isFixedStatus:!this.state.isFixedStatus})},t.prototype.handleSelect=function(e){this.props.store.changePanelKey(e)},t.prototype.handleHidden=function(){this.setState({isOpenStatus:!this.state.isOpenStatus})},t.prototype.getPopOverContainer=function(){return Re(this)},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.manager,o=t.theme,i=this.state,c=i.isOpenStatus,s=i.isFixedStatus,d=n.getPanels(),l=n.activeId,u=n.getNodeById(l),p=n.getPanelKey(),f=function(t){return t.render?t.render({id:l,info:null==u?void 0:u.info,path:null==u?void 0:u.path,node:u,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):t.component?Z.createElement(t.component,{node:u,key:t.key,id:l,info:null==u?void 0:u.info,path:null==u?void 0:u.path,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):null};return d.length>0?Z.createElement('div',{className:X('editor-right-panel width-draggable','AMISCSSWrapper',d.length>1?'mul-tabs-panel':'',c?'':'hidden-status',s?'fixed-status':'')},Z.createElement('div',{className:'editor-panel-btn','editor-tooltip':B(s?'95509c09bdef4bb7842a9b957ab1f971':'426480bb614633c8c3ba8faa0338b72f'),'tooltip-position':'left'},Z.createElement(r,{icon:s?'editor-fixed':'editor-no-fixed',className:'panel-btn',onClick:this.handleFixed})),Z.createElement('div',{className:'editorPanel-inner'},1===d.length?f(d[0]):Z.createElement(v,{theme:o,tabsMode:'sidebar',sidePosition:'right',className:'editorPanel-tabs',linksClassName:'editorPanel-tabs-header',contentClassName:'editorPanel-tabs-content',activeKey:p,onSelect:this.handleSelect},d.map((function(e){var t=cn(e);return Z.createElement(g,{key:e.key,eventKey:e.key,title:Z.createElement('span',{className:'editor-tab-icon','editor-tooltip':e.title,'tooltip-position':'left'},t&&Z.createElement(r,{icon:e.pluginIcon,className:'pluginIcon'}),!t&&Z.createElement('i',{className:'fa '.concat(e.icon)})),className:'editorPanel-tabs-pane ae-Editor-'.concat(e.key,'Pane'),mountOnEnter:!0,unmountOnExit:!1},f(e))})))),Z.createElement(ko,{isLeftDragIcon:!0}),Z.createElement('div',{className:X('right-panel-arrow',c?'':'hidden-status'),onClick:this.handleHidden})):null},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleFixed',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleSelect',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleHidden',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=_([xe,V('design:paramtypes',[Object])],t)}(Z.Component),Mo=function(e){function t(t){var n,r,a=this;(a=e.call(this,t)||this).mainRef=Z.createRef(),a.toDispose=[],a.isInternalChange=!1;var o=t.value,i=t.isSubEditor,c=void 0!==i&&i;t.onChange;var s=t.showCustomRenderersPanel,d=t.superEditorData,l=t.hostManager,u=z(t,['value','isSubEditor','onChange','showCustomRenderersPanel','superEditorData','hostManager']),p=$({},u);return a.store=qa.create({isMobile:t.isMobile,theme:t.theme,isSubEditor:c,amisDocHost:t.amisDocHost,superEditorData:d,appLocale:t.appLocale,appCorpusData:null===(n=null==t?void 0:t.amisEnv)||void 0===n?void 0:n.replaceText,i18nEnabled:null!==(r=null==t?void 0:t.i18nEnabled)&&void 0!==r&&r},p),a.store.setCtx(t.ctx),a.store.setSchema(o),void 0!==s&&a.store.setShowCustomRenderersPanel(s),a.manager=new Eo(p,a.store,l),t.isSubEditor&&window.editorStore||(window.editorStore=a.store),document.addEventListener('keydown',a.handleKeyDown),window.addEventListener('message',a.handleMessage,!1),a.toDispose.push(be((function(){return a.store.schemaRaw}),(function(e){a.lastResult=e,a.isInternalChange||t.onChange(e)}))),a.toDispose.push(a.manager.on('preview2editor',(function(){return a.manager.rebuild()}))),a}return K(t,e),t.prototype.componentDidMount=function(){var e=this.manager.store;this.props.isSubEditor?setTimeout((function(){e.calculateHighlightBox(e.highlightNodes.map((function(e){return e.id})))}),500):this.manager.trigger('init',{data:this.manager})},t.prototype.componentDidUpdate=function(e){var t,n,r,a=this.props;a.value!==e.value&&a.value!==this.lastResult&&(this.isInternalChange=!0,this.store.setSchema(a.value),this.isInternalChange=!1),a.isMobile!==e.isMobile&&this.store.setIsMobile(a.isMobile),a.ctx!==e.ctx&&this.store.setCtx(a.ctx),a.appLocale!==e.appLocale&&this.store.setAppLocale(a.appLocale),(null===(t=null==a?void 0:a.amisEnv)||void 0===t?void 0:t.replaceText)!==(null===(n=null==e?void 0:e.amisEnv)||void 0===n?void 0:n.replaceText)&&this.store.setAppCorpusData(null===(r=null==a?void 0:a.amisEnv)||void 0===r?void 0:r.replaceText)},t.prototype.componentWillUnmount=function(){var e=this;document.removeEventListener('keydown',this.handleKeyDown),window.removeEventListener('message',this.handleMessage),this.toDispose.forEach((function(e){return e()})),this.toDispose=[],this.manager.dispose(),setTimeout((function(){return Be(e.store)}),4)},t.prototype.handleKeyDown=function(e){var t;if(!this.props.isSubEditor){var n=this.manager.store;if('BODY'===e.target.tagName&&('z'===e.key||'Z'===e.key)&&(e.metaKey||e.ctrlKey)&&e.shiftKey)return e.preventDefault(),void this.redo();if('BODY'===e.target.tagName&&('z'===e.key||'Z'===e.key)&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void this.undo();if('BODY'===e.target.tagName&&('s'===e.key||'S'===e.key)&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void this.save();if('BODY'!==e.target.tagName||'c'!==e.key&&'C'!==e.key||!e.metaKey&&!e.ctrlKey){if('BODY'===e.target.tagName&&('v'===e.key||'V'===e.key)&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void(this.curCopySchemaData&&this.paste());if('BODY'===e.target.tagName&&'x'===e.key&&(e.metaKey||e.ctrlKey))e.preventDefault(),this.store.activeId&&((r=n.getNodeById(this.store.activeId))&&n.activeRegion?d.warning(B('d6f73c6f3b92be5a64f7ea0163501284')):n.isRootSchema(this.store.activeId)?d.warning(B('4fda4f585214d469c04466e2fc98b796')):r&&r.moveable?(this.copy(),this.manager.del(this.store.activeId)):d.warning(B('657bbe06d3922b23552817df7fa8268e')));else if('BODY'===e.target.tagName&&'p'===e.key&&(e.metaKey||e.ctrlKey))e.preventDefault(),this.preview();else if('BODY'===e.target.tagName&&'ArrowUp'===e.key&&(e.metaKey||e.ctrlKey)){if(e.preventDefault(),this.store.activeId)(r=n.getNodeById(this.store.activeId))&&r.canMoveUp?this.manager.moveUp():d.warning(B('416445a316595bdeb44b661c7de875a8'))}else if('BODY'===e.target.tagName&&'ArrowDown'===e.key&&(e.metaKey||e.ctrlKey)){if(e.preventDefault(),this.store.activeId)(r=n.getNodeById(this.store.activeId))&&r.canMoveDown?this.manager.moveDown():d.warning(B('6ac88d87b2fd118ba7beab8c17880470'))}else if('BODY'===e.target.tagName&&('Backspace'===e.key||'Delete'===e.key)){var r;if(e.preventDefault(),this.store.activeId)(r=n.getNodeById(this.store.activeId))&&n.activeRegion&&(null===(t=r.info)||void 0===t?void 0:t.regions)&&r.info.regions.length>1?d.warning(B('fdb3cba60407b2f1aea0230cca644573')):n.isRootSchema(this.store.activeId)?d.warning(B('8a4b4e2e3b0382007e0c69ed1fe6fe71')):r&&(r.removable||void 0===r.removable)?this.manager.del(this.store.activeId):d.warning(B('22f031f3de2e55c430a818d8c588f7a1'));return}}else this.copy()}},t.prototype.handleMessage=function(e){e.data&&'amis-widget-register-event'===e.data.type&&e.data.editorPluginName&&(console.info(B('55c56d01a7747ffe0346d42145b62d97'),e.data.editorPluginName),this.manager.dynamicAddPlugin(e.data.editorPluginName))},t.prototype.handleContextMenu=function(e){var t,n,r;return T(this,void 0,void 0,(function(){var a,o,i,s,d,l,u;return j(this,(function(p){switch(p.label){case 0:return e.persist(),[4,c()];case 1:if(p.sent(),a='',o='',this.store.activeId?a=null===(t=e.target.closest('[data-editor-id="'.concat(this.store.activeId,'"]')))||void 0===t?void 0:t.getAttribute('data-editor-id'):this.store.selections.length&&(a=null===(n=e.target.closest(this.store.selections.map((function(e){return'[data-editor-id="'.concat(e,'"]')})).join(',')))||void 0===n?void 0:n.getAttribute('data-editor-id')),a||(a=null===(r=e.target.closest('[data-editor-id]'))||void 0===r?void 0:r.getAttribute('data-editor-id')),!a){if(i=e.target.closest('[data-node-id]'),!(a=null==i?void 0:i.getAttribute('data-node-id')))return[2];o=i.getAttribute('data-node-region')}return e.preventDefault(),e.stopPropagation(),s=this.manager,d=0,l=0,e.target.ownerDocument!==document&&(u=s.store.getIframe().getBoundingClientRect(),d=u.left,l=u.top),s.openContextMenu(a,o,{x:window.scrollX+e.clientX+d,y:window.scrollY+e.clientY+l}),[2]}}))}))},t.prototype.canUndo=function(){return this.store.canUndo},t.prototype.canRedo=function(){return this.store.canRedo},t.prototype.undo=function(){this.props.onUndo?this.props.onUndo():this.store.undo()},t.prototype.redo=function(){this.props.onRedo?this.props.onRedo():this.store.redo()},t.prototype.save=function(){this.props.onSave&&this.props.onSave()},t.prototype.preview=function(){this.props.onPreview&&this.props.onPreview(!this.props.preview)},t.prototype.copy=function(){this.store.activeId&&(this.curCopySchemaData=this.store.getSchema(this.store.activeId))},t.prototype.paste=function(){if(this.store.activeId&&this.curCopySchemaData){if(!this.curCopySchemaData)return;var e=this.store.getSimpleSchema(this.curCopySchemaData);this.store.activeId===this.curCopySchemaData.$$id?this.manager.appendSiblingSchema(Dt(e),!1):this.manager.addElem(Dt(e),!1)}},t.prototype.getToolbarContainer=function(){return this.mainRef.current},t.prototype.render=function(){var e=this.props,t=e.preview,n=e.isMobile,r=e.className,a=e.theme,o=e.appLocale,i=e.data,c=e.previewProps,s=e.autoFocus;e.isSubEditor;var d=e.amisEnv;return Z.createElement('div',{ref:this.mainRef,className:X('ae-Editor',{preview:t},r)},Z.createElement('div',{className:'ae-Editor-inner',onContextMenu:this.handleContextMenu},!t&&Z.createElement(Oo,{store:this.store,manager:this.manager,theme:a}),Z.createElement('div',{className:'ae-Main'},!t&&Z.createElement(Co,{store:this.store,manager:this.manager}),Z.createElement(Tn,$({},c,{editable:!t,isMobile:n,store:this.store,manager:this.manager,theme:a,appLocale:o,data:i,amisEnv:d,autoFocus:s,toolbarContainer:this.getToolbarContainer}))),!t&&Z.createElement(Ao,{store:this.store,manager:this.manager,theme:a,appLocale:o,amisEnv:d}),!t&&Z.createElement(xo,{store:this.store})),Z.createElement(wo,{store:this.store,manager:this.manager,theme:a,amisEnv:d}),Z.createElement(So,{store:this.store,manager:this.manager,theme:a}),Z.createElement(Io,{store:this.store,manager:this.manager,theme:a}))},t.defaultProps={autoFocus:!0},_([Ut,V('design:type',Function),V('design:paramtypes',[KeyboardEvent]),V('design:returntype',void 0)],t.prototype,'handleKeyDown',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleMessage',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',Promise)],t.prototype,'handleContextMenu',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'getToolbarContainer',null),t}(Y),Po=[{label:B('4e7f76261f8c4c6d78998f85fc1f4c6e'),children:[{label:B('16a20243f9b741c08216dc9548de2968'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-lg'}]},{label:B('461d364c67ec6a45e011ed13f2f7154f'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-t-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-t-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-t'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-t-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-t-lg'}]},{label:B('31e3752986d64c8b36897c8641c8628d'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-r-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-r-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-r'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-r-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-r-lg'}]},{label:B('eabe91d9426b6446f707cea3e7ab2418'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-b-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-b-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-b'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-b-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-b-lg'}]},{label:B('2e46d251ee6188bb1b3ff20656276572'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'m-l-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'m-l-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-l'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'m-l-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-l-lg'}]},{label:B('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),children:[{label:B('a8b0c20416853bda54120bf19477ad11'),value:'m-none'},'|',{label:B('af767b7e4ae069d54f9ea839858d4c6d'),value:'m-t-none'},{label:B('4d9c32c23df5d234e629c922c58d8e12'),value:'m-r-none'},{label:B('3850a186c3235bc646d4c2f79cebac36'),value:'m-b-none'},{label:B('d2aff1417831aa621c16cd5b95306b4b'),value:'m-l-none'}]}]},{label:B('841d77223f0ec8cd0b530ed8e0775b20'),children:[{label:B('16a20243f9b741c08216dc9548de2968'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-lg'}]},{label:B('461d364c67ec6a45e011ed13f2f7154f'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-t-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-t-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-t'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-t-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-t-lg'}]},{label:B('31e3752986d64c8b36897c8641c8628d'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-r-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-r-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-r'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-r-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-r-lg'}]},{label:B('eabe91d9426b6446f707cea3e7ab2418'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-b-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-b-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-b'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-b-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-b-lg'}]},{label:B('2e46d251ee6188bb1b3ff20656276572'),children:[{label:B('23ecf42cada8bf2715792d718544d107'),value:'p-l-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'p-l-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-l'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'p-l-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-l-lg'}]},{label:B('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),children:[{label:B('a8b0c20416853bda54120bf19477ad11'),value:'p-none'},'|',{label:B('af767b7e4ae069d54f9ea839858d4c6d'),value:'p-t-none'},{label:B('4d9c32c23df5d234e629c922c58d8e12'),value:'p-r-none'},{label:B('3850a186c3235bc646d4c2f79cebac36'),value:'p-b-none'},{label:B('d2aff1417831aa621c16cd5b95306b4b'),value:'p-l-none'}]}]},{label:B('961534b4ea37e4e88aada736b299d063'),className:'w2x',children:[{label:B('d4d2a66820d30e07b44c850eb3f116c0'),children:[{label:B('a8b0c20416853bda54120bf19477ad11'),value:'b-a'},'|',{label:B('af767b7e4ae069d54f9ea839858d4c6d'),value:'b-t'},{label:B('4d9c32c23df5d234e629c922c58d8e12'),value:'b-r'},{label:B('3850a186c3235bc646d4c2f79cebac36'),value:'b-b'},{label:B('d2aff1417831aa621c16cd5b95306b4b'),value:'b-l'},'|',{label:B('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),value:'no-border'}]},{label:B('58f966670529f4753fb3c5a0647606be'),children:[{label:'2x',value:'b-2x'},{label:'3x',value:'b-3x'},{label:'4x',value:'b-4x'},{label:'5x',value:'b-5x'}]},{label:B('6b36c6f7ec834692ec6c8e3816349fdd'),children:[{label:B('fbae87bcc352f6933541fb77a07418ed'),value:'b-primary',className:'bg-primary'},{label:B('d8c7e04c8e2be23dd3b81a31db6e04f1'),value:'b-info',className:'bg-info'},{label:B('900c70fa5f7dbc014e6f762d5e0e885c'),value:'b-warning',className:'bg-warning'},{label:B('540f84ddc0883866b229f71c2844199a'),value:'b-danger',className:'bg-danger'},{label:B('330363dfc524cff2488f2ebde0500896'),value:'b-success',className:'bg-success'},{label:B('2fc96b2704b05d6a9f299c442573ee77'),value:'b-white',className:'bg-white'},{label:B('adb7e5312abdb9a44297e48d63815fa3'),value:'b-dark',className:'bg-dark'},{label:B('48d0a09bdd5fe7e89f0a445b0ffdf14f'),value:'b-light',className:'bg-light'}]}]},{label:B('0d98c74797e49d00bcc4c17c9d557a2b'),className:'w2x',children:[{label:B('0103eb2d3dca70270d1a74e9ec987ac9'),children:[{label:B('a8b0c20416853bda54120bf19477ad11'),value:'r'},'|',{label:B('af767b7e4ae069d54f9ea839858d4c6d'),value:'r-t'},{label:B('4d9c32c23df5d234e629c922c58d8e12'),value:'r-r'},{label:B('3850a186c3235bc646d4c2f79cebac36'),value:'r-b'},{label:B('d2aff1417831aa621c16cd5b95306b4b'),value:'r-l'},'|',{label:'2x',value:'r-2x'},{label:'3x',value:'r-3x'}]},{label:B('8456bc40d48da5af833f1c63385e9879'),children:[{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'font-normal'},{label:B('b3b2682579133673d3fe08c156d565dc'),value:'font-thin'},{label:B('56dce5d1cbb97439d291c458e50107e0'),value:'font-bold'},'|',{label:B('23ecf42cada8bf2715792d718544d107'),value:'text-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'text-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'text-base'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'text-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'text-lg'}]},{label:B('6b36c6f7ec834692ec6c8e3816349fdd'),children:[{label:B('fbae87bcc352f6933541fb77a07418ed'),value:'text-primary',className:'text-primary'},{label:B('d8c7e04c8e2be23dd3b81a31db6e04f1'),value:'text-info',className:'text-info'},{label:B('900c70fa5f7dbc014e6f762d5e0e885c'),value:'text-warning',className:'text-warning'},{label:B('540f84ddc0883866b229f71c2844199a'),value:'text-danger',className:'text-danger'},{label:B('330363dfc524cff2488f2ebde0500896'),value:'text-success',className:'text-success'},{label:B('2fc96b2704b05d6a9f299c442573ee77'),value:'text-white',className:'text-white bg-dark'},{label:B('adb7e5312abdb9a44297e48d63815fa3'),value:'text-dark',className:'text-dark'},{label:B('49a79f4047b81186c069ed1c9c151c66'),value:'text-muted',className:'text-muted'}]},{label:B('8e1b944f4389bdaab6f11d5bc83190c8'),children:[{label:B('fbae87bcc352f6933541fb77a07418ed'),value:'bg-primary',className:'bg-primary'},{label:B('d8c7e04c8e2be23dd3b81a31db6e04f1'),value:'bg-info',className:'bg-info'},{label:B('900c70fa5f7dbc014e6f762d5e0e885c'),value:'bg-warning',className:'bg-warning'},{label:B('540f84ddc0883866b229f71c2844199a'),value:'bg-danger',className:'bg-danger'},{label:B('330363dfc524cff2488f2ebde0500896'),value:'bg-success',className:'bg-success'},{label:B('2fc96b2704b05d6a9f299c442573ee77'),value:'bg-white',className:'bg-white'},{label:B('adb7e5312abdb9a44297e48d63815fa3'),value:'bg-dark',className:'bg-dark'},{label:B('48d0a09bdd5fe7e89f0a445b0ffdf14f'),value:'bg-light',className:'bg-light'},'|',{label:B('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),value:'no-bg'}]},{label:B('c28479019e24e0e4745f4948e9e97ee7'),children:[{label:B('f72ce9ad683cc82e0eab557ffc9c67a0'),value:'w-xxs'},{label:B('23ecf42cada8bf2715792d718544d107'),value:'w-xs'},{label:B('391b8fa9c747a1799353ab856e666ad5'),value:'w-sm'},{label:B('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'w'},{label:B('aed1dfbc31703955e64806b799b67645'),value:'w-md'},{label:B('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'w-lg'},{label:B('b95c462d7697958c25861193fc89ae07'),value:'w-xl'},{label:B('3386da5f56fac758ed0f18e024ecb943'),value:'w-xxl'},{label:B('ffaa96ef7232cb6d8ee4d7e673dbf4ac'),value:'w-full'}]}]}];!function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={isFocused:!1,isOpened:!1},e.values=[],e}K(n,t),n.prototype.open=function(){this.setState({isOpened:!0})},n.prototype.close=function(){this.setState({isOpened:!1})},n.prototype.toggle=function(){this.setState({isOpened:!this.state.isOpened})},n.prototype.handleFocus=function(e){this.setState({isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},n.prototype.handleBlur=function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},n.prototype.handleChange=function(e){(0,this.props.onChange)(e.currentTarget.value)},n.prototype.getParent=function(){return Re(this)},n.prototype.getTarget=function(){return Re(this)},n.prototype.handlePopOverChange=function(e){var t=this.props.value||'',n=t.replace(/\s+/g,' ').split(/\s+/),r=n.indexOf(e.value),a=this.props.onChange;if(~r)n.splice(r,1),t=n.join(' ');else{if(/(?:^|\s)(m|p)\-(t|r|b|l)(?:\-(?:xs|sm|md|lg))?(?:$|\s)/.test(e.value)){var o=new RegExp('(?:^|\\s)'.concat(RegExp.$1,'\\-').concat(RegExp.$2,'(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))'),'ig');t=t.replace(o,'')}else if(/(?:^|\s)(m|p)(?:\-(xs|sm|md|lg))?(?:$|\s)/.test(e.value)){o=new RegExp('(?:^|\\s)'.concat(RegExp.$1,'(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))'),'ig');t=t.replace(o,'')}else if(/(?:^|\s)(m|p)(?:\-(t|r|b|l))?\-none(?:$|\s)/.test(e.value)){o=new RegExp(RegExp.$2?'(?:^|\\s)'.concat(RegExp.$1,'(?:(?:\\-').concat(RegExp.$2,'(?:\\-(?:xs|sm|md|lg)))|\\-none)?(?=(\\s|$))'):'(?:^|\\s)'.concat(RegExp.$1,'(?:[^\\s$]+)?(?=(\\s|$))'),'ig');t=t.replace(o,'$1')}else/(?:^|\s)w(?:\-\w+)?(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)w(?:\-\w+)?(?=(\s|$))/g,''):'b-a'===e.value?t=(t=t.replace(/(?:^|\s)b\-(?:t|r|b|l)(?=(\s|$))/g,'')).replace(/(?:^|\s)no\-border(?=(\s|$))/g,''):/(?:^|\s)b\-(?:t|r|b|l)?(?:$|\s)/.test(e.value)?t=(t=t.replace(/(?:^|\s)b\-a(?=(\s|$))/g,'')).replace(/(?:^|\s)no\-border(?=(\s|$))/g,''):/(?:^|\s)b\-\dx(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)b\-\dx(?=(\s|$))/g,''):'no-border'===e.value?t=t.replace(/(?:^|\s)b\-(?:\dx|\w+)(?=(\s|$))/g,''):/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,''):'r'===e.value?t=t.replace(/(?:^|\s)r\-(?:t|r|b|l)(?=(\s|$))/g,''):/(?:^|\s)r\-(?:t|r|b|l)?(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)r(?=(\s|$))/g,''):/(?:^|\s)r\-\dx(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)r\-\dx(?=(\s|$))/g,''):/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?=(\s|$))/g,''):/(?:^|\s)font\-(?:normal|thin|bold)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)font\-(?:normal|thin|bold)(?=(\s|$))/g,''):/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,''):/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=(t=t.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,'')).replace(/(?:^|\s)no\-bg(?=(\s|$))/g,''):'no-bg'===e.value&&(t=t.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,''));t=t.replace(/\s+/g,' ').trim(),t+=(t?' ':'')+e.value}a(t)},n.prototype.renderGroup=function(e,t){var n=this,r=this.props.classnames;return Z.createElement('div',{key:t,className:r('ae-ClassNameControl-group',e.className)},Z.createElement('label',{className:r('ae-ClassNameControl-groupLabel',e.labelClassName)},e.label),e.children&&e.children.length?e.children[0].value?this.renderOptions(e.children,t):e.children.map((function(e,t){return n.renderGroup(e,t)})):null)},n.prototype.renderOptions=function(e,t){var n=this,r=this.props.classnames;return function(e){for(var t=[],n=t[0]=[],r=0,a=e.length;r<a;r++){var o=e[r];'|'===o?(n=[],t.push(n)):n.push(o)}return t}(e).map((function(e,t){return Z.createElement('div',{className:r('ButtonGroup'),key:t},e.map((function(e,t){return Z.createElement('div',{key:t,onClick:function(){return n.handlePopOverChange(e)},className:r('Button Button--size-xs',e.className,~n.values.indexOf(e.value)?'Button--primary':'Button--default')},e.label)})))}))},n.prototype.renderPopover=function(){var e=this,t=this.props.value;return this.values='string'==typeof t?t.split(' '):[],Z.createElement('div',null,Po.map((function(t,n){return e.renderGroup(t,n)})))},n.prototype.render=function(){var e,t=this.props,n=t.classnames,r=t.readOnly,a=t.disabled,o=t.value,i=t.className,c=t.name,s=t.popOverContainer;return Z.createElement('div',{className:i},Z.createElement('div',{className:n('TextControl',(e={},e['TextControl--withAddOn']=!0,e['is-focused']=this.state.isFocused,e['is-disabled']=a,e))},Z.createElement('div',{className:n('TextControl-input')},Z.createElement('input',{name:c,placeholder:B('47eac1ac32a8aa9081dffbdc4d374318'),disabled:a,readOnly:r,type:'text',autoComplete:'off',onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,value:null==o?'':'string'==typeof o?o:JSON.stringify(o)})),Z.createElement('div',{className:n('TextControl-button')},Z.createElement(f,{onClick:this.toggle},Z.createElement('i',{className:'fa fa-cog'})))),Z.createElement(k,{placement:'right-bottom-right-top right-top-right-bottom right-bottom-right-top',target:this.getTarget,container:s||this.getParent,rootClose:!1,show:this.state.isOpened,watchTargetSizeChange:!1},Z.createElement(A,{className:'ae-ClassNamePicker-popover',onHide:this.close,overlay:!0},this.renderPopover())))},_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'open',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'close',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'toggle',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],n.prototype,'handleFocus',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],n.prototype,'handleBlur',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],n.prototype,'handleChange',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'getParent',null),_([e.autobind,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],n.prototype,'getTarget',null),n=_([P({type:'ae-classname'})],n)}(Z.Component);var Fo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return K(t,e),t.prototype.buildEditorPanel=function(e,t){var n=this.manager.store;e.selections.length||n.subRenderers.length&&t.push({key:'renderers',icon:'png-icon renderers-png',title:Z.createElement('span',{className:'editor-tab-icon','editor-tooltip':B('bb79667f37035e9562ec6bcffd6cf8ef')},Z.createElement(r,{icon:'editor-renderer'})),component:Ua,position:'left',order:-9999})},t.scene=['layout'],t}(Ja);function Do(e,t){return function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return K(r,n),r.prototype.render=function(){return Z.createElement(Z.Fragment,null,Z.createElement(e,$({},this.props)),Z.createElement(ko,{isLeftDragIcon:t}))},r}(Z.Component)}go(Fo),go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return K(t,e),t.prototype.buildEditorToolbar=function(e,t){var n,r,a,o,i=this,c=e.id,s=e.schema,d=e.info,l=this.manager.store,u=l.getNodeById(c),p=l.getSchemaParentById(c),f=this.manager.draggableContainer(c),h=(null==s?void 0:s.isSorptionContainer)||!1,m=u.parent;if(Array.isArray(p)&&(null==m?void 0:m.isRegion)||f){var v=u.host;!u.draggable&&!f||h||t.push({id:'drag',iconSvg:'drag-btn',icon:'fa fa-arrows',tooltip:B('7f2f0461a58c43667d7245ce92bb2e77'),placement:'bottom',draggable:!0,order:-1e3,onDragStart:this.manager.startDrag.bind(this.manager,c)});var g=null==p?void 0:p.indexOf(s);if(!(null==v?void 0:v.memberImmutable(m.region))&&l.panels.some((function(e){return'renderers'===e.key}))){var b=null===(n=p[g+1])||void 0===n?void 0:n.$$id;t.push({id:'insert-before',iconSvg:'left-arrow-to-left',tooltip:B('78c1c38b91c672da1113fa2564c14ea6'),placement:'bottom',onClick:function(){return i.manager.showInsertPanel(m.region,m.id,m.preferTag,'insert',void 0,c)}},{id:'insert-after',iconSvg:'arrow-to-right',tooltip:B('87f48bbadfbef5ef4554e06b7e141d37'),placement:'bottom',onClick:function(){return i.manager.showInsertPanel(m.region,m.id,m.preferTag,'insert',void 0,b)}})}}u.isVitualRenderer||!u.info.plugin.popOverBody&&!u.info.plugin.popOverBodyCreator||t.push({id:'edit',icon:'fa fa-pencil',tooltip:B('95b351c86267f3aedf89520959bce689'),placement:'bottom',onClick:function(e){return i.manager.openNodePopOverForm(u.id)}}),(u.removable||void 0===u.removable)&&t.push({id:'delete',iconSvg:'delete-btn',icon:'fa',tooltip:B('2f4aaddde33c9b93c36fd2503f3d122b'),placement:'bottom',order:999,onClick:this.manager.del.bind(this.manager,c)}),t.push({id:'more',iconSvg:'more-btn',icon:'fa fa-cog',tooltip:B('0ec9eaf9c3525eb110db58aae5912210'),placement:'bottom',order:1e3,onClick:function(e){if(!e.defaultPrevented){var t=e.target.parentElement.getBoundingClientRect(),n=window.scrollX+t.left+t.width-150;n<0&&(n=window.scrollX+t.left),i.manager.openContextMenu(c,'',{x:n,y:window.scrollY+t.top+t.height+8})}}}),(null!==(a=null===(r=d.scaffoldForm)||void 0===r?void 0:r.canRebuild)&&void 0!==a?a:null===(o=d.plugin.scaffoldForm)||void 0===o?void 0:o.canRebuild)&&t.push({id:'build',iconSvg:'harmmer',tooltip:'快速构建「'.concat(d.plugin.name,'」'),placement:'bottom',onClick:function(){return i.manager.reScaffoldV2(c)}})},t.prototype.buildEditorContextMenu=function(e,t){var n,r,a,o,i,c=this,s=e.id,d=e.schema,l=e.region,u=e.info,p=e.selections,f=this.manager,h=f.store,m=h.getSchemaParentById(s),v=h.getNodeById(s),g=h.getNodePathById(s),b=g.pop();if(v.host,v.parent,p.length)t.push({id:'copy',label:B('417db09508befe7dbe9f84a517a6edec'),icon:'copy-icon',disabled:p.some((function(e){return!e.node.duplicatable})),onSelect:function(){return f.duplicate(p.map((function(e){return e.id})))}}),t.push({id:'unselect',label:B('99b81127ef28368151621cdfccce69f8'),icon:'cancel-icon',onSelect:function(){return h.setActiveId(s)}}),t.push({id:'delete',label:B('2f4aaddde33c9b93c36fd2503f3d122b'),icon:'delete-icon',disabled:p.some((function(e){return!e.node.removable})),className:'text-danger',onSelect:function(){return f.del(p.map((function(e){return e.id})))}});else if(l){(w=h.panels.find((function(e){return'renderers'===e.key})))&&(t.push({id:'insert',label:B('205f45ee17394bd5668412780eaa55e2'),onHighlight:function(e){return e&&h.setHoverId(s,l)},onSelect:function(){return h.showInsertRendererPanel()}}),t.push({id:'clear',label:B('288f0c404c4e546aa3683ff5054e85e2'),onSelect:function(){return f.emptyRegion(s,l)}}),t.push({id:'paste',label:B('eafbece1016a6af76cce466e55ad9f00'),onSelect:function(){return f.paste(s,l)}}))}else{if(t.push({id:'select',label:'选中'.concat(b.label),disabled:h.activeId===b.id,data:s,onSelect:function(e){return h.setActiveId(e)},onHighlight:function(e,t){return e&&h.setHoverId(t)}}),g.length){var y=g.filter((function(e){var t;return!e.isRegion&&!1!==(null===(t=e.info)||void 0===t?void 0:t.editable)})).reverse().map((function(e){return{label:e.label,data:e.id,onSelect:function(e){return h.setActiveId(e)},onHighlight:function(e,t){return e&&h.setHoverId(t)}}}));y.length&&t.push({label:B('7ad78e0991f34ff3a345c59a2fc31572'),children:y})}t.push({id:'unselect',label:B('aafda9e8f6b7b613680677c513edb7a6'),disabled:!h.activeId||h.activeId!==s,onSelect:function(){return h.setActiveId('')}}),t.push('|'),t.push({id:'copy',label:B('417db09508befe7dbe9f84a517a6edec'),disabled:!v.duplicatable,onSelect:function(){return f.duplicate(s)}}),t.push({id:'copy-config',label:B('b58d101f52531c845f15db63d7212115'),onSelect:function(){return f.copy(s)}}),t.push({id:'cat-config',label:B('74e2bc6615b7dbbb11fd5e1e212263ae'),disabled:!v.removable,onSelect:function(){return f.cut(s)}}),t.push({id:'paste-config',label:B('e2f401af580d1354ae00ec4ca19e2e24'),disabled:!Array.isArray(m)||!v.parent||!1===(null===(n=v.info)||void 0===n?void 0:n.typeMutable)||!v.replaceable,onSelect:function(){return f.paste(s)}}),t.push({id:'delete',label:B('2f4aaddde33c9b93c36fd2503f3d122b'),disabled:!v.removable,className:'text-danger',onSelect:function(){return f.del(s)}}),t.push('|');var E=Array.isArray(m)?m.indexOf(d):-1;t.push({id:'move-forward',label:B('21462ae22216eec41dc688cc4a8ae64b'),disabled:!(Array.isArray(m)&&E>0&&v.moveable),onSelect:function(){return f.moveUp()}}),t.push({id:'move-backward',label:B('ed2bc13d8bbd99e16e017dd5f5393393'),disabled:!(Array.isArray(m)&&E<m.length-1&&v.moveable),onSelect:function(){return f.moveDown()}}),t.push('|'),t.push({id:'undo',label:B('9e54f3e4ee3330299c5fdc910c2e8d3c'),disabled:!h.canUndo,onSelect:function(){return h.undo()}}),t.push({id:'redo',label:B('ae8e86e426c2ba00da274b66dc372a8b'),disabled:!h.canRedo,onSelect:function(){return h.redo()}}),t.push('|');var w=h.panels.find((function(e){return'renderers'===e.key}));b.childRegions.length&&w&&(b.childRegions.length>1?t.push({id:'insert',label:B('205f45ee17394bd5668412780eaa55e2'),children:b.childRegions.map((function(e){return{label:''.concat(e.label),data:e.region,onHighlight:function(e,t){return e?h.setHoverId(s,t):h.setHoverId('')},onSelect:function(){return h.showInsertRendererPanel()}}}))}):t.push({id:'insert',label:B('205f45ee17394bd5668412780eaa55e2'),data:b.childRegions[0].region,onHighlight:function(e,t){return e?h.setHoverId(s,t):h.setHoverId('')},onSelect:function(){return h.showInsertRendererPanel()}})),'container'===v.type&&t.push({id:'clear',label:'清空容器',disabled:!(null===(r=v.schema.body)||void 0===r?void 0:r.length),onSelect:function(){return f.emptyRegion(s,'body')}}),t.push({id:'replace',label:B('107542a61cdccbb2981ad0c8bafc3440'),disabled:!(v.host&&!1!==(null===(a=v.info)||void 0===a?void 0:a.typeMutable)&&v.parent.isRegion&&h.panels.some((function(e){return'renderers'===e.key}))&&v.replaceable),onSelect:function(){return f.showReplacePanel(s)}})}p.length||!(null===(o=u.plugin.scaffoldForm)||void 0===o?void 0:o.canRebuild)&&!(null===(i=u.scaffoldForm)||void 0===i?void 0:i.canRebuild)||t.push({id:'build',label:'快速构建「'.concat(u.plugin.name,'」'),disabled:d.$$commonSchema,onSelect:function(){return c.manager.reScaffold(s,u.scaffoldForm||u.plugin.scaffoldForm,d)}})},t.prototype.buildEditorPanel=function(e,t){if(e.selections.length){var n=this.manager.store,r=[],a=$($({},e),{data:r,region:''});(r=this.manager.buildContextMenus(a)).length&&t.push({key:'contextmenu',icon:'fa fa-cog',title:B('2b6bc0f293f5ca01b006206c2535ccbc'),menus:r,render:this.manager.makeSchemaFormRender({body:[{type:'button-group',buttons:r.filter((function(e){return'|'!==e})).map((function(e){return $($({},e),{type:'button',onClick:e.onSelect})}))}],panelById:n.activeId})})}},t.prototype.afterInsert=function(e){var t,n,r=this,a=e.context;if(a.node&&(null===(n=null===(t=a.subRenderer)||void 0===t?void 0:t.plugin)||void 0===n?void 0:n.popOverBody)){var o=a.data.$$id;o&&setTimeout((function(){r.manager.setActiveId(o),requestAnimationFrame((function(){r.manager.openNodePopOverForm(o)}))}),200)}},t.scene=['layout'],t}(Ja));var Bo=/^\/schemas\/(.*).json$/;function $o(e,t,n,r){return T(this,void 0,void 0,(function(){var a,o,i,c,s,d,l;return j(this,(function(u){switch(u.label){case 0:return a=Array.isArray(r)?r.concat():[],'production'===process.env.NODE_ENV?[3,3]:a.some((function(t){return t.uri===e}))?[3,2]:(i=(o=a).push,l={uri:e},[4,import('amis/schema.json').then((function(e){return e.default}))]);case 1:i.apply(o,[(l.schema=u.sent(),l)]),u.label=2;case 2:u.label=3;case 3:return Bo.test(t)&&(c=RegExp.$1,s=''.concat(e.replace(/^(\w+\:\/\/[^\/]+)\/.*$/,'$1'),'/schemas/').concat(c,'.json'),d=_e(a,(function(e){var t;return(null===(t=e.fileMatch)||void 0===t?void 0:t[0])===n})),~d&&a.splice(d,1),a.push({uri:s,fileMatch:[n],schema:{$schema:'http://json-schema.org/draft-07/schema#',$ref:''.concat(e,'#/definitions/').concat(c)}})),[2,a]}}))}))}var To=Se((function(e){d.warning('代码有误,错误的地方是\n '.concat(e.toString().split('\n')[1]))}),3e3),jo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={wrongSchema:'',value:t.props.value,contents:t.obj2str(t.props.value,t.props)},t.toDispose=[],t.uri='isuda://schema/'.concat(rt(),'.json'),t.emitChange=Se((function(){var e=t.props,n=e.onChange,r=e.value,a=t.str2obj(t.state.contents);if(a&&(Ee(a)||tt(a))){t.setState({wrongSchema:''}),delete a.$schema,a=jt(a,t.props.value);var o=Jt(t.lastResult||r,a);t.lastResult=a,n(a,o)}else t.setState({wrongSchema:t.state.contents})}),250,{trailing:!0,leading:!1}),t.editorFactory=function(e,n,r){var a=n.Uri.parse(t.uri);return t.model=n.editor.createModel(t.state.contents,'json',a),n.editor.create(e,$($({autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,scrollbar:{alwaysConsumeMouseWheel:!1},minimap:{enabled:!1}},r),{model:t.model}))},t.editorDidMount=function(e,n){t.editor=e,t.monaco=n,t.changeJsonOptions(t.props),t.props.onPaste&&t.toDispose.push(t.editor.onDidPaste(t.props.onPaste).dispose)},t.editorWillUnmount=function(e,n){t.toDispose.forEach((function(e){return e()})),t.toDispose=[]},t.handleChange=function(e){t.setState({contents:e},t.emitChange)},t.handleBlur=function(){return T(t,void 0,void 0,(function(){var e,t,n;return j(this,(function(r){switch(r.label){case 0:return e=this.state,t=e.wrongSchema,n=e.value,t?[4,F([{className:'w-full',type:'tpl',label:!1,tpl:B('7e4b38ba0ab9cbfcabd9dd859e36b601')},{type:'switch',label:!1,option:B('af86ad9dd8a221f931dcdc5a63382b6f'),name:'diff',value:!1},{visibleOn:'this.diff',label:!1,type:'diff-editor',allowFullscreen:!0,disabled:!0,name:'newValue',size:'xxl',language:'json',diffValue:'${oldValue}'}],{oldValue:n,newValue:t},B('43d586cd6cf1a512c0bcb85ed9efde51'))]:[2];case 1:return r.sent()?this.setState({wrongSchema:'',contents:Ve(n)}):this.editor.focus(),[2]}}))}))},t}return K(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;e.$schema!==t.$schema&&this.monaco&&this.changeJsonOptions(t),ot(t.value,e.value)&&ot(t.value,this.lastResult)&&(this.lastResult=null,this.setState({value:t.value,contents:this.obj2str(t.value,t)}))},t.prototype.obj2str=function(e,t){var n;return e=jt(e),tt(e)||(e=$({type:null==e?void 0:e.type},e)),tt(e)||(!e.type&&(null===(n=t.$schema)||void 0===n?void 0:n.match(/PageSchema/i))?e.type='page':e.type||delete e.type,delete e.$schema),Ve(e)},t.prototype.str2obj=function(e){try{if(''===e)return{};var t=Ue(e);return To&&To.cancel(),t}catch(e){return To(e),null}},t.prototype.changeJsonOptions=function(e){var t;return void 0===e&&(e=this.props),T(this,void 0,void 0,(function(){var n,r,a;return j(this,(function(o){switch(o.label){case 0:return n=this.monaco,0===(r=e.$schemaUrl||''.concat(window.location.protocol,'//').concat(window.location.host,'/schema.json')).indexOf('/')&&(r=''.concat(window.location.protocol,'//').concat(window.location.host).concat(r)),[4,$o(r,e.$schema,n.Uri.parse(this.uri).toString(),null===(t=n.languages.json)||void 0===t?void 0:t.jsonDefaults.diagnosticsOptions.schemas)];case 1:return a=o.sent(),n.languages.json.jsonDefaults.setDiagnosticsOptions({schemas:a,validate:!0,enableSchemaRequest:!0,allowComments:!0}),[2]}}))}))},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.className,r=e.theme;return Z.createElement(et,{className:X('amis-code-editor',n),value:this.state.contents,onChange:this.handleChange,onBlur:this.handleBlur,language:'json',theme:r,editorFactory:this.editorFactory,editorDidMount:this.editorDidMount,editorWillUnmount:this.editorWillUnmount,options:{automaticLayout:!0,lineNumbers:'off',glyphMargin:!1,tabSize:2,wordWrap:'on',lineDecorationsWidth:0,lineNumbersMinChars:0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1},readOnly:t}})},t}(Z.Component),Lo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.handleCodePaste=function(){var e=this;setTimeout((function(){e.props.manager.patchSchema(!0)}),500)},t.prototype.render=function(){var e=this.props,t=e.onChange,n=e.manager,r=e.store;return Z.createElement('div',{className:'ae-CodePanel'},Z.createElement('div',{className:'panel-header'},B('5b804b05e14aaacc75033a4f77fc2844')),Z.createElement('div',{className:'ae-CodePanel-content'},Z.createElement(jo,{value:r.valueWithoutHiddenProps,onChange:t,$schema:r.jsonSchemaUri,$schemaUrl:n.config.$schemaUrl,onPaste:this.handleCodePaste})))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'handleCodePaste',null),t}(Z.Component);go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return K(t,e),t.prototype.buildJSONSchema=function(e){return e.info.$schema},t.prototype.buildEditorPanel=function(e,t){e.info;var n=e.selections;this.manager.store.jsonSchemaUri&&!n.length&&t.push({key:'code',icon:'png-icon code-png',title:Z.createElement('span',{className:'editor-tab-icon','editor-tooltip':B('06e004ef21414c06d3e4ff2cefaf6a04')},Z.createElement(r,{icon:'editor-code'})),position:'left',component:Do(Lo),order:5e3})},t.scene=['layout'],t}(Ja));var Ho=Z.lazy((function(){return import('react-json-view').then(ve)}));go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dataViewer={type:'json',name:'ctx',asFormItem:!0,className:'m-b-none',component:function(e){for(var t=e.value,n=H(Z.useState(0),2),r=n[0],a=n[1],o=t||{},i=[o];Object.getPrototypeOf(o)!==Object.prototype;){var c=Object.getPrototypeOf(o);if('[object Object]'!==Object.prototype.toString.call(c))break;i.push(c),o=c}return Z.createElement('div',{className:'aeDataChain'},Z.createElement('div',{className:'aeDataChain-aside'},Z.createElement('ul',null,i.map((function(e,t){return Z.createElement('li',{className:t===r?'is-active':'',key:t,onClick:function(){return a(t)}},0===t?B('48ac479789304b37afa2f1b06642f4da'):1===t?B('9bc16c658ab8a8c4eddc5e24d85bef20'):B('af767b7e4ae069d54f9ea839858d4c6d').concat(t,'层'))})))),Z.createElement('div',{className:'aeDataChain-main'},Z.createElement(Z.Suspense,{fallback:Z.createElement('div',null,'...')},Z.createElement(Ho,{name:!1,src:i[r],enableClipboard:!1,iconStyle:'square',collapsed:2}))))}},t}return K(t,e),t.prototype.buildEditorToolbar=function(e,t){var n=this;e.id,e.schema;var r=e.node.getComponent();r&&r.props&&r.props.data&&r.props.store&&(r.props.store,t.push({icon:'fa fa-bug',order:-1e3,placement:'bottom',tooltip:B('aa920263020f14211a44ea172efc7253'),onClick:function(){return n.openDebugForm(r.props.data)}}))},t.prototype.openDebugForm=function(e){return T(this,void 0,void 0,(function(){return j(this,(function(t){switch(t.label){case 0:return[4,this.manager.scaffold({title:B('aa920263020f14211a44ea172efc7253'),body:[$({},this.dataViewer)]},{ctx:e})];case 1:return t.sent(),[2]}}))}))},t.scene=['layout'],t.id='data-debug',t}(Ja)),go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t.rendererName='error',t.name='Error',t.isBaseComponent=!0,t}return K(t,e),t.scene=['layout'],t}(Ja));var zo=xe((function(e){var t=this,n=e.classnames,a=e.store,o=e.manager,i=a.modals.filter((function(e){return!e.disabled})),c=Z.useCallback((function(){var e={type:'dialog',title:'未命名弹窗',definitions:Rn(a.modals),body:[{type:'tpl',tpl:'弹窗内容'}]};o.openSubEditor({title:'编辑弹窗',value:e,onChange:function(e,t){var n=e.definitions,r=z(e,['definitions']);a.addModal(r,n)}})}),[]),s=Z.useCallback((function(e){var t=parseInt(e.currentTarget.getAttribute('data-index'),10),n=a.modals[t],r=n.$$id;o.openSubEditor({title:'编辑弹窗',value:$($({type:'dialog'},n),{definitions:Rn(a.modals,{},n)}),onChange:function(e,t){var n=e.definitions,o=z(e,['definitions']);a.updateModal(r,o,n)}})}),[]),d=Z.useCallback((function(e){return T(t,void 0,void 0,(function(){var t,n,r,o;return j(this,(function(i){switch(i.label){case 0:return e.stopPropagation(),e.preventDefault(),t=parseInt(e.currentTarget.closest('[data-index]').getAttribute('data-index'),10),n=a.modals[t],r=a.countModalActionRefs(n.$$id),[4,S(r?'当前弹窗已关联 '.concat(r,' 个事件,删除后,所配置的事件动作将一起被删除。'):'','确认删除弹窗「'.concat((null===(o=n.editorSetting)||void 0===o?void 0:o.displayName)||n.title,'」?'))];case 1:return i.sent()&&a.removeModal(n.$$id),[2]}}))}))}),[]),l=Z.useCallback((function(e){var t,n;e.stopPropagation(),e.preventDefault();var r=parseInt(e.currentTarget.closest('[data-index]').getAttribute('data-index'),10),o=a.modals[r];a.addModal($($({},o),{title:''.concat(o.title,' - 复制'),editorSetting:$($({},o.editorSetting),{displayName:(null===(t=o.editorSetting)||void 0===t?void 0:t.displayName)?''.concat(null===(n=o.editorSetting)||void 0===n?void 0:n.displayName,' - 复制'):''})}))}),[]);return Z.createElement('div',{className:n('ae-DialogList-wrap','hoverShowScrollBar')},Z.createElement(f,{size:'sm',level:'enhance',block:!0,onClick:c},'新增弹窗'),i.length?Z.createElement('ul',{className:'ae-DialogList'},i.map((function(e,t){var n;return Z.createElement('li',{className:'ae-DialogList-item','data-index':t,key:e.$$id||t,onClick:s},Z.createElement('span',null,''.concat((null===(n=e.editorSetting)||void 0===n?void 0:n.displayName)||e.title||'未命名弹窗')),Z.createElement('a',{onClick:l,className:'ae-DialogList-iconBtn'},Z.createElement(r,{className:'icon',icon:'copy'})),Z.createElement('a',{onClick:d,className:'ae-DialogList-iconBtn'},Z.createElement(r,{className:'icon',icon:'trash'})))}))):Z.createElement('div',{className:'ae-DialogList-placeholder'},'暂无弹窗'))})),Ko=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={curSearchElemKey:''},t}return K(t,e),t.prototype.handleClick=function(e){var t=this.props.store,n=e.currentTarget,r=n.getAttribute('data-node-id'),a=n.getAttribute('data-node-region');this.props.manager,a?t.activeId===r&&t.activeRegion===a?t.setActiveId(r):t.setActiveId(r,a):t.setActiveId(r)},t.prototype.handleDialogNodeClick=function(e,t){},t.prototype.handleEnter=function(e){var t=e.currentTarget,n=t.getAttribute('data-node-id'),r=t.getAttribute('data-node-region');this.props.store.setHoverId(n,r)},t.prototype.handleTabChange=function(e){var t=this.props.store;e&&ke(t)&&t.changeOutlineTabsKey(e)},t.prototype.handleDragStart=function(e){var t=e.currentTarget.getAttribute('data-node-id');t&&this.props.manager.startDrag(t,e)},t.prototype.handleDragOver=function(e){var t=e.target.closest('[data-node-id][data-node-region]');if(t){var n=this.props.manager,r=t.getAttribute('data-node-id'),a=t.getAttribute('data-node-region');e.preventDefault(),r&&a&&n.dnd.switchToRegion(e.nativeEvent,r,a)}},t.prototype.handleDrop=function(e){this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.handleSearchElemKeyChange=function(e){this.setState({curSearchElemKey:e})},t.prototype.clearSearchElemKey=function(){this.setState({curSearchElemKey:''})},t.prototype.renderTitleByKeyword=function(e,t){if(t&&~e.indexOf(t)){var n=e.indexOf(t),r=n+t.length;return Z.createElement('span',null,e.substring(0,n),Z.createElement('span',{className:'has-keywords'},t),e.substring(r))}return e},t.prototype.renderItem=function(e,t,n){var a,o=this,i=this.props.store,c=this.state.curSearchElemKey,s=!i.dragging&&e.singleRegion?e.uniqueChildren[0].uniqueChildren:e.uniqueChildren,d=s.length;return!i.dragging||e.isRegion||e.children.length?Z.createElement('li',{className:X('ae-Outline-node',{'is-folded':e.folded,'is-active':i.activeId===e.id&&!e.region||e.isRegion&&i.dropId===e.id&&i.dropRegion===e.region||e.isRegion&&i.activeId===e.id&&i.activeRegion===e.region,'is-region':e.isRegion,'is-hover':!e.isRegion&&(i.isHoved(e.id)||i.isContextOn(e.id)),'has-children':d,'is-dragging':i.dragId===e.id&&'schema'===i.dragType}),key:t},Z.createElement('a',{onClick:this.handleClick,onMouseEnter:this.handleEnter,'data-node-id':e.id,'data-node-region':e.region,'data-node-common-config':null===(a=e.schema)||void 0===a?void 0:a.$$commonSchema,draggable:e.draggable,onDragStart:this.handleDragStart},d?Z.createElement('span',{onClick:e.toggleFold,className:X('ae-Outline-expander ae-Outline-node-icon',{'is-folded':e.folded}),'data-node-id':e.id,'data-node-region':e.region},Z.createElement(r,{icon:'down-arrow'})):null,Z.createElement('span',{className:'ae-Outline-node-text'},e.isCommonConfig?''.concat(e.label,'-[公共配置]'):this.renderTitleByKeyword(this.getDialogNodeLabel(e,n),c))),d?Z.createElement('ul',{className:'ae-Outline-sublist'},s.map((function(e,t){return o.renderItem(e,t,n)}))):null):null},t.prototype.getDialogNodeLabel=function(e,t){return t?this.getDialogLabel(e,!0,'dialogTitle'):e.label},t.prototype.getDialogLabel=function(e,t,n){void 0===n&&(n='title');var r='';if(t&&(r=e.label),('dialog'===e.type||'drawer'===e.type)&&(!t||t&&!e.region)){var a=fn(e[n]);r='drawer'===e.type?''.concat(a||B('7336083e6c61fe75fb5ec3f5ef101ac7'),'(抽屉式弹窗)'):'confirm'===e.dialogType?''.concat(a||B('fa6b01f51cc2b8e16bfbb914b6c08ace'),'(确认对话框)'):''.concat(a||B('6cff4b6d794cc17f5d24dbe0d21e5732'),'(弹窗)')}return r},t.prototype.renderDialogItem=function(e,t){var n=this,r=this.getDialogLabel(e,!1);return Z.createElement('li',{className:X('ae-Outline-node'),key:t},Z.createElement('a',{onClick:function(t){return n.handleDialogNodeClick(t,e)}},Z.createElement('span',{className:'ae-Outline-node-text'},this.renderTitleByKeyword(r,this.state.curSearchElemKey))))},t.prototype.render=function(){var e=this,t=this.state.curSearchElemKey,n=this.props,a=n.store,o=n.manager,i=a.outlineTabsKey||'component-outline',c=a.outline;return Z.createElement('div',{className:'ae-Outline-panel'},Z.createElement('div',{className:'panel-header'},B('c65e6ddd7b48846aa1e5224d4e5743c1')),Z.createElement(v,{className:'ae-outline-tabs',linksClassName:'ae-outline-tabs-header',contentClassName:'ae-outline-tabs-content',tabsMode:'line',onSelect:this.handleTabChange,activeKey:i},Z.createElement(g,{className:'ae-outline-tabs-panel',key:'component-outline',eventKey:'component-outline',title:B('67bcc69dd0a75d50c5cbb7f107ee9f63')},Z.createElement(u,{className:'editor-InputSearch',value:t,onChange:this.handleSearchElemKeyChange,placeholder:B('962d43ff8d39c381d8e2c73838412111'),clearable:!1},t?Z.createElement('a',{onClick:this.clearSearchElemKey},Z.createElement(r,{icon:'close',className:'icon'})):Z.createElement(r,{icon:'editor-search',className:'icon'})),Z.createElement('hr',{className:'margin-top'}),Z.createElement('div',{className:X('ae-Outline','hoverShowScrollBar',{'ae-Outline--draging':a.dragging}),onDragOver:this.handleDragOver,onDrop:this.handleDrop},a.dragging?Z.createElement('div',{className:'ae-Outline-tip'},B('0c95d1856ffdeeade7cebe0ef928f361')):null,c.length?Z.createElement('ul',{className:'ae-Outline-list'},c.map((function(t,n){return e.renderItem(t,n)}))):Z.createElement('div',null,B('c482df2a3ac8e014febd8a5fc9cadaea')))),a.isSubEditor?null:Z.createElement(g,{className:'ae-outline-tabs-panel',key:'dialog-outline',eventKey:'dialog-outline',title:'弹窗列表'},Z.createElement(zo,{manager:o,store:a,classnames:X}))))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object,Object]),V('design:returntype',void 0)],t.prototype,'handleDialogNodeClick',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleEnter',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleTabChange',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragStart',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDragOver',null),_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'handleDrop',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String]),V('design:returntype',void 0)],t.prototype,'handleSearchElemKeyChange',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'clearSearchElemKey',null),_([Ut,V('design:type',Function),V('design:paramtypes',[String,String]),V('design:returntype',void 0)],t.prototype,'renderTitleByKeyword',null),t=_([xe],t)}(Z.Component);go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return K(t,e),t.prototype.buildEditorPanel=function(e,t){var n=this.manager.store;if(n&&e.selections.length){var a=n.changeLeftPanelOpenStatus,o=n.changeLeftPanelKey;a(!0),o('outline')}t.push({key:'outline',icon:'png-icon outline-png',title:Z.createElement('span',{className:'editor-tab-icon','editor-tooltip':B('93383ef1ab4a433df97a56a73e571b9f')},Z.createElement(r,{icon:'editor-outline'})),component:Do(Ko),position:'left',order:4e3})},t.scene=['layout'],t}(Ja)),go(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=9999,t}return K(t,e),t.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema,r=e.path;if(n.$$id&&t){if(/(^|\/)static\-field/.test(r))return;if('card-item'===t.name||'list-item-field'===t.name||'card-item-field'===t.name)return;return{name:'Unknown',$schema:'/schemas/UnkownSchema.json'}}},t.scene=['layout'],t}(Ja));var _o={};function Vo(e,t,n){var r=_o[e]||{};return'function'==typeof r?r(t,n):t?$($({},r),t):r}function Uo(e,t){_o[e]=t}function Wo(e){try{if('undefined'===e)return;return JSON.parse(e)}catch(t){return e}}function Zo(e){return Array.isArray(e)?e.length?e:void 0:'string'==typeof e?e||void 0:'object'==typeof e?Object.keys(e).length?e:void 0:e}function qo(e,t){return void 0===t&&(t=!0),t?function(t){return void 0===t?e:t}:function(t){return t||e}}function Yo(e,t,n){return{type:'tooltip-wrapper',tooltip:t,tooltipTheme:'dark',placement:'top',tooltipStyle:$({fontSize:'12px'},n||{}),className:'ae-formItemControl-label-tip',body:e}}function Xo(e){var t,n='data:image/svg+xml,%3C%3Fxml version=\'1.0\' standalone=\'no\'%3F%3E%3C!DOCTYPE svg PUBLIC \'-//W3C//DTD SVG 1.1//EN\' \'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\'%3E%3Csvg t=\'1631083237695\' class=\'icon\' viewBox=\'0 0 1024 1024\' version=\'1.1\' xmlns=\'http://www.w3.org/2000/svg\' p-id=\'2420\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' width=\'1024\' height=\'1024\'%3E%3Cdefs%3E%3Cstyle type=\'text/css\'%3E%3C/style%3E%3C/defs%3E%3Cpath d=\'M959.872 128c0.032 0.032 0.096 0.064 0.128 0.128v767.776c-0.032 0.032-0.064 0.096-0.128 0.128H64.096c-0.032-0.032-0.096-0.064-0.128-0.128V128.128c0.032-0.032 0.064-0.096 0.128-0.128h895.776zM960 64H64C28.8 64 0 92.8 0 128v768c0 35.2 28.8 64 64 64h896c35.2 0 64-28.8 64-64V128c0-35.2-28.8-64-64-64z\' p-id=\'2421\' fill=\'%23bfbfbf\'%3E%3C/path%3E%3Cpath d=\'M832 288c0 53.024-42.976 96-96 96s-96-42.976-96-96 42.976-96 96-96 96 42.976 96 96zM896 832H128V704l224-384 256 320h64l224-192z\' p-id=\'2422\' fill=\'%23bfbfbf\'%3E%3C/path%3E%3C/svg%3E';return'date'===e.type||'datetime'===e.type||'time'===e.type||'month'===e.type||'static-date'===e.type||'static-datetime'===e.type||'static-time'===e.type||'static-month'===e.type||'input-date'===e.type||'input-datetime'===e.type||'input-time'===e.type||'input-month'===e.type?nt().format('X'):'image'===e.type||'static-image'===e.type?n:'images'===e.type||'static-images'===e.type?[n]:'number'===e.type||'input-number'===e.type?(1e3*Math.random()).toFixed(null!==(t=e.precision)&&void 0!==t?t:0):B('6cb01692eea2fa7066d20fe2b6ccaea3')}function Jo(e,t){return function(n){go(function(n){function r(r){var a=n.call(this,r)||this;return a.rendererName=e,a.name=a.tipName||t.name,a.description=t.description,a.scaffold=t.scaffold||{type:t.type},a.previewSchema=t.previewSchema||a.scaffold,a.settingsSchema&&(a.panelTitle=a.settingsSchema.title,a.panelControls=a.settingsSchema.body),a}return K(r,n),r}(n))}}var Go=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t}(Ja),Qo=function(e){function t(t){var n=e.call(this,t)||this;return n.manager.on('build-panels',n.buildPanels),n}return K(t,e),t.prototype.componentWillUnmount=function(){this.manager.off('build-panels',this.buildPanels)},t.prototype.buildPanels=function(e){var t=e.context.data;Array.isArray(t)&&t.splice(0,t.length)},t.prototype.render=function(){var e=this.props,t=e.preview,n=e.className,r=e.theme,a=e.data,o=e.isMobile,i=e.autoFocus,c=e.previewProps;return Z.createElement('div',{className:X('ae-Editor',{preview:t},n)},Z.createElement('div',{className:'ae-Editor-inner',onContextMenu:this.handleContextMenu},Z.createElement('div',{className:'ae-Main'},Z.createElement(Tn,$({},c,{isMobile:o,editable:!t,store:this.store,manager:this.manager,theme:r,data:a,autoFocus:i,appLocale:this.props.appLocale})))),Z.createElement(wo,{store:this.store,manager:this.manager,theme:r}),Z.createElement(So,{store:this.store,manager:this.manager,theme:r}))},_([Ut,V('design:type',Function),V('design:paramtypes',[Object]),V('design:returntype',void 0)],t.prototype,'buildPanels',null),t}(Mo),ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.UNSAFE_componentWillMount=function(){var e=this,t=this.props;t.data,t.path;var n=t.widthMutable,r=z(t,['data','path','widthMutable']),a=this.context;this.editorNode=a.addChild({id:r.id,type:r.type,label:r.name,path:this.props.path,schemaPath:r.schemaPath,info:r,getData:function(){return e.props.data},widthMutable:n,memberIndex:r.memberIndex})},t.prototype.componentDidMount=function(){this.markDom(this.editorNode.id)},t.prototype.componentDidUpdate=function(){this.markDom(this.editorNode.id)},t.prototype.componentWillUnmount=function(){this.editorNode&&ke(this.editorNode)&&this.context.removeChild(this.editorNode)},t.prototype.markDom=function(e){var t=Re(this);if(t){var n=this.editorNode.info,r=n.wrapperResolve?n.wrapperResolve(t):t;(Array.isArray(r)?r:r?[r]:[]).forEach((function(t){return t.setAttribute('data-editor-id',e)}))}},t.prototype.render=function(){return Z.createElement(Za.Provider,{value:this.editorNode},this.props.children)},t.contextType=Za,t}(Z.Component),ti=[{title:B('79d3abe929f67f0644a78bf32adb3a89'),letters:['⌘','c'],tooltip:B('b7d817611230d382f6ef92b41848a342')},{title:B('eafbece1016a6af76cce466e55ad9f00'),letters:['⌘','v'],tooltip:B('e0b9bb8e41eccd3ce6b282664643d7f8')},{title:B('43fc77886b7fbcd658f0ccdba36bd5a0'),letters:['⌘','x'],tooltip:B('a6be4ad12e9612811963c44466af3218')},{title:B('bd9fcf46b4e5993f97fe04ee9ebcd7ed'),letters:['⌘','z'],tooltip:B('58887132871b71b015c3a391e7755815')},{title:B('c3c873d33f1c6482c79b0ffd862786cd'),letters:['⌘','Shift','z'],tooltip:B('58887132871b71b015c3a391e7755815')},{title:B('be5fbbe34ce9979bfb6576d9eddc5612'),letters:['⌘','s'],tooltip:B('1f81fd4598e9151538f29c41b8aa0020')},{title:B('34d240d1ded259c32f7fee21e99c5671'),letters:['⌘','p'],tooltip:B('6722089d251c1e4aabe9d58c26a2208a')},{title:B('2f4aaddde33c9b93c36fd2503f3d122b'),letters:['Delete'],tooltip:B('426cd14ebd62a4922186527d07ba37f3')},{title:B('2f4aaddde33c9b93c36fd2503f3d122b'),letters:['Backspace'],tooltip:B('426cd14ebd62a4922186527d07ba37f3')},{title:B('499e58e764420aeed2d1476a56d8fa34'),letters:['⌘','↑'],tooltip:B('d040485f0e3887f0b297f8f772db03e4')},{title:B('08ad565f066d30572d1f8e2ee17cbe12'),letters:['⌘','↓'],tooltip:B('6348dc0e83d6ab391a8816f67d0e5ceb')}],ni=function(e){function t(t){var n=e.call(this,t)||this;return n.state={visible:!1},n}return K(t,e),t.prototype.closeShortcutKeyModal=function(){this.setState({visible:!1})},t.prototype.showShortcutKeyModal=function(){this.setState({visible:!0})},t.prototype.render=function(){var e=this.props,t=e.title,n=e.size,a=e.closeOnEsc,o=e.closeOnOutside,i=this.props.ShortcutKeyList||ti;return Z.createElement(Z.Fragment,null,Z.createElement('div',{className:'shortcut-icon-btn','editor-tooltip':B('fbec96e028142496df88ed2c63b44512'),'tooltip-position':'bottom'},Z.createElement(r,{icon:'editor-shortcut',onClick:this.showShortcutKeyModal})),Z.createElement(O,{size:n||'xs',show:this.state.visible,closeOnEsc:null==a||a,closeOnOutside:null==o||o,onHide:this.closeShortcutKeyModal,contentClassName:'shortcut-list-modal'},Z.createElement('div',{className:'shortcut-modal-header'},Z.createElement('div',{className:'shortcut-modal-title'},t||B('9c3f1278ffa822835bb3a677f02bca27')),Z.createElement(r,{icon:'close',className:'shortcut-modal-icon',onClick:this.closeShortcutKeyModal})),Z.createElement('div',{className:'shortcut-modal-body'},i&&i.length>0&&Z.createElement('div',{className:'shortcut-list'},i.map((function(e,t){return Z.createElement('div',{className:'shortcut-item',key:t},e.tooltip&&Z.createElement('div',{className:'shortcut-title','editor-tooltip':e.tooltip},e.title),!e.tooltip&&Z.createElement('div',{className:'shortcut-title'},e.title),Z.createElement('div',{className:'shortcut-letters'},e.letters.map((function(e){return Z.createElement('div',{className:'shortcut-letter',key:e},e)}))))}))),!i||0===i.length&&Z.createElement('span',null,B('4e98a5dcd3defffb23629fce3add04f6')))))},_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'closeShortcutKeyModal',null),_([Ut,V('design:type',Function),V('design:paramtypes',[]),V('design:returntype',void 0)],t.prototype,'showShortcutKeyModal',null),t}(Z.Component),ri='6.4.1';export{Fo as AvailableRenderersPlugin,Ja as BasePlugin,Go as BasicEditor,jo as CodeEditor,to as ContainerWrapper,Mo as Editor,Eo as EditorManager,Fn as IFrameEditor,Mt as JSONCanMoveDown,kt as JSONCanMoveUp,Ot as JSONChangeInArray,Rt as JSONDelete,Ft as JSONDuplicate,St as JSONGetById,wt as JSONGetByPath,It as JSONGetParentById,Ct as JSONGetPathById,Nt as JSONMerge,Pt as JSONMoveDownById,At as JSONMoveUpById,yt as JSONPipeIn,Et as JSONPipeOut,Qt as JSONTraverse,xt as JSONUpdate,Bt as JsonGenerateID,Ga as LayoutBasePlugin,Qo as MiniEditor,eo as RegionWrapper,Jo as RendererEditor,ro as SchemaFrom,za as SearchPanel,ni as ShortcutKey,ei as VRenderer,Do as WidthDraggableContainer,vt as __uri,Wt as addDragingClass,xn as addModal,ct as anyChanged,hn as appTranslate,vo as autoPreRegisterEditorCustomPlugins,Ut as autobind,Ht as blackList,qt as camelize,gt as cleanUndefined,En as clearDirtyCssKey,it as cloneObject,$t as createElementFromHTML,Xa as createEvent,ft as createObject,Tt as deepFind,Mo as default,qo as defaultValue,Jt as diff,pt as eachTree,jt as filterSchemaForConfig,Lt as filterSchemaForEditor,on as generateNodeId,bo as getEditorPlugins,pn as getI18nEnabled,Vo as getSchemaTpl,gn as getThemeConfig,Cn as getVariables,rt as guid,ut as isEmpty,cn as isHasPluginIcon,sn as isLayoutPlugin,en as isNumeric,rn as isObject,ot as isObjectShallowModified,nn as isString,an as jsonToJsonSchema,dt as makeHorizontalDeeper,io as mapReactElement,Nn as mergeDefinitions,Xo as mockValue,Rn as modalsToDefinitions,un as needDefaultWidth,mn as needFillPlaceholder,st as noop,Vt as normalizeId,at as omitControls,Gt as patchDiff,Kt as persistGet,_t as persistSet,Dt as reGenerateID,Yt as reactionWithOldValue,go as registerEditorPlugin,Zt as removeDragingClass,Xt as repeatArray,wn as resolveVariablesFromScope,In as scrollToActive,Uo as setSchemaTpl,vn as setThemeConfig,zt as sortByList,tn as string2CSSUnit,ln as stringRegExp,yn as style2ThemeCss,ht as themeConfig,mt as themeOptionsData,Yo as tipedLabel,fn as translateSchema,yo as unRegisterEditorPlugin,Zo as undefinedPipeOut,dn as unitFormula,Sn as updateComponentContext,On as utils,Wo as valuePipeOut,ri as version};