@next-bricks/visual-builder 1.38.1 → 1.38.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +18 -18
- package/dist/chunks/1045.da75cb56.js +2 -0
- package/dist/chunks/1045.da75cb56.js.map +1 -0
- package/dist/chunks/1122.3ee6d6f3.js +2 -0
- package/dist/chunks/1122.3ee6d6f3.js.map +1 -0
- package/dist/chunks/114.d6772a35.js +2 -0
- package/dist/chunks/114.d6772a35.js.map +1 -0
- package/dist/chunks/1889.96ce7327.js +2 -0
- package/dist/chunks/1889.96ce7327.js.map +1 -0
- package/dist/chunks/220.b81cb3a9.js +2 -0
- package/dist/chunks/220.b81cb3a9.js.map +1 -0
- package/dist/chunks/2201.301b3dc4.js +2 -0
- package/dist/chunks/2201.301b3dc4.js.map +1 -0
- package/dist/chunks/2980.1544a125.js +2 -0
- package/dist/chunks/2980.1544a125.js.map +1 -0
- package/dist/chunks/3144.1e4265cb.js +3 -0
- package/dist/chunks/3144.1e4265cb.js.map +1 -0
- package/dist/chunks/{3171.5cd02271.js → 3171.d919d954.js} +2 -2
- package/dist/chunks/{3171.5cd02271.js.map → 3171.d919d954.js.map} +1 -1
- package/dist/chunks/{6314.7cf962aa.js → 3933.4363c1cf.js} +2 -2
- package/dist/chunks/{3933.21c52045.js.map → 3933.4363c1cf.js.map} +1 -1
- package/dist/chunks/4041.a9289b9a.js +3 -0
- package/dist/chunks/4041.a9289b9a.js.map +1 -0
- package/dist/chunks/{4837.b122ae40.js → 4837.bbbe8edf.js} +2 -2
- package/dist/chunks/{4837.b122ae40.js.map → 4837.bbbe8edf.js.map} +1 -1
- package/dist/chunks/5250.64cfe342.js +3 -0
- package/dist/chunks/5250.64cfe342.js.map +1 -0
- package/dist/chunks/5522.9b10a351.js +3 -0
- package/dist/chunks/5522.9b10a351.js.map +1 -0
- package/dist/chunks/{5552.3773d6dd.js → 5552.25e8ba44.js} +2 -2
- package/dist/chunks/{5552.3773d6dd.js.map → 5552.25e8ba44.js.map} +1 -1
- package/dist/chunks/5659.db2c4d38.js +3 -0
- package/dist/chunks/5659.db2c4d38.js.map +1 -0
- package/dist/chunks/6117.b8e62bfc.js +1 -0
- package/dist/chunks/{3933.21c52045.js → 6314.68a0856f.js} +2 -2
- package/dist/chunks/{6314.7cf962aa.js.map → 6314.68a0856f.js.map} +1 -1
- package/dist/chunks/6773.29b2dc35.js +2 -0
- package/dist/chunks/6773.29b2dc35.js.map +1 -0
- package/dist/chunks/6840.b8f5fecc.js +3 -0
- package/dist/chunks/6840.b8f5fecc.js.map +1 -0
- package/dist/chunks/7085.5626fe65.js +3 -0
- package/dist/chunks/7085.5626fe65.js.map +1 -0
- package/dist/chunks/{7218.2d0daf7d.js → 7218.698b9922.js} +2 -2
- package/dist/chunks/{7218.2d0daf7d.js.map → 7218.698b9922.js.map} +1 -1
- package/dist/chunks/726.decd1cb8.js +2 -0
- package/dist/chunks/726.decd1cb8.js.map +1 -0
- package/dist/chunks/7304.c45ab907.js +2 -0
- package/dist/chunks/7304.c45ab907.js.map +1 -0
- package/dist/chunks/7434.c8f35cb5.js +2 -0
- package/dist/chunks/7434.c8f35cb5.js.map +1 -0
- package/dist/chunks/{7721.6dd8673d.js → 7721.79a73cc5.js} +3 -3
- package/dist/chunks/7721.79a73cc5.js.map +1 -0
- package/dist/chunks/7733.348a0514.js +2 -0
- package/dist/chunks/7733.348a0514.js.map +1 -0
- package/dist/chunks/871.dd401bcf.js +2 -0
- package/dist/chunks/871.dd401bcf.js.map +1 -0
- package/dist/chunks/8989.1a42d5b8.js +2 -0
- package/dist/chunks/8989.1a42d5b8.js.map +1 -0
- package/dist/chunks/9080.e6f4d552.js +2 -0
- package/dist/chunks/9080.e6f4d552.js.map +1 -0
- package/dist/chunks/9515.b82d9bb4.js +2 -0
- package/dist/chunks/9515.b82d9bb4.js.map +1 -0
- package/dist/chunks/{9844.4328557b.js → 9844.8fa0b43e.js} +2 -2
- package/dist/chunks/{9844.4328557b.js.map → 9844.8fa0b43e.js.map} +1 -1
- package/dist/chunks/batch-update-raw-data-generated-view.d854bc69.js +3 -0
- package/dist/chunks/batch-update-raw-data-generated-view.d854bc69.js.map +1 -0
- package/dist/chunks/chat-conversation.5660eb6c.js +3 -0
- package/dist/chunks/chat-conversation.5660eb6c.js.map +1 -0
- package/dist/chunks/chat-preview.8f851d13.js +3 -0
- package/dist/chunks/chat-preview.8f851d13.js.map +1 -0
- package/dist/chunks/{check-editor-by-name.8e2a4d3c.js → check-editor-by-name.98c9077b.js} +2 -2
- package/dist/chunks/{check-editor-by-name.8e2a4d3c.js.map → check-editor-by-name.98c9077b.js.map} +1 -1
- package/dist/chunks/contract-select.c889a30c.js +3 -0
- package/dist/chunks/contract-select.c889a30c.js.map +1 -0
- package/dist/chunks/generate-snippets-context-menu.146ee748.js +2 -0
- package/dist/chunks/generate-snippets-context-menu.146ee748.js.map +1 -0
- package/dist/chunks/{get-config-by-data-for-ai.40035762.js → get-config-by-data-for-ai.8a90647b.js} +3 -3
- package/dist/chunks/get-config-by-data-for-ai.8a90647b.js.map +1 -0
- package/dist/chunks/{get-data-deps.24231f8f.js → get-data-deps.f481598b.js} +2 -2
- package/dist/chunks/{get-data-deps.24231f8f.js.map → get-data-deps.f481598b.js.map} +1 -1
- package/dist/chunks/{get-dependency-tree.f0dd3414.js → get-dependency-tree.52423efa.js} +2 -2
- package/dist/chunks/{get-dependency-tree.f0dd3414.js.map → get-dependency-tree.52423efa.js.map} +1 -1
- package/dist/chunks/{get-raw-data-system-prompts.e7339ae7.js → get-raw-data-system-prompts.b5899f4d.js} +2 -2
- package/dist/chunks/{get-raw-data-system-prompts.e7339ae7.js.map → get-raw-data-system-prompts.b5899f4d.js.map} +1 -1
- package/dist/chunks/inject-chat-preview-agent.db7f95da.js +2 -0
- package/dist/chunks/inject-chat-preview-agent.db7f95da.js.map +1 -0
- package/dist/chunks/main.40573267.js +2 -0
- package/dist/chunks/main.40573267.js.map +1 -0
- package/dist/chunks/page-arch-node.79a44aac.js +3 -0
- package/dist/chunks/page-arch-node.79a44aac.js.map +1 -0
- package/dist/chunks/parse-path.7e88de06.js +2 -0
- package/dist/chunks/parse-path.7e88de06.js.map +1 -0
- package/dist/chunks/pre-generated-config-preview.ed6be58a.js +2 -0
- package/dist/chunks/pre-generated-config-preview.ed6be58a.js.map +1 -0
- package/dist/chunks/pre-generated-config.927c0982.js +2 -0
- package/dist/chunks/pre-generated-config.927c0982.js.map +1 -0
- package/dist/chunks/pre-generated-container.dddeac27.js +2 -0
- package/dist/chunks/pre-generated-container.dddeac27.js.map +1 -0
- package/dist/chunks/pre-generated-preview.b3ba835a.js +3 -0
- package/dist/chunks/pre-generated-preview.b3ba835a.js.map +1 -0
- package/dist/chunks/pre-generated-table-view.ff0bb488.js +2 -0
- package/dist/chunks/pre-generated-table-view.ff0bb488.js.map +1 -0
- package/dist/chunks/property-editor.a5d944e2.js +2 -0
- package/dist/chunks/{property-editor.f09203b7.js.map → property-editor.a5d944e2.js.map} +1 -1
- package/dist/chunks/raw-data-preview.d668372a.js +3 -0
- package/dist/chunks/raw-data-preview.d668372a.js.map +1 -0
- package/dist/chunks/raw-metric-preview.d1039b5f.js +3 -0
- package/dist/chunks/raw-metric-preview.d1039b5f.js.map +1 -0
- package/dist/chunks/workbench-action-list.68a47ab3.js +2 -0
- package/dist/chunks/workbench-action-list.68a47ab3.js.map +1 -0
- package/dist/chunks/workbench-action.21ea5fa9.js +3 -0
- package/dist/chunks/workbench-action.21ea5fa9.js.map +1 -0
- package/dist/chunks/workbench-history-action.7b17ce0a.js +3 -0
- package/dist/chunks/workbench-history-action.7b17ce0a.js.map +1 -0
- package/dist/chunks/workbench-pane.5f9c12b9.js +3 -0
- package/dist/chunks/workbench-pane.5f9c12b9.js.map +1 -0
- package/dist/chunks/workbench-sidebar.0c0b3d95.js +2 -0
- package/dist/chunks/workbench-sidebar.0c0b3d95.js.map +1 -0
- package/dist/chunks/workbench-tree.e627eae4.js +3 -0
- package/dist/chunks/workbench-tree.e627eae4.js.map +1 -0
- package/dist/index.352964d5.js +2 -0
- package/dist/index.352964d5.js.map +1 -0
- package/dist/manifest.json +71 -71
- package/dist/types.json +300 -300
- package/package.json +4 -4
- package/dist/chunks/1045.f6e80fec.js +0 -2
- package/dist/chunks/1045.f6e80fec.js.map +0 -1
- package/dist/chunks/1122.ba17383d.js +0 -2
- package/dist/chunks/1122.ba17383d.js.map +0 -1
- package/dist/chunks/114.aaa7c484.js +0 -2
- package/dist/chunks/114.aaa7c484.js.map +0 -1
- package/dist/chunks/1889.e5238f90.js +0 -2
- package/dist/chunks/1889.e5238f90.js.map +0 -1
- package/dist/chunks/220.7b1efc80.js +0 -2
- package/dist/chunks/220.7b1efc80.js.map +0 -1
- package/dist/chunks/2201.3d4f3271.js +0 -2
- package/dist/chunks/2201.3d4f3271.js.map +0 -1
- package/dist/chunks/2980.b1bfe52c.js +0 -2
- package/dist/chunks/2980.b1bfe52c.js.map +0 -1
- package/dist/chunks/3144.0096b9c3.js +0 -3
- package/dist/chunks/3144.0096b9c3.js.map +0 -1
- package/dist/chunks/4041.468489fa.js +0 -3
- package/dist/chunks/4041.468489fa.js.map +0 -1
- package/dist/chunks/5250.f22684c9.js +0 -3
- package/dist/chunks/5250.f22684c9.js.map +0 -1
- package/dist/chunks/5522.ab1061cc.js +0 -3
- package/dist/chunks/5522.ab1061cc.js.map +0 -1
- package/dist/chunks/5659.9000e441.js +0 -3
- package/dist/chunks/5659.9000e441.js.map +0 -1
- package/dist/chunks/6117.1d7ec00c.js +0 -1
- package/dist/chunks/6773.9ed5373b.js +0 -2
- package/dist/chunks/6773.9ed5373b.js.map +0 -1
- package/dist/chunks/6840.21d31b93.js +0 -3
- package/dist/chunks/6840.21d31b93.js.map +0 -1
- package/dist/chunks/7085.81897113.js +0 -3
- package/dist/chunks/7085.81897113.js.map +0 -1
- package/dist/chunks/726.b2215460.js +0 -2
- package/dist/chunks/726.b2215460.js.map +0 -1
- package/dist/chunks/7304.09d181ac.js +0 -2
- package/dist/chunks/7304.09d181ac.js.map +0 -1
- package/dist/chunks/7434.67a7c326.js +0 -2
- package/dist/chunks/7434.67a7c326.js.map +0 -1
- package/dist/chunks/7721.6dd8673d.js.map +0 -1
- package/dist/chunks/7733.8b0e5606.js +0 -2
- package/dist/chunks/7733.8b0e5606.js.map +0 -1
- package/dist/chunks/871.fff582b1.js +0 -2
- package/dist/chunks/871.fff582b1.js.map +0 -1
- package/dist/chunks/8989.0517d458.js +0 -2
- package/dist/chunks/8989.0517d458.js.map +0 -1
- package/dist/chunks/9080.b51b1966.js +0 -2
- package/dist/chunks/9080.b51b1966.js.map +0 -1
- package/dist/chunks/9515.80c4b472.js +0 -2
- package/dist/chunks/9515.80c4b472.js.map +0 -1
- package/dist/chunks/batch-update-raw-data-generated-view.bc27d0ef.js +0 -3
- package/dist/chunks/batch-update-raw-data-generated-view.bc27d0ef.js.map +0 -1
- package/dist/chunks/chat-conversation.2429847e.js +0 -3
- package/dist/chunks/chat-conversation.2429847e.js.map +0 -1
- package/dist/chunks/chat-preview.18dbd7b9.js +0 -3
- package/dist/chunks/chat-preview.18dbd7b9.js.map +0 -1
- package/dist/chunks/contract-select.aebbe874.js +0 -3
- package/dist/chunks/contract-select.aebbe874.js.map +0 -1
- package/dist/chunks/generate-snippets-context-menu.d59571b6.js +0 -2
- package/dist/chunks/generate-snippets-context-menu.d59571b6.js.map +0 -1
- package/dist/chunks/get-config-by-data-for-ai.40035762.js.map +0 -1
- package/dist/chunks/inject-chat-preview-agent.e1897fcc.js +0 -2
- package/dist/chunks/inject-chat-preview-agent.e1897fcc.js.map +0 -1
- package/dist/chunks/main.ba14b0f0.js +0 -2
- package/dist/chunks/main.ba14b0f0.js.map +0 -1
- package/dist/chunks/page-arch-node.54cda8e0.js +0 -3
- package/dist/chunks/page-arch-node.54cda8e0.js.map +0 -1
- package/dist/chunks/parse-path.3150102e.js +0 -2
- package/dist/chunks/parse-path.3150102e.js.map +0 -1
- package/dist/chunks/pre-generated-config-preview.77f2caaf.js +0 -2
- package/dist/chunks/pre-generated-config-preview.77f2caaf.js.map +0 -1
- package/dist/chunks/pre-generated-config.e1c53303.js +0 -2
- package/dist/chunks/pre-generated-config.e1c53303.js.map +0 -1
- package/dist/chunks/pre-generated-container.886b45a6.js +0 -2
- package/dist/chunks/pre-generated-container.886b45a6.js.map +0 -1
- package/dist/chunks/pre-generated-preview.679ccfb9.js +0 -3
- package/dist/chunks/pre-generated-preview.679ccfb9.js.map +0 -1
- package/dist/chunks/pre-generated-table-view.61080b88.js +0 -2
- package/dist/chunks/pre-generated-table-view.61080b88.js.map +0 -1
- package/dist/chunks/property-editor.f09203b7.js +0 -2
- package/dist/chunks/raw-data-preview.09ee31ed.js +0 -3
- package/dist/chunks/raw-data-preview.09ee31ed.js.map +0 -1
- package/dist/chunks/raw-metric-preview.fa44b0e6.js +0 -3
- package/dist/chunks/raw-metric-preview.fa44b0e6.js.map +0 -1
- package/dist/chunks/workbench-action-list.2bb5fd96.js +0 -2
- package/dist/chunks/workbench-action-list.2bb5fd96.js.map +0 -1
- package/dist/chunks/workbench-action.d437c289.js +0 -3
- package/dist/chunks/workbench-action.d437c289.js.map +0 -1
- package/dist/chunks/workbench-history-action.9676bc4c.js +0 -3
- package/dist/chunks/workbench-history-action.9676bc4c.js.map +0 -1
- package/dist/chunks/workbench-pane.b0663c72.js +0 -3
- package/dist/chunks/workbench-pane.b0663c72.js.map +0 -1
- package/dist/chunks/workbench-sidebar.4f8979af.js +0 -2
- package/dist/chunks/workbench-sidebar.4f8979af.js.map +0 -1
- package/dist/chunks/workbench-tree.ee9e13e1.js +0 -3
- package/dist/chunks/workbench-tree.ee9e13e1.js.map +0 -1
- package/dist/index.67520381.js +0 -2
- package/dist/index.67520381.js.map +0 -1
- /package/dist/chunks/{3144.0096b9c3.js.LICENSE.txt → 3144.1e4265cb.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4041.468489fa.js.LICENSE.txt → 4041.a9289b9a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5250.f22684c9.js.LICENSE.txt → 5250.64cfe342.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5522.ab1061cc.js.LICENSE.txt → 5522.9b10a351.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5659.9000e441.js.LICENSE.txt → 5659.db2c4d38.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6840.21d31b93.js.LICENSE.txt → 6840.b8f5fecc.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7085.81897113.js.LICENSE.txt → 7085.5626fe65.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7721.6dd8673d.js.LICENSE.txt → 7721.79a73cc5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{batch-update-raw-data-generated-view.bc27d0ef.js.LICENSE.txt → batch-update-raw-data-generated-view.d854bc69.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-conversation.2429847e.js.LICENSE.txt → chat-conversation.5660eb6c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-preview.18dbd7b9.js.LICENSE.txt → chat-preview.8f851d13.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.aebbe874.js.LICENSE.txt → contract-select.c889a30c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{get-config-by-data-for-ai.40035762.js.LICENSE.txt → get-config-by-data-for-ai.8a90647b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{page-arch-node.54cda8e0.js.LICENSE.txt → page-arch-node.79a44aac.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{pre-generated-preview.679ccfb9.js.LICENSE.txt → pre-generated-preview.b3ba835a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{raw-data-preview.09ee31ed.js.LICENSE.txt → raw-data-preview.d668372a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{raw-metric-preview.fa44b0e6.js.LICENSE.txt → raw-metric-preview.d1039b5f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.d437c289.js.LICENSE.txt → workbench-action.21ea5fa9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.9676bc4c.js.LICENSE.txt → workbench-history-action.7b17ce0a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-pane.b0663c72.js.LICENSE.txt → workbench-pane.5f9c12b9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-tree.ee9e13e1.js.LICENSE.txt → workbench-tree.e627eae4.js.LICENSE.txt} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 5522.ab1061cc.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5522],{264:(e,t,n)=>{function r(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function c(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var c=n.strict,i=void 0!==c&&c,o=n.start,s=void 0===o||o,u=n.end,f=void 0===u||u,p=n.encode,h=void 0===p?function(e){return e}:p,l=n.delimiter,d=void 0===l?"/#?":l,v=n.endsWith,y="[".concat(r(void 0===v?"":v),"]|$"),x="[".concat(r(d),"]"),m=s?"^":"",g=0,A=e;g<A.length;g++){var E=A[g];if("string"==typeof E)m+=r(h(E));else{var w=r(h(E.prefix)),b=r(h(E.suffix));if(E.pattern)if(t&&t.push(E),w||b)if("+"===E.modifier||"*"===E.modifier){var k="*"===E.modifier?"?":"";m+="(?:".concat(w,"((?:").concat(E.pattern,")(?:").concat(b).concat(w,"(?:").concat(E.pattern,"))*)").concat(b,")").concat(k)}else m+="(?:".concat(w,"(").concat(E.pattern,")").concat(b,")").concat(E.modifier);else{if("+"===E.modifier||"*"===E.modifier)throw new TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));m+="(".concat(E.pattern,")").concat(E.modifier)}else m+="(?:".concat(w).concat(b,")").concat(E.modifier)}}if(f)i||(m+="".concat(x,"?")),m+=n.endsWith?"(?=".concat(y,")"):"$";else{var C=e[e.length-1],P="string"==typeof C?x.indexOf(C[C.length-1])>-1:void 0===C;i||(m+="(?:".concat(x,"(?=").concat(y,"))?")),P||(m+="(?=".concat(x,"|").concat(y,")"))}return new RegExp(m,a(n))}(function(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var a=1,c="";if("?"===e[o=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;)if("\\"!==e[o]){if(")"===e[o]){if(0==--a){o++;break}}else if("("===e[o]&&(a++,"?"!==e[o+1]))throw new TypeError("Capturing groups are not allowed at ".concat(o));c+=e[o++]}else c+=e[o++]+e[o++];if(a)throw new TypeError("Unbalanced pattern at ".concat(n));if(!c)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:c}),n=o}else{for(var i="",o=n+1;o<e.length;){var s=e.charCodeAt(o);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;i+=e[o++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=o}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),a=t.prefixes,c=void 0===a?"./":a,i=t.delimiter,o=void 0===i?"/#?":i,s=[],u=0,f=0,p="",h=function(e){if(f<n.length&&n[f].type===e)return n[f++].value},l=function(e){var t=h(e);if(void 0!==t)return t;var r=n[f],a=r.type,c=r.index;throw new TypeError("Unexpected ".concat(a," at ").concat(c,", expected ").concat(e))},d=function(){for(var e,t="";e=h("CHAR")||h("ESCAPED_CHAR");)t+=e;return t},v=function(e){var t=s[s.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=o;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(r(o),"]+?"):"(?:(?!".concat(r(n),")[^").concat(r(o),"])+?")};f<n.length;){var y=h("CHAR"),x=h("NAME"),m=h("PATTERN");if(x||m){var g=y||"";-1===c.indexOf(g)&&(p+=g,g=""),p&&(s.push(p),p=""),s.push({name:x||u++,prefix:g,suffix:"",pattern:m||v(g),modifier:h("MODIFIER")||""})}else{var A=y||h("ESCAPED_CHAR");if(A)p+=A;else if(p&&(s.push(p),p=""),h("OPEN")){g=d();var E=h("NAME")||"",w=h("PATTERN")||"",b=d();l("CLOSE"),s.push({name:E||(w?u++:""),pattern:E&&!w?v(g):w,prefix:g,suffix:b,modifier:h("MODIFIER")||""})}else l("END")}}return s}(e,n),t,n)}function i(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,a=n.exec(e.source);a;)t.push({name:a[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),a=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return i(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),a(n))}(e,t,n):c(e,t,n)}n.d(t,{MM:()=>i})},9492:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(2559);function a(e,t,n,a){return t((0,r.A)(e,n),a),a}},780:(e,t,n)=>{n.d(t,{_:()=>c});var r=n(6330),a=n(7970),c=function(){var e=(0,r.A)((function*(e,t,n){return(yield a.http.post("api/gateway/cmdb.instance.CreateInstance/v2/object/".concat(e,"/instance"),t,n)).data}));return function(t,n,r){return e.apply(this,arguments)}}()},8406:(e,t,n)=>{n.d(t,{y:()=>c});var r=n(6330),a=n(7970),c=function(){var e=(0,r.A)((function*(e,t,n){return(yield a.http.post("api/gateway/cmdb.instance.PostSearchV3/v3/object/".concat(e,"/instance/_search"),t,n)).data}));return function(t,n,r){return e.apply(this,arguments)}}()},4244:(e,t,n)=>{n.d(t,{f:()=>c});var r=n(6330),a=n(7970),c=function(){var e=(0,r.A)((function*(e,t){return(yield a.http.post("api/gateway/next_builder.contract_center.SearchContract/api/v1/contract/search",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}()},4107:(e,t,n)=>{n.d(t,{R:()=>i});var r=n(9740),a=n(6330),c=n(7970),i=function(){var e=(0,a.A)((function*(e,t,n){return(yield c.http.get("api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/".concat(e,"/changes"),(0,r.A)((0,r.A)({},n),{},{params:t}))).data}));return function(t,n,r){return e.apply(this,arguments)}}()},8013:(e,t,n)=>{function r(e){let t;const n=()=>cancelAnimationFrame(t),r=function(){for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];t&&n(),t=requestAnimationFrame((()=>{e(...a)}))};return r.cancel=n,r}n.d(t,{G:()=>r})},63:(e,t,n)=>{n.d(t,{LP:()=>i});var r=n(1732),a=n(2716),c=n(1030);function i(e,t,n,s){const u=[],f=[],p=[];let h=0;return e&&e.forEach((e=>{if(e.key=""===s?`${h}`:`${s}.${h}`,function(e){return"group"===e.type}(e)||function(e,t){return Boolean("subMenu"===e.type||void 0)}(e)){const r=i(e.items,t,n,e.key);u.push(...r.selectedKeys),(r.selectedKeys.length||e.defaultExpanded)&&f.push(e.key),f.push(...r.openedKeys),p.push(...r.matchedKeys)}else if(function(e,t,n){if(!e.to)return!1;const i="object"==typeof e.to?e.to:(0,r.parsePath)(e.to),s=i.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");let u=!!(0,a.matchPath)(t,{path:s,exact:e.exact});if(u&&e.activeMatchSearch&&(u=o(n,i.search)),!u&&Array.isArray(e.activeIncludes))for(const i of e.activeIncludes){let e,s=!0;(0,c.isObject)(i)?(e=Array.isArray(i.path)?i.path:[i.path],s=i.exact):e=[i];for(const c of e){var f;let e;const i=c.includes("?");if(i&&(e=(0,r.parsePath)(c)),u=!!(0,a.matchPath)(t,{path:i?e.pathname:c,exact:s}),u&&null!==(f=e)&&void 0!==f&&f.search&&(u=o(n,e.search)),u)break}if(u)break}if(u&&Array.isArray(e.activeExcludes))for(const i of e.activeExcludes){let e,s=!0;(0,c.isObject)(i)?(e=Array.isArray(i.path)?i.path:[i.path],s=i.exact):e=[i];for(const c of e){let e;if(c.includes("?")&&(e=(0,r.parsePath)(c)),u=!((0,a.matchPath)(t,{path:e?e.pathname:c,exact:s})&&(!e||o(n,e.search))),!u)break}if(!u)break}return u}(e,t,n)){u.push(String(e.key));const t=e.key.split(".");for(let e=0;e<t.length;e++)p.push(t.slice(0,e+1).join("."))}h+=1})),u.length&&""!==s&&f.push(s),{selectedKeys:u,openedKeys:f,matchedKeys:p}}function o(e,t){const n=new URLSearchParams(e),r=new URLSearchParams(t);for(const[e,t]of r.entries()){var a;if((null!==(a=n.get(e))&&void 0!==a?a:"")!==t)return!1}return!0}}}]);
|
|
3
|
-
//# sourceMappingURL=5522.ab1061cc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/5522.ab1061cc.js","mappings":";qJAuSA,SAASA,EAAaC,GAClB,OAAOA,EAAIC,QAAQ,4BAA6B,OACpD,CAIA,SAASC,EAAMC,GACX,OAAOA,GAAWA,EAAQC,UAAY,GAAK,GAC/C,CAiCA,SAASC,EAAeC,EAAMC,EAAMJ,GAChC,OAKG,SAAwBK,EAAQD,EAAMJ,QACzB,IAAZA,IAAsBA,EAAU,CAAC,GAMrC,IALA,IAAIM,EAAKN,EAAQO,OAAQA,OAAgB,IAAPD,GAAwBA,EAAIE,EAAKR,EAAQS,MAAOA,OAAe,IAAPD,GAAuBA,EAAIE,EAAKV,EAAQW,IAAKA,OAAa,IAAPD,GAAu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B,WACzEkB,EACH,KAEJ,CACA,IAAKA,EACH,KAEJ,CAEF,OAAOA,CACT,CA1GUc,CAAczB,EAAMR,EAAUC,GAAS,CACzCE,EAAatF,KAAKqH,OAAO1B,EAAKpE,MAC9B,MAAM+F,EAAU3B,EAAKpE,IAAIgG,MAAM,KAC/B,IAAK,IAAI5G,EAAI,EAAGA,EAAI2G,EAAQ3H,OAAQgB,IAClC6E,EAAYxF,KAAKsH,EAAQE,MAAM,EAAG7G,EAAI,GAAGoC,KAAK,KAElD,CAEF0C,GAAU,CAAC,IAETH,EAAa3F,QAA2B,KAAjB0F,GACzBE,EAAWvF,KAAKqF,GAEX,CACLC,aAAcA,EACdC,WAAYA,EACZC,YAAaA,EAEjB,CACA,SAASkB,EAAiBe,EAAeC,GACvC,MAAMC,EAAU,IAAIC,gBAAgBH,GAC9BtB,EAAK,IAAIyB,gBAAgBF,GAC/B,IAAK,MAAOnG,EAAKR,KAAUoF,EAAG0B,UAAW,CACvC,IAAIC,EAEJ,IAA2C,QAArCA,EAAeH,EAAQpD,IAAIhD,UAAmC,IAAjBuG,EAA0BA,EAAe,MAAQ/G,EAClG,OAAO,CAEX,CACA,OAAO,CACT","sources":["webpack:///../../node_modules/path-to-regexp/dist.es2015/index.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js","webpack:///../../node_modules/@next-api-sdk/cmdb-sdk/dist/esm/api/cmdb/instance/createInstance.js","webpack:///../../node_modules/@next-api-sdk/cmdb-sdk/dist/esm/api/cmdb/instance/postSearchV3.js","webpack:///../../node_modules/@next-api-sdk/next-builder-sdk/dist/esm/api/next_builder/contract_center/searchContract.js","webpack:///../../node_modules/@next-api-sdk/next-builder-sdk/dist/esm/api/next_builder/workspace/getChangeHistory.js","webpack:///../../node_modules/@next-shared/general/dist/esm/debounceByAnimationFrame.js","webpack:///../../node_modules/@next-shared/general/dist/esm/menu.js"],"sourcesContent":["/**\n * Tokenize input string.\n */\nfunction lexer(str) {\n var tokens = [];\n var i = 0;\n while (i < str.length) {\n var char = str[i];\n if (char === \"*\" || char === \"+\" || char === \"?\") {\n tokens.push({ type: \"MODIFIER\", index: i, value: str[i++] });\n continue;\n }\n if (char === \"\\\\\") {\n tokens.push({ type: \"ESCAPED_CHAR\", index: i++, value: str[i++] });\n continue;\n }\n if (char === \"{\") {\n tokens.push({ type: \"OPEN\", index: i, value: str[i++] });\n continue;\n }\n if (char === \"}\") {\n tokens.push({ type: \"CLOSE\", index: i, value: str[i++] });\n continue;\n }\n if (char === \":\") {\n var name = \"\";\n var j = i + 1;\n while (j < str.length) {\n var code = str.charCodeAt(j);\n if (\n // `0-9`\n (code >= 48 && code <= 57) ||\n // `A-Z`\n (code >= 65 && code <= 90) ||\n // `a-z`\n (code >= 97 && code <= 122) ||\n // `_`\n code === 95) {\n name += str[j++];\n continue;\n }\n break;\n }\n if (!name)\n throw new TypeError(\"Missing parameter name at \".concat(i));\n tokens.push({ type: \"NAME\", index: i, value: name });\n i = j;\n continue;\n }\n if (char === \"(\") {\n var count = 1;\n var pattern = \"\";\n var j = i + 1;\n if (str[j] === \"?\") {\n throw new TypeError(\"Pattern cannot start with \\\"?\\\" at \".concat(j));\n }\n while (j < str.length) {\n if (str[j] === \"\\\\\") {\n pattern += str[j++] + str[j++];\n continue;\n }\n if (str[j] === \")\") {\n count--;\n if (count === 0) {\n j++;\n break;\n }\n }\n else if (str[j] === \"(\") {\n count++;\n if (str[j + 1] !== \"?\") {\n throw new TypeError(\"Capturing groups are not allowed at \".concat(j));\n }\n }\n pattern += str[j++];\n }\n if (count)\n throw new TypeError(\"Unbalanced pattern at \".concat(i));\n if (!pattern)\n throw new TypeError(\"Missing pattern at \".concat(i));\n tokens.push({ type: \"PATTERN\", index: i, value: pattern });\n i = j;\n continue;\n }\n tokens.push({ type: \"CHAR\", index: i, value: str[i++] });\n }\n tokens.push({ type: \"END\", index: i, value: \"\" });\n return tokens;\n}\n/**\n * Parse a string for the raw tokens.\n */\nexport function parse(str, options) {\n if (options === void 0) { options = {}; }\n var tokens = lexer(str);\n var _a = options.prefixes, prefixes = _a === void 0 ? \"./\" : _a, _b = options.delimiter, delimiter = _b === void 0 ? \"/#?\" : _b;\n var result = [];\n var key = 0;\n var i = 0;\n var path = \"\";\n var tryConsume = function (type) {\n if (i < tokens.length && tokens[i].type === type)\n return tokens[i++].value;\n };\n var mustConsume = function (type) {\n var value = tryConsume(type);\n if (value !== undefined)\n return value;\n var _a = tokens[i], nextType = _a.type, index = _a.index;\n throw new TypeError(\"Unexpected \".concat(nextType, \" at \").concat(index, \", expected \").concat(type));\n };\n var consumeText = function () {\n var result = \"\";\n var value;\n while ((value = tryConsume(\"CHAR\") || tryConsume(\"ESCAPED_CHAR\"))) {\n result += value;\n }\n return result;\n };\n var isSafe = function (value) {\n for (var _i = 0, delimiter_1 = delimiter; _i < delimiter_1.length; _i++) {\n var char = delimiter_1[_i];\n if (value.indexOf(char) > -1)\n return true;\n }\n return false;\n };\n var safePattern = function (prefix) {\n var prev = result[result.length - 1];\n var prevText = prefix || (prev && typeof prev === \"string\" ? prev : \"\");\n if (prev && !prevText) {\n throw new TypeError(\"Must have text between two parameters, missing text after \\\"\".concat(prev.name, \"\\\"\"));\n }\n if (!prevText || isSafe(prevText))\n return \"[^\".concat(escapeString(delimiter), \"]+?\");\n return \"(?:(?!\".concat(escapeString(prevText), \")[^\").concat(escapeString(delimiter), \"])+?\");\n };\n while (i < tokens.length) {\n var char = tryConsume(\"CHAR\");\n var name = tryConsume(\"NAME\");\n var pattern = tryConsume(\"PATTERN\");\n if (name || pattern) {\n var prefix = char || \"\";\n if (prefixes.indexOf(prefix) === -1) {\n path += prefix;\n prefix = \"\";\n }\n if (path) {\n result.push(path);\n path = \"\";\n }\n result.push({\n name: name || key++,\n prefix: prefix,\n suffix: \"\",\n pattern: pattern || safePattern(prefix),\n modifier: tryConsume(\"MODIFIER\") || \"\",\n });\n continue;\n }\n var value = char || tryConsume(\"ESCAPED_CHAR\");\n if (value) {\n path += value;\n continue;\n }\n if (path) {\n result.push(path);\n path = \"\";\n }\n var open = tryConsume(\"OPEN\");\n if (open) {\n var prefix = consumeText();\n var name_1 = tryConsume(\"NAME\") || \"\";\n var pattern_1 = tryConsume(\"PATTERN\") || \"\";\n var suffix = consumeText();\n mustConsume(\"CLOSE\");\n result.push({\n name: name_1 || (pattern_1 ? key++ : \"\"),\n pattern: name_1 && !pattern_1 ? safePattern(prefix) : pattern_1,\n prefix: prefix,\n suffix: suffix,\n modifier: tryConsume(\"MODIFIER\") || \"\",\n });\n continue;\n }\n mustConsume(\"END\");\n }\n return result;\n}\n/**\n * Compile a string to a template function for the path.\n */\nexport function compile(str, options) {\n return tokensToFunction(parse(str, options), options);\n}\n/**\n * Expose a method for transforming tokens into the path function.\n */\nexport function tokensToFunction(tokens, options) {\n if (options === void 0) { options = {}; }\n var reFlags = flags(options);\n var _a = options.encode, encode = _a === void 0 ? function (x) { return x; } : _a, _b = options.validate, validate = _b === void 0 ? true : _b;\n // Compile all the tokens into regexps.\n var matches = tokens.map(function (token) {\n if (typeof token === \"object\") {\n return new RegExp(\"^(?:\".concat(token.pattern, \")$\"), reFlags);\n }\n });\n return function (data) {\n var path = \"\";\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n if (typeof token === \"string\") {\n path += token;\n continue;\n }\n var value = data ? data[token.name] : undefined;\n var optional = token.modifier === \"?\" || token.modifier === \"*\";\n var repeat = token.modifier === \"*\" || token.modifier === \"+\";\n if (Array.isArray(value)) {\n if (!repeat) {\n throw new TypeError(\"Expected \\\"\".concat(token.name, \"\\\" to not repeat, but got an array\"));\n }\n if (value.length === 0) {\n if (optional)\n continue;\n throw new TypeError(\"Expected \\\"\".concat(token.name, \"\\\" to not be empty\"));\n }\n for (var j = 0; j < value.length; j++) {\n var segment = encode(value[j], token);\n if (validate && !matches[i].test(segment)) {\n throw new TypeError(\"Expected all \\\"\".concat(token.name, \"\\\" to match \\\"\").concat(token.pattern, \"\\\", but got \\\"\").concat(segment, \"\\\"\"));\n }\n path += token.prefix + segment + token.suffix;\n }\n continue;\n }\n if (typeof value === \"string\" || typeof value === \"number\") {\n var segment = encode(String(value), token);\n if (validate && !matches[i].test(segment)) {\n throw new TypeError(\"Expected \\\"\".concat(token.name, \"\\\" to match \\\"\").concat(token.pattern, \"\\\", but got \\\"\").concat(segment, \"\\\"\"));\n }\n path += token.prefix + segment + token.suffix;\n continue;\n }\n if (optional)\n continue;\n var typeOfMessage = repeat ? \"an array\" : \"a string\";\n throw new TypeError(\"Expected \\\"\".concat(token.name, \"\\\" to be \").concat(typeOfMessage));\n }\n return path;\n };\n}\n/**\n * Create path match function from `path-to-regexp` spec.\n */\nexport function match(str, options) {\n var keys = [];\n var re = pathToRegexp(str, keys, options);\n return regexpToFunction(re, keys, options);\n}\n/**\n * Create a path match function from `path-to-regexp` output.\n */\nexport function regexpToFunction(re, keys, options) {\n if (options === void 0) { options = {}; }\n var _a = options.decode, decode = _a === void 0 ? function (x) { return x; } : _a;\n return function (pathname) {\n var m = re.exec(pathname);\n if (!m)\n return false;\n var path = m[0], index = m.index;\n var params = Object.create(null);\n var _loop_1 = function (i) {\n if (m[i] === undefined)\n return \"continue\";\n var key = keys[i - 1];\n if (key.modifier === \"*\" || key.modifier === \"+\") {\n params[key.name] = m[i].split(key.prefix + key.suffix).map(function (value) {\n return decode(value, key);\n });\n }\n else {\n params[key.name] = decode(m[i], key);\n }\n };\n for (var i = 1; i < m.length; i++) {\n _loop_1(i);\n }\n return { path: path, index: index, params: params };\n };\n}\n/**\n * Escape a regular expression string.\n */\nfunction escapeString(str) {\n return str.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\");\n}\n/**\n * Get the flags for a regexp from the options.\n */\nfunction flags(options) {\n return options && options.sensitive ? \"\" : \"i\";\n}\n/**\n * Pull out keys from a regexp.\n */\nfunction regexpToRegexp(path, keys) {\n if (!keys)\n return path;\n var groupsRegex = /\\((?:\\?<(.*?)>)?(?!\\?)/g;\n var index = 0;\n var execResult = groupsRegex.exec(path.source);\n while (execResult) {\n keys.push({\n // Use parenthesized substring match if available, index otherwise\n name: execResult[1] || index++,\n prefix: \"\",\n suffix: \"\",\n modifier: \"\",\n pattern: \"\",\n });\n execResult = groupsRegex.exec(path.source);\n }\n return path;\n}\n/**\n * Transform an array into a regexp.\n */\nfunction arrayToRegexp(paths, keys, options) {\n var parts = paths.map(function (path) { return pathToRegexp(path, keys, options).source; });\n return new RegExp(\"(?:\".concat(parts.join(\"|\"), \")\"), flags(options));\n}\n/**\n * Create a path regexp from string input.\n */\nfunction stringToRegexp(path, keys, options) {\n return tokensToRegexp(parse(path, options), keys, options);\n}\n/**\n * Expose a function for taking tokens and returning a RegExp.\n */\nexport function tokensToRegexp(tokens, keys, options) {\n if (options === void 0) { options = {}; }\n var _a = options.strict, strict = _a === void 0 ? false : _a, _b = options.start, start = _b === void 0 ? true : _b, _c = options.end, end = _c === void 0 ? true : _c, _d = options.encode, encode = _d === void 0 ? function (x) { return x; } : _d, _e = options.delimiter, delimiter = _e === void 0 ? \"/#?\" : _e, _f = options.endsWith, endsWith = _f === void 0 ? \"\" : _f;\n var endsWithRe = \"[\".concat(escapeString(endsWith), \"]|$\");\n var delimiterRe = \"[\".concat(escapeString(delimiter), \"]\");\n var route = start ? \"^\" : \"\";\n // Iterate over the tokens and create our regexp string.\n for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {\n var token = tokens_1[_i];\n if (typeof token === \"string\") {\n route += escapeString(encode(token));\n }\n else {\n var prefix = escapeString(encode(token.prefix));\n var suffix = escapeString(encode(token.suffix));\n if (token.pattern) {\n if (keys)\n keys.push(token);\n if (prefix || suffix) {\n if (token.modifier === \"+\" || token.modifier === \"*\") {\n var mod = token.modifier === \"*\" ? \"?\" : \"\";\n route += \"(?:\".concat(prefix, \"((?:\").concat(token.pattern, \")(?:\").concat(suffix).concat(prefix, \"(?:\").concat(token.pattern, \"))*)\").concat(suffix, \")\").concat(mod);\n }\n else {\n route += \"(?:\".concat(prefix, \"(\").concat(token.pattern, \")\").concat(suffix, \")\").concat(token.modifier);\n }\n }\n else {\n if (token.modifier === \"+\" || token.modifier === \"*\") {\n throw new TypeError(\"Can not repeat \\\"\".concat(token.name, \"\\\" without a prefix and suffix\"));\n }\n route += \"(\".concat(token.pattern, \")\").concat(token.modifier);\n }\n }\n else {\n route += \"(?:\".concat(prefix).concat(suffix, \")\").concat(token.modifier);\n }\n }\n }\n if (end) {\n if (!strict)\n route += \"\".concat(delimiterRe, \"?\");\n route += !options.endsWith ? \"$\" : \"(?=\".concat(endsWithRe, \")\");\n }\n else {\n var endToken = tokens[tokens.length - 1];\n var isEndDelimited = typeof endToken === \"string\"\n ? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1\n : endToken === undefined;\n if (!strict) {\n route += \"(?:\".concat(delimiterRe, \"(?=\").concat(endsWithRe, \"))?\");\n }\n if (!isEndDelimited) {\n route += \"(?=\".concat(delimiterRe, \"|\").concat(endsWithRe, \")\");\n }\n }\n return new RegExp(route, flags(options));\n}\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n */\nexport function pathToRegexp(path, keys, options) {\n if (path instanceof RegExp)\n return regexpToRegexp(path, keys);\n if (Array.isArray(path))\n return arrayToRegexp(path, keys, options);\n return stringToRegexp(path, keys, options);\n}\n//# sourceMappingURL=index.js.map","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateSetter(s, r, a, t) {\n return r(assertClassBrand(s, a), t), t;\n}","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { http } from \"@next-core/http\";\n\n/** 创建实例 */\n\n/**\n * @description 创建实例 (body为实例信息,字段限制参考模型定义,支持关系创建)\n * @endpoint POST /v2/object/:objectId/instance\n */\nexport var InstanceApi_createInstance = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (objectId, data, options) {\n return (/**! @contract easyops.api.cmdb.instance.CreateInstance@1.1.0 */(yield http.post(\"api/gateway/cmdb.instance.CreateInstance/v2/object/\".concat(objectId, \"/instance\"), data, options)).data\n );\n });\n return function InstanceApi_createInstance(_x, _x2, _x3) {\n return _ref.apply(this, arguments);\n };\n}();\n//# sourceMappingURL=createInstance.js.map","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { http } from \"@next-core/http\";\n/**\n * @description 搜索实例V3 (支持多属性排序)\n * @endpoint POST /v3/object/:objectId/instance/_search\n */\nexport var InstanceApi_postSearchV3 = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (objectId, data, options) {\n return (/**! @contract easyops.api.cmdb.instance.PostSearchV3@1.1.0 */(yield http.post(\"api/gateway/cmdb.instance.PostSearchV3/v3/object/\".concat(objectId, \"/instance/_search\"), data, options)).data\n );\n });\n return function InstanceApi_postSearchV3(_x, _x2, _x3) {\n return _ref.apply(this, arguments);\n };\n}();\n//# sourceMappingURL=postSearchV3.js.map","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { http } from \"@next-core/http\";\n/**\n * @description 契约搜索\n * @endpoint POST /api/v1/contract/search\n */\nexport var ContractCenterApi_searchContract = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (data, options) {\n return (/**! @contract easyops.api.next_builder.contract_center.SearchContract@1.0.0 */(yield http.post(\"api/gateway/next_builder.contract_center.SearchContract/api/v1/contract/search\", data, options)).data\n );\n });\n return function ContractCenterApi_searchContract(_x, _x2) {\n return _ref.apply(this, arguments);\n };\n}();\n//# sourceMappingURL=searchContract.js.map","import _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { http } from \"@next-core/http\";\n/**\n * @description 获取变更历史(从上一次commit开始)\n * @endpoint GET /api/v1/next-builder/workspace/:appId/changes\n */\nexport var WorkspaceApi_getChangeHistory = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (appId, params, options) {\n return (/**! @contract easyops.api.next_builder.workspace.GetChangeHistory@1.0.0 */(yield http.get(\"api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/\".concat(appId, \"/changes\"), _objectSpread(_objectSpread({}, options), {}, {\n params\n }))).data\n );\n });\n return function WorkspaceApi_getChangeHistory(_x, _x2, _x3) {\n return _ref.apply(this, arguments);\n };\n}();\n//# sourceMappingURL=getChangeHistory.js.map","// The debounce function receives our function as a parameter\nexport function debounceByAnimationFrame(fn) {\n // This holds the requestAnimationFrame reference, so we can cancel it if we wish\n let frame;\n const cancel = () => cancelAnimationFrame(frame);\n\n // The debounce function returns a new function that can receive a variable number of arguments\n const func = function () {\n for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n params[_key] = arguments[_key];\n }\n // If the frame variable has been defined, clear it now, and queue for next frame\n if (frame) {\n cancel();\n }\n\n // Queue our function call for the next frame\n frame = requestAnimationFrame(() => {\n // Call our function and pass any params we received\n fn(...params);\n });\n };\n func.cancel = cancel;\n return func;\n}\n//# sourceMappingURL=debounceByAnimationFrame.js.map","import { parsePath } from \"history\";\nimport { matchPath } from \"@next-core/runtime\";\nimport { isObject } from \"lodash\";\nexport function isGroup(item) {\n return item.type === \"group\";\n}\nexport function isSubMenu(item, groupAsSubMenu) {\n return Boolean(item.type === \"subMenu\" || groupAsSubMenu && item.type === \"group\");\n}\nexport function initMenuItemAndMatchCurrentPathKeys(menuItems, pathname, search, parentCursor) {\n const selectedKeys = [];\n const openedKeys = [];\n const matchedKeys = [];\n let cursor = 0;\n menuItems && menuItems.forEach(item => {\n // key的格式最终为0,1,2,0.1,0.2,0.1.1,0.1.2\n item.key = parentCursor === \"\" ? `${cursor}` : `${parentCursor}.${cursor}`;\n if (isGroup(item) || isSubMenu(item)) {\n const tmp = initMenuItemAndMatchCurrentPathKeys(item.items, pathname, search, item.key);\n selectedKeys.push(...tmp.selectedKeys);\n if (tmp.selectedKeys.length || item.defaultExpanded) {\n openedKeys.push(item.key);\n }\n openedKeys.push(...tmp.openedKeys);\n matchedKeys.push(...tmp.matchedKeys);\n } else {\n if (matchMenuItem(item, pathname, search)) {\n selectedKeys.push(String(item.key));\n const keyPath = item.key.split(\".\");\n for (let i = 0; i < keyPath.length; i++) {\n matchedKeys.push(keyPath.slice(0, i + 1).join(\".\"));\n }\n }\n }\n cursor += 1;\n });\n if (selectedKeys.length && parentCursor !== \"\") {\n openedKeys.push(parentCursor);\n }\n return {\n selectedKeys: selectedKeys,\n openedKeys: openedKeys,\n matchedKeys: matchedKeys\n };\n}\nfunction getMatchOfSearch(currentSearch, toSearch) {\n const current = new URLSearchParams(currentSearch);\n const to = new URLSearchParams(toSearch);\n for (const [key, value] of to.entries()) {\n var _current$get;\n // Allow `?k=` to match `?` (when `k` doesn't exist)\n if (((_current$get = current.get(key)) !== null && _current$get !== void 0 ? _current$get : \"\") !== value) {\n return false;\n }\n }\n return true;\n}\nexport function matchMenuItem(item, pathname, search) {\n if (!item.to) return false;\n const to = typeof item.to === \"object\" ? item.to : parsePath(item.to);\n\n // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202\n const escapedPath = to.pathname.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\");\n let match = !!matchPath(pathname, {\n path: escapedPath,\n exact: item.exact\n });\n if (match && item.activeMatchSearch) {\n match = getMatchOfSearch(search, to.search);\n }\n if (!match && Array.isArray(item.activeIncludes)) {\n for (const include of item.activeIncludes) {\n let paths;\n let exact = true;\n if (isObject(include)) {\n paths = Array.isArray(include.path) ? include.path : [include.path];\n exact = include.exact;\n } else {\n paths = [include];\n }\n for (const path of paths) {\n var _parsedPath;\n let parsedPath;\n const hasSearch = path.includes(\"?\");\n if (hasSearch) {\n parsedPath = parsePath(path);\n }\n match = !!matchPath(pathname, {\n path: hasSearch ? parsedPath.pathname : path,\n exact\n });\n if (match && (_parsedPath = parsedPath) !== null && _parsedPath !== void 0 && _parsedPath.search) {\n match = getMatchOfSearch(search, parsedPath.search);\n }\n if (match) {\n break;\n }\n }\n if (match) {\n break;\n }\n }\n }\n if (match && Array.isArray(item.activeExcludes)) {\n for (const include of item.activeExcludes) {\n let paths;\n let exact = true;\n if (isObject(include)) {\n paths = Array.isArray(include.path) ? include.path : [include.path];\n exact = include.exact;\n } else {\n paths = [include];\n }\n for (const path of paths) {\n let parsedPathWithSearch;\n if (path.includes(\"?\")) {\n parsedPathWithSearch = parsePath(path);\n }\n match = !(matchPath(pathname, {\n path: parsedPathWithSearch ? parsedPathWithSearch.pathname : path,\n exact\n }) && (!parsedPathWithSearch || getMatchOfSearch(search, parsedPathWithSearch.search)));\n if (!match) {\n break;\n }\n }\n if (!match) {\n break;\n }\n }\n }\n return match;\n}\n//# sourceMappingURL=menu.js.map"],"names":["escapeString","str","replace","flags","options","sensitive","stringToRegexp","path","keys","tokens","_a","strict","_b","start","_c","end","_d","encode","x","_e","delimiter","_f","endsWith","endsWithRe","concat","delimiterRe","route","_i","tokens_1","length","token","prefix","suffix","pattern","push","modifier","mod","TypeError","name","endToken","isEndDelimited","indexOf","undefined","RegExp","tokensToRegexp","i","char","type","index","value","count","j","code","charCodeAt","lexer","prefixes","result","key","tryConsume","mustConsume","nextType","consumeText","safePattern","prev","prevText","delimiter_1","isSafe","name_1","pattern_1","parse","pathToRegexp","groupsRegex","execResult","exec","source","regexpToRegexp","Array","isArray","paths","parts","map","join","arrayToRegexp","_classPrivateSetter","s","r","a","t","InstanceApi_createInstance","_ref","objectId","data","http","post","_x","_x2","_x3","apply","this","arguments","InstanceApi_postSearchV3","ContractCenterApi_searchContract","WorkspaceApi_getChangeHistory","appId","params","get","debounceByAnimationFrame","fn","frame","cancel","cancelAnimationFrame","func","_len","_key","requestAnimationFrame","initMenuItemAndMatchCurrentPathKeys","menuItems","pathname","search","parentCursor","selectedKeys","openedKeys","matchedKeys","cursor","forEach","item","isGroup","groupAsSubMenu","Boolean","isSubMenu","tmp","items","defaultExpanded","to","parsePath","escapedPath","match","matchPath","exact","activeMatchSearch","getMatchOfSearch","activeIncludes","include","isObject","_parsedPath","parsedPath","hasSearch","includes","activeExcludes","parsedPathWithSearch","matchMenuItem","String","keyPath","split","slice","currentSearch","toSearch","current","URLSearchParams","entries","_current$get"],"sourceRoot":""}
|