amis-editor-core 5.2.5 → 5.4.0

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.
Files changed (69) hide show
  1. package/esm/builder/DSBuilder.d.ts +4 -3
  2. package/esm/component/ClassNameControl.d.ts +1 -1
  3. package/esm/component/ContainerWrapper.d.ts +2 -2
  4. package/esm/component/Editor.d.ts +6 -2
  5. package/esm/component/IFramePreview.d.ts +1 -2
  6. package/esm/component/MiniEditor.d.ts +0 -1
  7. package/esm/component/Panel/RenderersPanel.d.ts +1 -1
  8. package/esm/component/Preview.d.ts +1 -2
  9. package/esm/component/RegionWrapper.d.ts +12 -12
  10. package/esm/component/RendererThumb.d.ts +1 -1
  11. package/esm/component/ScaffoldModal.d.ts +2 -10
  12. package/esm/component/SubEditor.d.ts +1 -1
  13. package/esm/component/VRenderer.d.ts +18 -30
  14. package/esm/component/factory.d.ts +2 -3
  15. package/esm/index.d.ts +2 -1
  16. package/esm/index.js +2 -2
  17. package/esm/manager.d.ts +18 -17
  18. package/esm/mocker.d.ts +1 -1
  19. package/esm/plugin/AvailableRenderers.d.ts +1 -0
  20. package/esm/plugin/BasicToolbar.d.ts +1 -0
  21. package/esm/plugin/Code.d.ts +1 -0
  22. package/esm/plugin/DataDebug.d.ts +1 -1
  23. package/esm/plugin/ErrorRenderer.d.ts +1 -0
  24. package/esm/plugin/Name.d.ts +1 -0
  25. package/esm/plugin/Outline.d.ts +1 -0
  26. package/esm/plugin/Unknown.d.ts +1 -0
  27. package/esm/plugin.d.ts +8 -3
  28. package/esm/store/editor.d.ts +59 -56
  29. package/esm/store/node.d.ts +3 -4
  30. package/esm/tpl.d.ts +37 -17
  31. package/esm/util.d.ts +9 -8
  32. package/esm/variable.d.ts +1 -1
  33. package/lib/builder/DSBuilder.d.ts +4 -3
  34. package/lib/component/ClassNameControl.d.ts +1 -1
  35. package/lib/component/ContainerWrapper.d.ts +2 -2
  36. package/lib/component/Editor.d.ts +6 -2
  37. package/lib/component/IFramePreview.d.ts +1 -2
  38. package/lib/component/MiniEditor.d.ts +0 -1
  39. package/lib/component/Panel/RenderersPanel.d.ts +1 -1
  40. package/lib/component/Preview.d.ts +1 -2
  41. package/lib/component/RegionWrapper.d.ts +12 -12
  42. package/lib/component/RendererThumb.d.ts +1 -1
  43. package/lib/component/ScaffoldModal.d.ts +2 -10
  44. package/lib/component/SubEditor.d.ts +1 -1
  45. package/lib/component/VRenderer.d.ts +18 -30
  46. package/lib/component/base/BackTop.d.ts +1 -1
  47. package/lib/component/factory.d.ts +2 -3
  48. package/lib/editor.js +2 -2
  49. package/lib/index.d.ts +2 -1
  50. package/lib/index.js +2 -2
  51. package/lib/manager.d.ts +18 -17
  52. package/lib/mocker.d.ts +1 -1
  53. package/lib/plugin/AvailableRenderers.d.ts +1 -0
  54. package/lib/plugin/BasicToolbar.d.ts +1 -0
  55. package/lib/plugin/Code.d.ts +1 -0
  56. package/lib/plugin/DataDebug.d.ts +1 -1
  57. package/lib/plugin/ErrorRenderer.d.ts +1 -0
  58. package/lib/plugin/Name.d.ts +1 -0
  59. package/lib/plugin/Outline.d.ts +1 -0
  60. package/lib/plugin/Unknown.d.ts +1 -0
  61. package/lib/plugin.d.ts +8 -3
  62. package/lib/store/editor.d.ts +59 -57
  63. package/lib/store/node.d.ts +3 -4
  64. package/lib/style.css +1 -1
  65. package/lib/tpl.d.ts +37 -17
  66. package/lib/util.d.ts +10 -9
  67. package/lib/variable.d.ts +1 -1
  68. package/package.json +9 -6
  69. package/static/nav-mode.gif +0 -0
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-editor-core v5.2.5
2
+ * amis-editor-core v5.4.0
3
3
  * Copyright 2018-2023 @fex
4
4
  */
5
5
 
6
- import{utils as e,hasIcon as t,mapObject as r,Icon as n,filterSchema as a,render as i,toast as o,alert as l,confirm as c,animation as d,DataSchema as s,openContextMenus as u,resizeSensor as f,resolveRenderer as p,InputBox as b,Html as h,Button as v,registerIcon as m,TooltipWrapper as g,Tabs as y,Tab as w,resolveVariable as O,getTheme as E,Modal as P,Spinner as C,Overlay as S,PopOver as j,Drawer as x,FormItem as I,prompt as R}from"amis";export{Icon,registerIcon}from"amis";import{extendLocale as N,i18n as k}from"i18n-runtime";import{__assign as F,__extends as A,__decorate as M,__metadata as D,__rest as B,__spreadArray as T,__awaiter as H,__generator as z}from"tslib";import*as L from"react";import $,{Component as K}from"react";import _ from"classnames";import V from"lodash/isEqual";import{reaction as U,isObservable as W}from"mobx";import Z from"deep-diff";import q from"lodash/isPlainObject";import Y from"lodash/isNumber";import{createObject as X,attachmentAdpator as J,DataSchema as G,mapTree as Q,eachTree as ee,findTree as te,getRenderers as re,clearStoresCache as ne,LazyComponent as ae,mapObject as ie,extendObject as oe,getVariable as le}from"amis-core";import{observer as ce}from"mobx-react";import{findDOMNode as de,render as se,unmountComponentAtNode as ue}from"react-dom";import{types as fe,getParent as pe,isAlive as be,getRoot as he,getEnv as ve,cast as me,destroy as ge}from"mobx-state-tree";import ye from"lodash/find";import we from"lodash/groupBy";import Oe from"lodash/uniq";import Ee from"lodash/findIndex";import Pe from"lodash/flatten";import{omit as Ce}from"lodash";import Se from"axios";import je from"lodash/debounce";import{stringify as xe,parse as Ie}from"json-ast-comments";import Re from"lodash/sortBy";import Ne from"lodash/cloneDeep";import ke from"lodash/reverse";import Fe from"lodash/pick";import Ae from"lodash/omit";import Me from"lodash/isString";import{Editor as De}from"amis-ui";import Be from"react-json-view";import Te from"moment";N("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>"}),N("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:"<列>"});var He=e.guid,ze=e.omitControls,Le=e.isObjectShallowModified,$e=e.cloneObject,Ke=e.anyChanged,_e=e.noop,Ve=e.makeHorizontalDeeper,Ue=e.findIndex,We=e.isEmpty,Ze=e.eachTree,qe=e.createObject;function Ye(e){return e}function Xe(e){return Bt(e)?(Object.keys(e).forEach((function(t){void 0===e[t]&&delete e[t]})),e):e}function Je(e){if(!Bt(e)||e.$$typeof)return e;if(Array.isArray(e))return e.map(Je);var t={},r=!1;return e.$$id||(r=!0,t.$$id=He()),Object.keys(e).forEach((function(n){var a=e[n];if(Array.isArray(a)){var i=!1,o=a.map((function(e){var t=Je(e);return t!==e&&(i=!0),t}));i&&(r=!0,t[n]=o)}else{(o=Je(a))!==a&&(r=!0,t[n]=o)}})),r&&(e=Xe(F(F({},e),t))),e}function Ge(e,t){if(Array.isArray(e)){var r=!1,n=e.map((function(e){var n=Ge(e,t);return n!==e&&(r=!0),n}));return r?n:e}if(!Bt(e)||W(e))return e;var a=!1,i={};return e.$$id&&(a=!0,i.$$id=void 0),Object.keys(e).forEach((function(r){var n=e[r];if("function"==typeof t?t(r,n):!1!==t&&"__"===r.substring(0,2))return i[r]=void 0,void(a=!0);var o=Ge(n,t);o!==n&&(a=!0,i[r]=o)})),a&&(e=Xe(F(F({},e),i))),e}function Qe(e){var t=e.css;if(!e.css)return e;var r={};return Object.keys(t).forEach((function(t){if("$$id"!==t){var n="".concat(t,"-").concat(e.id.replace("u:",""));e[t]?~e[t].indexOf(n)||(r[t]=e[t]+" "+n):r[t]=n}})),e=Xe(F(F({},e),r))}function et(e,t,r){var n=e;return r&&r.push(e),t.forEach((function(e){n=n[e],r&&r.push(n)})),n}function tt(e,t,r){void 0===r&&(r="$$id");for(var n=[],a=!1,i=[{path:".",data:e}],o=function(){var e=i.shift(),o=e.data,l=e.path;if(o[r]===t)return a=!0,n=l.split(".").filter((function(e){return e})),"break";Object.keys(o).forEach((function(e){var t=o[e];Array.isArray(t)?t.forEach((function(t,r){Bt(t)&&i.push({data:t,path:"".concat(l,".").concat(e,".").concat(r)})})):Bt(t)&&i.push({data:t,path:"".concat(l,".").concat(e)})}))};i.length;){if("break"===o())break}return a?n:null}function rt(e,t,r){var n=tt(e,t,r);return null===n?null:et(e,n)}function nt(e,t,r){void 0===r&&(r=!1);var n=tt(e,t);if(null===n||!n.length)return null;var a=e,i=[a];for(n.pop(),n.forEach((function(e){a=a[e],i.unshift(a)}));r&&Array.isArray(i[0]);)i.shift();return i[0]}function at(e,t,r,n){void 0===n&&(n=!1);var a=tt(e,t);if(null===a)return e;var i=[],o=et(e,a,i);if(Array.isArray(r)&&i[i.length-2]&&Array.isArray(i[i.length-2])){var l=i[i.length-2].indexOf(i[i.length-1]);i[i.length-2]=i[i.length-2].concat(),i[i.length-2].splice.apply(i[i.length-2],[l,1].concat(r)),i.pop()}else i[i.length-1]=o=F(F(F({},n?null:o),r),{$$id:t});for(;i.length>1;){var c=i.pop();Array.isArray(i[i.length-1])?i[i.length-1]=i[i.length-1].concat():i[i.length-1]=F({},i[i.length-1]),i[i.length-1][a[i.length-1]]=c}return i[0]}function it(e,t,r,n){var a=tt(e,t);if(null===a)return e;Array.isArray(r)&&r.push.apply(r,a);var i=a.pop(),o=[],l=et(e,a,o);for(Array.isArray(l)?(o[o.length-1]=l=l.concat(),l.splice(i,1),n&&!l.length&&(o[o.length-1]=void 0)):(o[o.length-1]=l=F({},l),delete l[i]);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]=F({},o[o.length-1]),void 0===c?delete o[o.length-1][a[o.length-1]]:o[o.length-1][a[o.length-1]]=c}return o[0]}function ot(e,t){if(!Bt(e)||!Bt(t))return t;if(!Le(e,t))return e;var r={};return e.$$id&&(r.$$id=e.$$id),Object.keys(t).forEach((function(n){Array.isArray(t[n])&&Array.isArray(e[n])&&t[n]!==e[n]?r[n]=t[n].map((function(t,r){return e[n][r]?ot(e[n][r],t):t})):void 0===e[n]?r[n]=t[n]:r[n]=ot(e[n],t[n])})),r}function lt(e,t,r){var n=tt(e,t);if(null===n)return e;var a=parseInt(n.pop(),10),i=[],o=et(e,n,i);if(!Array.isArray(o))return e;for(i[i.length-1]=o=o.concat(),r(o,o[a],a);i.length>1;){var l=i.pop();Array.isArray(i[i.length-1])?i[i.length-1]=i[i.length-1].concat():i[i.length-1]=F({},i[i.length-1]),i[i.length-1][n[i.length-1]]=l}return i[0]}function ct(e,t){var r=nt(e,t);return!(!r||!Array.isArray(r))&&Ue(r,(function(e){return e.$$id===t}))>0}function dt(e,t){return lt(e,t,(function(e,t,r){0!==r&&(e.splice(r,1),e.splice(r-1,0,t))}))}function st(e,t){var r=nt(e,t);if(!r||!Array.isArray(r))return!1;var n=Ue(r,(function(e){return e.$$id===t}));return~n&&n<r.length-1}function ut(e,t){return lt(e,t,(function(e,t,r){r!==e.length-1&&(e.splice(r,1),e.splice(r+1,0,t))}))}function ft(e,t,r){return void 0===r&&(r={}),lt(e,t,(function(e,t,n){var a=Je(Ge(t));e.splice(n+1,0,pt(a,r))}))}function pt(e,t){return void 0===t&&(t={}),Ft(e,(function(e,r,n){var a,i="string"==typeof e&&0===e.indexOf("u:");if("id"===r&&i&&n){var o=Ht();t[n.id]=o,n.id=o}else"componentId"===r&&i&&(n.componentId=null!==(a=t[e])&&void 0!==a?a:e);return e})),e}function bt(e){Object.isFrozen(e)||(Array.isArray(e)&&e.forEach((function(e){return bt(e)})),Bt(e)&&!W(e)&&(e.type&&!e.id&&(e.id=Ht()),Object.keys(e).forEach((function(t){var r=e[t];(Bt(r)||Array.isArray(r))&&bt(r)}))))}function ht(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}function vt(e,t,r){return void 0===r&&(r={}),(null==e?void 0:e.$$commonSchema)===t?r[t]=e:q(e)?Object.keys(e).forEach((function(n){vt(e[n],t,r)})):Array.isArray(e)&&e.map((function(e){return vt(e,t,r)})),r}function mt(e,t){if(Array.isArray(e))return e.map((function(e){return mt(e,t)}));if(q(e)){var r={},n=!1;return Object.keys(e).forEach((function(a){var i=e[a],o=mt(i,t);if(e.$$commonSchema?r[a]&&(r[a]=o):r[a]=o,o!==i&&(n=!0),"$$commonSchema"!==a||t){if("$$commonSchema"===a&&t){var l=vt(t,i);l[i]&&(e=r=F({},l[i]))}}else e=r={$$commonSchema:i}})),n?r:e}return e}function gt(e){if(Array.isArray(e))return e.map((function(e){return gt(e)}));if(q(e)){var t={},r=!1;return Object.keys(e).forEach((function(n){var a=e[n];~["visible","visibleOn","hidden","hiddenOn","toggled"].indexOf(n)&&(n="$$".concat(n),r=!0);var i=gt(a);t[n]=i,/[C|c]lassName/.test(n)&&e.editorState&&(t[n]=t[n]?t[n]+" "+e.editorState:e.editorState,r=!0),i!==a&&(r=!0)})),r?t:e}return e}function yt(e){return function(t){return!~e.indexOf(t)}}function wt(e,t){var r=t?"function"==typeof t?t:function(e){return e[t]}:function(e){return e};return function(t,n){var a=e.indexOf(r(t)),i=e.indexOf(r(n));return(a=~a?a:999999)>(i=~i?i:999999)?1:a===i?0:-1}}function Ot(e,t){var r=localStorage.getItem("amis-editor-".concat(e));return r&&(r=JSON.parse(r)),r||t}function Et(e,t){t=JSON.stringify(t),localStorage.setItem("amis-editor-".concat(e),t)}function Pt(e){return e.replace(/\-[a-z0-9]+$/g,"")}var Ct=e.autobind;function St(e){for(;e&&(e.classList.add("ae-is-draging"),!(null==(e=e.parentElement)?void 0:e.hasAttribute("data-region"))););}function jt(e){for(;e&&(e.classList.remove("ae-is-draging"),!(null==(e=e.parentElement)?void 0:e.hasAttribute("data-region"))););}function xt(e){return e.replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}))}var It=function(e,t){var r;return U(e,(function(e){V(e,r)||(t(e,r),r=e)}))};function Rt(e,t){void 0===t&&(t=1);for(var r=[];t-- >0;)r.push(e);return r}function Nt(e,t,r){return Z.diff(e,t,r)}function kt(e,t){return t?t.reduce((function(t,r){return function(e,t,r){if(e&&Array.isArray(null==r?void 0:r.path)){e=e===t?F({},e):e;var n=r.path.concat();"A"!==r.kind&&n.pop(),n.reduce((function(e,t){var r=e.target,n=e.source[t],a=r[t];return n===a&&(a=Array.isArray(a)?a.concat():F({},a),r[t]=a),{source:n,target:a}}),{target:e,source:t}),Z.applyChange(e,t,r)}return e}(t,e,r)}),e):e}function Ft(e,t){Object.keys(e).forEach((function(r){var n=e[r];q(n)||Array.isArray(n)?Ft(n,t):t(n,r,e)}))}var At=function(e){return Y(e)||!isNaN(parseFloat(String(e).toString()))},Mt=function(e,t){return void 0===t&&(t="px"),e?At(e)?"".concat(parseFloat(String(e).toString())).concat(t):e:void 0};function Dt(e){return"String"===Object.prototype.toString.call(e).slice(8,-1)}function Bt(e){var t=!1;return"Object"===Object.prototype.toString.call(e).slice(8,-1)&&(t=!0),t}function Tt(e){void 0===e&&(e={});var t={type:"object",properties:{}};return Object.keys(e).forEach((function(r){var n=e[r],a=typeof n;~["string","number"].indexOf(a)?t.properties[r]={type:a,title:r}:t.properties[r]="object"===a&&n?{type:"object",title:r}:{type:"",title:r}})),t}function Ht(){return"u:"+He()}function zt(e){return e.pluginIcon&&t(e.pluginIcon)}function Lt(e){return!(!e||"flex"!==e.type)}function $t(e,t){if("auto"===e)return"auto";var r=parseInt(e),n=t;Y(t)||(n=parseInt(t));var a=e.substring(r.toString().length);return a||(a="px"),"".concat(r+n).concat(a)}function Kt(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"")}function _t(e){return["divider","crud2","crud","list","picker","table","table-view","grid","cards","card","form","progress","diff-editor","editor","input-range","flex"].indexOf(e)>-1}function Vt(){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 Ut(e,t){var n;return t=t||(null===(n=null===window||void 0===window?void 0:window.editorStore)||void 0===n?void 0:n.appCorpusData),q(t)?r(e,(function(e){return t[e]||e})):e}function Wt(e){var t,r;return Dt(e)&&(null===(r=null===(t=null===window||void 0===window?void 0:window.editorStore)||void 0===t?void 0:t.appCorpusData)||void 0===r?void 0:r[e])||e}function Zt(e){var t,r,n,a,i=!1;return!!e&&("page"===e.rendererName&&("aside"===e.name||"body"===e.name)||(!!(null===(r=null===(t=e.node)||void 0===t?void 0:t.schema)||void 0===r?void 0:r.isFreeContainer)||(((null===(n=e.$$editor)||void 0===n?void 0:n.needFillPlaceholder)||(null===(a=e.regionConfig)||void 0===a?void 0:a.needFillPlaceholder))&&(i=!0),i)))}var qt=Object.freeze({__proto__:null,guid:He,isObjectShallowModified:Le,anyChanged:Ke,noop:_e,makeHorizontalDeeper:Ve,omitControls:ze,isEmpty:We,cloneObject:$e,eachTree:Ze,createObject:qe,__uri:Ye,cleanUndefined:Xe,JSONPipeIn:Je,JSONPipeOut:Ge,addStyleClassName:Qe,JSONGetByPath:et,JSONGetPathById:tt,JSONGetById:rt,JSONGetParentById:nt,JSONUpdate:at,JSONDelete:it,JSONMerge:ot,JSONChangeInArray:lt,JSONCanMoveUp:ct,JSONMoveUpById:dt,JSONCanMoveDown:st,JSONMoveDownById:ut,JSONDuplicate:ft,reGenerateID:pt,JsonGenerateID:bt,createElementFromHTML:ht,deepFind:vt,filterSchemaForConfig:mt,filterSchemaForEditor:gt,blackList:yt,sortByList:wt,persistGet:Ot,persistSet:Et,normalizeId:Pt,autobind:Ct,addDragingClass:St,removeDragingClass:jt,camelize:xt,reactionWithOldValue:It,repeatArray:Rt,diff:Nt,patchDiff:kt,JSONTraverse:Ft,isNumeric:At,string2CSSUnit:Mt,isString:Dt,isObject:Bt,jsonToJsonSchema:Tt,generateNodeId:Ht,isHasPluginIcon:zt,isLayoutPlugin:Lt,unitFormula:$t,stringRegExp:Kt,needDefaultWidth:_t,getI18nEnabled:Vt,translateSchema:Ut,appTranslate:Wt,needFillPlaceholder:Zt}),Yt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"mainRef",{enumerable:!0,configurable:!0,writable:!0,value:$.createRef()}),Object.defineProperty(t,"wResizerDom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"hResizerDom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"resizerDom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return A(t,e),Object.defineProperty(t.prototype,"handleWResizerMouseDown",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.startResize(e,"horizontal")}}),Object.defineProperty(t.prototype,"handleHResizerMouseDown",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.startResize(e,"vertical")}}),Object.defineProperty(t.prototype,"handleResizerMouseDown",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.startResize(e,"both")}}),Object.defineProperty(t.prototype,"startResize",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n,a,i=this;if(void 0===t&&(t="horizontal"),(1===e.button&&null!==window.event||0===e.button)&&!e.defaultPrevented){e.preventDefault();var o=this.props,l=o.manager,c=o.id,d=o.node,s=o.store;if(d){var u=document.querySelector('[data-editor-id="'.concat(c,'"]'));if(u){l.disableHover=!0;var f=l["both"===t?"onSizeChangeStart":"vertical"===t?"onHeightChangeStart":"onWidthChangeStart"](e,{dom:u,node:d,store:s,resizer:"both"===t?this.resizerDom:"vertical"===t?this.hResizerDom:this.wResizerDom}),p=null===(r=f.data)||void 0===r?void 0:r.onMove,b=null===(n=f.data)||void 0===n?void 0:n.onEnd;if(p||b){null===(a=this.mainRef.current)||void 0===a||a.setAttribute("data-resizing","");var h=function(e){e.preventDefault(),null==p||p(e)},v=function(e){var t;e.preventDefault(),l.disableHover=!1,null===(t=i.mainRef.current)||void 0===t||t.removeAttribute("data-resizing"),window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",v),document.body.style.cursor="default";var r=function(e){window.removeEventListener("click",r,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener("click",r,!0),setTimeout((function(){return window.removeEventListener("click",r,!0)}),350),null==b||b(e)};window.addEventListener("mousemove",h),window.addEventListener("mouseup",v),document.body.style.cursor="both"===t?"nwse-resize":"vertical"===t?"ns-resize":"ew-resize"}}}}}}),Object.defineProperty(t.prototype,"wResizerRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;e?e.addEventListener("mousedown",this.handleWResizerMouseDown):null===(t=this.wResizerDom)||void 0===t||t.addEventListener("mousedown",this.handleWResizerMouseDown),this.wResizerDom=e}}),Object.defineProperty(t.prototype,"hResizerRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;e?e.addEventListener("mousedown",this.handleHResizerMouseDown):null===(t=this.hResizerDom)||void 0===t||t.addEventListener("mousedown",this.handleHResizerMouseDown),this.hResizerDom=e}}),Object.defineProperty(t.prototype,"resizerRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;e?e.addEventListener("mousedown",this.handleResizerMouseDown):null===(t=this.resizerDom)||void 0===t||t.addEventListener("mousedown",this.handleResizerMouseDown),this.resizerDom=e}}),Object.defineProperty(t.prototype,"handleMouseEnter",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.manager.disableHover||this.props.store.setHoverId(this.props.id)}}),Object.defineProperty(t.prototype,"handleDragStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props,r=t.manager,n=t.id;r.disableHover||r.startDrag(n,e)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.className,r=e.store,a=e.id,i=e.title,o=e.children,l=e.node;e.toolbarContainer;var c=e.onSwitch,d=r.sortedToolbars,s=r.sortedSecondaryToolbars,u=r.sortedSpecialToolbars,f=r.isActive(a),p=r.parentIsFreeContainer(),b=r.isHoved(a)||r.dropId===a||r.insertOrigId===a||p===a,h=r.draggableContainer(a),v=document.getElementById("aePreviewHighlightBox").offsetWidth-l.x<176;return $.createElement("div",{className:_("ae-Editor-hlbox",{shake:a===r.insertOrigId,selected:f||~r.selections.indexOf(a),hover:b,regionOn:l.childRegions.some((function(e){return r.isRegionHighlighted(e.id,e.region)})),isFreeContainerElem:!!p||h},t),"data-hlbox-id":a,style:{display:l.w&&l.h?"block":"none",top:l.y,left:l.x,width:l.w,height:l.h},ref:this.mainRef,onMouseEnter:this.handleMouseEnter,draggable:!!p||h,onDragStart:this.handleDragStart},f?$.createElement("div",{className:"ae-Editor-toolbarPopover ".concat(v?"is-right-elem":"")},$.createElement("div",{className:"ae-Editor-nav"},l.host?$.createElement("div",{className:"ae-Editor-tip parent",onClick:function(){return null==c?void 0:c(l.host.id)}},l.host.label):null,$.createElement("div",{key:"tip",className:"ae-Editor-tip current"},i),l.firstChild?$.createElement("div",{className:"ae-Editor-tip child",onClick:function(){return null==c?void 0:c(l.firstChild.id)}},l.firstChild.label):null),$.createElement("div",{className:"ae-Editor-toolbar",key:"toolbar"},d.map((function(e){return $.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?$.createElement(n,{className:"icon",icon:e.iconSvg}):~e.icon.indexOf("<")?$.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}}):$.createElement("i",{className:e.icon}))})))):null,f&&s.length?$.createElement("div",{className:"ae-Editor-toolbar sencondary",key:"sencondary-toolbar"},s.map((function(e){return $.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?$.createElement(n,{className:"icon",icon:e.iconSvg}):~e.icon.indexOf("<")?$.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}}):$.createElement("i",{className:e.icon}))}))):null,f&&u.length?$.createElement("div",{className:"ae-Editor-toolbar special",key:"special-toolbar"},u.map((function(e){return $.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?$.createElement(n,{className:"icon",icon:e.iconSvg}):~e.icon.indexOf("<")?$.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}}):$.createElement("i",{className:e.icon}))}))):null,o,l.widthMutable?$.createElement($.Fragment,null,$.createElement("span",{className:"ae-border-WResizer",ref:this.wResizerRef}),$.createElement("span",{className:"ae-WResizer",ref:this.wResizerRef})):null,l.heightMutable?$.createElement($.Fragment,null,$.createElement("span",{className:"ae-border-HResizer",ref:this.hResizerRef}),$.createElement("span",{className:"ae-HResizer",ref:this.hResizerRef})):null,l.widthMutable&&l.heightMutable?$.createElement("span",{className:"ae-Resizer",ref:this.resizerRef}):null)}}),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handleWResizerMouseDown",null),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handleHResizerMouseDown",null),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handleResizerMouseDown",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"wResizerRef",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"hResizerRef",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"resizerRef",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDragStart",null),t=M([ce],t)}($.Component),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"handleClick",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.manager,r=e.id,n=e.name;t.emptyRegion(r,n)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.store,r=e.id,a=e.name,i=e.title,o=e.node,l=e.isOnlyChildRegion,c=t.isRegionHighlighted(r,a),d=t.isRegionHighlightHover(r,a),s=t.isRegionDragEnter(r,a),u=t.getNodeById(r),f=o.x-u.x,p=o.y-u.y;return $.createElement("div",{"data-renderer":o.host.info.renderer.name,"data-region":a,className:_("ae-Editor-rhlbox",s?"is-dragenter":"",!l&&d?"region-hover":"",c?"is-highlight":"",f<87&&p<21&&o.x<190?"region-label-within":""),style:{width:o.w,height:o.h,borderWidth:"".concat(Math.max(0,p),"px ").concat(Math.max(0,u.w-f-o.w),"px ").concat(Math.max(0,u.h-p-o.h),"px ").concat(Math.max(0,f),"px")}},$.createElement("div",{"data-node-id":r,"data-node-region":a,className:"region-tip ".concat(l?"is-only-child-region":""," ignore-hover-elem")},i,$.createElement("span",{className:"margin-space"},"|"),$.createElement("button",{type:"button",className:"clear-icon-btn","data-tooltip":k("bb28ec819520ced0ffb4c3da01f112e2"),"data-position":"bottom",onClick:this.handleClick},$.createElement(n,{icon:"clear-btn"}))))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleClick",null),t=M([ce],t)}($.Component),Jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){return $.createElement("div",{className:"ae-ErrorRenderer"},"类型错误,无法渲染")}}),t}($.Component);function Gt(e,t){var r={context:t,type:e,prevented:!1,stoped:!1,preventDefault:function(){r.prevented=!0},stopPropagation:function(){r.stoped=!0},get data(){return r.context.data},setData:function(e){r.context.data=e}};return r}var Qt=function(){function e(e){Object.defineProperty(this,"manager",{enumerable:!0,configurable:!0,writable:!0,value:e})}return Object.defineProperty(e.prototype,"getRendererInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.renderer,r=e.schema,n=this;if(r.$$id&&n.name&&n.rendererName&&n.rendererName===t.name){var a=n.name;return(null==r?void 0:r.isFreeContainer)?a=k("db805d4e361ac2d3fc6047eaea1a7c69"):(null==r?void 0:r.isSorptionContainer)&&(a=k("969e9e56b3812abffa3994f35ea31835")),{name:a,regions:n.regions,patchContainers:n.patchContainers,vRendererConfig:n.vRendererConfig,wrapperProps:n.wrapperProps,wrapperResolve:n.wrapperResolve,filterProps:n.filterProps,$schema:n.$schema,renderRenderer:n.renderRenderer,multifactor:n.multifactor,scaffoldForm:n.scaffoldForm,disabledRendererPlugin:n.disabledRendererPlugin,isBaseComponent:n.isBaseComponent,rendererName:n.rendererName}}}}),Object.defineProperty(e.prototype,"buildEditorPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n,a,i,o=this,l=this.manager.store;if(l.activeId&&!e.selections.length){if(!e.info.hostId&&(o.panelControls||o.panelControlsCreator||o.panelBody||o.panelBodyCreator)&&e.info.plugin===this){var c=o.panelBodyCreator?o.panelBodyCreator(e):o.panelBody;this.manager.trigger("after-build-panel-body",{context:e,data:c,plugin:o}),t.push({key:"config",icon:o.panelIcon||o.icon||"fa fa-cog",pluginIcon:o.pluginIcon,title:o.panelTitle||k("e366ccf1556c0672dcecba135ed5472e"),render:this.manager.makeSchemaFormRender({definitions:o.panelDefinitions,submitOnChange:o.panelSubmitOnChange,api:o.panelApi,body:c,controls:o.panelControlsCreator?o.panelControlsCreator(e):o.panelControls,justify:o.panelJustify,panelById:l.activeId})})}else e.info.plugin===this&&e.info.hostId&&((null===(r=o.vRendererConfig)||void 0===r?void 0:r.panelControls)||(null===(n=o.vRendererConfig)||void 0===n?void 0:n.panelControlsCreator)||(null===(a=o.vRendererConfig)||void 0===a?void 0:a.panelBody)||(null===(i=o.vRendererConfig)||void 0===i?void 0:i.panelBodyCreator))&&t.push({key:e.info.multifactor?"vconfig":"config",icon:o.vRendererConfig.panelIcon||"fa fa-cog",title:o.vRendererConfig.panelTitle||k("e366ccf1556c0672dcecba135ed5472e"),render:this.manager.makeSchemaFormRender({submitOnChange:o.panelSubmitOnChange,api:o.panelApi,definitions:o.vRendererConfig.panelDefinitions,controls:o.vRendererConfig.panelControlsCreator?o.vRendererConfig.panelControlsCreator(e):o.vRendererConfig.panelControls,body:o.vRendererConfig.panelBodyCreator?o.vRendererConfig.panelBodyCreator(e):o.vRendererConfig.panelBody,justify:o.vRendererConfig.panelJustify,panelById:l.activeId})});if(e.info.plugin===this&&e.info.multifactor){var d=e.node.sameIdChild;if(d)this.manager.collectPanels(d,!1,!0).forEach((function(e){var r,n;"config"!==e.key&&"vconfig"!==e.key||t.push(F(F({},e),{key:"sub-".concat(e.key),icon:(null===(n=null===(r=d.info)||void 0===r?void 0:r.plugin)||void 0===n?void 0:n.icon)||e.icon}))}))}}}}),Object.defineProperty(e.prototype,"buildSubRenderers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=this;return Array.isArray(n.scaffolds)?n.scaffolds.map((function(e){var t,r,a,i,o,l,c,d;return{name:null!==(t=e.name)&&void 0!==t?t:n.name,icon:null!==(r=e.icon)&&void 0!==r?r:n.icon,pluginIcon:n.pluginIcon,description:null!==(a=e.description)&&void 0!==a?a:n.description,previewSchema:null!==(i=e.previewSchema)&&void 0!==i?i:n.previewSchema,tags:null!==(o=e.tags)&&void 0!==o?o:n.tags,docLink:null!==(l=e.docLink)&&void 0!==l?l:n.docLink,type:null!==(c=e.type)&&void 0!==c?c:n.type,scaffold:null!==(d=e.scaffold)&&void 0!==d?d:n.scaffold,scaffoldForm:n.scaffoldForm,disabledRendererPlugin:n.disabledRendererPlugin,isBaseComponent:n.isBaseComponent,rendererName:n.rendererName}})):n.name&&n.description?{searchKeywords:n.searchKeywords,name:n.name,icon:n.icon,description:n.description,previewSchema:n.previewSchema,tags:n.tags,docLink:n.docLink,type:n.type,scaffold:n.scaffold,scaffoldForm:n.scaffoldForm,disabledRendererPlugin:n.disabledRendererPlugin,isBaseComponent:n.isBaseComponent,pluginIcon:n.pluginIcon,rendererName:n.rendererName}:void 0}}),Object.defineProperty(e.prototype,"renderPlaceholder",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return $.createElement("div",{key:t,className:"wrapper-sm b-a b-light m-b-sm",style:r,children:$.createElement("span",{className:"text-muted",children:e})})}}),Object.defineProperty(e.prototype,"getPlugin",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return ye(this.manager.plugins,(function(t){return"string"==typeof e?t.rendererName===e:t instanceof e}))}}),e}(),er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"onActive",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=e.context;if((null===(t=r.info)||void 0===t?void 0:t.plugin)===this&&r.node){var n=r.node,a=n.schema||{};a.isFixedWidth&&n.setWidthMutable(!0),a.isFixedHeight&&n.setHeightMutable(!0)}}}),Object.defineProperty(t.prototype,"onWidthChangeStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.onSizeChangeStart(e,"horizontal")}}),Object.defineProperty(t.prototype,"onHeightChangeStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.onSizeChangeStart(e,"vertical")}}),Object.defineProperty(t.prototype,"onSizeChangeStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;void 0===t&&(t="both");var n=e.context,a=n.node,i=n.store;if((null===(r=a.info)||void 0===r?void 0:r.plugin)===this){var o=n.resizer,l=n.dom,c=i.getDoc()||document,d=l.parentElement.getBoundingClientRect(),s=l.getBoundingClientRect(),u=n.nativeEvent.pageX,f=n.nativeEvent.pageY;e.setData({onMove:function(e){var r=e.pageY-f,n=e.pageX-u,i=Math.max(50,s.height+r),l=Math.max(100,Math.min(s.width+n,d.width)),p={width:l,height:i},b=c.querySelector("[data-hlbox-id='".concat(a.id,"']")),h=c.querySelector("[data-editor-id='".concat(a.id,"']"));"both"===t?(o.setAttribute("data-value","".concat(l,"px x ").concat(i,"px")),b.style.height="".concat(i,"px"),b.style.width="".concat(l,"px"),h.style.height="".concat(i,"px"),h.style.width="".concat(l,"px")):"vertical"===t?(o.setAttribute("data-value","".concat(i,"px")),b.style.height="".concat(i,"px"),h.style.height="".concat(i,"px"),delete p.width):(o.setAttribute("data-value","".concat(l,"px")),b.style.width="".concat(l,"px"),h.style.width="".concat(l,"px"),delete p.height),a.updateState(p),requestAnimationFrame((function(){a.calculateHighlightBox()}))},onEnd:function(e){var r=e.pageY-f,n=e.pageX-u,i=Math.max(50,s.height+r),l={width:Math.max(100,Math.min(s.width+n,d.width)),height:i};"vertical"===t?delete l.width:"horizontal"===t&&delete l.height,o.removeAttribute("data-value"),a.updateSchemaStyle(l),requestAnimationFrame((function(){a.calculateHighlightBox()}))}})}}}),t}(Qt),tr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"ref",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return A(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.markDom(this.props.$$editor.id),this.props.$$node&&requestAnimationFrame((function(){}))}}),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.markDom(this.props.$$editor.id)}}),Object.defineProperty(t.prototype,"getWrappedInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.ref}}),Object.defineProperty(t.prototype,"refFn",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.ref=e}}),Object.defineProperty(t.prototype,"markDom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n=this,a=de(this);if(a&&e){var i=this.props.$$editor,o=!1!==this.props.$$visible&&!0!==this.props.$$hidden,l=i.wrapperResolve?i.wrapperResolve(a):a;(Array.isArray(l)?l:l?[l]:[]).forEach((function(t){t.setAttribute("data-editor-id",e),t.setAttribute("name",n.props.id),t.setAttribute("data-visible",o?"":"false"),t.setAttribute("data-hide-text",o?"":k("392342f7750a565f9a79c678c6b12421"))})),null===(r=null===(t=i.plugin)||void 0===t?void 0:t.markDom)||void 0===r||r.call(t,l,this.props)}}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.$$editor,r=e.$$node,n=e.store,a=B(e,["$$editor","$$node","store"]),i=t.renderer;return t.filterProps&&(a=t.filterProps.call(t.plugin,a,r)),t.renderRenderer?t.renderRenderer.call(t.plugin,F(F(F(F(F(F({},a),{store:n}),null==r?void 0:r.state),{$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):$.createElement(i.component,F({},a,{store:n},null==r?void 0:r.state,{$$editor:t},t.wrapperProps,{ref:this.refFn}))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"refFn",null),t=M([ce],t)}($.Component),rr=fe.model("EditorNode",{parentId:"",parentRegion:"",isCommonConfig:!1,id:"",type:"",label:"",regionInfo:fe.maybe(fe.frozen()),path:"",schemaPath:"",region:"",preferTag:"",state:fe.optional(fe.frozen(),{}),widthMutable:!1,heightMutable:!1,memberIndex:-1,folded:!1,patched:!1,x:0,y:0,w:0,h:0,children:fe.optional(fe.array(fe.late((function(){return rr}))),[])}).volatile((function(){return{getData:fe.frozen()}})).views((function(e){var t,r;return{get info(){return t},setInfo:function(e){t=e},get rendererConfig(){return r},setRendererConfig:function(e){r=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,r;return!!(!0===(null===(t=this.info)||void 0===t?void 0:t.memberImmutable)||Array.isArray(null===(r=this.info)||void 0===r?void 0:r.memberImmutable)&&~this.info.memberImmutable.indexOf(e))},get isRegion(){return!!e.region},get childRegions(){var e,t,r=this.uniqueChildren.filter((function(e,t,r){return e.isRegion}));if(null===(e=this.info)||void 0===e?void 0:e.multifactor){var n=this.sameIdChild;null===(t=null==n?void 0:n.childRegions)||void 0===t||t.forEach((function(e){return r.push(e)}))}return r},get uniqueChildren(){var t=e.children.filter((function(e,t,r){return r.findIndex((function(t){return e.isRegion?t.id===e.id&&t.region===e.region:t.id===e.id}))===t}));if(Array.isArray(this.schema)){var r=this.schema;t=t.sort((function(e,t){return Ee(r,(function(t){return(null==t?void 0:t.$$id)===e.id}))-Ee(r,(function(e){return(null==e?void 0:e.$$id)===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=pe(e,2);return"root"!==(null==t?void 0:t.id)?t:null}catch(e){return null}},get ancestorField(){var t,r,n,a,i=pe(e,4);if("root"===(null==i?void 0:i.id))return null;var o=null!==(r=null===(t=null==i?void 0:i.getComponent())||void 0===t?void 0:t.props)&&void 0!==r?r:{},l=null!==(n=null==o?void 0:o.body)&&void 0!==n?n:[],c=Object.keys(null!==(a=null==o?void 0:o.data)&&void 0!==a?a:{});return Oe(T(T([],l.map((function(e){var t;return null!==(t=null==e?void 0:e.name)&&void 0!==t?t:""})),!0),c,!0))},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 r=t.children[0];r;){if(!r.isRegion&&r.id!==t.id)return r;r=r.children.length?r.children[0]:null}return null},get index(){return this.parent.uniqueChildren.indexOf(e)},get prevSibling(){for(var t=this.parent.uniqueChildren,r=t.indexOf(e)-1;r>=0&&t[r];){if(t[r].id!==e.id)return t[r];r--}return null},get nextSibling(){for(var t=this.parent.uniqueChildren,r=t.length,n=t.indexOf(e)+1;n<r&&t[n];){if(t[n].id!==e.id)return t[n];n++}return null},get schema(){if(!be(e))return null;var t=he(e).getSchema(e.id);return this.isRegion&&t?t[e.region]:t},get schemaParent(){var t=he(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,r){var n=!1,a={};if(e)return r.forEach((function(r){var i=r.split(".");r=i.shift();var o=e[r];if("string"==typeof o)return n=!0,void(a[r]=[Je({type:"tpl",tpl:o,wrapperComponent:"",inline:!1})]);if(Array.isArray(o)){var l=!1,c=o.map((function(e){if("string"==typeof e&&e)return l=!0,Je({type:"tpl",tpl:e,wrapperComponent:"",inline:!1});if(i.length){var r=t(e,[i.join(".")]);r!==e&&(l=!0,e=r)}return e}));l&&(n=!0,a[r]=c)}else o&&(a[r]=[Je(o)],n=!0)})),n&&(e=F(F({},e),a)),e}function r(t){var r=Array.isArray(t)?t:t?[t]:[];if(r.length){var n=he(e).getIframe(),a=he(e).getLayer().getBoundingClientRect(),i=function(e){for(var t=e.concat(),r=t.shift(),n=r.getBoundingClientRect(),a={left:n.left,top:n.top,width:n.width,height:n.height,right:n.right,bottom:n.bottom},i=r.parentElement.closest(".ae-Preview-inner,[data-region]");t.length;){var o=t.shift(),l=o.getBoundingClientRect(),c=o.parentElement.closest(".ae-Preview-inner,[data-region],[data-editor-id]");if(!i&&c)i=c;else if(c&&i&&c!==i)continue;a.left=Math.min(a.left,l.left),a.top=Math.min(a.top,l.top),a.right=Math.max(a.right,l.right),a.bottom=Math.max(a.bottom,l.bottom),a.width=a.right-a.left,a.height=a.bottom-a.top}return a}(r),o={left:i.left-a.left,top:i.top-a.top};if(n){var l=n.getBoundingClientRect();o.left+=l.left,o.top+=l.top}var c=i.height;c&&(e.x=o.left+0,e.y=o.top+0,e.w=i.width,e.h=c)}}var n;return{getClosestParentByType:function(t){for(var r=e;r===r.parent;){if(r.schema.type===t)return r;if("root"===r.id)return}},updateIsCommonConfig:function(t){e.isCommonConfig=!!t},addChild:function(t){e.children.push(F(F({},t),{parentId:e.id,parentRegion:e.region}));var r=e.children[e.children.length-1];return r.setInfo(t.info),r},removeChild:function(t){var r=e.children.findIndex((function(e){return e===t}));e.children.splice(r,1)},toggleFold:function(t){t.stopPropagation(),t.preventDefault(),e.folded=!e.folded},patch:function(r,n){if(void 0===n&&(n=!1),!e.patched||n){e.patched=!0;var i=r,o=e.info;if(!1!==o.editable){var l=i.getSchema(o.id),c=l;(null==c?void 0:c.id)||(c=F(F({},c),{id:"u:"+He()})),(Array.isArray(o.regions)&&o.regions.length||Array.isArray(o.patchContainers))&&(c=t(c,o.patchContainers||o.regions.map((function(e){return e.key})))),(c=Je(c=a(c,{component:o.renderer.component})))!==l&&i.changeValueById(o.id,c,void 0,!0,!0)}}},updateSchema:function(t){var r=e.info;if(!1!==r.editable){var n=he(e),a=n.getSchema(r.id);a=F(F({},a),t),n.changeValueById(r.id,a)}},updateSchemaStyle:function(t){var r=e.info;if(!1!==r.editable){var n=he(e),a=n.getSchema(r.id);a=F(F({},a),{style:F(F({},a.style),t)}),n.changeValueById(r.id,a)}},setComponent:function(e){n=e},getComponent:function(){return n},calculateHighlightBox:function(t){var n;if(void 0===t&&(t=he(e)),t.calculateStarted){var a=he(e).getDoc();if(e.isRegion){r(i=a.querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))}else{var i=[].slice.call(a.querySelectorAll('[data-editor-id="'.concat(e.id,'"]')));r("button"===(null===(n=e.info)||void 0===n?void 0:n.renderer.name)?null==i?void 0:i[0]:i),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,r){void 0===r&&(r=!1),e.state=F(F({},r?null:e.state),t)},setWidthMutable:function(t){e.widthMutable=!!t},setHeightMutable:function(t){e.heightMutable=!!t}}})),nr=$.createContext(null),ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"parentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"editorNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return A(t,e),Object.defineProperty(t.prototype,"UNSAFE_componentWillMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.parentNode=this.context;var e=this.props,t=e.$$editor,r=e.manager;if(!this.parentNode&&t&&t.id){var n=r.store.getNodeById(t.id);n&&(this.parentNode=n)}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}))}}),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)}}),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.editorNode&&be(this.editorNode)&&this.parentNode&&this.parentNode.removeChild(this.editorNode)}}),Object.defineProperty(t.prototype,"markDom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=de(this);if(n){var a=this.props.wrapperResolve,i=a?a(n):n.parentElement;i.setAttribute("data-region",t),i.setAttribute("data-region-host",e),r&&i.setAttribute("data-renderer",r)}}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e="wrapper"===this.props.rendererName||"container"===this.props.rendererName,t=!1;return Zt(this.props)&&(t=!0),$.createElement(nr.Provider,{value:this.editorNode},this.props.children,$.createElement("span",{className:"ae-Region-placeholder ".concat(e?"layout-content":""," ").concat(t?"fill-placeholder":"")},this.props.placeholder||this.props.label))}}),Object.defineProperty(t,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nr}),t}($.Component),ir=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"ref",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return A(t,e),Object.defineProperty(t.prototype,"getWrappedInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.ref}}),Object.defineProperty(t.prototype,"refFn",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.ref=e}}),Object.defineProperty(t.prototype,"renderChild",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=this.props,a=n.render,i=n.$$editor,o=n.$$node,l=a(e,t,r);if(null==o?void 0:o.memberImmutable(e))return l;var c=ye(i.regions,(function(t){return t.key===e&&!t.matchRegion&&!t.renderMethod}));if(c){var d=c.wrapper||ar;return $.createElement(d,{key:null==r?void 0:r.key,preferTag:c.preferTag,name:c.key,label:c.label,placeholder:c.placeholder,regionConfig:c,editorStore:i.plugin.manager.store,wrapperResolve:c.wrapperResolve,manager:i.plugin.manager,children:l,rendererName:i.renderer.name,$$editor:i,node:o})}return l}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.$$editor,r=e.$$node,n=B(e,["$$editor","$$node"]),a={},i=t.plugin.manager.store;return t.id&&(i.isActive(t.id)||i.dropId===t.id)&&Array.isArray(t.regions)&&t.regions.forEach((function(e){var t=e.key;if(!e.optional&&!(null==r?void 0:r.memberImmutable(t))){var i=[];"actions"!==t||void 0!==n.submitText&&!n.submitText||(i=[{type:"submit",label:n.submitText||k("939d5345ad4345dbaabe14798f6ac0f1"),primary:!0}]);var o=Array.isArray(n[t])?n[t].concat():n[t]?[n[t]]:i;o.length||o.push({children:function(){return null}}),a[t]=o}})),$.createElement(tr,F({},n,a,{$$editor:t,$$node:r,render:this.renderChild,ref:this.refFn}))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"refFn",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String,Object,Object]),D("design:returntype",void 0)],t.prototype,"renderChild",null),t=M([ce],t)}($.Component),or=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=de(this);if(e){var t=this.props.$$editor,r=t.wrapperResolve?t.wrapperResolve(e):e;(Array.isArray(r)?r:r?[r]:[]).forEach((function(e){e.classList.remove("ae-Editor-common-config")}))}}}),Object.defineProperty(t.prototype,"markDom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=de(this);if(t&&e){var r=this.props.$$editor,n=r.wrapperResolve?r.wrapperResolve(t):t;this.props.$$commonSchema&&(Array.isArray(n)?n:n?[n]:[]).forEach((function(t){t.setAttribute("data-editor-id",e),t.classList.add("ae-Editor-common-config")}))}}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.$$editor,r=e.$$node,n=e.$schema,a=e.store,i=B(e,["$$editor","$$node","$schema","store"]),o=t.renderer;return i=Ge(i),t.filterProps&&(i=t.filterProps.call(t.plugin,i,r)),t.renderRenderer?t.renderRenderer.call(t.plugin,F(F(F(F({},i),{store:a,$schema:n,$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):$.createElement(o.component,F({},i,{store:a,$schema:n,$$editor:t},t.wrapperProps,{ref:this.refFn}))}}),t}(tr);function lr(e){var t,r=this,n=e.propKey,a=e.body,o=e.definitions,l=e.controls,c=e.onChange,d=e.value,s=e.env,u=e.api,f=e.popOverContainer,p=e.submitOnChange,b=e.node,h=e.manager,v=e.justify,m=e.ctx,g=e.pipeIn,y=e.pipeOut,w="body";Array.isArray(l)&&(a=l,w="controls"),a=Array.isArray(a)?a.concat():[],!1===p&&a.push({type:"submit",label:k("be5fbbe34ce9979bfb6576d9eddc5612"),level:"primary",block:!0,className:"ae-Settings-actions"});var O=((t={key:n,definitions:o})[w]=a,t.className=_("config-form-content","ae-Settings-content","hoverShowScrollBar",!1===p?"with-actions":""),t.wrapperComponent="div",t.type="form",t.title="",t.mode="normal",t.api=u,t.wrapWithPanel=!1,t.submitOnChange=!1!==p,t.messages={validateFailed:""},t);v&&(O.mode="horizontal",O.horizontal={left:4,right:8,justify:!0});var E=g?g(d):d;return i(O,{onFinished:function(e){return H(r,void 0,void 0,(function(){var t,r;return z(this,(function(n){switch(n.label){case 0:return y?[4,y(e)]:[3,2];case 1:return t=n.sent(),[3,3];case 2:t=e,n.label=3;case 3:return r=Nt(d,e=t),c(e,r),[2]}}))}))},data:m?X(m,E):E,node:b,manager:h,popOverContainer:f},F({},Ce(s,"replaceText")))}function cr(e,t,r){for(var n=e.Renderer;n.ComposedComponent;)n=n.ComposedComponent;var a=n.prototype;if(Array.isArray(t)){var i=we(t,(function(e){return e.renderMethod}));Object.keys(i).forEach((function(e){var t;if(!a["__".concat(e)]&&a[e]){var r,n,o=i[e],l=null===(t=o[0])||void 0===t?void 0:t.renderMethodOverride;a["__".concat(e)]=a[e],a[e]=(r=a["__".concat(e)],n=(null==l?void 0:l(o.concat(),dr))||function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.props.$$editor,n=this.super.apply(this,e);return r&&!this.props.$$commonSchema&&Array.isArray(r.regions)&&o.every((function(e){return ye(r.regions,(function(t){return t.key===e.key}))}))?dr(this,n,o.map((function(e){var t=ye(r.regions,(function(t){return t.key===e.key&&(!e.rendererName||e.rendererName===t.rendererName)}));return t?F(F({},e),{label:t.label,preferTag:t.preferTag}):e})),r,r.plugin.manager):n},"function"!=typeof r?r:function(){var e=this.super;this.super=r.bind(this);var t=n.apply(this,arguments);return this.super=e,t})}}))}else r&&Object.keys(r).forEach((function(e){var t,n;a["__".concat(e)]||"function"!=typeof a[e]||(a["__".concat(e)]=a[e],a[e]=(t=a["__".concat(e)],n=r[e],"function"!=typeof t?t:function(){var e=this.super;this.super=t.bind(this);var r=n.apply(this,arguments);return this.super=e,r}))}))}function dr(e,t,r,n,a){if(!0===n.memberImmutable)return t;if(Array.isArray(n.memberImmutable)&&r.every((function(e){return n.memberImmutable.includes(e.key)})))return t;var i=ye(r,(function(e){return!e.matchRegion}));if(i){var o=i.wrapper||ar;return"inner"===i.insertPosition&&$.isValidElement(t)?$.cloneElement(t,{children:$.createElement(o,{key:i.key,preferTag:i.preferTag,name:i.key,label:i.label,placeholder:i.placeholder,regionConfig:i,editorStore:a.store,manager:a,children:t.props.children,wrapperResolve:i.wrapperResolve,rendererName:n.renderer.name})}):$.createElement(o,{key:i.key,preferTag:i.preferTag,name:i.key,label:i.label,placeholder:i.placeholder,regionConfig:i,editorStore:a.store,manager:a,children:t,wrapperResolve:i.wrapperResolve,rendererName:n.renderer.name})}if(r.length){var l=function(e,t,r){var n=-1,a=void 0;return r.some((function(r,i){return!!r.matchRegion(t,e)&&(n=i,a=r,!0)})),[a,n]}(e,t,r),c=l[0],d=l[1];if(c){o=c.wrapper||ar;if(r.splice(d,1),"outter"===c.insertPosition)return $.createElement(o,{key:c.key,preferTag:c.preferTag,name:c.key,label:c.label,placeholder:c.placeholder,regionConfig:c,editorStore:a.store,manager:a,children:t,wrapperResolve:c.wrapperResolve});if($.isValidElement(t)){var s=t.props.children;return $.cloneElement(t,{children:$.createElement(o,{key:c.key,preferTag:c.preferTag,name:c.key,label:c.label,placeholder:c.placeholder,regionConfig:c,editorStore:a.store,manager:a,children:s,wrapperResolve:c.wrapperResolve})})}}else if($.isValidElement(t)&&t.props.children){s=t.props.children;return s=Array.isArray(s)?s.map((function(t){return dr(e,t,r,n,a)})):dr(e,s,r,n,a),$.cloneElement(t,{children:s})}}return t}function sr(e,t,r){if(!$.isValidElement(e))return e;var n=t(e,r);if(n===e&&e.props.children){var a=e.props.children;if(Array.isArray(a)){var i=[],o=!1;a.forEach((function(e,r){var n=sr(e,t,r);n!==e&&(o=!0,$.isValidElement(n)&&!n.key&&(n=$.cloneElement(n,{key:r}))),i.push(n)})),o&&(n=$.cloneElement(n,{children:i}))}else{var l=sr(a,t,r);l!==a&&(n=$.cloneElement(n,{children:l}))}}return n}var ur=document.createElement("div");var fr={updateLocation:function(){},jumpTo:function(){o.info(k("245897371cda2055f5c17c6cf298ed48"))},fetcher:function(e){var t=e.url,r=e.method,n=e.data,a=e.config;return H(void 0,void 0,void 0,(function(){var e;return z(this,(function(i){switch(i.label){case 0:return(a=a||{}).url=t,a.withCredentials=!0,a.cancelExecutor&&(a.cancelToken=new Se.CancelToken(a.cancelExecutor)),a.headers=a.headers||{},a.method=r,a.data=n,"get"===r&&n?a.params=n:n&&n instanceof FormData||!n||"string"==typeof n||n instanceof Blob||n instanceof ArrayBuffer||(n=JSON.stringify(n),a.headers["Content-Type"]="application/json"),[4,Se(a)];case 1:return e=i.sent(),[4,J(e,(function(e){return""}))];case 2:return[2,e=i.sent()]}}))}))},isCancel:function(e){return Se.isCancel(e)},alert:l,confirm:c,notify:function(e,t){o[e]?o[e](t,k("error"===e?"a71002967924a83e32b38a80705290fb":"058ebdf2884474ebff2977ba2f0e275e")):console.warn("[Notify]",e,t)}},pr=function(){function e(e,t){Object.defineProperty(this,"dnd",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"region",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"dndContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dropBeforeId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exchangeX",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"exchangeY",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.dndContainer=this.dnd.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]'))}return Object.defineProperty(e.prototype,"enter",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this.dnd.dragElement;if(r&&r.closest("[data-region]")===this.dndContainer){var n=Array.isArray(this.region.schema)?this.region.schema:[],a=this.getChild(this.dndContainer,r),o=r.getAttribute("data-editor-id"),l=Ee(n,(function(e){return e.$$id===o}));~l&&n[l+1]&&(this.dropBeforeId=n[l+1].$$id),this.dndContainer.insertBefore(t,a);var c=r.outerHTML.replace("ae-is-draging","").replace(/\bdata\-editor\-id=(?:'.+?'|".+?")/g,"");t.innerHTML=c}else{var d=this.dnd.manager,s=d.store;!function(e,t,r,n){e.innerHTML="";var a=t.host.getComponent(),o=(null==a?void 0:a.renderControl)&&"body"===t.region;try{se(i({children:function(e){var n=e.render;return o?n("",{type:"form",wrapWithPanel:!1,mode:a.props.mode,body:[r]}):n(t.region,r)}},{},F(F({},n.env),{theme:(null==a?void 0:a.props.theme)||n.env.theme,session:"ghost-thumb"}),""),ur)}catch(e){}var l=ur.innerHTML||k("f942c7a6a35c4eb1381d2966462d0489");e.innerHTML=l,ue(ur),ur.innerHTML=""}(t,this.region,Ut(s.dragSchema),d),this.dndContainer.appendChild(t)}}}),Object.defineProperty(e.prototype,"leave",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.dndContainer.removeChild(t)}}),Object.defineProperty(e.prototype,"over",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n,a=this.getTarget(e),i=this.dndContainer,o=this.region.schema,l=Array.isArray(o)?o:[],c=e.clientX-this.exchangeX,s=e.clientY-this.exchangeY;if(a&&!d.animating){var u=a.getAttribute("data-editor-id"),f=this.getChild(i,a),p=Ee(l,(function(e){return e.$$id===u})),b=Array.prototype.indexOf.call(i.children,t),h=Array.prototype.indexOf.call(i.children,f);~b&&b>h&&(!this.exchangeY||s<0||c<0)?(this.exchangeX=e.clientX,this.exchangeY=e.clientY,this.dropBeforeId=null===(r=l[p])||void 0===r?void 0:r.$$id,b!==h-1&&(d.capture(i),i.insertBefore(t,f),d.animateAll())):~b&&b<h&&(!this.exchangeY||s>0||c>0)&&(this.exchangeX=e.clientX,this.exchangeY=e.clientY,l[p+1]?this.dropBeforeId=null===(n=l[p+1])||void 0===n?void 0:n.$$id:delete this.dropBeforeId,b!==h+1&&(d.capture(i),i.insertBefore(t,f.nextSibling),d.animateAll()))}t.parentNode!==i&&(delete this.dropBeforeId,d.capture(i),i.appendChild(t),d.animateAll())}}),Object.defineProperty(e.prototype,"getDropBeforeId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.dropBeforeId}}),Object.defineProperty(e.prototype,"getTarget",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r,n=e.target.closest("[data-editor-id]");n;){if((null===(t=n.parentElement)||void 0===t?void 0:t.closest("[data-region]"))===this.dndContainer)return"grid"===n.getAttribute("data-renderer")?n.parentElement:n;n=(null===(r=n.parentElement)||void 0===r?void 0:r.closest("[data-editor-id]"))||null}return null}}),Object.defineProperty(e.prototype,"getChild",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(var r=t;r&&r.parentElement!==e;)r=r.parentElement;return r}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){delete this.dropBeforeId}}),e}(),br=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"enter",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){t.innerHTML="",t.classList.add("use-position"),t.classList.add("is-horizontal");var r=this.dnd.dragElement,n=this.dndContainer.getBoundingClientRect(),a=Array.isArray(this.region.schema)?this.region.schema:[];if(r&&r.closest("[data-region]")===this.dndContainer){var i=r.getAttribute("data-editor-id"),o=Ee(a,(function(e){return e.$$id===i}));if(~o&&a[o+1]&&(this.dropBeforeId=a[o+1].$$id),r.nextElementSibling){var l=r.nextElementSibling.getBoundingClientRect();t.style.cssText+="top: 0; left: ".concat(l.x-n.x,"px;")}else t.style.cssText+="top: 0; left: 100%;"}else t.style.cssText+="top: 0; left: -999999%;";this.dndContainer.appendChild(t)}}),Object.defineProperty(t.prototype,"leave",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){t.classList.remove("use-position"),t.classList.remove("is-horizontal")}}),Object.defineProperty(t.prototype,"over",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n,a=this.getTarget(e);if(a){if("table"===(null===(r=this.dndContainer)||void 0===r?void 0:r.getAttribute("data-renderer"))){var i=null===(n=a.parentElement)||void 0===n?void 0:n.closest("th[data-editor-id], td[data-editor-id]");i&&this.dndContainer.contains(i)&&(a=i)}var o=this.dndContainer.getBoundingClientRect();!Array.isArray(this.region.schema)||this.region.schema;var l=a.getBoundingClientRect();a.nextElementSibling&&a.nextElementSibling.hasAttribute("data-editor-id")?(t.style.cssText+="left: ".concat(l.x-o.x,"px;"),this.dropBeforeId=a.getAttribute("data-editor-id")):e.clientX>l.x+l.width/2?(t.style.cssText+="top: 0; left: ".concat(l.right-o.x,"px;"),delete this.dropBeforeId):(t.style.cssText+="left: ".concat(l.x-o.x,"px;"),this.dropBeforeId=a.getAttribute("data-editor-id"))}}}),t}(pr),hr=je((function(e){o.warning(e)}),500),vr=function(){function e(e,t){Object.defineProperty(this,"manager",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"toDispose",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"dndMode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dragGhost",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dragEnterCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"dragElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dragImage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastX",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"lastY",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"lastMoveAt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"curDragId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startX",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"startY",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.toDispose.push(It((function(){return"schema"===t.dragType?t.dragId:""}),this.updateDragElements),It((function(){return{id:t.dropId,region:t.dropRegion}}),this.updateDropRegion),It((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 Object.defineProperty(e.prototype,"createDragImage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=document.createElement("div");return r.classList.add("ae-DragImage"),r.innerHTML="<span>".concat((null==t?void 0:t.label)||e,"</span>"),document.body.appendChild(r),this.dragImage=r,r}}),Object.defineProperty(e.prototype,"disposeDragImage",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=this.dragImage;null===(e=null==t?void 0:t.parentElement)||void 0===e||e.removeChild(t),delete this.dragImage}}),Object.defineProperty(e.prototype,"switchToRegion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n,a,i,o,l,c=this.store;if(!t||!r||c.dropId===t&&c.dropRegion===r)return!1;var d=c.getNodeById(t,r),s=d.regionInfo,u=c.dragSchema;if(!1===(null===(n=null==s?void 0:s.accept)||void 0===n?void 0:n.call(s,u))||(null===(a=d.host)||void 0===a?void 0:a.memberImmutable(r)))return!1;var f={mode:c.dragMode,sourceType:c.dragType,sourceId:c.dragId,data:c.dragSchema,targetId:t,targetRegion:r};return!this.manager.trigger("dnd-accept",f).prevented&&(null===(i=this.dndMode)||void 0===i||i.leave(e,this.dragGhost),null===(o=this.dndMode)||void 0===o||o.dispose(),c.setDropId(t,r),this.makeDNDModeInstance(d),null===(l=this.dndMode)||void 0===l||l.enter(e,this.dragGhost),!0)}}),Object.defineProperty(e.prototype,"makeDNDModeInstance",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;if(!e||!be(e))return this.dndMode||null;var r=null===(t=e.regionInfo)||void 0===t?void 0:t.dndMode,n=pr;return"position-h"===r&&(n=br),this.dndMode=new n(this,e),this.dndMode}}),Object.defineProperty(e.prototype,"startDrag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n=this,a=this.store.getNodeById(e),i=this.store.getDoc().querySelector('[data-editor-id="'.concat(e,'"]'));if(a&&i){if(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=i,t.dataTransfer.effectAllowed="move",t.dataTransfer.setDragImage(this.createDragImage(e,a),0,0),t.dataTransfer.setData("dnd/ae-node-".concat(e).toLowerCase(),""),null===(r=t.target)||void 0===r||r.addEventListener("dragend",this.dragEnd),setTimeout((function(){n.store.setDragId(e);var r=a.parent;n.switchToRegion(t,r.id,r.region)}),4)}else t.preventDefault()}}),Object.defineProperty(e.prototype,"dragEnter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this.store;this.dragEnterCount++;var n,a=r.activeId;if(this.curDragId&&this.manager.draggableContainer(this.curDragId)){if(n=r.getNodeById(a)){var i=n.parentId?r.getNodeById(n.parentId):void 0;(null===(t=null==i?void 0:i.schema)||void 0===t?void 0:t.isFreeContainer)&&r.setDropId(n.parentId,"body")}}else if(a)if(n=r.getNodeById(a)){if(!r.dragId&&1===this.dragEnterCount)for(var o=e.dataTransfer.types,l=function(t){if(/^dnd-dom\/(.*)$/.test(o[t])){var n=RegExp.$1,a=document.querySelector(n);if(a){a.addEventListener("dragend",c.dragEnd);var i=a.getAttribute("data-dnd-id"),l=a.getAttribute("data-dnd-type"),d=a.getAttribute("data-dnd-data"),s=d?JSON.parse(d):{type:"tpl",tpl:"Unknown"};r.setDragId(i,"copy",l,s);var u=r.activeContainerId;if(u){var f=r.getNodeById(u);if(null==f?void 0:f.childRegions.length){var p=0;f.childRegions.forEach((function(e,t){e.region&&(p=t)})),c.switchToRegion(e,f.id,f.childRegions[p].region)}}return"break"}}},c=this,d=o.length-1;d>=0;d--){if("break"===l(d))break}}else hr(k("0e24e1bbc19612a350f81296d9fb7802"));else hr(k("0e24e1bbc19612a350f81296d9fb7802"))}}),Object.defineProperty(e.prototype,"dragOver",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this.store,n=e.target;e.preventDefault();var a=e.clientX-this.lastX,i=e.clientY-this.lastY,o=Math.max(Math.abs(a),Math.abs(i)),l=Date.now(),c=n.closest("[data-region][data-region-host]"),d=null==c?void 0:c.getAttribute("data-region-host"),s=null==c?void 0:c.getAttribute("data-region");if(o>0&&this.curDragId&&this.manager.draggableContainer(this.curDragId)){var u=r.getDoc(),f=u.querySelector("[data-hlbox-id='".concat(this.curDragId,"']")),p=(f.style.inset||"auto").split(" "),b={top:f.style.top||p[0]||"auto",right:f.style.right||p[1]||"auto",bottom:f.style.bottom||p[2]||p[0]||"auto",left:f.style.left||p[3]||p[1]||"auto"};f.style.inset="".concat("auto"!==b.top?$t(b.top,i):"auto"," ").concat("auto"!==b.right?$t(b.right,-a):"auto"," ").concat("auto"!==b.bottom?$t(b.bottom,-i):"auto"," ").concat("auto"!==b.left?$t(b.left,a):"auto");var h=u.querySelector("[data-editor-id='".concat(this.curDragId,"']")),v=(h.style.inset||"auto").split(" "),m={top:v[0]||"auto",right:v[1]||"auto",bottom:v[2]||v[0]||"auto",left:v[3]||v[1]||"auto"};return h.style.inset="".concat("auto"!==m.top?$t(m.top,i):"auto"," ").concat("auto"!==m.right?$t(m.right,-a):"auto"," ").concat("auto"!==m.bottom?$t(m.bottom,-i):"auto"," ").concat("auto"!==m.left?$t(m.left,a):"auto"),this.lastX=e.clientX,void(this.lastY=e.clientY)}if(r.dropId&&n)if(o<5){if(!c||d===r.dropId)return;l-this.lastMoveAt>200&&s&&d&&this.switchToRegion(e,d,s)}else r.setPlanDropId("",""),this.lastMoveAt=l,this.lastX=e.clientX,this.lastY=e.clientY,r.dropId===d&&s&&s!==r.dropRegion&&this.switchToRegion(e,r.dropId,s),null===(t=this.dndMode)||void 0===t||t.over(e,this.dragGhost)}}),Object.defineProperty(e.prototype,"drop",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;return H(this,void 0,void 0,(function(){var r,n,a,i,o,l,c,d;return z(this,(function(s){switch(s.label){case 0:return r=this.store,this.curDragId&&this.manager.draggableContainer(this.curDragId)?(n=e.clientX-this.startX,a=e.clientY-this.startY,this.manager.updateContainerStyleByDrag(this.curDragId,n,a),this.curDragId="",this.store.setDropId(""),[2]):r.dropId?(i=null===(t=this.dndMode)||void 0===t?void 0:t.getDropBeforeId(),"move"!==r.dragMode?[3,1]:(this.manager.move(r.dropId,r.dropRegion,r.dragId,i),[3,4])):[2];case 1:return"copy"!==r.dragMode?[3,4]:(o=r.dragSchema,l=r.dropId,c=r.dropRegion,d=void 0,"subrenderer"!==r.dragType?[3,3]:(null==(d=ye(r.subRenderers,(function(e){return e.id===r.dragId})))?void 0:d.scaffoldForm)?[4,this.manager.scaffold(d.scaffoldForm,o)]:[3,3]);case 2:o=s.sent(),s.label=3;case 3:this.manager.addChild(l,c,o,i,d,{id:r.dragId,type:r.dragType,data:r.dragSchema}),s.label=4;case 4:return[2]}}))}))}}),Object.defineProperty(e.prototype,"dragLeave",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.dragEnterCount--}}),Object.defineProperty(e.prototype,"dragEnd",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r;null===(t=e.target)||void 0===t||t.removeEventListener("dragend",this.dragEnd),null===(r=this.dndMode)||void 0===r||r.leave(e,this.dragGhost),delete this.dndMode,this.dragGhost.innerHTML="",this.store.setDragId(""),this.store.setDropId(""),this.disposeDragImage(),this.dragEnterCount=0}}),Object.defineProperty(e.prototype,"updateDragElements",{enumerable:!1,configurable:!0,writable:!0,value: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")})))}}),Object.defineProperty(e.prototype,"updateDropRegion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n;this.store.dragId&&this.manager.draggableContainer(this.store.dragId)||((null==t?void 0:t.id)&&t.region&&(null===(r=this.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]')))||void 0===r||r.classList.remove("is-dragenter")),e.id&&e.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===n||n.classList.add("is-dragenter")))}}),Object.defineProperty(e.prototype,"updatePlanDropRegion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n;this.store.dragId&&this.manager.draggableContainer(this.store.dragId)||((null==t?void 0:t.id)&&t.region&&(null===(r=this.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]')))||void 0===r||r.classList.remove("is-entering")),e.id&&e.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===n||n.classList.add("is-entering")))}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.disposeDragImage(),this.toDispose.forEach((function(e){return e()})),this.toDispose=[]}}),M([Ct,D("design:type",Function),D("design:paramtypes",[DragEvent]),D("design:returntype",void 0)],e.prototype,"dragEnter",null),M([Ct,D("design:type",Function),D("design:paramtypes",[DragEvent]),D("design:returntype",void 0)],e.prototype,"dragOver",null),M([Ct,D("design:type",Function),D("design:paramtypes",[DragEvent]),D("design:returntype",Promise)],e.prototype,"drop",null),M([Ct,D("design:type",Function),D("design:paramtypes",[DragEvent]),D("design:returntype",void 0)],e.prototype,"dragLeave",null),M([Ct,D("design:type",Function),D("design:paramtypes",[DragEvent]),D("design:returntype",void 0)],e.prototype,"dragEnd",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],e.prototype,"updateDragElements",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object,Object]),D("design:returntype",void 0)],e.prototype,"updateDropRegion",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object,Object]),D("design:returntype",void 0)],e.prototype,"updatePlanDropRegion",null),e}(),mr=function(){function e(e,t,r){Object.defineProperty(this,"variables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataSchema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.variables=Array.isArray(t)?Re(Ne(t),[function(e){var t;return null!==(t=e.order)&&void 0!==t?t:1}]):[],this.dataSchema=e instanceof G?e:new G([]),this.options=Fe(r,["beforeScopeInsert","afterScopeInsert","onContextSchemaChange","onContextOptionChange"]),this.init()}return Object.defineProperty(e.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=this,r=this.variables,n=this.dataSchema,a=null!==(e=this.options)&&void 0!==e?e:{},i=a.beforeScopeInsert,o=a.afterScopeInsert;r.forEach((function(e){var r=e.parentId,a=e.name,l=e.title,c=e.schema;n.hasScope(r)&&(n.switchTo(r),n.hasScope(a)&&n.removeScope(a),i&&"function"==typeof i&&(c=i(t,c)),n.addScope(c,a),n.switchTo(a),n.current.tag=l,o&&"function"==typeof o&&o(t))})),n.switchToRoot()}}),Object.defineProperty(e.prototype,"getVariableContextSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,r=this,n=[],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&&(n=this.variables.map((function(e){if(r.dataSchema.hasScope(e.name)){var t=r.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&&(n=a(this,n)),n}}),Object.defineProperty(e.prototype,"getVariableFormulaOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n=this;void 0===e&&(e=!1);var a=(null!==(t=this.options)&&void 0!==t?t:{}).onContextOptionChange,i=[];return this.variables&&(null===(r=this.variables)||void 0===r?void 0:r.length)>0&&this.variables.forEach((function(e){if(n.dataSchema.hasScope(e.name)){var t=n.dataSchema.getScope(e.name),r=Q(t.getDataPropsAsOptions(),(function(e){return F(F({},e),{tag:e.type})}));t.tag?i.push({label:t.tag,children:r}):i.push.apply(i,r)}})),a&&"function"==typeof a&&(i=a(this,i,"formula")),ee(i,(function(e){"array"===e.type&&delete e.children})),e?i:ke(i)}}),Object.defineProperty(e.prototype,"getVariableOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,r,n,a=(null!==(e=this.options)&&void 0!==e?e:{}).onContextOptionChange,i=null!==(n=null===(r=null===(t=this.getVariableFormulaOptions(!1))||void 0===t?void 0:t[0])||void 0===r?void 0:r.children)&&void 0!==n?n:[];return i=Q(i,(function(e,t,r,n){return F(F({},e),{valueExpression:"string"!=typeof e.value||e.value.startsWith("${")?e.value:"${".concat(e.value,"}")})})),a&&"function"==typeof a&&(i=a(this,i,"normal")),i}}),Object.defineProperty(e.prototype,"getPageVariablesOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,r=[],n=null===(t=null===(e=this.dataSchema)||void 0===e?void 0:e.root.children)||void 0===t?void 0:t.filter((function(e){return e.tag===k("cc6aeb073ebc3cb29734a49164f8964c")}))[0];return n&&(r=n.getDataPropsAsOptions()),ee(r,(function(e){"array"===e.type&&delete e.children})),r}}),Object.defineProperty(e.prototype,"getNameByPath",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n,a;if(void 0===t&&(t="value"),void 0===r&&(r="label"),!e||"string"!=typeof e)return"";var i=T(T([],this.getVariableOptions(),!0),this.getPageVariablesOptions(),!0),o=te(i,(function(r){return r[null!=t?t:"value"]===e}));return o&&null!==(a=null!==(n=o[null!=r?r:"label"])&&void 0!==n?n:o[null!=t?t:"value"])&&void 0!==a?a:""}}),e}(),gr=[];function yr(){window.AMISEditorCustomPlugins&&Object.keys(window.AMISEditorCustomPlugins).forEach((function(e){var t=window.AMISEditorCustomPlugins[e];t&&wr(t)}))}function wr(e){(e.prototype&&e.prototype.isNpmCustomWidget?gr.find((function(t){return Array.isArray(t)?t[0].prototype.name===e.prototype.name:t.prototype.name===e.prototype.name})):gr.find((function(t){return t===e})))?console.warn("注册插件异常,已存在同名插件:",e):gr.push(e)}function Or(){return gr.concat()}function Er(e){var t=Ee(gr,(function(t){return Array.isArray(t)?t[0].id===e:t.id===e}));~t&&gr.splice(t,1)}var Pr=function(){function e(e,t,r){var n=this;Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"env",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"toDispose",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"dnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:He()}),Object.defineProperty(this,"disableHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clipboardData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"hackIn",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"amisStore",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"broadcasts",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pluginEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"pluginActions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"dataSchema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isInFrame",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"variableManager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"lazyPatchSchema",{enumerable:!0,configurable:!0,writable:!0,value:je(this.patchSchema.bind(this),250,{leading:!1,trailing:!0})}),Object.defineProperty(this,"patching",{enumerable:!0,configurable:!0,writable:!0,value:!1});var a=!!r;this.isInFrame=a,this.env=F(F(F({},fr),Ce(e.amisEnv,"replaceText")),{theme:e.theme}),this.env.beforeDispatchEvent=this.beforeDispatchEvent.bind(this,this.env.beforeDispatchEvent),this.hackIn=(null==r?void 0:r.hackIn)||cr,yr(),this.plugins=(null==r?void 0:r.plugins)||(e.disableBultinPlugin?[]:gr).concat(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,r={};Array.isArray(e)&&(r="function"==typeof e[1]?e[1]():e[1],e=e[0]);var a=new e(n,r);return a.order=null!==(t=a.order)&&void 0!==t?t:0,a.rendererName&&(n.pluginEvents[a.rendererName]=a.events||[],n.pluginActions[a.rendererName]=a.actions||[]),a})).sort((function(e,t){return e.order-t.order})),this.hackRenderers(),this.dnd=(null==r?void 0:r.dnd)||new vr(this,t),this.dataSchema=(null==r?void 0:r.dataSchema)||new s(e.schemas||[]),this.dataSchema.current.tag=k("979a50681e278dcc0be18f68459e8217"),this.variableManager=new mr(this.dataSchema,null==e?void 0:e.variables,null==e?void 0:e.variableOptions),a||this.toDispose.push(It((function(){return t.activeId}),(function(e,t){return H(n,void 0,void 0,(function(){return z(this,(function(r){switch(r.label){case 0:return this.store.insertId&&this.store.closeInsertPanel(),this.buildJSONSchemaUri(),this.buildToolbars(),[4,this.buildRenderers()];case 1:return r.sent(),this.buildPanels(),this.trigger("active",e?F(F({},this.buildEventContext(e)),{active:!0}):{id:t,active:!1}),[2]}}))}))})),U((function(){return t.selections.join(",")}),(function(){n.buildPanels()})),U((function(){return t.needPatch}),(function(e){e&&n.lazyPatchSchema()})),It((function(){return{id:t.hoverId,region:t.hoverRegion}}),(function(e,r){var n,a,i=t.getDoc();e.id&&e.region?null===(n=i.querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===n||n.classList.add("is-region-active"):(null==r?void 0:r.id)&&(null==r?void 0:r.region)&&(null===(a=i.querySelector('[data-region="'.concat(r.region,'"][data-region-host="').concat(r.id,'"]')))||void 0===a||a.classList.remove("is-region-active"))})))}return Object.defineProperty(e.prototype,"dynamicAddPlugin",{enumerable:!1,configurable:!0,writable:!0,value: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 r=gr.find((function(t){return t.prototype&&t.prototype.name===e}));if(!r&&window.AMISEditorCustomPlugins&&(r=window.AMISEditorCustomPlugins[e]),r){var n=new r(this);n.order=null!==(t=n.order)&&void 0!==t?t:0,this.plugins.push(n),this.plugins.sort((function(e,t){return e.order-t.order})),n.rendererName&&(this.pluginEvents[n.rendererName]=n.events||[],this.pluginActions[n.rendererName]=n.actions||[]),this.buildRenderers()}}}}),Object.defineProperty(e.prototype,"updateAMISContext",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e&&(this.amisStore=e)}}),Object.defineProperty(e.prototype,"buildRenderersAndPanels",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;setTimeout((function(){return H(e,void 0,void 0,(function(){var e,t;return z(this,(function(r){switch(r.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:r.sent(),this.buildPanels(e.schema.$$id),r.label=2;case 2:return[2]}}))}))}),200)}}),Object.defineProperty(e.prototype,"buildEventContext",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t="string"==typeof e?this.store.getNodeById(e):e,r=this.store.getSchema(t.id);return{node:t,id:t.id,info:t.info,path:t.path,schemaPath:t.schemaPath,schema:r,data:""}}}),Object.defineProperty(e.prototype,"buildJSONSchemaUri",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.store.activeId,t="";if(e){var r=this.buildEventContext(e),n=this.trigger("before-resolve-json-schema",r);if(t=n.context.data,!n.prevented){this.plugins.forEach((function(e){var n;if(!t){var a=null===(n=e.buildJSONSchema)||void 0===n?void 0:n.call(e,r);a&&(t=a)}})),r.data=t;var a=this.trigger("after-resolve-json-schema",r);t=a.data}}this.store.setJSONSchemaUri(t)}}),Object.defineProperty(e.prototype,"buildToolbars",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.store.activeId,t=[];if(e){var r=this.buildEventContext(e);this.plugins.forEach((function(e){var n,a=F({},r);null===(n=e.buildEditorToolbar)||void 0===n||n.call(e,a,t)})),this.trigger("build-toolbars",F(F({},r),{data:t}))}this.store.setActiveToolbars(t.map((function(e){return F(F({},e),{order:e.order||0,id:He()})})))}}),Object.defineProperty(e.prototype,"collectPanels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=this;void 0===t&&(t=!1),void 0===r&&(r=!1);var a=[];if(e){var i=F(F({},this.buildEventContext(e)),{secondFactor:r,data:a,selections:this.store.selections.map((function(e){return n.buildEventContext(e)}))});this.plugins.forEach((function(e){var t;null===(t=e.buildEditorPanel)||void 0===t||t.call(e,i,a)})),t&&this.trigger("build-panels",i),a=i.data||a,i.changeLeftPanelKey&&this.store.changeLeftPanelKey(i.changeLeftPanelKey)}return a}}),Object.defineProperty(e.prototype,"buildPanels",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n=e||this.store.activeId,a=[];if(!n&&(null===(t=this.store)||void 0===t?void 0:t.schema)&&(n=null===(r=this.store)||void 0===r?void 0:r.schema.$$id),n||this.store.selections.length){n=n||this.store.selections[0];var i=this.store.getNodeById(n);a=i?this.collectPanels(i,!0):a}this.store.setPanels(a.map((function(e){return F(F({},e),{order:e.order||0})})))}}),Object.defineProperty(e.prototype,"collectRenderers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n,a,i;return void 0===t&&(t=this.store.activeContainerId),H(this,void 0,void 0,(function(){var o,l,c,d,s,u,f,p,b,h,v,m,g;return z(this,(function(y){switch(y.label){case 0:if(o=[],!(l=t)&&(null===(r=this.store)||void 0===r?void 0:r.schema)&&(l=null===(n=this.store)||void 0===n?void 0:n.schema.$$id),!l)return[2,o];if(!(c=this.store.getNodeById(l)))return[2,o];d=this.store.getSchema(l),s={node:c,id:c.id,info:c.info,path:c.path,schemaPath:c.schemaPath,schema:d,region:e},u=[],f=function(e,t){var r,n;return z(this,(function(t){switch(t.label){case 0:return r=p.plugins[e],[4,null===(a=r.buildSubRenderers)||void 0===a?void 0:a.call(r,s,o,re())];case 1:return(n=t.sent())&&(Array.isArray(n)?n:[n]).forEach((function(e){return o.push(F(F({},e),{id:He(),plugin:r,parent:c.info,order:e.order||0}))})),r.asyncUpdateCustomSubRenderersInfo&&u.push(r),[2]}}))},p=this,b=0,h=this.plugins.length,y.label=1;case 1:return b<h?[5,f(b,h)]:[3,4];case 2:y.sent(),y.label=3;case 3:return b++,[3,1];case 4:if(!u.length)return[3,8];v=0,m=u.length,y.label=5;case 5:return v<m?(g=u[v],[4,null===(i=g.asyncUpdateCustomSubRenderersInfo)||void 0===i?void 0:i.call(g,s,o,re())]):[3,8];case 6:y.sent(),y.label=7;case 7:return v++,[3,5];case 8:return[2,o.filter((function(e){return!e.disabledRendererPlugin}))]}}))}))}}),Object.defineProperty(e.prototype,"buildRenderers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return H(this,void 0,void 0,(function(){var t;return z(this,(function(r){switch(r.label){case 0:return[4,this.collectRenderers(e)];case 1:return t=r.sent(),this.store.setSubRenderers(t),this.store.changeSubRendererRegion(e||""),[2]}}))}))}}),Object.defineProperty(e.prototype,"rebuild",{enumerable:!1,configurable:!0,writable:!0,value:function(){return H(this,void 0,void 0,(function(){return z(this,(function(e){switch(e.label){case 0:return[4,this.buildRenderers()];case 1:return e.sent(),this.buildToolbars(),this.buildPanels(),[2]}}))}))}}),Object.defineProperty(e.prototype,"updateConfigPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this,n=this.store,a=n.activeId,i=n.getSchema,o=n.getNodeById,l=e;if(!l&&this.store.activeId){var c=i(a);l=c.type}if(l&&this.store.activeId){var d=this.store.panels.concat(),s=o(a);if(l&&s){var u=this.plugins.find((function(e){return e.rendererName===l}));d.splice(d.findIndex((function(e){return"config"===e.key})),1);var f=F(F({},this.buildEventContext(s)),{data:d,selections:this.store.selections.map((function(e){return r.buildEventContext(e)}))});u&&(null===(t=u.buildEditorPanel)||void 0===t||t.call(u,f,d),this.store.setPanels(d.map((function(e){return F(F({},e),{order:e.order||0})}))))}}}}),Object.defineProperty(e.prototype,"switchToRegion",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.store.activeId&&this.buildRenderers(e)}}),Object.defineProperty(e.prototype,"showInsertPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,a,i){var o,l,c;return void 0===t&&(t=this.store.activeId),void 0===n&&(n="insert"),void 0===a&&(a=""),H(this,void 0,void 0,(function(){var d,s;return z(this,(function(u){switch(u.label){case 0:return void 0===r&&t&&(d=this.store.getNodeById(t),r=null===(c=null===(l=null===(o=null==d?void 0:d.info)||void 0===o?void 0:o.regions)||void 0===l?void 0:l.find((function(t){return t.key===e})))||void 0===c?void 0:c.preferTag),[4,this.collectRenderers(e,t)];case 1:return s=u.sent(),this.store.setInsertRenderers(s),this.store.setInsertRegion(e,t,r,n,a,i),[2]}}))}))}}),Object.defineProperty(e.prototype,"showReplacePanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this.store.getNodeById(e),n=null==r?void 0:r.parent;if(r&&n&&n.isRegion&&n.parent){var a=n.parent;this.showInsertPanel(n.region,a.id,t,"replace",r.id)}}}),Object.defineProperty(e.prototype,"showRendererPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.store.showRendererPanel(e,t)}}),Object.defineProperty(e.prototype,"on",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.listeners.push({type:e,fn:t})}}),Object.defineProperty(e.prototype,"off",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=Ee(this.listeners,(function(r){return r.type===e&&r.fn===t}));~r&&this.listeners.splice(r,1)}}),Object.defineProperty(e.prototype,"trigger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=Gt(e,t),n=xt(/^(?: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[n]&&a.push({type:e,fn:t[n].bind(t)})})),this.config[n]&&a.push({fn:this.config[n],type:e});var i=[];return a.some((function(e){var t=e.fn.call(null,r);return!1===t?(r.preventDefault(),r.stopPropagation()):(null==t?void 0:t.then)?i.push(t):void 0!==t&&r.setData(t),r.stoped})),i.length&&(r.pending=Promise.all(i)),r}}),Object.defineProperty(e.prototype,"addElem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n,a;return H(this,void 0,void 0,(function(){var i,l,c,d,s,u,f,p,b,h,v,m,g,y,w;return z(this,(function(O){switch(O.label){case 0:if(!e)return[2];if(i="",Dt(e)?i=e.toString():Bt(e)&&(l=e),c=this.store,i&&(d=c.getSubRendererById(i)),!d&&!l)return[2];if(s=c.activeId,!(u=c.getNodeById(s)))return o.warning(k("0e24e1bbc19612a350f81296d9fb7802")),[2];if(!("wrapper"!==u.type&&"container"!==u.type||0!==(null===(r=null===(t=u.schema)||void 0===t?void 0:t.body)||void 0===r?void 0:r.length)||"flex"!==(null==l?void 0:l.type)&&"flex"!==(null==d?void 0:d.rendererName)||(null===(n=u.schema)||void 0===n?void 0:n.isFreeContainer)))return f=l||(null==d?void 0:d.scaffold),this.replaceChild(s,f),[2];if(p=u.parent,b=null,h=null,v=null,c.activeRegion)h=s,v=c.activeRegion;else if(u.schema.columns)h=s,v="columns";else if(u.schema.items&&Lt(u.schema))h=s,v="items";else if(u.schema.body)h=s,v="body";else if(p){if(h=p.id,v=p.region,!p.region&&p.schema.body)v="body";else if(!p.region&&p.schema.items)v="items";else if(!p.region&&!p.schema.body&&!p.schema.items)return o.warning(k("bd690facb536d759814ee64f2760fecb")),[2];m=c.getSchemaParentById(s),g=-1,m.some((function(e,t){var r=!1;return e.$$id===s&&(g=t,r=!0),r})),b=null===(a=m[g+1])||void 0===a?void 0:a.$$id}else h=s,v="body";return y=l,!d||l?[3,2]:(y=d.scaffold||{type:d.type},d.scaffoldForm?[4,this.scaffold(d.scaffoldForm,y)]:[3,2]);case 1:y=O.sent(),O.label=2;case 2:return(w=this.addChild(h,v,y,b,d))&&setTimeout((function(){c.setActiveId(w.$$id)}),100),[2]}}))}))}}),Object.defineProperty(e.prototype,"appendSiblingSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n,a;return H(this,void 0,void 0,(function(){var i,l,c,d,s,u,f,p,b,h;return z(this,(function(v){if(!e)return[2];if(i=this.store,l=i.activeId,!(c=i.getNodeById(l)))return o.warning(k("0e24e1bbc19612a350f81296d9fb7802")),[2];if(d=c.parent,s=null,u=null,f=null,d){if(u=d.id,f=d.region,!d.region&&d.schema.body)f="body";else if(!d.region&&"flex"===(null===(n=d.schema)||void 0===n?void 0:n.type)&&d.schema.items)f="items";else if(!d.region&&!d.schema.body)return o.warning(k("bd690facb536d759814ee64f2760fecb")),[2];p=i.getSchemaParentById(l),b=-1,p.some((function(e,t){var r=!1;return e.$$id===l&&(b=t,r=!0),r})),s=null===(a=p[t?b:b+1])||void 0===a?void 0:a.$$id,(h=this.addChild(u,f,e,s))&&!r&&setTimeout((function(){i.setActiveId(h.$$id)}),100)}return[2]}))}))}}),Object.defineProperty(e.prototype,"insert",{enumerable:!1,configurable:!0,writable:!0,value:function(){return H(this,void 0,void 0,(function(){var e,t,r,n,a,i,o;return z(this,(function(l){switch(l.label){case 0:return e=this.store,(t=e.selectedInsertRendererInfo)?(r=e.insertId,n=e.insertRegion,a=e.insertBeforeId,i=t.scaffold||{type:t.type},t.scaffoldForm?[4,this.scaffold(t.scaffoldForm,i)]:[3,2]):[2];case 1:i=l.sent(),l.label=2;case 2:return(o=this.addChild(r,n,i,a,t))&&(e.closeInsertPanel(),setTimeout((function(){e.setActiveId(o.$$id)}),100)),[2]}}))}))}}),Object.defineProperty(e.prototype,"replace",{enumerable:!1,configurable:!0,writable:!0,value:function(){return H(this,void 0,void 0,(function(){var e,t,r,n,a,i=this;return z(this,(function(o){switch(o.label){case 0:return e=this.store,(t=e.selectedInsertRendererInfo)?(r=e.insertOrigId,n=t.scaffold||{type:t.type},a=e.insertRegion,t.scaffoldForm?[4,this.scaffold(t.scaffoldForm,n)]:[3,2]):[2];case 1:n=o.sent(),o.label=2;case 2:return this.replaceChild(r,n,t,a)&&(e.closeInsertPanel(),setTimeout((function(){i.rebuild()}),4)),[2]}}))}))}}),Object.defineProperty(e.prototype,"isFlexContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.store.isFlexContainer(e)}}),Object.defineProperty(e.prototype,"isFlexItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.store.isFlexItem(e)}}),Object.defineProperty(e.prototype,"isFlexColumnItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.store.isFlexColumnItem(e)}}),Object.defineProperty(e.prototype,"draggableContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.store.draggableContainer(e)}}),Object.defineProperty(e.prototype,"updateContainerStyleByDrag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){this.store.updateContainerStyleByDrag(e,t,r)}}),Object.defineProperty(e.prototype,"getEditorInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=null,a=r.$$id?this.store.getSchemaPath(r.$$id):"",i={renderer:e,path:t,schemaPath:a,schema:r},o=this.trigger("before-resolve-editor-info",i);return o.prevented?o.context.data:(this.plugins.some((function(t){var o,l=null===(o=t.getRendererInfo)||void 0===o?void 0:o.call(t,i);return!!l&&(n=F(F({id:r.$$id},l),{type:r.type,plugin:t,renderer:e,schemaPath:a}),!0)})),this.trigger("after-resolve-editor-info",F(F({},i),{data:n})).context.data)}}),Object.defineProperty(e.prototype,"panelChangeValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this.store,n=F(F({},this.buildEventContext(r.activeId)),{value:e,diff:t});this.trigger("before-update",n).prevented||(r.changeValue(e,t),this.trigger("after-update",n))}}),Object.defineProperty(e.prototype,"openSubEditor",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.store.openSubEditor(e)}}),Object.defineProperty(e.prototype,"openContextMenu",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=this,a=[],i=this.buildEventContext(e),o=F(F({},i),{selections:this.store.selections.map((function(e){return n.buildEventContext(e)})),region:t,data:a});(a=this.buildContextMenus(o)).length&&(this.store.setContextId(e),u({x:r.x,y:r.y},a,(function(){return n.store.setContextId("")})))}}),Object.defineProperty(e.prototype,"buildContextMenus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.plugins.forEach((function(t){var r;null===(r=t.buildEditorContextMenu)||void 0===r||r.call(t,e,e.data)})),this.trigger("build-context-menus",e),e.data}}),Object.defineProperty(e.prototype,"closeContextMenu",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(e.prototype,"moveUp",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=this.store;if(t.activeId){var r=t.getNodeById(t.activeId),n=r.parent,a=r.host,i=this.buildEventContext(a),o=F(F({},i),{sourceId:r.id,direction:"up",beforeId:null===(e=r.prevSibling)||void 0===e?void 0:e.id,region:n.region});this.trigger("before-move",o).prevented||(t.moveUp(r.id),this.trigger("after-move",o),this.trigger("after-update",o))}}}),Object.defineProperty(e.prototype,"moveDown",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,r=this.store;if(r.activeId){var n=r.getNodeById(r.activeId),a=n.parent,i=n.host,o=this.buildEventContext(i),l=F(F({},o),{sourceId:n.id,direction:"down",beforeId:null===(t=null===(e=n.nextSibling)||void 0===e?void 0:e.nextSibling)||void 0===t?void 0:t.id,region:a.region});this.trigger("before-move",l).prevented||(r.moveDown(n.id),this.trigger("after-move",l),this.trigger("after-update",l))}}}),Object.defineProperty(e.prototype,"del",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e&&e.length){var t=Array.isArray(e)?e[0]:e,r=F(F({},this.buildEventContext(t)),{data:Array.isArray(e)?e.concat():[]});this.trigger("before-delete",r).prevented||(Array.isArray(r.data)&&r.data.length?this.store.delMulti(r.data):this.store.del(t),this.trigger("after-delete",r))}}}),Object.defineProperty(e.prototype,"duplicate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.store.duplicate(e)}}),Object.defineProperty(e.prototype,"copy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=k("52e6abbe5c11e7cbf14788c1540f8bf2"));var r=this.store.getValueOf(e);this.clipboardData=xe(r),o.info(k("372ea9fd27fb7cfacfe1b4ca3046f8d0")+t)}}),Object.defineProperty(e.prototype,"cut",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.copy(e,k("2a6287664de5ab46c65220c7182878ff")),this.del(e)}}),Object.defineProperty(e.prototype,"paste",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return H(this,void 0,void 0,(function(){var r;return z(this,(function(n){return this.clipboardData?(r=pt(Ie(this.clipboardData)),t?this.addChild(e,t,r):this.replaceChild(e,r),[2]):(l(k("1ff035555ac8a68dc5b0ea2d0af55f00")),[2])}))}))}}),Object.defineProperty(e.prototype,"emptyRegion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this;this.store.emptyRegion(e,t),setTimeout((function(){r.store.activeId&&r.store.getNodeById(r.store.activeId)||r.store.setActiveId(e)}),100)}}),Object.defineProperty(e.prototype,"addChild",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,a,i){var o=this.store,l=-1,c=this.buildEventContext(e),d=F({},r);if(bt(d),n){var s=c.schema[t];Array.isArray(s)&&(l=Ee(s,(function(e){return(null==e?void 0:e.$$id)===n})))}var u=F(F({},c),{beforeId:n,index:l,region:t,data:d,subRenderer:a,dragInfo:i}),f=this.trigger("before-insert",u);if(!f.prevented){var p=o.insertSchema(f);return this.trigger("after-insert",u),p}return null}}),Object.defineProperty(e.prototype,"move",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){var a=this.store,i=F(F({},this.buildEventContext(e)),{beforeId:n,region:t,sourceId:r}),o=this.trigger("before-move",i);return!o.prevented&&(a.moveSchema(o),this.trigger("after-move",i),!0)}}),Object.defineProperty(e.prototype,"replaceChild",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){var a=F(F({},this.buildEventContext(e)),{data:F({},t),subRenderer:r,region:n}),i=this.trigger("before-replace",a);return!(i.prevented||!i.context.data)&&(this.store.replaceChild(e,i.context.data),this.trigger("after-replace",a),!0)}}),Object.defineProperty(e.prototype,"setActiveId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.store.setActiveId(e)}}),Object.defineProperty(e.prototype,"openConfigPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.store;t.activeId!==e&&t.setActiveId(e),t.changePanelKey("config")}}),Object.defineProperty(e.prototype,"openCodePanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.store;t.activeId!==e&&t.setActiveId(e),t.changePanelKey("code")}}),Object.defineProperty(e.prototype,"toggleSelection",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.store,r=t.selections.concat();!r.length&&t.activeId&&r.push(t.activeId);var n=r.indexOf(e);~n?r.splice(n,1):r.push(e),this.setSelection(r,e)}}),Object.defineProperty(e.prototype,"setSelection",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this;void 0===t&&(t=e[0]);var n=this.store,a=this.buildEventContext(t),i=F(F({},a),{selections:e.map((function(e){return r.buildEventContext(e)})),data:e});this.trigger("selection-change",i).prevented||(1===(e=i.data).length?n.setActiveId(e[0]):n.setSelections(e))}}),Object.defineProperty(e.prototype,"startDrag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){t.persist(),this.dnd.startDrag(e,t.nativeEvent)}}),Object.defineProperty(e.prototype,"scaffold",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return H(this,void 0,void 0,(function(){var r=this;return z(this,(function(n){return[2,new Promise((function(n){r.store.openScaffoldForm(F(F({},e),{value:e.pipeIn?e.pipeIn(t):t,callback:n}))}))]}))}))}}),Object.defineProperty(e.prototype,"reScaffold",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return H(this,void 0,void 0,(function(){var n;return z(this,(function(a){switch(a.label){case 0:return[4,this.scaffold(t,r)];case 1:return n=a.sent(),this.replaceChild(e,n),[2]}}))}))}}),Object.defineProperty(e.prototype,"reScaffoldV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;return H(this,void 0,void 0,(function(){var r,n,a,i;return z(this,(function(o){switch(o.label){case 0:return r=this.buildEventContext(e),n=null===(t=r.info)||void 0===t?void 0:t.scaffoldForm,a=r.schema,[4,this.scaffold(n,a)];case 1:return i=o.sent(),this.replaceChild(e,i),[2]}}))}))}}),Object.defineProperty(e.prototype,"patchSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if(void 0===e&&(e=!1),!this.patching){this.patching=!0;var r=function(n){n.forEach((function(n){n.uniqueChildren&&n.uniqueChildren.length&&r(n.uniqueChildren),n.isRegion||n.patch(t.store,e)}))};r(this.store.root.children),this.patching=!1}}}),Object.defineProperty(e.prototype,"hackRenderers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;void 0===e&&(e=re());var r=[];e.forEach((function(e){t.plugins.filter((function(t){var r;return Array.isArray(null==t?void 0:t.regions)&&t.regions.some((function(r){var n;return r.renderMethod&&(null!==(n=r.rendererName)&&void 0!==n?n:t.rendererName)===e.name}))||t.overrides&&(null!==(r=t.overrideTargetRendererName)&&void 0!==r?r:t.rendererName)===e.name})).forEach((function(t){var n,a,i=null===(n=t.regions)||void 0===n?void 0:n.filter((function(r){var n;return r.renderMethod&&(null!==(n=r.rendererName)&&void 0!==n?n:t.rendererName)===e.name}));(null==i?void 0:i.length)&&r.push({renderer:e,regions:i}),t.overrides&&(null!==(a=t.overrideTargetRendererName)&&void 0!==a?a:t.rendererName)===e.name&&r.push({renderer:e,overrides:t.overrides})}))})),r.forEach((function(e){var r=e.regions,n=e.renderer,a=e.overrides;return t.hackIn(n,r,a)}))}}),Object.defineProperty(e.prototype,"makeWrapper",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;return(null===(r=this.parent)||void 0===r?void 0:r.makeWrapper)?this.parent.makeWrapper(e,t):function(e,t,r){var n=e.store,a=r.component,i=function(i){function o(e){var t=i.call(this,e)||this;return Object.defineProperty(t,"editorNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"scopeId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t.state={hasError:!1},t}return A(o,i),Object.defineProperty(o.prototype,"UNSAFE_componentWillMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var a=this,i=this.context||n.root;if(t.id&&(this.editorNode=i.addChild({id:t.id,type:t.type,label:t.name,isCommonConfig:!!this.props.$$commonSchema,path:this.props.$path,schemaPath:t.schemaPath,info:t,getData:function(){return a.props.data}}),this.editorNode.setRendererConfig(r),r.storeType&&!e.dataSchema.hasScope("".concat(t.id,"-").concat(t.type)))){for(var o=i,l=void 0;o&&!l;)o===n.root?l=e.dataSchema.getScope("root"):e.dataSchema.hasScope("".concat(o.id,"-").concat(o.type))&&(l=e.dataSchema.getScope("".concat(o.id,"-").concat(o.type))),o="root"===o.parentId?n.root:o.parent;if(!l)throw new Error(k("186733ed7ec817040b8f9cbc610ba49a"));e.dataSchema.switchTo(l.id),this.scopeId="".concat(t.id,"-").concat(t.type),e.dataSchema.addScope([],this.scopeId),t.name&&(e.dataSchema.current.tag="".concat(t.name,"变量"))}}}),Object.defineProperty(o.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props;this.editorNode&&t.$$commonSchema!==e.$$commonSchema&&this.editorNode.updateIsCommonConfig(!!this.props.$$commonSchema)}}),Object.defineProperty(o.prototype,"componentDidCatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){console.warn("".concat(t.name,"(").concat(t.id,")渲染发生错误:")),console.warn(k("a30dd4945df5b44b264fa3be6ee9682e"),t),console.warn(k("63f94190d2d4ea22263e6e9f07c96558"),e),console.warn(k("f66335b5bff0e26fdff2a3303e0f9bb0"),r),this.setState({hasError:!0})}}),Object.defineProperty(o.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.editorNode&&be(this.editorNode)&&(this.context||n.root).removeChild(this.editorNode),this.scopeId&&e.dataSchema.removeScope(this.scopeId)}}),Object.defineProperty(o.prototype,"wrapperRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(;null==e?void 0:e.getWrappedInstance;)e=e.getWrappedInstance();this.editorNode&&be(this.editorNode)&&this.editorNode.setComponent(e)}}),Object.defineProperty(o.prototype,"renderChild",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n){var a=this.props.render;return r.$$id&&((n=n||{}).key=r.$$id||n.key),a(e,r,F(F({},n),{$$editor:t}))}}),Object.defineProperty(o.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props;e.$$id;var r=B(e,["$$id"]);if(this.state.hasError)return $.createElement("div",{className:"ae-Editor-renderer-error"},t.name,"(",t.id,")渲染发生错误,详细错误信息请查看控制台输出。");var n=this.props.$$commonSchema?or:t.regions?ir:tr;return $.createElement(nr.Provider,{value:this.editorNode||this.context},$.createElement(n,F({},r,{render:this.renderChild,$$editor:t,$$node:this.editorNode,ref:this.wrapperRef})))}}),Object.defineProperty(o,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:a.displayName}),Object.defineProperty(o,"propsList",{enumerable:!0,configurable:!0,writable:!0,value:(a&&a.propsList||[]).concat(["$$id"])}),Object.defineProperty(o,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nr}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],o.prototype,"wrapperRef",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String,Object,Object]),D("design:returntype",void 0)],o.prototype,"renderChild",null),M([ce,D("design:paramtypes",[Object])],o)}($.Component);return i}(this,e,t)}}),Object.defineProperty(e.prototype,"makeSchemaFormRender",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return function(e,t){var r=F(F({},e.env),{session:"schema-form"});return function(n){var a=n.value,i=n.onChange,o=n.popOverContainer,l=n.id,c=n.store,d=n.node,s=F({},e.store.ctx);if((null==t?void 0:t.panelById)&&(null==t?void 0:t.panelById)!==(null==d?void 0:d.id))return $.createElement($.Fragment,null);l&&Object.defineProperty(s,"__props__",{get:function(){var e,t=c.getNodeById(l);return(null===(e=null==t?void 0:t.getComponent())||void 0===e?void 0:e.props)||{}}});var u="".concat(l,"-").concat(null==d?void 0:d.type).concat(t.formKey?"-":"").concat(t.formKey?t.formKey:"");return $.createElement(lr,{key:u,propKey:u,api:t.api,definitions:t.definitions,body:t.body?Pe(Array.isArray(t.body)?t.body:[t.body]):void 0,controls:t.controls?Pe(Array.isArray(t.controls)?t.controls:[t.controls]):void 0,value:a,ctx:s,pipeIn:t.pipeIn,pipeOut:t.pipeOut,submitOnChange:t.submitOnChange,onChange:i,env:r,popOverContainer:o,node:d,manager:e,justify:t.justify})}}(this,e)}}),Object.defineProperty(e.prototype,"onWidthChangeStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this.trigger("width-change-start",F(F({},t),{nativeEvent:e}))}}),Object.defineProperty(e.prototype,"onHeightChangeStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this.trigger("height-change-start",F(F({},t),{nativeEvent:e}))}}),Object.defineProperty(e.prototype,"onSizeChangeStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this.trigger("size-change-start",F(F({},t),{nativeEvent:e}))}}),Object.defineProperty(e.prototype,"openNodePopOverForm",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n,a,i="string"==typeof e?this.store.getNodeById(e):e;if(i&&((null===(r=null===(t=i.info)||void 0===t?void 0:t.plugin)||void 0===r?void 0:r.popOverBody)||(null===(a=null===(n=i.info)||void 0===n?void 0:n.plugin)||void 0===a?void 0:a.popOverBodyCreator))){var o=i.info.plugin,l=this.store,c={body:o.popOverBodyCreator?o.popOverBodyCreator(this.buildEventContext(i)):o.popOverBody,value:l.getValueOf(i.id),callback:this.panelChangeValue,target:function(){return document.querySelector('[data-editor-id="'.concat(i.id,'"]'))}};l.openPopOverForm(c)}}}),Object.defineProperty(e.prototype,"addBroadcast",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.broadcasts.push(e)}}),Object.defineProperty(e.prototype,"removeBroadcast",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=Ee(this.broadcasts,(function(t){return t.eventName===e}));this.broadcasts.splice(t,1)}}),Object.defineProperty(e.prototype,"getContextSchemas",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n,a,i,o;return void 0===t&&(t=!1),H(this,void 0,void 0,(function(){var l,c,d,s,u,f,p,b,h,v,m,g;return z(this,(function(y){switch(y.label){case 0:if(!(l="string"==typeof e?this.store.getNodeById(e):e))return[2,[]];for(d=l,s=l,u=l;!c&&d;)f=null===(r=d.info)||void 0===r?void 0:r.id,v=null===(n=d.info)||void 0===n?void 0:n.type,c=this.dataSchema.hasScope("".concat(f,"-").concat(v))?this.dataSchema.getScope("".concat(f,"-").concat(v)):void 0,(null==(d=d.parent)?void 0:d.isRegion)&&(s=d);y.label=1;case 1:return c?(b=c.id.split("-"),h=b[0],v=b[1],m=this.store.getNodeById(h,v),p||!m||m.isSecondFactor||(p=c),[4,null===(o=null===(i=null===(a=null==m?void 0:m.info)||void 0===a?void 0:a.plugin)||void 0===i?void 0:i.buildDataSchemas)||void 0===o?void 0:o.call(i,m,s,u)]):[3,3];case 2:return(g=y.sent())&&(c.removeSchema(g.$id),c.addSchema(g)),c=t?void 0:c.parent,[3,1];case 3:return(null==p?void 0:p.id)&&this.dataSchema.switchTo(p.id),[2,t?this.dataSchema.current.schemas:this.dataSchema.getSchemas()]}}))}))}}),Object.defineProperty(e.prototype,"getAvailableContextFields",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r;return H(this,void 0,void 0,(function(){var n,a,i,o,l,c;return z(this,(function(d){if(!e)return[2];for(a=e;!n&&a;)n=this.dataSchema.hasScope("".concat(a.id,"-").concat(a.type))?this.dataSchema.getScope("".concat(a.id,"-").concat(a.type)):void 0,null==(a=a.parent)||a.isRegion;for(;n;){if(i=n.id.split("-"),o=i[0],l=i[1],c=this.store.getNodeById(o,l))return[2,null===(r=null==c?void 0:(t=c.info.plugin).getAvailableContextFields)||void 0===r?void 0:r.call(t,c,e)];n=n.parent}return[2]}))}))}}),Object.defineProperty(e.prototype,"beforeDispatchEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,a,i){var o,l,c,d;null==e||e(t,r,n,a,i);var s=r.props.$$id||(null===(o=r.props.$$editor)||void 0===o?void 0:o.id);if(s){var u=this.store.getNodeById(s,r.props.type);null===(d=null===(c=null===(l=null==u?void 0:u.info)||void 0===l?void 0:l.plugin)||void 0===c?void 0:c.rendererBeforeDispatchEvent)||void 0===d||d.call(c,u,t,Ge(a))}}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.trigger("dispose",{data:this}),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()}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object,Object]),D("design:returntype",void 0)],e.prototype,"panelChangeValue",null),e}(),Cr=function(e){function t(){var t,r,n;return t=e.apply(this,arguments)||this,Object.defineProperty(t,"env",{enumerable:!0,configurable:!0,writable:!0,value:F(F(F(F({},t.props.manager.env),{notify:function(e,r){t.props.editable?console.warn("[Notify]",e,r):o[e]?o[e](r,k("error"===e?"a71002967924a83e32b38a80705290fb":"058ebdf2884474ebff2977ba2f0e275e")):console.warn("[Notify]",e,r)},theme:t.props.theme,session:"preview-".concat(t.props.manager.id),rendererResolver:t.rendererResolver}),t.props.manager.env),null===(n=(r=t.props).envCreator)||void 0===n?void 0:n.call(r,t.props))}),Object.defineProperty(t,"dom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"unSensor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return A(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=de(this);if(e.addEventListener("mouseleave",this.handleMouseLeave),e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("click",this.handleClick),e.addEventListener("mouseover",this.handeMouseOver),this.props.autoFocus){var t=this.props.manager.store;setTimeout((function(){if(be(t)){var e=te(t.outline,(function(e){return!e.isRegion&&e.clickable}));e&&t.setActiveId(e.id)}}),350)}else this.props.manager.buildRenderersAndPanels()}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=de(this);e.removeEventListener("mouseleave",this.handleMouseLeave),e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("click",this.handleClick),e.removeEventListener("mouseover",this.handeMouseOver)}}),Object.defineProperty(t.prototype,"contentsRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this;this.dom=e,e?(this.syncIframeHeight(),this.unSensor=f(e,(function(){r.syncIframeHeight()}))):(null===(t=this.unSensor)||void 0===t||t.call(this),delete this.unSensor)}}),Object.defineProperty(t.prototype,"syncIframeHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.manager;this.dom&&(e.store.getIframe().style.cssText+="height: ".concat(this.dom.offsetHeight,"px"))}}),Object.defineProperty(t.prototype,"handleClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.store,r=e.target.closest("[data-editor-id]");if(!e.defaultPrevented&&(r&&t.setActiveId(r.getAttribute("data-editor-id")),this.props.editable)){var n=this.props.manager.trigger("prevent-click",{data:e});n.prevented||n.stoped||(e.preventDefault(),e.stopPropagation())}}}),Object.defineProperty(t.prototype,"handleMouseMove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.store,r=e.target.closest("[data-editor-id]");r&&t.setHoverId(r.getAttribute("data-editor-id"))}}),Object.defineProperty(t.prototype,"handleMouseLeave",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.store.setHoverId("")}}),Object.defineProperty(t.prototype,"handeMouseOver",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.editable&&(e.preventDefault(),e.stopPropagation())}}),Object.defineProperty(t.prototype,"handleDragEnter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.manager.dnd.dragEnter(e.nativeEvent)}}),Object.defineProperty(t.prototype,"handleDragLeave",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.manager.dnd.dragLeave(e.nativeEvent)}}),Object.defineProperty(t.prototype,"handleDragOver",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.manager.dnd.dragOver(e.nativeEvent)}}),Object.defineProperty(t.prototype,"handleDrop",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.manager.dnd.drop(e.nativeEvent)}}),Object.defineProperty(t.prototype,"handleContextMenu",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=null===(t=e.target.closest("[data-editor-id]"))||void 0===t?void 0:t.getAttribute("data-editor-id"),n="";if(!r){var a=e.target.closest("[data-node-id]");if(!(r=null==a?void 0:a.getAttribute("data-node-id")))return;n=a.getAttribute("data-node-region")}e.preventDefault(),e.stopPropagation();var i=this.props.manager,o=i.store.getIframe().getBoundingClientRect();i.parent.openContextMenu(r,n,{x:window.scrollX+e.clientX+o.left,y:window.scrollY+e.clientY+o.top})}}),Object.defineProperty(t.prototype,"rendererResolver",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=this.props,a=n.editable,i=n.manager,o=p(e,t);if(!1===a)return o;o=o||{name:"error",test:function(){return!0},component:Jt};var l=i.getEditorInfo(o,e,t);return r&&r.store&&r.store.data&&i.updateAMISContext(r.store.data),l&&(o=F(F({},o),{component:i.makeWrapper(l,o)})),o}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.store,r=e.editable;e.manager;var n=e.className,a=e.schema,o=e.data,l=B(e,["store","editable","manager","className","schema","data"]);return $.createElement("div",{ref:this.contentsRef,onContextMenu:this.handleContextMenu,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:_("ae-IFramePreview",n,r?"is-edting":"")},i(a||{type:"tpl",tpl:k("88f000a0fdc38ce3808cef072b00893c")},F(F({},l),{key:r?"edit-mode":"preview-mode",theme:this.env.theme,data:null!=o?o:t.ctx}),this.env))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"contentsRef",null),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handleClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handleMouseMove",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handeMouseOver",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDragEnter",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDragLeave",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDragOver",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDrop",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleContextMenu",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String,Object,Object]),D("design:returntype",void 0)],t.prototype,"rendererResolver",null),t}($.Component),Sr=function(e){function t(t){var r=e.call(this,t)||this;Object.defineProperty(r,"bridgeFnName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"bridge",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"schema",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var n="__amis_editor_bridge_fn_".concat(He());return window[n]=function(e){return delete window[n],r.bridge=e,r.update(t),t.manager},r.bridgeFnName=n,r}return A(t,e),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.update()}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.store;be(e)&&e.setDoc(document)}}),Object.defineProperty(t.prototype,"iframeRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.store;be(t)&&t.setIframe(e)}}),Object.defineProperty(t.prototype,"update",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;void 0===e&&(e=this.props);var r=e.editable,n=e.store;null===(t=this.bridge)||void 0===t||t.update(F(F({},e),{schema:r?n.filteredSchema:n.filteredSchemaForPreview}))}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.url,r=e.manager,n=e.className,a=e.editable,i=e.store;return this.schema=a?i.filteredSchema:i.filteredSchemaForPreview,$.createElement("iframe",{ref:this.iframeRef,className:n,id:r.id,src:"".concat(t,"#").concat(this.bridgeFnName)})}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"iframeRef",null),t=M([ce,D("design:paramtypes",[Object])],t)}($.PureComponent),jr=function(e){function t(t){var r=e.call(this,t)||this;Object.defineProperty(r,"manager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"state",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(r,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1});var n=t.bridgeName,a=parent[n];if("function"!=typeof a)throw new Error(k("3b6d5995e9f2ecd3df059b3f1bea201e"));var i=a({update:function(e){return r.inited?r.setState(F({},e)):r.state=F({},e)}});if(!i)throw new Error(k("09f33be5ec04eb48b3102e4e31af5b38"));i.store.setDoc(document);var o=new Pr(i.config,i.store,i);return r.manager=o,r.inited=!0,r}return A(t,e),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.manager;e.toDispose.forEach((function(e){return e()})),e.toDispose=[],e.listeners.splice(0,e.listeners.length),e.lazyPatchSchema.cancel()}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){return $.createElement(Cr,F({},this.state,{manager:this.manager,store:this.manager.store,envCreator:this.props.envCreator}))}}),t}($.Component);function xr(e,t,r){if(!location.hash||parent===window)throw new Error(k("283c2a52955ad87574fd6c0cc932c443"));var n=location.hash.substring(1);t.render($.createElement(jr,{bridgeName:n,envCreator:r}),e),window.onunload=function(){ue(e)}}var Ir,Rr=function(e){function t(t){var r=e.call(this,t)||this;return Object.defineProperty(r,"ref",{enumerable:!0,configurable:!0,writable:!0,value:$.createRef()}),Object.defineProperty(r,"scrollElem",{enumerable:!0,configurable:!0,writable:!0,value:null}),r.state={visible:void 0!==t.visible&&t.visible},r}return A(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.bindScrollEvent()}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.scrollElem&&this.scrollElem.removeEventListener("scroll",this.handleScroll)}}),Object.defineProperty(t.prototype,"getDefaultTarget",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.ref.current&&this.ref.current.ownerDocument?this.ref.current.ownerDocument:window}}),Object.defineProperty(t.prototype,"handleScroll",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.visibilityHeight||400,r=function(e,t){var r;if("undefined"==typeof window)return 0;var n,a=t?"scrollTop":"scrollLeft",i=0,o=null!=(n=e)&&n===n.window;return o?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[a]:e&&(i=e[a]),e&&!o&&"number"!=typeof i&&(i=null===(r=(e.ownerDocument||e).documentElement)||void 0===r?void 0:r[a]),i}(e.target,!0);this.setState({visible:r>t})}}),Object.defineProperty(t.prototype,"bindScrollEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.target;this.scrollElem=e()||this.getDefaultTarget(),this.scrollElem&&(this.scrollElem.addEventListener("scroll",this.handleScroll),this.handleScroll({target:this.scrollElem}))}}),Object.defineProperty(t.prototype,"scrollToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.onClick;this.scrollElem&&(this.scrollElem.scrollTo({top:0,behavior:"smooth"}),"function"==typeof t&&t(e))}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.children,r=e.className,n=_("editor-backTop",void 0===r?"":r,this.state.visible?"":"hidden"),a=Ae(this.props,["className","children","visibilityHeight","target","visible"]),i=$.createElement("div",{className:"backTop-content"},$.createElement("div",{className:"backTop-icon"},"UP"));return $.createElement("div",F({},a,{className:n,onClick:this.scrollToTop,ref:this.ref}),t||i)}}),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getDefaultTarget",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleScroll",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"bindScrollEvent",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"scrollToTop",null),t}($.Component),Nr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"currentDom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"env",{enumerable:!0,configurable:!0,writable:!0,value:F(F({},t.props.manager.env),{notify:function(e,r,n){t.props.editable?console.warn("[Notify]",e,r):o[e]?o[e](r,n||k("error"===e?"a71002967924a83e32b38a80705290fb":"058ebdf2884474ebff2977ba2f0e275e")):console.warn("[Notify]",e,r)},theme:t.props.theme,session:"preview-".concat(t.props.manager.id),rendererResolver:t.rendererResolver.bind(t)})}),Object.defineProperty(t,"doingSelection",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"unSensor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"layer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"scrollLayer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"unReaction",{enumerable:!0,configurable:!0,writable:!0,value:It((function(){return[t.getHighlightNodes(),t.props.store.activeId]}),(function(e,r){var n=e[0],a=t.props.store;setTimeout((function(){t.calculateHighlightBox(n)}),50);var i=null==r?void 0:r[0];Array.isArray(i)&&(i=i.filter((function(e){return!~n.indexOf(e)})),a.resetHighlightBox(i))}))}),t}return A(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.currentDom=de(this),this.currentDom.addEventListener("mouseleave",this.handleMouseLeave),this.currentDom.addEventListener("mousemove",this.handleMouseMove),this.currentDom.addEventListener("click",this.handleClick),this.currentDom.addEventListener("mouseover",this.handeMouseOver),this.currentDom.addEventListener("mousedown",this.handeMouseDown),this.props.manager.on("after-update",this.handlePanelChange)}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=this;this.currentDom&&(this.currentDom.removeEventListener("mouseleave",this.handleMouseLeave),this.currentDom.removeEventListener("mousemove",this.handleMouseMove),this.currentDom.removeEventListener("click",this.handleClick),this.currentDom.removeEventListener("mouseover",this.handeMouseOver),this.currentDom.removeEventListener("mousedown",this.handeMouseDown),this.props.manager.off("after-update",this.handlePanelChange)),null===(e=this.scrollLayer)||void 0===e||e.removeEventListener("scroll",this.handlePanelChange),setTimeout((function(){return ne([t.env.session])}),500)}}),Object.defineProperty(t.prototype,"contentsRef",{enumerable:!1,configurable:!0,writable:!0,value: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=f(e,this.handlePanelChange)):(delete this.scrollLayer,delete this.layer,null===(t=this.unSensor)||void 0===t||t.call(this),delete this.unSensor)}}),Object.defineProperty(t.prototype,"handlePanelChange",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;setTimeout((function(){return e.calculateHighlightBox(e.getHighlightNodes())}),50)}}),Object.defineProperty(t.prototype,"getHighlightNodes",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.props.store.highlightNodes.map((function(e){return e.id}))}}),Object.defineProperty(t.prototype,"calculateHighlightBox",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.store;this.layer&&t.calculateHighlightBox(e)}}),Object.defineProperty(t.prototype,"handeMouseDown",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this,n=1===e.button&&null!==window.event||0===e.button;if(this.props.editable&&n&&!e.defaultPrevented&&!e.defaultPrevented&&!(null===(t=e.target)||void 0===t?void 0:t.closest("[draggable]"))){var a=this.layer;if(a){var i=null,o=a.getBoundingClientRect(),l=e.pageX,c=e.pageY,d=l-o.left,s=c-o.top,u=function(e){i||((i=document.createElement("div")).classList.add("ae-Editor-selectionCursor"),a.appendChild(i)),r.doingSelection=!0;var t=e.pageX-l,n=e.pageY-c;i.style.cssText="left: ".concat(d+Math.min(t,0),"px; top: ").concat(s+Math.min(n,0),"px; width: ").concat(Math.abs(t),"px; height: ").concat(Math.abs(n),"px;")},f=function(e){r.doingSelection=!1,window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",f),i&&a.removeChild(i);var t=e.pageX-l,n=e.pageY-c,o={x:d+Math.min(t,0),y:s+Math.min(n,0),w:Math.abs(t),h:Math.abs(n)};if(!(o.w<10&&o.h<10)){var p=function(e){window.removeEventListener("click",p,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener("click",p,!0),setTimeout((function(){return window.removeEventListener("click",p,!0)}),350),r.doSelection(o)}};window.addEventListener("mousemove",u),window.addEventListener("mouseup",f)}}}}),Object.defineProperty(t.prototype,"doSelection",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.layer,r=de(this);if(t&&r){var n=[],a=t.getBoundingClientRect(),i=e.x+a.left,o=e.y+a.top,l=(e.w,e.h,e.x+a.left+e.w),c=e.y+a.top+e.h,d=r.querySelectorAll("[data-editor-id]");[].slice.apply(d).forEach((function(e){if(!n.some((function(t){return t.contains(e)}))){var t=e.getBoundingClientRect();i<=t.left&&o<=t.top&&l>=t.right&&c>=t.bottom&&(~n.indexOf(e)||n.push(e))}}));var s=n.map((function(e){return e.getAttribute("data-editor-id")})).filter((function(e,t,r){return r.indexOf(e)===t}));s.length&&this.props.manager.setSelection(s)}}}),Object.defineProperty(t.prototype,"handleClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this.props.store,n=e.target.closest("[data-editor-id]");if(!e.target.closest(".ae-editor-action-btn"))if(e.defaultPrevented)e.stopPropagation();else{if(n){var a=n.getAttribute("data-editor-id"),i="",o=e.target.closest("[data-region-host]");if(o){var l=o.getAttribute("data-region-host");l&&l===a&&o.getAttribute("data-region")&&(i=o.getAttribute("data-region"))}e.metaKey?this.props.manager.toggleSelection(a):r.setActiveId(a,i)}if(!(null===(t=this.layer)||void 0===t?void 0:t.contains(e.target))&&this.props.editable){var c=this.props.manager.trigger("prevent-click",{data:e});c.prevented||c.stoped||(e.preventDefault(),e.stopPropagation())}}}}),Object.defineProperty(t.prototype,"handleNavSwitch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.store.setActiveId(e)}}),Object.defineProperty(t.prototype,"handleMouseMove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;if(!this.doingSelection&&!this.props.manager.disableHover){var r=this.props.store,n=e.target;if(!(null===(t=this.layer)||void 0===t?void 0:t.contains(n))&&!e.target.closest(".ignore-hover-elem")){var a=n.closest("[data-editor-id]");if(a){var i=a.getAttribute("data-editor-id"),o="",l=e.target.closest("[data-region-host]");if(l){var c=l.getAttribute("data-region-host");c&&c===i&&l.getAttribute("data-region")&&(o=l.getAttribute("data-region"))}r.setMouseMoveRegion(o),r.setHoverId(i)}}}}}),Object.defineProperty(t.prototype,"handleMouseLeave",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.store;e.setMouseMoveRegion(""),e.setHoverId("")}}),Object.defineProperty(t.prototype,"handeMouseOver",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.editable&&(e.preventDefault(),e.stopPropagation())}}),Object.defineProperty(t.prototype,"handleDragEnter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.manager.dnd.dragEnter(e.nativeEvent)}}),Object.defineProperty(t.prototype,"handleDragLeave",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.manager.dnd.dragLeave(e.nativeEvent)}}),Object.defineProperty(t.prototype,"handleDragOver",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.manager.dnd.dragOver(e.nativeEvent)}}),Object.defineProperty(t.prototype,"handleDrop",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.manager.dnd.drop(e.nativeEvent)}}),Object.defineProperty(t.prototype,"getCurrentTarget",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.props.isMobile?this.currentDom.querySelector(".ae-Preview-inner"):this.currentDom.querySelector(".ae-Preview-body")}}),Object.defineProperty(t.prototype,"rendererResolver",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=this.props,a=n.editable,i=n.manager,o=p(e,t);if(!1===a)return o;o=o||{name:"error",test:function(){return!0},component:Jt};var l=i.getEditorInfo(o,e,t);return r&&r.store&&r.store.data&&i.updateAMISContext(r.store.data),l&&(o=F(F({},o),{component:i.makeWrapper(l,o)})),o}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props,r=t.className,a=t.editable,i=t.store,o=t.manager,l=t.amisEnv,c=t.theme,d=t.isMobile,s=t.iframeUrl,u=t.autoFocus,f=t.toolbarContainer,p=t.appLocale,b=B(t,["className","editable","store","manager","amisEnv","theme","isMobile","iframeUrl","autoFocus","toolbarContainer","appLocale"]),h=F(F({},this.env),l);return $.createElement("div",{id:"editor-preview-body",onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:_("ae-Preview",r,d?"is-mobile-body hoverShowScrollBar":"is-pc-body")},$.createElement("div",{className:_("ae-Preview-body",r,a?"is-edting":"",d?"is-mobile":"is-pc hoverShowScrollBar"),ref:this.contentsRef},s&&d&&$.createElement($.Fragment,null,$.createElement("div",{className:"mobile-sound"}),$.createElement("div",{className:"mobile-receiver"}),$.createElement("div",{className:"mobile-left-btn"}),$.createElement("div",{className:"mobile-right-btn"}),$.createElement("div",{className:"mobile-open-btn"})),$.createElement("div",{className:"ae-Preview-inner"},s&&d?$.createElement(Sr,F({},b,{key:"mobile",className:"ae-PreviewFrame",editable:a,isMobile:d,store:i,env:h,manager:o,url:s,theme:c,autoFocus:u})):$.createElement(kr,F({},b,{editable:a,autoFocus:u,store:i,env:h,manager:o,key:"pc",appLocale:p})),s&&d&&i.contextId?$.createElement("span",{className:"ae-IframeMask"}):null,$.createElement("div",{className:"ae-Preview-widgets",id:"aePreviewHighlightBox"},i.highlightNodes.map((function(t){return $.createElement(Yt,{node:t,key:t.id,store:i,id:t.id,title:t.label,toolbarContainer:f,onSwitch:e.handleNavSwitch,manager:o},t.childRegions.map((function(e){return!t.memberImmutable(e.region)&&i.isRegionActive(e.id,e.region)?$.createElement(Xt,{manager:o,key:e.region,store:i,node:e,id:e.id,name:e.region,title:e.label,preferTag:e.preferTag,isOnlyChildRegion:1===t.childRegions.length}):null})))})))),this.currentDom&&$.createElement(Rr,{key:d?"mobile-back-up":"pc-back-up",className:"ae-editor-action-btn",target:this.getCurrentTarget.bind(this),onClick:function(e){console.log(e)}},$.createElement(n,{icon:"back-up",className:"back-top-icon"}))))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"contentsRef",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handlePanelChange",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Array]),D("design:returntype",void 0)],t.prototype,"calculateHighlightBox",null),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handeMouseDown",null),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handleClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],t.prototype,"handleNavSwitch",null),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handleMouseMove",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),M([Ct,D("design:type",Function),D("design:paramtypes",[MouseEvent]),D("design:returntype",void 0)],t.prototype,"handeMouseOver",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDragEnter",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDragLeave",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDragOver",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDrop",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getCurrentTarget",null),t=M([ce],t)}(K),kr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.store;this.props.autoFocus?setTimeout((function(){if(be(e)){var t=te(e.outline,(function(e){return!e.isRegion&&e.clickable}));t&&be(e)&&e.setActiveId(t.id)}}),350):this.props.manager.buildRenderersAndPanels()}}),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props;t.editable!==e.editable&&t.editable&&this.props.manager.trigger("preview2editor",{data:this.props.manager})}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.editable,r=e.store,n=e.appLocale;e.autoFocus;var a=e.env,o=e.data;e.manager;var l=B(e,["editable","store","appLocale","autoFocus","env","data","manager"]);return i(t?r.filteredSchema:r.filteredSchemaForPreview,F(F({},l),{key:t?"edit-mode":"preview-mode",theme:a.theme,data:null!=o?o:r.ctx,locale:n}),a)}}),t=M([ce],t)}($.Component),Fr=function(e){function t(t){var r=e.call(this,t)||this;return Object.defineProperty(r,"ref",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"unSensor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"env",{enumerable:!0,configurable:!0,writable:!0,value:F({session:"preview"},r.props.env)}),r.state={scale:!0},r.rootRef=r.rootRef.bind(r),r.syncHeight=r.syncHeight.bind(r),r.handleClick=r.handleClick.bind(r),r}return A(t,e),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.unSensor&&this.unSensor()}}),Object.defineProperty(t.prototype,"rootRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;this.ref=e,e&&(this.syncHeight(),this.unSensor=f(null===(t=e.firstChild)||void 0===t?void 0:t.firstChild,this.syncHeight))}}),Object.defineProperty(t.prototype,"syncHeight",{enumerable:!1,configurable:!0,writable:!0,value: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;")}}}),Object.defineProperty(t.prototype,"handleClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e.preventDefault(),this.setState({scale:!this.state.scale})}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props,r=t.schema,a=t.theme;return $.createElement(ae,{unMountOnHidden:!1,schema:r,component:function(t){var r=t.schema;return $.createElement("div",{className:"ae-RenderersPicker-thumb ".concat(e.state.scale?"is-scaled":"")},$.createElement("div",{className:"ae-Editor-rendererThumbWrap"},$.createElement("div",{className:"ae-Editor-rendererThumbIcon",onClick:e.handleClick},$.createElement(n,{icon:e.state.scale?"zoom-in":"zoom-out"})),$.createElement("div",{ref:e.rootRef,className:"ae-Editor-rendererThumb"},$.createElement("div",{className:"ae-Editor-rendererThumbInner"},i(F(F({},r),{mode:"horizontal"===r.mode?"normal":r.mode}),{theme:a},e.env)))))}})}}),t}($.Component),Ar=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"handleLeftClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.currentTarget.getAttribute("data-value");this.props.store.setInsertTag(t)}}),Object.defineProperty(t.prototype,"handleClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.currentTarget.getAttribute("data-value");this.props.store.setInsertSelected(t)}}),Object.defineProperty(t.prototype,"hadnlDBClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.currentTarget.getAttribute("data-value"),r=this.props.store;r.setInsertSelected(t);var n=this.props.manager;"replace"===r.insertMode?n.replace():n.insert()}}),Object.defineProperty(t.prototype,"handleInsert",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.manager.insert()}}),Object.defineProperty(t.prototype,"handleReplace",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.manager.replace()}}),Object.defineProperty(t.prototype,"handleCancel",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.store.closeInsertPanel()}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,r=this,a=this.props.store,i=this.props.manager,o=null===(e=a.getNodeById(a.insertId))||void 0===e?void 0:e.info,l=null===(t=ye(o.regions,(function(e){return e.key===a.insertRegion})))||void 0===t?void 0:t.label,c=a.groupedInsertRenderers,d=Object.keys(c),s=a.insertTag||k("a8b0c20416853bda54120bf19477ad11"),u=c[s]||c[k("a8b0c20416853bda54120bf19477ad11")];return $.createElement("div",{className:"ae-InsertPanel"},"replace"===a.insertMode?$.createElement("div",{className:"ae-InsertPanel-title"},"更改组件类型"):$.createElement("div",{className:"ae-InsertPanel-title"},$.createElement("span",null,"选中组件插入到")," ",$.createElement("code",null,o.name," > ",l)),$.createElement("div",{className:"m-b-xs"},$.createElement(b,{className:"editor-InputSearch",value:a.insertRenderersKeywords,onChange:a.changeInsertRenderersKeywords,placeholder:k("d87481b371771b4f150da76e311bbbef"),clearable:!1},a.insertRenderersKeywords?$.createElement("a",{onClick:a.resetInsertRenderersKeywords},$.createElement(n,{icon:"close",className:"icon"})):$.createElement(n,{icon:"search",className:"icon"}))),$.createElement("div",{className:"ae-RenderersPicker-list"},$.createElement("ul",null,d.map((function(e){return $.createElement("li",{key:e,className:s===e?"is-active":""},$.createElement("a",{"data-value":e,onClick:r.handleLeftClick},e))}))),$.createElement("div",{className:"ae-RenderersPicker-content"},Array.isArray(u)&&u.length?$.createElement("ul",null,u.map((function(e){return $.createElement("li",{key:e.id,className:a.insertSelected===e.id?"is-active":"","data-value":e.id,onClick:r.handleClick,onDoubleClick:r.hadnlDBClick},$.createElement(Fr,{theme:i.env.theme,env:i.env,schema:e.previewSchema||{type:"tpl",tpl:k("becdc848350872592201e31bab03892a")}}),$.createElement("div",{className:"ae-RenderersPicker-info"},$.createElement("h4",null,e.name),$.createElement("div",null,$.createElement(h,{html:e.description}),e.docLink?$.createElement("a",{target:"_blank",href:a.amisDocHost+e.docLink},$.createElement("span",null,"详情")):null)))}))):$.createElement("div",null,"没有可用组件,也许你该切换容器试试。"))),$.createElement("div",{className:"ae-InsertPanel-footer"},"replace"===a.insertMode?$.createElement(v,{className:"action-btn action-btn-primary",onClick:this.handleReplace,disabled:!a.insertSelected,level:"primary"},"替换"):$.createElement(v,{className:"action-btn action-btn-primary",onClick:this.handleInsert,disabled:!a.insertSelected,level:"primary"},"插入"),$.createElement(v,{className:"action-btn",onClick:this.handleCancel},"取消")))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleLeftClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"hadnlDBClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleInsert",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleReplace",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleCancel",null),t=M([ce],t)}($.Component);function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mr.apply(this,arguments)}var Dr;function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Br.apply(this,arguments)}var Tr;function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hr.apply(this,arguments)}var zr;function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lr.apply(this,arguments)}var $r;function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(this,arguments)}var _r;function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vr.apply(this,arguments)}var Ur,Wr,Zr;function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}var Yr,Xr,Jr;function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(this,arguments)}var Qr,en,tn,rn,nn,an,on,ln;function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cn.apply(this,arguments)}var dn;function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sn.apply(this,arguments)}var un;function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fn.apply(this,arguments)}var pn;function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bn.apply(this,arguments)}var hn;function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vn.apply(this,arguments)}var mn;function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gn.apply(this,arguments)}var yn;function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wn.apply(this,arguments)}var On;function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},En.apply(this,arguments)}var Pn;function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cn.apply(this,arguments)}var Sn,jn;function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xn.apply(this,arguments)}var In,Rn,Nn;function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kn.apply(this,arguments)}var Fn;function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},An.apply(this,arguments)}var Mn;function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dn.apply(this,arguments)}var Bn;function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tn.apply(this,arguments)}var Hn;function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zn.apply(this,arguments)}var Ln;function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$n.apply(this,arguments)}var Kn,_n;function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vn.apply(this,arguments)}var Un;function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wn.apply(this,arguments)}var Zn;function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qn.apply(this,arguments)}var Yn;function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}var Jn;function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gn.apply(this,arguments)}var Qn;function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ea.apply(this,arguments)}var ta;function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra.apply(this,arguments)}var na;function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aa.apply(this,arguments)}var ia;function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oa.apply(this,arguments)}var la,ca;function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},da.apply(this,arguments)}var sa;function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(this,arguments)}var fa,pa=function(e){return L.createElement("svg",ua({viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),sa||(sa=L.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 ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ba.apply(this,arguments)}var ha;function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},va.apply(this,arguments)}var ma;function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ga.apply(this,arguments)}var ya;function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wa.apply(this,arguments)}var Oa;function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ea.apply(this,arguments)}var Pa;function Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ca.apply(this,arguments)}var Sa;function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ja.apply(this,arguments)}var xa;function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ia.apply(this,arguments)}var Ra;function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Na.apply(this,arguments)}var ka;function Fa(){return Fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fa.apply(this,arguments)}var Aa;function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ma.apply(this,arguments)}m("arrow-to-right",(function(e){return L.createElement("svg",Mr({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Ir||(Ir=L.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"})))})),m("left-arrow-to-left",(function(e){return L.createElement("svg",Br({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Dr||(Dr=L.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"})))})),m("top-arrow-to-top",(function(e){return L.createElement("svg",Hr({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Tr||(Tr=L.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"})))})),m("arrow-to-bottom",(function(e){return L.createElement("svg",Lr({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),zr||(zr=L.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"})))})),m("collapse-open",(function(e){return L.createElement("svg",Kr({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),$r||($r=L.createElement("path",{fill:"#83868C",fillRule:"nonzero",d:"M8 11 4 6h8z"})))})),m("harmmer",(function(e){return L.createElement("svg",sn({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},e),dn||(dn=L.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"})))})),m("dialog",(function(e){return L.createElement("svg",fn({className:"icon",viewBox:"0 0 1155 1024",xmlns:"http://www.w3.org/2000/svg"},e),un||(un=L.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"})))})),m("setting",(function(e){return L.createElement("svg",bn({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),pn||(pn=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("path",{d:"M0 0h16v16H0z"}),L.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"}))))})),m("picker-icon",(function(e){return L.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),hn||(hn=L.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},L.createElement("path",{d:"M14.5 14.5h-13v-13h13v1.998"}),L.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"}))))})),m("edit-full-btn",(function(e){return L.createElement("svg",Wn({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Un||(Un=L.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinejoin:"round"},L.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"}))))})),m("event-setting",(function(e){return L.createElement("svg",oa({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),ia||(ia=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("path",{d:"M0 0h16v16H0z"}),L.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"}),L.createElement("path",{d:"M1.333 3a1 1 0 0 1 1-1h11.334a1 1 0 0 1 1 1v3H1.333V3Z",stroke:"#151B26"}),L.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"}),L.createElement("g",{stroke:"#151B26",strokeLinejoin:"round"},L.createElement("path",{d:"m13.192 14.017 1.5-2.5-1.5-2.5h-3l-1.5 2.5 1.5 2.5z"}),L.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"})))))})),m("add-btn",(function(e){return L.createElement("svg",qn({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Zn||(Zn=L.createElement("path",{d:"M8.5 2v5.5H14v1H8.5V14h-1V8.5H2v-1h5.5V2h1Z",fill:"currentColor",fillRule:"evenodd"})))})),m("close-btn",(function(e){return L.createElement("svg",Xn({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Yn||(Yn=L.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"M13.664 10.507 8.007 4.85 2.35 10.507",fill:"none",fillRule:"evenodd"})))})),m("open-btn-r",(function(e){return L.createElement("svg",Gn({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Jn||(Jn=L.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"m2.35 5.497 5.657 5.657 5.657-5.657",fill:"none",fillRule:"evenodd"})))})),m("delete-easy-btn",(function(e){return L.createElement("svg",ea({viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Qn||(Qn=L.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"})))})),m("delete-bold-btn",(function(e){return L.createElement("svg",ra({viewBox:"0 0 13 14",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),ta||(ta=L.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"})))})),m("drag-six-circle-btn",(function(e){return L.createElement("svg",aa({viewBox:"0 0 7 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),na||(na=L.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"})))})),m("drag-btn",(function(e){return L.createElement("svg",Cn({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Pn||(Pn=L.createElement("g",{fill:"#FFF",fillRule:"nonzero"},L.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"}),L.createElement("path",{d:"M8.4 3v4.7h4.7v.8H8.4V13h-.8V8.5H3.1v-.8l4.5-.001V3h.8Z"}))))})),m("more-btn",(function(e){return L.createElement("svg",wn({viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),yn||(yn=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("path",{d:"M0 0h14v14H0z"}),L.createElement("circle",{fill:"#FFF",cx:2.8,cy:7,r:1}),L.createElement("circle",{fill:"#FFF",cx:11.2,cy:7,r:1}),L.createElement("circle",{fill:"#FFF",cx:7,cy:7,r:1}))))})),m("copy-btn",(function(e){return L.createElement("svg",gn({viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),mn||(mn=L.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"})))})),m("delete-btn",(function(e){return L.createElement("svg",En({viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),On||(On=L.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"})))})),m("up-btn",(function(e){return L.createElement("svg",xn({viewBox:"0 0 28 29",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"icon"},e),Sn||(Sn=L.createElement("defs",null,L.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"},L.createElement("stop",{stopColor:"#FFF",offset:"0%"}),L.createElement("stop",{stopColor:"#FFF",stopOpacity:0,offset:"100%"})),L.createElement("radialGradient",{cx:"77.918%",cy:"13.589%",fx:"77.918%",fy:"13.589%",r:"45.882%",id:"up-btn_svg__j"},L.createElement("stop",{stopColor:"#FFF",offset:"0%"}),L.createElement("stop",{stopColor:"#FFF",stopOpacity:0,offset:"100%"})),L.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"up-btn_svg__a"},L.createElement("stop",{stopColor:"#0752E9",offset:"0%"}),L.createElement("stop",{stopColor:"#2468F2",offset:"100%"})),L.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"up-btn_svg__g"},L.createElement("stop",{stopColor:"#0752E9",offset:"0%"}),L.createElement("stop",{stopColor:"#2468F2",offset:"100%"})),L.createElement("filter",{x:"-75%",y:"-75%",width:"250%",height:"250%",filterUnits:"objectBoundingBox",id:"up-btn_svg__c"},L.createElement("feGaussianBlur",{stdDeviation:7,in:"SourceGraphic"})),L.createElement("filter",{x:"-100%",y:"-100%",width:"300%",height:"300%",filterUnits:"objectBoundingBox",id:"up-btn_svg__h"},L.createElement("feGaussianBlur",{stdDeviation:2,in:"SourceGraphic"})),L.createElement("circle",{id:"up-btn_svg__f",cx:3,cy:2.5,r:2.5}),L.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"}))),jn||(jn=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.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)"}),L.createElement("g",{transform:"translate(6 1.5)"},L.createElement("mask",{id:"up-btn_svg__d",fill:"#fff"},L.createElement("use",{xlinkHref:"#up-btn_svg__b"})),L.createElement("use",{fill:"#F2F2FF",xlinkHref:"#up-btn_svg__b"}),L.createElement("circle",{fill:"#2468F2",filter:"url(#up-btn_svg__c)",mask:"url(#up-btn_svg__d)",cx:19,cy:-2,r:14}),L.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)"})),L.createElement("g",{transform:"translate(11 6.814)"},L.createElement("mask",{id:"up-btn_svg__i",fill:"#fff"},L.createElement("use",{xlinkHref:"#up-btn_svg__f"})),L.createElement("use",{fill:"url(#up-btn_svg__g)",xlinkHref:"#up-btn_svg__f"}),L.createElement("path",{fill:"#2468F2",filter:"url(#up-btn_svg__h)",mask:"url(#up-btn_svg__i)",d:"M3-3h6v6H3z"})),L.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)"}))))})),m("clear-btn",(function(e){return L.createElement("svg",kn({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},e),In||(In=L.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"})),Rn||(Rn=L.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"})),Nn||(Nn=L.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"})))})),m("open-btn",pa),m("merge-icon",(function(e){return L.createElement("svg",An({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Fn||(Fn=L.createElement("g",{fillRule:"evenodd"},L.createElement("rect",{x:1,y:1,width:22,height:3,rx:1.5}),L.createElement("rect",{x:1,y:7,width:22,height:3,rx:1.5}),L.createElement("rect",{x:1,y:20,width:22,height:3,rx:1.5}),L.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"}))))})),m("cancel-icon",(function(e){return L.createElement("svg",Dn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Mn||(Mn=L.createElement("g",{fillRule:"evenodd"},L.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"}),L.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"}),L.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"}))))})),m("copy-icon",(function(e){return L.createElement("svg",Tn({viewBox:"0 0 24 23",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Bn||(Bn=L.createElement("g",{fillRule:"evenodd"},L.createElement("rect",{x:1.5,y:7.5,width:15,height:14,rx:2}),L.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"}))))})),m("delete-icon",(function(e){return L.createElement("svg",zn({viewBox:"0 0 24 23",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Hn||(Hn=L.createElement("g",{fillRule:"evenodd"},L.createElement("path",{opacity:.66,d:"M11 9.5v9H8v-9zM16 9.5v9h-3v-9z"}),L.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}))))})),m("fixed-icon",(function(e){return L.createElement("svg",$n({fill:"currentColor",viewBox:"0 0 1024 1024","data-spm-anchor-id":"a1z1go8z.25060599.0.i11.71e369e4cItcn5",className:"icon"},e),Ln||(Ln=L.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"})))})),m("no-fixed-icon",(function(e){return L.createElement("svg",Vn({fill:"currentColor",viewBox:"0 0 1024 1024","data-spm-anchor-id":"a1z1go8z.25060599.0.i10.71e369e4cItcn5",className:"icon"},e),Kn||(Kn=L.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"})),_n||(_n=L.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"})))})),m("editor-shortcut",(function(e){return L.createElement("svg",Ma({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},e),Aa||(Aa=L.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"})))})),m("display-inline",(function(e){return L.createElement("svg",Vr({viewBox:"0 0 20 8",className:"icon"},e),_r||(_r=L.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"})))})),m("display-block",(function(e){return L.createElement("svg",qr({viewBox:"0 0 22 14",className:"icon"},e),Ur||(Ur=L.createElement("path",{opacity:.15,d:"M19 3v8H3V3h16m1-1H2v10h18V2z"})),Wr||(Wr=L.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"})),Zr||(Zr=L.createElement("path",{opacity:.35,d:"M3 3h16v8H3z"})))})),m("display-inline-block",(function(e){return L.createElement("svg",Gr({viewBox:"0 0 28 14",className:"icon"},e),Yr||(Yr=L.createElement("path",{d:"M25 3v8H3V3h22m1-1H2v10h24V2z",opacity:.15})),Xr||(Xr=L.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"})),Jr||(Jr=L.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"})))})),m("display-flex",(function(e){return L.createElement("svg",cn({viewBox:"0 0 23 14",className:"icon"},e),Qr||(Qr=L.createElement("path",{d:"M21 2v10H2V2h19zm1-1H1v12h21V1z",opacity:.15})),en||(en=L.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"})),tn||(tn=L.createElement("path",{opacity:.4,d:"M3 3h5v8H3z"})),rn||(rn=L.createElement("path",{d:"M4 4v6h3V4H4zm4-1v8H3V3h5z"})),nn||(nn=L.createElement("path",{opacity:.4,d:"M9 3h5v8H9z"})),an||(an=L.createElement("path",{d:"M10 4v6h3V4h-3zm4-1v8H9V3h5z"})),on||(on=L.createElement("path",{opacity:.4,d:"M15 3h5v8h-5z"})),ln||(ln=L.createElement("path",{d:"M16 4v6h3V4h-3zm4-1v8h-5V3h5z"})))})),m("back-up",(function(e){return L.createElement("svg",da({viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"icon"},e),la||(la=L.createElement("defs",null,L.createElement("linearGradient",{x1:"100%",y1:"101.089%",x2:"0%",y2:"-14.125%",id:"back-up_svg__c"},L.createElement("stop",{stopColor:"#FFF",offset:"0%"}),L.createElement("stop",{stopColor:"#FFF8F8",offset:"46.533%"}),L.createElement("stop",{stopColor:"#DDFEEB",offset:"100%"})),L.createElement("linearGradient",{x1:"100%",y1:"51.269%",x2:"0%",y2:"48.407%",id:"back-up_svg__f"},L.createElement("stop",{stopColor:"#FFF",offset:"0%"}),L.createElement("stop",{stopColor:"#FFF8F8",offset:"46.533%"}),L.createElement("stop",{stopColor:"#DDFEEB",offset:"100%"})),L.createElement("filter",{x:"-24.3%",y:"-19.2%",width:"148.6%",height:"153.6%",filterUnits:"objectBoundingBox",id:"back-up_svg__a"},L.createElement("feOffset",{dy:1,in:"SourceAlpha",result:"shadowOffsetOuter1"}),L.createElement("feGaussianBlur",{stdDeviation:1,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),L.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"})),L.createElement("filter",{x:"-25%",y:"-125%",width:"150%",height:"450%",filterUnits:"objectBoundingBox",id:"back-up_svg__d"},L.createElement("feOffset",{dy:1,in:"SourceAlpha",result:"shadowOffsetOuter1"}),L.createElement("feGaussianBlur",{stdDeviation:1,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),L.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"})),L.createElement("rect",{id:"back-up_svg__e",x:0,y:0,width:14,height:2,rx:1}),L.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"}))),ca||(ca=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("rect",{fill:"#2468F2",width:32,height:32,rx:16}),L.createElement("g",{fillRule:"nonzero"},L.createElement("use",{fill:"#000",filter:"url(#back-up_svg__a)",xlinkHref:"#back-up_svg__b"}),L.createElement("use",{fill:"url(#back-up_svg__c)",xlinkHref:"#back-up_svg__b"})),L.createElement("g",{transform:"translate(9 7.702)",fillRule:"nonzero"},L.createElement("use",{fill:"#000",filter:"url(#back-up_svg__d)",xlinkHref:"#back-up_svg__e"}),L.createElement("use",{fill:"url(#back-up_svg__f)",xlinkHref:"#back-up_svg__e"})))))})),m("down-arrow",pa),m("editor-search",(function(e){return L.createElement("svg",ba({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),fa||(fa=L.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"})))})),m("editor-help",(function(e){return L.createElement("svg",va({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),ha||(ha=L.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"})))})),m("editor-fixed",(function(e){return L.createElement("svg",ga({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),ma||(ma=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("path",{d:"M0 0h16v16H0z"}),L.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"}))))})),m("editor-no-fixed",(function(e){return L.createElement("svg",wa({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),ya||(ya=L.createElement("g",{fillRule:"nonzero",fill:"none"},L.createElement("path",{d:"M0 0h16v16H0z"}),L.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"}))))})),m("editor-renderer",(function(e){return L.createElement("svg",Ea({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Oa||(Oa=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("path",{d:"M0 0h48v48H0z"}),L.createElement("g",{strokeWidth:1.25,stroke:"currentColor",strokeLinejoin:"round"},L.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"})))))})),m("editor-outline",(function(e){return L.createElement("svg",Ca({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Pa||(Pa=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("path",{d:"M0 0h48v48H0z"}),L.createElement("g",{transform:"translate(14 14)"},L.createElement("path",{d:"M0 0h20v20H0z"}),L.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",d:"M3.121 5.625v11.25M3.121 10.625h2.5M3.121 16.875h2.5"}),L.createElement("circle",{fill:"currentColor",cx:3.125,cy:4.375,r:1.875}),L.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"})))))})),m("editor-code",(function(e){return L.createElement("svg",ja({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Sa||(Sa=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("path",{d:"M0 0h48v48H0z"}),L.createElement("path",{d:"M14 14h20v20H14z"}),L.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinejoin:"round",d:"M16.5 17.75h15v12.5h-15z"}),L.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",d:"m25.709 20.841-3.362 6.284"}),L.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"}))))})),m("editor-common-config",(function(e){return L.createElement("svg",Ia({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),xa||(xa=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("path",{d:"M0 0h20v20H0z"}),L.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"}),L.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"}))))})),m("editor-double-arrow",(function(e){return L.createElement("svg",Na({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),Ra||(Ra=L.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"})))})),m("search-clear",(function(e){return L.createElement("svg",Fa({viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},e),ka||(ka=L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("path",{d:"M6 12A6 6 0 1 1 6 0a6 6 0 0 1 0 12Z",fill:"currentColor"}),L.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 Da=function(e){function t(t){var r=e.call(this,t)||this;Object.defineProperty(r,"ref",{enumerable:!0,configurable:!0,writable:!0,value:$.createRef()}),Object.defineProperty(r,"curInputBox",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"localStorageKey",{enumerable:!0,configurable:!0,writable:!0,value:"amis-editor-search-panel"}),Object.defineProperty(r,"curTagFolded",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(r,"lastSearchTag",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t.searchPanelUUID&&(r.localStorageKey=t.searchPanelUUID);var n=[],a={};if(t.allResult&&t.allResult.length>0){var i=r.getResultTags(t.allResult);n=i.curResultTags,a=i.curResultByTag}return r.state={resultTags:n,resultByTag:a,curKeyword:t.externalKeyword||"",searchResult:[],searchResultByTag:{},visible:!1,curKeywordSearchHistory:r.getSearchHistory(),toggleTagFolderStatus:!0},r}return A(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value: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))}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.curInputBox&&this.curInputBox.removeEventListener("keyup",this.bindEnterEvent)}}),Object.defineProperty(t.prototype,"UNSAFE_componentWillReceiveProps",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r=e.externalKeyword,n=e.allResult;if(r!==this.state.curKeyword&&this.setState({curKeyword:r},(function(){t.groupedResultByKeyword(r)})),n!==this.props.allResult){var a=[],i={};if(n&&n.length>0){var o=this.getResultTags(n);a=o.curResultTags,i=o.curResultByTag}this.setState({resultTags:a,resultByTag:i})}}}),Object.defineProperty(t.prototype,"getSearchHistory",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=[];if(window.localStorage){var t=window.localStorage.getItem(this.localStorageKey);if(t){var r=JSON.parse(t);r&&Array.isArray(r)&&(e=r)}}return e}}),Object.defineProperty(t.prototype,"getResultTags",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=[],r={},n=this.props.tagKey||"tags";return e.forEach((function(e){!Me(e)&&e[n]&&(Array.isArray(e[n])?e[n].concat():e[n]?[e[n]]:[k("0d98c74797e49d00bcc4c17c9d557a2b")]).forEach((function(n){t.indexOf(n)<0&&t.push(n),r[n]||(r[n]=[]),r[n].push(e)}))})),{curResultTags:t,curResultByTag:r}}}),Object.defineProperty(t.prototype,"groupedResultByKeyword",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.allResult,r=[],n={},a=e||this.state.curKeyword,i=this.props.tagKey||"tags",o={},l=a?new RegExp(Kt(a),"i"):null;t.forEach((function(t){if(Me(t)&&l&&l.test(t))r.push(t);else if(!e||["name","description","scaffold.type"].some((function(e){return t[e]&&l&&l.test(t[e])}))){if(t[i])(Array.isArray(t[i])?t[i].concat():t[i]?[t[i]]:[k("0d98c74797e49d00bcc4c17c9d557a2b")]).forEach((function(e){n[e]=o[e]||[],n[e].push(t)}));else r.push(t)}})),this.setState({searchResult:r,searchResultByTag:n})}}),Object.defineProperty(t.prototype,"bindFocusEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({visible:!0})}}),Object.defineProperty(t.prototype,"bindBlurEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.state.curKeyword;this.setState({visible:!1},(function(){t&&e.addSearchHistory(t),e.props.onChange(t)}))}}),Object.defineProperty(t.prototype,"updateCurKeyword",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r=e;r=r?r.trim():r,this.setState({curKeyword:r},(function(){t.groupedResultByKeyword(r),t.props.immediateChange&&t.props.onChange(r)}))}}),Object.defineProperty(t.prototype,"changeTagFoldStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){t.preventDefault(),t.stopPropagation(),this.curInputBox.focus(),this.curTagFolded[e]=!this.curTagFolded[e],this.setState({toggleTagFolderStatus:!this.state.toggleTagFolderStatus})}}),Object.defineProperty(t.prototype,"bindEnterEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;e.preventDefault();var r=this.state.curKeyword;13===(null==e?void 0:e.keyCode)&&this.setState({visible:!1},(function(){t.addSearchHistory(r),t.props.onChange(r)}))}}),Object.defineProperty(t.prototype,"bindClearActionEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.setState({curKeyword:"",searchResult:[],searchResultByTag:{}},(function(){e.props.onChange("")}))}}),Object.defineProperty(t.prototype,"bindTagClickEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this,n=this.state.resultByTag[e];this.setState({visible:!1,curKeyword:e,searchResult:n,searchResultByTag:(t={},t[e]=n,t)},(function(){r.props.onTagChange&&r.props.onTagChange(e)}))}}),Object.defineProperty(t.prototype,"addSearchHistory",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.state.curKeywordSearchHistory;t.indexOf(e)>-1||(10===t.length?(t.shift(),t.push(e)):t.push(e),this.updateSearchHistory())}}),Object.defineProperty(t.prototype,"clickKeywordEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;this.setState({visible:!1,curKeyword:e},(function(){t.groupedResultByKeyword(e),t.props.onChange(e)}))}}),Object.defineProperty(t.prototype,"deleteSearchHistory",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e.preventDefault(),e.stopPropagation(),this.curInputBox.focus();var r=this.state.curKeywordSearchHistory,n=r.indexOf(t);r.splice(n,1),this.updateSearchHistory()}}),Object.defineProperty(t.prototype,"clearSearchHistory",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;e.preventDefault(),e.stopPropagation(),this.curInputBox.focus();var r=this.state.curKeywordSearchHistory;r&&r.length>0&&this.setState({curKeywordSearchHistory:[]},(function(){t.updateSearchHistory()}))}}),Object.defineProperty(t.prototype,"updateSearchHistory",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(window.localStorage){var e=this.state.curKeywordSearchHistory;window.localStorage.setItem(this.localStorageKey,JSON.stringify(e))}}}),Object.defineProperty(t.prototype,"renderNameByKeyword",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(t&&~e.indexOf(t)){var r=e.indexOf(t),n=r+t.length;return $.createElement("span",null,e.substring(0,r),$.createElement("span",{className:"is-keyword"},t),e.substring(n))}return e}}),Object.defineProperty(t.prototype,"resultIsHasScroll",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this,n=0;return(e?Object.keys(e):[]).map((function(t){r.curTagFolded[t]?n+=1:n+=e[t].length+1})),n>t}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props,r=t.allResult,a=t.closeAutoComplete,i=t.immediateChange,o=this.state,l=o.resultTags,c=o.curKeyword,d=o.searchResult,s=o.searchResultByTag,u=o.visible,f=s?Object.keys(s):[],p=T([],this.state.curKeywordSearchHistory,!0).reverse(),h=!1;return u&&r&&r.length>0&&(h=!0),a&&c&&(h=!1),a&&(!l||l&&0===l.length)&&(!p||p&&0===p.length)&&(h=!1),$.createElement("div",{className:"editor-InputSearch-panel",ref:this.ref},$.createElement(b,{className:"editor-InputSearch",value:c,onChange:this.updateCurKeyword,placeholder:k("2168c5735883bd040eaf09909d0911b8"),clearable:!1,onFocus:this.bindFocusEvent,onBlur:this.bindBlurEvent},$.createElement($.Fragment,null,i&&(c?$.createElement(n,{icon:"search-clear",className:"icon delete-btn-icon",onClick:this.bindClearActionEvent}):$.createElement(n,{icon:"editor-search",className:"icon",onClick:this.bindBlurEvent})),!i&&$.createElement($.Fragment,null,c&&$.createElement(n,{icon:"search-clear",className:"icon delete-btn-icon margin-right",onClick:this.bindClearActionEvent}),$.createElement(n,{icon:"editor-search",className:"icon",onClick:this.bindBlurEvent})))),$.createElement("div",{className:"editor-InputSearch-content ".concat(h?"":"hidden-status")},!c&&p&&p.length>0&&$.createElement("div",{className:"search-history ".concat(l&&l.length>0?"has-border-bottom":"")},$.createElement("div",{className:"header"},$.createElement("div",{className:"header-title"},"搜索历史"),$.createElement("div",{className:"header-clear-icon",onClick:function(t){return e.clearSearchHistory(t)}},"清空")),$.createElement("div",{className:"history-cont ".concat(p.length>6?"hasScrollBtn":"")},p.map((function(t,r){return $.createElement("div",{className:"history-item",key:"".concat(t,"-").concat(r),onClick:function(){return e.clickKeywordEvent(t)}},$.createElement("div",{className:"history-keyword"},t),$.createElement("div",{className:"delete-icon",title:"点击删除这条搜索记录"},$.createElement(n,{icon:"close",onClick:function(r){return e.deleteSearchHistory(r,t)}})))})))),c&&0===d.length&&0===f.length&&$.createElement("div",{className:"search-result-list"},$.createElement("div",{className:"search-result-placeholder"},"搜索结果为空,您可以换个关键字继续查找。")),c&&d.length>0&&$.createElement("div",{className:"search-result-list ".concat(d.length>6?"hasScrollBtn":"")},d.length>1&&$.createElement("div",{className:"subRenderers-list only-one-tag"},d.map((function(t,r){return $.createElement("div",{className:"subRenderers-item",key:"subRenderers-only-one-tag-".concat(r),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))),c&&f.length>0&&$.createElement("div",{className:"search-result-list ".concat(this.resultIsHasScroll(s,6)?"hasScrollBtn":"")},f.length>1&&f.map((function(t,r){return $.createElement("div",{className:"multiple-subRenderers-list",key:"".concat(t,"-subRenderers-list")},$.createElement("div",{className:_("subRenderers-header",{"is-folded":!!e.curTagFolded[t]}),title:e.curTagFolded[t]?k("e4cefe7df36e92da1d7e875b92655507"):k("7ae451de83aa6f5f140e941904377391"),onClick:function(r){e.changeTagFoldStatus(t,r)}},t,$.createElement(n,{icon:"right-arrow-bold"})),$.createElement("div",{className:_("subRenderers-list",{"is-folded":!!e.curTagFolded[t]})},s[t]&&s[t].map((function(t,r){return $.createElement("div",{className:"subRenderers-item",key:r,onClick:function(){return e.clickKeywordEvent(t.name)}},e.renderNameByKeyword(t.name,c))}))))})),1===f.length&&f.map((function(t,r){return $.createElement("div",{className:"subRenderers-list only-one-tag",key:"subRenderers-tag-".concat(t)},s[t]&&s[t].map((function(t,r){return $.createElement("div",{className:"subRenderers-item",key:"subRenderers-only-one-tag-".concat(r),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))}))),!c&&l&&l.length>0&&$.createElement("div",{className:"tag-list"},$.createElement("div",{className:"header"},"组件分类"),$.createElement("div",{className:"tag-list-cont"},l.length?l.map((function(t,r){return $.createElement("div",{className:"tag-item",key:"".concat(t,"-").concat(r),onClick:function(){return e.bindTagClickEvent(t)}},t)})):null))))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getSearchHistory",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"bindFocusEvent",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"bindBlurEvent",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],t.prototype,"updateCurKeyword",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String,Object]),D("design:returntype",void 0)],t.prototype,"changeTagFoldStatus",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"bindEnterEvent",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"bindClearActionEvent",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],t.prototype,"bindTagClickEvent",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],t.prototype,"addSearchHistory",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],t.prototype,"clickKeywordEvent",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object,String]),D("design:returntype",void 0)],t.prototype,"deleteSearchHistory",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"clearSearchHistory",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"updateSearchHistory",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String,String]),D("design:returntype",void 0)],t.prototype,"renderNameByKeyword",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object,Number]),D("design:returntype",void 0)],t.prototype,"resultIsHasScroll",null),t=M([ce,D("design:paramtypes",[Object])],t)}($.Component),Ba=function(e){function t(t){var r=e.call(this,t)||this;Object.defineProperty(r,"localStorageKey",{enumerable:!0,configurable:!0,writable:!0,value:"amis-editor-renderer-search-history"}),Object.defineProperty(r,"lastSubRenderersTag",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var n=t.store.subRenderersByOrder;n=n.filter((function(e){return!e.disabledRendererPlugin}));var a=t.store,i=a.subRenderersKeywords,o=a.subRenderersTag;return r.state={subRenderersByOrder:n,defaultKeyword:i||o||""},r.lastSubRenderersTag=t.store.subRenderersTag,r.changeSubRenderersTag=r.changeSubRenderersTag.bind(r),r}return A(t,e),Object.defineProperty(t.prototype,"UNSAFE_componentWillReceiveProps",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.store.subRenderersTag,r=e.store.subRenderersKeywords;t===this.lastSubRenderersTag||r||(this.lastSubRenderersTag=t,this.setState({defaultKeyword:t}))}}),Object.defineProperty(t.prototype,"changeSubRenderersTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.lastSubRenderersTag=e,this.props.store.changeSubRenderersTag(e)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.state,t=e.subRenderersByOrder,r=e.defaultKeyword,n=this.props.store.changeSubRenderersKeywords;return $.createElement(Da,{allResult:t,externalKeyword:r,searchPanelUUID:this.localStorageKey,onChange:n,onTagChange:this.changeSubRenderersTag,immediateChange:!0,closeAutoComplete:!0})}}),t=M([ce,D("design:paramtypes",[Object])],t)}($.Component),Ta=function(e){function t(t){var r=e.call(this,t)||this;Object.defineProperty(r,"localStorageKey",{enumerable:!0,configurable:!0,writable:!0,value:"amis-editor-custom-renderer-search-history"});var n=t.store.customRenderersByOrder;n=n.filter((function(e){return!e.disabledRendererPlugin}));var a=t.store,i=a.customRenderersKeywords,o=a.customRenderersTag;return r.state={customRenderersByOrder:n,defaultKeyword:i||o||""},r}return A(t,e),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.state,t=e.customRenderersByOrder,r=e.defaultKeyword,n=this.props.store,a=n.changeCustomRenderersKeywords,i=n.changeCustomRenderersTag;return t&&t.length>0?$.createElement(Da,{allResult:t,externalKeyword:r,searchPanelUUID:this.localStorageKey,onChange:a,onTagChange:i}):null}}),t=M([ce,D("design:paramtypes",[Object])],t)}($.Component),Ha=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"state",{enumerable:!0,configurable:!0,writable:!0,value:{toggleCollapseFolderStatus:!1}}),Object.defineProperty(t,"curCollapseFolded",{enumerable:!0,configurable:!0,writable:!0,value:{}}),t}return A(t,e),Object.defineProperty(t.prototype,"handleRegionFilterClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.currentTarget.getAttribute("data-value"),r=this.props,n=r.store,a=r.manager;t=t===n.subRendererRegion?"":t,a.switchToRegion(t)}}),Object.defineProperty(t.prototype,"handleDragStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e.currentTarget.getAttribute("data-id");e.dataTransfer.setData('dnd-dom/[data-id="'.concat(r,'"]'),"")}}),Object.defineProperty(t.prototype,"handleClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.currentTarget.getAttribute("data-dnd-id");this.props.manager.addElem(t)}}),Object.defineProperty(t.prototype,"changeCollapseFoldStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.curCollapseFolded[e]=!this.curCollapseFolded[e],this.setState({toggleCollapseFolderStatus:!this.state.toggleCollapseFolderStatus}),t.preventDefault(),t.stopPropagation()}}),Object.defineProperty(t.prototype,"renderThumb",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.manager;return e?i(e,{onAction:_e},t.env):$.createElement("p",null,"没有预览图")}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props,r=t.store,a=t.searchRendererType,i=t.className,o=this.props.groupedRenderers||{},l=Object.keys(o);return $.createElement("div",{className:_("ae-RendererList",i)},"renderer"===a&&$.createElement(Ba,{store:r}),"custom-renderer"===a&&$.createElement(Ta,{store:r}),$.createElement("hr",{className:"margin-top"}),$.createElement("div",{className:"ae-RendererList-groupWrap hoverShowScrollBar"},l.length?l.map((function(t,a){var i=o[t];return i&&i.length?$.createElement($.Fragment,{key:t},$.createElement("div",{key:"".concat(t,"-head"),className:"ae-RendererList-head collapse-header",onClick:function(r){e.changeCollapseFoldStatus(t,r)}},t,$.createElement("div",{className:_("expander-icon",{"is-folded":!!e.curCollapseFolded[t]}),title:e.curCollapseFolded[t]?k("e4cefe7df36e92da1d7e875b92655507"):k("7ae451de83aa6f5f140e941904377391")},$.createElement(n,{icon:"right-arrow-bold"}))),$.createElement("div",{key:"".concat(t,"-content"),className:_("ae-RendererList-group collapse-content",{"is-folded":!!e.curCollapseFolded[t]})},i.map((function(t){var i="".concat(a,"_").concat(t.id),o=zt(t);return $.createElement("div",{key:i,className:"ae-RendererList-item",draggable:!0,"data-id":i,"data-dnd-type":"subrenderer","data-dnd-id":t.id,"data-dnd-data":JSON.stringify(t.scaffold||{type:t.type}),onDragStart:function(r){return e.handleDragStart(r,t.name)}},$.createElement("div",{className:"icon-box","data-dnd-id":t.id,title:"点击添加「".concat(t.name,"」"),onClick:e.handleClick},o&&$.createElement(n,{icon:t.pluginIcon}),!o&&$.createElement("i",{className:_("fa-fw",t.icon||"fa fa-circle-thin")})),$.createElement("div",{className:"ae-RendererInfo","data-dnd-id":t.id,onClick:e.handleClick},t.name),$.createElement(g,{tooltipClassName:"ae-RendererThumb",trigger:"hover",rootClose:!0,placement:"right",tooltip:{offset:[10,0],children:function(){return $.createElement("div",null,$.createElement("div",{className:"ae-Renderer-title"},t.name),t.description||t.docLink?$.createElement("div",{className:"ae-Renderer-info"},$.createElement(h,{html:t.description?t.description:""}),t.docLink&&$.createElement("a",{target:"_blank",href:r.amisDocHost+t.docLink},"详情")):null,$.createElement("div",{className:"ae-Renderer-preview"},e.renderThumb(t.previewSchema)))}}},$.createElement("div",{className:"ae-RendererIcon"},$.createElement(n,{icon:"editor-help",className:"icon"}))))})))):null})):$.createElement("span",null,"没有找到可用组件,您可以换个关键字继续查找。")))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleRegionFilterClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object,String]),D("design:returntype",void 0)],t.prototype,"handleDragStart",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String,Object]),D("design:returntype",void 0)],t.prototype,"changeCollapseFoldStatus",null),t=M([ce],t)}($.Component),za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"handleSelect",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e&&this.props.store.changeRenderersTabsKey(e)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.store,r=e.manager,n=t.renderersTabsKey||"base-renderers",a=t.theme,i=t.customRenderersByOrder||[],o=t.groupedSubRenderers||{},l=t.groupedCustomRenderers||{};return $.createElement("div",{className:"ae-RendererPanel"},$.createElement("div",{className:"panel-header"},"组件"),$.createElement("div",{className:"ae-RendererPanel-content"},t.showCustomRenderersPanel&&i.length>0&&$.createElement(y,{theme:a,tabsMode:"line",className:"ae-RendererList-tabs",linksClassName:"ae-RendererList-tabs-header",contentClassName:"ae-RendererList-tabs-content",activeKey:n,onSelect:this.handleSelect},$.createElement(w,{key:"base-renderers",eventKey:"base-renderers",title:k("5cb297585d4c81bb8fdbd31210a30d6f"),className:"ae-RendererList-tabs-panel base-renderers",mountOnEnter:!0,unmountOnExit:!1},$.createElement(Ha,{groupedRenderers:o,store:t,manager:r,searchRendererType:"renderer"})),$.createElement(w,{key:"custom-renderers",eventKey:"custom-renderers",title:k("6fce1c9aa3654ae2f0eedcc068a7e189"),className:"ae-RendererList-tabs-panel custom-renderers",mountOnEnter:!0,unmountOnExit:!1},$.createElement(Ha,{groupedRenderers:l,store:t,manager:r,searchRendererType:"custom-renderer"}))),(!t.showCustomRenderersPanel||Object.keys(l).length<1)&&$.createElement(Ha,{className:"only-base-component",groupedRenderers:o,store:t,manager:r,searchRendererType:"renderer"})))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],t.prototype,"handleSelect",null),t=M([ce],t)}($.Component),La=fe.model("EditorRoot",{isMobile:!1,isSubEditor:!1,amisDocHost:fe.optional(fe.string,"https://baidu.gitee.io"),root:fe.optional(rr,{id:"root",label:"Root"}),theme:"cxd",hoverId:"",hoverRegion:"",activeId:"",activeRegion:"",mouseMoveRegion:"",selections:fe.optional(fe.frozen(),[]),contextId:"",dragMode:"move",dragId:"",dragType:"",dragSchema:fe.frozen(),dropId:"",dropRegion:"",planDropId:"",planDropRegion:"",insertId:"",insertRegion:"",insertRenderers:fe.optional(fe.frozen(),[]),insertRenderersKeywords:"",insertTag:k("a8b0c20416853bda54120bf19477ad11"),insertSelected:"",insertMode:"insert",insertOrigId:"",insertBeforeId:"",showInsertRenderer:!1,schema:fe.frozen(),versionId:0,schemaHistory:fe.optional(fe.array(fe.frozen()),[]),toolbars:fe.optional(fe.frozen(),[]),panels:fe.optional(fe.frozen(),[]),showCustomRenderersPanel:!1,renderersTabsKey:"base-renderers",subRenderers:fe.optional(fe.frozen(),[]),subRenderersKeywords:"",subRenderersTag:"",subRendererRegion:"",customRenderersKeywords:"",customRenderersTag:"",panelKey:"",leftPanelKey:"",leftPanelOpenStatus:!0,jsonSchemaUri:"",scaffoldForm:fe.maybe(fe.frozen()),scaffoldFormBuzy:!1,scaffoldError:"",popOverForm:fe.maybe(fe.frozen()),subEditorContext:fe.maybe(fe.frozen()),superEditorData:fe.maybe(fe.frozen()),calculateStarted:!1,targetNames:fe.optional(fe.array(fe.frozen()),[]),ctx:fe.frozen(),i18nEnabled:fe.optional(fe.boolean,!1),appLocale:fe.optional(fe.string,"zh-CN"),appCorpusData:fe.optional(fe.frozen(),{}),appLocaleState:fe.optional(fe.number,0)}).views((function(e){return{get filteredSchema(){var t,r,n;return gt(null!==(n=null===(r=(t=ve(e)).schemaFilter)||void 0===r?void 0:r.call(t,e.schema))&&void 0!==n?n:e.schema)},get filteredSchemaForPreview(){var t,r,n,a=Ge(e.schema);return null!==(n=null===(r=(t=ve(e)).schemaFilter)||void 0===r?void 0:r.call(t,a))&&void 0!==n?n: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 r=this.getNodeById(e.activeId);r;){if(r.childRegions.length||(null===(t=r.info)||void 0===t?void 0:t.regions))return r.id;r=r.host}return""},isRegionHighlighted:function(t,r){return!e.insertOrigId&&t===e.hoverId&&r===e.hoverRegion||t===e.activeId&&e.activeRegion===r||t===e.dropId&&e.dropRegion===r||!e.insertOrigId&&t===e.insertId&&e.insertRegion===r},isRegionHighlightHover:function(t,r){return t===e.hoverId&&r===e.mouseMoveRegion},isRegionActive:function(t,r){return this.isActive(t)||t===e.dropId||this.isRegionHighlighted(t,r)||this.isRegionHighlightHover(t,r)},isRegionDragEnter:function(t,r){return this.isRegionActive(t,r)&&r===e.dropRegion},get highlightNodes(){var t=this,r=[];!e.hoverId||e.dragId||e.contextId||e.activeId===e.hoverId&&!e.hoverRegion||e.selections.includes(e.hoverId)||r.push(e.hoverId),e.contextId&&r.push(e.contextId),!e.activeId&&!e.selections.length||e.dragId&&!this.draggableContainer(e.dragId)||e.insertOrigId||e.insertId||e.hoverId&&e.hoverRegion||(e.activeId?r.push(e.activeId):r.push.apply(r,e.selections));var n=this.parentIsFreeContainer(e.activeId);return n&&r.push(n),"insert"===e.insertMode&&e.insertId&&r.push(e.insertId),e.insertOrigId&&r.push(e.insertOrigId),e.dropId&&r.push(e.dropId),e.insertBeforeId&&r.push(e.insertBeforeId),r.filter((function(e,t,r){return e&&t===r.indexOf(e)})).map((function(e){return t.getNodeById(e)})).filter((function(e){return e}))},getNodeById:function(t,r){for(var n=e.root.children.concat();n.length;){var a=n.shift();if(a.id===t&&(!r||a.region===r||a.type===r))return a;a.children.length&&n.push.apply(n,a.children)}},get activeNodeInfo(){var t;return null===(t=this.getNodeById(e.activeId))||void 0===t?void 0:t.info},getSchema:function(t,r){return t?rt(e.schema,t,r):e.schema},getSchemaParentById:function(t,r){return void 0===r&&(r=!1),nt(e.schema,t,r)},getSchemaPath:function(t){var r=tt(e.schema,t);return Array.isArray(r)?r.join("/"):""},getSimpleSchema:function(t){var r,n,a,i=Ge(t);return null!==(a=null===(n=(r=ve(e)).schemaFilter)||void 0===n?void 0:n.call(r,i))&&void 0!==a?a:i},getPanelKey:function(){var t,r=e.panelKey;if("none"===r)return r;var n=this.getPanels();return ye(n,(function(e){return r&&e.key===r}))?r:(null===(t=n[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 r=this.getLeftPanels();return ye(r,(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?k("1dd554cdfc1ddf7dce13453805523c16"):k("9bdb07e72d3a9a6084201a7398523f5a"),component:Ar,order:9999}),t.push({key:"insertRenderer",icon:"fa fa-bolt",position:"left",title:k("a82240ce09faf0b972a8aa5c9e93d209"),component:za,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 Ge(rt(e.schema,t),!1)},get valueWithoutHiddenProps(){if(e.activeId)return Ge(rt(e.schema,e.activeId),ve(e).isHiddenProps||function(e,t){return"$$"===e.substring(0,2)&&"$$comments"!==e&&"$$commonSchema"!==e||"function"==typeof t||"__"===e.substring(0,2)||"css"===e||"editorState"===e})},get outline(){return e.root.children},get bcn(){var t=[];return e.activeId&&te(e.root.children,(function(r,n,a,i){return r.id===e.activeId&&(t=i.concat(r),!0)})),t.filter((function(e){return!e.isSecondFactor}))},get activePath(){return this.getNodePathById(e.activeId)},getNodePathById:function(t){var r=[];if(!t)return r;var n=function(e,a){return void 0===a&&(a=[]),e.every((function(e){return e.id===t?(r=a.concat(e),!1):!e.children||!e.children.length||n(e.children,a.concat(e))}))};return n(e.root.children),r},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.children.length&&t(e.children)}))};return t(e.root.children)},get schemaRaw(){return Ge(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){var r=e,n={},a=t?new RegExp(Kt(t),"i"):null;return r.forEach((function(e){t&&!["name","description","scaffold.type","searchKeywords"].some((function(t){return O(t,e)&&a&&a.test(O(t,e))}))||(Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:[k("0d98c74797e49d00bcc4c17c9d557a2b")]).forEach((function(t){n[t]=n[t]||[],n[t].push(e)}))})),n},groupedSubRenderersByKeyword:function(e,t){var r=e||this.subRenderersByOrder;return this.groupedRenderersByKeyword(r,t)},get groupedSubRenderers(){if(e.subRenderersTag){var t={},r=this.groupedSubRenderersByKeyword()[e.subRenderersTag];return r&&(t[e.subRenderersTag]=r),t}return this.groupedSubRenderersByKeyword(this.subRenderersByOrder,e.subRenderersKeywords)},groupedCustomRenderersByKeyword:function(e,t){var r=e||this.customRenderersByOrder;return this.groupedRenderersByKeyword(r,t)},get groupedCustomRenderers(){if(e.customRenderersTag){var t={},r=this.groupedCustomRenderersByKeyword()[e.customRenderersTag];return r&&(t[e.customRenderersTag]=r),t}return this.groupedCustomRenderersByKeyword(this.customRenderersByOrder,e.customRenderersKeywords)},getSubRendererById:function(t){return ye(e.subRenderers||[],(function(e){return e.id===t}))},get groupedInsertRenderers(){var t={"全部":[]},r=e.insertRenderersKeywords,n=new RegExp(Kt(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 O(t,e)&&n.test(O(t,e))}))||((Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:[k("0d98c74797e49d00bcc4c17c9d557a2b")]).forEach((function(r){t[r]=t[r]||[],t[r].push(e)})),t[k("a8b0c20416853bda54120bf19477ad11")].push(e))})),t},get selectedInsertRendererInfo(){return ye(e.insertRenderers,(function(t){return t.id===e.insertSelected}))},get subEditorSlotPath(){var t,r=null===(t=e.subEditorContext)||void 0===t?void 0:t.slot;if(!r)return"";var n=[],a=function(e,t){return void 0===t&&(t=[]),!(!Array.isArray(e)||!e.some((function(e,r){return a(e,t.concat("".concat(r)))})))||(q(e)?Object.keys(e).some((function(r){return a(e[r],t.concat(r))})):"$$"===e&&(n=t.concat(),!0))};return a(r),n.length?n.join("/"):""},get subEditorValue(){if(e.subEditorContext)return e.subEditorContext.slot?F(F({},ie(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 r,n,a=null!=t?t:e.activeId,i=this.getSchema(a);return"flex"===(null===(r=null==i?void 0:i.style)||void 0===r?void 0:r.display)||"inline-flex"===(null===(n=null==i?void 0:i.style)||void 0===n?void 0:n.display)},isFlexItem:function(t){var r,n,a=null!=t?t:e.activeId,i=this.getSchemaParentById(a,!0);return"flex"===(null==i?void 0:i.type)||"flex"===(null===(r=null==i?void 0:i.style)||void 0===r?void 0:r.display)||"inline-flex"===(null===(n=null==i?void 0:i.style)||void 0===n?void 0:n.display)},isFlexColumnItem:function(t){var r,n,a,i,o=null!=t?t:e.activeId,l=this.getSchemaParentById(o,!0),c="flex"===(null==l?void 0:l.type)||"flex"===(null===(r=null==l?void 0:l.style)||void 0===r?void 0:r.display)||"inline-flex"===(null===(n=null==l?void 0:l.style)||void 0===n?void 0:n.display),d="column"===(null==l?void 0:l.direction)||"column-reverse"===(null==l?void 0:l.direction)||"column"===(null===(a=null==l?void 0:l.style)||void 0===a?void 0:a.flexDirection)||"column-reverse"===(null===(i=null==l?void 0:l.style)||void 0===i?void 0:i.flexDirection);return!(!c||!d)},draggableContainer:function(t){var r=t||e.activeId,n=this.getSchema(r),a=(null==n?void 0:n.style)||{};return"fixed"===(null==a?void 0:a.position)||"absolute"===(null==a?void 0:a.position)},parentIsFreeContainer:function(t){var r=null!=t?t:e.activeId,n=this.getNodeById(r),a=null==n?void 0:n.parent;if(!a)return!1;var i=this.getSchema(a.id);return!!(null==i?void 0:i.isFreeContainer)&&a.id},get getSuperEditorData(){return e.superEditorData||{}},getComponentTreeSource:function(){var t;return Q(null!==(t=e.root.children)&&void 0!==t?t:[],(function(t){var r,n,a,i=t.id?rt(e.schema,t.id):e.schema,o="",l=Wt(null==t?void 0:t.label),c=Wt(null==i?void 0:i.label),d=Wt(null==i?void 0:i.title);if(null==t?void 0:t.region)o=l;else{var s="cell"!==t.type?"<".concat(l,">"):"<列>";o="".concat(s).concat(null!==(r=null!=c?c:d)&&void 0!==r?r:l)}return o=null!=o?o:l,{id:t.id,label:o,value:null!==(n=null==i?void 0:i.id)&&void 0!==n?n:t.id,type:null!==(a=null==i?void 0:i.type)&&void 0!==a?a:t.type,schema:i,disabled:!!t.region,visible:!t.region||!!(null==t?void 0:t.children.length),children:null==t?void 0:t.children}}),1,!0)}}})).actions((function(e){ve(e);var t=0,r=null,n=void 0,a=document,i=void 0;return{setLayer:function(e){n=e},getLayer:function(){return n},setDoc:function(e){a=e},getDoc:function(){return a},setIframe:function(e){i=e},getIframe:function(){return i},setIsMobile:function(t){e.isMobile=!!t},setCtx:function(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 r,n=Je(t||{});if(e.schema){var a=Nt(e.schema,n,(function(e,t){return"$$id"===t})),i=kt(e.schema,a);if("A"===(null===(r=null==a?void 0:a[0])||void 0===r?void 0:r.kind)&&("D"===a[0].item.kind||"N"===a[0].item.kind)&&Array.isArray(a[0].path)){var o=a[0].path,l=o.pop(),c=o.reduce((function(e,t){return e[t]}),i);c[l]=c[l].map((function(e){return F(F({},e),{$$id:He()})}))}e.schema=i}else e.schema=n;this.resetHistory(),this.updateTargetName()},insertSchema:function(t){var r,n=t.context.id,a=t.context.region,i=rt(e.schema,n);if(i){var o=Je(t.context.data);(null==i?void 0:i.isFreeContainer)&&(o.style={position:"absolute",inset:"10px auto auto 10px"},_t(o.type)&&(o.style.width="300px"));var l=Array.isArray(i[a])?i[a].concat():i[a]?[i[a]]:[];if(t.context.beforeId){var c=Ee(l,(function(e){return e.$$id===t.context.beforeId}));~c?l.splice(c,0,o):l.push(o)}else l.push(o);return this.traceableSetSchema(at(e.schema,n,((r={})[a]=l,r))),t.context.data=o,o}},moveSchema:function(t){var r,n=t.context,a=e.schema;if(n.sourceId!==n.beforeId){var i=rt(a,n.sourceId);a=it(a,n.sourceId,void 0,!0);var o=n.region,l=rt(a,n.id)[o];if(l=Array.isArray(l)?l.concat():l?[l]:[],n.beforeId){var c=Ee(l,(function(e){return e.$$id===n.beforeId}));if(!~c)throw new Error(k("eadc8c8d4a8776893672330598babca0"));l.splice(c,0,i)}else l.push(i);this.traceableSetSchema(at(a,n.id,((r={})[o]=l,r)))}},setActiveId:function(t,r,n){void 0===r&&(r=""),void 0===n&&(n=[]);var a=t?e.getNodeById(t):void 0;!1===(null==a?void 0:a.clickable)||t&&!a||(e.activeId=t,e.activeRegion=r,e.selections=n)},setSelections:function(t){e.activeId="",e.activeRegion="",e.selections=t?t.concat():[]},clearSelection:function(){e.selections=[]},setHoverId:function(t,r){var n=t?e.getNodeById(t):void 0;!1!==(null==n?void 0:n.clickable)&&(e.hoverId=t,e.hoverRegion=r||"")},setMouseMoveRegion:function(t){e.mouseMoveRegion=t},setInsertId:function(t){e.insertId=t},setContextId:function(t){e.contextId=t},setDragId:function(t,r,n,a){void 0===r&&(r="move"),void 0===n&&(n="schema"),e.dragId=t,e.dragMode=r,e.dragType=n,e.dragSchema=a||(t?e.getSchema(t):null)},setDropId:function(t,r){void 0===r&&(r=""),e.dropId=t,e.dropRegion=r,e.planDropId="",e.planDropRegion=""},setPlanDropId:function(t,r){e.planDropId=t,e.planDropRegion=r},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)},changeLeftPanelOpenStatus:function(t){t!==e.leftPanelOpenStatus&&(e.leftPanelOpenStatus=t)},showRendererPanel:function(t,r){"renderers"!==e.getLeftPanelKey()?e.leftPanelKey="renderers":t!==e.subRenderersTag&&t||o.info(r||k("f3c057f37fb9a4e7dd44b04919c12578")),e.renderersTabsKey="base-renderers",t&&this.changeSubRenderersTag(t),this.changeLeftPanelOpenStatus(!0)},changeValue:function(t,r){e.activeId&&this.changeValueById(e.activeId,t,r)},changeValueById:function(t,r,n,a,i){var o=rt(e.schema,t);if(o)if(n){var l=kt(o,n);this.traceableSetSchema(at(e.schema,t,Qe(Je(l)),!0),i)}else this.traceableSetSchema(at(e.schema,t,Qe(Je(r)),a),i)},updateContainerStyleByDrag:function(t,r,n){var a=t||e.dragId;if(a){var i=e.getSchema(a),o=(null==i?void 0:i.style)||{};if(a&&"fixed"===(null==o?void 0:o.position)||"absolute"===(null==o?void 0:o.position)){var l=(o.inset||"auto").split(" "),c={top:l[0]||"auto",right:l[1]||"auto",bottom:l[2]||l[0]||"auto",left:l[3]||l[1]||"auto"},d="".concat("auto"!==c.top?$t(c.top,n):"auto"," ").concat("auto"!==c.right?$t(c.right,-r):"auto"," ").concat("auto"!==c.bottom?$t(c.bottom,-n):"auto"," ").concat("auto"!==c.left?$t(c.left,r):"auto");this.changeValueById(a,F(F({},i),{style:F(F({},o),{inset:d})})),this.calculateHighlightBox([a])}}},moveUp:function(t){t&&this.traceableSetSchema(dt(e.schema,t))},moveDown:function(t){t&&this.traceableSetSchema(ut(e.schema,t))},del:function(t){var r,n;if(t===e.activeId){var a=null===(r=e.getNodeById(t))||void 0===r?void 0:r.host;this.setActiveId(a?a.id:"")}else if(e.activeId){var i=rt(e.schema,t);if(rt(i,e.activeId)){a=null===(n=e.getNodeById(t))||void 0===n?void 0:n.host;this.setActiveId(a?a.id:"")}}this.traceableSetSchema(it(e.schema,t))},delMulti:function(t){var r=this;(Array.isArray(t)?t:[t]).forEach((function(t){var n,a;if(t===e.activeId){var i=null===(n=e.getNodeById(t))||void 0===n?void 0:n.host;r.setActiveId(i?i.id:"")}else if(e.activeId){var o=rt(e.schema,t);if(rt(o,e.activeId)){i=null===(a=e.getNodeById(t))||void 0===a?void 0:a.host;r.setActiveId(i?i.id:"")}}})),this.traceableSetSchema(t.reduce((function(e,t){return it(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,r){var n;this.traceableSetSchema(at(e.schema,t,((n={})[r]=[],n)))},replaceChild:function(t,r){this.traceableSetSchema(at(e.schema,t,Je(r),!0))},setInsertRegion:function(t,r,n,a,i,o){void 0===r&&(r=""),void 0===n&&(n=k("a8b0c20416853bda54120bf19477ad11")),void 0===a&&(a="insert"),void 0===i&&(i=""),e.insertId=r,e.insertRegion=t,e.insertTag=n,e.insertMode=a,e.insertOrigId=i,e.insertBeforeId=o||""},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},openSubEditor:function(t){e.activeId&&(e.subEditorContext=F(F({},t),{data:oe(t.data,{__curCmptTreeWrap:{label:t.title,disabled:!0},__superCmptTreeSource:e.getComponentTreeSource()})}))},confirmSubEditor:function(t){var r,n=t[0],a=e.subEditorContext,i=a.onChange,o=a.slot,l=n.schema,c=(null===(r=n.__pristine)||void 0===r?void 0:r.schema)||l;if(o){var d=e.subEditorSlotPath.replace(/(?:\/)/g,".");l=le(l,d),c=le(c,d),Array.isArray(l)&&1===l.length&&!Array.isArray(c)&&(l=l[0])}i(l,i.length>1?Nt(c,l):void 0),e.subEditorContext=void 0},closeSubEditor:function(){e.subEditorContext=void 0},subEditorOnChange:function(){r&&(e.subEditorContext=F(F({},e.subEditorContext),{canUndo:r.canUndo(),canRedo:r.canRedo()}))},undoSubEditor:function(){r&&r.undo()},redoSubEditor:function(){r&&r.redo()},subEditorRef:function(e){r=e},openScaffoldForm:function(t){e.scaffoldForm=t},closeScaffoldForm:function(){e.scaffoldForm=void 0},setScaffoldBuzy:function(t){e.scaffoldFormBuzy=!!t},setScaffoldError:function(t){void 0===t&&(t=""),e.scaffoldError=t},openPopOverForm:function(t){e.popOverForm=t},closePopOverForm:function(){e.popOverForm=void 0},calculateHighlightBox:function(t){e.calculateStarted=!0,t.forEach((function(t){var r=e.getNodeById(t);null==r||r.calculateHighlightBox(e)}))},resetHighlightBox:function(t){t.forEach((function(t){var r=e.getNodeById(t);null==r||r.resetHighlightBox(e)}))},updateTargetName:function(){var t=[];Ft(e.schema,(function(e,r,n){return"name"===r&&e&&n&&("crud"===n.type||"form"===n.type||"page"===n.type||"service"===n.type||"chart"===n.type||"wizard"===n.type)&&t.push({type:n.type,name:e,editorId:n.$$id}),e})),e.targetNames=me(t)},traceableSetSchema:function(r,n){var a=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));~a&&e.schemaHistory.splice(a+1,e.schemaHistory.length-a-1),n&&e.schemaHistory.pop(),e.schemaHistory.push({versionId:e.versionId=t++,schema:r}),e.schema=r,this.updateTargetName()},undo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t>0){var r=e.schemaHistory[t-1];e.versionId=r.versionId,e.schema=r.schema,this.updateTargetName()}},redo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t<e.schemaHistory.length-1){var r=e.schemaHistory[t+1];e.versionId=r.versionId,e.schema=r.schema,this.updateTargetName()}},resetHistory:function(){t=0,e.versionId=t++,e.schemaHistory.replace([{versionId:e.versionId,schema:e.schema}])},applyPatches:function(t){var r=e.schema;t.forEach((function(e){var t,n;if("update"===e.op)r=at(r,e.target,e.value);else if("replace"===e.op)r=at(r,e.target,e.value,!0);else if("delete"===e.op)r=it(r,e.target);else if("push"===e.op){var a=(i=rt(r,e.target))[e.key];(a=Array.isArray(a)?a.concat():a?[a]:[]).push(e.value),i=F(F({},i),((t={})[e.key]=a,t)),r=at(r,e.target,i)}else if("splice"===e.op){var i;a=(i=rt(r,e.target))[e.key];(a=Array.isArray(a)?a.concat():a?[a]:[]).splice.apply(a,e.args),i=F(F({},i),((n={})[e.key]=a,n)),r=at(r,e.target,i)}})),this.traceableSetSchema(r)},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()}}})),$a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"afterResolveEditorInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n,a,i,o,l=this.props.store,c=e.context;if(null===(t=l.subEditorContext)||void 0===t?void 0:t.slot){var d=l.subEditorSlotPath;!~c.schemaPath.indexOf(d)&&c.data?(c.data.editable=!1,c.data.memberImmutable=!Array.isArray(null===(a=l.subEditorContext)||void 0===a?void 0:a.value),c.data.memberImmutable||(c.data.name=k("22c799040acdb2601b437ed5449de076"))):c.schemaPath===d&&c.data&&(Array.isArray(null===(i=l.subEditorContext)||void 0===i?void 0:i.value)||(c.data.movable=!1,c.data.removable=!1),c.data.typeMutable=null===(o=l.subEditorContext)||void 0===o?void 0:o.typeMutable)}else c.data&&!c.schemaPath&&(null===(r=l.subEditorContext)||void 0===r?void 0:r.memberImmutable)&&(c.data.memberImmutable=null===(n=l.subEditorContext)||void 0===n?void 0:n.memberImmutable)}}),Object.defineProperty(t.prototype,"handleBuildPanels",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r;if(null===(r=this.props.store.subEditorContext)||void 0===r?void 0:r.slot){var n=e.context;if(n.info.memberImmutable){var a=n.data.concat();n.data.splice(0,n.data.length);var i=a.filter((function(e){return"renderers"!==e.key}));i&&(t=n.data).push.apply(t,i),n.changeLeftPanelKey="outline"}}}}),Object.defineProperty(t.prototype,"buildSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,r=this,n=this.props,a=n.store,i=n.manager,o=n.amisEnv,l=a.subEditorContext,c=i.config,d=a.superEditorData;l&&(d=X(a.superEditorData,null==l?void 0:l.data));var s=T(T([],((null===(e=i.config)||void 0===e?void 0:e.variables)||[]).filter((function(e){return e.title!==k("cc6aeb073ebc3cb29734a49164f8964c")})),!0),[{name:"pageParams",title:k("cc6aeb073ebc3cb29734a49164f8964c"),parentId:"root",order:0,schema:{type:"object",$id:"pageParams",properties:{}}}],!1);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 H(r,void 0,void 0,(function(){var t,r,n;return z(this,(function(i){switch(i.label){case 0:return[4,null===(n=null===(r=a.subEditorContext)||void 0===r?void 0:r.validate)||void 0===n?void 0:n.call(r,e)];case 1:return(t=i.sent())?[2,{schema:t}]:[2]}}))}))},onChange:a.subEditorOnChange,body:[{name:"schema",asFormItem:!0,children:function(e){var t,n,l,u=e.value,f=e.onChange;return $.createElement(Ja,{autoFocus:!0,value:u,ref:a.subEditorRef,onChange:f,data:null===(t=a.subEditorContext)||void 0===t?void 0:t.data,superEditorData:d,schemaFilter:i.config.schemaFilter,theme:i.env.theme,afterResolveEditorInfo:r.afterResolveEditorInfo,onBuildPanels:r.handleBuildPanels,isMobile:a.isMobile,isSubEditor:!0,iframeUrl:c.iframeUrl,ctx:a.ctx,schemas:null===(n=i.config)||void 0===n?void 0:n.schemas,variables:s,amisEnv:o||c.amisEnv,appLocale:c.appLocale,i18nEnabled:c.i18nEnabled,plugins:c.plugins,actionOptions:c.actionOptions,showCustomRenderersPanel:null===(l=a.showCustomRenderersPanel)||void 0===l||l,isHiddenProps:c.isHiddenProps,$schemaUrl:c.$schemaUrl})}}]}:{type:"tpl",tpl:"Loading..."},actions:[[{children:l?$.createElement("div",{className:"ae-DialogToolbar"},$.createElement("button",{type:"button","data-tooltip":"撤销",disabled:!l.canUndo,onClick:a.undoSubEditor},$.createElement("i",{className:"fa fa-undo"})),$.createElement("button",{type:"button","data-tooltip":"重做",disabled:!l.canRedo,onClick:a.redoSubEditor},$.createElement("i",{className:"fa fa-rotate-right"}))):null},{type:"submit",label:k("e83a256e4f5bb4ff8b3d804b5473217a"),level:"primary"},{type:"button",label:k("625fb26b4b3340f7872b411f401e754c"),actionType:"close"}]],closeOnEsc:!1,bodyClassName:"ae-dialog subEditor-dialog"}}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.store,r=e.theme,n=e.manager;return i(F({type:"dialog"},this.buildSchema()),{show:!!t.subEditorContext,data:{schema:t.subEditorValue}},F(F({},Ce(n.env,"replaceText")),{session:"editor-dialog",theme:r}))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"afterResolveEditorInfo",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleBuildPanels",null),t=M([ce],t)}($.Component),Ka=function(e){function t(t){var r=e.call(this,t)||this;return Object.defineProperty(r,"breadcrumbRef",{enumerable:!0,configurable:!0,writable:!0,value:$.createRef()}),Object.defineProperty(r,"bcnContentRef",{enumerable:!0,configurable:!0,writable:!0,value:$.createRef()}),Object.defineProperty(r,"currentBreadcrumb",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"unReaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"unSensor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r.state={showLeftScrollBtn:!1,showRightScrollBtn:!1},r.unReaction=U((function(){return r.props.store.bcn}),(function(){r.refreshHandleScroll(!0)})),r}return A(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.getCurBreadcrumb(),r=this.getBreadcrumbContainer();t&&r&&(this.unSensor=f(r,(function(){e.refreshHandleScroll()})))}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.unReaction(),this.unSensor&&(this.unSensor(),delete this.unSensor)}}),Object.defineProperty(t.prototype,"refreshHandleScroll",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;setTimeout((function(){t.HandleScroll(e)}),0)}}),Object.defineProperty(t.prototype,"getCurBreadcrumb",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.bcnContentRef.current}}),Object.defineProperty(t.prototype,"getBreadcrumbContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.breadcrumbRef.current}}),Object.defineProperty(t.prototype,"getScrollLeft",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.getCurBreadcrumb();return e?e.style.left:"0"}}),Object.defineProperty(t.prototype,"toNumber",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e?Number.parseInt(e):0}}),Object.defineProperty(t.prototype,"HandleScroll",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.getCurBreadcrumb(),r=this.getBreadcrumbContainer();if(t&&r){var n=this.toNumber(this.getScrollLeft()),a=t.offsetWidth-r.offsetWidth;e&&(t.style.left="0"),this.setState({showLeftScrollBtn:n<0,showRightScrollBtn:n>-a})}}}),Object.defineProperty(t.prototype,"handleScrollToLeft",{enumerable:!1,configurable:!0,writable:!0,value: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())}}}),Object.defineProperty(t.prototype,"handleScrollToRight",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.getCurBreadcrumb(),t=this.getBreadcrumbContainer();if(e&&t){var r=this.toNumber(this.getScrollLeft()),n=e.offsetWidth-t.offsetWidth;e.style.left=r-50>-n?"".concat(r-50,"px"):"-".concat(n,"px"),this.refreshHandleScroll()}}}),Object.defineProperty(t.prototype,"handleClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=e.currentTarget,n=r.getAttribute("data-node-id"),a=r.getAttribute("data-node-region"),i=this.props.store;this.props.manager;var o=i.getNodeById(n);!1!==(null===(t=null==o?void 0:o.info)||void 0===t?void 0:t.editable)&&(a?i.setActiveId(n,a):i.setActiveId(n))}}),Object.defineProperty(t.prototype,"handleMouseEnter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.currentTarget,r=t.getAttribute("data-node-id"),n=t.getAttribute("data-node-region");this.props.store.setHoverId(r,n)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props.store,r=this.state,a=r.showLeftScrollBtn,i=r.showRightScrollBtn,o=t.bcn;return $.createElement("div",{className:"ae-Breadcrumb",ref:this.breadcrumbRef},a&&$.createElement("div",{className:"ae-Breadcrumb-scrollLeft-btn",onClick:this.handleScrollToLeft},$.createElement(n,{icon:"editor-double-arrow",className:"icon"})),$.createElement("div",{className:"ae-Breadcrumb-content",ref:this.bcnContentRef},o.length?$.createElement("ul",null,o.map((function(t,r){var n,a=null===(n=t.parent)||void 0===n?void 0:n.uniqueChildren;return $.createElement("li",{key:r},$.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?$.createElement("ul",{className:"hoverShowScrollBar"},a.map((function(r){return $.createElement("li",{key:"".concat(r.id,"-").concat(r.region)},$.createElement("span",{"data-node-id":r.id,"data-node-region":r.region,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,className:r.id===t.id&&r.region===t.region?"is-active":""},r.label))}))):null)}))):null),i&&$.createElement("div",{className:"ae-Breadcrumb-scrollRight-btn",onClick:this.handleScrollToRight},$.createElement(n,{icon:"editor-double-arrow",className:"icon"})))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Boolean]),D("design:returntype",void 0)],t.prototype,"refreshHandleScroll",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getCurBreadcrumb",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getBreadcrumbContainer",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",String)],t.prototype,"getScrollLeft",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",Number)],t.prototype,"toNumber",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Boolean]),D("design:returntype",void 0)],t.prototype,"HandleScroll",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleScrollToLeft",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleScrollToRight",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),t=M([ce,D("design:paramtypes",[Object])],t)}($.Component),_a=function(e){function t(t){var r=e.call(this,t)||this;return Object.defineProperty(r,"amisScope",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r.state={step:0},r}return A(t,e),Object.defineProperty(t.prototype,"handleConfirm",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n,a=e[0],i=this.props.store;if(a=F(F({},null===(t=i.scaffoldForm)||void 0===t?void 0:t.value),a),null===(r=i.scaffoldForm)||void 0===r?void 0:r.pipeOut){var o=i.scaffoldForm.pipeOut(a);a=F({},o)}null===(n=i.scaffoldForm)||void 0===n||n.callback(a),i.closeScaffoldForm(),this.setState({step:0})}}),Object.defineProperty(t.prototype,"buildSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t,r,n=this.props.store.scaffoldForm,a=null!==(t=n.controls)&&void 0!==t?t:n.body;return n.stepsBody&&(a=T([{type:"steps",name:"__steps",className:"ae-Steps",steps:a.map((function(e,t){return{title:e.title,value:t,iconClassName:"ae-Steps-Icon"}}))}],a.map((function(e,t){return{type:"container",visibleOn:"__step === ".concat(t),body:e.body}})),!0)),r=Bt(n.mode)?n.mode:{mode:n.mode||"normal"},F(F({type:"form",wrapWithPanel:!1,initApi:n.initApi,api:n.api},r),((e={wrapperComponent:"div",data:{__step:0}})[n.controls?"controls":"body"]=a,e))}}),Object.defineProperty(t.prototype,"scopeRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.amisScope=e}}),Object.defineProperty(t.prototype,"goToNextStep",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0].props.store,r=this.state.step+1;t.setValueByName("__step",r),this.setState({step:r})}}),Object.defineProperty(t.prototype,"goToPrevStep",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0].props.store,r=this.state.step-1;t.setValueByName("__step",r),this.setState({step:r})}}),Object.defineProperty(t.prototype,"handleConfirmClick",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e;return H(this,void 0,void 0,(function(){var t,r,n,a;return z(this,(function(i){switch(i.label){case 0:if(!(t=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0]))return[2];r=this.props.store,i.label=1;case 1:return i.trys.push([1,3,4,5]),r.setScaffoldBuzy(!0),[4,t.doAction({type:"submit"},t.props.data,!0)];case 2:return n=i.sent(),this.handleConfirm([n]),[3,5];case 3:return a=i.sent(),console.log(a.stack),r.setScaffoldError(a.message),[3,5];case 4:return r.setScaffoldBuzy(!1),[7];case 5:return[2]}}))}))}}),Object.defineProperty(t.prototype,"handleCancelClick",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.store.closeScaffoldForm(),this.setState({step:0})}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.store,r=e.theme,a=e.manager,o=t.scaffoldForm,l=E(r||"cxd").classnames,c=!!(null==o?void 0:o.stepsBody),d=c&&this.state.step===o.body.length-1,s=c&&0===this.state.step;return $.createElement(P,{size:(null==o?void 0:o.size)||"md",contentClassName:null==o?void 0:o.className,show:!!o,onHide:t.closeScaffoldForm,closeOnEsc:!t.scaffoldFormBuzy},$.createElement("div",{className:l("Modal-header")},t.scaffoldFormBuzy?null:$.createElement("a",{"data-position":"left",onClick:t.closeScaffoldForm,className:l("Modal-close")},$.createElement(n,{icon:"close",className:"icon"})),$.createElement("div",{className:l("Modal-title")},null==o?void 0:o.title)),$.createElement("div",{className:l("Modal-body")},o?i(this.buildSchema(),{data:X(t.ctx,F(F({},(null==o?void 0:o.value)||{}),{__step:0})),onValidate:o.validate,scopeRef:this.scopeRef},F(F({},a.env),{session:"scaffold-dialog",theme:r})):$.createElement("p",null,"Loading...")),$.createElement("div",{className:l("Modal-footer")},t.scaffoldFormBuzy||t.scaffoldError?$.createElement("div",{className:l("Dialog-info"),key:"info"},$.createElement(C,{size:"sm",key:"info",show:t.scaffoldFormBuzy}),t.scaffoldError?$.createElement("span",{className:l("Dialog-error")},t.scaffoldError):null):null,c&&!s&&$.createElement(v,{level:"primary",onClick:this.goToPrevStep},"上一步"),c&&!d&&$.createElement(v,{level:"primary",onClick:this.goToNextStep},"下一步"),(!c||d)&&$.createElement(v,{level:"primary",onClick:this.handleConfirmClick,disabled:t.scaffoldFormBuzy},"确认"),$.createElement(v,{onClick:this.handleCancelClick},"取消")))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleConfirm",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"scopeRef",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"goToNextStep",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"goToPrevStep",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",Promise)],t.prototype,"handleConfirmClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleCancelClick",null),t=M([ce,D("design:paramtypes",[Object])],t)}($.Component),Va=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"overlay",{enumerable:!0,configurable:!0,writable:!0,value:$.createRef()}),t}return A(t,e),Object.defineProperty(t.prototype,"buildSchema",{enumerable:!1,configurable:!0,writable:!0,value: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(r){var n;null===(n=t.callback)||void 0===n||n.call(t,r,Nt(t.value,r)),setTimeout((function(){var t;return null===(t=e.overlay.current)||void 0===t?void 0:t.updatePosition()}),200)}}}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.store,r=e.theme,n=e.manager,a=t.popOverForm;return $.createElement(S,{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},$.createElement(j,{overlay:!0,className:"ae-Editor-popOverForm",onHide:t.closePopOverForm},a?i(this.buildSchema(),{data:X(t.ctx,null==a?void 0:a.value)},F(F({},n.env),{session:"popover-form",theme:r})):$.createElement("p",null,"Loading...")))}}),t=M([ce],t)}($.Component),Ua=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.store.contextMenuPanel,t=e&&e.menus?e.menus:[];return t&&t.length>0?$.createElement("div",{className:"context-menu-setting"},$.createElement("div",{className:"setting-header"},"批量操作"),$.createElement("div",{className:"setting-body"},t.map((function(e){return e.label&&$.createElement("div",{key:e.label,className:"setting-item ".concat(e.disabled?"disabled":""),onClick:e.disabled?null:e.onSelect},$.createElement("div",{className:"icon-box"},$.createElement(n,{icon:e.icon,className:"menu-icon"})),$.createElement("div",{className:"setting-info"},e.label))})))):null}}),t=M([ce],t)}($.Component),Wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"getPopOverContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(){return de(this)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.store,r=e.manager,n=e.node,a=e.panelItem,i=e.theme,o=t.activeId;return $.createElement(x,{position:"left",size:"md",theme:i,show:!!a,onHide:t.closeInsertPanel,className:"ae-InsertPanel-drawer"},a&&a.component?$.createElement(a.component,{key:a.key,id:o,info:null==n?void 0:n.info,path:null==n?void 0:n.path,value:t.value,onChange:r.panelChangeValue,store:t,manager:r,popOverContainer:this.getPopOverContainer}):null)}}),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getPopOverContainer",null),t=M([ce],t)}($.Component),Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"getPopOverContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(){return de(this)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.store,r=e.manager,n=e.node,a=e.panelItem,i=e.theme,o=t.activeId,l=t.showInsertRenderer;return $.createElement(x,{position:"left",size:"md",theme:i,show:l,onHide:t.closeInsertRendererPanel,className:"ae-InsertRendererPanel-drawer",bodyClassName:"ae-drawer-renderers"},a.title&&$.createElement("div",{className:"ae-drawer-title"},a.title),a&&a.component?$.createElement(a.component,{key:a.key,id:o,info:null==n?void 0:n.info,path:null==n?void 0:n.path,value:t.value,onChange:r.panelChangeValue,store:t,manager:r,popOverContainer:this.getPopOverContainer}):null)}}),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getPopOverContainer",null),t=M([ce],t)}($.Component),qa=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isFixedStatus:!1},r}return A(t,e),Object.defineProperty(t.prototype,"handleHidden",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.store,t=e.changeLeftPanelOpenStatus,r=e.leftPanelOpenStatus,n=e.changeLeftPanelKey,a=!r;t(a),n(a?"outline":"none")}}),Object.defineProperty(t.prototype,"handleFixed",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({isFixedStatus:!this.state.isFixedStatus})}}),Object.defineProperty(t.prototype,"handleSelect",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.store,r=t.changeLeftPanelOpenStatus,n=t.changeLeftPanelKey;e&&(r(!0),n(e))}}),Object.defineProperty(t.prototype,"getPopOverContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(){return de(this)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props,r=t.store,a=t.manager,i=t.theme,o=this.state.isFixedStatus,l=r.leftPanelOpenStatus,c=r.getLeftPanels(),d=r.activeId,s=r.getNodeById(d),u=r.getLeftPanelKey(),f=r.insertId&&r.insertRegion&&ye(c,(function(e){return"insert"===e.key})),p=ye(c,(function(e){return"insertRenderer"===e.key}));return $.createElement($.Fragment,null,c.length>0&&$.createElement("div",{className:_("editor-left-panel width-draggable",l?"":"hidden-status",o?"fixed-status":"")},$.createElement("div",{className:"editor-panel-btn","editor-tooltip":k(o?"95509c09bdef4bb7842a9b957ab1f971":"426480bb614633c8c3ba8faa0338b72f"),"tooltip-position":"right"},$.createElement(n,{icon:o?"editor-fixed":"editor-no-fixed",className:"panel-btn",onClick:this.handleFixed})),$.createElement(y,{className:"editorPanel-tabs",linksClassName:"editorPanel-tabs-header",contentClassName:"editorPanel-tabs-content",theme:i,activeKey:u,onSelect:this.handleSelect,tabsMode:"sidebar",sidePosition:"left"},c.map((function(t){return"insert"!==t.key&&"insertRenderer"!==t.key?$.createElement(w,{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==s?void 0:s.info,path:null==s?void 0:s.path,node:s,value:r.value,onChange:a.panelChangeValue,store:r,manager:a,popOverContainer:e.getPopOverContainer}):t.component?$.createElement(t.component,{node:s,key:t.key,id:d,info:null==s?void 0:s.info,path:null==s?void 0:s.path,value:r.value,onChange:a.panelChangeValue,store:r,manager:a,popOverContainer:e.getPopOverContainer}):null}(t)):null}))),$.createElement("div",{className:_("left-panel-arrow",l?"":"hidden-status"),onClick:this.handleHidden})),o&&$.createElement("div",{className:"editor-left-panel-fixed-placeholder"}),$.createElement(Wa,{store:r,manager:a,node:s,panelItem:f,theme:i}),$.createElement(Za,{store:r,manager:a,node:s,panelItem:p,theme:i}))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleHidden",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleFixed",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],t.prototype,"handleSelect",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getPopOverContainer",null),t=M([ce,D("design:paramtypes",[Object])],t)}($.Component),Ya=function(e){function t(t){var r=e.call(this,t)||this;return Object.defineProperty(r,"startX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"startWidth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"dragWrap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r.handleResizeMouseDown=r.handleResizeMouseDown.bind(r),r.handleResizeMouseMove=r.handleResizeMouseMove.bind(r),r.handleResizeMouseUp=r.handleResizeMouseUp.bind(r),r}return A(t,e),Object.defineProperty(t.prototype,"handleResizeMouseDown",{enumerable:!1,configurable:!0,writable:!0,value: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)}}),Object.defineProperty(t.prototype,"handleResizeMouseMove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.isLeftDragIcon,r=e.clientX-this.startX;this.dragWrap.style.cssText+="width: ".concat(Math.max(t?this.startWidth-r:this.startWidth+r,260),"px")}}),Object.defineProperty(t.prototype,"handleResizeMouseUp",{enumerable:!1,configurable:!0,writable:!0,value:function(){document.removeEventListener("mousemove",this.handleResizeMouseMove),document.removeEventListener("mouseup",this.handleResizeMouseUp)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.isLeftDragIcon,r=e.className;return $.createElement("div",{onMouseDown:this.handleResizeMouseDown,className:_("width-draggable-icon",r,t?"leftBtn":"")})}}),t}($.Component),Xa=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isOpenStatus:!0,isFixedStatus:!1},r}return A(t,e),Object.defineProperty(t.prototype,"handleFixed",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({isFixedStatus:!this.state.isFixedStatus})}}),Object.defineProperty(t.prototype,"handleSelect",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.store.changePanelKey(e)}}),Object.defineProperty(t.prototype,"handleHidden",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({isOpenStatus:!this.state.isOpenStatus})}}),Object.defineProperty(t.prototype,"getPopOverContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(){return de(this)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props,r=t.store,a=t.manager,i=t.theme,o=this.state,l=o.isOpenStatus,c=o.isFixedStatus,d=r.getPanels(),s=r.activeId,u=r.getNodeById(s),f=r.getPanelKey(),p=function(t){return t.render?t.render({id:s,info:null==u?void 0:u.info,path:null==u?void 0:u.path,node:u,value:r.value,onChange:a.panelChangeValue,store:r,manager:a,popOverContainer:e.getPopOverContainer}):t.component?$.createElement(t.component,{node:u,key:t.key,id:s,info:null==u?void 0:u.info,path:null==u?void 0:u.path,value:r.value,onChange:a.panelChangeValue,store:r,manager:a,popOverContainer:e.getPopOverContainer}):null};return d.length>0?$.createElement("div",{className:_("editor-right-panel width-draggable",d.length>1?"mul-tabs-panel":"",l?"":"hidden-status",c?"fixed-status":"")},$.createElement("div",{className:"editor-panel-btn","editor-tooltip":k(c?"95509c09bdef4bb7842a9b957ab1f971":"426480bb614633c8c3ba8faa0338b72f"),"tooltip-position":"left"},$.createElement(n,{icon:c?"editor-fixed":"editor-no-fixed",className:"panel-btn",onClick:this.handleFixed})),$.createElement("div",{className:"editorPanel-inner"},1===d.length?p(d[0]):$.createElement(y,{theme:i,tabsMode:"sidebar",sidePosition:"right",className:"editorPanel-tabs",linksClassName:"editorPanel-tabs-header",contentClassName:"editorPanel-tabs-content",activeKey:f,onSelect:this.handleSelect},d.map((function(e){var t=zt(e);return $.createElement(w,{key:e.key,eventKey:e.key,title:$.createElement("span",{className:"editor-tab-icon","editor-tooltip":e.title,"tooltip-position":"left"},t&&$.createElement(n,{icon:e.pluginIcon,className:"pluginIcon"}),!t&&$.createElement("i",{className:"fa ".concat(e.icon)})),className:"editorPanel-tabs-pane ae-Editor-".concat(e.key,"Pane"),mountOnEnter:!0,unmountOnExit:!1},p(e))})))),$.createElement(Ya,{isLeftDragIcon:!0}),$.createElement("div",{className:_("right-panel-arrow",l?"":"hidden-status"),onClick:this.handleHidden})):null}}),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleFixed",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],t.prototype,"handleSelect",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleHidden",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getPopOverContainer",null),t=M([ce,D("design:paramtypes",[Object])],t)}($.Component),Ja=function(e){function t(t){var r,n,a=this;a=e.call(this,t)||this,Object.defineProperty(a,"store",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"manager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"mainRef",{enumerable:!0,configurable:!0,writable:!0,value:$.createRef()}),Object.defineProperty(a,"unReaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"lastResult",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"curCopySchemaData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"isInternalChange",{enumerable:!0,configurable:!0,writable:!0,value:!1});var i=t.value,o=t.isSubEditor,l=void 0!==o&&o;t.onChange;var c=t.showCustomRenderersPanel,d=t.superEditorData,s=B(t,["value","isSubEditor","onChange","showCustomRenderersPanel","superEditorData"]),u=F({},s);return a.store=La.create({isMobile:t.isMobile,theme:t.theme,isSubEditor:l,amisDocHost:t.amisDocHost,ctx:t.ctx,superEditorData:d,appLocale:t.appLocale,appCorpusData:null===(r=null==t?void 0:t.amisEnv)||void 0===r?void 0:r.replaceText,i18nEnabled:null!==(n=null==t?void 0:t.i18nEnabled)&&void 0!==n&&n},u),a.store.setSchema(i),void 0!==c&&a.store.setShowCustomRenderersPanel(c),a.manager=new Pr(u,a.store),t.isSubEditor&&window.editorStore||(window.editorStore=a.store),document.addEventListener("keydown",a.handleKeyDown),window.addEventListener("message",a.handleMessage,!1),a.unReaction=U((function(){return a.store.schemaRaw}),(function(e){a.lastResult=e,a.isInternalChange||t.onChange(e)})),a}return A(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.isSubEditor||this.manager.trigger("init",{data:this.manager})}}),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n,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===(r=null==e?void 0:e.amisEnv)||void 0===r?void 0:r.replaceText)&&this.store.setAppCorpusData(null===(n=null==a?void 0:a.amisEnv)||void 0===n?void 0:n.replaceText)}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){document.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("message",this.handleMessage),this.unReaction(),this.manager.dispose(),ge(this.store)}}),Object.defineProperty(t.prototype,"handleKeyDown",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!this.props.isSubEditor){var t=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))return e.preventDefault(),void this.copy();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=t.getNodeById(this.store.activeId))&&t.activeRegion?o.warning(k("d6f73c6f3b92be5a64f7ea0163501284")):t.isRootSchema(this.store.activeId)?o.warning(k("4fda4f585214d469c04466e2fc98b796")):r&&r.moveable?(this.copy(),this.manager.del(this.store.activeId)):o.warning(k("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=t.getNodeById(this.store.activeId))&&r.canMoveUp?this.manager.moveUp():o.warning(k("416445a316595bdeb44b661c7de875a8"))}else if("BODY"===e.target.tagName&&"ArrowDown"===e.key&&(e.metaKey||e.ctrlKey)){if(e.preventDefault(),this.store.activeId)(r=t.getNodeById(this.store.activeId))&&r.canMoveDown?this.manager.moveDown():o.warning(k("6ac88d87b2fd118ba7beab8c17880470"))}else if("BODY"===e.target.tagName&&("Backspace"===e.key||"Delete"===e.key)){var r;if(e.preventDefault(),this.store.activeId)(r=t.getNodeById(this.store.activeId))&&t.activeRegion?o.warning(k("fdb3cba60407b2f1aea0230cca644573")):t.isRootSchema(this.store.activeId)?o.warning(k("8a4b4e2e3b0382007e0c69ed1fe6fe71")):r&&r.moveable?this.manager.del(this.store.activeId):o.warning(k("22f031f3de2e55c430a818d8c588f7a1"));return}}}}),Object.defineProperty(t.prototype,"handleMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e.data&&"amis-widget-register-event"===e.data.type&&e.data.editorPluginName&&(console.info(k("55c56d01a7747ffe0346d42145b62d97"),e.data.editorPluginName),this.manager.dynamicAddPlugin(e.data.editorPluginName))}}),Object.defineProperty(t.prototype,"handleContextMenu",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n,a="",i="";if(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===(r=e.target.closest(this.store.selections.map((function(e){return'[data-editor-id="'.concat(e,'"]')})).join(",")))||void 0===r?void 0:r.getAttribute("data-editor-id")),a||(a=null===(n=e.target.closest("[data-editor-id]"))||void 0===n?void 0:n.getAttribute("data-editor-id")),!a){var o=e.target.closest("[data-node-id]");if(!(a=null==o?void 0:o.getAttribute("data-node-id")))return;i=o.getAttribute("data-node-region")}e.preventDefault(),e.stopPropagation(),this.manager.openContextMenu(a,i,{x:window.scrollX+e.clientX,y:window.scrollY+e.clientY})}}),Object.defineProperty(t.prototype,"canUndo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.store.canUndo}}),Object.defineProperty(t.prototype,"canRedo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.store.canRedo}}),Object.defineProperty(t.prototype,"undo",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.onUndo?this.props.onUndo():this.store.undo()}}),Object.defineProperty(t.prototype,"redo",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.onRedo?this.props.onRedo():this.store.redo()}}),Object.defineProperty(t.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.onSave&&this.props.onSave()}}),Object.defineProperty(t.prototype,"preview",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.props.onPreview&&this.props.onPreview(!0)}}),Object.defineProperty(t.prototype,"copy",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.store.activeId&&(this.curCopySchemaData=this.store.getSchema(this.store.activeId))}}),Object.defineProperty(t.prototype,"paste",{enumerable:!1,configurable:!0,writable:!0,value: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(pt(e)):this.manager.addElem(pt(e))}}}),Object.defineProperty(t.prototype,"getToolbarContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.mainRef.current}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.preview,r=e.isMobile,n=e.className,a=e.theme,i=e.appLocale,o=e.data,l=e.iframeUrl,c=e.previewProps,d=e.autoFocus;e.isSubEditor;var s=e.amisEnv;return $.createElement("div",{ref:this.mainRef,className:_("ae-Editor",{preview:t},n)},$.createElement("div",{className:"ae-Editor-inner",onContextMenu:this.handleContextMenu},!t&&$.createElement(qa,{store:this.store,manager:this.manager,theme:a}),$.createElement("div",{className:"ae-Main"},!t&&$.createElement(Ka,{store:this.store,manager:this.manager}),$.createElement(Nr,F({},c,{iframeUrl:l,editable:!t,isMobile:r,store:this.store,manager:this.manager,theme:a,appLocale:i,data:o,amisEnv:s,autoFocus:d,toolbarContainer:this.getToolbarContainer}))),!t&&$.createElement(Xa,{store:this.store,manager:this.manager,theme:a,appLocale:i,amisEnv:s}),!t&&$.createElement(Ua,{store:this.store})),$.createElement($a,{store:this.store,manager:this.manager,theme:a,amisEnv:s}),$.createElement(_a,{store:this.store,manager:this.manager,theme:a}),$.createElement(Va,{store:this.store,manager:this.manager,theme:a}))}}),Object.defineProperty(t,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{autoFocus:!0}}),M([Ct,D("design:type",Function),D("design:paramtypes",[KeyboardEvent]),D("design:returntype",void 0)],t.prototype,"handleKeyDown",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleMessage",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleContextMenu",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"getToolbarContainer",null),t}(K),Ga=[{label:k("4e7f76261f8c4c6d78998f85fc1f4c6e"),children:[{label:k("16a20243f9b741c08216dc9548de2968"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"m-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"m-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"m-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-lg"}]},{label:k("461d364c67ec6a45e011ed13f2f7154f"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"m-t-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"m-t-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m-t"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"m-t-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-t-lg"}]},{label:k("31e3752986d64c8b36897c8641c8628d"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"m-r-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"m-r-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m-r"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"m-r-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-r-lg"}]},{label:k("eabe91d9426b6446f707cea3e7ab2418"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"m-b-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"m-b-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m-b"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"m-b-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-b-lg"}]},{label:k("2e46d251ee6188bb1b3ff20656276572"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"m-l-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"m-l-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m-l"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"m-l-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-l-lg"}]},{label:k("3dc4038d0f0a2d2b3c2b2e29a5ec6dde"),children:[{label:k("a8b0c20416853bda54120bf19477ad11"),value:"m-none"},"|",{label:k("af767b7e4ae069d54f9ea839858d4c6d"),value:"m-t-none"},{label:k("4d9c32c23df5d234e629c922c58d8e12"),value:"m-r-none"},{label:k("3850a186c3235bc646d4c2f79cebac36"),value:"m-b-none"},{label:k("d2aff1417831aa621c16cd5b95306b4b"),value:"m-l-none"}]}]},{label:k("841d77223f0ec8cd0b530ed8e0775b20"),children:[{label:k("16a20243f9b741c08216dc9548de2968"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"p-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"p-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"p-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-lg"}]},{label:k("461d364c67ec6a45e011ed13f2f7154f"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"p-t-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"p-t-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p-t"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"p-t-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-t-lg"}]},{label:k("31e3752986d64c8b36897c8641c8628d"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"p-r-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"p-r-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p-r"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"p-r-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-r-lg"}]},{label:k("eabe91d9426b6446f707cea3e7ab2418"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"p-b-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"p-b-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p-b"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"p-b-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-b-lg"}]},{label:k("2e46d251ee6188bb1b3ff20656276572"),children:[{label:k("23ecf42cada8bf2715792d718544d107"),value:"p-l-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"p-l-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p-l"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"p-l-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-l-lg"}]},{label:k("3dc4038d0f0a2d2b3c2b2e29a5ec6dde"),children:[{label:k("a8b0c20416853bda54120bf19477ad11"),value:"p-none"},"|",{label:k("af767b7e4ae069d54f9ea839858d4c6d"),value:"p-t-none"},{label:k("4d9c32c23df5d234e629c922c58d8e12"),value:"p-r-none"},{label:k("3850a186c3235bc646d4c2f79cebac36"),value:"p-b-none"},{label:k("d2aff1417831aa621c16cd5b95306b4b"),value:"p-l-none"}]}]},{label:k("961534b4ea37e4e88aada736b299d063"),className:"w2x",children:[{label:k("d4d2a66820d30e07b44c850eb3f116c0"),children:[{label:k("a8b0c20416853bda54120bf19477ad11"),value:"b-a"},"|",{label:k("af767b7e4ae069d54f9ea839858d4c6d"),value:"b-t"},{label:k("4d9c32c23df5d234e629c922c58d8e12"),value:"b-r"},{label:k("3850a186c3235bc646d4c2f79cebac36"),value:"b-b"},{label:k("d2aff1417831aa621c16cd5b95306b4b"),value:"b-l"},"|",{label:k("3dc4038d0f0a2d2b3c2b2e29a5ec6dde"),value:"no-border"}]},{label:k("58f966670529f4753fb3c5a0647606be"),children:[{label:"2x",value:"b-2x"},{label:"3x",value:"b-3x"},{label:"4x",value:"b-4x"},{label:"5x",value:"b-5x"}]},{label:k("6b36c6f7ec834692ec6c8e3816349fdd"),children:[{label:k("fbae87bcc352f6933541fb77a07418ed"),value:"b-primary",className:"bg-primary"},{label:k("d8c7e04c8e2be23dd3b81a31db6e04f1"),value:"b-info",className:"bg-info"},{label:k("900c70fa5f7dbc014e6f762d5e0e885c"),value:"b-warning",className:"bg-warning"},{label:k("540f84ddc0883866b229f71c2844199a"),value:"b-danger",className:"bg-danger"},{label:k("330363dfc524cff2488f2ebde0500896"),value:"b-success",className:"bg-success"},{label:k("2fc96b2704b05d6a9f299c442573ee77"),value:"b-white",className:"bg-white"},{label:k("adb7e5312abdb9a44297e48d63815fa3"),value:"b-dark",className:"bg-dark"},{label:k("48d0a09bdd5fe7e89f0a445b0ffdf14f"),value:"b-light",className:"bg-light"}]}]},{label:k("0d98c74797e49d00bcc4c17c9d557a2b"),className:"w2x",children:[{label:k("0103eb2d3dca70270d1a74e9ec987ac9"),children:[{label:k("a8b0c20416853bda54120bf19477ad11"),value:"r"},"|",{label:k("af767b7e4ae069d54f9ea839858d4c6d"),value:"r-t"},{label:k("4d9c32c23df5d234e629c922c58d8e12"),value:"r-r"},{label:k("3850a186c3235bc646d4c2f79cebac36"),value:"r-b"},{label:k("d2aff1417831aa621c16cd5b95306b4b"),value:"r-l"},"|",{label:"2x",value:"r-2x"},{label:"3x",value:"r-3x"}]},{label:k("8456bc40d48da5af833f1c63385e9879"),children:[{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"font-normal"},{label:k("b3b2682579133673d3fe08c156d565dc"),value:"font-thin"},{label:k("56dce5d1cbb97439d291c458e50107e0"),value:"font-bold"},"|",{label:k("23ecf42cada8bf2715792d718544d107"),value:"text-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"text-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"text-base"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"text-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"text-lg"}]},{label:k("6b36c6f7ec834692ec6c8e3816349fdd"),children:[{label:k("fbae87bcc352f6933541fb77a07418ed"),value:"text-primary",className:"text-primary"},{label:k("d8c7e04c8e2be23dd3b81a31db6e04f1"),value:"text-info",className:"text-info"},{label:k("900c70fa5f7dbc014e6f762d5e0e885c"),value:"text-warning",className:"text-warning"},{label:k("540f84ddc0883866b229f71c2844199a"),value:"text-danger",className:"text-danger"},{label:k("330363dfc524cff2488f2ebde0500896"),value:"text-success",className:"text-success"},{label:k("2fc96b2704b05d6a9f299c442573ee77"),value:"text-white",className:"text-white bg-dark"},{label:k("adb7e5312abdb9a44297e48d63815fa3"),value:"text-dark",className:"text-dark"},{label:k("49a79f4047b81186c069ed1c9c151c66"),value:"text-muted",className:"text-muted"}]},{label:k("8e1b944f4389bdaab6f11d5bc83190c8"),children:[{label:k("fbae87bcc352f6933541fb77a07418ed"),value:"bg-primary",className:"bg-primary"},{label:k("d8c7e04c8e2be23dd3b81a31db6e04f1"),value:"bg-info",className:"bg-info"},{label:k("900c70fa5f7dbc014e6f762d5e0e885c"),value:"bg-warning",className:"bg-warning"},{label:k("540f84ddc0883866b229f71c2844199a"),value:"bg-danger",className:"bg-danger"},{label:k("330363dfc524cff2488f2ebde0500896"),value:"bg-success",className:"bg-success"},{label:k("2fc96b2704b05d6a9f299c442573ee77"),value:"bg-white",className:"bg-white"},{label:k("adb7e5312abdb9a44297e48d63815fa3"),value:"bg-dark",className:"bg-dark"},{label:k("48d0a09bdd5fe7e89f0a445b0ffdf14f"),value:"bg-light",className:"bg-light"},"|",{label:k("3dc4038d0f0a2d2b3c2b2e29a5ec6dde"),value:"no-bg"}]},{label:k("c28479019e24e0e4745f4948e9e97ee7"),children:[{label:k("f72ce9ad683cc82e0eab557ffc9c67a0"),value:"w-xxs"},{label:k("23ecf42cada8bf2715792d718544d107"),value:"w-xs"},{label:k("391b8fa9c747a1799353ab856e666ad5"),value:"w-sm"},{label:k("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"w"},{label:k("aed1dfbc31703955e64806b799b67645"),value:"w-md"},{label:k("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"w-lg"},{label:k("b95c462d7697958c25861193fc89ae07"),value:"w-xl"},{label:k("3386da5f56fac758ed0f18e024ecb943"),value:"w-xxl"},{label:k("ffaa96ef7232cb6d8ee4d7e673dbf4ac"),value:"w-full"}]}]}];!function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return Object.defineProperty(e,"state",{enumerable:!0,configurable:!0,writable:!0,value:{isFocused:!1,isOpened:!1}}),Object.defineProperty(e,"values",{enumerable:!0,configurable:!0,writable:!0,value:[]}),e}A(r,t),Object.defineProperty(r.prototype,"open",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({isOpened:!0})}}),Object.defineProperty(r.prototype,"close",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({isOpened:!1})}}),Object.defineProperty(r.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({isOpened:!this.state.isOpened})}}),Object.defineProperty(r.prototype,"handleFocus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.setState({isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)}}),Object.defineProperty(r.prototype,"handleBlur",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)}}),Object.defineProperty(r.prototype,"handleChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e){(0,this.props.onChange)(e.currentTarget.value)}}),Object.defineProperty(r.prototype,"getParent",{enumerable:!1,configurable:!0,writable:!0,value:function(){return de(this)}}),Object.defineProperty(r.prototype,"getTarget",{enumerable:!1,configurable:!0,writable:!0,value:function(){return de(this)}}),Object.defineProperty(r.prototype,"handlePopOverChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.value||"",r=t.replace(/\s+/g," ").split(/\s+/),n=r.indexOf(e.value),a=this.props.onChange;if(~n)r.splice(n,1),t=r.join(" ");else{if(/(?:^|\s)(m|p)\-(t|r|b|l)(?:\-(?:xs|sm|md|lg))?(?:$|\s)/.test(e.value)){var i=new RegExp("(?:^|\\s)".concat(RegExp.$1,"\\-").concat(RegExp.$2,"(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))"),"ig");t=t.replace(i,"")}else if(/(?:^|\s)(m|p)(?:\-(xs|sm|md|lg))?(?:$|\s)/.test(e.value)){i=new RegExp("(?:^|\\s)".concat(RegExp.$1,"(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))"),"ig");t=t.replace(i,"")}else if(/(?:^|\s)(m|p)(?:\-(t|r|b|l))?\-none(?:$|\s)/.test(e.value)){i=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(i,"$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)}}),Object.defineProperty(r.prototype,"renderGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this,n=this.props.classnames;return $.createElement("div",{key:t,className:n("ae-ClassNameControl-group",e.className)},$.createElement("label",{className:n("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 r.renderGroup(e,t)})):null)}}),Object.defineProperty(r.prototype,"renderOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this,n=this.props.classnames;return function(e){for(var t=[],r=t[0]=[],n=0,a=e.length;n<a;n++){var i=e[n];"|"===i?(r=[],t.push(r)):r.push(i)}return t}(e).map((function(e,t){return $.createElement("div",{className:n("ButtonGroup"),key:t},e.map((function(e,t){return $.createElement("div",{key:t,onClick:function(){return r.handlePopOverChange(e)},className:n("Button Button--size-xs",e.className,~r.values.indexOf(e.value)?"Button--primary":"Button--default")},e.label)})))}))}}),Object.defineProperty(r.prototype,"renderPopover",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props.value;return this.values="string"==typeof t?t.split(" "):[],$.createElement("div",null,Ga.map((function(t,r){return e.renderGroup(t,r)})))}}),Object.defineProperty(r.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=this.props,r=t.classnames,n=t.readOnly,a=t.disabled,i=t.value,o=t.className,l=t.name,c=t.popOverContainer;return $.createElement("div",{className:o},$.createElement("div",{className:r("TextControl",(e={},e["TextControl--withAddOn"]=!0,e["is-focused"]=this.state.isFocused,e["is-disabled"]=a,e))},$.createElement("div",{className:r("TextControl-input")},$.createElement("input",{name:l,placeholder:"请输入 css 类名",disabled:a,readOnly:n,type:"text",autoComplete:"off",onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,value:null==i?"":"string"==typeof i?i:JSON.stringify(i)})),$.createElement("div",{className:r("TextControl-button")},$.createElement(v,{onClick:this.toggle},$.createElement("i",{className:"fa fa-cog"})))),$.createElement(S,{placement:"right-bottom-right-top right-top-right-bottom right-bottom-right-top",target:this.getTarget,container:c||this.getParent,rootClose:!1,show:this.state.isOpened,watchTargetSizeChange:!1},$.createElement(j,{className:"ae-ClassNamePicker-popover",onHide:this.close,overlay:!0},this.renderPopover())))}}),M([e.autobind,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],r.prototype,"open",null),M([e.autobind,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],r.prototype,"close",null),M([e.autobind,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],r.prototype,"toggle",null),M([e.autobind,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],r.prototype,"handleFocus",null),M([e.autobind,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],r.prototype,"handleBlur",null),M([e.autobind,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],r.prototype,"handleChange",null),M([e.autobind,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],r.prototype,"getParent",null),M([e.autobind,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],r.prototype,"getTarget",null),r=M([I({type:"ae-classname"})],r)}($.Component);var Qa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"order",{enumerable:!0,configurable:!0,writable:!0,value:-9999}),t}return A(t,e),Object.defineProperty(t.prototype,"buildEditorPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this.manager.store;e.selections.length||r.subRenderers.length&&t.push({key:"renderers",icon:"png-icon renderers-png",title:$.createElement("span",{className:"editor-tab-icon","editor-tooltip":"组件"},$.createElement(n,{icon:"editor-renderer"})),component:za,position:"left",order:-9999})}}),t}(Qt);function ei(e,t){return function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return A(n,r),Object.defineProperty(n.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){return $.createElement($.Fragment,null,$.createElement(e,F({},this.props)),$.createElement(Ya,{isLeftDragIcon:t}))}}),n}($.Component)}wr(Qa),wr(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"order",{enumerable:!0,configurable:!0,writable:!0,value:-9999}),t}return A(t,e),Object.defineProperty(t.prototype,"buildEditorToolbar",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n,a,i,o=this,l=e.id,c=e.schema,d=e.info,s=this.manager.store,u=s.getNodeById(l),f=s.getSchemaParentById(l),p=this.manager.draggableContainer(l),b=(null==c?void 0:c.isSorptionContainer)||!1,h=u.parent;if(Array.isArray(f)&&(null==h?void 0:h.isRegion)||p){var v=u.host;!u.draggable&&!p||b||t.push({iconSvg:"drag-btn",icon:"fa fa-arrows",tooltip:k("7f2f0461a58c43667d7245ce92bb2e77"),placement:"bottom",draggable:!0,order:-1e3,onDragStart:this.manager.startDrag.bind(this.manager,l)});var m=null==f?void 0:f.indexOf(c);if(!(null==v?void 0:v.memberImmutable(h.region))&&s.panels.some((function(e){return"renderers"===e.key}))){var g=null===(r=f[m+1])||void 0===r?void 0:r.$$id;t.push({iconSvg:"left-arrow-to-left",tooltip:k("78c1c38b91c672da1113fa2564c14ea6"),placement:"bottom",onClick:function(){return o.manager.showInsertPanel(h.region,h.id,h.preferTag,"insert",void 0,l)}},{iconSvg:"arrow-to-right",tooltip:k("87f48bbadfbef5ef4554e06b7e141d37"),placement:"bottom",onClick:function(){return o.manager.showInsertPanel(h.region,h.id,h.preferTag,"insert",void 0,g)}})}}u.isVitualRenderer||!u.info.plugin.popOverBody&&!u.info.plugin.popOverBodyCreator||t.push({icon:"fa fa-pencil",tooltip:k("95b351c86267f3aedf89520959bce689"),placement:"bottom",onClick:function(e){return o.manager.openNodePopOverForm(u.id)}}),(u.removable||void 0===u.removable)&&t.push({iconSvg:"delete-btn",icon:"fa",tooltip:k("2f4aaddde33c9b93c36fd2503f3d122b"),placement:"bottom",order:999,onClick:this.manager.del.bind(this.manager,l)}),t.push({iconSvg:"more-btn",icon:"fa fa-cog",tooltip:k("0ec9eaf9c3525eb110db58aae5912210"),placement:"bottom",order:1e3,onClick:function(e){if(!e.defaultPrevented){var t=e.target.parentElement.getBoundingClientRect();o.manager.openContextMenu(l,"",{x:window.scrollX+t.left+t.width-155,y:window.scrollY+t.top+t.height+8})}}}),(null!==(a=null===(n=d.scaffoldForm)||void 0===n?void 0:n.canRebuild)&&void 0!==a?a:null===(i=d.plugin.scaffoldForm)||void 0===i?void 0:i.canRebuild)&&t.push({iconSvg:"harmmer",tooltip:"快速构建「".concat(d.plugin.name,"」"),placement:"bottom",onClick:function(){return o.manager.reScaffoldV2(l)}})}}),Object.defineProperty(t.prototype,"buildEditorContextMenu",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n,a,i=this,o=e.id,l=e.schema,c=e.region,d=e.info,s=e.selections,u=this.manager,f=u.store,p=f.getSchemaParentById(o),b=f.getNodeById(o),h=f.getNodePathById(o),v=h.pop();if(b.host,b.parent,s.length)t.push({label:k("417db09508befe7dbe9f84a517a6edec"),icon:"copy-icon",disabled:s.some((function(e){return!e.node.duplicatable})),onSelect:function(){return u.duplicate(s.map((function(e){return e.id})))}}),t.push({label:k("99b81127ef28368151621cdfccce69f8"),icon:"cancel-icon",onSelect:function(){return f.setActiveId(o)}}),t.push({label:k("2f4aaddde33c9b93c36fd2503f3d122b"),icon:"delete-icon",disabled:s.some((function(e){return!e.node.removable})),className:"text-danger",onSelect:function(){return u.del(s.map((function(e){return e.id})))}});else if(c){(y=f.panels.find((function(e){return"renderers"===e.key})))&&(t.push({label:k("205f45ee17394bd5668412780eaa55e2"),onHighlight:function(e){return e&&f.setHoverId(o,c)},onSelect:function(){return f.showInsertRendererPanel()}}),t.push({label:k("288f0c404c4e546aa3683ff5054e85e2"),onSelect:function(){return u.emptyRegion(o,c)}}),t.push({label:k("eafbece1016a6af76cce466e55ad9f00"),onSelect:function(){return u.paste(o,c)}}))}else{if(t.push({label:"选中".concat(v.label),disabled:f.activeId===v.id,data:o,onSelect:function(e){return f.setActiveId(e)},onHighlight:function(e,t){return e&&f.setHoverId(t)}}),h.length){var m=h.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 f.setActiveId(e)},onHighlight:function(e,t){return e&&f.setHoverId(t)}}}));m.length&&t.push({label:k("7ad78e0991f34ff3a345c59a2fc31572"),children:m})}t.push({label:k("aafda9e8f6b7b613680677c513edb7a6"),disabled:!f.activeId||f.activeId!==o,onSelect:function(){return f.setActiveId("")}}),t.push("|"),t.push({label:k("417db09508befe7dbe9f84a517a6edec"),disabled:!b.duplicatable,onSelect:function(){return u.duplicate(o)}}),t.push({label:k("b58d101f52531c845f15db63d7212115"),onSelect:function(){return u.copy(o)}}),t.push({label:k("74e2bc6615b7dbbb11fd5e1e212263ae"),disabled:!b.removable,onSelect:function(){return u.cut(o)}}),t.push({label:k("e2f401af580d1354ae00ec4ca19e2e24"),disabled:!Array.isArray(p)||!b.parent||!1===(null===(r=b.info)||void 0===r?void 0:r.typeMutable)||!b.replaceable,onSelect:function(){return u.paste(o)}}),t.push({label:k("2f4aaddde33c9b93c36fd2503f3d122b"),disabled:!b.removable,className:"text-danger",onSelect:function(){return u.del(o)}}),t.push("|");var g=Array.isArray(p)?p.indexOf(l):-1;t.push({label:k("21462ae22216eec41dc688cc4a8ae64b"),disabled:!(Array.isArray(p)&&g>0&&b.moveable),onSelect:function(){return u.moveUp()}}),t.push({label:k("ed2bc13d8bbd99e16e017dd5f5393393"),disabled:!(Array.isArray(p)&&g<p.length-1&&b.moveable),onSelect:function(){return u.moveDown()}}),t.push("|"),t.push({label:k("9e54f3e4ee3330299c5fdc910c2e8d3c"),disabled:!f.canUndo,onSelect:function(){return f.undo()}}),t.push({label:k("ae8e86e426c2ba00da274b66dc372a8b"),disabled:!f.canRedo,onSelect:function(){return f.redo()}});var y=f.panels.find((function(e){return"renderers"===e.key}));v.childRegions.length&&y&&(v.childRegions.length>1?t.push({label:k("205f45ee17394bd5668412780eaa55e2"),children:v.childRegions.map((function(e){return{label:"".concat(e.label),data:e.region,onHighlight:function(e,t){return e?f.setHoverId(o,t):f.setHoverId("")},onSelect:function(){return f.showInsertRendererPanel()}}}))}):t.push({label:k("205f45ee17394bd5668412780eaa55e2"),data:v.childRegions[0].region,onHighlight:function(e,t){return e?f.setHoverId(o,t):f.setHoverId("")},onSelect:function(){return f.showInsertRendererPanel()}}))}s.length||!(null===(n=d.plugin.scaffoldForm)||void 0===n?void 0:n.canRebuild)&&!(null===(a=d.scaffoldForm)||void 0===a?void 0:a.canRebuild)||t.push({label:"快速构建「".concat(d.plugin.name,"」"),disabled:l.$$commonSchema,onSelect:function(){return i.manager.reScaffold(o,d.scaffoldForm||d.plugin.scaffoldForm,l)}})}}),Object.defineProperty(t.prototype,"buildEditorPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(e.selections.length){var r=this.manager.store,n=[],a=F(F({},e),{data:n,region:""});(n=this.manager.buildContextMenus(a)).length&&t.push({key:"contextmenu",icon:"fa fa-cog",title:k("2b6bc0f293f5ca01b006206c2535ccbc"),menus:n,render:this.manager.makeSchemaFormRender({body:[{type:"button-group",buttons:n.filter((function(e){return"|"!==e})).map((function(e){return F(F({},e),{type:"button",onClick:e.onSelect})}))}],panelById:r.activeId})})}}}),Object.defineProperty(t.prototype,"afterInsert",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n=this,a=e.context;if(a.node&&(null===(r=null===(t=a.subRenderer)||void 0===t?void 0:t.plugin)||void 0===r?void 0:r.popOverBody)){var i=a.data.$$id;i&&setTimeout((function(){n.manager.setActiveId(i),requestAnimationFrame((function(){n.manager.openNodePopOverForm(i)}))}),200)}}}),t}(Qt));var ti=/^\/schemas\/(.*).json$/;function ri(e,t,r,n){return H(this,void 0,void 0,(function(){var a,i,o,l,c,d,s;return z(this,(function(u){switch(u.label){case 0:return a=Array.isArray(n)?n.concat():[],"production"===process.env.NODE_ENV?[3,3]:a.some((function(t){return t.uri===e}))?[3,2]:(o=(i=a).push,s={uri:e},[4,import("amis/schema.json").then((function(e){return e.default}))]);case 1:o.apply(i,[(s.schema=u.sent(),s)]),u.label=2;case 2:u.label=3;case 3:return ti.test(t)&&(l=RegExp.$1,c="".concat(e.replace(/^(\w+\:\/\/[^\/]+)\/.*$/,"$1"),"/schemas/").concat(l,".json"),d=Ee(a,(function(e){var t;return(null===(t=e.fileMatch)||void 0===t?void 0:t[0])===r})),~d&&a.splice(d,1),a.push({uri:c,fileMatch:[r],schema:{$schema:"http://json-schema.org/draft-07/schema#",$ref:"".concat(e,"#/definitions/").concat(l)}})),[2,a]}}))}))}var ni=je((function(e){o.warning("代码有误,错误的地方是\n ".concat(e.toString().split("\n")[1]))}),3e3),ai=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"state",{enumerable:!0,configurable:!0,writable:!0,value:{wrongSchema:"",value:t.props.value,contents:t.obj2str(t.props.value,t.props)}}),Object.defineProperty(t,"lastResult",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"toDispose",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(t,"editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"model",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"decorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"uri",{enumerable:!0,configurable:!0,writable:!0,value:"isuda://schema/".concat(He(),".json")}),Object.defineProperty(t,"emitChange",{enumerable:!0,configurable:!0,writable:!0,value:je((function(){var e=t.props,r=e.onChange,n=e.value,a=t.str2obj(t.state.contents);if(a&&q(a)){t.setState({wrongSchema:""}),delete a.$schema,a=mt(a,t.props.value);var i=Nt(t.lastResult||n,a);t.lastResult=a,r(a,i)}else t.setState({wrongSchema:t.state.contents})}),250,{trailing:!0,leading:!1})}),Object.defineProperty(t,"editorFactory",{enumerable:!0,configurable:!0,writable:!0,value:function(e,r,n){var a=r.Uri.parse(t.uri);return t.model=r.editor.createModel(t.state.contents,"json",a),r.editor.create(e,F(F({autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,scrollbar:{alwaysConsumeMouseWheel:!1},minimap:{enabled:!1}},n),{model:t.model}))}}),Object.defineProperty(t,"editorDidMount",{enumerable:!0,configurable:!0,writable:!0,value:function(e,r){t.editor=e,t.monaco=r,t.changeJsonOptions(t.props),t.props.onPaste&&t.toDispose.push(t.editor.onDidPaste(t.props.onPaste).dispose)}}),Object.defineProperty(t,"editorWillUnmount",{enumerable:!0,configurable:!0,writable:!0,value:function(e,r){t.toDispose.forEach((function(e){return e()})),t.toDispose=[]}}),Object.defineProperty(t,"handleChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){t.setState({contents:e},t.emitChange)}}),Object.defineProperty(t,"handleBlur",{enumerable:!0,configurable:!0,writable:!0,value:function(){return H(t,void 0,void 0,(function(){var e,t,r;return z(this,(function(n){switch(n.label){case 0:return e=this.state,t=e.wrongSchema,r=e.value,t?[4,R([{className:"w-full",type:"tpl",label:!1,tpl:k("7e4b38ba0ab9cbfcabd9dd859e36b601")},{type:"switch",label:!1,option:k("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:r,newValue:t},k("43d586cd6cf1a512c0bcb85ed9efde51"))]:[2];case 1:return n.sent()?this.setState({wrongSchema:"",contents:xe(r)}):this.editor.focus(),[2]}}))}))}}),t}return A(t,e),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props;e.$schema!==t.$schema&&this.monaco&&this.changeJsonOptions(t),Le(t.value,e.value)&&Le(t.value,this.lastResult)&&(this.lastResult=null,this.setState({value:t.value,contents:this.obj2str(t.value,t)}))}}),Object.defineProperty(t.prototype,"obj2str",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;return e=mt(e),!(e=F({type:null==e?void 0:e.type},e)).type&&(null===(r=t.$schema)||void 0===r?void 0:r.match(/PageSchema/i))?e.type="page":e.type||delete e.type,delete e.$schema,xe(e)}}),Object.defineProperty(t.prototype,"str2obj",{enumerable:!1,configurable:!0,writable:!0,value:function(e){try{if(""===e)return{};var t=Ie(e);return ni&&ni.cancel(),t}catch(e){return ni(e),null}}}),Object.defineProperty(t.prototype,"changeJsonOptions",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;return void 0===e&&(e=this.props),H(this,void 0,void 0,(function(){var r,n,a;return z(this,(function(i){switch(i.label){case 0:return r=this.monaco,0===(n=e.$schemaUrl||"".concat(window.location.protocol,"//").concat(window.location.host,"/schema.json")).indexOf("/")&&(n="".concat(window.location.protocol,"//").concat(window.location.host).concat(n)),[4,ri(n,e.$schema,r.Uri.parse(this.uri).toString(),null===(t=r.languages.json)||void 0===t?void 0:t.jsonDefaults.diagnosticsOptions.schemas)];case 1:return a=i.sent(),r.languages.json.jsonDefaults.setDiagnosticsOptions({schemas:a,validate:!0,enableSchemaRequest:!0,allowComments:!0}),[2]}}))}))}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.disabled,r=e.className,n=e.theme;return $.createElement(De,{className:_("amis-code-editor",r),value:this.state.contents,onChange:this.handleChange,onBlur:this.handleBlur,language:"json",theme:n,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}($.Component),ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),Object.defineProperty(t.prototype,"handleCodePaste",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;setTimeout((function(){e.props.manager.patchSchema(!0)}),500)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.onChange,r=e.manager,n=e.store;return $.createElement("div",{className:"ae-CodePanel"},$.createElement("div",{className:"panel-header"},"源码"),$.createElement("div",{className:"ae-CodePanel-content"},$.createElement(ai,{value:n.valueWithoutHiddenProps,onChange:t,$schema:n.jsonSchemaUri,$schemaUrl:r.config.$schemaUrl,onPaste:this.handleCodePaste})))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"handleCodePaste",null),t}($.Component);wr(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"order",{enumerable:!0,configurable:!0,writable:!0,value:-9999}),t}return A(t,e),Object.defineProperty(t.prototype,"buildJSONSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.info.$schema}}),Object.defineProperty(t.prototype,"buildEditorPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e.info;var r=e.selections;this.manager.store.jsonSchemaUri&&!r.length&&t.push({key:"code",icon:"png-icon code-png",title:$.createElement("span",{className:"editor-tab-icon","editor-tooltip":"代码"},$.createElement(n,{icon:"editor-code"})),position:"left",component:ei(ii),order:5e3})}}),t}(Qt)),wr(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"dataViewer",{enumerable:!0,configurable:!0,writable:!0,value:{type:"json",name:"ctx",asFormItem:!0,className:"m-b-none",component:function(e){for(var t=e.value,r=e.onChange,n=e.readOnly,a=$.useState(0),i=a[0],o=a[1],l=t||{},c=[l];Object.getPrototypeOf(l)!==Object.prototype;){var d=Object.getPrototypeOf(l);if("[object Object]"!==Object.prototype.toString.call(d))break;c.push(d),l=d}function s(e){var t=Object.create(c[1]||Object.prototype);Object.keys(e.updated_src).forEach((function(r){return t[r]=e.updated_src[r]})),r(t)}return $.createElement("div",{className:"aeDataChain"},$.createElement("div",{className:"aeDataChain-aside"},$.createElement("ul",null,c.map((function(e,t){return $.createElement("li",{className:t===i?"is-active":"",key:t,onClick:function(){return o(t)}},0===t?k("48ac479789304b37afa2f1b06642f4da"):1===t?k("9bc16c658ab8a8c4eddc5e24d85bef20"):"上".concat(t,"层"))})))),$.createElement("div",{className:"aeDataChain-main"},$.createElement(Be,{name:!1,src:c[i],enableClipboard:!1,iconStyle:"square",onAdd:0===i&&!n&&s,onEdit:0===i&&!n&&s,onDelete:0===i&&!n&&s,collapsed:2})))}}}),t}return A(t,e),Object.defineProperty(t.prototype,"buildEditorToolbar",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this;e.id,e.schema;var n=e.node.getComponent();if(n&&n.props&&n.props.data&&n.props.store){var a=n.props.store;t.push({icon:"fa fa-bug",order:-1e3,placement:"bottom",tooltip:k("aa920263020f14211a44ea172efc7253"),onClick:function(){return r.openDebugForm(n.props.data,a.updateData&&a.data===n.props.data?function(e){return a.updateData(e)}:void 0)}})}}}),Object.defineProperty(t.prototype,"openDebugForm",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return H(this,void 0,void 0,(function(){var r;return z(this,(function(n){switch(n.label){case 0:return[4,this.manager.scaffold({title:k("aa920263020f14211a44ea172efc7253"),body:[F(F({},this.dataViewer),{readOnly:!t})]},{ctx:e})];case 1:return r=n.sent(),null==t||t(r.ctx),[2]}}))}))}}),Object.defineProperty(t,"id",{enumerable:!0,configurable:!0,writable:!0,value:"data-debug"}),t}(Qt)),wr(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"order",{enumerable:!0,configurable:!0,writable:!0,value:-9999}),Object.defineProperty(t,"rendererName",{enumerable:!0,configurable:!0,writable:!0,value:"error"}),Object.defineProperty(t,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Error"}),Object.defineProperty(t,"isBaseComponent",{enumerable:!0,configurable:!0,writable:!0,value:!0}),t}return A(t,e),t}(Qt));var oi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"state",{enumerable:!0,configurable:!0,writable:!0,value:{curSearchElemKey:""}}),t}return A(t,e),Object.defineProperty(t.prototype,"handleClick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.props.store,r=e.currentTarget,n=r.getAttribute("data-node-id"),a=r.getAttribute("data-node-region");this.props.manager,a?t.activeId===n&&t.activeRegion===a?t.setActiveId(n):t.setActiveId(n,a):t.setActiveId(n)}}),Object.defineProperty(t.prototype,"handleEnter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.currentTarget,r=t.getAttribute("data-node-id"),n=t.getAttribute("data-node-region");this.props.store.setHoverId(r,n)}}),Object.defineProperty(t.prototype,"handleDragStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.currentTarget.getAttribute("data-node-id");t&&this.props.manager.startDrag(t,e)}}),Object.defineProperty(t.prototype,"handleDragOver",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.target.closest("[data-node-id][data-node-region]");if(t){var r=this.props.manager,n=t.getAttribute("data-node-id"),a=t.getAttribute("data-node-region");e.preventDefault(),n&&a&&r.dnd.switchToRegion(e.nativeEvent,n,a)}}}),Object.defineProperty(t.prototype,"handleDrop",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props.manager.dnd.drop(e.nativeEvent)}}),Object.defineProperty(t.prototype,"handleSearchElemKeyChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.setState({curSearchElemKey:e})}}),Object.defineProperty(t.prototype,"clearSearchElemKey",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({curSearchElemKey:""})}}),Object.defineProperty(t.prototype,"renderTitleByKeyword",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(t&&~e.indexOf(t)){var r=e.indexOf(t),n=r+t.length;return $.createElement("span",null,e.substring(0,r),$.createElement("span",{className:"has-keywords"},t),e.substring(n))}return e}}),Object.defineProperty(t.prototype,"renderItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,a=this,i=this.props.store,o=this.state.curSearchElemKey,l=!i.dragging&&e.singleRegion?e.uniqueChildren[0].uniqueChildren:e.uniqueChildren,c=l.length;return!i.dragging||e.isRegion||e.children.length?$.createElement("li",{className:_("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":c,"is-dragging":i.dragId===e.id&&"schema"===i.dragType}),key:t},$.createElement("a",{onClick:this.handleClick,onMouseEnter:this.handleEnter,"data-node-id":e.id,"data-node-region":e.region,"data-node-common-config":null===(r=e.schema)||void 0===r?void 0:r.$$commonSchema,draggable:e.draggable,onDragStart:this.handleDragStart},c?$.createElement("span",{onClick:e.toggleFold,className:_("ae-Outline-expander ae-Outline-node-icon",{"is-folded":e.folded}),"data-node-id":e.id,"data-node-region":e.region},$.createElement(n,{icon:"down-arrow"})):null,$.createElement("span",{className:"ae-Outline-node-text"},e.isCommonConfig?"".concat(e.label,"-[公共配置]"):this.renderTitleByKeyword(e.label,o))),c?$.createElement("ul",{className:"ae-Outline-sublist"},l.map((function(e,t){return a.renderItem(e,t)}))):null):null}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.state.curSearchElemKey,r=this.props.store,a=r.outline;return $.createElement("div",{className:"ae-Outline-panel"},$.createElement("div",{className:"panel-header"},"大纲"),$.createElement(b,{className:"editor-InputSearch",value:t,onChange:this.handleSearchElemKeyChange,placeholder:k("962d43ff8d39c381d8e2c73838412111"),clearable:!1},t?$.createElement("a",{onClick:this.clearSearchElemKey},$.createElement(n,{icon:"close",className:"icon"})):$.createElement(n,{icon:"editor-search",className:"icon"})),$.createElement("hr",{className:"margin-top"}),$.createElement("div",{className:_("ae-Outline","hoverShowScrollBar",{"ae-Outline--draging":r.dragging}),onDragOver:this.handleDragOver,onDrop:this.handleDrop},r.dragging?$.createElement("div",{className:"ae-Outline-tip"},"将目标拖入导航中的节点可以切换容器"):null,a.length?$.createElement("ul",{className:"ae-Outline-list"},a.map((function(t,r){return e.renderItem(t,r)}))):$.createElement("div",null,"加载中,请稍等...")))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleClick",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleEnter",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDragStart",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDragOver",null),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"handleDrop",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String]),D("design:returntype",void 0)],t.prototype,"handleSearchElemKeyChange",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"clearSearchElemKey",null),M([Ct,D("design:type",Function),D("design:paramtypes",[String,String]),D("design:returntype",void 0)],t.prototype,"renderTitleByKeyword",null),t=M([ce],t)}($.Component);wr(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"order",{enumerable:!0,configurable:!0,writable:!0,value:-9999}),t}return A(t,e),Object.defineProperty(t.prototype,"buildEditorPanel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this.manager.store;if(r&&e.selections.length){var a=r.changeLeftPanelOpenStatus,i=r.changeLeftPanelKey;a(!0),i("outline")}t.push({key:"outline",icon:"png-icon outline-png",title:$.createElement("span",{className:"editor-tab-icon","editor-tooltip":"大纲"},$.createElement(n,{icon:"editor-outline"})),component:ei(oi),position:"left",order:4e3})}}),t}(Qt)),wr(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"order",{enumerable:!0,configurable:!0,writable:!0,value:9999}),t}return A(t,e),Object.defineProperty(t.prototype,"getRendererInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.renderer,r=e.schema,n=e.path;if(r.$$id&&t){if(/(^|\/)static\-field/.test(n))return;if("card-item"===t.name||"list-item-field"===t.name)return;return{name:"Unkown",$schema:"/schemas/UnkownSchema.json"}}}}),t}(Qt));var li,ci,di={};function si(e,t,r){var n=di[e]||{};return"function"==typeof n?n(t,r):t?F(F({},n),t):n}function ui(e,t){di[e]=t}function fi(e){try{if("undefined"===e)return;return JSON.parse(e)}catch(t){return e}}function pi(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 bi(e,t){return void 0===t&&(t=!0),t?function(t){return void 0===t?e:t}:function(t){return t||e}}function hi(e,t,r){return{type:"tooltip-wrapper",tooltip:t,tooltipTheme:"dark",placement:"top",tooltipStyle:F({fontSize:"12px"},r||{}),className:"ae-formItemControl-label-tip",body:e}}function vi(e){var t="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?Te().format("X"):"image"===e.type||"static-image"===e.type?t:"images"===e.type||"static-images"===e.type?[t]:k("6cb01692eea2fa7066d20fe2b6ccaea3")}!function(e){e.create="create",e.view="view",e.update="update",e.table="table",e.filter="filter"}(li||(li={})),function(e){e.entity="entity",e.list="list",e.piece="piece"}(ci||(ci={}));var mi={List:{value:"list",label:k("3712972d84adf48acbd6ad24b4d75ad0")},Insert:{value:"insert",label:k("66ab5e9f24c8f46012a25c89919fb191")},View:{value:"view",label:k("f26225bde6a250894a04db4c53ea03d0")},Edit:{value:"edit",label:k("95b351c86267f3aedf89520959bce689")},Delete:{value:"delete",label:k("2f4aaddde33c9b93c36fd2503f3d122b")},BulkEdit:{value:"bulkEdit",label:k("e73cefac9d030927da1618c7b15c98c9")},BulkDelete:{value:"bulkDelete",label:k("7fb62b30119c3797a843a48368463314")},Import:{value:"import",label:k("8d9a071ee2ef45e045968e117a205c07")},Export:{value:"export",label:k("55405ea6ff6fd823ffab7e6b10ddfa95")},SimpleQuery:{value:"simpleQuery",label:k("c26996a6506adf397f0668d376d0b40b")},FuzzyQuery:{value:"fuzzyQuery",label:k("6ff4bf3d567e977aa4c90c27dff1e6db")},AdvancedQuery:{value:"advancedQuery",label:k("9c4666fd08c2738eb9611a3721cb5f0f")}},gi=function(){Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"order",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"features",{enumerable:!0,configurable:!0,writable:!0,value:void 0})},yi={},wi=function(e){yi[e.type]=e},Oi=function(){function e(e,t){var r=this;Object.defineProperty(this,"builders",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.values(yi).filter((function(r){var n,a;return null===(a=null===(n=r.accessable)||void 0===n?void 0:n.call(r,e,t))||void 0===a||a})).forEach((function(e){r.builders[e.type]=new e}))}return Object.defineProperty(e.prototype,"builderNum",{get:function(){return Object.keys(this.builders).length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resolveBuilderBySetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.builders[e.dsType]||Object.values(this.builders)[0]}}),Object.defineProperty(e.prototype,"resolveBuilderBySchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=Object.values(this.builders);return r.find((function(r){return r.match(e[t])}))||r[0]}}),Object.defineProperty(e.prototype,"getDefaultBuilderName",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Object.entries(this.builders).map((function(e){return{value:e[0],order:e[1].order}})).sort((function(e,t){var r,n;return(null!==(r=e.order)&&void 0!==r?r:0)-(null!==(n=t.order)&&void 0!==n?n:0)}))[0].value}}),Object.defineProperty(e.prototype,"getDSSwitch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){void 0===e&&(e={});var t=this.builderNum>1,r=Object.entries(this.builders).map((function(e){var t=e[0],r=e[1];return{label:r.name,value:t,order:r.order}}));return r.sort((function(e,t){var r,n;return(null!==(r=e.order)&&void 0!==r?r:0)-(null!==(n=t.order)&&void 0!==n?n:0)})),F({type:"radios",label:k("a094e5b7699ea4b61094cc4120170423"),name:"dsType",visible:t,selectFirst:!0,options:r},e)}}),Object.defineProperty(e.prototype,"collectFromBuilders",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return Object.entries(this.builders).map((function(t){var r=t[0],n=t[1];return e(n,r)}))}}),e}();function Ei(e,t){return function(r){wr(function(r){function n(n){var a=r.call(this,n)||this;return Object.defineProperty(a,"rendererName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"scaffold",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"previewSchema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"panelTitle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"panelControls",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),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 A(n,r),n}(r))}}wi(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"name",{enumerable:!0,configurable:!0,writable:!0,value:k("54ea89b497ec3bb319c68844dfa3687f")}),Object.defineProperty(t,"order",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(t,"match",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){return!!("string"==typeof e&&/^(get|post|put|delete|option):/.test(e)||"object"==typeof e&&e.url)}}),Object.defineProperty(t,"features",{enumerable:!0,configurable:!0,writable:!0,value:["List","Insert","View","Edit","Delete","BulkEdit","BulkDelete","Import","Export","SimpleQuery","FuzzyQuery"]}),t}return A(t,e),Object.defineProperty(t.prototype,"makeSourceSettingForm",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.name,r=e.label,n=e.feat,a=e.inCrud,i=e.inScaffold;if(["Import","Export","SimpleQuery","FuzzyQuery"].includes(n))return[];r=null!=r?r:a&&"List"!==n?mi[n].label+k("54ea89b497ec3bb319c68844dfa3687f"):k("54ea89b497ec3bb319c68844dfa3687f"),t=null!=t?t:i?mi[n].value+"Api":"api";switch(n){case"Insert":r=hi(r,"用来保存数据, 表单提交后将数据传入此接口。 <br/>\n 接口响应体要求(如果data中有数据,该数据将被合并到表单上下文中):<br/>\n ".concat(JSON.stringify({status:0,msg:"",data:{}},null,"<br/>")));break;case"List":r=hi(r,"接口响应体要求:<br/>\n ".concat(JSON.stringify({status:0,msg:"",items:{},page:0,total:0},null,"<br/>")))}return[si("apiControl",{label:r,name:t,sampleBuilder:null,apiDesc:null})].concat("Edit"!==n||a?null:si("apiControl",{label:hi(k("b4bc91701b86fe8543d649e97daea602"),"接口响应体要求:<br/>\n ".concat(JSON.stringify({status:0,msg:"",data:{}},null,"<br/>"))),name:"initApi"})).concat("List"===n&&a&&i?this.makeFieldsSettingForm({feat:n,setting:!0}):null).filter(Boolean)}}),Object.defineProperty(t.prototype,"getContextFileds",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return H(this,void 0,void 0,(function(){return z(this,(function(t){return[2,e.schema.__fields]}))}))}}),Object.defineProperty(t.prototype,"getAvailableContextFileds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return H(this,void 0,void 0,(function(){return z(this,(function(e){return[2]}))}))}}),Object.defineProperty(t.prototype,"onFieldsInit",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.features.forEach((function(r){var n="".concat(mi[r].value,"Fields"),a=t.getValueByName(n),i=Ne(e||[]).map((function(e){var t=null==a?void 0:a.find((function(t){return t.name===e.name}));return F(F({},e),{checked:!t||t.checked})}));t.setValueByName(n,i)}))}}),Object.defineProperty(t.prototype,"makeFieldsSettingForm",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r=e.sourceKey,n=e.feat,a=e.inCrud,i=e.setting,l=e.inScaffold;if(!1===l||["Import","Export","FuzzyQuery"].includes(n))return[];r=null!=r?r:"".concat(mi[n].value,"Api");var c=i?"__fields":"".concat(mi[n].value,"Fields"),d=["Edit","Insert"].includes(n)||a&&"List"===n,s=["View","List"].includes(n);return[].concat(a&&"List"!==n?this.makeSourceSettingForm({feat:n,inScaffold:l,inCrud:a}):null).concat([{type:"combo",className:"mb-0 ae-Fields-Setting",joinValues:!1,name:c,label:a?"".concat(mi[n].label,"字段"):k("9caecd931b956381e0763d05aa42835c"),multiple:!0,draggable:!0,addable:!1,removable:!1,itemClassName:"ae-Fields-Setting-Item",hidden:i||!a||["Delete","BulkDelete"].includes(n),items:{type:"container",body:[{name:"checked",label:!1,mode:"inline",className:"m-0 ml-1",type:"checkbox"},{type:"tpl",className:"ae-Fields-Setting-Item-label",tpl:"${label}"}]}},{type:"input-table",label:k("9caecd931b956381e0763d05aa42835c"),className:"mb-0",name:c,visible:null!=i?i:!a,removable:!0,columnsTogglable:!1,needConfirm:!1,onChange:function(e,r,n,a){return t.onFieldsInit(e,a)},columns:[{type:"switch",name:"checked",value:!0,label:k("47cd88592f6ef2b258f02c0690d267ed"),visible:!1},{type:"input-text",name:"label",label:k("32c65d8d7431e76029678ec7bb73a5ab")},{type:"input-text",name:"name",label:k("020586d0c69f8211840ddf9ee9bbf6ab")},{type:"select",name:"type",label:k("226b0912184333c81babf2f1894ec0c1"),visible:s,value:"tpl",options:[{value:"tpl",label:k("97d07614380da93d257f9fbf81aa56fb"),typeKey:"tpl"},{value:"image",label:k("20def7942674282277c3714ed7ea6ce0"),typeKey:"src"},{value:"date",label:k("4ff1e74e43a3586339251494117185ad"),typeKey:"value"},{value:"progress",label:k("c7bff79d059a0b7ff9b02441959d8be2"),typeKey:"value"},{value:"status",label:k("3fea7ca76cdece641436d7ab0d02ab1b"),typeKey:"value"},{value:"mapping",label:k("9da188491dd34c4382a5b9f006194e41"),typeKey:"value"}],autoFill:{typeKey:"${typeKey}"}},{type:"select",name:"inputType",label:k("b3e55578af5dd473bab62641bb2f5f8e"),visible:d,value:"input-text",options:[{label:k("9b6425cd2d496c9cb5a6c6b8ff125d1b"),value:"input-text"},{label:k("15d169d28cd48c97fe751e4cc92ca926"),value:"textarea"},{label:k("9597dcaf432ceba92a160d61cb1ef65f"),value:"input-number"},{label:k("9913107b19cb6012250134ff91377430"),value:"radios"},{label:k("454e60f5759903d7d3dba58e3f9bd590"),value:"checkbox"},{label:k("db98f889ce6bc235e66bd4b2a788d137"),value:"checkboxes"},{label:k("006ded9fa277cf030592021f595a07d5"),value:"select"},{label:k("a6beb974cc0b50eebd18120b8110a88b"),value:"switch"},{label:k("4ff1e74e43a3586339251494117185ad"),value:"input-date"},{label:k("b339aa87104709397ba68e7ebbc6e5ba"),value:"input-table"},{label:k("481e034e6026969aae4ce7ce7c8a7b6f"),value:"input-file"},{label:k("6bfb9bb2218ff32b6139e98bc93707c0"),value:"input-image"},{label:k("24b6d4c0892a8f3ee2a982e3ab0afe38"),value:"input-rich-text"}]}]},{type:"group",visible:null!=i?i:!a,label:"",body:[{type:"grid",columns:[{body:[{type:"button",label:k("4484fa04e7b71db4c8293e5bcb53eca4"),target:c,className:"ae-Button--link",level:"link",icon:"plus",actionType:"add"}]},{columnClassName:"text-right",body:[{type:"button",label:k("4cc6a76c146c0360a41ceaf5e212c891"),visible:"Edit"===n||"List"===n,className:"ae-Button--link",level:"link",onClick:function(e,i){return H(t,void 0,void 0,(function(){var e,t,l,d,s,u,f,p,b,h;return z(this,(function(v){switch(v.label){case 0:return e=i.data,t=ve(window.editorStore).schemaFilter,l=e["Edit"!==n||a?r:"initApi"],t&&(l=t({api:l}).api),l||o.warning(k("a9fea442707e26dee478b34a2f2ce263")),[4,i.env.fetcher(l,e)];case 1:return d=v.sent(),s=[],"List"===n?(f=(null===(b=d.data)||void 0===b?void 0:b.rows)||(null===(h=d.data)||void 0===h?void 0:h.items),u=null==f?void 0:f[0]):u=d.data,u?(Object.entries(u).forEach((function(e){var t=e[0],r=e[1];s.push({label:t,type:"tpl",inputType:"number"==typeof r?"input-number":"input-text",name:t})})),i.formStore.setValues(((p={})[c]=s,p)),this.onFieldsInit(s,i.formStore)):o.warning(k("91aa2166ee4811414381c8d94e6567e6")),[2]}}))}))}}]}]}]}])}}),Object.defineProperty(t.prototype,"makeFieldFilterSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return H(this,void 0,void 0,(function(){return z(this,(function(e){return[2,[]]}))}))}}),Object.defineProperty(t.prototype,"resolveSourceSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.name,r=e.setting,n=e.schema,a=e.feat;n[t=null!=t?t:"api"]=r[a?"".concat(mi[a].value,"Api"):"api"],"Edit"===a&&(n.initApi=r.initApi)}}),Object.defineProperty(t.prototype,"resolveViewSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.setting,r=e.feat;return(t["".concat(mi[void 0===r?"Edit":r].value,"Fields")]||[]).filter((function(e){return e.checked})).map((function(e){var t;return(t={type:e.type})[e.typeKey||"value"]="${"+e.name+"}",t}))}}),Object.defineProperty(t.prototype,"resolveTableSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.schema,r=e.setting.listFields.filter((function(e){return e.checked}))||[];t.columns=this.makeTableColumnsByFields(r)}}),Object.defineProperty(t.prototype,"makeTableColumnsByFields",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.map((function(e){var t;return(t={type:e.type,title:e.label,name:e.name})[e.typeKey||"value"]="${"+e.name+"}",t}))}}),Object.defineProperty(t.prototype,"resolveCreateSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.schema,r=e.setting,n=e.feat,a=e.name,i=r["".concat(mi[n].value,"Fields")]||[];t[null!=a?a:"api"]=r[mi[n].value+"Api"],t.initApi=r.initApi,t.body=i.filter((function(e){return e.checked})).map((function(e){return{type:e.inputType,name:e.name,label:e.label}}))}}),Object.defineProperty(t.prototype,"resolveDeleteSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=e.schema,n=e.setting,a=e.feat;r.onEvent=Object.assign(null!==(t=r.onEvent)&&void 0!==t?t:{},{click:{actions:[]}});var i=F({},n["".concat(mi[a].value,"Api")]||{});i.data="Delete"===a?{id:"${item.id}"}:{ids:"${ARRAYMAP(selectedItems, item=> item.id)}"},r.onEvent.click.actions.push({actionType:"ajax",args:{api:i}})}}),Object.defineProperty(t.prototype,"resolveSimpleFilterSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return(e.setting.simpleQueryFields||[]).filter((function(e){return e.checked})).map((function(e){return{type:e.inputType,name:e.name,label:e.label}}))}}),Object.defineProperty(t.prototype,"resolveAdvancedFilterSchema",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t,"type",{enumerable:!0,configurable:!0,writable:!0,value:"api"}),Object.defineProperty(t,"accessable",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){return!0}}),t}(gi));var Pi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"tipName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"settingsSchema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return A(t,e),t}(Qt),Ci=function(e){function t(t){var r=e.call(this,t)||this;return r.manager.on("build-panels",r.buildPanels),r}return A(t,e),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.manager.off("build-panels",this.buildPanels)}}),Object.defineProperty(t.prototype,"buildPanels",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.context.data;Array.isArray(t)&&t.splice(0,t.length)}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.preview,r=e.className,n=e.theme,a=e.data,i=e.isMobile,o=e.autoFocus,l=e.previewProps;return $.createElement("div",{className:_("ae-Editor",{preview:t},r)},$.createElement("div",{className:"ae-Editor-inner",onContextMenu:this.handleContextMenu},$.createElement("div",{className:"ae-Main"},$.createElement(Nr,F({},l,{isMobile:i,editable:!t,store:this.store,manager:this.manager,theme:n,data:a,autoFocus:o})))),$.createElement($a,{store:this.store,manager:this.manager,theme:n}),$.createElement(_a,{store:this.store,manager:this.manager,theme:n}))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[Object]),D("design:returntype",void 0)],t.prototype,"buildPanels",null),t}(Ja),Si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"editorNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return A(t,e),Object.defineProperty(t.prototype,"UNSAFE_componentWillMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.props;t.data,t.path;var r=t.widthMutable,n=B(t,["data","path","widthMutable"]),a=this.context;this.editorNode=a.addChild({id:n.id,type:n.type,label:n.name,path:this.props.path,schemaPath:n.schemaPath,info:n,getData:function(){return e.props.data},widthMutable:r,memberIndex:n.memberIndex})}}),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.markDom(this.editorNode.id)}}),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.markDom(this.editorNode.id)}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.editorNode&&be(this.editorNode)&&this.context.removeChild(this.editorNode)}}),Object.defineProperty(t.prototype,"markDom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=de(this);if(t){var r=this.editorNode.info,n=r.wrapperResolve?r.wrapperResolve(t):t;(Array.isArray(n)?n:n?[n]:[]).forEach((function(t){return t.setAttribute("data-editor-id",e)}))}}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){return $.createElement(nr.Provider,{value:this.editorNode},this.props.children)}}),Object.defineProperty(t,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nr}),t}($.Component),ji=[{title:k("79d3abe929f67f0644a78bf32adb3a89"),letters:["⌘","c"],tooltip:k("b7d817611230d382f6ef92b41848a342")},{title:k("eafbece1016a6af76cce466e55ad9f00"),letters:["⌘","v"],tooltip:k("e0b9bb8e41eccd3ce6b282664643d7f8")},{title:k("43fc77886b7fbcd658f0ccdba36bd5a0"),letters:["⌘","x"],tooltip:k("a6be4ad12e9612811963c44466af3218")},{title:k("bd9fcf46b4e5993f97fe04ee9ebcd7ed"),letters:["⌘","z"],tooltip:k("58887132871b71b015c3a391e7755815")},{title:k("c3c873d33f1c6482c79b0ffd862786cd"),letters:["⌘","Shift","z"],tooltip:k("58887132871b71b015c3a391e7755815")},{title:k("be5fbbe34ce9979bfb6576d9eddc5612"),letters:["⌘","s"],tooltip:k("1f81fd4598e9151538f29c41b8aa0020")},{title:k("645dbc5504e722a30896486085a06b32"),letters:["⌘","p"],tooltip:k("5bc425ac8b75c571093a63eb6073c354")},{title:k("2f4aaddde33c9b93c36fd2503f3d122b"),letters:["Delete"],tooltip:k("426cd14ebd62a4922186527d07ba37f3")},{title:k("2f4aaddde33c9b93c36fd2503f3d122b"),letters:["Backspace"],tooltip:k("426cd14ebd62a4922186527d07ba37f3")},{title:k("499e58e764420aeed2d1476a56d8fa34"),letters:["⌘","↑"],tooltip:k("d040485f0e3887f0b297f8f772db03e4")},{title:k("08ad565f066d30572d1f8e2ee17cbe12"),letters:["⌘","↓"],tooltip:k("6348dc0e83d6ab391a8816f67d0e5ceb")}],xi=function(e){function t(t){var r=e.call(this,t)||this;return r.state={visible:!1},r}return A(t,e),Object.defineProperty(t.prototype,"closeShortcutKeyModal",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({visible:!1})}}),Object.defineProperty(t.prototype,"showShortcutKeyModal",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setState({visible:!0})}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.title,r=e.size,a=e.closeOnEsc,i=e.closeOnOutside,o=this.props.ShortcutKeyList||ji;return $.createElement($.Fragment,null,$.createElement("div",{className:"shortcut-icon-btn","editor-tooltip":"点击查看当前可用快捷键","tooltip-position":"bottom"},$.createElement(n,{icon:"editor-shortcut",onClick:this.showShortcutKeyModal})),$.createElement(P,{size:r||"xs",show:this.state.visible,closeOnEsc:null==a||a,closeOnOutside:null==i||i,onHide:this.closeShortcutKeyModal,contentClassName:"shortcut-list-modal"},$.createElement("div",{className:"shortcut-modal-header"},$.createElement("div",{className:"shortcut-modal-title"},t||k("9c3f1278ffa822835bb3a677f02bca27")),$.createElement(n,{icon:"close",className:"shortcut-modal-icon",onClick:this.closeShortcutKeyModal})),$.createElement("div",{className:"shortcut-modal-body"},o&&o.length>0&&$.createElement("div",{className:"shortcut-list"},o.map((function(e,t){return $.createElement("div",{className:"shortcut-item",key:t},e.tooltip&&$.createElement("div",{className:"shortcut-title","editor-tooltip":e.tooltip},e.title),!e.tooltip&&$.createElement("div",{className:"shortcut-title"},e.title),$.createElement("div",{className:"shortcut-letters"},e.letters.map((function(e){return $.createElement("div",{className:"shortcut-letter",key:e},e)}))))}))),!o||0===o.length&&$.createElement("span",null,"暂无快捷键"))))}}),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"closeShortcutKeyModal",null),M([Ct,D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],t.prototype,"showShortcutKeyModal",null),t}($.Component);export{Qa as AvailableRenderersPlugin,Qt as BasePlugin,Pi as BasicEditor,ai as CodeEditor,ir as ContainerWrapper,li as DSBehavior,gi as DSBuilder,Oi as DSBuilderManager,mi as DSFeature,ci as DSGrain,Ja as Editor,Pr as EditorManager,Cr as IFrameEditor,st as JSONCanMoveDown,ct as JSONCanMoveUp,lt as JSONChangeInArray,it as JSONDelete,ft as JSONDuplicate,rt as JSONGetById,et as JSONGetByPath,nt as JSONGetParentById,tt as JSONGetPathById,ot as JSONMerge,ut as JSONMoveDownById,dt as JSONMoveUpById,Je as JSONPipeIn,Ge as JSONPipeOut,Ft as JSONTraverse,at as JSONUpdate,bt as JsonGenerateID,er as LayoutBasePlugin,Ci as MiniEditor,ar as RegionWrapper,Ei as RendererEditor,Da as SearchPanel,xi as ShortcutKey,Si as VRenderer,Ye as __uri,St as addDragingClass,Qe as addStyleClassName,Ke as anyChanged,Wt as appTranslate,yr as autoPreRegisterEditorCustomPlugins,Ct as autobind,yt as blackList,xt as camelize,Xe as cleanUndefined,$e as cloneObject,ht as createElementFromHTML,Gt as createEvent,qe as createObject,vt as deepFind,Ja as default,bi as defaultValue,Nt as diff,Ze as eachTree,mt as filterSchemaForConfig,gt as filterSchemaForEditor,Ht as generateNodeId,Or as getEditorPlugins,Vt as getI18nEnabled,si as getSchemaTpl,He as guid,We as isEmpty,zt as isHasPluginIcon,Lt as isLayoutPlugin,At as isNumeric,Bt as isObject,Le as isObjectShallowModified,Dt as isString,Tt as jsonToJsonSchema,Ve as makeHorizontalDeeper,sr as mapReactElement,vi as mockValue,xr as mountInIframe,_t as needDefaultWidth,Zt as needFillPlaceholder,_e as noop,Pt as normalizeId,ze as omitControls,kt as patchDiff,Ot as persistGet,Et as persistSet,pt as reGenerateID,It as reactionWithOldValue,wi as registerDSBuilder,wr as registerEditorPlugin,jt as removeDragingClass,Rt as repeatArray,ui as setSchemaTpl,wt as sortByList,Mt as string2CSSUnit,Kt as stringRegExp,hi as tipedLabel,Ut as translateSchema,Er as unRegisterEditorPlugin,pi as undefinedPipeOut,$t as unitFormula,qt as utils,fi as valuePipeOut};
6
+ import{utils as e,hasIcon as t,mapObject as n,Icon as r,filterSchema as a,render as o,toast as i,alert as s,confirm as c,animation as l,openContextMenus as d,DataSchema as u,resizeSensor as p,resolveRenderer as f,InputBox as h,Html as m,Button as v,registerIcon as g,TooltipWrapper as b,Tabs as y,Tab as E,resolveVariable as w,getTheme as C,Modal as S,Spinner as x,Overlay as I,PopOver as R,Drawer as O,FormItem as N,prompt as k}from'amis';export{Icon,registerIcon}from'amis';import{extendLocale as F,i18n as A}from'i18n-runtime';import{__assign as M,__extends as P,__decorate as D,__metadata as B,__rest as T,__spreadArray as j,__read as z,__awaiter as H,__generator as L}from'tslib';import*as $ from'react';import K,{Component as _}from'react';import V from'classnames';import U from'lodash/isEqual';import{reaction as W,isObservable as Z}from'mobx';import q from'deep-diff';import Y from'lodash/isPlainObject';import J from'lodash/isNumber';import{cloneDeep as X,assign as G,omit as Q}from'lodash';import{getGlobalData as ee}from'amis-theme-editor-helper';import{createObject as te,attachmentAdpator as ne,DataSchema as re,mapTree as ae,eachTree as oe,findTree as ie,getRenderers as se,clearStoresCache as ce,LazyComponent as le,mapObject as de,extendObject as ue,getVariable as pe}from'amis-core';import{observer as fe}from'mobx-react';import{findDOMNode as he,render as me,unmountComponentAtNode as ve}from'react-dom';import{types as ge,getParent as be,isAlive as ye,getRoot as Ee,getEnv as we,cast as Ce,destroy as Se}from'mobx-state-tree';import xe from'lodash/find';import Ie from'lodash/groupBy';import Re from'lodash/uniq';import Oe from'lodash/findIndex';import Ne from'lodash/flatten';import ke from'axios';import Fe from'lodash/debounce';import{stringify as Ae,parse as Me}from'json-ast-comments';import Pe from'lodash/sortBy';import De from'lodash/cloneDeep';import Be from'lodash/reverse';import Te from'lodash/pick';import je from'lodash/omit';import ze from'lodash/isString';import{Editor as He}from'amis-ui';import Le from'react-json-view';import $e from'moment';F('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'}),F('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':'替换组件'});var Ke=e.guid,_e=e.omitControls,Ve=e.isObjectShallowModified,Ue=e.cloneObject,We=e.anyChanged,Ze=e.noop,qe=e.makeHorizontalDeeper,Ye=e.findIndex,Je=e.isEmpty,Xe=e.eachTree,Ge=e.createObject,Qe={},et={};function tt(e){return e}function nt(e){return Kt(e)?(Object.keys(e).forEach((function(t){void 0===e[t]&&delete e[t]})),e):e}function rt(e){if(!Kt(e)||e.$$typeof)return e;if(Array.isArray(e))return e.map(rt);var t={},n=!1;return e.$$id||(n=!0,t.$$id=Ke()),Object.keys(e).forEach((function(r){var a=e[r];if(Array.isArray(a)){var o=!1,i=a.map((function(e){var t=rt(e);return t!==e&&(o=!0),t}));o&&(n=!0,t[r]=i)}else{(i=rt(a))!==a&&(n=!0,t[r]=i)}})),n&&(e=nt(M(M({},e),t))),e}function at(e,t){if(Array.isArray(e)){var n=!1,r=e.map((function(e){var r=at(e,t);return r!==e&&(n=!0),r}));return n?r:e}if(!Kt(e)||Z(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=at(r,t);i!==r&&(a=!0,o[n]=i)})),a&&(e=nt(M(M({},e),o))),e}function ot(e){var t=e.themeCss||e.css;if(!t||'page'===e.type)return e;var n={};return Object.keys(t).forEach((function(t){if('$$id'!==t){var r=''.concat(t,'-').concat(e.id.replace('u:',''));e[t]?~e[t].indexOf(r)||(n[t]=e[t]+' '+r):n[t]=r}})),e=nt(M(M({},e),n))}function it(e,t,n){var r=e;return n&&n.push(e),t.forEach((function(e){r=r[e],n&&n.push(r)})),r}function st(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,s=e.path;if(i[n]===t)return a=!0,r=s.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){Kt(t)&&o.push({data:t,path:''.concat(s,'.').concat(e,'.').concat(n)})})):Kt(t)&&o.push({data:t,path:''.concat(s,'.').concat(e)})}))};o.length;){if('break'===i())break}return a?r:null}function ct(e,t,n){var r=st(e,t,n);return null===r?null:it(e,r)}function lt(e,t,n){void 0===n&&(n=!1);var r=st(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 dt(e,t,n,r){void 0===r&&(r=!1);var a=st(e,t);if(null===a)return e;var o=[],i=it(e,a,o);if(Array.isArray(n)&&o[o.length-2]&&Array.isArray(o[o.length-2])){var s=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],[s,1].concat(n)),o.pop()}else o[o.length-1]=i=M(M(M({},r?null:i),n),{$$id:t});for(;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]=M({},o[o.length-1]),o[o.length-1][a[o.length-1]]=c}return o[0]}function ut(e,t,n,r){var a=st(e,t);if(null===a)return e;Array.isArray(n)&&n.push.apply(n,a);var o=a.pop(),i=[],s=it(e,a,i);for(Array.isArray(s)?(i[i.length-1]=s=s.concat(),s.splice(o,1),r&&!s.length&&(i[i.length-1]=void 0)):(i[i.length-1]=s=M({},s),delete s[o]);i.length>1;){var c=i.pop();Array.isArray(i[i.length-1])?i[i.length-1]=i[i.length-1].concat():i[i.length-1]=M({},i[i.length-1]),void 0===c?delete i[i.length-1][a[i.length-1]]:i[i.length-1][a[i.length-1]]=c}return i[0]}function pt(e,t){if(!Kt(e)||!Kt(t))return t;if(!Ve(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]?pt(e[r][n],t):t})):void 0===e[r]?n[r]=t[r]:n[r]=pt(e[r],t[r])})),n}function ft(e,t,n){var r=st(e,t);if(null===r)return e;var a=parseInt(r.pop(),10),o=[],i=it(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 s=o.pop();Array.isArray(o[o.length-1])?o[o.length-1]=o[o.length-1].concat():o[o.length-1]=M({},o[o.length-1]),o[o.length-1][r[o.length-1]]=s}return o[0]}function ht(e,t){var n=lt(e,t);return!(!n||!Array.isArray(n))&&Ye(n,(function(e){return e.$$id===t}))>0}function mt(e,t){return ft(e,t,(function(e,t,n){0!==n&&(e.splice(n,1),e.splice(n-1,0,t))}))}function vt(e,t){var n=lt(e,t);if(!n||!Array.isArray(n))return!1;var r=Ye(n,(function(e){return e.$$id===t}));return~r&&r<n.length-1}function gt(e,t){return ft(e,t,(function(e,t,n){n!==e.length-1&&(e.splice(n,1),e.splice(n+1,0,t))}))}function bt(e,t,n){return void 0===n&&(n={}),ft(e,t,(function(e,t,r){var a=rt(at(t));e.splice(r+1,0,yt(a,n))}))}function yt(e,t){return void 0===t&&(t={}),zt(e,(function(e,n,r){var a,o='string'==typeof e&&0===e.indexOf('u:');if('id'===n&&o&&r){var i=Vt();t[r.id]=i,r.id=i}else'componentId'===n&&o&&(r.componentId=null!==(a=t[e])&&void 0!==a?a:e);return e})),e}function Et(e){Object.isFrozen(e)||(Array.isArray(e)&&e.forEach((function(e){return Et(e)})),Kt(e)&&!Z(e)&&(e.type&&!e.id&&(e.id=Vt()),Object.keys(e).forEach((function(t){var n=e[t];(Kt(n)||Array.isArray(n))&&Et(n)}))))}function wt(e){var t=document.createElement('div');return t.innerHTML=e.trim(),t.firstChild}function Ct(e,t,n){return void 0===n&&(n={}),(null==e?void 0:e.$$commonSchema)===t?n[t]=e:Y(e)?Object.keys(e).forEach((function(r){Ct(e[r],t,n)})):Array.isArray(e)&&e.map((function(e){return Ct(e,t,n)})),n}function St(e,t){if(Array.isArray(e))return e.map((function(e){return St(e,t)}));if(Y(e)){var n={},r=!1;return Object.keys(e).forEach((function(a){var o=e[a],i=St(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 s=Ct(t,o);s[o]&&(e=n=M({},s[o]))}}else e=n={$$commonSchema:o}})),r?n:e}return e}function xt(e){if(Array.isArray(e))return e.map((function(e){return xt(e)}));if(Y(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=xt(a);t[r]=o,o!==a&&(n=!0)})),n?t:e}return e}function It(e){return function(t){return!~e.indexOf(t)}}function Rt(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 Ot(e,t){var n=localStorage.getItem('amis-editor-'.concat(e));return n&&(n=JSON.parse(n)),n||t}function Nt(e,t){t=JSON.stringify(t),localStorage.setItem('amis-editor-'.concat(e),t)}function kt(e){return e.replace(/\-[a-z0-9]+$/g,'')}var Ft=e.autobind;function At(e){for(;e&&(e.classList.add('ae-is-draging'),!(null==(e=e.parentElement)?void 0:e.hasAttribute('data-region'))););}function Mt(e){for(;e&&(e.classList.remove('ae-is-draging'),!(null==(e=e.parentElement)?void 0:e.hasAttribute('data-region'))););}function Pt(e){return e.replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}))}var Dt=function(e,t){var n;return W(e,(function(e){U(e,n)||(t(e,n),n=e)}))};function Bt(e,t){void 0===t&&(t=1);for(var n=[];t-- >0;)n.push(e);return n}function Tt(e,t,n){return q.diff(e,t,n)}function jt(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?M({},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():M({},a),n[t]=a),{source:r,target:a}}),{target:e,source:t}),q.applyChange(e,t,n)}return e}(t,e,n)}),e):e}function zt(e,t){Object.keys(e).forEach((function(n){var r=e[n];Y(r)||Array.isArray(r)?zt(r,t):t(r,n,e)}))}var Ht=function(e){return J(e)||!isNaN(parseFloat(String(e).toString()))},Lt=function(e,t){return void 0===t&&(t='px'),e?Ht(e)?''.concat(parseFloat(String(e).toString())).concat(t):e:void 0};function $t(e){return'String'===Object.prototype.toString.call(e).slice(8,-1)}function Kt(e){var t=!1;return'Object'===Object.prototype.toString.call(e).slice(8,-1)&&(t=!0),t}function _t(e,t,n){void 0===e&&(e={}),void 0===n&&(n=3);var r={type:'object',properties:{}};return Z(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]=M({type:i,title:(null==t?void 0:t(i,a))||a},'object'===i?_t(o,t,n-1):{items:_t(o[0],t,n-1)}):r.properties[a]={type:'',title:(null==t?void 0:t(i,a))||a}})),r}function Vt(){return'u:'+Ke()}function Ut(e){return e.pluginIcon&&t(e.pluginIcon)}function Wt(e){return!(!e||'flex'!==e.type)}function Zt(e,t){if('auto'===e)return'auto';var n=parseInt(e),r=t;J(t)||(r=parseInt(t));var a=e.substring(n.toString().length);return a||(a='px'),''.concat(n+r).concat(a)}function qt(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,'')}function Yt(e){return['divider','crud2','crud','list','picker','table','table-view','grid','cards','card','form','progress','diff-editor','editor','input-range','flex'].indexOf(e)>-1}function Jt(){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 Xt(e,t){var r;return t=t||(null===(r=null===window||void 0===window?void 0:window.editorStore)||void 0===r?void 0:r.appCorpusData),Y(t)?n(e,(function(e){return t[e]||e})):e}function Gt(e){var t,n;return $t(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 Qt(e){var t,n,r,a,o=!1;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))&&(o=!0),o)))}function en(e){et=ee(Qe=e)}function tn(e){var t=X(e);return t.themeConfig=Qe,G(t,et),t}function nn(e){if(!e)return e;var t=X(e);return delete t.themeConfig,Object.keys(et).forEach((function(e){delete t[e]})),t}var rn=Object.freeze({__proto__:null,guid:Ke,isObjectShallowModified:Ve,anyChanged:We,noop:Ze,makeHorizontalDeeper:qe,omitControls:_e,isEmpty:Je,cloneObject:Ue,eachTree:Xe,createObject:Ge,get themeConfig(){return Qe},get themeOptionsData(){return et},__uri:tt,cleanUndefined:nt,JSONPipeIn:rt,JSONPipeOut:at,addStyleClassName:ot,JSONGetByPath:it,JSONGetPathById:st,JSONGetById:ct,JSONGetParentById:lt,JSONUpdate:dt,JSONDelete:ut,JSONMerge:pt,JSONChangeInArray:ft,JSONCanMoveUp:ht,JSONMoveUpById:mt,JSONCanMoveDown:vt,JSONMoveDownById:gt,JSONDuplicate:bt,reGenerateID:yt,JsonGenerateID:Et,createElementFromHTML:wt,deepFind:Ct,filterSchemaForConfig:St,filterSchemaForEditor:xt,blackList:It,sortByList:Rt,persistGet:Ot,persistSet:Nt,normalizeId:kt,autobind:Ft,addDragingClass:At,removeDragingClass:Mt,camelize:Pt,reactionWithOldValue:Dt,repeatArray:Bt,diff:Tt,patchDiff:jt,JSONTraverse:zt,isNumeric:Ht,string2CSSUnit:Lt,isString:$t,isObject:Kt,jsonToJsonSchema:_t,generateNodeId:Vt,isHasPluginIcon:Ut,isLayoutPlugin:Wt,unitFormula:Zt,stringRegExp:qt,needDefaultWidth:Yt,getI18nEnabled:Jt,translateSchema:Xt,appTranslate:Gt,needFillPlaceholder:Qt,setThemeConfig:en,setThemeDefaultData:tn,deleteThemeConfigData:nn}),an=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mainRef=K.createRef(),t}return P(t,e),t.prototype.handleWResizerMouseDown=function(e){return this.startResize(e,'horizontal')},t.prototype.handleHResizerMouseDown=function(e){return this.startResize(e,'vertical')},t.prototype.handleResizerMouseDown=function(e){return this.startResize(e,'both')},t.prototype.startResize=function(e,t){var n,r,a,o=this;if(void 0===t&&(t='horizontal'),(1===e.button&&null!==window.event||0===e.button)&&!e.defaultPrevented){e.preventDefault();var i=this.props,s=i.manager,c=i.id,l=i.node,d=i.store;if(l){var u=document.querySelector('[data-editor-id="'.concat(c,'"]'));if(u){s.disableHover=!0;var p=s['both'===t?'onSizeChangeStart':'vertical'===t?'onHeightChangeStart':'onWidthChangeStart'](e,{dom:u,node:l,store:d,resizer:'both'===t?this.resizerDom:'vertical'===t?this.hResizerDom:this.wResizerDom}),f=null===(n=p.data)||void 0===n?void 0:n.onMove,h=null===(r=p.data)||void 0===r?void 0:r.onEnd;if(f||h){null===(a=this.mainRef.current)||void 0===a||a.setAttribute('data-resizing','');var m=function(e){e.preventDefault(),null==f||f(e)},v=function(e){var t;e.preventDefault(),s.disableHover=!1,null===(t=o.mainRef.current)||void 0===t||t.removeAttribute('data-resizing'),window.removeEventListener('mousemove',m),window.removeEventListener('mouseup',v),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==h||h(e)};window.addEventListener('mousemove',m),window.addEventListener('mouseup',v),document.body.style.cursor='both'===t?'nwse-resize':'vertical'===t?'ns-resize':'ew-resize'}}}}},t.prototype.wResizerRef=function(e){var t;e?e.addEventListener('mousedown',this.handleWResizerMouseDown):null===(t=this.wResizerDom)||void 0===t||t.addEventListener('mousedown',this.handleWResizerMouseDown),this.wResizerDom=e},t.prototype.hResizerRef=function(e){var t;e?e.addEventListener('mousedown',this.handleHResizerMouseDown):null===(t=this.hResizerDom)||void 0===t||t.addEventListener('mousedown',this.handleHResizerMouseDown),this.hResizerDom=e},t.prototype.resizerRef=function(e){var t;e?e.addEventListener('mousedown',this.handleResizerMouseDown):null===(t=this.resizerDom)||void 0===t||t.addEventListener('mousedown',this.handleResizerMouseDown),this.resizerDom=e},t.prototype.handleMouseEnter=function(){this.props.manager.disableHover||this.props.store.setHoverId(this.props.id)},t.prototype.handleDragStart=function(e){var t=this.props,n=t.manager,r=t.id;n.disableHover||n.startDrag(r,e)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.store,a=e.id,o=e.title,i=e.children,s=e.node;e.toolbarContainer;var c=e.onSwitch,l=n.sortedToolbars,d=n.sortedSecondaryToolbars,u=n.sortedSpecialToolbars,p=n.isActive(a),f=n.parentIsFreeContainer(),h=n.isHoved(a)||n.dropId===a||n.insertOrigId===a||f===a,m=n.draggableContainer(a),v=document.getElementById('aePreviewHighlightBox').offsetWidth-s.x<176;return K.createElement('div',{className:V('ae-Editor-hlbox',{shake:a===n.insertOrigId,selected:p||~n.selections.indexOf(a),hover:h,regionOn:s.childRegions.some((function(e){return n.isRegionHighlighted(e.id,e.region)})),isFreeContainerElem:!!f||m},t),'data-hlbox-id':a,style:{display:s.w&&s.h?'block':'none',top:s.y,left:s.x,width:s.w,height:s.h},ref:this.mainRef,onMouseEnter:this.handleMouseEnter,draggable:!!f||m,onDragStart:this.handleDragStart},p?K.createElement('div',{className:'ae-Editor-toolbarPopover '.concat(v?'is-right-elem':'')},K.createElement('div',{className:'ae-Editor-nav'},s.host?K.createElement('div',{className:'ae-Editor-tip parent',onClick:function(){return null==c?void 0:c(s.host.id)}},s.host.label):null,K.createElement('div',{key:'tip',className:'ae-Editor-tip current'},o),s.firstChild?K.createElement('div',{className:'ae-Editor-tip child',onClick:function(){return null==c?void 0:c(s.firstChild.id)}},s.firstChild.label):null),K.createElement('div',{className:'ae-Editor-toolbar',key:'toolbar'},l.map((function(e){return K.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?K.createElement(r,{className:'icon',icon:e.iconSvg}):~e.icon.indexOf('<')?K.createElement('span',{dangerouslySetInnerHTML:{__html:e.icon}}):K.createElement('i',{className:e.icon}))})))):null,p&&d.length?K.createElement('div',{className:'ae-Editor-toolbar sencondary',key:'sencondary-toolbar'},d.map((function(e){return K.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?K.createElement(r,{className:'icon',icon:e.iconSvg}):~e.icon.indexOf('<')?K.createElement('span',{dangerouslySetInnerHTML:{__html:e.icon}}):K.createElement('i',{className:e.icon}))}))):null,p&&u.length?K.createElement('div',{className:'ae-Editor-toolbar special',key:'special-toolbar'},u.map((function(e){return K.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?K.createElement(r,{className:'icon',icon:e.iconSvg}):~e.icon.indexOf('<')?K.createElement('span',{dangerouslySetInnerHTML:{__html:e.icon}}):K.createElement('i',{className:e.icon}))}))):null,i,s.widthMutable?K.createElement(K.Fragment,null,K.createElement('span',{className:'ae-border-WResizer',ref:this.wResizerRef}),K.createElement('span',{className:'ae-WResizer',ref:this.wResizerRef})):null,s.heightMutable?K.createElement(K.Fragment,null,K.createElement('span',{className:'ae-border-HResizer',ref:this.hResizerRef}),K.createElement('span',{className:'ae-HResizer',ref:this.hResizerRef})):null,s.widthMutable&&s.heightMutable?K.createElement('span',{className:'ae-Resizer',ref:this.resizerRef}):null)},D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handleWResizerMouseDown',null),D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handleHResizerMouseDown',null),D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handleResizerMouseDown',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'wResizerRef',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'hResizerRef',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'resizerRef',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleMouseEnter',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDragStart',null),t=D([fe],t)}(K.Component),on=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.handleClick=function(){var e=this.props,t=e.manager,n=e.id,r=e.name;t.emptyRegion(n,r)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.id,a=e.name,o=e.title,i=e.node,s=e.isOnlyChildRegion,c=t.isRegionHighlighted(n,a),l=t.isRegionHighlightHover(n,a),d=t.isRegionDragEnter(n,a),u=t.getNodeById(n),p=i.x-u.x,f=i.y-u.y;return K.createElement('div',{'data-renderer':i.host.info.renderer.name,'data-region':a,className:V('ae-Editor-rhlbox',d?'is-dragenter':'',!s&&l?'region-hover':'',c?'is-highlight':'',p<87&&f<21&&i.x<190?'region-label-within':''),style:{width:i.w,height:i.h,borderWidth:''.concat(Math.max(0,f),'px ').concat(Math.max(0,u.w-p-i.w),'px ').concat(Math.max(0,u.h-f-i.h),'px ').concat(Math.max(0,p),'px')}},K.createElement('div',{'data-node-id':n,'data-node-region':a,className:'region-tip '.concat(s?'is-only-child-region':'',' ignore-hover-elem')},o,K.createElement('span',{className:'margin-space'},'|'),K.createElement('button',{type:'button',className:'clear-icon-btn','data-tooltip':A('bb28ec819520ced0ffb4c3da01f112e2'),'data-position':'bottom',onClick:this.handleClick},K.createElement(r,{icon:'clear-btn'}))))},D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleClick',null),t=D([fe],t)}(K.Component),sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.render=function(){return K.createElement('div',{className:'ae-ErrorRenderer'},'类型错误,无法渲染')},t}(K.Component);function cn(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 ln=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=A('db805d4e361ac2d3fc6047eaea1a7c69'):(null==n?void 0:n.isSorptionContainer)&&(a=A('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,rendererName:r.rendererName}}},e.prototype.buildEditorPanel=function(e,t){var n,r,a,o,i=this,s=this.manager.store;if(s.activeId&&!e.selections.length){if(!e.info.hostId&&(i.panelControls||i.panelControlsCreator||i.panelBody||i.panelBodyCreator)&&e.info.plugin===this){var c=i.panelBodyCreator?i.panelBodyCreator(e):i.panelBody;this.manager.trigger('after-build-panel-body',{context:e,data:c,plugin:i}),t.push({key:'config',icon:i.panelIcon||i.icon||'fa fa-cog',pluginIcon:i.pluginIcon,title:i.panelTitle||A('e366ccf1556c0672dcecba135ed5472e'),render:this.manager.makeSchemaFormRender({definitions:i.panelDefinitions,submitOnChange:i.panelSubmitOnChange,api:i.panelApi,body:c,controls:i.panelControlsCreator?i.panelControlsCreator(e):i.panelControls,justify:i.panelJustify,panelById:s.activeId})})}else e.info.plugin===this&&e.info.hostId&&((null===(n=i.vRendererConfig)||void 0===n?void 0:n.panelControls)||(null===(r=i.vRendererConfig)||void 0===r?void 0:r.panelControlsCreator)||(null===(a=i.vRendererConfig)||void 0===a?void 0:a.panelBody)||(null===(o=i.vRendererConfig)||void 0===o?void 0:o.panelBodyCreator))&&t.push({key:e.info.multifactor?'vconfig':'config',icon:i.vRendererConfig.panelIcon||'fa fa-cog',title:i.vRendererConfig.panelTitle||A('e366ccf1556c0672dcecba135ed5472e'),render:this.manager.makeSchemaFormRender({submitOnChange:i.panelSubmitOnChange,api:i.panelApi,definitions:i.vRendererConfig.panelDefinitions,controls:i.vRendererConfig.panelControlsCreator?i.vRendererConfig.panelControlsCreator(e):i.vRendererConfig.panelControls,body:i.vRendererConfig.panelBodyCreator?i.vRendererConfig.panelBodyCreator(e):i.vRendererConfig.panelBody,justify:i.vRendererConfig.panelJustify,panelById:s.activeId})});if(e.info.plugin===this&&e.info.multifactor){var l=e.node.sameIdChild;if(l)this.manager.collectPanels(l,!1,!0).forEach((function(e){var n,r;'config'!==e.key&&'vconfig'!==e.key||t.push(M(M({},e),{key:'sub-'.concat(e.key),icon:(null===(r=null===(n=l.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,s,c,l;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!==(s=e.docLink)&&void 0!==s?s:r.docLink,type:null!==(c=e.type)&&void 0!==c?c:r.type,scaffold:null!==(l=e.scaffold)&&void 0!==l?l: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 K.createElement('div',{key:t,className:'wrapper-sm b-a b-light m-b-sm',style:n,children:K.createElement('span',{className:'text-muted',children:e})})},e.prototype.getPlugin=function(e){return xe(this.manager.plugins,(function(t){return'string'==typeof e?t.rendererName===e:t instanceof e}))},e.scene=['global'],e}(),dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(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,s=r.dom,c=o.getDoc()||document,l=s.parentElement.getBoundingClientRect(),d=s.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,d.height+n),s=Math.max(100,Math.min(d.width+r,l.width)),f={width:s,height:o},h=c.querySelector('[data-hlbox-id=\''.concat(a.id,'\']')),m=c.querySelector('[data-editor-id=\''.concat(a.id,'\']'));'both'===t?(i.setAttribute('data-value',''.concat(s,'px x ').concat(o,'px')),h.style.height=''.concat(o,'px'),h.style.width=''.concat(s,'px'),m.style.height=''.concat(o,'px'),m.style.width=''.concat(s,'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(s,'px')),h.style.width=''.concat(s,'px'),m.style.width=''.concat(s,'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,d.height+n),s={width:Math.max(100,Math.min(d.width+r,l.width)),height:o};'vertical'===t?delete s.width:'horizontal'===t&&delete s.height,i.removeAttribute('data-value'),a.updateSchemaStyle(s),requestAnimationFrame((function(){a.calculateHighlightBox()}))}})}},t}(ln),un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(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=he(this);if(a&&e){var o=this.props.$$editor,i=!1!==this.props.$$visible&&!0!==this.props.$$hidden,s=o.wrapperResolve?o.wrapperResolve(a):a;(Array.isArray(s)?s:s?[s]:[]).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?'':A('392342f7750a565f9a79c678c6b12421'))})),null===(n=null===(t=o.plugin)||void 0===t?void 0:t.markDom)||void 0===n||n.call(t,s,this.props)}},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=e.store,a=T(e,['$$editor','$$node','store']),o=t.renderer;return t.filterProps&&(a=t.filterProps.call(t.plugin,a,n)),t.renderRenderer?t.renderRenderer.call(t.plugin,M(M(M(M(M(M({},a),{store:r}),null==n?void 0:n.state),{$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):K.createElement(o.component,M({},a,{store:r},null==n?void 0:n.state,{$$editor:t},t.wrapperProps,{ref:this.refFn}))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'refFn',null),t=D([fe],t)}(K.Component),pn=ge.model('EditorNode',{parentId:'',parentRegion:'',isCommonConfig:!1,id:'',type:'',label:'',regionInfo:ge.maybe(ge.frozen()),path:'',schemaPath:'',region:'',preferTag:'',state:ge.optional(ge.frozen(),{}),widthMutable:!1,heightMutable:!1,memberIndex:-1,folded:!1,patched:!1,x:0,y:0,w:0,h:0,children:ge.optional(ge.array(ge.late((function(){return pn}))),[])}).volatile((function(){return{getData:ge.frozen()}})).views((function(e){var t,n;return{get info(){return t},setInfo:function(e){t=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=e.children.filter((function(e,t,n){return n.findIndex((function(t){return e.isRegion?t.id===e.id&&t.region===e.region:t.id===e.id}))===t}));if(Array.isArray(this.schema)){var n=this.schema;t=t.sort((function(e,t){return Oe(n,(function(t){return(null==t?void 0:t.$$id)===e.id}))-Oe(n,(function(e){return(null==e?void 0:e.$$id)===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=be(e,2);return'root'!==(null==t?void 0:t.id)?t:null}catch(e){return null}},get ancestorField(){var t,n,r,a,o=be(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:{},s=null!==(r=null==i?void 0:i.body)&&void 0!==r?r:[],c=Object.keys(null!==(a=null==i?void 0:i.data)&&void 0!==a?a:{});return Re(j(j([],z(s.map((function(e){var t;return null!==(t=null==e?void 0:e.name)&&void 0!==t?t:''}))),!1),z(c),!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(!ye(e))return null;var t=Ee(e).getSchema(e.id);return this.isRegion&&t?t[e.region]:t},get schemaParent(){var t=Ee(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]=[rt({type:'tpl',tpl:i,wrapperComponent:'',inline:!1})]);if(Array.isArray(i)){var s=!1,c=i.map((function(e){if('string'==typeof e&&e)return s=!0,rt({type:'tpl',tpl:e,wrapperComponent:'',inline:!1});if(o.length){var n=t(e,[o.join('.')]);n!==e&&(s=!0,e=n)}return e}));s&&(r=!0,a[n]=c)}else i&&(a[n]=[rt(i)],r=!0)})),r&&(e=M(M({},e),a)),e}function n(t){var n=Array.isArray(t)?t:t?[t]:[];if(n.length){var r=Ee(e).getIframe(),a=Ee(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(),s=i.getBoundingClientRect(),c=i.parentElement.closest('.ae-Preview-inner,[data-region],[data-editor-id]');if(!o&&c)o=c;else if(c&&o&&c!==o)continue;a.left=Math.min(a.left,s.left),a.top=Math.min(a.top,s.top),a.right=Math.max(a.right,s.right),a.bottom=Math.max(a.bottom,s.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 s=r.getBoundingClientRect();i.left+=s.left,i.top+=s.top}var c=o.height;c&&(e.x=i.left+0,e.y=i.top+0,e.w=o.width,e.h=c)}}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}},updateIsCommonConfig:function(t){e.isCommonConfig=!!t},addChild:function(t){e.children.push(M(M({},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.splice(n,1)},toggleFold:function(t){t.stopPropagation(),t.preventDefault(),e.folded=!e.folded},patch:function(n,r){if(void 0===r&&(r=!1),!e.patched||r){e.patched=!0;var o=n,i=e.info;if(!1!==i.editable){var s=o.getSchema(i.id),c=s;(null==c?void 0:c.id)||(c=M(M({},c),{id:'u:'+Ke()})),(Array.isArray(i.regions)&&i.regions.length||Array.isArray(i.patchContainers))&&(c=t(c,i.patchContainers||i.regions.map((function(e){return e.key})))),(c=rt(c=a(c,{component:i.renderer.component})))!==s&&o.changeValueById(i.id,c,void 0,!0,!0)}}},updateSchema:function(t){var n=e.info;if(!1!==n.editable){var r=Ee(e),a=r.getSchema(n.id);a=M(M({},a),t),r.changeValueById(n.id,a)}},updateSchemaStyle:function(t){var n=e.info;if(!1!==n.editable){var r=Ee(e),a=r.getSchema(n.id);a=M(M({},a),{style:M(M({},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=Ee(e)),t.calculateStarted){var a=Ee(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=M(M({},n?null:e.state),t)},setWidthMutable:function(t){e.widthMutable=!!t},setHeightMutable:function(t){e.heightMutable=!!t}}})),fn=K.createContext(null),hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(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&&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&&ye(this.editorNode)&&this.parentNode&&this.parentNode.removeChild(this.editorNode)},t.prototype.markDom=function(e,t,n){var r=he(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 Qt(this.props)&&(t=!0),K.createElement(fn.Provider,{value:this.editorNode},this.props.children,K.createElement('span',{className:'ae-Region-placeholder '.concat(e?'layout-content':'',' ').concat(t?'fill-placeholder':'')},this.props.placeholder||this.props.label))},t.contextType=fn,t}(K.Component),mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(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,s=a(e,t,n);if(null==i?void 0:i.memberImmutable(e))return s;var c=xe(o.regions,(function(t){return t.key===e&&!t.matchRegion&&!t.renderMethod}));if(c){var l=c.wrapper||hn;return K.createElement(l,{key:null==n?void 0:n.key,preferTag:c.preferTag,name:c.key,label:c.label,placeholder:c.placeholder,regionConfig:c,editorStore:o.plugin.manager.store,wrapperResolve:c.wrapperResolve,manager:o.plugin.manager,children:s,rendererName:o.renderer.name,$$editor:o,node:i})}return s},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=T(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||A('939d5345ad4345dbaabe14798f6ac0f1'),primary:!0}]);var i=Array.isArray(r[t])?r[t].concat():r[t]?[r[t]]:o;i.length||i.push({children:function(){return null}}),a[t]=i}})),K.createElement(un,M({},r,a,{$$editor:t,$$node:n,render:this.renderChild,ref:this.refFn}))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'refFn',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String,Object,Object]),B('design:returntype',void 0)],t.prototype,'renderChild',null),t=D([fe],t)}(K.Component),vn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.componentWillUnmount=function(){var e=he(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=he(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=T(e,['$$editor','$$node','$schema','store']),i=t.renderer;return o=at(o),t.filterProps&&(o=t.filterProps.call(t.plugin,o,n)),t.renderRenderer?t.renderRenderer.call(t.plugin,M(M(M(M({},o),{store:a,$schema:r,$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):K.createElement(i.component,M({},o,{store:a,$schema:r,$$editor:t},t.wrapperProps,{ref:this.refFn}))},t}(un);function gn(e){var t,n=this,r=e.propKey,a=e.body,i=e.definitions,s=e.controls,c=e.onChange,l=e.value,d=e.env,u=e.api,p=e.popOverContainer,f=e.submitOnChange,h=e.node,m=e.manager,v=e.justify,g=e.ctx,b=e.pipeIn,y=e.pipeOut,E='body';Array.isArray(s)&&(a=s,E='controls'),a=Array.isArray(a)?a.concat():[],!1===f&&a.push({type:'submit',label:A('be5fbbe34ce9979bfb6576d9eddc5612'),level:'primary',block:!0,className:'ae-Settings-actions'});var w=((t={key:r,definitions:i})[E]=a,t.className=V('config-form-content','ae-Settings-content','hoverShowScrollBar',!1===f?'with-actions':''),t.wrapperComponent='div',t.type='form',t.title='',t.mode='normal',t.api=u,t.wrapWithPanel=!1,t.submitOnChange=!1!==f,t.messages={validateFailed:''},t);v&&(w.mode='horizontal',w.horizontal={left:4,right:8,justify:!0}),l=l||{};var C=tn(b?b(l):l);return o(w,{onFinished:function(e){return H(n,void 0,void 0,(function(){var t,n,r;return L(this,(function(a){switch(a.label){case 0:return t=nn,y?[4,y(e)]:[3,2];case 1:return n=a.sent(),[3,3];case 2:n=e,a.label=3;case 3:return e=t.apply(void 0,[n]),r=Tt(l,e),c(e,r),[2]}}))}))},data:g?te(g,C):C,node:h,manager:m,popOverContainer:p},M({},Q(d,'replaceText')))}function bn(e,t,n){for(var r=e.Renderer;r.ComposedComponent;)r=r.ComposedComponent;var a=r.prototype;if(Array.isArray(t)){var o=Ie(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],s=null===(t=i[0])||void 0===t?void 0:t.renderMethodOverride;a['__'.concat(e)]=a[e],a[e]=(n=a['__'.concat(e)],r=(null==s?void 0:s(i.concat(),yn))||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 xe(n.regions,(function(t){return t.key===e.key}))}))){var a=i.map((function(e){var t=xe(n.regions,(function(t){return t.key===e.key&&(!e.rendererName||e.rendererName===t.rendererName)}));return t?M(M({},e),{label:t.label,preferTag:t.preferTag}):e}));return yn(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 yn(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=xe(n,(function(e){return!e.matchRegion}));if(o){var i=o.wrapper||hn;return'inner'===o.insertPosition&&K.isValidElement(t)?K.cloneElement(t,{children:K.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})}):K.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 s=z(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),c=s[0],l=s[1];if(c){i=c.wrapper||hn;if(n.splice(l,1),'outter'===c.insertPosition)return K.createElement(i,{key:c.key,preferTag:c.preferTag,name:c.key,label:c.label,placeholder:c.placeholder,regionConfig:c,editorStore:a.store,manager:a,children:t,wrapperResolve:c.wrapperResolve});if(K.isValidElement(t)){var d=t.props.children;return K.cloneElement(t,{children:K.createElement(i,{key:c.key,preferTag:c.preferTag,name:c.key,label:c.label,placeholder:c.placeholder,regionConfig:c,editorStore:a.store,manager:a,children:d,wrapperResolve:c.wrapperResolve})})}}else if(K.isValidElement(t)&&t.props.children){d=t.props.children;return d=Array.isArray(d)?d.map((function(t){return yn(e,t,n,r,a)})):yn(e,d,n,r,a),K.cloneElement(t,{children:d})}}return t}function En(e,t,n){if(!K.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=En(e,t,n);r!==e&&(i=!0,K.isValidElement(r)&&!r.key&&(r=K.cloneElement(r,{key:n}))),o.push(r)})),i&&(r=K.cloneElement(r,{children:o}))}else{var s=En(a,t,n);s!==a&&(r=K.cloneElement(r,{children:s}))}}return r}var wn=document.createElement('div');var Cn={updateLocation:function(){},jumpTo:function(){i.info(A('245897371cda2055f5c17c6cf298ed48'))},fetcher:function(e){var t=e.url,n=e.method,r=e.data,a=e.config;return H(void 0,void 0,void 0,(function(){var e;return L(this,(function(o){switch(o.label){case 0:return(a=a||{}).url=t,a.withCredentials=!0,a.cancelExecutor&&(a.cancelToken=new ke.CancelToken(a.cancelExecutor)),a.headers=a.headers||{},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,ke(a)];case 1:return e=o.sent(),[4,ne(e,(function(e){return''}))];case 2:return[2,e=o.sent()]}}))}))},isCancel:function(e){return ke.isCancel(e)},alert:s,confirm:c,notify:function(e,t){i[e]?i[e](t,A('error'===e?'a71002967924a83e32b38a80705290fb':'058ebdf2884474ebff2977ba2f0e275e')):console.warn('[Notify]',e,t)}},Sn=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'),s=Oe(r,(function(e){return e.$$id===i}));~s&&r[s+1]&&(this.dropBeforeId=r[s+1].$$id),this.dndContainer.insertBefore(t,a);var c=n.outerHTML.replace('ae-is-draging','').replace(/\bdata\-editor\-id=(?:'.+?'|".+?")/g,'');t.innerHTML=c}else{var l=this.dnd.manager,d=l.store;!function(e,t,n,r){e.innerHTML='';var a=t.host.getComponent(),i=(null==a?void 0:a.renderControl)&&'body'===t.region;try{me(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)}},{},M(M({},r.env),{theme:(null==a?void 0:a.props.theme)||r.env.theme,session:'ghost-thumb'}),''),wn)}catch(e){}var s=wn.innerHTML||A('f942c7a6a35c4eb1381d2966462d0489');e.innerHTML=s,ve(wn),wn.innerHTML=''}(t,this.region,Xt(d.dragSchema),l),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,s=Array.isArray(i)?i:[],c=e.clientX-this.exchangeX,d=e.clientY-this.exchangeY;if(a&&!l.animating){var u=a.getAttribute('data-editor-id'),p=this.getChild(o,a),f=Oe(s,(function(e){return e.$$id===u})),h=Array.prototype.indexOf.call(o.children,t),m=Array.prototype.indexOf.call(o.children,p);~h&&h>m&&(!this.exchangeY||d<0||c<0)?(this.exchangeX=e.clientX,this.exchangeY=e.clientY,this.dropBeforeId=null===(n=s[f])||void 0===n?void 0:n.$$id,h!==m-1&&(l.capture(o),o.insertBefore(t,p),l.animateAll())):~h&&h<m&&(!this.exchangeY||d>0||c>0)&&(this.exchangeX=e.clientX,this.exchangeY=e.clientY,s[f+1]?this.dropBeforeId=null===(r=s[f+1])||void 0===r?void 0:r.$$id:delete this.dropBeforeId,h!==m+1&&(l.capture(o),o.insertBefore(t,p.nextSibling),l.animateAll()))}t.parentNode!==o&&(delete this.dropBeforeId,l.capture(o),o.appendChild(t),l.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}(),xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(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=Oe(a,(function(e){return e.$$id===o}));if(~i&&a[i+1]&&(this.dropBeforeId=a[i+1].$$id),n.nextElementSibling){var s=n.nextElementSibling.getBoundingClientRect();t.style.cssText+='top: 0; left: '.concat(s.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 s=a.getBoundingClientRect();a.nextElementSibling&&a.nextElementSibling.hasAttribute('data-editor-id')?(t.style.cssText+='left: '.concat(s.x-i.x,'px;'),this.dropBeforeId=a.getAttribute('data-editor-id')):e.clientX>s.x+s.width/2?(t.style.cssText+='top: 0; left: '.concat(s.right-i.x,'px;'),delete this.dropBeforeId):(t.style.cssText+='left: '.concat(s.x-i.x,'px;'),this.dropBeforeId=a.getAttribute('data-editor-id'))}},t}(Sn),In=Fe((function(e){i.warning(e)}),500),Rn=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(Dt((function(){return'schema'===t.dragType?t.dragId:''}),this.updateDragElements),Dt((function(){return{id:t.dropId,region:t.dropRegion}}),this.updateDropRegion),Dt((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,s,c=this.store;if(!t||!n||c.dropId===t&&c.dropRegion===n)return!1;var l=c.getNodeById(t,n),d=l.regionInfo,u=c.dragSchema;if(!1===(null===(r=null==d?void 0:d.accept)||void 0===r?void 0:r.call(d,u))||(null===(a=l.host)||void 0===a?void 0:a.memberImmutable(n)))return!1;var p={mode:c.dragMode,sourceType:c.dragType,sourceId:c.dragId,data:c.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(),c.setDropId(t,n),this.makeDNDModeInstance(l),null===(s=this.dndMode)||void 0===s||s.enter(e,this.dragGhost),!0)},e.prototype.makeDNDModeInstance=function(e){var t;if(!e||!ye(e))return this.dndMode||null;var n=null===(t=e.regionInfo)||void 0===t?void 0:t.dndMode,r=Sn;return'position-h'===n&&(r=xn),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',s.dragEnd);var i=a.getAttribute('data-dnd-id'),c=a.getAttribute('data-dnd-type'),l=a.getAttribute('data-dnd-data'),d=l?JSON.parse(l):{type:'tpl',tpl:'Unknown'};n.setDragId(i,'copy',c,d);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)})),s.switchToRegion(e,p.id,p.childRegions[f].region)}}return'break'}}},s=this,c=o.length-1;c>=0;c--){if('break'===i(c))break}if(this.curDragId&&this.manager.draggableContainer(this.curDragId)){if(a=n.getNodeById(r)){var l=a.parentId?n.getNodeById(a.parentId):void 0;(null===(t=null==l?void 0:l.schema)||void 0===t?void 0:t.isFreeContainer)&&n.setDropId(a.parentId,'body')}}else;}}else In(A('0e24e1bbc19612a350f81296d9fb7802'));else In(A('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)),s=Date.now(),c=r.closest('[data-region][data-region-host]'),l=null==c?void 0:c.getAttribute('data-region-host'),d=null==c?void 0:c.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?Zt(m.top,o):'auto',' ').concat('auto'!==m.right?Zt(m.right,-a):'auto',' ').concat('auto'!==m.bottom?Zt(m.bottom,-o):'auto',' ').concat('auto'!==m.left?Zt(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?Zt(b.top,o):'auto',' ').concat('auto'!==b.right?Zt(b.right,-a):'auto',' ').concat('auto'!==b.bottom?Zt(b.bottom,-o):'auto',' ').concat('auto'!==b.left?Zt(b.left,a):'auto')}return this.lastX=e.clientX,void(this.lastY=e.clientY)}if(n.dropId&&r)if(i<5){if(!c||l===n.dropId)return;s-this.lastMoveAt>200&&d&&l&&this.switchToRegion(e,l,d)}else n.setPlanDropId('',''),this.lastMoveAt=s,this.lastX=e.clientX,this.lastY=e.clientY,n.dropId===l&&d&&d!==n.dropRegion&&this.switchToRegion(e,n.dropId,d),null===(t=this.dndMode)||void 0===t||t.over(e,this.dragGhost)},e.prototype.drop=function(e){var t;return H(this,void 0,void 0,(function(){var n,r,a,o,i,s,c,l;return L(this,(function(d){switch(d.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,s=n.dropId,c=n.dropRegion,l=void 0,'subrenderer'!==n.dragType?[3,3]:(null==(l=xe(n.subRenderers,(function(e){return e.id===n.dragId})))?void 0:l.scaffoldForm)?[4,this.manager.scaffold(l.scaffoldForm,i)]:[3,3]);case 2:i=d.sent(),d.label=3;case 3:this.manager.addChild(s,c,i,o,l,{id:n.dragId,type:n.dragType,data:n.dragSchema}),d.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=[]},D([Ft,B('design:type',Function),B('design:paramtypes',[DragEvent]),B('design:returntype',void 0)],e.prototype,'dragEnter',null),D([Ft,B('design:type',Function),B('design:paramtypes',[DragEvent]),B('design:returntype',void 0)],e.prototype,'dragOver',null),D([Ft,B('design:type',Function),B('design:paramtypes',[DragEvent]),B('design:returntype',Promise)],e.prototype,'drop',null),D([Ft,B('design:type',Function),B('design:paramtypes',[DragEvent]),B('design:returntype',void 0)],e.prototype,'dragLeave',null),D([Ft,B('design:type',Function),B('design:paramtypes',[DragEvent]),B('design:returntype',void 0)],e.prototype,'dragEnd',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],e.prototype,'updateDragElements',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object,Object]),B('design:returntype',void 0)],e.prototype,'updateDropRegion',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object,Object]),B('design:returntype',void 0)],e.prototype,'updatePlanDropRegion',null),e}(),On=function(){function e(e,t,n){this.variables=Array.isArray(t)?Pe(De(t),[function(e){var t;return null!==(t=e.order)&&void 0!==t?t:1}]):[],this.dataSchema=e instanceof re?e:new re([]),this.options=Te(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=e.parentId,a=e.name,s=e.title,c=e.schema;r.hasScope(n)&&(r.switchTo(n),r.hasScope(a)&&r.removeScope(a),o&&'function'==typeof o&&(c=o(t,c)),r.addScope(c,a),r.switchTo(a),r.current.tag=s,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){return M(M({},e),{tag:e.type})}));t.tag?o.push({label:t.tag,children:n}):o.push.apply(o,j([],z(n),!1))}})),a&&'function'==typeof a&&(o=a(this,o,'formula')),oe(o,(function(e){'array'===e.type&&delete e.children})),e?o:Be(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 M(M({},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=[],r=null===(t=null===(e=this.dataSchema)||void 0===e?void 0:e.root.children)||void 0===t?void 0:t.filter((function(e){return e.tag===A('cc6aeb073ebc3cb29734a49164f8964c')}))[0];return r&&(n=r.getDataPropsAsOptions()),oe(n,(function(e){'array'===e.type&&delete e.children})),n},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=j(j([],z(this.getVariableOptions()),!1),z(this.getPageVariablesOptions()),!1),i=ie(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}(),Nn=[];function kn(){window.AMISEditorCustomPlugins&&Object.keys(window.AMISEditorCustomPlugins).forEach((function(e){var t=window.AMISEditorCustomPlugins[e];t&&Fn(t)}))}function Fn(e){var t=Array.from(new Set(['global'].concat(e.scene||'global')));e.scene=t;(e.prototype&&e.prototype.isNpmCustomWidget?Nn.find((function(t){return Array.isArray(t)?t[0].prototype.name===e.prototype.name:t.prototype.name===e.prototype.name})):Nn.find((function(t){return t===e})))?console.warn('注册插件异常,已存在同名插件:',e):(e.id=e.id||e.name||Ke(),Nn.push(e))}function An(e){void 0===e&&(e={});var t=e.scene,n=void 0===t?'global':t;return Nn.filter((function(e){var t;return null===(t=(Array.isArray(e)?e[0]:e).scene)||void 0===t?void 0:t.includes(n)}))}function Mn(e){var t=Oe(Nn,(function(t){return Array.isArray(t)?t[0].id===e:t.id===e}));~t&&Nn.splice(t,1)}var Pn=function(){function e(e,t,n){var r=this;this.config=e,this.store=t,this.parent=n,this.toDispose=[],this.id=Ke(),this.disableHover=!1,this.broadcasts=[],this.pluginEvents={},this.pluginActions={},this.isInFrame=!1,this.listeners=[],this.lazyPatchSchema=Fe(this.patchSchema.bind(this),250,{leading:!1,trailing:!0}),this.patching=!1;var a=!!n;this.isInFrame=a,this.env=M(M(M({},Cn),Q(e.amisEnv,'replaceText')),{theme:e.theme}),this.env.beforeDispatchEvent=this.beforeDispatchEvent.bind(this,this.env.beforeDispatchEvent),this.hackIn=(null==n?void 0:n.hackIn)||bn,kn(),e.scene,this.plugins=(null==n?void 0:n.plugins)||(e.disableBultinPlugin?[]:Nn).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=(null==n?void 0:n.dnd)||new Rn(this,t),this.dataSchema=(null==n?void 0:n.dataSchema)||new u(e.schemas||[]),this.dataSchema.current.tag=A('979a50681e278dcc0be18f68459e8217'),this.variableManager=new On(this.dataSchema,null==e?void 0:e.variables,null==e?void 0:e.variableOptions),a||this.toDispose.push(Dt((function(){return t.activeId}),(function(e,t){return H(r,void 0,void 0,(function(){return L(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(),this.trigger('active',e?M(M({},this.buildEventContext(e)),{active:!0}):{id:t,active:!1}),[2]}}))}))})),W((function(){return t.selections.join(',')}),(function(){r.buildPanels()})),W((function(){return t.needPatch}),(function(e){e&&r.lazyPatchSchema()})),Dt((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=Nn.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 H(e,void 0,void 0,(function(){var e,t;return L(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=M({},n);null===(r=e.buildEditorToolbar)||void 0===r||r.call(e,a,t)})),this.trigger('build-toolbars',M(M({},n),{data:t}))}this.store.setActiveToolbars(t.map((function(e){return M(M({},e),{order:e.order||0,id:Ke()})})))},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=M(M({},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.schema)&&(r=null===(n=this.store)||void 0===n?void 0:n.schema.$$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 M(M({},e),{order:e.order||0})})))},e.prototype.collectRenderers=function(e,t){var n,r,a,o;return void 0===t&&(t=this.store.activeContainerId),H(this,void 0,void 0,(function(){var i,s,c,l,d,u,p,f,h,m,v,g,b;return L(this,(function(y){switch(y.label){case 0:if(i=[],!(s=t)&&(null===(n=this.store)||void 0===n?void 0:n.schema)&&(s=null===(r=this.store)||void 0===r?void 0:r.schema.$$id),!s)return[2,i];if(!(c=this.store.getNodeById(s)))return[2,i];l=this.store.getSchema(s),d={node:c,id:c.id,info:c.info,path:c.path,schemaPath:c.schemaPath,schema:l,region:e},u=[],p=function(e,t){var n,r;return L(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,d,i,se())];case 1:return(r=t.sent())&&(Array.isArray(r)?r:[r]).forEach((function(e){return i.push(M(M({},e),{id:Ke(),plugin:n,parent:c.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,d,i,se())]):[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 H(this,void 0,void 0,(function(){var t;return L(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 H(this,void 0,void 0,(function(){return L(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,s=e;if(!s&&this.store.activeId){var c=o(a);s=c.type}if(s&&this.store.activeId){var l=this.store.panels.concat(),d=i(a);if(s&&d){var u=this.plugins.find((function(e){return e.rendererName===s}));l.splice(l.findIndex((function(e){return'config'===e.key})),1);var p=M(M({},this.buildEventContext(d)),{data:l,selections:this.store.selections.map((function(e){return n.buildEventContext(e)}))});u&&(null===(t=u.buildEditorPanel)||void 0===t||t.call(u,p,l),this.store.setPanels(l.map((function(e){return M(M({},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,s,c;return void 0===t&&(t=this.store.activeId),void 0===r&&(r='insert'),void 0===a&&(a=''),H(this,void 0,void 0,(function(){var l,d;return L(this,(function(u){switch(u.label){case 0:return void 0===n&&t&&(l=this.store.getNodeById(t),n=null===(c=null===(s=null===(i=null==l?void 0:l.info)||void 0===i?void 0:i.regions)||void 0===s?void 0:s.find((function(t){return t.key===e})))||void 0===c?void 0:c.preferTag),[4,this.collectRenderers(e,t)];case 1:return d=u.sent(),this.store.setInsertRenderers(d),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=Oe(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=cn(e,t),r=Pt(/^(?: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){var t,n,r,a,o;return H(this,void 0,void 0,(function(){var s,c,l,d,u,p,f,h,m,v,g,b,y,E,w,C,S=this;return L(this,(function(x){switch(x.label){case 0:if(!e)return[2];if(s='',$t(e)?s=e.toString():Kt(e)&&(c=e),l=this.store,u=l.activeId,p=l.getNodeById(u),s&&(d=l.getSubRendererById(s),'fixed'===((null===(t=null==d?void 0:d.scaffold)||void 0===t?void 0:t.style)||{}).position&&(u=l.getRootId(),p=l.getNodeById(u))),!d&&!c)return[2];if(!p)return i.warning(A('0e24e1bbc19612a350f81296d9fb7802')),[2];if(f=c||(null==d?void 0:d.scaffold),h=this.isSpecialLayout(f),!('wrapper'!==p.type&&'container'!==p.type||0!==(null===(r=null===(n=p.schema)||void 0===n?void 0:n.body)||void 0===r?void 0:r.length)||'flex'!==(null==f?void 0:f.type)||(null===(a=p.schema)||void 0===a?void 0:a.isFreeContainer)||h))return this.replaceChild(u,f),setTimeout((function(){S.updateConfigPanel()}),0),[2];if(m=p.parent,v=null,g=null,b=null,l.activeRegion)g=u,b=l.activeRegion;else if(p.schema.columns&&'grid'!==p.type)g=u,b='columns';else if(p.schema.items&&Wt(p.schema))g=u,b='items';else if(p.schema.body)g=u,b='body';else if(m){if(g=m.id,b=m.region,!m.region&&m.schema.body)b='body';else if(!m.region&&m.schema.items)b='items';else if(!m.region&&!m.schema.body&&!m.schema.items)return i.warning(A('bd690facb536d759814ee64f2760fecb')),[2];y=l.getSchemaParentById(u),E=-1,y.some((function(e,t){var n=!1;return e.$$id===u&&(E=t,n=!0),n})),v=null===(o=y[E+1])||void 0===o?void 0:o.$$id}else g=u,b='body';return w=c,!d||c?[3,2]:(w=d.scaffold||{type:d.type},d.scaffoldForm?[4,this.scaffold(d.scaffoldForm,w)]:[3,2]);case 1:w=x.sent(),x.label=2;case 2:return(C=this.addChild(g,b,w,v,d))&&setTimeout((function(){l.setActiveId(C.$$id)}),100),[2]}}))}))},e.prototype.appendSiblingSchema=function(e,t,n){var r,a;return H(this,void 0,void 0,(function(){var o,s,c,l,d,u,p,f,h,m;return L(this,(function(v){if(!e)return[2];if(o=this.store,s=o.activeId,!(c=o.getNodeById(s)))return i.warning(A('0e24e1bbc19612a350f81296d9fb7802')),[2];if(l=c.parent,d=null,u=null,p=null,l){if(u=l.id,p=l.region,!l.region&&l.schema.body)p='body';else if(!l.region&&'flex'===(null===(r=l.schema)||void 0===r?void 0:r.type)&&l.schema.items)p='items';else if(!l.region&&!l.schema.body)return i.warning(A('bd690facb536d759814ee64f2760fecb')),[2];f=o.getSchemaParentById(s),h=-1,f.some((function(e,t){var n=!1;return e.$$id===s&&(h=t,n=!0),n})),d=null===(a=f[t?h:h+1])||void 0===a?void 0:a.$$id,(m=this.addChild(u,p,e,d))&&!n&&setTimeout((function(){o.setActiveId(m.$$id)}),100)}return[2]}))}))},e.prototype.insert=function(){return H(this,void 0,void 0,(function(){var e,t,n,r,a,o,i;return L(this,(function(s){switch(s.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=s.sent(),s.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 H(this,void 0,void 0,(function(){var e,t,n,r,a,o=this;return L(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,s=null===(i=t.getRendererInfo)||void 0===i?void 0:i.call(t,o);return!!s&&(r=M(M({id:n.$$id},s),{type:n.type,plugin:t,renderer:e,schemaPath:a}),!0)})),this.trigger('after-resolve-editor-info',M(M({},o),{data:r})).context.data)},e.prototype.panelChangeValue=function(e,t){var n=this.store,r=M(M({},this.buildEventContext(n.activeId)),{value:e,diff:t});this.trigger('before-update',r).prevented||(n.changeValue(e,t),this.trigger('after-update',r))},e.prototype.openSubEditor=function(e){this.store.openSubEditor(e)},e.prototype.openContextMenu=function(e,t,n){var r=this,a=[],o=this.buildEventContext(e),i=M(M({},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),d({x:n.x,y:n.y},a,(function(){return 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=M(M({},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),s=M(M({},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',s).prevented||(n.moveDown(r.id),this.trigger('after-move',s),this.trigger('after-update',s))}},e.prototype.del=function(e){if(e&&e.length){var t=Array.isArray(e)?e[0]:e,n=M(M({},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=A('52e6abbe5c11e7cbf14788c1540f8bf2'));var n=this.store.getValueOf(e);this.clipboardData=Ae(n),i.info(A('372ea9fd27fb7cfacfe1b4ca3046f8d0')+t)},e.prototype.cut=function(e){this.copy(e,A('2a6287664de5ab46c65220c7182878ff')),this.del(e)},e.prototype.paste=function(e,t){return H(this,void 0,void 0,(function(){var n;return L(this,(function(r){return this.clipboardData?(n=yt(Me(this.clipboardData)),t?this.addChild(e,t,n):this.replaceChild(e,n),[2]):(s(A('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){var i=this.store,s=-1,c=this.buildEventContext(e),l=M({},n);if(Et(l),r){var d=c.schema[t];Array.isArray(d)&&(s=Oe(d,(function(e){return(null==e?void 0:e.$$id)===r})))}var u=M(M({},c),{beforeId:r,index:s,region:t,data:l,subRenderer:a,dragInfo:o}),p=this.trigger('before-insert',u);if(!p.prevented){var f=i.insertSchema(p);return this.trigger('after-insert',u),f}return null},e.prototype.move=function(e,t,n,r){var a=this.store,o=M(M({},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){var a=M(M({},this.buildEventContext(e)),{data:M({},t),subRenderer:n,region:r}),o=this.trigger('before-replace',a);return!(o.prevented||!o.context.data)&&(this.store.replaceChild(e,o.context.data),this.trigger('after-replace',a),!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=M(M({},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 H(this,void 0,void 0,(function(){var n=this;return L(this,(function(r){return[2,new Promise((function(r){n.store.openScaffoldForm(M(M({},e),{value:e.pipeIn?e.pipeIn(t):t,callback:r}))}))]}))}))},e.prototype.reScaffold=function(e,t,n){return H(this,void 0,void 0,(function(){var r;return L(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 H(this,void 0,void 0,(function(){var n,r,a,o;return L(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.patching=!0;var n=function(r){r.forEach((function(r){r.uniqueChildren&&r.uniqueChildren.length&&n(r.uniqueChildren),r.isRegion||r.patch(t.store,e)}))};n(this.store.root.children),this.patching=!1}},e.prototype.hackRenderers=function(e){var t=this;void 0===e&&(e=se());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){var n;return(null===(n=this.parent)||void 0===n?void 0:n.makeWrapper)?this.parent.makeWrapper(e,t):function(e,t,n){var r=e.store,a=n.component,o=function(o){function i(e){var t=o.call(this,e)||this;return t.state={hasError:!1},t}return P(i,o),i.prototype.UNSAFE_componentWillMount=function(){var a=this,o=this.context||r.root;if(t.id&&(this.editorNode=o.addChild({id:t.id,type:t.type,label:t.name,isCommonConfig:!!this.props.$$commonSchema,path:this.props.$path,schemaPath:t.schemaPath,info:t,getData:function(){return a.props.data}}),this.editorNode.setRendererConfig(n),n.storeType&&!e.dataSchema.hasScope(''.concat(t.id,'-').concat(t.type)))){for(var i=o,s=void 0;i&&!s;)i===r.root?s=e.dataSchema.getScope('root'):e.dataSchema.hasScope(''.concat(i.id,'-').concat(i.type))&&(s=e.dataSchema.getScope(''.concat(i.id,'-').concat(i.type))),i='root'===i.parentId?r.root:i.parent;if(!s)throw new Error(A('186733ed7ec817040b8f9cbc610ba49a'));e.dataSchema.switchTo(s.id),this.scopeId=''.concat(t.id,'-').concat(t.type),e.dataSchema.addScope([],this.scopeId),t.name&&(e.dataSchema.current.tag=''.concat(t.name,'变量'))}},i.prototype.componentDidUpdate=function(e){var t=this.props;this.editorNode&&t.$$commonSchema!==e.$$commonSchema&&this.editorNode.updateIsCommonConfig(!!this.props.$$commonSchema)},i.prototype.componentDidCatch=function(e,n){console.warn(''.concat(t.name,'(').concat(t.id,')渲染发生错误:')),console.warn(A('a30dd4945df5b44b264fa3be6ee9682e'),t),console.warn(A('63f94190d2d4ea22263e6e9f07c96558'),e),console.warn(A('f66335b5bff0e26fdff2a3303e0f9bb0'),n),this.setState({hasError:!0})},i.prototype.componentWillUnmount=function(){this.editorNode&&ye(this.editorNode)&&(this.context||r.root).removeChild(this.editorNode),this.scopeId&&e.dataSchema.removeScope(this.scopeId)},i.prototype.wrapperRef=function(e){for(;null==e?void 0:e.getWrappedInstance;)e=e.getWrappedInstance();this.editorNode&&ye(this.editorNode)&&this.editorNode.setComponent(e)},i.prototype.renderChild=function(e,n,r){var a=this.props.render;return n.$$id&&((r=r||{}).key=n.$$id||r.key),a(e,n,M(M({},r),{$$editor:t}))},i.prototype.render=function(){var e=this.props;e.$$id;var n=T(e,['$$id']);if(this.state.hasError)return K.createElement('div',{className:'ae-Editor-renderer-error'},t.name,'(',t.id,')渲染发生错误,详细错误信息请查看控制台输出。');var r=this.props.$$commonSchema?vn:t.regions?mn:un;return K.createElement(fn.Provider,{value:this.editorNode||this.context},K.createElement(r,M({},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=fn,D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],i.prototype,'wrapperRef',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String,Object,Object]),B('design:returntype',void 0)],i.prototype,'renderChild',null),D([fe,B('design:paramtypes',[Object])],i)}(K.Component);return o}(this,e,t)},e.prototype.makeSchemaFormRender=function(e){return function(e,t){var n=M(M({},e.env),{session:'schema-form'});return function(r){var a=r.value,o=r.onChange,i=r.popOverContainer,s=r.id,c=r.store,l=r.node,d=M({},e.store.ctx);if((null==t?void 0:t.panelById)&&(null==t?void 0:t.panelById)!==(null==l?void 0:l.id))return K.createElement(K.Fragment,null);s&&Object.defineProperty(d,'__props__',{get:function(){var e,t=c.getNodeById(s);return(null===(e=null==t?void 0:t.getComponent())||void 0===e?void 0:e.props)||{}}});var u=''.concat(s,'-').concat(null==l?void 0:l.type).concat(t.formKey?'-':'').concat(t.formKey?t.formKey:'');return K.createElement(gn,{key:u,propKey:u,api:t.api,definitions:t.definitions,body:t.body?Ne(Array.isArray(t.body)?t.body:[t.body]):void 0,controls:t.controls?Ne(Array.isArray(t.controls)?t.controls:[t.controls]):void 0,value:a,ctx:d,pipeIn:t.pipeIn,pipeOut:t.pipeOut,submitOnChange:t.submitOnChange,onChange:o,env:n,popOverContainer:i,node:l,manager:e,justify:t.justify})}}(this,e)},e.prototype.onWidthChangeStart=function(e,t){return this.trigger('width-change-start',M(M({},t),{nativeEvent:e}))},e.prototype.onHeightChangeStart=function(e,t){return this.trigger('height-change-start',M(M({},t),{nativeEvent:e}))},e.prototype.onSizeChangeStart=function(e,t){return this.trigger('size-change-start',M(M({},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,s=this.store,c={body:i.popOverBodyCreator?i.popOverBodyCreator(this.buildEventContext(o)):i.popOverBody,value:s.getValueOf(o.id),callback:this.panelChangeValue,target:function(){return document.querySelector('[data-editor-id="'.concat(o.id,'"]'))}};s.openPopOverForm(c)}},e.prototype.addBroadcast=function(e){this.broadcasts.push(e)},e.prototype.removeBroadcast=function(e){var t=Oe(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;return void 0===t&&(t=!1),H(this,void 0,void 0,(function(){var s,c,l,d,u,p,f,h,m,v,g,b;return L(this,(function(y){switch(y.label){case 0:if(!(s='string'==typeof e?this.store.getNodeById(e):e))return[2,[]];for(l=s,d=s,u=s;!c&&l;)p=null===(n=l.info)||void 0===n?void 0:n.id,v=null===(r=l.info)||void 0===r?void 0:r.type,c=this.dataSchema.hasScope(''.concat(p,'-').concat(v))?this.dataSchema.getScope(''.concat(p,'-').concat(v)):void 0,(null==(l=l.parent)?void 0:l.isRegion)&&(d=l);y.label=1;case 1:return c?(h=z(c.id.split('-'),2),m=h[0],v=h[1],g=this.store.getNodeById(m,v),f||!g||g.isSecondFactor||(f=c),[4,null===(i=null===(o=null===(a=null==g?void 0:g.info)||void 0===a?void 0:a.plugin)||void 0===o?void 0:o.buildDataSchemas)||void 0===i?void 0:i.call(o,g,d,u)]):[3,3];case 2:return(b=y.sent())&&(c.removeSchema(b.$id),c.addSchema(b)),c=t?void 0:c.parent,[3,1];case 3:return(null==f?void 0:f.id)&&this.dataSchema.switchTo(f.id),[2,t?this.dataSchema.current.schemas:this.dataSchema.getSchemas()]}}))}))},e.prototype.getAvailableContextFields=function(e){var t,n;return H(this,void 0,void 0,(function(){var r,a,o,i,s,c;return L(this,(function(l){if(!e)return[2];for(a=e;!r&&a;)r=this.dataSchema.hasScope(''.concat(a.id,'-').concat(a.type))?this.dataSchema.getScope(''.concat(a.id,'-').concat(a.type)):void 0,null==(a=a.parent)||a.isRegion;for(;r;){if(o=z(r.id.split('-'),2),i=o[0],s=o[1],c=this.store.getNodeById(i,s))return[2,null===(n=null==c?void 0:(t=c.info.plugin).getAvailableContextFields)||void 0===n?void 0:n.call(t,c,e)];r=r.parent}return[2]}))}))},e.prototype.beforeDispatchEvent=function(e,t,n,r,a,o){var i,s,c,l;null==e||e(t,n,r,a,o);var d=n.props.$$id||(null===(i=n.props.$$editor)||void 0===i?void 0:i.id);if(d){var u=this.store.getNodeById(d,n.props.type);null===(l=null===(c=null===(s=null==u?void 0:u.info)||void 0===s?void 0:s.plugin)||void 0===c?void 0:c.rendererBeforeDispatchEvent)||void 0===l||l.call(c,u,t,at(a))}},e.prototype.dispose=function(){this.trigger('dispose',{data:this}),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()},D([Ft,B('design:type',Function),B('design:paramtypes',[Object,Object]),B('design:returntype',void 0)],e.prototype,'panelChangeValue',null),e}(),Dn=function(e){function t(){var t,n,r=this;return(r=e.apply(this,j([],z(arguments),!1))||this).env=M(M(M(M({},r.props.manager.env),{notify:function(e,t){r.props.editable?console.warn('[Notify]',e,t):i[e]?i[e](t,A('error'===e?'a71002967924a83e32b38a80705290fb':'058ebdf2884474ebff2977ba2f0e275e')):console.warn('[Notify]',e,t)},theme:r.props.theme,session:'preview-'.concat(r.props.manager.id),rendererResolver:r.rendererResolver}),r.props.manager.env),null===(n=(t=r.props).envCreator)||void 0===n?void 0:n.call(t,r.props)),r}return P(t,e),t.prototype.componentDidMount=function(){var e=he(this);if(e.addEventListener('mouseleave',this.handleMouseLeave),e.addEventListener('mousemove',this.handleMouseMove),e.addEventListener('click',this.handleClick),e.addEventListener('mouseover',this.handeMouseOver),this.props.autoFocus){var t=this.props.manager.store;setTimeout((function(){if(ye(t)){var e=ie(t.outline,(function(e){return!e.isRegion&&e.clickable}));e&&t.setActiveId(e.id)}}),350)}else this.props.manager.buildRenderersAndPanels()},t.prototype.componentWillUnmount=function(){var e=he(this);e.removeEventListener('mouseleave',this.handleMouseLeave),e.removeEventListener('mousemove',this.handleMouseMove),e.removeEventListener('click',this.handleClick),e.removeEventListener('mouseover',this.handeMouseOver)},t.prototype.contentsRef=function(e){var t,n=this;this.dom=e,e?(this.syncIframeHeight(),this.unSensor=p(e,(function(){n.syncIframeHeight()}))):(null===(t=this.unSensor)||void 0===t||t.call(this),delete this.unSensor)},t.prototype.syncIframeHeight=function(){var e=this.props.manager;this.dom&&(e.store.getIframe().style.cssText+='height: '.concat(this.dom.offsetHeight,'px'))},t.prototype.handleClick=function(e){var t=this.props.store,n=e.target.closest('[data-editor-id]');if(!e.defaultPrevented&&(n&&t.setActiveId(n.getAttribute('data-editor-id')),this.props.editable)){var r=this.props.manager.trigger('prevent-click',{data:e});r.prevented||r.stoped||(e.preventDefault(),e.stopPropagation())}},t.prototype.handleMouseMove=function(e){var t=this.props.store,n=e.target.closest('[data-editor-id]');n&&t.setHoverId(n.getAttribute('data-editor-id'))},t.prototype.handleMouseLeave=function(){this.props.store.setHoverId('')},t.prototype.handeMouseOver=function(e){this.props.editable&&(e.preventDefault(),e.stopPropagation())},t.prototype.handleDragEnter=function(e){this.props.manager.dnd.dragEnter(e.nativeEvent)},t.prototype.handleDragLeave=function(e){this.props.manager.dnd.dragLeave(e.nativeEvent)},t.prototype.handleDragOver=function(e){this.props.manager.dnd.dragOver(e.nativeEvent)},t.prototype.handleDrop=function(e){this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.handleContextMenu=function(e){var t,n=null===(t=e.target.closest('[data-editor-id]'))||void 0===t?void 0:t.getAttribute('data-editor-id'),r='';if(!n){var a=e.target.closest('[data-node-id]');if(!(n=null==a?void 0:a.getAttribute('data-node-id')))return;r=a.getAttribute('data-node-region')}e.preventDefault(),e.stopPropagation();var o=this.props.manager,i=o.store.getIframe().getBoundingClientRect();o.parent.openContextMenu(n,r,{x:window.scrollX+e.clientX+i.left,y:window.scrollY+e.clientY+i.top})},t.prototype.rendererResolver=function(e,t,n){var r=this.props,a=r.editable,o=r.manager,i=f(e,t);if(!1===a)return i;i=i||{name:'error',test:function(){return!0},component:sn};var s=o.getEditorInfo(i,e,t);return s&&(i=M(M({},i),{component:o.makeWrapper(s,i)})),i},t.prototype.render=function(){var e=this.props,t=e.store,n=e.editable;e.manager;var r=e.className,a=e.schema,i=e.data,s=T(e,['store','editable','manager','className','schema','data']);return K.createElement('div',{ref:this.contentsRef,onContextMenu:this.handleContextMenu,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:V('ae-IFramePreview',r,n?'is-edting':'')},o(a||{type:'tpl',tpl:A('88f000a0fdc38ce3808cef072b00893c')},M(M({},s),{key:n?'edit-mode':'preview-mode',theme:this.env.theme,data:null!=i?i:t.ctx}),this.env))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'contentsRef',null),D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handleClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handleMouseMove',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleMouseLeave',null),D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handeMouseOver',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDragEnter',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDragLeave',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDragOver',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDrop',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleContextMenu',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String,Object,Object]),B('design:returntype',void 0)],t.prototype,'rendererResolver',null),t}(K.Component),Bn=function(e){function t(t){var n=e.call(this,t)||this,r='__amis_editor_bridge_fn_'.concat(Ke());return window[r]=function(e){return delete window[r],n.bridge=e,n.update(t),t.manager},n.bridgeFnName=r,n}return P(t,e),t.prototype.componentDidUpdate=function(){this.update()},t.prototype.componentWillUnmount=function(){var e=this.props.store;ye(e)&&e.setDoc(document)},t.prototype.iframeRef=function(e){var t=this.props.store;ye(t)&&t.setIframe(e)},t.prototype.update=function(e){var t;void 0===e&&(e=this.props);var n=e.editable,r=e.store;null===(t=this.bridge)||void 0===t||t.update(M(M({},e),{schema:n?r.filteredSchema:r.filteredSchemaForPreview}))},t.prototype.render=function(){var e=this.props,t=e.url,n=e.manager,r=e.className,a=e.editable,o=e.store;return this.schema=a?o.filteredSchema:o.filteredSchemaForPreview,K.createElement('iframe',{ref:this.iframeRef,className:r,id:n.id,src:''.concat(t,'#').concat(this.bridgeFnName)})},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'iframeRef',null),t=D([fe,B('design:paramtypes',[Object])],t)}(K.PureComponent),Tn=function(e){function t(t){var n=e.call(this,t)||this;n.state={},n.inited=!1;var r=t.bridgeName,a=parent[r];if('function'!=typeof a)throw new Error(A('3b6d5995e9f2ecd3df059b3f1bea201e'));var o=a({update:function(e){return n.inited?n.setState(M({},e)):n.state=M({},e)}});if(!o)throw new Error(A('09f33be5ec04eb48b3102e4e31af5b38'));o.store.setDoc(document);var i=new Pn(o.config,o.store,o);return n.manager=i,n.inited=!0,n}return P(t,e),t.prototype.componentWillUnmount=function(){var e=this.manager;e.toDispose.forEach((function(e){return e()})),e.toDispose=[],e.listeners.splice(0,e.listeners.length),e.lazyPatchSchema.cancel()},t.prototype.render=function(){return K.createElement(Dn,M({},this.state,{manager:this.manager,store:this.manager.store,envCreator:this.props.envCreator}))},t}(K.Component);function jn(e,t,n){if(!location.hash||parent===window)throw new Error(A('283c2a52955ad87574fd6c0cc932c443'));var r=location.hash.substring(1);1===t.render.length?t.render(K.createElement(Tn,{bridgeName:r,envCreator:n})):t.render(K.createElement(Tn,{bridgeName:r,envCreator:n}),e),window.onunload=function(){ve(e)}}var zn,Hn=function(e){function t(t){var n=e.call(this,t)||this;return n.ref=K.createRef(),n.scrollElem=null,n.state={visible:void 0!==t.visible&&t.visible},n}return P(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=V('editor-backTop',void 0===n?'':n,this.state.visible?'':'hidden'),a=je(this.props,['className','children','visibilityHeight','target','visible']),o=K.createElement('div',{className:'backTop-content'},K.createElement('div',{className:'backTop-icon'},'UP'));return K.createElement('div',M({},a,{className:r,onClick:this.scrollToTop,ref:this.ref}),t||o)},D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getDefaultTarget',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleScroll',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'bindScrollEvent',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'scrollToTop',null),t}(K.Component),Ln=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.env=M(M({},t.props.manager.env),{notify:function(e,n,r){t.props.editable?console.warn('[Notify]',e,n):i[e]?i[e](n,r||A('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=Dt((function(){return[t.getHighlightNodes(),t.props.store.activeId]}),(function(e,n){var r=z(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 P(t,e),t.prototype.componentDidMount=function(){this.currentDom=he(this),this.currentDom.addEventListener('mouseleave',this.handleMouseLeave),this.currentDom.addEventListener('mousemove',this.handleMouseMove),this.currentDom.addEventListener('click',this.handleClick),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=this;this.currentDom&&(this.currentDom.removeEventListener('mouseleave',this.handleMouseLeave),this.currentDom.removeEventListener('mousemove',this.handleMouseMove),this.currentDom.removeEventListener('click',this.handleClick),this.currentDom.removeEventListener('mouseover',this.handeMouseOver),this.currentDom.removeEventListener('mousedown',this.handeMouseDown),this.props.manager.off('after-update',this.handlePanelChange)),null===(e=this.scrollLayer)||void 0===e||e.removeEventListener('scroll',this.handlePanelChange),setTimeout((function(){return ce([t.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=p(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(),s=e.pageX,c=e.pageY,l=s-i.left,d=c-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-s,r=e.pageY-c;o.style.cssText='left: '.concat(l+Math.min(t,0),'px; top: ').concat(d+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-s,r=e.pageY-c,i={x:l+Math.min(t,0),y:d+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=he(this);if(t&&n){var r=[],a=t.getBoundingClientRect(),o=e.x+a.left,i=e.y+a.top,s=(e.w,e.h,e.x+a.left+e.w),c=e.y+a.top+e.h,l=n.querySelectorAll('[data-editor-id]');[].slice.apply(l).forEach((function(e){if(!r.some((function(t){return t.contains(e)}))){var t=e.getBoundingClientRect();o<=t.left&&i<=t.top&&s>=t.right&&c>=t.bottom&&(~r.indexOf(e)||r.push(e))}}));var d=r.map((function(e){return e.getAttribute('data-editor-id')})).filter((function(e,t,n){return n.indexOf(e)===t}));d.length&&this.props.manager.setSelection(d)}},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 s=i.getAttribute('data-region-host');s&&s===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 c=this.props.manager.trigger('prevent-click',{data:e});c.prevented||c.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='',s=e.target.closest('[data-region-host]');if(s){var c=s.getAttribute('data-region-host');c&&c===o&&s.getAttribute('data-region')&&(i=s.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.manager.dnd.dragEnter(e.nativeEvent)},t.prototype.handleDragLeave=function(e){this.props.manager.dnd.dragLeave(e.nativeEvent)},t.prototype.handleDragOver=function(e){this.props.manager.dnd.dragOver(e.nativeEvent)},t.prototype.handleDrop=function(e){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=f(e,t);if(!1===a)return i;i=i||{name:'error',test:function(){return!0},component:sn};var s=o.getEditorInfo(i,e,t);return s&&(i=M(M({},i),{component:o.makeWrapper(s,i)})),i},t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.editable,o=t.store,i=t.manager,s=t.amisEnv,c=t.theme,l=t.isMobile,d=t.iframeUrl,u=t.autoFocus,p=t.toolbarContainer,f=t.appLocale,h=T(t,['className','editable','store','manager','amisEnv','theme','isMobile','iframeUrl','autoFocus','toolbarContainer','appLocale']),m=M(M({},this.env),s);return K.createElement('div',{id:'editor-preview-body',onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:V('ae-Preview',n,l?'is-mobile-body hoverShowScrollBar':'is-pc-body')},K.createElement('div',{className:V('ae-Preview-body',n,a?'is-edting':'',l?'is-mobile':'is-pc hoverShowScrollBar'),ref:this.contentsRef},d&&l&&K.createElement(K.Fragment,null,K.createElement('div',{className:'mobile-sound'}),K.createElement('div',{className:'mobile-receiver'}),K.createElement('div',{className:'mobile-left-btn'}),K.createElement('div',{className:'mobile-right-btn'}),K.createElement('div',{className:'mobile-open-btn'})),K.createElement('div',{className:'ae-Preview-inner'},d&&l?K.createElement(Bn,M({},h,{key:'mobile',className:'ae-PreviewFrame',editable:a,isMobile:l,store:o,env:m,manager:i,url:d,theme:c,autoFocus:u})):K.createElement($n,M({},h,{editable:a,autoFocus:u,store:o,env:m,manager:i,key:'pc',appLocale:f})),d&&l&&o.contextId?K.createElement('span',{className:'ae-IframeMask'}):null,K.createElement('div',{className:'ae-Preview-widgets',id:'aePreviewHighlightBox'},o.highlightNodes.map((function(t){return K.createElement(an,{node:t,key:t.id,store:o,id:t.id,title:t.label,toolbarContainer:p,onSwitch:e.handleNavSwitch,manager:i},t.childRegions.map((function(e){return!t.memberImmutable(e.region)&&o.isRegionActive(e.id,e.region)?K.createElement(on,{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&&K.createElement(Hn,{key:l?'mobile-back-up':'pc-back-up',className:'ae-editor-action-btn',target:this.getCurrentTarget.bind(this),onClick:function(e){console.log(e)}},K.createElement(r,{icon:'back-up',className:'back-top-icon'}))))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'contentsRef',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handlePanelChange',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Array]),B('design:returntype',void 0)],t.prototype,'calculateHighlightBox',null),D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handeMouseDown',null),D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handleClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],t.prototype,'handleNavSwitch',null),D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handleMouseMove',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleMouseLeave',null),D([Ft,B('design:type',Function),B('design:paramtypes',[MouseEvent]),B('design:returntype',void 0)],t.prototype,'handeMouseOver',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDragEnter',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDragLeave',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDragOver',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDrop',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getCurrentTarget',null),t=D([fe],t)}(_),$n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.componentDidMount=function(){var e=this.props.store;this.props.autoFocus?setTimeout((function(){if(ye(e)){var t=ie(e.outline,(function(e){return!e.isRegion&&e.clickable}));t&&ye(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.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 s=T(e,['editable','store','appLocale','autoFocus','env','data','manager']);return o(t?n.filteredSchema:n.filteredSchemaForPreview,M(M({},s),{key:t?'edit-mode':'preview-mode',theme:a.theme,data:null!=i?i:n.ctx,locale:r}),a)},t=D([fe],t)}(K.Component),Kn=function(e){function t(t){var n=e.call(this,t)||this;return n.env=M({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 P(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=p(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 K.createElement(le,{unMountOnHidden:!1,schema:n,component:function(t){var n=t.schema;return K.createElement('div',{className:'ae-RenderersPicker-thumb '.concat(e.state.scale?'is-scaled':'')},K.createElement('div',{className:'ae-Editor-rendererThumbWrap'},K.createElement('div',{className:'ae-Editor-rendererThumbIcon',onClick:e.handleClick},K.createElement(r,{icon:e.state.scale?'zoom-in':'zoom-out'})),K.createElement('div',{ref:e.rootRef,className:'ae-Editor-rendererThumb'},K.createElement('div',{className:'ae-Editor-rendererThumbInner'},o(M(M({},n),{mode:'horizontal'===n.mode?'normal':n.mode}),{theme:a},e.env)))))}})},t}(K.Component),_n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(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,s=null===(t=xe(i.regions,(function(e){return e.key===a.insertRegion})))||void 0===t?void 0:t.label,c=a.groupedInsertRenderers,l=Object.keys(c),d=a.insertTag||A('a8b0c20416853bda54120bf19477ad11'),u=c[d]||c[A('a8b0c20416853bda54120bf19477ad11')];return K.createElement('div',{className:'ae-InsertPanel'},'replace'===a.insertMode?K.createElement('div',{className:'ae-InsertPanel-title'},'更改组件类型'):K.createElement('div',{className:'ae-InsertPanel-title'},K.createElement('span',null,'选中组件插入到'),' ',K.createElement('code',null,i.name,' > ',s)),K.createElement('div',{className:'m-b-xs'},K.createElement(h,{className:'editor-InputSearch',value:a.insertRenderersKeywords,onChange:a.changeInsertRenderersKeywords,placeholder:A('d87481b371771b4f150da76e311bbbef'),clearable:!1},a.insertRenderersKeywords?K.createElement('a',{onClick:a.resetInsertRenderersKeywords},K.createElement(r,{icon:'close',className:'icon'})):K.createElement(r,{icon:'search',className:'icon'}))),K.createElement('div',{className:'ae-RenderersPicker-list'},K.createElement('ul',null,l.map((function(e){return K.createElement('li',{key:e,className:d===e?'is-active':''},K.createElement('a',{'data-value':e,onClick:n.handleLeftClick},e))}))),K.createElement('div',{className:'ae-RenderersPicker-content'},Array.isArray(u)&&u.length?K.createElement('ul',null,u.map((function(e){return K.createElement('li',{key:e.id,className:a.insertSelected===e.id?'is-active':'','data-value':e.id,onClick:n.handleClick,onDoubleClick:n.hadnlDBClick},K.createElement(Kn,{theme:o.env.theme,env:o.env,schema:e.previewSchema||{type:'tpl',tpl:A('becdc848350872592201e31bab03892a')}}),K.createElement('div',{className:'ae-RenderersPicker-info'},K.createElement('h4',null,e.name),K.createElement('div',null,K.createElement(m,{html:e.description}),e.docLink?K.createElement('a',{target:'_blank',href:a.amisDocHost+e.docLink},K.createElement('span',null,'详情')):null)))}))):K.createElement('div',null,'没有可用组件,也许你该切换容器试试。'))),K.createElement('div',{className:'ae-InsertPanel-footer'},'replace'===a.insertMode?K.createElement(v,{className:'action-btn action-btn-primary',onClick:this.handleReplace,disabled:!a.insertSelected,level:'primary'},'替换'):K.createElement(v,{className:'action-btn action-btn-primary',onClick:this.handleInsert,disabled:!a.insertSelected,level:'primary'},'插入'),K.createElement(v,{className:'action-btn',onClick:this.handleCancel},'取消')))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleLeftClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'hadnlDBClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleInsert',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleReplace',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleCancel',null),t=D([fe],t)}(K.Component);function Vn(){return Vn=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},Vn.apply(this,arguments)}var Un;function Wn(){return Wn=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},Wn.apply(this,arguments)}var Zn;function qn(){return qn=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},qn.apply(this,arguments)}var Yn;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 Xn;function Gn(){return Gn=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},Gn.apply(this,arguments)}var Qn;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 tr,nr,rr;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 or,ir,sr;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 lr,dr,ur,pr,fr,hr,mr,vr;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 br;function yr(){return yr=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},yr.apply(this,arguments)}var Er;function wr(){return wr=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},wr.apply(this,arguments)}var Cr;function Sr(){return Sr=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},Sr.apply(this,arguments)}var xr;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 Rr;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 Nr;function kr(){return kr=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},kr.apply(this,arguments)}var Fr;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;function Pr(){return Pr=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},Pr.apply(this,arguments)}var Dr,Br;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,zr,Hr;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 $r;function Kr(){return Kr=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},Kr.apply(this,arguments)}var _r;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 Ur;function Wr(){return Wr=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},Wr.apply(this,arguments)}var Zr;function qr(){return qr=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},qr.apply(this,arguments)}var Yr;function Jr(){return Jr=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},Jr.apply(this,arguments)}var Xr,Gr;function Qr(){return Qr=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},Qr.apply(this,arguments)}var ea;function ta(){return ta=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},ta.apply(this,arguments)}var na;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 aa;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 ia;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 ca;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 da;function ua(){return ua=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},ua.apply(this,arguments)}var pa;function fa(){return fa=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},fa.apply(this,arguments)}var 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,ga;function ba(){return ba=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},ba.apply(this,arguments)}var ya;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,Ca=function(e){return $.createElement('svg',Ea({viewBox:'0 0 16 16',fill:'currentColor',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ya||(ya=$.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 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 xa;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 Ra;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 Na;function ka(){return ka=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},ka.apply(this,arguments)}var Fa;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 Da;function Ba(){return Ba=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},Ba.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 za;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)}var La;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 Ka;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)}g('arrow-to-right',(function(e){return $.createElement('svg',Vn({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),zn||(zn=$.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'})))})),g('left-arrow-to-left',(function(e){return $.createElement('svg',Wn({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Un||(Un=$.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'})))})),g('top-arrow-to-top',(function(e){return $.createElement('svg',qn({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Zn||(Zn=$.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'})))})),g('arrow-to-bottom',(function(e){return $.createElement('svg',Jn({viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Yn||(Yn=$.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'})))})),g('collapse-open',(function(e){return $.createElement('svg',Gn({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Xn||(Xn=$.createElement('path',{fill:'#83868C',fillRule:'nonzero',d:'M8 11 4 6h8z'})))})),g('harmmer',(function(e){return $.createElement('svg',yr({className:'icon',viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg'},e),br||(br=$.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'})))})),g('dialog',(function(e){return $.createElement('svg',wr({className:'icon',viewBox:'0 0 1155 1024',xmlns:'http://www.w3.org/2000/svg'},e),Er||(Er=$.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'})))})),g('setting',(function(e){return $.createElement('svg',Sr({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Cr||(Cr=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('path',{d:'M0 0h16v16H0z'}),$.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'}))))})),g('picker-icon',(function(e){return $.createElement('svg',Ir({xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),xr||(xr=$.createElement('g',{fill:'none',fillRule:'evenodd',stroke:'currentColor',strokeLinecap:'round',strokeLinejoin:'round'},$.createElement('path',{d:'M14.5 14.5h-13v-13h13v1.998'}),$.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'}))))})),g('edit-full-btn',(function(e){return $.createElement('svg',ta({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ea||(ea=$.createElement('g',{fill:'none',fillRule:'evenodd',stroke:'currentColor',strokeLinejoin:'round'},$.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'}))))})),g('event-setting',(function(e){return $.createElement('svg',ma({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ha||(ha=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('path',{d:'M0 0h16v16H0z'}),$.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'}),$.createElement('path',{d:'M1.333 3a1 1 0 0 1 1-1h11.334a1 1 0 0 1 1 1v3H1.333V3Z',stroke:'#151B26'}),$.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'}),$.createElement('g',{stroke:'#151B26',strokeLinejoin:'round'},$.createElement('path',{d:'m13.192 14.017 1.5-2.5-1.5-2.5h-3l-1.5 2.5 1.5 2.5z'}),$.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'})))))})),g('add-btn',(function(e){return $.createElement('svg',ra({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),na||(na=$.createElement('path',{d:'M8.5 2v5.5H14v1H8.5V14h-1V8.5H2v-1h5.5V2h1Z',fill:'currentColor',fillRule:'evenodd'})))})),g('close-btn',(function(e){return $.createElement('svg',oa({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),aa||(aa=$.createElement('path',{stroke:'currentColor',strokeLinejoin:'round',d:'M13.664 10.507 8.007 4.85 2.35 10.507',fill:'none',fillRule:'evenodd'})))})),g('open-btn-r',(function(e){return $.createElement('svg',sa({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ia||(ia=$.createElement('path',{stroke:'currentColor',strokeLinejoin:'round',d:'m2.35 5.497 5.657 5.657 5.657-5.657',fill:'none',fillRule:'evenodd'})))})),g('delete-easy-btn',(function(e){return $.createElement('svg',la({viewBox:'0 0 17 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),ca||(ca=$.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'})))})),g('delete-bold-btn',(function(e){return $.createElement('svg',ua({viewBox:'0 0 13 14',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),da||(da=$.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'})))})),g('drag-six-circle-btn',(function(e){return $.createElement('svg',fa({viewBox:'0 0 7 12',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),pa||(pa=$.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'})))})),g('drag-btn',(function(e){return $.createElement('svg',Pr({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Mr||(Mr=$.createElement('g',{fill:'#FFF',fillRule:'nonzero'},$.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'}),$.createElement('path',{d:'M8.4 3v4.7h4.7v.8H8.4V13h-.8V8.5H3.1v-.8l4.5-.001V3h.8Z'}))))})),g('more-btn',(function(e){return $.createElement('svg',kr({viewBox:'0 0 14 14',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Nr||(Nr=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('path',{d:'M0 0h14v14H0z'}),$.createElement('circle',{fill:'#FFF',cx:2.8,cy:7,r:1}),$.createElement('circle',{fill:'#FFF',cx:11.2,cy:7,r:1}),$.createElement('circle',{fill:'#FFF',cx:7,cy:7,r:1}))))})),g('copy-btn',(function(e){return $.createElement('svg',Or({viewBox:'0 0 15 15',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Rr||(Rr=$.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'})))})),g('delete-btn',(function(e){return $.createElement('svg',Ar({viewBox:'0 0 14 14',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Fr||(Fr=$.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'})))})),g('up-btn',(function(e){return $.createElement('svg',Tr({viewBox:'0 0 28 29',xmlns:'http://www.w3.org/2000/svg',xmlnsXlink:'http://www.w3.org/1999/xlink',className:'icon'},e),Dr||(Dr=$.createElement('defs',null,$.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'},$.createElement('stop',{stopColor:'#FFF',offset:'0%'}),$.createElement('stop',{stopColor:'#FFF',stopOpacity:0,offset:'100%'})),$.createElement('radialGradient',{cx:'77.918%',cy:'13.589%',fx:'77.918%',fy:'13.589%',r:'45.882%',id:'up-btn_svg__j'},$.createElement('stop',{stopColor:'#FFF',offset:'0%'}),$.createElement('stop',{stopColor:'#FFF',stopOpacity:0,offset:'100%'})),$.createElement('linearGradient',{x1:'50%',y1:'0%',x2:'50%',y2:'100%',id:'up-btn_svg__a'},$.createElement('stop',{stopColor:'#0752E9',offset:'0%'}),$.createElement('stop',{stopColor:'#2468F2',offset:'100%'})),$.createElement('linearGradient',{x1:'50%',y1:'0%',x2:'50%',y2:'100%',id:'up-btn_svg__g'},$.createElement('stop',{stopColor:'#0752E9',offset:'0%'}),$.createElement('stop',{stopColor:'#2468F2',offset:'100%'})),$.createElement('filter',{x:'-75%',y:'-75%',width:'250%',height:'250%',filterUnits:'objectBoundingBox',id:'up-btn_svg__c'},$.createElement('feGaussianBlur',{stdDeviation:7,in:'SourceGraphic'})),$.createElement('filter',{x:'-100%',y:'-100%',width:'300%',height:'300%',filterUnits:'objectBoundingBox',id:'up-btn_svg__h'},$.createElement('feGaussianBlur',{stdDeviation:2,in:'SourceGraphic'})),$.createElement('circle',{id:'up-btn_svg__f',cx:3,cy:2.5,r:2.5}),$.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'}))),Br||(Br=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.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)'}),$.createElement('g',{transform:'translate(6 1.5)'},$.createElement('mask',{id:'up-btn_svg__d',fill:'#fff'},$.createElement('use',{xlinkHref:'#up-btn_svg__b'})),$.createElement('use',{fill:'#F2F2FF',xlinkHref:'#up-btn_svg__b'}),$.createElement('circle',{fill:'#2468F2',filter:'url(#up-btn_svg__c)',mask:'url(#up-btn_svg__d)',cx:19,cy:-2,r:14}),$.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)'})),$.createElement('g',{transform:'translate(11 6.814)'},$.createElement('mask',{id:'up-btn_svg__i',fill:'#fff'},$.createElement('use',{xlinkHref:'#up-btn_svg__f'})),$.createElement('use',{fill:'url(#up-btn_svg__g)',xlinkHref:'#up-btn_svg__f'}),$.createElement('path',{fill:'#2468F2',filter:'url(#up-btn_svg__h)',mask:'url(#up-btn_svg__i)',d:'M3-3h6v6H3z'})),$.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)'}))))})),g('clear-btn',(function(e){return $.createElement('svg',Lr({className:'icon',viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg'},e),jr||(jr=$.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'})),zr||(zr=$.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'})),Hr||(Hr=$.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'})))})),g('open-btn',Ca),g('merge-icon',(function(e){return $.createElement('svg',Kr({viewBox:'0 0 24 24',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),$r||($r=$.createElement('g',{fillRule:'evenodd'},$.createElement('rect',{x:1,y:1,width:22,height:3,rx:1.5}),$.createElement('rect',{x:1,y:7,width:22,height:3,rx:1.5}),$.createElement('rect',{x:1,y:20,width:22,height:3,rx:1.5}),$.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'}))))})),g('cancel-icon',(function(e){return $.createElement('svg',Vr({viewBox:'0 0 24 24',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),_r||(_r=$.createElement('g',{fillRule:'evenodd'},$.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'}),$.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'}),$.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'}))))})),g('copy-icon',(function(e){return $.createElement('svg',Wr({viewBox:'0 0 24 23',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ur||(Ur=$.createElement('g',{fillRule:'evenodd'},$.createElement('rect',{x:1.5,y:7.5,width:15,height:14,rx:2}),$.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'}))))})),g('delete-icon',(function(e){return $.createElement('svg',qr({viewBox:'0 0 24 23',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Zr||(Zr=$.createElement('g',{fillRule:'evenodd'},$.createElement('path',{opacity:.66,d:'M11 9.5v9H8v-9zM16 9.5v9h-3v-9z'}),$.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}))))})),g('fixed-icon',(function(e){return $.createElement('svg',Jr({fill:'currentColor',viewBox:'0 0 1024 1024','data-spm-anchor-id':'a1z1go8z.25060599.0.i11.71e369e4cItcn5',className:'icon'},e),Yr||(Yr=$.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'})))})),g('no-fixed-icon',(function(e){return $.createElement('svg',Qr({fill:'currentColor',viewBox:'0 0 1024 1024','data-spm-anchor-id':'a1z1go8z.25060599.0.i10.71e369e4cItcn5',className:'icon'},e),Xr||(Xr=$.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'})),Gr||(Gr=$.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'})))})),g('editor-shortcut',(function(e){return $.createElement('svg',_a({className:'icon',viewBox:'0 0 1024 1024',xmlns:'http://www.w3.org/2000/svg'},e),Ka||(Ka=$.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'})))})),g('display-inline',(function(e){return $.createElement('svg',er({viewBox:'0 0 20 8',className:'icon'},e),Qn||(Qn=$.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'})))})),g('display-block',(function(e){return $.createElement('svg',ar({viewBox:'0 0 22 14',className:'icon'},e),tr||(tr=$.createElement('path',{opacity:.15,d:'M19 3v8H3V3h16m1-1H2v10h18V2z'})),nr||(nr=$.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'})),rr||(rr=$.createElement('path',{opacity:.35,d:'M3 3h16v8H3z'})))})),g('display-inline-block',(function(e){return $.createElement('svg',cr({viewBox:'0 0 28 14',className:'icon'},e),or||(or=$.createElement('path',{d:'M25 3v8H3V3h22m1-1H2v10h24V2z',opacity:.15})),ir||(ir=$.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'})),sr||(sr=$.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'})))})),g('display-flex',(function(e){return $.createElement('svg',gr({viewBox:'0 0 23 14',className:'icon'},e),lr||(lr=$.createElement('path',{d:'M21 2v10H2V2h19zm1-1H1v12h21V1z',opacity:.15})),dr||(dr=$.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'})),ur||(ur=$.createElement('path',{opacity:.4,d:'M3 3h5v8H3z'})),pr||(pr=$.createElement('path',{d:'M4 4v6h3V4H4zm4-1v8H3V3h5z'})),fr||(fr=$.createElement('path',{opacity:.4,d:'M9 3h5v8H9z'})),hr||(hr=$.createElement('path',{d:'M10 4v6h3V4h-3zm4-1v8H9V3h5z'})),mr||(mr=$.createElement('path',{opacity:.4,d:'M15 3h5v8h-5z'})),vr||(vr=$.createElement('path',{d:'M16 4v6h3V4h-3zm4-1v8h-5V3h5z'})))})),g('back-up',(function(e){return $.createElement('svg',ba({viewBox:'0 0 32 32',xmlns:'http://www.w3.org/2000/svg',xmlnsXlink:'http://www.w3.org/1999/xlink',className:'icon'},e),va||(va=$.createElement('defs',null,$.createElement('linearGradient',{x1:'100%',y1:'101.089%',x2:'0%',y2:'-14.125%',id:'back-up_svg__c'},$.createElement('stop',{stopColor:'#FFF',offset:'0%'}),$.createElement('stop',{stopColor:'#FFF8F8',offset:'46.533%'}),$.createElement('stop',{stopColor:'#DDFEEB',offset:'100%'})),$.createElement('linearGradient',{x1:'100%',y1:'51.269%',x2:'0%',y2:'48.407%',id:'back-up_svg__f'},$.createElement('stop',{stopColor:'#FFF',offset:'0%'}),$.createElement('stop',{stopColor:'#FFF8F8',offset:'46.533%'}),$.createElement('stop',{stopColor:'#DDFEEB',offset:'100%'})),$.createElement('filter',{x:'-24.3%',y:'-19.2%',width:'148.6%',height:'153.6%',filterUnits:'objectBoundingBox',id:'back-up_svg__a'},$.createElement('feOffset',{dy:1,in:'SourceAlpha',result:'shadowOffsetOuter1'}),$.createElement('feGaussianBlur',{stdDeviation:1,in:'shadowOffsetOuter1',result:'shadowBlurOuter1'}),$.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'})),$.createElement('filter',{x:'-25%',y:'-125%',width:'150%',height:'450%',filterUnits:'objectBoundingBox',id:'back-up_svg__d'},$.createElement('feOffset',{dy:1,in:'SourceAlpha',result:'shadowOffsetOuter1'}),$.createElement('feGaussianBlur',{stdDeviation:1,in:'shadowOffsetOuter1',result:'shadowBlurOuter1'}),$.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'})),$.createElement('rect',{id:'back-up_svg__e',x:0,y:0,width:14,height:2,rx:1}),$.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'}))),ga||(ga=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('rect',{fill:'#2468F2',width:32,height:32,rx:16}),$.createElement('g',{fillRule:'nonzero'},$.createElement('use',{fill:'#000',filter:'url(#back-up_svg__a)',xlinkHref:'#back-up_svg__b'}),$.createElement('use',{fill:'url(#back-up_svg__c)',xlinkHref:'#back-up_svg__b'})),$.createElement('g',{transform:'translate(9 7.702)',fillRule:'nonzero'},$.createElement('use',{fill:'#000',filter:'url(#back-up_svg__d)',xlinkHref:'#back-up_svg__e'}),$.createElement('use',{fill:'url(#back-up_svg__f)',xlinkHref:'#back-up_svg__e'})))))})),g('down-arrow',Ca),g('editor-search',(function(e){return $.createElement('svg',Sa({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),wa||(wa=$.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'})))})),g('editor-help',(function(e){return $.createElement('svg',Ia({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),xa||(xa=$.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'})))})),g('editor-fixed',(function(e){return $.createElement('svg',Oa({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ra||(Ra=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('path',{d:'M0 0h16v16H0z'}),$.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'}))))})),g('editor-no-fixed',(function(e){return $.createElement('svg',ka({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Na||(Na=$.createElement('g',{fillRule:'nonzero',fill:'none'},$.createElement('path',{d:'M0 0h16v16H0z'}),$.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'}))))})),g('editor-renderer',(function(e){return $.createElement('svg',Aa({viewBox:'0 0 48 48',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Fa||(Fa=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('path',{d:'M0 0h48v48H0z'}),$.createElement('g',{strokeWidth:1.25,stroke:'currentColor',strokeLinejoin:'round'},$.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'})))))})),g('editor-outline',(function(e){return $.createElement('svg',Pa({viewBox:'0 0 48 48',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ma||(Ma=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('path',{d:'M0 0h48v48H0z'}),$.createElement('g',{transform:'translate(14 14)'},$.createElement('path',{d:'M0 0h20v20H0z'}),$.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',d:'M3.121 5.625v11.25M3.121 10.625h2.5M3.121 16.875h2.5'}),$.createElement('circle',{fill:'currentColor',cx:3.125,cy:4.375,r:1.875}),$.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'})))))})),g('editor-code',(function(e){return $.createElement('svg',Ba({viewBox:'0 0 48 48',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Da||(Da=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('path',{d:'M0 0h48v48H0z'}),$.createElement('path',{d:'M14 14h20v20H14z'}),$.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinejoin:'round',d:'M16.5 17.75h15v12.5h-15z'}),$.createElement('path',{stroke:'currentColor',strokeWidth:1.25,strokeLinecap:'round',d:'m25.709 20.841-3.362 6.284'}),$.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'}))))})),g('editor-common-config',(function(e){return $.createElement('svg',ja({viewBox:'0 0 20 20',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),Ta||(Ta=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('path',{d:'M0 0h20v20H0z'}),$.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'}),$.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'}))))})),g('editor-double-arrow',(function(e){return $.createElement('svg',Ha({viewBox:'0 0 16 16',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),za||(za=$.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'})))})),g('search-clear',(function(e){return $.createElement('svg',$a({viewBox:'0 0 12 12',xmlns:'http://www.w3.org/2000/svg',className:'icon'},e),La||(La=$.createElement('g',{fill:'none',fillRule:'evenodd'},$.createElement('path',{d:'M6 12A6 6 0 1 1 6 0a6 6 0 0 1 0 12Z',fill:'currentColor'}),$.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 Va=function(e){function t(t){var n=e.call(this,t)||this;n.ref=K.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 P(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){!ze(e)&&e[r]&&(Array.isArray(e[r])?e[r].concat():e[r]?[e[r]]:[A('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){var t=this.props.allResult,n=[],r={},a=e||this.state.curKeyword,o=this.props.tagKey||'tags',i={},s=a?new RegExp(qt(a),'i'):null;t.forEach((function(t){if(ze(t)&&s&&s.test(t))n.push(t);else if(!e||['name','description','scaffold.type'].some((function(e){return t[e]&&s&&s.test(t[e])}))){if(t[o])(Array.isArray(t[o])?t[o].concat():t[o]?[t[o]]:[A('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(e){r[e]=i[e]||[],r[e].push(t)}));else n.push(t)}})),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 K.createElement('span',null,e.substring(0,n),K.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,s=i.resultTags,c=i.curKeyword,l=i.searchResult,d=i.searchResultByTag,u=i.visible,p=d?Object.keys(d):[],f=j([],z(this.state.curKeywordSearchHistory),!1).reverse(),m=!1;return u&&n&&n.length>0&&(m=!0),a&&c&&(m=!1),a&&(!s||s&&0===s.length)&&(!f||f&&0===f.length)&&(m=!1),K.createElement('div',{className:'editor-InputSearch-panel',ref:this.ref},K.createElement(h,{className:'editor-InputSearch',value:c,onChange:this.updateCurKeyword,placeholder:A('2168c5735883bd040eaf09909d0911b8'),clearable:!1,onFocus:this.bindFocusEvent,onBlur:this.bindBlurEvent},K.createElement(K.Fragment,null,o&&(c?K.createElement(r,{icon:'search-clear',className:'icon delete-btn-icon',onClick:this.bindClearActionEvent}):K.createElement(r,{icon:'editor-search',className:'icon',onClick:this.bindBlurEvent})),!o&&K.createElement(K.Fragment,null,c&&K.createElement(r,{icon:'search-clear',className:'icon delete-btn-icon margin-right',onClick:this.bindClearActionEvent}),K.createElement(r,{icon:'editor-search',className:'icon',onClick:this.bindBlurEvent})))),K.createElement('div',{className:'editor-InputSearch-content '.concat(m?'':'hidden-status')},!c&&f&&f.length>0&&K.createElement('div',{className:'search-history '.concat(s&&s.length>0?'has-border-bottom':'')},K.createElement('div',{className:'header'},K.createElement('div',{className:'header-title'},'搜索历史'),K.createElement('div',{className:'header-clear-icon',onClick:function(t){return e.clearSearchHistory(t)}},'清空')),K.createElement('div',{className:'history-cont '.concat(f.length>6?'hasScrollBtn':'')},f.map((function(t,n){return K.createElement('div',{className:'history-item',key:''.concat(t,'-').concat(n),onClick:function(){return e.clickKeywordEvent(t)}},K.createElement('div',{className:'history-keyword'},t),K.createElement('div',{className:'delete-icon',title:'点击删除这条搜索记录'},K.createElement(r,{icon:'close',onClick:function(n){return e.deleteSearchHistory(n,t)}})))})))),c&&0===l.length&&0===p.length&&K.createElement('div',{className:'search-result-list'},K.createElement('div',{className:'search-result-placeholder'},'搜索结果为空,您可以换个关键字继续查找。')),c&&l.length>0&&K.createElement('div',{className:'search-result-list '.concat(l.length>6?'hasScrollBtn':'')},l.length>1&&K.createElement('div',{className:'subRenderers-list only-one-tag'},l.map((function(t,n){return K.createElement('div',{className:'subRenderers-item',key:'subRenderers-only-one-tag-'.concat(n),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))),c&&p.length>0&&K.createElement('div',{className:'search-result-list '.concat(this.resultIsHasScroll(d,6)?'hasScrollBtn':'')},p.length>1&&p.map((function(t,n){return K.createElement('div',{className:'multiple-subRenderers-list',key:''.concat(t,'-subRenderers-list')},K.createElement('div',{className:V('subRenderers-header',{'is-folded':!!e.curTagFolded[t]}),title:e.curTagFolded[t]?A('e4cefe7df36e92da1d7e875b92655507'):A('7ae451de83aa6f5f140e941904377391'),onClick:function(n){e.changeTagFoldStatus(t,n)}},t,K.createElement(r,{icon:'right-arrow-bold'})),K.createElement('div',{className:V('subRenderers-list',{'is-folded':!!e.curTagFolded[t]})},d[t]&&d[t].map((function(t,n){return K.createElement('div',{className:'subRenderers-item',key:n,onClick:function(){return e.clickKeywordEvent(t.name)}},e.renderNameByKeyword(t.name,c))}))))})),1===p.length&&p.map((function(t,n){return K.createElement('div',{className:'subRenderers-list only-one-tag',key:'subRenderers-tag-'.concat(t)},d[t]&&d[t].map((function(t,n){return K.createElement('div',{className:'subRenderers-item',key:'subRenderers-only-one-tag-'.concat(n),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))}))),!c&&s&&s.length>0&&K.createElement('div',{className:'tag-list'},K.createElement('div',{className:'header'},'组件分类'),K.createElement('div',{className:'tag-list-cont'},s.length?s.map((function(t,n){return K.createElement('div',{className:'tag-item',key:''.concat(t,'-').concat(n),onClick:function(){return e.bindTagClickEvent(t)}},t)})):null))))},D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getSearchHistory',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'bindFocusEvent',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'bindBlurEvent',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],t.prototype,'updateCurKeyword',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String,Object]),B('design:returntype',void 0)],t.prototype,'changeTagFoldStatus',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'bindEnterEvent',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'bindClearActionEvent',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],t.prototype,'bindTagClickEvent',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],t.prototype,'addSearchHistory',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],t.prototype,'clickKeywordEvent',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object,String]),B('design:returntype',void 0)],t.prototype,'deleteSearchHistory',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'clearSearchHistory',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'updateSearchHistory',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String,String]),B('design:returntype',void 0)],t.prototype,'renderNameByKeyword',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object,Number]),B('design:returntype',void 0)],t.prototype,'resultIsHasScroll',null),t=D([fe,B('design:paramtypes',[Object])],t)}(K.Component),Ua=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 P(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 K.createElement(Va,{allResult:t,externalKeyword:n,searchPanelUUID:this.localStorageKey,onChange:r,onTagChange:this.changeSubRenderersTag,immediateChange:!0,closeAutoComplete:!0})},t=D([fe,B('design:paramtypes',[Object])],t)}(K.Component),Wa=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 P(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?K.createElement(Va,{allResult:t,externalKeyword:n,searchPanelUUID:this.localStorageKey,onChange:a,onTagChange:o}):null},t=D([fe,B('design:paramtypes',[Object])],t)}(K.Component),Za=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={toggleCollapseFolderStatus:!1},t.curCollapseFolded={},t}return P(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:Ze},t.env):K.createElement('p',null,'没有预览图')},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.searchRendererType,o=t.className,i=this.props.groupedRenderers||{},s=Object.keys(i);return K.createElement('div',{className:V('ae-RendererList',o)},'renderer'===a&&K.createElement(Ua,{store:n}),'custom-renderer'===a&&K.createElement(Wa,{store:n}),K.createElement('hr',{className:'margin-top'}),K.createElement('div',{className:'ae-RendererList-groupWrap hoverShowScrollBar'},s.length?s.map((function(t,a){var o=i[t];return o&&o.length?K.createElement(K.Fragment,{key:t},K.createElement('div',{key:''.concat(t,'-head'),className:'ae-RendererList-head collapse-header',onClick:function(n){e.changeCollapseFoldStatus(t,n)}},t,K.createElement('div',{className:V('expander-icon',{'is-folded':!!e.curCollapseFolded[t]}),title:e.curCollapseFolded[t]?A('e4cefe7df36e92da1d7e875b92655507'):A('7ae451de83aa6f5f140e941904377391')},K.createElement(r,{icon:'right-arrow-bold'}))),K.createElement('div',{key:''.concat(t,'-content'),className:V('ae-RendererList-group collapse-content',{'is-folded':!!e.curCollapseFolded[t]})},o.map((function(t){var o=''.concat(a,'_').concat(t.id),i=Ut(t);return K.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)}},K.createElement('div',{className:'icon-box','data-dnd-id':t.id,title:'点击添加「'.concat(t.name,'」'),onClick:e.handleClick},i&&K.createElement(r,{icon:t.pluginIcon}),!i&&K.createElement('i',{className:V('fa-fw',t.icon||'fa fa-circle-thin')})),K.createElement('div',{className:'ae-RendererInfo','data-dnd-id':t.id,onClick:e.handleClick},t.name),K.createElement(b,{tooltipClassName:'ae-RendererThumb',trigger:'hover',rootClose:!0,placement:'right',tooltip:{offset:[10,0],children:function(){return K.createElement('div',null,K.createElement('div',{className:'ae-Renderer-title'},t.name),t.description||t.docLink?K.createElement('div',{className:'ae-Renderer-info'},K.createElement(m,{html:t.description?t.description:''}),t.docLink&&K.createElement('a',{target:'_blank',href:n.amisDocHost+t.docLink},'详情')):null,K.createElement('div',{className:'ae-Renderer-preview'},e.renderThumb(t.previewSchema)))}}},K.createElement('div',{className:'ae-RendererIcon'},K.createElement(r,{icon:'editor-help',className:'icon'}))))})))):null})):K.createElement('span',null,'没有找到可用组件,您可以换个关键字继续查找。')))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleRegionFilterClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object,String]),B('design:returntype',void 0)],t.prototype,'handleDragStart',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String,Object]),B('design:returntype',void 0)],t.prototype,'changeCollapseFoldStatus',null),t=D([fe],t)}(K.Component),qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(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||{},s=t.groupedCustomRenderers||{};return K.createElement('div',{className:'ae-RendererPanel'},K.createElement('div',{className:'panel-header'},'组件'),K.createElement('div',{className:'ae-RendererPanel-content'},t.showCustomRenderersPanel&&o.length>0&&K.createElement(y,{theme:a,tabsMode:'line',className:'ae-RendererList-tabs',linksClassName:'ae-RendererList-tabs-header',contentClassName:'ae-RendererList-tabs-content',activeKey:r,onSelect:this.handleSelect},K.createElement(E,{key:'base-renderers',eventKey:'base-renderers',title:A('5cb297585d4c81bb8fdbd31210a30d6f'),className:'ae-RendererList-tabs-panel base-renderers',mountOnEnter:!0,unmountOnExit:!1},K.createElement(Za,{groupedRenderers:i,store:t,manager:n,searchRendererType:'renderer'})),K.createElement(E,{key:'custom-renderers',eventKey:'custom-renderers',title:A('6fce1c9aa3654ae2f0eedcc068a7e189'),className:'ae-RendererList-tabs-panel custom-renderers',mountOnEnter:!0,unmountOnExit:!1},K.createElement(Za,{groupedRenderers:s,store:t,manager:n,searchRendererType:'custom-renderer'}))),(!t.showCustomRenderersPanel||Object.keys(s).length<1)&&K.createElement(Za,{className:'only-base-component',groupedRenderers:i,store:t,manager:n,searchRendererType:'renderer'})))},D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],t.prototype,'handleSelect',null),t=D([fe],t)}(K.Component),Ya=ge.model('EditorRoot',{isMobile:!1,isSubEditor:!1,amisDocHost:ge.optional(ge.string,'https://baidu.gitee.io'),root:ge.optional(pn,{id:'root',label:'Root'}),theme:'cxd',hoverId:'',hoverRegion:'',activeId:'',activeRegion:'',mouseMoveRegion:'',selections:ge.optional(ge.frozen(),[]),contextId:'',dragMode:'move',dragId:'',dragType:'',dragSchema:ge.frozen(),dropId:'',dropRegion:'',planDropId:'',planDropRegion:'',insertId:'',insertRegion:'',insertRenderers:ge.optional(ge.frozen(),[]),insertRenderersKeywords:'',insertTag:A('a8b0c20416853bda54120bf19477ad11'),insertSelected:'',insertMode:'insert',insertOrigId:'',insertBeforeId:'',showInsertRenderer:!1,schema:ge.frozen(),versionId:0,schemaHistory:ge.optional(ge.array(ge.frozen()),[]),toolbars:ge.optional(ge.frozen(),[]),panels:ge.optional(ge.frozen(),[]),showCustomRenderersPanel:!1,renderersTabsKey:'base-renderers',subRenderers:ge.optional(ge.frozen(),[]),subRenderersKeywords:'',subRenderersTag:'',subRendererRegion:'',customRenderersKeywords:'',customRenderersTag:'',panelKey:'',leftPanelKey:'',leftPanelOpenStatus:!0,jsonSchemaUri:'',scaffoldForm:ge.maybe(ge.frozen()),scaffoldFormStep:0,scaffoldFormBuzy:!1,scaffoldError:'',popOverForm:ge.maybe(ge.frozen()),subEditorContext:ge.maybe(ge.frozen()),superEditorData:ge.maybe(ge.frozen()),calculateStarted:!1,targetNames:ge.optional(ge.array(ge.frozen()),[]),ctx:ge.frozen(),i18nEnabled:ge.optional(ge.boolean,!1),appLocale:ge.optional(ge.string,'zh-CN'),appCorpusData:ge.optional(ge.frozen(),{}),appLocaleState:ge.optional(ge.number,0)}).views((function(e){return{get filteredSchema(){var t,n,r;return xt(null!==(r=null===(n=(t=we(e)).schemaFilter)||void 0===n?void 0:n.call(t,e.schema))&&void 0!==r?r:e.schema)},get filteredSchemaForPreview(){var t,n,r,a=at(e.schema);return null!==(r=null===(n=(t=we(e)).schemaFilter)||void 0===n?void 0:n.call(t,a))&&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){for(var r=e.root.children.concat();r.length;){var a=r.shift();if(a.id===t&&(!n||a.region===n||a.type===n))return a;a.children.length&&r.push.apply(r,a.children)}},get activeNodeInfo(){var t;return null===(t=this.getNodeById(e.activeId))||void 0===t?void 0:t.info},getSchema:function(t,n){return t?ct(e.schema,t,n):e.schema},getSchemaParentById:function(t,n){return void 0===n&&(n=!1),lt(e.schema,t,n)},getSchemaPath:function(t){var n=st(e.schema,t);return Array.isArray(n)?n.join('/'):''},getSimpleSchema:function(t){var n,r,a,o=at(t);return null!==(a=null===(r=(n=we(e)).schemaFilter)||void 0===r?void 0:r.call(n,o))&&void 0!==a?a:o},getPanelKey:function(){var t,n=e.panelKey;if('none'===n)return n;var r=this.getPanels();return xe(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 xe(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?A('1dd554cdfc1ddf7dce13453805523c16'):A('9bdb07e72d3a9a6084201a7398523f5a'),component:_n,order:9999}),t.push({key:'insertRenderer',icon:'fa fa-bolt',position:'left',title:A('a82240ce09faf0b972a8aa5c9e93d209'),component:qa,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 at(ct(e.schema,t),!1)},get valueWithoutHiddenProps(){if(e.activeId)return at(ct(e.schema,e.activeId),we(e).isHiddenProps||function(e,t){return'$$'===e.substring(0,2)&&'$$comments'!==e&&'$$commonSchema'!==e||'function'==typeof t||'__'===e.substring(0,2)||'editorState'===e})},get outline(){return e.root.children},get bcn(){var t=[];return e.activeId&&ie(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.children.length&&t(e.children)}))};return t(e.root.children)},get schemaRaw(){return at(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){var n=e,r={},a=t?new RegExp(qt(t),'i'):null;return n.forEach((function(e){t&&!['name','description','scaffold.type','searchKeywords'].some((function(t){return w(t,e)&&a&&a.test(w(t,e))}))||(Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:[A('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 xe(e.subRenderers||[],(function(e){return e.id===t}))},get groupedInsertRenderers(){var t={'全部':[]},n=e.insertRenderersKeywords,r=new RegExp(qt(n),'i');return e.insertRenderers.concat().sort((function(e,t){return e.order-t.order})).forEach((function(e){n&&!['name','description','scaffold.type'].some((function(t){return w(t,e)&&r.test(w(t,e))}))||((Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:[A('0d98c74797e49d00bcc4c17c9d557a2b')]).forEach((function(n){t[n]=t[n]||[],t[n].push(e)})),t[A('a8b0c20416853bda54120bf19477ad11')].push(e))})),t},get selectedInsertRendererInfo(){return xe(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)))})))||(Y(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?M(M({},de(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,s=this.getSchemaParentById(i,!0),c='flex'===(null==s?void 0:s.type)||'flex'===(null===(n=null==s?void 0:s.style)||void 0===n?void 0:n.display)||'inline-flex'===(null===(r=null==s?void 0:s.style)||void 0===r?void 0:r.display),l='column'===(null==s?void 0:s.direction)||'column-reverse'===(null==s?void 0:s.direction)||'column'===(null===(a=null==s?void 0:s.style)||void 0===a?void 0:a.flexDirection)||'column-reverse'===(null===(o=null==s?void 0:s.style)||void 0===o?void 0:o.flexDirection);return!(!c||!l)},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?ct(e.schema,t.id):e.schema,i='',s=Gt(null==t?void 0:t.label),c=Gt(null==o?void 0:o.label),l=Gt(null==o?void 0:o.title);if(null==t?void 0:t.region)i=s;else{var d='cell'!==t.type?'<'.concat(s,'>'):'<列>';i=''.concat(d).concat(null!==(n=null!=c?c:l)&&void 0!==n?n:s)}return i=null!=i?i:s,{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 te(e.ctx,M(M({},(null===(t=e.scaffoldForm)||void 0===t?void 0:t.value)||{}),{__step:e.scaffoldFormStep}))}}})).actions((function(e){we(e);var t=0,n=null,r=void 0,a=document,o=void 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){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=rt(t||{});if(e.schema){var a=Tt(e.schema,r,(function(e,t){return'$$id'===t})),o=jt(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 i=a[0].path,s=i.pop(),c=i.reduce((function(e,t){return e[t]}),o);c[s]=c[s].map((function(e){return M(M({},e),{$$id:Ke()})}))}e.schema=o}else e.schema=r;this.resetHistory(),this.updateTargetName()},insertSchema:function(t){var n,r=t.context.id,a=t.context.region,o=ct(e.schema,r);if(o){var i=rt(t.context.data);(null==o?void 0:o.isFreeContainer)&&(i.style={position:'absolute',inset:'10px auto auto 10px'},Yt(i.type)&&(i.style.width='300px'));var s=Array.isArray(o[a])?o[a].concat():o[a]?[o[a]]:[];if(t.context.beforeId){var c=Oe(s,(function(e){return e.$$id===t.context.beforeId}));~c?s.splice(c,0,i):s.push(i)}else s.push(i);return this.traceableSetSchema(dt(e.schema,r,((n={})[a]=s,n))),t.context.data=i,i}},moveSchema:function(t){var n,r=t.context,a=e.schema;if(r.sourceId!==r.beforeId){var o=ct(a,r.sourceId);a=ut(a,r.sourceId,void 0,!0);var i=r.region,s=ct(a,r.id)[i];if(s=Array.isArray(s)?s.concat():s?[s]:[],r.beforeId){var c=Oe(s,(function(e){return e.$$id===r.beforeId}));if(!~c)throw new Error(A('eadc8c8d4a8776893672330598babca0'));s.splice(c,0,o)}else s.push(o);this.traceableSetSchema(dt(a,r.id,((n={})[i]=s,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)},changeLeftPanelOpenStatus:function(t){t!==e.leftPanelOpenStatus&&(e.leftPanelOpenStatus=t)},showRendererPanel:function(t,n){'renderers'!==e.getLeftPanelKey()?e.leftPanelKey='renderers':t!==e.subRenderersTag&&t||i.info(n||A('f3c057f37fb9a4e7dd44b04919c12578')),e.renderersTabsKey='base-renderers',t&&this.changeSubRenderersTag(t),this.changeLeftPanelOpenStatus(!0)},changeValue:function(t,n){e.activeId&&this.changeValueById(e.activeId,t,n)},changeValueById:function(t,n,r,a,o){var i=ct(e.schema,t);if(i)if(r){var s=jt(i,r);this.traceableSetSchema(dt(e.schema,t,ot(rt(s)),!0),o)}else this.traceableSetSchema(dt(e.schema,t,ot(rt(n)),a),o)},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 s=(i.inset||'auto').split(' '),c={top:s[0]||'auto',right:s[1]||'auto',bottom:s[2]||s[0]||'auto',left:s[3]||s[1]||'auto'},l=''.concat('auto'!==c.top?Zt(c.top,r):'auto',' ').concat('auto'!==c.right?Zt(c.right,-n):'auto',' ').concat('auto'!==c.bottom?Zt(c.bottom,-r):'auto',' ').concat('auto'!==c.left?Zt(c.left,n):'auto');this.changeValueById(a,M(M({},o),{style:M(M({},i),{inset:l})})),this.calculateHighlightBox([a])}}},moveUp:function(t){t&&this.traceableSetSchema(mt(e.schema,t))},moveDown:function(t){t&&this.traceableSetSchema(gt(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=ct(e.schema,t);if(ct(o,e.activeId)){a=null===(r=e.getNodeById(t))||void 0===r?void 0:r.host;this.setActiveId(a?a.id:'')}}this.traceableSetSchema(ut(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=ct(e.schema,t);if(ct(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 ut(e,t)}),e.schema))},duplicate:function(t){this.traceableSetSchema((Array.isArray(t)?t:[t]).reduce((function(e,t){return bt(e,t)}),e.schema))},emptyRegion:function(t,n){var r;this.traceableSetSchema(dt(e.schema,t,((r={})[n]=[],r)))},replaceChild:function(t,n){this.traceableSetSchema(dt(e.schema,t,rt(n),!0))},setInsertRegion:function(t,n,r,a,o,i){void 0===n&&(n=''),void 0===r&&(r=A('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},openSubEditor:function(t){e.activeId&&(e.subEditorContext=M(M({},t),{data:ue(t.data,{__curCmptTreeWrap:{label:t.title,disabled:!0},__superCmptTreeSource:e.getComponentTreeSource()})}))},confirmSubEditor:function(t){var n,r=z(t,1)[0],a=e.subEditorContext,o=a.onChange,i=a.slot,s=r.schema,c=(null===(n=r.__pristine)||void 0===n?void 0:n.schema)||s;if(i){var l=e.subEditorSlotPath.replace(/(?:\/)/g,'.');s=pe(s,l),c=pe(c,l),Array.isArray(s)&&1===s.length&&!Array.isArray(c)&&(s=s[0])}o(s,o.length>1?Tt(c,s):void 0),e.subEditorContext=void 0},closeSubEditor:function(){e.subEditorContext=void 0},subEditorOnChange:function(){n&&(e.subEditorContext=M(M({},e.subEditorContext),{canUndo:n.canUndo(),canRedo:n.canRedo()}))},undoSubEditor:function(){n&&n.undo()},redoSubEditor:function(){n&&n.redo()},subEditorRef:function(e){n=e},openScaffoldForm:function(t){e.scaffoldForm=t},closeScaffoldForm:function(){e.scaffoldForm=void 0},setScaffoldBuzy:function(t){e.scaffoldFormBuzy=!!t},setScaffoldStep:function(t){e.scaffoldFormStep=t},setScaffoldError:function(t){void 0===t&&(t=''),e.scaffoldError=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=[];zt(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=Ce(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,this.updateTargetName()},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,this.updateTargetName(),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,this.updateTargetName(),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=dt(n,e.target,e.value);else if('replace'===e.op)n=dt(n,e.target,e.value,!0);else if('delete'===e.op)n=ut(n,e.target);else if('push'===e.op){var a=(o=ct(n,e.target))[e.key];(a=Array.isArray(a)?a.concat():a?[a]:[]).push(e.value),o=M(M({},o),((t={})[e.key]=a,t)),n=dt(n,e.target,o)}else if('splice'===e.op){var o;a=(o=ct(n,e.target))[e.key];(a=Array.isArray(a)?a.concat():a?[a]:[]).splice.apply(a,j([],z(e.args),!1)),o=M(M({},o),((r={})[e.key]=a,r)),n=dt(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()}}})),Ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.afterResolveEditorInfo=function(e){var t,n,r,a,o,i,s=this.props.store,c=e.context;if(null===(t=s.subEditorContext)||void 0===t?void 0:t.slot){var l=s.subEditorSlotPath;!~c.schemaPath.indexOf(l)&&c.data?(c.data.editable=!1,c.data.memberImmutable=!Array.isArray(null===(a=s.subEditorContext)||void 0===a?void 0:a.value),c.data.memberImmutable||(c.data.name=A('22c799040acdb2601b437ed5449de076'))):c.schemaPath===l&&c.data&&(Array.isArray(null===(o=s.subEditorContext)||void 0===o?void 0:o.value)||(c.data.movable=!1,c.data.removable=!1),c.data.typeMutable=null===(i=s.subEditorContext)||void 0===i?void 0:i.typeMutable)}else c.data&&!c.schemaPath&&(null===(n=s.subEditorContext)||void 0===n?void 0:n.memberImmutable)&&(c.data.memberImmutable=null===(r=s.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,j([],z(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,s=a.subEditorContext,c=o.config,l=a.superEditorData;s&&(l=te(a.superEditorData,null==s?void 0:s.data));var d=j(j([],z(((null===(e=o.config)||void 0===e?void 0:e.variables)||[]).filter((function(e){return e.title!==A('cc6aeb073ebc3cb29734a49164f8964c')}))),!1),[{name:'pageParams',title:A('cc6aeb073ebc3cb29734a49164f8964c'),parentId:'root',order:0,schema:{type:'object',$id:'pageParams',properties:{}}}],!1);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 H(n,void 0,void 0,(function(){var t,n,r;return L(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,s,u=e.value,p=e.onChange;return K.createElement(io,{autoFocus:!0,value:u,ref:a.subEditorRef,onChange:p,data:null===(t=a.subEditorContext)||void 0===t?void 0:t.data,superEditorData:l,schemaFilter:o.config.schemaFilter,theme:o.env.theme,afterResolveEditorInfo:n.afterResolveEditorInfo,onBuildPanels:n.handleBuildPanels,isMobile:a.isMobile,isSubEditor:!0,iframeUrl:c.iframeUrl,ctx:a.ctx,schemas:null===(r=o.config)||void 0===r?void 0:r.schemas,variables:d,amisEnv:i||c.amisEnv,appLocale:c.appLocale,i18nEnabled:c.i18nEnabled,plugins:c.plugins,actionOptions:c.actionOptions,showCustomRenderersPanel:null===(s=a.showCustomRenderersPanel)||void 0===s||s,isHiddenProps:c.isHiddenProps,$schemaUrl:c.$schemaUrl})}}]}:{type:'tpl',tpl:'Loading...'},actions:[[{children:s?K.createElement('div',{className:'ae-DialogToolbar'},K.createElement('button',{type:'button','data-tooltip':'撤销',disabled:!s.canUndo,onClick:a.undoSubEditor},K.createElement('i',{className:'fa fa-undo'})),K.createElement('button',{type:'button','data-tooltip':'重做',disabled:!s.canRedo,onClick:a.redoSubEditor},K.createElement('i',{className:'fa fa-rotate-right'}))):null},{type:'submit',label:A('e83a256e4f5bb4ff8b3d804b5473217a'),level:'primary'},{type:'button',label:A('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(M({type:'dialog'},this.buildSchema()),{show:!!t.subEditorContext,data:{schema:t.subEditorValue}},M(M({},Q(r.env,'replaceText')),{session:'editor-dialog',theme:n}))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'afterResolveEditorInfo',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleBuildPanels',null),t=D([fe],t)}(K.Component),Xa=function(e){function t(t){var n=e.call(this,t)||this;return n.breadcrumbRef=K.createRef(),n.bcnContentRef=K.createRef(),n.state={showLeftScrollBtn:!1,showRightScrollBtn:!1},n.unReaction=W((function(){return n.props.store.bcn}),(function(){n.refreshHandleScroll(!0)})),n}return P(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.getCurBreadcrumb(),n=this.getBreadcrumbContainer();t&&n&&(this.unSensor=p(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 K.createElement('div',{className:'ae-Breadcrumb',ref:this.breadcrumbRef},a&&K.createElement('div',{className:'ae-Breadcrumb-scrollLeft-btn',onClick:this.handleScrollToLeft},K.createElement(r,{icon:'editor-double-arrow',className:'icon'})),K.createElement('div',{className:'ae-Breadcrumb-content',ref:this.bcnContentRef},i.length?K.createElement('ul',null,i.map((function(t,n){var r,a=null===(r=t.parent)||void 0===r?void 0:r.uniqueChildren;return K.createElement('li',{key:n},K.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?K.createElement('ul',{className:'hoverShowScrollBar'},a.map((function(n){return K.createElement('li',{key:''.concat(n.id,'-').concat(n.region)},K.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&&K.createElement('div',{className:'ae-Breadcrumb-scrollRight-btn',onClick:this.handleScrollToRight},K.createElement(r,{icon:'editor-double-arrow',className:'icon'})))},D([Ft,B('design:type',Function),B('design:paramtypes',[Boolean]),B('design:returntype',void 0)],t.prototype,'refreshHandleScroll',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getCurBreadcrumb',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getBreadcrumbContainer',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',String)],t.prototype,'getScrollLeft',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',Number)],t.prototype,'toNumber',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Boolean]),B('design:returntype',void 0)],t.prototype,'HandleScroll',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleScrollToLeft',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleScrollToRight',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleMouseEnter',null),t=D([fe,B('design:paramtypes',[Object])],t)}(K.Component),Ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.handleConfirm=function(e){var t,n,r,a,o=z(e,1)[0];return H(this,void 0,void 0,(function(){var e,i,s;return L(this,(function(c){switch(c.label){case 0:return e=this.props.store,i=null===(t=e.scaffoldForm)||void 0===t?void 0:t.pipeOut,o=M(M({},null===(n=e.scaffoldForm)||void 0===n?void 0:n.value),o),i&&'function'==typeof i?[4,i(o)]:[3,2];case 1:s=c.sent(),o=M({},s),c.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=j([{type:'steps',name:'__steps',className:'ae-Steps',steps:a.map((function(e,t){return{title:e.title,value:t,iconClassName:'ae-Steps-Icon'}}))}],z(a.map((function(e,t){return{type:'container',visibleOn:'__step === '.concat(t),body:e.body}}))),!1)),n=Kt(r.mode)?r.mode:{mode:r.mode||'normal'},M(M({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.setScaffoldStep(r)},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.setScaffoldStep(r)},t.prototype.handleConfirmClick=function(){var e;return H(this,void 0,void 0,(function(){var t,n,r,a;return L(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,3,4,5]),n.setScaffoldBuzy(!0),[4,t.doAction({type:'submit'},t.props.data,!0)];case 2:return r=o.sent(),this.handleConfirm([r]),[3,5];case 3:return a=o.sent(),console.log(a.stack),n.setScaffoldError(a.message),[3,5];case 4:return n.setScaffoldBuzy(!1),[7];case 5:return[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,s=C(n||'cxd').classnames,c=!!(null==i?void 0:i.stepsBody),l=c&&t.scaffoldFormStep===i.body.length-1,d=c&&0===t.scaffoldFormStep;return K.createElement(S,{size:(null==i?void 0:i.size)||'md',contentClassName:null==i?void 0:i.className,show:!!i,onHide:t.closeScaffoldForm,className:'ae-scaffoldForm-Modal',closeOnEsc:!t.scaffoldFormBuzy},K.createElement('div',{className:s('Modal-header')},t.scaffoldFormBuzy?null:K.createElement('a',{'data-position':'left',onClick:t.closeScaffoldForm,className:s('Modal-close')},K.createElement(r,{icon:'close',className:'icon'})),K.createElement('div',{className:s('Modal-title')},null==i?void 0:i.title)),K.createElement('div',{className:s('Modal-body')},i?o(this.buildSchema(),{data:t.scaffoldData,onValidate:i.validate,scopeRef:this.scopeRef},M(M({},a.env),{session:'scaffold-dialog',theme:n})):K.createElement('p',null,'Loading...')),K.createElement('div',{className:s('Modal-footer')},t.scaffoldFormBuzy||t.scaffoldError?K.createElement('div',{className:s('Dialog-info'),key:'info'},K.createElement(x,{size:'sm',key:'info',show:t.scaffoldFormBuzy}),t.scaffoldError?K.createElement('span',{className:s('Dialog-error')},t.scaffoldError):null):null,c&&!d&&K.createElement(v,{level:'primary',onClick:this.goToPrevStep},'上一步'),c&&!l&&K.createElement(v,{level:'primary',onClick:this.goToNextStep},'下一步'),(!c||l)&&K.createElement(v,{level:'primary',onClick:this.handleConfirmClick,disabled:t.scaffoldFormBuzy},'确认'),K.createElement(v,{onClick:this.handleCancelClick},'取消')))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',Promise)],t.prototype,'handleConfirm',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'scopeRef',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'goToNextStep',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'goToPrevStep',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',Promise)],t.prototype,'handleConfirmClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleCancelClick',null),t=D([fe],t)}(K.Component),Qa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.overlay=K.createRef(),t}return P(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,Tt(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 K.createElement(I,{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},K.createElement(R,{overlay:!0,className:'ae-Editor-popOverForm',onHide:t.closePopOverForm},a?o(this.buildSchema(),{data:te(t.ctx,null==a?void 0:a.value),manager:r},M(M({},r.env),{session:'popover-form',theme:n})):K.createElement('p',null,'Loading...')))},t=D([fe],t)}(K.Component),eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.render=function(){var e=this.props.store.contextMenuPanel,t=e&&e.menus?e.menus:[];return t&&t.length>0?K.createElement('div',{className:'context-menu-setting'},K.createElement('div',{className:'setting-header'},'批量操作'),K.createElement('div',{className:'setting-body'},t.map((function(e){return e.label&&K.createElement('div',{key:e.label,className:'setting-item '.concat(e.disabled?'disabled':''),onClick:e.disabled?null:e.onSelect},K.createElement('div',{className:'icon-box'},K.createElement(r,{icon:e.icon,className:'menu-icon'})),K.createElement('div',{className:'setting-info'},e.label))})))):null},t=D([fe],t)}(K.Component),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.getPopOverContainer=function(){return he(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 K.createElement(O,{position:'left',size:'md',theme:o,show:!!a,onHide:t.closeInsertPanel,className:'ae-InsertPanel-drawer'},a&&a.component?K.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)},D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=D([fe],t)}(K.Component),no=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.getPopOverContainer=function(){return he(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,s=t.showInsertRenderer;return K.createElement(O,{position:'left',size:'md',theme:o,show:s,onHide:t.closeInsertRendererPanel,className:'ae-InsertRendererPanel-drawer',bodyClassName:'ae-drawer-renderers'},a.title&&K.createElement('div',{className:'ae-drawer-title'},a.title),a&&a.component?K.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)},D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=D([fe],t)}(K.Component),ro=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isFixedStatus:!1},n}return P(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 he(this)},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.manager,o=t.theme,i=this.state.isFixedStatus,s=n.leftPanelOpenStatus,c=n.getLeftPanels(),l=n.activeId,d=n.getNodeById(l),u=n.getLeftPanelKey(),p=n.insertId&&n.insertRegion&&xe(c,(function(e){return'insert'===e.key})),f=xe(c,(function(e){return'insertRenderer'===e.key}));return K.createElement(K.Fragment,null,c.length>0&&K.createElement('div',{className:V('editor-left-panel width-draggable',s?'':'hidden-status',i?'fixed-status':'')},K.createElement('div',{className:'editor-panel-btn','editor-tooltip':A(i?'95509c09bdef4bb7842a9b957ab1f971':'426480bb614633c8c3ba8faa0338b72f'),'tooltip-position':'right'},K.createElement(r,{icon:i?'editor-fixed':'editor-no-fixed',className:'panel-btn',onClick:this.handleFixed})),K.createElement(y,{className:'editorPanel-tabs',linksClassName:'editorPanel-tabs-header',contentClassName:'editorPanel-tabs-content',theme:o,activeKey:u,onSelect:this.handleSelect,tabsMode:'sidebar',sidePosition:'left'},c.map((function(t){return'insert'!==t.key&&'insertRenderer'!==t.key?K.createElement(E,{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:l,info:null==d?void 0:d.info,path:null==d?void 0:d.path,node:d,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):t.component?K.createElement(t.component,{node:d,key:t.key,id:l,info:null==d?void 0:d.info,path:null==d?void 0:d.path,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):null}(t)):null}))),K.createElement('div',{className:V('left-panel-arrow',s?'':'hidden-status'),onClick:this.handleHidden})),i&&K.createElement('div',{className:'editor-left-panel-fixed-placeholder'}),K.createElement(to,{store:n,manager:a,node:d,panelItem:p,theme:o}),K.createElement(no,{store:n,manager:a,node:d,panelItem:f,theme:o}))},D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleHidden',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleFixed',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],t.prototype,'handleSelect',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=D([fe,B('design:paramtypes',[Object])],t)}(K.Component),ao=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 P(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)},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 K.createElement('div',{onMouseDown:this.handleResizeMouseDown,className:V('width-draggable-icon',n,t?'leftBtn':'')})},t}(K.Component),oo=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpenStatus:!0,isFixedStatus:!1},n}return P(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 he(this)},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.manager,o=t.theme,i=this.state,s=i.isOpenStatus,c=i.isFixedStatus,l=n.getPanels(),d=n.activeId,u=n.getNodeById(d),p=n.getPanelKey(),f=function(t){return t.render?t.render({id:d,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?K.createElement(t.component,{node:u,key:t.key,id:d,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 l.length>0?K.createElement('div',{className:V('editor-right-panel width-draggable',l.length>1?'mul-tabs-panel':'',s?'':'hidden-status',c?'fixed-status':'')},K.createElement('div',{className:'editor-panel-btn','editor-tooltip':A(c?'95509c09bdef4bb7842a9b957ab1f971':'426480bb614633c8c3ba8faa0338b72f'),'tooltip-position':'left'},K.createElement(r,{icon:c?'editor-fixed':'editor-no-fixed',className:'panel-btn',onClick:this.handleFixed})),K.createElement('div',{className:'editorPanel-inner'},1===l.length?f(l[0]):K.createElement(y,{theme:o,tabsMode:'sidebar',sidePosition:'right',className:'editorPanel-tabs',linksClassName:'editorPanel-tabs-header',contentClassName:'editorPanel-tabs-content',activeKey:p,onSelect:this.handleSelect},l.map((function(e){var t=Ut(e);return K.createElement(E,{key:e.key,eventKey:e.key,title:K.createElement('span',{className:'editor-tab-icon','editor-tooltip':e.title,'tooltip-position':'left'},t&&K.createElement(r,{icon:e.pluginIcon,className:'pluginIcon'}),!t&&K.createElement('i',{className:'fa '.concat(e.icon)})),className:'editorPanel-tabs-pane ae-Editor-'.concat(e.key,'Pane'),mountOnEnter:!0,unmountOnExit:!1},f(e))})))),K.createElement(ao,{isLeftDragIcon:!0}),K.createElement('div',{className:V('right-panel-arrow',s?'':'hidden-status'),onClick:this.handleHidden})):null},D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleFixed',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],t.prototype,'handleSelect',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleHidden',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getPopOverContainer',null),t=D([fe,B('design:paramtypes',[Object])],t)}(K.Component),io=function(e){function t(t){var n,r,a=this;(a=e.call(this,t)||this).mainRef=K.createRef(),a.toDispose=[],a.isInternalChange=!1;var o=t.value,i=t.isSubEditor,s=void 0!==i&&i;t.onChange;var c=t.showCustomRenderersPanel,l=t.superEditorData,d=T(t,['value','isSubEditor','onChange','showCustomRenderersPanel','superEditorData']),u=M({},d);return a.store=Ya.create({isMobile:t.isMobile,theme:t.theme,isSubEditor:s,amisDocHost:t.amisDocHost,ctx:t.ctx,superEditorData:l,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},u),a.store.setSchema(o),void 0!==c&&a.store.setShowCustomRenderersPanel(c),a.manager=new Pn(u,a.store),t.isSubEditor&&window.editorStore||(window.editorStore=a.store),document.addEventListener('keydown',a.handleKeyDown),window.addEventListener('message',a.handleMessage,!1),a.toDispose.push(W((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 P(t,e),t.prototype.componentDidMount=function(){this.props.isSubEditor||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(){document.removeEventListener('keydown',this.handleKeyDown),window.removeEventListener('message',this.handleMessage),this.toDispose.forEach((function(e){return e()})),this.toDispose=[],this.manager.dispose(),Se(this.store)},t.prototype.handleKeyDown=function(e){if(!this.props.isSubEditor){var t=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))return e.preventDefault(),void this.copy();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&&((n=t.getNodeById(this.store.activeId))&&t.activeRegion?i.warning(A('d6f73c6f3b92be5a64f7ea0163501284')):t.isRootSchema(this.store.activeId)?i.warning(A('4fda4f585214d469c04466e2fc98b796')):n&&n.moveable?(this.copy(),this.manager.del(this.store.activeId)):i.warning(A('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)(n=t.getNodeById(this.store.activeId))&&n.canMoveUp?this.manager.moveUp():i.warning(A('416445a316595bdeb44b661c7de875a8'))}else if('BODY'===e.target.tagName&&'ArrowDown'===e.key&&(e.metaKey||e.ctrlKey)){if(e.preventDefault(),this.store.activeId)(n=t.getNodeById(this.store.activeId))&&n.canMoveDown?this.manager.moveDown():i.warning(A('6ac88d87b2fd118ba7beab8c17880470'))}else if('BODY'===e.target.tagName&&('Backspace'===e.key||'Delete'===e.key)){var n;if(e.preventDefault(),this.store.activeId)(n=t.getNodeById(this.store.activeId))&&t.activeRegion?i.warning(A('fdb3cba60407b2f1aea0230cca644573')):t.isRootSchema(this.store.activeId)?i.warning(A('8a4b4e2e3b0382007e0c69ed1fe6fe71')):n&&n.moveable?this.manager.del(this.store.activeId):i.warning(A('22f031f3de2e55c430a818d8c588f7a1'));return}}},t.prototype.handleMessage=function(e){e.data&&'amis-widget-register-event'===e.data.type&&e.data.editorPluginName&&(console.info(A('55c56d01a7747ffe0346d42145b62d97'),e.data.editorPluginName),this.manager.dynamicAddPlugin(e.data.editorPluginName))},t.prototype.handleContextMenu=function(e){var t,n,r,a='',o='';if(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){var i=e.target.closest('[data-node-id]');if(!(a=null==i?void 0:i.getAttribute('data-node-id')))return;o=i.getAttribute('data-node-region')}e.preventDefault(),e.stopPropagation(),this.manager.openContextMenu(a,o,{x:window.scrollX+e.clientX,y:window.scrollY+e.clientY})},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(yt(e)):this.manager.addElem(yt(e))}},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,s=e.iframeUrl,c=e.previewProps,l=e.autoFocus;e.isSubEditor;var d=e.amisEnv;return K.createElement('div',{ref:this.mainRef,className:V('ae-Editor',{preview:t},r)},K.createElement('div',{className:'ae-Editor-inner',onContextMenu:this.handleContextMenu},!t&&K.createElement(ro,{store:this.store,manager:this.manager,theme:a}),K.createElement('div',{className:'ae-Main'},!t&&K.createElement(Xa,{store:this.store,manager:this.manager}),K.createElement(Ln,M({},c,{iframeUrl:s,editable:!t,isMobile:n,store:this.store,manager:this.manager,theme:a,appLocale:o,data:i,amisEnv:d,autoFocus:l,toolbarContainer:this.getToolbarContainer}))),!t&&K.createElement(oo,{store:this.store,manager:this.manager,theme:a,appLocale:o,amisEnv:d}),!t&&K.createElement(eo,{store:this.store})),K.createElement(Ja,{store:this.store,manager:this.manager,theme:a,amisEnv:d}),K.createElement(Ga,{store:this.store,manager:this.manager,theme:a}),K.createElement(Qa,{store:this.store,manager:this.manager,theme:a}))},t.defaultProps={autoFocus:!0},D([Ft,B('design:type',Function),B('design:paramtypes',[KeyboardEvent]),B('design:returntype',void 0)],t.prototype,'handleKeyDown',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleMessage',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleContextMenu',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'getToolbarContainer',null),t}(_),so=[{label:A('4e7f76261f8c4c6d78998f85fc1f4c6e'),children:[{label:A('16a20243f9b741c08216dc9548de2968'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'m-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'m-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'m-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-lg'}]},{label:A('461d364c67ec6a45e011ed13f2f7154f'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'m-t-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'m-t-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-t'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'m-t-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-t-lg'}]},{label:A('31e3752986d64c8b36897c8641c8628d'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'m-r-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'m-r-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-r'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'m-r-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-r-lg'}]},{label:A('eabe91d9426b6446f707cea3e7ab2418'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'m-b-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'m-b-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-b'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'m-b-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-b-lg'}]},{label:A('2e46d251ee6188bb1b3ff20656276572'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'m-l-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'m-l-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'m-l'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'m-l-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'m-l-lg'}]},{label:A('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),children:[{label:A('a8b0c20416853bda54120bf19477ad11'),value:'m-none'},'|',{label:A('af767b7e4ae069d54f9ea839858d4c6d'),value:'m-t-none'},{label:A('4d9c32c23df5d234e629c922c58d8e12'),value:'m-r-none'},{label:A('3850a186c3235bc646d4c2f79cebac36'),value:'m-b-none'},{label:A('d2aff1417831aa621c16cd5b95306b4b'),value:'m-l-none'}]}]},{label:A('841d77223f0ec8cd0b530ed8e0775b20'),children:[{label:A('16a20243f9b741c08216dc9548de2968'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'p-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'p-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'p-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-lg'}]},{label:A('461d364c67ec6a45e011ed13f2f7154f'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'p-t-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'p-t-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-t'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'p-t-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-t-lg'}]},{label:A('31e3752986d64c8b36897c8641c8628d'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'p-r-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'p-r-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-r'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'p-r-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-r-lg'}]},{label:A('eabe91d9426b6446f707cea3e7ab2418'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'p-b-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'p-b-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-b'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'p-b-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-b-lg'}]},{label:A('2e46d251ee6188bb1b3ff20656276572'),children:[{label:A('23ecf42cada8bf2715792d718544d107'),value:'p-l-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'p-l-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'p-l'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'p-l-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'p-l-lg'}]},{label:A('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),children:[{label:A('a8b0c20416853bda54120bf19477ad11'),value:'p-none'},'|',{label:A('af767b7e4ae069d54f9ea839858d4c6d'),value:'p-t-none'},{label:A('4d9c32c23df5d234e629c922c58d8e12'),value:'p-r-none'},{label:A('3850a186c3235bc646d4c2f79cebac36'),value:'p-b-none'},{label:A('d2aff1417831aa621c16cd5b95306b4b'),value:'p-l-none'}]}]},{label:A('961534b4ea37e4e88aada736b299d063'),className:'w2x',children:[{label:A('d4d2a66820d30e07b44c850eb3f116c0'),children:[{label:A('a8b0c20416853bda54120bf19477ad11'),value:'b-a'},'|',{label:A('af767b7e4ae069d54f9ea839858d4c6d'),value:'b-t'},{label:A('4d9c32c23df5d234e629c922c58d8e12'),value:'b-r'},{label:A('3850a186c3235bc646d4c2f79cebac36'),value:'b-b'},{label:A('d2aff1417831aa621c16cd5b95306b4b'),value:'b-l'},'|',{label:A('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),value:'no-border'}]},{label:A('58f966670529f4753fb3c5a0647606be'),children:[{label:'2x',value:'b-2x'},{label:'3x',value:'b-3x'},{label:'4x',value:'b-4x'},{label:'5x',value:'b-5x'}]},{label:A('6b36c6f7ec834692ec6c8e3816349fdd'),children:[{label:A('fbae87bcc352f6933541fb77a07418ed'),value:'b-primary',className:'bg-primary'},{label:A('d8c7e04c8e2be23dd3b81a31db6e04f1'),value:'b-info',className:'bg-info'},{label:A('900c70fa5f7dbc014e6f762d5e0e885c'),value:'b-warning',className:'bg-warning'},{label:A('540f84ddc0883866b229f71c2844199a'),value:'b-danger',className:'bg-danger'},{label:A('330363dfc524cff2488f2ebde0500896'),value:'b-success',className:'bg-success'},{label:A('2fc96b2704b05d6a9f299c442573ee77'),value:'b-white',className:'bg-white'},{label:A('adb7e5312abdb9a44297e48d63815fa3'),value:'b-dark',className:'bg-dark'},{label:A('48d0a09bdd5fe7e89f0a445b0ffdf14f'),value:'b-light',className:'bg-light'}]}]},{label:A('0d98c74797e49d00bcc4c17c9d557a2b'),className:'w2x',children:[{label:A('0103eb2d3dca70270d1a74e9ec987ac9'),children:[{label:A('a8b0c20416853bda54120bf19477ad11'),value:'r'},'|',{label:A('af767b7e4ae069d54f9ea839858d4c6d'),value:'r-t'},{label:A('4d9c32c23df5d234e629c922c58d8e12'),value:'r-r'},{label:A('3850a186c3235bc646d4c2f79cebac36'),value:'r-b'},{label:A('d2aff1417831aa621c16cd5b95306b4b'),value:'r-l'},'|',{label:'2x',value:'r-2x'},{label:'3x',value:'r-3x'}]},{label:A('8456bc40d48da5af833f1c63385e9879'),children:[{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'font-normal'},{label:A('b3b2682579133673d3fe08c156d565dc'),value:'font-thin'},{label:A('56dce5d1cbb97439d291c458e50107e0'),value:'font-bold'},'|',{label:A('23ecf42cada8bf2715792d718544d107'),value:'text-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'text-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'text-base'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'text-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'text-lg'}]},{label:A('6b36c6f7ec834692ec6c8e3816349fdd'),children:[{label:A('fbae87bcc352f6933541fb77a07418ed'),value:'text-primary',className:'text-primary'},{label:A('d8c7e04c8e2be23dd3b81a31db6e04f1'),value:'text-info',className:'text-info'},{label:A('900c70fa5f7dbc014e6f762d5e0e885c'),value:'text-warning',className:'text-warning'},{label:A('540f84ddc0883866b229f71c2844199a'),value:'text-danger',className:'text-danger'},{label:A('330363dfc524cff2488f2ebde0500896'),value:'text-success',className:'text-success'},{label:A('2fc96b2704b05d6a9f299c442573ee77'),value:'text-white',className:'text-white bg-dark'},{label:A('adb7e5312abdb9a44297e48d63815fa3'),value:'text-dark',className:'text-dark'},{label:A('49a79f4047b81186c069ed1c9c151c66'),value:'text-muted',className:'text-muted'}]},{label:A('8e1b944f4389bdaab6f11d5bc83190c8'),children:[{label:A('fbae87bcc352f6933541fb77a07418ed'),value:'bg-primary',className:'bg-primary'},{label:A('d8c7e04c8e2be23dd3b81a31db6e04f1'),value:'bg-info',className:'bg-info'},{label:A('900c70fa5f7dbc014e6f762d5e0e885c'),value:'bg-warning',className:'bg-warning'},{label:A('540f84ddc0883866b229f71c2844199a'),value:'bg-danger',className:'bg-danger'},{label:A('330363dfc524cff2488f2ebde0500896'),value:'bg-success',className:'bg-success'},{label:A('2fc96b2704b05d6a9f299c442573ee77'),value:'bg-white',className:'bg-white'},{label:A('adb7e5312abdb9a44297e48d63815fa3'),value:'bg-dark',className:'bg-dark'},{label:A('48d0a09bdd5fe7e89f0a445b0ffdf14f'),value:'bg-light',className:'bg-light'},'|',{label:A('3dc4038d0f0a2d2b3c2b2e29a5ec6dde'),value:'no-bg'}]},{label:A('c28479019e24e0e4745f4948e9e97ee7'),children:[{label:A('f72ce9ad683cc82e0eab557ffc9c67a0'),value:'w-xxs'},{label:A('23ecf42cada8bf2715792d718544d107'),value:'w-xs'},{label:A('391b8fa9c747a1799353ab856e666ad5'),value:'w-sm'},{label:A('fd6e80f1e0199d6ecc3ee81ae04aa9ef'),value:'w'},{label:A('aed1dfbc31703955e64806b799b67645'),value:'w-md'},{label:A('ab18e30c0dc4093ceeda8961fac3d1f4'),value:'w-lg'},{label:A('b95c462d7697958c25861193fc89ae07'),value:'w-xl'},{label:A('3386da5f56fac758ed0f18e024ecb943'),value:'w-xxl'},{label:A('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}P(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 he(this)},n.prototype.getTarget=function(){return he(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 K.createElement('div',{key:t,className:r('ae-ClassNameControl-group',e.className)},K.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 K.createElement('div',{className:r('ButtonGroup'),key:t},e.map((function(e,t){return K.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(' '):[],K.createElement('div',null,so.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,s=t.name,c=t.popOverContainer;return K.createElement('div',{className:i},K.createElement('div',{className:n('TextControl',(e={},e['TextControl--withAddOn']=!0,e['is-focused']=this.state.isFocused,e['is-disabled']=a,e))},K.createElement('div',{className:n('TextControl-input')},K.createElement('input',{name:s,placeholder:'请输入 css 类名',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)})),K.createElement('div',{className:n('TextControl-button')},K.createElement(v,{onClick:this.toggle},K.createElement('i',{className:'fa fa-cog'})))),K.createElement(I,{placement:'right-bottom-right-top right-top-right-bottom right-bottom-right-top',target:this.getTarget,container:c||this.getParent,rootClose:!1,show:this.state.isOpened,watchTargetSizeChange:!1},K.createElement(R,{className:'ae-ClassNamePicker-popover',onHide:this.close,overlay:!0},this.renderPopover())))},D([e.autobind,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],n.prototype,'open',null),D([e.autobind,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],n.prototype,'close',null),D([e.autobind,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],n.prototype,'toggle',null),D([e.autobind,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],n.prototype,'handleFocus',null),D([e.autobind,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],n.prototype,'handleBlur',null),D([e.autobind,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],n.prototype,'handleChange',null),D([e.autobind,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],n.prototype,'getParent',null),D([e.autobind,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],n.prototype,'getTarget',null),n=D([N({type:'ae-classname'})],n)}(K.Component);var co=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return P(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:K.createElement('span',{className:'editor-tab-icon','editor-tooltip':'组件'},K.createElement(r,{icon:'editor-renderer'})),component:qa,position:'left',order:-9999})},t.scene=['layout'],t}(ln);function lo(e,t){return function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return P(r,n),r.prototype.render=function(){return K.createElement(K.Fragment,null,K.createElement(e,M({},this.props)),K.createElement(ao,{isLeftDragIcon:t}))},r}(K.Component)}Fn(co),Fn(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return P(t,e),t.prototype.buildEditorToolbar=function(e,t){var n,r,a,o,i=this,s=e.id,c=e.schema,l=e.info,d=this.manager.store,u=d.getNodeById(s),p=d.getSchemaParentById(s),f=this.manager.draggableContainer(s),h=(null==c?void 0:c.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({iconSvg:'drag-btn',icon:'fa fa-arrows',tooltip:A('7f2f0461a58c43667d7245ce92bb2e77'),placement:'bottom',draggable:!0,order:-1e3,onDragStart:this.manager.startDrag.bind(this.manager,s)});var g=null==p?void 0:p.indexOf(c);if(!(null==v?void 0:v.memberImmutable(m.region))&&d.panels.some((function(e){return'renderers'===e.key}))){var b=null===(n=p[g+1])||void 0===n?void 0:n.$$id;t.push({iconSvg:'left-arrow-to-left',tooltip:A('78c1c38b91c672da1113fa2564c14ea6'),placement:'bottom',onClick:function(){return i.manager.showInsertPanel(m.region,m.id,m.preferTag,'insert',void 0,s)}},{iconSvg:'arrow-to-right',tooltip:A('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({icon:'fa fa-pencil',tooltip:A('95b351c86267f3aedf89520959bce689'),placement:'bottom',onClick:function(e){return i.manager.openNodePopOverForm(u.id)}}),(u.removable||void 0===u.removable)&&t.push({iconSvg:'delete-btn',icon:'fa',tooltip:A('2f4aaddde33c9b93c36fd2503f3d122b'),placement:'bottom',order:999,onClick:this.manager.del.bind(this.manager,s)}),t.push({iconSvg:'more-btn',icon:'fa fa-cog',tooltip:A('0ec9eaf9c3525eb110db58aae5912210'),placement:'bottom',order:1e3,onClick:function(e){if(!e.defaultPrevented){var t=e.target.parentElement.getBoundingClientRect();i.manager.openContextMenu(s,'',{x:window.scrollX+t.left+t.width-155,y:window.scrollY+t.top+t.height+8})}}}),(null!==(a=null===(r=l.scaffoldForm)||void 0===r?void 0:r.canRebuild)&&void 0!==a?a:null===(o=l.plugin.scaffoldForm)||void 0===o?void 0:o.canRebuild)&&t.push({iconSvg:'harmmer',tooltip:'快速构建「'.concat(l.plugin.name,'」'),placement:'bottom',onClick:function(){return i.manager.reScaffoldV2(s)}})},t.prototype.buildEditorContextMenu=function(e,t){var n,r,a,o,i=this,s=e.id,c=e.schema,l=e.region,d=e.info,u=e.selections,p=this.manager,f=p.store,h=f.getSchemaParentById(s),m=f.getNodeById(s),v=f.getNodePathById(s),g=v.pop();if(m.host,m.parent,u.length)t.push({label:A('417db09508befe7dbe9f84a517a6edec'),icon:'copy-icon',disabled:u.some((function(e){return!e.node.duplicatable})),onSelect:function(){return p.duplicate(u.map((function(e){return e.id})))}}),t.push({label:A('99b81127ef28368151621cdfccce69f8'),icon:'cancel-icon',onSelect:function(){return f.setActiveId(s)}}),t.push({label:A('2f4aaddde33c9b93c36fd2503f3d122b'),icon:'delete-icon',disabled:u.some((function(e){return!e.node.removable})),className:'text-danger',onSelect:function(){return p.del(u.map((function(e){return e.id})))}});else if(l){(E=f.panels.find((function(e){return'renderers'===e.key})))&&(t.push({label:A('205f45ee17394bd5668412780eaa55e2'),onHighlight:function(e){return e&&f.setHoverId(s,l)},onSelect:function(){return f.showInsertRendererPanel()}}),t.push({label:A('288f0c404c4e546aa3683ff5054e85e2'),onSelect:function(){return p.emptyRegion(s,l)}}),t.push({label:A('eafbece1016a6af76cce466e55ad9f00'),onSelect:function(){return p.paste(s,l)}}))}else{if(t.push({label:'选中'.concat(g.label),disabled:f.activeId===g.id,data:s,onSelect:function(e){return f.setActiveId(e)},onHighlight:function(e,t){return e&&f.setHoverId(t)}}),v.length){var b=v.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 f.setActiveId(e)},onHighlight:function(e,t){return e&&f.setHoverId(t)}}}));b.length&&t.push({label:A('7ad78e0991f34ff3a345c59a2fc31572'),children:b})}t.push({label:A('aafda9e8f6b7b613680677c513edb7a6'),disabled:!f.activeId||f.activeId!==s,onSelect:function(){return f.setActiveId('')}}),t.push('|'),t.push({label:A('417db09508befe7dbe9f84a517a6edec'),disabled:!m.duplicatable,onSelect:function(){return p.duplicate(s)}}),t.push({label:A('b58d101f52531c845f15db63d7212115'),onSelect:function(){return p.copy(s)}}),t.push({label:A('74e2bc6615b7dbbb11fd5e1e212263ae'),disabled:!m.removable,onSelect:function(){return p.cut(s)}}),t.push({label:A('e2f401af580d1354ae00ec4ca19e2e24'),disabled:!Array.isArray(h)||!m.parent||!1===(null===(n=m.info)||void 0===n?void 0:n.typeMutable)||!m.replaceable,onSelect:function(){return p.paste(s)}}),t.push({label:A('2f4aaddde33c9b93c36fd2503f3d122b'),disabled:!m.removable,className:'text-danger',onSelect:function(){return p.del(s)}}),t.push('|');var y=Array.isArray(h)?h.indexOf(c):-1;t.push({label:A('21462ae22216eec41dc688cc4a8ae64b'),disabled:!(Array.isArray(h)&&y>0&&m.moveable),onSelect:function(){return p.moveUp()}}),t.push({label:A('ed2bc13d8bbd99e16e017dd5f5393393'),disabled:!(Array.isArray(h)&&y<h.length-1&&m.moveable),onSelect:function(){return p.moveDown()}}),t.push('|'),t.push({label:A('9e54f3e4ee3330299c5fdc910c2e8d3c'),disabled:!f.canUndo,onSelect:function(){return f.undo()}}),t.push({label:A('ae8e86e426c2ba00da274b66dc372a8b'),disabled:!f.canRedo,onSelect:function(){return f.redo()}}),t.push('|');var E=f.panels.find((function(e){return'renderers'===e.key}));g.childRegions.length&&E&&(g.childRegions.length>1?t.push({label:A('205f45ee17394bd5668412780eaa55e2'),children:g.childRegions.map((function(e){return{label:''.concat(e.label),data:e.region,onHighlight:function(e,t){return e?f.setHoverId(s,t):f.setHoverId('')},onSelect:function(){return f.showInsertRendererPanel()}}}))}):t.push({label:A('205f45ee17394bd5668412780eaa55e2'),data:g.childRegions[0].region,onHighlight:function(e,t){return e?f.setHoverId(s,t):f.setHoverId('')},onSelect:function(){return f.showInsertRendererPanel()}})),t.push({label:A('107542a61cdccbb2981ad0c8bafc3440'),disabled:!(m.host&&!1!==(null===(r=m.info)||void 0===r?void 0:r.typeMutable)&&m.parent.isRegion&&f.panels.some((function(e){return'renderers'===e.key}))&&m.replaceable),onSelect:function(){return p.showReplacePanel(s)}})}u.length||!(null===(a=d.plugin.scaffoldForm)||void 0===a?void 0:a.canRebuild)&&!(null===(o=d.scaffoldForm)||void 0===o?void 0:o.canRebuild)||t.push({label:'快速构建「'.concat(d.plugin.name,'」'),disabled:c.$$commonSchema,onSelect:function(){return i.manager.reScaffold(s,d.scaffoldForm||d.plugin.scaffoldForm,c)}})},t.prototype.buildEditorPanel=function(e,t){if(e.selections.length){var n=this.manager.store,r=[],a=M(M({},e),{data:r,region:''});(r=this.manager.buildContextMenus(a)).length&&t.push({key:'contextmenu',icon:'fa fa-cog',title:A('2b6bc0f293f5ca01b006206c2535ccbc'),menus:r,render:this.manager.makeSchemaFormRender({body:[{type:'button-group',buttons:r.filter((function(e){return'|'!==e})).map((function(e){return M(M({},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}(ln));var uo=/^\/schemas\/(.*).json$/;function po(e,t,n,r){return H(this,void 0,void 0,(function(){var a,o,i,s,c,l,d;return L(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,d={uri:e},[4,import('amis/schema.json').then((function(e){return e.default}))]);case 1:i.apply(o,[(d.schema=u.sent(),d)]),u.label=2;case 2:u.label=3;case 3:return uo.test(t)&&(s=RegExp.$1,c=''.concat(e.replace(/^(\w+\:\/\/[^\/]+)\/.*$/,'$1'),'/schemas/').concat(s,'.json'),l=Oe(a,(function(e){var t;return(null===(t=e.fileMatch)||void 0===t?void 0:t[0])===n})),~l&&a.splice(l,1),a.push({uri:c,fileMatch:[n],schema:{$schema:'http://json-schema.org/draft-07/schema#',$ref:''.concat(e,'#/definitions/').concat(s)}})),[2,a]}}))}))}var fo=Fe((function(e){i.warning('代码有误,错误的地方是\n '.concat(e.toString().split('\n')[1]))}),3e3),ho=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(Ke(),'.json'),t.emitChange=Fe((function(){var e=t.props,n=e.onChange,r=e.value,a=t.str2obj(t.state.contents);if(a&&Y(a)){t.setState({wrongSchema:''}),delete a.$schema,a=St(a,t.props.value);var o=Tt(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,M(M({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 H(t,void 0,void 0,(function(){var e,t,n;return L(this,(function(r){switch(r.label){case 0:return e=this.state,t=e.wrongSchema,n=e.value,t?[4,k([{className:'w-full',type:'tpl',label:!1,tpl:A('7e4b38ba0ab9cbfcabd9dd859e36b601')},{type:'switch',label:!1,option:A('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},A('43d586cd6cf1a512c0bcb85ed9efde51'))]:[2];case 1:return r.sent()?this.setState({wrongSchema:'',contents:Ae(n)}):this.editor.focus(),[2]}}))}))},t}return P(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;e.$schema!==t.$schema&&this.monaco&&this.changeJsonOptions(t),Ve(t.value,e.value)&&Ve(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=St(e),!(e=M({type:null==e?void 0:e.type},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,Ae(e)},t.prototype.str2obj=function(e){try{if(''===e)return{};var t=Me(e);return fo&&fo.cancel(),t}catch(e){return fo(e),null}},t.prototype.changeJsonOptions=function(e){var t;return void 0===e&&(e=this.props),H(this,void 0,void 0,(function(){var n,r,a;return L(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,po(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 K.createElement(He,{className:V('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}(K.Component),mo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(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 K.createElement('div',{className:'ae-CodePanel'},K.createElement('div',{className:'panel-header'},'源码'),K.createElement('div',{className:'ae-CodePanel-content'},K.createElement(ho,{value:r.valueWithoutHiddenProps,onChange:t,$schema:r.jsonSchemaUri,$schemaUrl:n.config.$schemaUrl,onPaste:this.handleCodePaste})))},D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'handleCodePaste',null),t}(K.Component);Fn(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return P(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:K.createElement('span',{className:'editor-tab-icon','editor-tooltip':'代码'},K.createElement(r,{icon:'editor-code'})),position:'left',component:lo(mo),order:5e3})},t.scene=['layout'],t}(ln)),Fn(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=e.onChange,r=e.readOnly,a=z(K.useState(0),2),o=a[0],i=a[1],s=t||{},c=[s];Object.getPrototypeOf(s)!==Object.prototype;){var l=Object.getPrototypeOf(s);if('[object Object]'!==Object.prototype.toString.call(l))break;c.push(l),s=l}function d(e){var t=Object.create(c[1]||Object.prototype);Object.keys(e.updated_src).forEach((function(n){return t[n]=e.updated_src[n]})),n(t)}return K.createElement('div',{className:'aeDataChain'},K.createElement('div',{className:'aeDataChain-aside'},K.createElement('ul',null,c.map((function(e,t){return K.createElement('li',{className:t===o?'is-active':'',key:t,onClick:function(){return i(t)}},0===t?A('48ac479789304b37afa2f1b06642f4da'):1===t?A('9bc16c658ab8a8c4eddc5e24d85bef20'):'上'.concat(t,'层'))})))),K.createElement('div',{className:'aeDataChain-main'},K.createElement(Le,{name:!1,src:c[o],enableClipboard:!1,iconStyle:'square',onAdd:0===o&&!r&&d,onEdit:0===o&&!r&&d,onDelete:0===o&&!r&&d,collapsed:2})))}},t}return P(t,e),t.prototype.buildEditorToolbar=function(e,t){var n=this;e.id,e.schema;var r=e.node.getComponent();if(r&&r.props&&r.props.data&&r.props.store){var a=r.props.store;t.push({icon:'fa fa-bug',order:-1e3,placement:'bottom',tooltip:A('aa920263020f14211a44ea172efc7253'),onClick:function(){return n.openDebugForm(r.props.data,a.updateData&&a.data===r.props.data?function(e){return a.updateData(e)}:void 0)}})}},t.prototype.openDebugForm=function(e,t){return H(this,void 0,void 0,(function(){var n;return L(this,(function(r){switch(r.label){case 0:return[4,this.manager.scaffold({title:A('aa920263020f14211a44ea172efc7253'),body:[M(M({},this.dataViewer),{readOnly:!t})]},{ctx:e})];case 1:return n=r.sent(),null==t||t(n.ctx),[2]}}))}))},t.scene=['layout'],t.id='data-debug',t}(ln)),Fn(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 P(t,e),t.scene=['layout'],t}(ln));var vo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={curSearchElemKey:''},t}return P(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.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.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 K.createElement('span',null,e.substring(0,n),K.createElement('span',{className:'has-keywords'},t),e.substring(r))}return e},t.prototype.renderItem=function(e,t){var n,a=this,o=this.props.store,i=this.state.curSearchElemKey,s=!o.dragging&&e.singleRegion?e.uniqueChildren[0].uniqueChildren:e.uniqueChildren,c=s.length;return!o.dragging||e.isRegion||e.children.length?K.createElement('li',{className:V('ae-Outline-node',{'is-folded':e.folded,'is-active':o.activeId===e.id&&!e.region||e.isRegion&&o.dropId===e.id&&o.dropRegion===e.region||e.isRegion&&o.activeId===e.id&&o.activeRegion===e.region,'is-region':e.isRegion,'is-hover':!e.isRegion&&(o.isHoved(e.id)||o.isContextOn(e.id)),'has-children':c,'is-dragging':o.dragId===e.id&&'schema'===o.dragType}),key:t},K.createElement('a',{onClick:this.handleClick,onMouseEnter:this.handleEnter,'data-node-id':e.id,'data-node-region':e.region,'data-node-common-config':null===(n=e.schema)||void 0===n?void 0:n.$$commonSchema,draggable:e.draggable,onDragStart:this.handleDragStart},c?K.createElement('span',{onClick:e.toggleFold,className:V('ae-Outline-expander ae-Outline-node-icon',{'is-folded':e.folded}),'data-node-id':e.id,'data-node-region':e.region},K.createElement(r,{icon:'down-arrow'})):null,K.createElement('span',{className:'ae-Outline-node-text'},e.isCommonConfig?''.concat(e.label,'-[公共配置]'):this.renderTitleByKeyword(e.label,i))),c?K.createElement('ul',{className:'ae-Outline-sublist'},s.map((function(e,t){return a.renderItem(e,t)}))):null):null},t.prototype.render=function(){var e=this,t=this.state.curSearchElemKey,n=this.props.store,a=n.outline;return K.createElement('div',{className:'ae-Outline-panel'},K.createElement('div',{className:'panel-header'},'大纲'),K.createElement(h,{className:'editor-InputSearch',value:t,onChange:this.handleSearchElemKeyChange,placeholder:A('962d43ff8d39c381d8e2c73838412111'),clearable:!1},t?K.createElement('a',{onClick:this.clearSearchElemKey},K.createElement(r,{icon:'close',className:'icon'})):K.createElement(r,{icon:'editor-search',className:'icon'})),K.createElement('hr',{className:'margin-top'}),K.createElement('div',{className:V('ae-Outline','hoverShowScrollBar',{'ae-Outline--draging':n.dragging}),onDragOver:this.handleDragOver,onDrop:this.handleDrop},n.dragging?K.createElement('div',{className:'ae-Outline-tip'},'将目标拖入导航中的节点可以切换容器'):null,a.length?K.createElement('ul',{className:'ae-Outline-list'},a.map((function(t,n){return e.renderItem(t,n)}))):K.createElement('div',null,'加载中,请稍等...')))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleClick',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleEnter',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDragStart',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDragOver',null),D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'handleDrop',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String]),B('design:returntype',void 0)],t.prototype,'handleSearchElemKeyChange',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'clearSearchElemKey',null),D([Ft,B('design:type',Function),B('design:paramtypes',[String,String]),B('design:returntype',void 0)],t.prototype,'renderTitleByKeyword',null),t=D([fe],t)}(K.Component);Fn(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return P(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:K.createElement('span',{className:'editor-tab-icon','editor-tooltip':'大纲'},K.createElement(r,{icon:'editor-outline'})),component:lo(vo),position:'left',order:4e3})},t.scene=['layout'],t}(ln)),Fn(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=9999,t}return P(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}(ln));var go,bo,yo={};function Eo(e,t,n){var r=yo[e]||{};return'function'==typeof r?r(t,n):t?M(M({},r),t):r}function wo(e,t){yo[e]=t}function Co(e){try{if('undefined'===e)return;return JSON.parse(e)}catch(t){return e}}function So(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 xo(e,t){return void 0===t&&(t=!0),t?function(t){return void 0===t?e:t}:function(t){return t||e}}function Io(e,t,n){return{type:'tooltip-wrapper',tooltip:t,tooltipTheme:'dark',placement:'top',tooltipStyle:M({fontSize:'12px'},n||{}),className:'ae-formItemControl-label-tip',body:e}}function Ro(e){var t='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';if('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)return $e().format('X');if('number'===e.type||'input-number'===e.type){var n=e.precision||0;return n?(1e4*Math.random()).toFixed(n):1e4*Math.random()}return'image'===e.type||'static-image'===e.type?t:'images'===e.type||'static-images'===e.type?[t]:A('6cb01692eea2fa7066d20fe2b6ccaea3')}!function(e){e.create='create',e.view='view',e.update='update',e.table='table',e.filter='filter'}(go||(go={})),function(e){e.entity='entity',e.list='list',e.piece='piece'}(bo||(bo={}));var Oo={List:{value:'list',label:A('3712972d84adf48acbd6ad24b4d75ad0')},Insert:{value:'insert',label:A('66ab5e9f24c8f46012a25c89919fb191')},View:{value:'view',label:A('f26225bde6a250894a04db4c53ea03d0')},Edit:{value:'edit',label:A('95b351c86267f3aedf89520959bce689')},Delete:{value:'delete',label:A('2f4aaddde33c9b93c36fd2503f3d122b')},BulkEdit:{value:'bulkEdit',label:A('e73cefac9d030927da1618c7b15c98c9')},BulkDelete:{value:'bulkDelete',label:A('7fb62b30119c3797a843a48368463314')},Import:{value:'import',label:A('8d9a071ee2ef45e045968e117a205c07')},Export:{value:'export',label:A('55405ea6ff6fd823ffab7e6b10ddfa95')},SimpleQuery:{value:'simpleQuery',label:A('c26996a6506adf397f0668d376d0b40b')},FuzzyQuery:{value:'fuzzyQuery',label:A('6ff4bf3d567e977aa4c90c27dff1e6db')},AdvancedQuery:{value:'advancedQuery',label:A('9c4666fd08c2738eb9611a3721cb5f0f')}},No=function(){},ko={},Fo=function(e){ko[e.type]=e},Ao=function(){function e(e,t){var n=this;this.builders={},Object.values(ko).filter((function(n){var r,a;return null===(a=null===(r=n.accessable)||void 0===r?void 0:r.call(n,e,t))||void 0===a||a})).forEach((function(e){n.builders[e.type]=new e}))}return Object.defineProperty(e.prototype,'builderNum',{get:function(){return Object.keys(this.builders).length},enumerable:!1,configurable:!0}),e.prototype.resolveBuilderBySetting=function(e){return this.builders[e.dsType]||Object.values(this.builders)[0]},e.prototype.resolveBuilderBySchema=function(e,t){var n=Object.values(this.builders);return n.find((function(n){return n.match(e[t])}))||n[0]},e.prototype.getDefaultBuilderName=function(){return Object.entries(this.builders).map((function(e){var t=z(e,2);return{value:t[0],order:t[1].order}})).sort((function(e,t){var n,r;return(null!==(n=e.order)&&void 0!==n?n:0)-(null!==(r=t.order)&&void 0!==r?r:0)}))[0].value},e.prototype.getDSSwitch=function(e){void 0===e&&(e={});var t=this.builderNum>1,n=Object.entries(this.builders).map((function(e){var t=z(e,2),n=t[0],r=t[1];return{label:r.name,value:n,order:r.order}}));return n.sort((function(e,t){var n,r;return(null!==(n=e.order)&&void 0!==n?n:0)-(null!==(r=t.order)&&void 0!==r?r:0)})),M({type:'radios',label:A('a094e5b7699ea4b61094cc4120170423'),name:'dsType',visible:t,selectFirst:!0,options:n},e)},e.prototype.collectFromBuilders=function(e){return Object.entries(this.builders).map((function(t){var n=z(t,2),r=n[0],a=n[1];return e(a,r)}))},e}();function Mo(e,t){return function(n){Fn(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 P(r,n),r}(n))}}Fo(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name=A('54ea89b497ec3bb319c68844dfa3687f'),t.order=0,t.match=function(e,t){return!!('string'==typeof e&&/^(get|post|put|delete|option):/.test(e)||'object'==typeof e&&e.url)},t.features=['List','Insert','View','Edit','Delete','BulkEdit','BulkDelete','Import','Export','SimpleQuery','FuzzyQuery'],t}return P(t,e),t.prototype.makeSourceSettingForm=function(e){var t=e.name,n=e.label,r=e.feat,a=e.inCrud,o=e.inScaffold;if(['Import','Export','SimpleQuery','FuzzyQuery'].includes(r))return[];n=null!=n?n:a&&'List'!==r?Oo[r].label+A('54ea89b497ec3bb319c68844dfa3687f'):A('54ea89b497ec3bb319c68844dfa3687f'),t=null!=t?t:o?Oo[r].value+'Api':'api';switch(r){case'Insert':n=Io(n,'用来保存数据, 表单提交后将数据传入此接口。 <br/>\n 接口响应体要求(如果data中有数据,该数据将被合并到表单上下文中):<br/>\n '.concat(JSON.stringify({status:0,msg:'',data:{}},null,'<br/>')));break;case'List':n=Io(n,'接口响应体要求:<br/>\n '.concat(JSON.stringify({status:0,msg:'',items:{},page:0,total:0},null,'<br/>')))}return[Eo('apiControl',{label:n,name:t,sampleBuilder:null,apiDesc:null})].concat('Edit'!==r||a?null:Eo('apiControl',{label:Io(A('b4bc91701b86fe8543d649e97daea602'),'接口响应体要求:<br/>\n '.concat(JSON.stringify({status:0,msg:'',data:{}},null,'<br/>'))),name:'initApi'})).concat('List'===r&&a&&o?this.makeFieldsSettingForm({feat:r,setting:!0}):null).filter(Boolean)},t.prototype.getContextFileds=function(e){return H(this,void 0,void 0,(function(){return L(this,(function(t){return[2,e.schema.__fields]}))}))},t.prototype.getAvailableContextFileds=function(e,t){return H(this,void 0,void 0,(function(){return L(this,(function(e){return[2]}))}))},t.prototype.onFieldsInit=function(e,t){this.features.forEach((function(n){var r=''.concat(Oo[n].value,'Fields'),a=t.getValueByName(r),o=De(e||[]).map((function(e){var t=null==a?void 0:a.find((function(t){return t.name===e.name}));return M(M({},e),{checked:!t||t.checked})}));t.setValueByName(r,o)}))},t.prototype.makeFieldsSettingForm=function(e){var t=this,n=e.sourceKey,r=e.feat,a=e.inCrud,o=e.setting,s=e.inScaffold;if(!1===s||['Import','Export','FuzzyQuery'].includes(r))return[];n=null!=n?n:''.concat(Oo[r].value,'Api');var c=o?'__fields':''.concat(Oo[r].value,'Fields'),l=['Edit','Insert'].includes(r)||a&&'List'===r,d=['View','List'].includes(r);return[].concat(a&&'List'!==r?this.makeSourceSettingForm({feat:r,inScaffold:s,inCrud:a}):null).concat([{type:'combo',className:'mb-0 ae-Fields-Setting',joinValues:!1,name:c,label:a?''.concat(Oo[r].label,'字段'):A('9caecd931b956381e0763d05aa42835c'),multiple:!0,draggable:!0,addable:!1,removable:!1,itemClassName:'ae-Fields-Setting-Item',hidden:o||!a||['Delete','BulkDelete'].includes(r),items:{type:'container',body:[{name:'checked',label:!1,mode:'inline',className:'m-0 ml-1',type:'checkbox'},{type:'tpl',className:'ae-Fields-Setting-Item-label',tpl:'${label}'}]}},{type:'input-table',label:A('9caecd931b956381e0763d05aa42835c'),className:'mb-0',name:c,visible:null!=o?o:!a,removable:!0,columnsTogglable:!1,needConfirm:!1,onChange:function(e,n,r,a){return t.onFieldsInit(e,a)},columns:[{type:'switch',name:'checked',value:!0,label:A('47cd88592f6ef2b258f02c0690d267ed'),visible:!1},{type:'input-text',name:'label',label:A('32c65d8d7431e76029678ec7bb73a5ab')},{type:'input-text',name:'name',label:A('020586d0c69f8211840ddf9ee9bbf6ab')},{type:'select',name:'type',label:A('226b0912184333c81babf2f1894ec0c1'),visible:d,value:'tpl',options:[{value:'tpl',label:A('97d07614380da93d257f9fbf81aa56fb'),typeKey:'tpl'},{value:'image',label:A('20def7942674282277c3714ed7ea6ce0'),typeKey:'src'},{value:'date',label:A('4ff1e74e43a3586339251494117185ad'),typeKey:'value'},{value:'progress',label:A('c7bff79d059a0b7ff9b02441959d8be2'),typeKey:'value'},{value:'status',label:A('3fea7ca76cdece641436d7ab0d02ab1b'),typeKey:'value'},{value:'mapping',label:A('9da188491dd34c4382a5b9f006194e41'),typeKey:'value'}],autoFill:{typeKey:'${typeKey}'}},{type:'select',name:'inputType',label:A('b3e55578af5dd473bab62641bb2f5f8e'),visible:l,value:'input-text',options:[{label:A('9b6425cd2d496c9cb5a6c6b8ff125d1b'),value:'input-text'},{label:A('15d169d28cd48c97fe751e4cc92ca926'),value:'textarea'},{label:A('9597dcaf432ceba92a160d61cb1ef65f'),value:'input-number'},{label:A('9913107b19cb6012250134ff91377430'),value:'radios'},{label:A('454e60f5759903d7d3dba58e3f9bd590'),value:'checkbox'},{label:A('db98f889ce6bc235e66bd4b2a788d137'),value:'checkboxes'},{label:A('006ded9fa277cf030592021f595a07d5'),value:'select'},{label:A('a6beb974cc0b50eebd18120b8110a88b'),value:'switch'},{label:A('4ff1e74e43a3586339251494117185ad'),value:'input-date'},{label:A('b339aa87104709397ba68e7ebbc6e5ba'),value:'input-table'},{label:A('481e034e6026969aae4ce7ce7c8a7b6f'),value:'input-file'},{label:A('6bfb9bb2218ff32b6139e98bc93707c0'),value:'input-image'},{label:A('24b6d4c0892a8f3ee2a982e3ab0afe38'),value:'input-rich-text'}]}]},{type:'group',visible:null!=o?o:!a,label:'',body:[{type:'grid',columns:[{body:[{type:'button',label:A('4484fa04e7b71db4c8293e5bcb53eca4'),target:c,className:'ae-Button--link',level:'link',icon:'plus',actionType:'add'}]},{columnClassName:'text-right',body:[{type:'button',label:A('4cc6a76c146c0360a41ceaf5e212c891'),visible:'Edit'===r||'List'===r,className:'ae-Button--link',level:'link',onClick:function(e,o){return H(t,void 0,void 0,(function(){var e,t,s,l,d,u,p,f,h,m;return L(this,(function(v){switch(v.label){case 0:return e=o.data,t=we(window.editorStore).schemaFilter,s=e['Edit'!==r||a?n:'initApi'],t&&(s=t({api:s}).api),s||i.warning(A('a9fea442707e26dee478b34a2f2ce263')),[4,o.env.fetcher(s,e)];case 1:return l=v.sent(),d=[],'List'===r?(p=(null===(h=l.data)||void 0===h?void 0:h.rows)||(null===(m=l.data)||void 0===m?void 0:m.items),u=null==p?void 0:p[0]):u=l.data,u?(Object.entries(u).forEach((function(e){var t=z(e,2),n=t[0],r=t[1];d.push({label:n,type:'tpl',inputType:'number'==typeof r?'input-number':'input-text',name:n})})),o.formStore.setValues(((f={})[c]=d,f)),this.onFieldsInit(d,o.formStore)):i.warning(A('91aa2166ee4811414381c8d94e6567e6')),[2]}}))}))}}]}]}]}])},t.prototype.makeFieldFilterSetting=function(e){return H(this,void 0,void 0,(function(){return L(this,(function(e){return[2,[]]}))}))},t.prototype.resolveSourceSchema=function(e){var t=e.name,n=e.setting,r=e.schema,a=e.feat;r[t=null!=t?t:'api']=n[a?''.concat(Oo[a].value,'Api'):'api'],'Edit'===a&&(r.initApi=n.initApi)},t.prototype.resolveViewSchema=function(e){var t=e.setting,n=e.feat;return(t[''.concat(Oo[void 0===n?'Edit':n].value,'Fields')]||[]).filter((function(e){return e.checked})).map((function(e){var t;return(t={type:e.type})[e.typeKey||'value']='${'+e.name+'}',t}))},t.prototype.resolveTableSchema=function(e){var t=e.schema,n=e.setting.listFields.filter((function(e){return e.checked}))||[];t.columns=this.makeTableColumnsByFields(n)},t.prototype.makeTableColumnsByFields=function(e){return e.map((function(e){var t;return(t={type:e.type,title:e.label,name:e.name})[e.typeKey||'value']='${'+e.name+'}',t}))},t.prototype.resolveCreateSchema=function(e){var t=e.schema,n=e.setting,r=e.feat,a=e.name,o=n[''.concat(Oo[r].value,'Fields')]||[];t[null!=a?a:'api']=n[Oo[r].value+'Api'],t.initApi=n.initApi,t.body=o.filter((function(e){return e.checked})).map((function(e){return{type:e.inputType,name:e.name,label:e.label}}))},t.prototype.resolveDeleteSchema=function(e){var t,n=e.schema,r=e.setting,a=e.feat;n.onEvent=Object.assign(null!==(t=n.onEvent)&&void 0!==t?t:{},{click:{actions:[]}});var o=M({},r[''.concat(Oo[a].value,'Api')]||{});o.data='Delete'===a?{id:'${item.id}'}:{ids:'${ARRAYMAP(selectedItems, item=> item.id)}'},n.onEvent.click.actions.push({actionType:'ajax',args:{api:o}})},t.prototype.resolveSimpleFilterSchema=function(e){var t=e.setting,n=e.size;return(t.simpleQueryFields||[]).filter((function(e){return e.checked})).map((function(e){return{type:e.inputType,name:e.name,label:e.label,size:n}}))},t.prototype.resolveAdvancedFilterSchema=function(e){},t.type='api',t.accessable=function(e,t){return!0},t}(No));var Po=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t}(ln),Do=function(e){function t(t){var n=e.call(this,t)||this;return n.manager.on('build-panels',n.buildPanels),n}return P(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,s=e.previewProps;return K.createElement('div',{className:V('ae-Editor',{preview:t},n)},K.createElement('div',{className:'ae-Editor-inner',onContextMenu:this.handleContextMenu},K.createElement('div',{className:'ae-Main'},K.createElement(Ln,M({},s,{isMobile:o,editable:!t,store:this.store,manager:this.manager,theme:r,data:a,autoFocus:i})))),K.createElement(Ja,{store:this.store,manager:this.manager,theme:r}),K.createElement(Ga,{store:this.store,manager:this.manager,theme:r}))},D([Ft,B('design:type',Function),B('design:paramtypes',[Object]),B('design:returntype',void 0)],t.prototype,'buildPanels',null),t}(io),Bo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.UNSAFE_componentWillMount=function(){var e=this,t=this.props;t.data,t.path;var n=t.widthMutable,r=T(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&&ye(this.editorNode)&&this.context.removeChild(this.editorNode)},t.prototype.markDom=function(e){var t=he(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 K.createElement(fn.Provider,{value:this.editorNode},this.props.children)},t.contextType=fn,t}(K.Component),To=[{title:A('79d3abe929f67f0644a78bf32adb3a89'),letters:['⌘','c'],tooltip:A('b7d817611230d382f6ef92b41848a342')},{title:A('eafbece1016a6af76cce466e55ad9f00'),letters:['⌘','v'],tooltip:A('e0b9bb8e41eccd3ce6b282664643d7f8')},{title:A('43fc77886b7fbcd658f0ccdba36bd5a0'),letters:['⌘','x'],tooltip:A('a6be4ad12e9612811963c44466af3218')},{title:A('bd9fcf46b4e5993f97fe04ee9ebcd7ed'),letters:['⌘','z'],tooltip:A('58887132871b71b015c3a391e7755815')},{title:A('c3c873d33f1c6482c79b0ffd862786cd'),letters:['⌘','Shift','z'],tooltip:A('58887132871b71b015c3a391e7755815')},{title:A('be5fbbe34ce9979bfb6576d9eddc5612'),letters:['⌘','s'],tooltip:A('1f81fd4598e9151538f29c41b8aa0020')},{title:A('34d240d1ded259c32f7fee21e99c5671'),letters:['⌘','p'],tooltip:A('6722089d251c1e4aabe9d58c26a2208a')},{title:A('2f4aaddde33c9b93c36fd2503f3d122b'),letters:['Delete'],tooltip:A('426cd14ebd62a4922186527d07ba37f3')},{title:A('2f4aaddde33c9b93c36fd2503f3d122b'),letters:['Backspace'],tooltip:A('426cd14ebd62a4922186527d07ba37f3')},{title:A('499e58e764420aeed2d1476a56d8fa34'),letters:['⌘','↑'],tooltip:A('d040485f0e3887f0b297f8f772db03e4')},{title:A('08ad565f066d30572d1f8e2ee17cbe12'),letters:['⌘','↓'],tooltip:A('6348dc0e83d6ab391a8816f67d0e5ceb')}],jo=function(e){function t(t){var n=e.call(this,t)||this;return n.state={visible:!1},n}return P(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||To;return K.createElement(K.Fragment,null,K.createElement('div',{className:'shortcut-icon-btn','editor-tooltip':'点击查看当前可用快捷键','tooltip-position':'bottom'},K.createElement(r,{icon:'editor-shortcut',onClick:this.showShortcutKeyModal})),K.createElement(S,{size:n||'xs',show:this.state.visible,closeOnEsc:null==a||a,closeOnOutside:null==o||o,onHide:this.closeShortcutKeyModal,contentClassName:'shortcut-list-modal'},K.createElement('div',{className:'shortcut-modal-header'},K.createElement('div',{className:'shortcut-modal-title'},t||A('9c3f1278ffa822835bb3a677f02bca27')),K.createElement(r,{icon:'close',className:'shortcut-modal-icon',onClick:this.closeShortcutKeyModal})),K.createElement('div',{className:'shortcut-modal-body'},i&&i.length>0&&K.createElement('div',{className:'shortcut-list'},i.map((function(e,t){return K.createElement('div',{className:'shortcut-item',key:t},e.tooltip&&K.createElement('div',{className:'shortcut-title','editor-tooltip':e.tooltip},e.title),!e.tooltip&&K.createElement('div',{className:'shortcut-title'},e.title),K.createElement('div',{className:'shortcut-letters'},e.letters.map((function(e){return K.createElement('div',{className:'shortcut-letter',key:e},e)}))))}))),!i||0===i.length&&K.createElement('span',null,'暂无快捷键'))))},D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'closeShortcutKeyModal',null),D([Ft,B('design:type',Function),B('design:paramtypes',[]),B('design:returntype',void 0)],t.prototype,'showShortcutKeyModal',null),t}(K.Component);export{co as AvailableRenderersPlugin,ln as BasePlugin,Po as BasicEditor,ho as CodeEditor,mn as ContainerWrapper,go as DSBehavior,No as DSBuilder,Ao as DSBuilderManager,Oo as DSFeature,bo as DSGrain,io as Editor,Pn as EditorManager,Dn as IFrameEditor,vt as JSONCanMoveDown,ht as JSONCanMoveUp,ft as JSONChangeInArray,ut as JSONDelete,bt as JSONDuplicate,ct as JSONGetById,it as JSONGetByPath,lt as JSONGetParentById,st as JSONGetPathById,pt as JSONMerge,gt as JSONMoveDownById,mt as JSONMoveUpById,rt as JSONPipeIn,at as JSONPipeOut,zt as JSONTraverse,dt as JSONUpdate,Et as JsonGenerateID,dn as LayoutBasePlugin,Do as MiniEditor,hn as RegionWrapper,Mo as RendererEditor,Va as SearchPanel,jo as ShortcutKey,Bo as VRenderer,lo as WidthDraggableContainer,tt as __uri,At as addDragingClass,ot as addStyleClassName,We as anyChanged,Gt as appTranslate,kn as autoPreRegisterEditorCustomPlugins,Ft as autobind,It as blackList,Pt as camelize,nt as cleanUndefined,Ue as cloneObject,wt as createElementFromHTML,cn as createEvent,Ge as createObject,Ct as deepFind,io as default,xo as defaultValue,nn as deleteThemeConfigData,Tt as diff,Xe as eachTree,St as filterSchemaForConfig,xt as filterSchemaForEditor,Vt as generateNodeId,An as getEditorPlugins,Jt as getI18nEnabled,Eo as getSchemaTpl,Ke as guid,Je as isEmpty,Ut as isHasPluginIcon,Wt as isLayoutPlugin,Ht as isNumeric,Kt as isObject,Ve as isObjectShallowModified,$t as isString,_t as jsonToJsonSchema,qe as makeHorizontalDeeper,En as mapReactElement,Ro as mockValue,jn as mountInIframe,Yt as needDefaultWidth,Qt as needFillPlaceholder,Ze as noop,kt as normalizeId,_e as omitControls,jt as patchDiff,Ot as persistGet,Nt as persistSet,yt as reGenerateID,Dt as reactionWithOldValue,Fo as registerDSBuilder,Fn as registerEditorPlugin,Mt as removeDragingClass,Bt as repeatArray,wo as setSchemaTpl,en as setThemeConfig,tn as setThemeDefaultData,Rt as sortByList,Lt as string2CSSUnit,qt as stringRegExp,Qe as themeConfig,et as themeOptionsData,Io as tipedLabel,Xt as translateSchema,Mn as unRegisterEditorPlugin,So as undefinedPipeOut,Zt as unitFormula,rn as utils,Co as valuePipeOut};